/* Life on the Grind — official site. 90s NY street art, boom bap energy. */
@font-face {
  font-family: 'Bangers'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/bangers.woff2') format('woff2');
}
@font-face {
  font-family: 'Permanent Marker'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../assets/fonts/permanentmarker.woff2') format('woff2');
}
:root {
  --bg: #0a0518;
  --mag: #ff3ea1;
  --cyan: #5ec8ff;
  --lime: #7dff5e;
  --gold: #ffd93c;
  --ink: #120a24;
  --paper: #f5edd8;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: #fff;
  font-family: 'Permanent Marker', cursive;
  overflow-x: hidden;
  cursor: crosshair;
}
h1, h2, h3, .btn, .chip, nav a, .brand, .ticker-track, .countdown b, .intro-tag {
  font-family: 'Bangers', Impact, sans-serif;
  letter-spacing: 1px;
}
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- intro splat ---------- */
#intro {
  position: fixed; inset: 0; z-index: 900; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  animation: introOut .5s ease 1.6s forwards;
}
.intro-tag {
  font-size: clamp(70px, 16vw, 200px); color: var(--mag);
  text-shadow: 6px 6px 0 var(--ink), 12px 12px 0 var(--cyan);
  transform: rotate(-6deg) scale(.2); opacity: 0;
  animation: tagIn .45s cubic-bezier(.2, 2.2, .4, 1) .15s forwards;
}
.intro-splat {
  position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--mag) 0%, transparent 62%);
  opacity: 0; animation: splat .5s ease .1s forwards; filter: blur(2px);
}
@keyframes tagIn { to { transform: rotate(-6deg) scale(1); opacity: 1; } }
@keyframes splat { to { opacity: .5; } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------- paint layer + cursor ---------- */
#paintlayer { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.splat {
  position: absolute; border-radius: 46% 54% 55% 45% / 52% 44% 56% 48%;
  filter: blur(1px); opacity: .82; transform: scale(.2);
  animation: splatIn .28s cubic-bezier(.2, 2, .5, 1) forwards;
  mix-blend-mode: screen;
}
.splat i { position: absolute; border-radius: 50%; background: inherit; }
@keyframes splatIn { to { transform: scale(1); } }
#spraycursor {
  position: fixed; z-index: 950; width: 54px; pointer-events: none;
  transform: translate(-16px, -46px) rotate(-15deg); display: none;
}
@media (pointer: fine) { #spraycursor { display: block; } }

/* ---------- topbar ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px; padding: 10px 20px;
  background: linear-gradient(rgba(10, 5, 24, .92), rgba(10, 5, 24, .75) 80%, transparent);
}
.brand { font-size: 30px; color: var(--gold); text-decoration: none; display: flex; align-items: center; gap: 8px;
  text-shadow: 3px 3px 0 var(--ink); }
.brand-crown { width: 34px; }
#topbar nav { display: flex; gap: 16px; margin-left: auto; }
#topbar nav a {
  color: #fff; text-decoration: none; font-size: 21px; padding: 2px 10px;
  border: 2px solid transparent; border-radius: 10px; transition: .15s;
  text-shadow: 2px 2px 0 var(--ink);
}
#topbar nav a:hover { color: var(--lime); border-color: var(--lime); transform: rotate(-2deg) scale(1.06); }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  background: var(--ink); color: #fff; border: 2px solid var(--mag); border-radius: 12px;
  font-size: 18px; width: 42px; height: 42px; cursor: pointer; transition: .15s;
  box-shadow: 0 0 12px rgba(255, 62, 161, .45);
}
.icon-btn:hover { transform: scale(1.12) rotate(-6deg); }
.icon-btn.on { border-color: var(--lime); box-shadow: 0 0 14px rgba(125, 255, 94, .6); }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: none;
  color: #fff; background: var(--mag); font-size: 24px; padding: 12px 26px;
  border-radius: 14px; transform: rotate(-1.5deg);
  box-shadow: 4px 4px 0 var(--ink), 0 0 24px rgba(255, 62, 161, .55);
  transition: .15s;
}
.btn:hover { transform: rotate(1deg) scale(1.06); box-shadow: 6px 6px 0 var(--ink), 0 0 34px rgba(255, 62, 161, .8); }
.btn.big { font-size: clamp(22px, 3.4vw, 34px); padding: 16px 34px; }
.btn.gold { background: var(--gold); color: var(--ink); box-shadow: 4px 4px 0 #000, 0 0 24px rgba(255, 217, 60, .5); }
.chip {
  display: inline-block; font-size: 17px; color: var(--cyan); border: 2px dashed var(--cyan);
  padding: 5px 14px; border-radius: 999px; background: rgba(10, 5, 24, .7);
}

/* ---------- hero ---------- */
#hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.par { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }
#hero .sky { opacity: .9; }
#hero .wall { background-position: center 30%; mask-image: linear-gradient(to top, transparent 0, #000 18%);
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 18%); }
.hero-grad { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 2%, transparent 45%),
  linear-gradient(to bottom, rgba(10,5,24,.65), transparent 30%); }
