:root {
  /* DESIGN typography marker: Condensed** Grotesk** */
  --midnight: #120B24;
  --amethyst: #3A1A6E;
  --magenta: #FF3EB5;
  --emerald: #24F0A4;
  --sapphire: #2F7BFF;
  --citrine: #FFD23F;
  --lavender: #E9DDFB;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
  --body: Outfit, Inter, system-ui, sans-serif;
  --data: "IBM Plex Sans Condensed", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--midnight); color: var(--lavender); font-family: var(--body); overflow-x: hidden; }

body { min-height: 100vh; }

.quest-wall {
  position: relative;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 64px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 62, 181, .18), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(36, 240, 164, .12), transparent 30%),
    linear-gradient(135deg, #120B24 0%, #1b1033 46%, #0d081a 100%);
}

.wall-grit, .wall-grit::before, .wall-grit::after { position: absolute; inset: 0; pointer-events: none; }
.wall-grit { opacity: .45; background-image: radial-gradient(rgba(233,221,251,.12) 1px, transparent 1px); background-size: 19px 19px; }
.wall-grit::before { content: ""; background: repeating-linear-gradient(100deg, transparent 0 28px, rgba(233,221,251,.035) 29px 31px); }
.wall-grit::after { content: ""; background: radial-gradient(circle, transparent 58%, rgba(0,0,0,.34)); }

.spray-halo { position: absolute; width: 42vmax; height: 42vmax; border-radius: 50%; filter: blur(34px); opacity: .26; pointer-events: none; }
.halo-magenta { background: var(--magenta); left: -18vmax; top: 16vmax; }
.halo-blue { background: var(--sapphire); right: -16vmax; top: -14vmax; }

