/* Tallgrass site. Colours and fonts are the game's own (src/styles.css). */
@font-face { font-family: 'Fredoka'; src: url('../assets/fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Luckiest Guy'; src: url('../assets/fonts/luckiestguy.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #14161f;
  --bg2: #181b27;
  --card: #1d2030;
  --card2: #262a3d;
  --line: #33384f;
  --text: #eef0ff;
  --muted: #a3a9c8;
  --lime: #ddf31e;
  --gold: #ffd84a;
  --gold2: #f5b31f;
  --good: #7be38a;
  --bad: #ff7a6b;
  --umbral: #9b7bff;
  --discord: #5865f2;
  --radius: 14px;
  --px: 4px;                         /* one game pixel on the route scenes */
  --ink: #2a1c05;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --maxw: 1180px;
}
@media (max-width: 720px) { :root { --px: 3px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 'Fredoka', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-gated { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .88em; background: #0e1018; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.px { image-rendering: pixelated; image-rendering: crisp-edges; width: calc(var(--w) * var(--s, 2) * 1px); height: calc(var(--h) * var(--s, 2) * 1px); object-fit: cover; object-position: 0 0; vertical-align: middle; flex: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.muted { color: var(--muted); }
.link { color: var(--lime); font-weight: 600; text-underline-offset: 3px; }

/* ---------- wordmark ---------- */
.wordmark { font-family: 'Luckiest Guy', 'Fredoka', sans-serif; font-weight: 400; letter-spacing: .02em; line-height: .9; margin: 0; text-transform: uppercase;
  -webkit-text-stroke: .09em #11131c; paint-order: stroke fill; }
.wordmark span:first-child { color: #fff; }
.wordmark span:last-child { color: var(--lime); }
.wordmark--hero { font-size: clamp(64px, 11vw, 132px); text-shadow: 0 .06em 0 #11131c, 0 .1em 24px rgba(0, 0, 0, .45); }
.wordmark--sm { font-size: 34px; text-align: center; text-shadow: 0 3px 0 #11131c; }
.wordmark--nav { font-size: 24px; -webkit-text-stroke: 0; text-shadow: 0 2px 0 #0b0c12; }

/* ---------- buttons ---------- */
.btn { --b: #c98a10; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 17px/1 'Fredoka', sans-serif; padding: 12px 18px; border-radius: 12px; color: var(--text); transition: transform .12s, filter .12s, box-shadow .12s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--b); }
.btn--yellow { background: linear-gradient(#ffe36b, var(--gold) 45%, var(--gold2)); color: var(--ink); box-shadow: 0 4px 0 var(--b), 0 8px 18px rgba(255, 196, 40, .22); }
.btn--ghost { --b: #0b0c12; background: rgba(20, 22, 31, .72); border: 2px solid rgba(255, 255, 255, .22); box-shadow: 0 4px 0 var(--b); backdrop-filter: blur(6px); }
.btn--discord { --b: #3641b8; background: var(--discord); color: #fff; box-shadow: 0 4px 0 var(--b), 0 8px 18px rgba(88, 101, 242, .3); }
.btn--big { font-size: 19px; padding: 15px 24px; border-radius: 14px; }
.btn--sm { font-size: 15px; padding: 9px 14px; }
.btn--block { width: 100%; }
.btn[aria-disabled='true'] { filter: grayscale(.6) brightness(.8); pointer-events: none; }

/* ================= route scenes (pure CSS parallax, game sprites) ================= */
.scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sky { position: absolute; inset: 0;
  background: linear-gradient(180deg, #1c1838 0%, #2e2457 26%, #5a3a78 48%, #a24f7d 66%, #e27a6f 80%, #f6a76b 92%); }
.stars { position: absolute; inset: 0 0 45% 0; opacity: .9;
  background-image:
    radial-gradient(2px 2px at 8% 20%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 22% 8%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 36% 30%, #ffe9a8 50%, transparent 51%), radial-gradient(2px 2px at 51% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 26%, #fff 50%, transparent 51%), radial-gradient(3px 3px at 79% 9%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 91% 33%, #ffe9a8 50%, transparent 51%), radial-gradient(2px 2px at 14% 44%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 45% 47%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 72% 50%, #fff 50%, transparent 51%);
  animation: twinkle 4s steps(2) infinite; }
.moon { position: absolute; left: 50%; top: 13%; width: calc(var(--px) * 14); height: calc(var(--px) * 14);
  background: #fff6d8; border-radius: 0;
  clip-path: polygon(30% 0, 70% 0, 70% 7%, 86% 7%, 86% 14%, 93% 14%, 93% 30%, 100% 30%, 100% 70%, 93% 70%, 93% 86%, 86% 86%, 86% 93%, 70% 93%, 70% 100%, 30% 100%, 30% 93%, 14% 93%, 14% 86%, 7% 86%, 7% 70%, 0 70%, 0 30%, 7% 30%, 7% 14%, 14% 14%, 14% 7%, 30% 7%);
  box-shadow: 0 0 60px 20px rgba(255, 236, 190, .35); filter: drop-shadow(0 0 24px rgba(255, 230, 170, .6)); }
@keyframes twinkle { 50% { opacity: .55; } }

.layer { position: absolute; left: 0; right: 0; overflow: hidden; }
.layer .strip { --tile: 320px; --dur: 40s; height: 100%; width: calc(100% + var(--tile)); background-repeat: repeat-x;
  image-rendering: pixelated; animation: scroll var(--dur) linear infinite; will-change: transform; }
@keyframes scroll { to { transform: translate3d(calc(-1 * var(--tile)), 0, 0); } }

.hills { bottom: calc(var(--px) * 58); height: calc(var(--px) * 40); }
.hills .strip { --tile: calc(var(--px) * 120); --dur: 90s; background-size: var(--tile) 100%; background-position: 0 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' shape-rendering='crispEdges' preserveAspectRatio='none'%3E%3Cpath fill='%23503a74' d='M0 40V22h6v-4h6v-4h8v-3h10v3h6v4h5v3h6v-5h6v-4h8v-3h9v3h6v4h7v5h6v3h6v4h7v3h6v17z'/%3E%3Cpath fill='%233b2c5c' d='M0 40V30h8v-3h10v-3h9v3h8v3h10v-4h9v-3h10v3h9v4h8v3h12v-2h10v2h9v13z'/%3E%3C/svg%3E"); }
.trees { bottom: calc(var(--px) * 40); height: calc(var(--px) * 35); background: linear-gradient(transparent 52%, #263d27 52%); }
.trees .strip { --tile: calc(var(--px) * 32); --dur: 22s; background-image: url('../assets/sprites/tree.png');
  background-size: var(--tile) 100%; filter: brightness(.62) saturate(.85); }
.ground { bottom: 0; height: calc(var(--px) * 44); }
.ground .strip { --tile: calc(var(--px) * 48); --dur: 8.4s;
  background-image:
    radial-gradient(circle at 30% 50%, #b0905f calc(var(--px) * .9), transparent calc(var(--px) * 1)),
    radial-gradient(circle at 75% 30%, #efd39c calc(var(--px) * .7), transparent calc(var(--px) * .8)),
    linear-gradient(180deg, #4c8f45 0, #4c8f45 calc(var(--px) * 6), #3f7a3b calc(var(--px) * 6), #3f7a3b calc(var(--px) * 9),
      #b48f5d calc(var(--px) * 9), #b48f5d calc(var(--px) * 10), #e0c08a calc(var(--px) * 10), #d8b67e calc(var(--px) * 20),
      #b48f5d calc(var(--px) * 20), #b48f5d calc(var(--px) * 21), #3f7a3b calc(var(--px) * 21), #2f5f2e 100%);
  background-size: var(--tile) calc(var(--px) * 10), var(--tile) calc(var(--px) * 10), var(--tile) 100%;
  background-position: 0 calc(var(--px) * 10), calc(var(--px) * 20) calc(var(--px) * 11), 0 0;
  background-repeat: repeat-x; filter: brightness(.78) saturate(.9); }
.grass { bottom: 0; z-index: 2; }
.grass .strip { background-image: url('../assets/icons/grass.png'); }
.grass--back { height: calc(var(--px) * 14); bottom: calc(var(--px) * 6); }
.grass--back .strip { --tile: calc(var(--px) * 16); --dur: 7.2s; background-size: var(--tile) 100%; background-position: calc(var(--px) * 8) 0; filter: brightness(.55) saturate(.8); }
.grass--front { height: calc(var(--px) * 14); bottom: calc(var(--px) * -2); }
.grass--front .strip { --tile: calc(var(--px) * 16); --dur: 5.6s; background-size: var(--tile) 100%; filter: brightness(.9); }


/* trainer + buddy walking right (the world scrolls left) */
.walkers { position: absolute; bottom: calc(var(--px) * 25); left: clamp(16px, 9vw, 140px); display: flex; align-items: flex-end; gap: 0; z-index: 1; }
.trainer { width: calc(var(--px) * 16); height: calc(var(--px) * 32); background: url('../assets/sprites/red_walk.png') 0 0 / calc(var(--px) * 144) 100%;
  image-rendering: pixelated; transform: scaleX(-1); animation: walk-red .64s steps(1) infinite; }
.buddy { width: calc(var(--px) * 32); height: calc(var(--px) * 32); margin-right: calc(var(--px) * -6); background: url('../assets/sprites/eevee_ow.png') 0 0 / calc(var(--px) * 192) 100%;
  image-rendering: pixelated; transform: scaleX(-1); animation: walk-eevee .4s steps(1) infinite; }
@keyframes walk-red { 0% { background-position-x: calc(var(--px) * -112); } 25% { background-position-x: calc(var(--px) * -32); }
  50% { background-position-x: calc(var(--px) * -128); } 75% { background-position-x: calc(var(--px) * -32); } }
@keyframes walk-eevee { 0% { background-position-x: calc(var(--px) * -128); } 50% { background-position-x: calc(var(--px) * -160); } }

/* wild Pokémon popping out of the grass */
.wilds { position: absolute; inset: auto 0 calc(var(--px) * 21) 0; height: calc(var(--px) * 40); z-index: 1; }
.wild { position: absolute; bottom: 0; width: calc(var(--px) * 32); height: calc(var(--px) * 32); animation: wild-pop 2.6s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.wild img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.wild__bang { position: absolute; left: 50%; top: calc(var(--px) * -9); width: calc(var(--px) * 7); height: calc(var(--px) * 9); margin-left: calc(var(--px) * -3.5);
  background: #fff; border: var(--px) solid #11131c; border-radius: var(--px); display: grid; place-items: center; animation: bang .5s steps(2) 2; }
.wild__bang img { width: calc(var(--px) * 1.6 + 2px); height: auto; }
.wild--shiny::after { content: ''; position: absolute; inset: -20%; background:
  radial-gradient(circle at 20% 30%, #fff 0 3px, transparent 4px), radial-gradient(circle at 80% 20%, #ffe680 0 4px, transparent 5px),
  radial-gradient(circle at 70% 75%, #fff 0 3px, transparent 4px), radial-gradient(circle at 25% 80%, #ffe680 0 3px, transparent 4px);
  animation: sparkle .5s steps(2) infinite; }
@keyframes wild-pop { 0% { transform: translateY(70%); opacity: 0; } 12% { transform: translateY(-6%); opacity: 1; } 18%, 82% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(75%); opacity: 0; } }
@keyframes bang { 50% { transform: translateY(calc(var(--px) * -1)); } }
@keyframes sparkle { 50% { opacity: .2; transform: rotate(20deg); } }

/* ================= gate ================= */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px 16px calc(var(--px) * 30);
  transition: transform .9s cubic-bezier(.7, 0, .3, 1), opacity .6s; }
.gate[hidden] { display: none; }
.scene--gate .grass--front, .scene--gate .grass--back { z-index: 1; }
.scene--gate .moon { left: auto; right: 14%; }
.gate__card { position: relative; z-index: 2; width: min(440px, 100%); text-align: center; padding: 22px 26px 24px;
  background: linear-gradient(180deg, rgba(34, 37, 56, .94), rgba(22, 24, 36, .96)); border: 2px solid #4a4f6e; border-radius: 20px;
  box-shadow: 0 0 0 4px rgba(10, 11, 18, .55), var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.gate__pane { display: grid; justify-items: center; gap: 10px; }
.gate__pane[hidden] { display: none; }
.gate__title { font: 400 27px/1.1 'Luckiest Guy', sans-serif; letter-spacing: .02em; margin: 6px 0 0; text-shadow: 0 2px 0 #0b0c12; }
.gate__title em { font-style: normal; color: var(--lime); }
.gate__lead { margin: 0; color: var(--muted); }
.gate__help { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); }
.gate.is-shake .gate__card { animation: shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); } 40%, 60% { transform: translateX(8px); } }
.gate.is-open { transform: translateY(-104%); }
.gate.is-open .gate__card { transition: transform .5s, opacity .5s; }
.gate__curtain { display: none; }

/* the Poké Ball lock */
.ballstage { position: relative; width: 150px; height: 150px; display: grid; place-items: end center; margin-top: 4px; }
.ball { width: 128px; height: 128px; background: url('../assets/sprites/poke_ball.png') 0 0 / 128px 256px; image-rendering: pixelated;
  transform-origin: 50% 88%; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); }
.ball--idle, .ballstage .ball { animation: bob 2.4s ease-in-out infinite; }
.ball--idle { width: 96px; height: 96px; background-size: 96px 192px; margin: 8px auto 2px; }
.ball-shadow { position: absolute; bottom: 4px; width: 84px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, .35); z-index: -1; }
.ball.is-wobble { animation: wobble 1.05s ease-in-out infinite; }
.ball.is-open { background-position: 0 -128px; }
.ball.is-caught { animation: none; filter: brightness(.82) drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); }
.ball.is-burst { animation: burst .45s ease-out; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-18deg); } 30% { transform: rotate(14deg); } 42% { transform: rotate(0); } }
@keyframes burst { 0% { transform: scale(1); } 40% { transform: scale(1.18) translateY(-10px); } 100% { transform: scale(1); } }
.ball-stars { position: absolute; inset: 0; pointer-events: none; }
.ball-stars i { position: absolute; left: 50%; top: 40%; width: 20px; height: 18px; background: url('../assets/icons/star.png') 0 0 / 100% 100%; image-rendering: pixelated;
  animation: star-fly .8s ease-out forwards; }
@keyframes star-fly { 0% { transform: translate(-50%, 0) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(40deg); opacity: 0; } }
.flash { position: absolute; inset: 10px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 65%); animation: flash .45s ease-out forwards; }
@keyframes flash { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }

/* PIN slots */
.pin { display: grid; gap: 14px; justify-items: center; width: 100%; margin-top: 6px; }
.pin__slots { position: relative; display: flex; gap: 8px; }
.pin__slots span { width: 44px; height: 54px; border-radius: 10px; background: #0f111a; border: 2px solid var(--line); display: grid; place-items: center;
  font: 600 26px/1 'Fredoka', sans-serif; color: var(--text); transition: border-color .12s, transform .12s, background .12s; }
.pin__slots span.opt { border-style: dashed; opacity: .75; }
.pin__slots span.is-filled { border-color: var(--gold); background: #1b1a14; border-style: solid; opacity: 1; }
.pin__slots span.is-filled::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 2px 0 #9b6c08; }
.pin__slots span.is-cursor { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(221, 243, 30, .18); }
.pin__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; letter-spacing: 40px; caret-color: transparent; cursor: text; z-index: 1; }
.pin__msg { min-height: 1.5em; margin: 2px 0 0; font-weight: 500; }
.pin__msg.is-bad { color: var(--bad); }
.pin__msg.is-good { color: var(--good); }
.pin__msg.is-warn { color: var(--gold); }
#pin-go[aria-busy='true'] { pointer-events: none; filter: brightness(.9); }
#pin-go .px { --s: 1.6; }

/* closed: a sleeping Snorlax */
.snorlax { position: relative; width: 192px; height: 160px; display: grid; place-items: end center; }
.snorlax img { --w: 64; --h: 64; --s: 2.4; animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.zzz { position: absolute; right: 6px; top: 0; font: 400 26px 'Luckiest Guy', sans-serif; color: #cfe2ff; }
.zzz i { display: inline-block; font-style: normal; animation: zz 2.4s ease-in-out infinite; opacity: 0; }
.zzz i:nth-child(2) { font-size: .8em; animation-delay: .6s; } .zzz i:nth-child(3) { font-size: .62em; animation-delay: 1.2s; }
@keyframes breathe { 50% { transform: scale(1.035, .975); } }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 10px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -16px); } }

/* ================= nav ================= */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 10px clamp(14px, 3vw, 32px);
  transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.nav.is-solid { background: rgba(20, 22, 31, .86); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav__brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 20px; margin-left: auto; font-weight: 500; }
.nav__links a { text-decoration: none; color: #e4e6f8; opacity: .85; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.nav__links a:hover { opacity: 1; color: var(--lime); }
@media (max-width: 760px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ================= hero ================= */
.hero { position: relative; min-height: max(700px, 100svh); display: flex; align-items: center; isolation: isolate; }
.hero__inner { position: relative; z-index: 3; width: min(var(--maxw), 100% - 32px); margin: 0 auto; padding: 96px 0 calc(var(--px) * 56);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero__copy { max-width: 600px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px 6px 10px; border-radius: 99px; background: rgba(14, 15, 24, .55);
  border: 1px solid rgba(255, 255, 255, .14); font-weight: 500; font-size: 15px; backdrop-filter: blur(6px); }
.hero__tag { font: 600 clamp(22px, 2.6vw, 30px)/1.25 'Fredoka', sans-serif; margin: 18px 0 10px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); text-wrap: balance; }
.hero__sub { margin: 0 0 26px; color: #e9e3f5; max-width: 520px; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* trailer in a phone */
.phone { margin: 0; width: clamp(240px, 24vw, 300px); aspect-ratio: 9 / 16; padding: 10px; border-radius: 34px; background: linear-gradient(160deg, #3a3f5c, #171925);
  box-shadow: 0 0 0 2px #0b0c12, 0 30px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .15); transform: rotate(2.5deg); }
.phone__screen { position: relative; height: 100%; border-radius: 25px; overflow: hidden; background: #000; }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; border: 0; cursor: pointer; color: #fff;
  font: 600 16px 'Fredoka', sans-serif; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .55)), url('../assets/video/trailer-poster.webp') center / cover; }
.phone__play[hidden] { display: none; }
.phone__playicon { width: 74px; height: 74px; border-radius: 50%; background: var(--gold); box-shadow: 0 5px 0 #c98a10, 0 10px 30px rgba(0, 0, 0, .5); position: relative; transition: transform .15s; }
.phone__playicon::after { content: ''; position: absolute; left: 29px; top: 22px; border-left: 24px solid var(--ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.phone__play:hover .phone__playicon { transform: scale(1.07); }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 88px; justify-items: center; text-align: center; padding-bottom: calc(var(--px) * 60); }
  .hero__copy { display: grid; justify-items: center; }
  .hero__cta { justify-content: center; }
  .phone { width: min(260px, 70vw); transform: none; }
}

/* ================= sections ================= */
.section { width: min(var(--maxw), 100% - 32px); margin: 0 auto; padding: clamp(56px, 8vw, 96px) 0 0; }
.h2 { font: 400 clamp(32px, 4.4vw, 48px)/1.05 'Luckiest Guy', sans-serif; letter-spacing: .02em; text-align: center; margin: 0 0 32px; text-wrap: balance;
  text-shadow: 0 3px 0 #0b0c12; }
.h2 em { font-style: normal; color: var(--lime); }
.h2--left { text-align: left; margin-bottom: 10px; }
.panel { background: linear-gradient(180deg, var(--card), #1a1d2b); border: 2px solid var(--line); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 6px 0 #0d0f16; }

.stats { position: relative; z-index: 4; width: min(var(--maxw), 100% - 32px); margin: -38px auto 0; display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #232741, #1b1e2e); border: 2px solid #4a4f6e; border-radius: 18px; box-shadow: 0 8px 0 #0d0f16, var(--shadow); }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 22px; }
.stat + .stat { border-left: 2px solid var(--line); }
.stat > .px, .stat__trio { grid-row: span 2; }
.stat__trio { display: flex; gap: 2px; }
.stat b { font: 400 30px/1 'Luckiest Guy', sans-serif; color: var(--gold); letter-spacing: .02em; }
.stat span:not(.stat__trio) { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: -24px; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 2px solid var(--line); } }

.how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how__steps li { position: relative; padding: 26px 24px 22px; }
.how__num { position: absolute; top: -16px; left: 20px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); color: #1b2005;
  font: 400 20px/1 'Luckiest Guy', sans-serif; box-shadow: 0 3px 0 #7f8d10; }
.how__icon { --s: 3; float: right; margin: -4px 0 0 10px; }
.how h3, .feature h3 { font: 600 20px/1.2 'Fredoka', sans-serif; margin: 6px 0 8px; }
.how p, .feature p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .how__steps { grid-template-columns: 1fr; gap: 26px; } }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { position: relative; padding: 22px 20px 20px; transition: transform .15s, border-color .15s; }
.feature:hover { transform: translateY(-3px); border-color: #565c80; }
.feature__icon { --s: 3; display: block; margin-bottom: 10px; height: calc(var(--h) * var(--s) * 1px); }
.feature--wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 22, 31, .1), rgba(20, 22, 31, .92) 62%), url('../assets/shots/raids-800.webp') center top / cover; border-color: #6b5a22; }
.feature--wide h3 { font: 400 34px/1 'Luckiest Guy', sans-serif; letter-spacing: .02em; color: var(--gold); }
.feature--wide p { color: #dfe2f5; }
.feature--wide .feature__icon { --s: 4; }
.tag { position: absolute; top: 14px; right: 14px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.tag--new { background: var(--lime); color: #1b2005; }
@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature--wide { grid-column: auto; } }

/* rarity */
.rarity__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rare { margin: 0; border-radius: 18px; overflow: hidden; border: 2px solid var(--c); background: #13141d; box-shadow: 0 0 34px -8px var(--c), 0 6px 0 #0d0f16; transition: transform .2s; }
.rare:hover { transform: translateY(-4px) rotate(-.4deg); }
.rare img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 318; object-fit: cover; }
.rare figcaption { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 14px 18px 18px; }
.rare figcaption b { font: 400 24px/1 'Luckiest Guy', sans-serif; letter-spacing: .02em; color: var(--c); }
.rare figcaption span { grid-column: 1 / -1; color: var(--muted); margin-top: 4px; }
.rare--shiny { --c: #ffd84a; } .rare--umbral { --c: var(--umbral); }
.rare--prismana { --c: #8ff0ff; }
.rare--prismana figcaption b { background: linear-gradient(90deg, #ff8ad8, #ffd36b, #8dffb0, #7fd8ff, #c79bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 860px) { .rarity__cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.shot { position: relative; padding: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; background: #0b0c12; box-shadow: 0 6px 0 #0d0f16; }
.shot--wide { grid-column: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.04); }
.shot span { position: absolute; left: 10px; bottom: 10px; padding: 5px 12px; border-radius: 99px; background: rgba(12, 13, 20, .82); font: 600 14px 'Fredoka', sans-serif; color: var(--text);
  border: 1px solid rgba(255, 255, 255, .14); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; } .shot--wide { grid-column: auto; } }

.lightbox { max-width: min(1600px, 94vw); max-height: 94vh; padding: 0; border: 2px solid #4a4f6e; border-radius: 16px; background: #0d0e15; color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(5, 6, 10, .82); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 60px); margin: 0 auto; }
.lightbox p { margin: 0; padding: 12px 18px 14px; color: var(--muted); }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 10px; border: 2px solid #4a4f6e; background: rgba(13, 14, 21, .9); cursor: pointer; display: grid; place-items: center; }

/* patch notes */
.notes { max-width: 900px; margin: 0 auto; padding: 0; overflow: hidden; }
.notes__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px 20px; border-bottom: 2px solid var(--line); background: #191c2a; }
.notes__head h3 { font: 400 22px/1 'Luckiest Guy', sans-serif; letter-spacing: .02em; margin: 0; }
.notes__versions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.chip { border: 2px solid var(--line); background: #11131c; color: var(--muted); font: 600 14px 'Fredoka', sans-serif; padding: 5px 12px; border-radius: 99px; cursor: pointer; }
.chip[aria-selected='true'] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.notes__body { padding: 20px 24px 24px; }
.notes__title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.notes__title b { font: 400 26px/1.1 'Luckiest Guy', sans-serif; letter-spacing: .02em; color: var(--lime); }
.notes__title span { color: var(--muted); font-size: 15px; }
.notes__group { margin: 0 0 18px; }
.notes__group h4 { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 14px 'Fredoka', sans-serif; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 8px; }
.notes__group--new h4 { background: rgba(221, 243, 30, .14); color: var(--lime); }
.notes__group--chg h4 { background: rgba(255, 216, 74, .12); color: var(--gold); }
.notes__group--fix h4 { background: rgba(123, 227, 138, .12); color: var(--good); }
.notes__group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.notes__group li { position: relative; padding-left: 22px; color: #d9dcef; }
.notes__group li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; background: currentColor; opacity: .45; border-radius: 2px; }
.notes__more { margin-top: 4px; }
.notes__more[open] summary { margin-bottom: 14px; }
.notes__more summary { cursor: pointer; color: var(--lime); font-weight: 600; width: fit-content; }

/* download */
.download__sub { text-align: center; margin: -18px 0 22px; color: var(--muted); }
.download__phone { display: flex; gap: 10px; align-items: center; max-width: 720px; margin: 0 auto 22px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 216, 74, .1); border: 2px solid rgba(255, 216, 74, .35); color: #ffe9a0; }
.download__phone[hidden] { display: none; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin: 0 auto; }
.dl__card { position: relative; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.dl__card.is-mine { border-color: #8a7420; box-shadow: 0 0 0 4px rgba(255, 216, 74, .12), 0 6px 0 #0d0f16; }
.dl__rec { display: none; position: absolute; top: -14px; right: 18px; background: var(--gold); color: var(--ink); font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 99px; box-shadow: 0 3px 0 #c98a10; }
.dl__card.is-mine .dl__rec { display: block; }
.dl__os { display: flex; align-items: center; gap: 14px; }
.dl__os h3 { font: 400 30px/1 'Luckiest Guy', sans-serif; letter-spacing: .02em; margin: 0; }
.dl__meta { margin: -6px 0 0; color: var(--muted); }
.oslogo--win { display: grid; grid-template-columns: repeat(2, 15px); gap: 3px; transform: perspective(60px) rotateY(-14deg); }
.oslogo--win i { width: 15px; height: 15px; background: #4fb3ff; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18); }
.oslogo--mac { width: 36px; height: 36px; image-rendering: pixelated; background: center / contain no-repeat; }
.steps { margin: 4px 0 0; padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding-left: 36px; color: #d6d9ec; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 7px; background: var(--card2); border: 2px solid var(--line);
  display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--lime); }
.cmd { display: flex; align-items: stretch; margin-top: 8px; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #0c0d14; }
.cmd code { flex: 1; border: 0; background: none; padding: 9px 11px; font-size: 12.5px; line-height: 1.45; word-break: break-all; color: #cfe7a0; border-radius: 0; }
.cmd__copy { flex: none; border: 0; border-left: 2px solid var(--line); background: var(--card2); color: var(--text); font: 600 14px 'Fredoka', sans-serif; padding: 0 14px; cursor: pointer; }
.cmd__copy:hover { background: #30354d; }
.cmd__copy.is-done { color: var(--good); }
.download__foot { text-align: center; margin: 22px auto 0; max-width: 640px; }
@media (max-width: 820px) { .dl { grid-template-columns: 1fr; } }

/* discord */
.discord { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 26px 30px; border-color: #3d4590;
  background: radial-gradient(120% 140% at 0% 0%, rgba(88, 101, 242, .32), transparent 60%), linear-gradient(180deg, #21254a, #1a1d33); }
.discord__art { display: flex; }
.discord__art .px { --w: 64; --h: 64; --s: 1.6; }
.discord__art .px + .px { margin-left: -26px; transform: scaleX(-1); }
.discord p { margin: 0; color: #d2d6f5; }
@media (max-width: 820px) { .discord { grid-template-columns: 1fr; justify-items: center; text-align: center; } .h2--left { text-align: center; } }

/* faq */
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: url('../assets/icons/cross.png') center / 22px 22px; image-rendering: pixelated; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
@media (max-width: 820px) { .faq__list { grid-template-columns: 1fr; } }

/* footer */
.footer { margin-top: clamp(64px, 9vw, 110px); position: relative; }
.footer__route { height: calc(var(--px) * 22); background:
  url('../assets/icons/grass.png') 0 100% / calc(var(--px) * 16) calc(var(--px) * 14) repeat-x,
  url('../assets/sprites/tree.png') 0 0 / calc(var(--px) * 32 * .6) calc(var(--px) * 35 * .6) repeat-x; image-rendering: pixelated; filter: brightness(.55); }
.footer__inner { background: #0f1018; border-top: 2px solid var(--line); padding: 28px 16px 40px; text-align: center; color: var(--muted); font-size: 14.5px; }
.footer__inner p { max-width: 760px; margin: 12px auto 0; }
.footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.footer__brand img { border-radius: 10px; }
.footer__links a { color: var(--text); }
.noscript { position: fixed; inset: auto 0 0 0; z-index: 99; background: var(--gold); color: var(--ink); text-align: center; padding: 12px; font-weight: 600; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .layer .strip { animation: none !important; }
  .gate.is-open { transform: none; opacity: 0; }
}