.hero3d { position: absolute; right: 2vw; bottom: 7vh; width: min(36vw, 440px); height: min(46vh, 430px); z-index: 3; }
.hero-inner { position: relative; z-index: 4; padding: 0 6vw calc(12vh); max-width: 900px; }
.hero-tag { font-size: clamp(20px, 3vw, 30px); text-shadow: 2px 2px 0 var(--ink); margin-bottom: 22px; line-height: 1.5; }
.hero-tag .mark { color: var(--lime); }
.hero-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.store-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 4;
  font-size: 15px; color: var(--cyan); animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateX(-50%) translateY(-8px); } }
.rise { opacity: 0; transform: translateY(40px); animation: riseIn .7s ease 1.7s forwards; }
.hero-cta.rise { animation-delay: 1.95s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }
.stick { position: absolute; z-index: 4; width: clamp(60px, 9vw, 120px); pointer-events: none; }
.s1 { top: 14vh; left: 4vw; } .s2 { top: 22vh; right: 6vw; }
.float { animation: floaty 5s ease-in-out infinite; }
.float2 { animation: floaty 6.4s ease-in-out .8s infinite; }
@keyframes floaty { 50% { transform: translateY(-16px) rotate(6deg); } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--mag); transform: rotate(-1.2deg) scale(1.02); padding: 8px 0; z-index: 6; position: relative;
  box-shadow: 0 4px 0 var(--ink); }
.ticker.flip { background: var(--lime); transform: rotate(1.2deg) scale(1.02); }
.ticker.flip .ticker-track { color: var(--ink); }
.ticker-track { display: inline-block; white-space: nowrap; font-size: 24px; color: #fff;
  animation: tick 28s linear infinite; }