.opening-sticker {
  position: fixed;
  z-index: 20;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-7deg) scale(.2);
  width: 164px; height: 98px;
  border-radius: 22px 10px 28px 12px;
  display: grid; place-items: center;
  background: var(--citrine);
  color: var(--midnight);
  box-shadow: 0 0 0 5px var(--midnight), 0 0 0 9px var(--magenta), 0 24px 60px rgba(0,0,0,.55);
  font-family: var(--data);
  text-transform: uppercase;
  transform-origin: 20% 15%;
  animation: peelOpen 1.25s cubic-bezier(.18,1.42,.32,1) forwards, stickerLeave .7s ease 1.55s forwards;
}
.opening-sticker span { font-size: 20px; letter-spacing: .08em; }
.opening-sticker strong { font-family: var(--display); font-size: 24px; margin-top: -30px; }
.opening-sticker::after { content: ""; position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 36px 36px 0; border-color: transparent #fff3a0 transparent transparent; filter: drop-shadow(-5px 5px 3px rgba(0,0,0,.22)); }

@keyframes peelOpen { 0% { transform: translate(-50%, -50%) rotate(-7deg) scale(.2) skew(-8deg); } 55% { transform: translate(-50%, -50%) rotate(8deg) scale(1.18) skew(3deg); } 78% { transform: translate(-50%, -50%) rotate(-4deg) scale(.94); } 100% { transform: translate(-50%, -50%) rotate(-7deg) scale(1); } }
@keyframes stickerLeave { to { opacity: 0; transform: translate(-50%, -180%) rotate(19deg) scale(.65); pointer-events: none; } }

.tag-zone { position: relative; z-index: 2; max-width: 960px; margin: 0 0 28px clamp(0px, 5vw, 70px); padding-top: 22px; opacity: 0; transform: translateY(22px) rotate(-1deg); animation: tagReveal .8s cubic-bezier(.18,1.42,.32,1) .9s forwards; }
.tiny-route, .label { font-family: var(--data); color: var(--citrine); letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.tiny-route { margin: 0 0 8px; font-size: clamp(13px, 1.7vw, 19px); }
h1 { position: relative; margin: 0; font-family: var(--display); font-size: clamp(54px, 12vw, 162px); line-height: .82; letter-spacing: -.075em; color: var(--magenta); text-shadow: 5px 5px 0 var(--emerald), 10px 10px 0 rgba(47,123,255,.55), 0 0 30px rgba(255,62,181,.55); }
h1::before { content: attr(data-shadow); position: absolute; z-index: -1; left: -7px; top: 7px; color: transparent; -webkit-text-stroke: 2px var(--lavender); opacity: .42; }
.tagline { max-width: 640px; font-size: clamp(17px, 2vw, 25px); line-height: 1.12; color: rgba(233,221,251,.88); margin: 18px 0 0 10px; }
@keyframes tagReveal { to { opacity: 1; transform: translateY(0) rotate(-1deg); } }

.sticker-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(12, minmax(60px, 1fr)); grid-auto-rows: 82px; gap: 18px; max-width: 1260px; margin: -8px auto 50px; transform: rotate(-2deg) translateX(-2vw); }
.tile { position: relative; padding: 18px; border: 3px solid rgba(233,221,251,.75); background: linear-gradient(145deg, rgba(58,26,110,.96), rgba(18,11,36,.96)); box-shadow: 10px 14px 0 rgba(0,0,0,.36), 0 0 0 2px rgba(255,62,181,.18) inset; color: var(--lavender); overflow: hidden; opacity: 0; transform: translateY(38px) rotate(var(--r, 0deg)) scale(.86); transition: transform .28s cubic-bezier(.18,1.42,.32,1), filter .28s, box-shadow .28s; }
.tile.is-in { animation: slapIn .72s cubic-bezier(.18,1.42,.32,1) forwards; animation-delay: var(--delay, 0s); }
.tile:hover, .tile.active { transform: translateY(-8px) rotate(calc(var(--r, 0deg) + 2deg)) scale(1.035); filter: saturate(1.22); box-shadow: 13px 18px 0 rgba(0,0,0,.44), 0 0 28px rgba(36,240,164,.2); z-index: 7; }
.tile.recoil { transform: translateY(5px) rotate(calc(var(--r, 0deg) - 3deg)) scale(.97); }
@keyframes slapIn { 0% { opacity: 0; transform: translateY(60px) rotate(calc(var(--r, 0deg) - 7deg)) scale(.74); } 62% { opacity: 1; transform: translateY(-10px) rotate(calc(var(--r, 0deg) + 3deg)) scale(1.06); } 82% { transform: translateY(4px) rotate(calc(var(--r, 0deg) - 1deg)) scale(.98); } 100% { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)) scale(1); } }
.tile::before { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(36,240,164,.32); pointer-events: none; }
.tile h2, .tile h3 { font-family: var(--display); margin: 8px 0 10px; line-height: .98; }
.tile h2 { font-size: clamp(29px, 4vw, 56px); }
.tile h3 { font-size: clamp(21px, 2.4vw, 34px); }
.tile p { line-height: 1.2; }
.label { position: relative; z-index: 2; margin: 0; font-size: 14px; }
.large { grid-column: span 5; grid-row: span 5; }
.wide { grid-column: span 5; grid-row: span 3; }
.tall { grid-column: span 3; grid-row: span 5; }
.rumor, .snacks { grid-column: span 3; grid-row: span 3; }
.ticker { grid-column: 4 / span 7; grid-row: span 1; background: var(--citrine); color: var(--midnight); font-family: var(--data); font-weight: 700; text-transform: uppercase; white-space: nowrap; transform: rotate(3deg); }
.ticker p { margin: 0; animation: ticker 9s linear infinite; }
.rooftop { grid-column: 6 / span 6; grid-row: span 4; --r: 2deg; background: linear-gradient(145deg, rgba(47,123,255,.72), rgba(58,26,110,.95)); }
.persona { --r: -3deg; background: linear-gradient(160deg, rgba(58,26,110,.92), rgba(255,62,181,.22)); }
.rumor { --r: 4deg; }
.shortcut { --r: -1deg; }
.forecast { --r: 3deg; background: linear-gradient(160deg, rgba(18,11,36,.95), rgba(47,123,255,.35)); }
.snacks { --r: -5deg; background: linear-gradient(160deg, rgba(255,210,63,.98), rgba(255,62,181,.75)); color: var(--midnight); }
.trail { --r: 4deg; background: linear-gradient(150deg, rgba(36,240,164,.88), rgba(18,11,36,.94)); }
.shrine { --r: -2deg; }
.tape { position: absolute; width: 92px; height: 24px; top: -10px; left: 30px; transform: rotate(-8deg); opacity: .9; box-shadow: 0 5px 10px rgba(0,0,0,.3); }
.tape-lime { background: repeating-linear-gradient(90deg, var(--emerald) 0 12px, rgba(233,221,251,.8) 13px 17px); }
.tape-yellow { background: var(--citrine); left: auto; right: 30px; transform: rotate(7deg); }
.tape-blue { background: var(--sapphire); }
.peel { position: absolute; right: 0; top: 0; border-style: solid; border-width: 0 48px 48px 0; border-color: transparent var(--emerald) transparent transparent; }
.seal { position: absolute; right: 18px; bottom: 16px; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 700 16px var(--data); text-transform: uppercase; background: var(--citrine); color: var(--midnight); transform: rotate(12deg); box-shadow: 0 0 0 5px var(--magenta); }

.koakuma-figure { position: relative; height: 250px; margin: 12px 0; }
.koakuma-figure .body { position: absolute; left: 50%; top: 54px; width: 122px; height: 154px; transform: translateX(-50%); border-radius: 48% 48% 38% 38%; background: var(--midnight); box-shadow: 0 0 0 8px var(--emerald), inset 0 -24px 0 rgba(255,62,181,.42); }
.horn { position: absolute; top: 23px; left: 50%; width: 38px; height: 52px; background: var(--magenta); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.horn.left { transform: translateX(-58px) rotate(-18deg); } .horn.right { transform: translateX(20px) rotate(18deg); }
.wing { position: absolute; top: 98px; left: 50%; width: 84px; height: 82px; background: var(--sapphire); clip-path: polygon(0 0, 100% 40%, 20% 100%); opacity: .84; }
.wing.left { transform: translateX(-142px) rotate(18deg); } .wing.right { transform: translateX(58px) scaleX(-1) rotate(18deg); }
.tail { position: absolute; left: 50%; bottom: 43px; width: 108px; height: 72px; border-right: 9px solid var(--magenta); border-bottom: 9px solid var(--magenta); border-radius: 0 0 80px 0; transform: translateX(28px) rotate(7deg); }
.tail::after { content: ""; position: absolute; right: -17px; top: -10px; width: 22px; height: 22px; background: var(--magenta); clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.sneaker { position: absolute; bottom: 18px; left: 50%; width: 64px; height: 28px; border-radius: 18px 18px 8px 8px; background: var(--citrine); }
.sneaker.one { transform: translateX(-74px) rotate(5deg); } .sneaker.two { transform: translateX(14px) rotate(-7deg); }

.horn-bars { height: 130px; display: flex; align-items: flex-end; gap: 12px; padding: 10px 0; }
.horn-bars i { flex: 1; height: var(--h); min-height: 24px; background: linear-gradient(var(--magenta), var(--sapphire)); border-radius: 18px 18px 4px 4px; position: relative; transform-origin: bottom; transition: height .34s cubic-bezier(.18,1.42,.32,1), transform .34s; }
.horn-bars i::after { content: ""; position: absolute; top: -18px; left: 50%; width: 24px; height: 24px; transform: translateX(-50%); background: var(--citrine); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tile.active .horn-bars i { height: calc(var(--h) + 12%); transform: scaleY(1.06); }
.annotation { max-height: 0; opacity: 0; overflow: hidden; color: var(--emerald); transition: max-height .35s, opacity .35s; }
.tile.active .annotation, .tile:hover .annotation { max-height: 70px; opacity: 1; }
.route-map { width: 100%; height: 150px; overflow: visible; }
.route-map path { fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 10 12; transition: stroke-dashoffset .45s; }
.route-one { stroke: var(--emerald); } .route-two { stroke: var(--magenta); }
.route-map circle { fill: var(--citrine); stroke: var(--midnight); stroke-width: 4; transition: transform .35s cubic-bezier(.18,1.42,.32,1); transform-origin: center; }
.tile.active .route-map path { stroke-dashoffset: -32; } .tile.active .route-map circle { transform: scale(1.45); }
.map-note { font-family: var(--data); color: var(--citrine); text-transform: uppercase; }
.meter { position: relative; height: 138px; width: 138px; border-radius: 50%; margin: 22px auto; background: conic-gradient(var(--magenta) 0 73%, rgba(233,221,251,.16) 73% 100%); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(47,123,255,.25); }
.meter span { position: absolute; inset: 18px; border-radius: 50%; background: var(--midnight); }
.meter b { position: relative; font: 700 34px var(--display); color: var(--citrine); }
.forecast-list { margin: 0; padding-left: 18px; font-family: var(--data); text-transform: uppercase; }
.tokens { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.tokens span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--midnight); color: var(--citrine); font-size: 26px; box-shadow: 0 0 0 4px var(--emerald); transition: transform .25s cubic-bezier(.18,1.42,.32,1); }
.tile.active .tokens span { transform: translateY(-8px) rotate(16deg); }
.tail-line { height: 96px; display: flex; align-items: center; justify-content: space-around; }
.tail-line i { width: 38px; height: 38px; border-radius: 50%; background: var(--citrine); box-shadow: 0 0 0 5px var(--midnight); animation: dotBob 1.8s ease-in-out infinite; animation-delay: calc(var(--n, 0) * .1s); }
.tail-line i:nth-child(2){--n:1}.tail-line i:nth-child(3){--n:2}.tail-line i:nth-child(4){--n:3}.tail-line i:nth-child(5){--n:4}
@keyframes dotBob { 50% { transform: translateY(-12px); } }
.radar { position: relative; width: min(210px, 100%); aspect-ratio: 1; margin: 18px auto; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 28px, rgba(36,240,164,.55) 29px 31px), conic-gradient(from 20deg, rgba(255,62,181,.3), rgba(47,123,255,.25), rgba(36,240,164,.22), rgba(255,62,181,.3)); box-shadow: 0 0 0 5px var(--magenta); }
.radar::before, .radar::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 48%; height: 3px; background: var(--citrine); transform-origin: left; }
.radar::before { transform: rotate(22deg); } .radar::after { transform: rotate(112deg); }
.radar span { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 14px var(--emerald); transition: transform .35s cubic-bezier(.18,1.42,.32,1); }
.radar span:nth-child(1){left:22%;top:30%}.radar span:nth-child(2){left:61%;top:19%}.radar span:nth-child(3){left:74%;top:56%}.radar span:nth-child(4){left:39%;top:72%}.radar span:nth-child(5){left:48%;top:43%;background:var(--magenta)}.radar span:nth-child(6){left:18%;top:63%;background:var(--citrine)}
.tile.active .radar span { transform: scale(1.55) translate(var(--dx, 4px), var(--dy, -4px)); }
.constellation { position: relative; height: 190px; margin-top: 8px; background-image: linear-gradient(32deg, transparent 45%, rgba(36,240,164,.85) 46% 48%, transparent 49%), linear-gradient(-24deg, transparent 50%, rgba(255,62,181,.85) 51% 53%, transparent 54%); }
.constellation span { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--citrine); box-shadow: 0 0 0 5px var(--midnight), 0 0 18px var(--citrine); transition: transform .34s cubic-bezier(.18,1.42,.32,1); }
.constellation span:nth-child(1){left:8%;top:62%}.constellation span:nth-child(2){left:24%;top:22%}.constellation span:nth-child(3){left:40%;top:52%}.constellation span:nth-child(4){left:56%;top:18%}.constellation span:nth-child(5){left:70%;top:50%}.constellation span:nth-child(6){left:84%;top:25%}.constellation span:nth-child(7){left:49%;top:80%;background:var(--magenta)}
.tile.active .constellation span { transform: scale(1.4) rotate(12deg); }
.floating-stickers { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
.floating-stickers span { position: absolute; display: grid; place-items: center; font-family: var(--data); font-weight: 700; text-transform: uppercase; border: 3px solid var(--midnight); box-shadow: 0 8px 0 rgba(0,0,0,.35); transition: transform .28s cubic-bezier(.18,1.42,.32,1); }
.heart-horn { left: 5vw; bottom: 12vh; width: 58px; height: 48px; border-radius: 16px; background: var(--magenta); color: var(--lavender); transform: rotate(-14deg); }
.bat { right: 8vw; top: 17vh; width: 48px; height: 48px; background: var(--sapphire); transform: rotate(22deg); }
.spark { right: 7vw; bottom: 19vh; padding: 10px 14px; background: var(--citrine); color: var(--midnight); transform: rotate(9deg); }
.arrow { left: 43vw; top: 9vh; width: 60px; height: 34px; background: var(--emerald); color: var(--midnight); transform: rotate(-8deg); }
.floating-stickers.wiggle span { transform: translateY(-12px) rotate(18deg) scale(1.1); }

@keyframes ticker { to { transform: translateX(-45%); } }

@media (max-width: 900px) {
  .quest-wall { padding: 18px; }
  .sticker-grid { grid-template-columns: repeat(6, minmax(42px, 1fr)); grid-auto-rows: 82px; gap: 14px; transform: rotate(-1deg); }
  .large, .wide, .tall, .rumor, .snacks, .rooftop, .ticker { grid-column: span 6; }
  .large { grid-row: span 5; } .wide, .rooftop { grid-row: span 4; } .tall { grid-row: span 4; }
  .ticker { white-space: normal; }
}

@media (max-width: 560px) {
  .tag-zone { margin-left: 0; }
  .sticker-grid { grid-auto-rows: auto; }
  .tile, .large, .wide, .tall, .rumor, .snacks, .rooftop, .ticker { min-height: 230px; grid-row: auto; }
  .ticker { min-height: 86px; }
  .koakuma-figure { height: 210px; }
}