.ticker.flip .ticker-track { animation-duration: 34s; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.wall-bg { background-size: cover; background-position: center; background-attachment: fixed; }
@media (max-width: 900px) { .wall-bg { background-attachment: scroll; } }
.section-head { max-width: 880px; margin: 0 auto; padding: 90px 6vw 30px; text-align: center; position: relative; }
.section-head h2 {
  font-size: clamp(44px, 8vw, 92px); color: var(--gold);
  text-shadow: 4px 4px 0 var(--ink), 8px 8px 0 rgba(94, 200, 255, .55); transform: rotate(-1.6deg);
}
.section-head p { font-size: clamp(16px, 2vw, 20px); line-height: 1.8; margin-top: 18px; text-shadow: 2px 2px 0 var(--ink); }
.section-head b { color: var(--cyan); }
.head-stick { width: 84px; position: absolute; top: 52px; left: calc(50% - 220px); transform: rotate(-14deg); opacity: .95; }
@media (max-width: 700px) { .head-stick { left: 4vw; width: 60px; } }

/* ---------- game cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px; max-width: 1200px; margin: 0 auto; padding: 20px 5vw 110px;
}
.card {
  background: rgba(18, 10, 36, .88); border: 3px solid var(--ink); border-radius: 18px;
  overflow: hidden; box-shadow: 6px 6px 0 rgba(0,0,0,.55), 0 0 22px rgba(255,62,161,.16);
  transform: rotate(var(--rot, -0.8deg)); transition: transform .18s, box-shadow .18s;
}
.card:nth-child(2n) { --rot: 0.9deg; }
.card:nth-child(3n) { --rot: -1.4deg; }
.card img, .card canvas { width: 100%; height: 200px; object-fit: cover; display: block; border-bottom: 3px solid var(--ink); background: #140b28; }
.card h3 { font-size: 26px; color: var(--mag); padding: 14px 16px 4px; text-shadow: 2px 2px 0 var(--ink); }
.card:nth-child(2n) h3 { color: var(--cyan); }
.card:nth-child(3n) h3 { color: var(--lime); }
.card p { font-size: 15.5px; line-height: 1.65; padding: 0 16px 18px; color: #e9e2ff; }
.card:hover { box-shadow: 10px 10px 0 rgba(0,0,0,.6), 0 0 34px rgba(255,62,161,.35); }

/* ---------- subway strip ---------- */
#subway { height: 68vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.subway-art { inset: -18% 0; }
.subway-quote {
  position: relative; z-index: 2; font-size: clamp(26px, 4.6vw, 52px); text-align: center;
  color: #fff; text-shadow: 3px 3px 0 var(--ink), 0 0 30px rgba(0,0,0,.9); transform: rotate(-2deg);
  background: rgba(10, 5, 24, .45); padding: 18px 30px; border-radius: 20px;
}

/* ---------- crew ---------- */
.crew-row {
  display: flex; gap: 22px; overflow-x: auto; padding: 30px 6vw 120px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--mag) transparent;
}
.crew-card {
  flex: 0 0 240px; scroll-snap-align: center; background: rgba(18, 10, 36, .9);
  border: 3px solid var(--ink); border-radius: 18px; text-align: center; padding: 14px 12px 18px;
  transform: rotate(var(--rot, -1deg)); transition: .18s; cursor: pointer; position: relative;
  box-shadow: 5px 5px 0 rgba(0,0,0,.5);
}
.crew-card:nth-child(2n) { --rot: 1.2deg; }
.crew-card:hover { transform: rotate(0) scale(1.05); box-shadow: 8px 8px 0 rgba(0,0,0,.55), 0 0 26px rgba(94,200,255,.4); }
.crew-card img { height: 230px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
.crew-card h3 { font-size: 23px; color: var(--gold); margin-top: 8px; text-shadow: 2px 2px 0 var(--ink); }
.crew-card p { font-size: 13.5px; color: #cfc4f2; line-height: 1.5; margin-top: 4px; min-height: 42px; }
.crew-card .hear { font-size: 13px; color: var(--lime); }
.crew-card.playing { border-color: var(--lime); box-shadow: 0 0 28px rgba(125,255,94,.5); }
.crew-card.star { flex-basis: 280px; border-color: var(--mag); }
.crew-card.star h3 { color: var(--mag); }

/* ---------- hhz ---------- */
#hhz { background-size: cover; background-position: center; padding: 110px 6vw 90px; text-align: center; }
.hhz-veil { position: absolute; inset: 0; background: rgba(5, 3, 10, .55); }
.hhz-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hhz-logo { width: min(300px, 60vw); filter: drop-shadow(0 6px 18px rgba(0,0,0,.8)); }
.gold-h { font-size: clamp(46px, 9vw, 110px); color: var(--gold); text-shadow: 4px 4px 0 #000, 0 0 34px rgba(255,217,60,.45); margin-top: 8px; }
.gold-h .hundred { color: #fff; }
.hhz-copy { font-size: clamp(17px, 2.2vw, 22px); line-height: 1.85; margin: 18px auto 30px; text-shadow: 2px 2px 0 #000; }
.hhz-copy b { color: var(--gold); }
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.countdown div {
  background: rgba(5, 3, 10, .8); border: 3px solid var(--gold); border-radius: 16px;
  min-width: 96px; padding: 10px 8px 12px; box-shadow: 0 0 18px rgba(255,217,60,.35);
  transform: rotate(-1deg);
}
.countdown div:nth-child(2n) { transform: rotate(1.2deg); }
.countdown b { display: block; font-size: clamp(34px, 5vw, 54px); color: var(--gold); }
.countdown span { font-size: 13px; color: #eee; letter-spacing: 2px; text-transform: uppercase; }
.hhz3d { width: min(480px, 86vw); height: 300px; margin: 0 auto; display: block; }
.radio { margin-top: 18px; }
#radio-state { display: block; margin-top: 10px; font-size: 15px; color: var(--gold); min-height: 20px; }

/* ---------- play ---------- */
.play-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px;
  max-width: 1000px; margin: 0 auto; padding: 20px 6vw 120px; }
.play-card {
  background: rgba(18, 10, 36, .92); border: 3px solid var(--ink); border-radius: 20px;
  text-align: center; padding: 30px 20px; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform: rotate(-1deg); transition: .18s; box-shadow: 6px 6px 0 rgba(0,0,0,.5);
}
.play-card:nth-child(2) { transform: rotate(1deg); }
.play-card:hover { transform: scale(1.05); box-shadow: 8px 8px 0 rgba(0,0,0,.6), 0 0 30px rgba(255,62,161,.4); }
.pc-icon { font-size: 54px; }
.play-card h3 { font-size: 28px; color: var(--cyan); text-shadow: 2px 2px 0 var(--ink); }
.play-card p { font-size: 16px; line-height: 1.6; color: #d9d0f5; }
.play-card b { color: var(--lime); }

/* ---------- footer ---------- */
footer { text-align: center; padding: 60px 6vw 90px; background: #070312; }
.foot-big { font-family: 'Bangers', Impact, sans-serif; font-size: clamp(30px, 6vw, 60px); color: var(--mag);
  text-shadow: 3px 3px 0 var(--ink), 6px 6px 0 rgba(94,200,255,.4); transform: rotate(-1.4deg); margin-bottom: 18px; }
footer p { font-size: 15px; color: #b9aede; line-height: 2; }
footer b { color: var(--gold); }
.foot-small { font-size: 12.5px; opacity: .7; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(46px) rotate(var(--rot, 0deg)); transition: opacity .7s ease, transform .7s cubic-bezier(.2, 1.4, .4, 1); }
.reveal.in { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
  .par { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  #topbar nav a { font-size: 16px; padding: 2px 6px; }
  .hero3d { width: 88vw; height: 40vh; right: -8vw; opacity: .85; }
  .hero-inner { padding-bottom: 16vh; }
}

/* ---------- v1.1 upgrades ---------- */
/* paint-drip scroll progress */
#scrollpaint { position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 120; pointer-events: none; }
#scrollpaint i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--mag), var(--cyan), var(--lime), var(--gold));
  border-radius: 0 6px 6px 0; position: relative;
}
#scrollpaint i::after {
  content: ''; position: absolute; right: -3px; top: 3px; width: 7px; height: 15px;
  background: inherit; border-radius: 0 0 7px 7px; filter: blur(.4px);
}
/* hero mural spray-reveal */
#hero .wall {
  -webkit-mask-image: radial-gradient(circle at 30% 42%, #000 0 var(--rev, 0%), transparent calc(var(--rev, 0%) + 14%)),
    linear-gradient(to top, transparent 0, #000 18%);
  mask-image: radial-gradient(circle at 30% 42%, #000 0 var(--rev, 0%), transparent calc(var(--rev, 0%) + 14%)),
    linear-gradient(to top, transparent 0, #000 18%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  animation: sprayReveal 1.9s ease-out 1.5s forwards;
}
@keyframes sprayReveal { from { --rev: 0%; } to { --rev: 150%; } }
@property --rev { syntax: '<percentage>'; initial-value: 0%; inherits: false; }
/* lang button */
.icon-btn.lang { font-family: 'Bangers', Impact, sans-serif; font-size: 17px; border-color: var(--gold); box-shadow: 0 0 12px rgba(255,217,60,.4); }
/* drifting stickers */
.stick-drift { position: absolute; width: clamp(64px, 8vw, 120px); z-index: 1; pointer-events: none; opacity: .9; will-change: transform; }
/* beat machine */
.mpc {
  display: grid; grid-template-columns: repeat(4, minmax(120px, 170px)); gap: 16px;
  justify-content: center; padding: 24px 5vw 120px;
}
@media (max-width: 640px) { .mpc { grid-template-columns: repeat(2, minmax(130px, 1fr)); } }
.pad {
  aspect-ratio: 1; border-radius: 18px; border: 3px solid var(--ink); cursor: pointer;
  background: linear-gradient(145deg, #241243, #140b28);
  color: #fff; font-family: 'Bangers', Impact, sans-serif; font-size: 22px; letter-spacing: 1px;
  box-shadow: 0 6px 0 #000, inset 0 2px 8px rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: transform .06s, box-shadow .06s; position: relative;
}
.pad i { font-style: normal; font-size: 13px; color: var(--cyan); border: 1.5px solid var(--cyan); border-radius: 6px; padding: 0 7px; opacity: .8; }
.pad:nth-child(4n+1) span { color: var(--mag); } .pad:nth-child(4n+2) span { color: var(--cyan); }
.pad:nth-child(4n+3) span { color: var(--lime); } .pad:nth-child(4n) span { color: var(--gold); }
.pad:active, .pad.hit { transform: translateY(5px); box-shadow: 0 1px 0 #000, inset 0 2px 8px rgba(255,255,255,.08), 0 0 30px rgba(255,62,161,.55); }
/* pinky peek */
#pinkypeek {
  position: absolute; right: -10px; bottom: -14px; width: clamp(130px, 16vw, 210px); z-index: 5;
  transform: translateX(110%); transition: transform .8s cubic-bezier(.2, 1.3, .4, 1); pointer-events: none;
}
#pinkypeek.in { transform: translateX(12%) rotate(-4deg); }
#pinkypeek img { filter: drop-shadow(-6px 6px 12px rgba(0,0,0,.7)); }
.peek-bubble {
  position: absolute; top: -6px; left: -76%; background: #fff; color: var(--ink);
  font-size: 14px; padding: 8px 12px; border-radius: 14px 14px 2px 14px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.4); transform: rotate(-4deg);
}
/* tag the wall */
#tagwall { background: #0d0720; padding-bottom: 110px; }
.tag-tools { display: flex; gap: 12px; justify-content: center; align-items: center; padding: 4px 0 18px; flex-wrap: wrap; }
.tag-col {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer;
  box-shadow: 0 3px 0 #000; transition: .12s;
}
.tag-col.on { transform: scale(1.22); border-color: #fff; box-shadow: 0 0 16px currentColor, 0 3px 0 #000; }
#tagcanvas {
  display: block; margin: 0 auto; width: min(1100px, 92vw); height: 420px;
  border: 4px solid var(--ink); border-radius: 20px; cursor: crosshair;
  background: url('../assets/img/wall_dark.webp') center/cover;
  box-shadow: 8px 8px 0 rgba(0,0,0,.55), 0 0 30px rgba(255,62,161,.18);
  touch-action: none;
}
