/* Timberwild landing page (E54). Ported from the approved mockup D
   (docs/ux/mockups/e54-landing/D/index.html, round 3). Mobile-first; breakpoints:
   phone <= 600, tablet 601-1023, desktop >= 1024. No inline styles anywhere:
   the Content-Security-Policy allows styles from this file only. */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka_variable.2ba02e68b1.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
:root {
  --ink: #272119; --logo-ink: #2B3A32; --cream: #F6E9CC; --cream-hi: #FDF8EC;
  --green: #5FA053; --green-hi: #8EDB5A; --wood: #B9824E; --wood-dk: #8A5A30; --wood-lt: #D29A62;
  --gold: #FAC940; --orange: #F08A3C; --red: #D9483B; --dmg: #3F6FD8; --blue: #6C8CD5;
  --sky-1: #7CC6EA; --sky-2: #A9DDF0; --sky-3: #D8F0F2;
  --line: 3px; --foot: 8px; --wrap: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Fredoka", system-ui, sans-serif; font-weight: 500; color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--dmg); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 12px; font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wordmark { margin: 0; font-weight: 700; line-height: 1; color: #FFF7E2; -webkit-text-stroke: .2em var(--logo-ink); paint-order: stroke fill; filter: drop-shadow(0 .07em 0 var(--logo-ink)); }
.wordmark span { color: var(--green-hi); }
.title { margin: 0; font-size: 32px; line-height: 1.1; color: var(--cream-hi); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--cream); border-bottom: var(--line) solid var(--ink); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 36px; height: 36px; border: var(--line) solid var(--ink); border-radius: 10px; }
.brand .wordmark { display: none; font-size: 26px; -webkit-text-stroke: .18em var(--logo-ink); }
.spacer { flex: 1; }
.links { display: none; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 5px 8px; background: var(--wood); color: var(--cream-hi); border: var(--line) solid var(--ink); border-bottom-width: 7px; border-radius: 14px; font-weight: 700; font-size: 17px; white-space: nowrap; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.8, .5, 1); }
.btn img { width: 28px; height: 28px; margin: -4px 0; }
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { border-bottom-width: var(--line); border-top-width: 7px; transform: scale(1.06, .9); transition-duration: .06s; }
.btn[aria-current="page"] { background: var(--green); }
.btn-green { background: var(--green); }
.lang { position: relative; }
.lang > button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; background: var(--blue); color: var(--cream-hi); border: var(--line) solid var(--ink); border-bottom-width: 6px; border-radius: 12px; font: 700 16px/1 "Fredoka", system-ui, sans-serif; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; cursor: pointer; }
.lang > button svg { width: 14px; height: 14px; }
.lang-menu { position: absolute; right: 0; top: 46px; display: none; grid-template-columns: repeat(3, 52px); gap: 6px; padding: 8px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-bottom-width: 6px; border-radius: 14px; font-weight: 700; }
.lang.open .lang-menu { display: grid; animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 90% 0; }
.lang-menu a { text-align: center; padding: 6px 0; border-radius: 10px; border: 2px solid transparent; }
.lang-menu a:hover { border-color: var(--ink); }
.lang-menu a.on { background: var(--green); color: var(--cream-hi); border-color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(var(--sky-1), var(--sky-2) 55%, var(--sky-3)); border-bottom: var(--line) solid var(--ink); }
.hero .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 22px; padding-bottom: 34px; }
.hero h1 { font-size: 54px; }
.pitch { text-wrap: balance; margin: 10px auto 0; max-width: 460px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 170px; z-index: 0; }
.mountains svg { width: 100%; height: 100%; display: block; }
.cloud { position: absolute; z-index: 1; height: 26px; background: #fff; border-radius: 3px; box-shadow: 24px -14px 0 -1px #fff, 52px -4px 0 0 #fff; opacity: .95; animation: drift 46s linear infinite alternate; }
.cloud-1 { left: 4%; top: 120px; width: 80px; }
.cloud-2 { right: 8%; top: 70px; width: 66px; animation-duration: 60s; }
.cloud-3 { left: 44%; top: 30px; width: 54px; opacity: .75; animation-duration: 70s; }
.gull { position: absolute; z-index: 1; width: 26px; height: 12px; display: none; }
.gull path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gull-1 { left: 30%; top: 150px; }
.gull-2 { right: 20%; top: 200px; transform: scale(.8); }

/* the tappable run stage (no stamina bar, no log counter) */
.stage { position: relative; width: min(100%, 380px); height: 390px; margin: 4px auto 0; touch-action: manipulation; }
.ground { position: absolute; left: -4%; right: -4%; bottom: 0; }
.ground svg { width: 100%; height: auto; display: block; }
.ground .hull polygon { fill: var(--ink); stroke: var(--ink); stroke-width: 10; stroke-linejoin: round; }
.tree-wrap { position: absolute; left: 50%; bottom: 86px; width: 150px; margin-left: -75px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tree { width: 100%; height: auto; transform-origin: 50% 96%; animation: idle 2.6s ease-in-out infinite; }
.tree.hit { animation: squash .32s cubic-bezier(.3, 1.6, .5, 1); }
.tree.fell { animation: fell .45s cubic-bezier(.5, -0.4, .7, 1) forwards; }
.tree.grow { animation: grow .5s cubic-bezier(.3, 1.7, .5, 1); }
.shadow { position: absolute; left: 50%; bottom: 78px; width: 130px; height: 26px; margin-left: -65px; border-radius: 50%; background: rgba(39, 33, 25, .22); }
.hint { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 17px; white-space: nowrap; width: max-content; pointer-events: none; animation: hint 1.4s ease-in-out infinite; }
.hint img { width: 28px; height: 28px; transform: rotate(-30deg); }
.hint.gone { display: none; }
.dmg { position: absolute; font-weight: 700; font-size: 30px; color: #fff; -webkit-text-stroke: 6px var(--dmg); paint-order: stroke fill; pointer-events: none; }
.dmg.crit { color: var(--gold); -webkit-text-stroke-color: var(--red); font-size: 38px; }
.droplog { position: absolute; width: 38px; height: 38px; pointer-events: none; z-index: 3; }
.chipwood { position: absolute; width: 10px; height: 10px; background: var(--wood); border: 2px solid var(--ink); pointer-events: none; }
.toast { position: absolute; z-index: 5; right: -4px; top: 0; display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 14px 8px 8px; text-align: left; background: var(--gold); border: var(--line) solid var(--ink); border-bottom-width: 7px; border-radius: 14px; transform: rotate(2deg); }
.toast img { width: 40px; height: 40px; flex: none; }
.toast b { display: block; font-size: 15px; } .toast span { font-size: 13px; }

/* ---------- the wooden sign: a static frame of two posts and a crossbar.
   The "Coming soon" plank hangs from the crossbar and swings; the badge sits on a
   lower plank nailed to the posts and never moves. ---------- */
.sign { position: relative; width: min(100%, 360px); margin: 18px auto 0; padding: 0 22px 18px; }
.sign .post { position: absolute; top: 0; bottom: 0; width: 18px; background: linear-gradient(90deg, var(--wood-lt), var(--wood) 40%, var(--wood-dk)); border: var(--line) solid var(--ink); border-radius: 6px 6px 3px 3px; }
.sign .post.l { left: 6px; } .sign .post.r { right: 6px; }
.sign .bar { position: relative; z-index: 1; height: 22px; margin: 0 -22px; background: linear-gradient(var(--wood-lt), var(--wood) 55%, var(--wood-dk)); border: var(--line) solid var(--ink); border-radius: 8px; }
.sign .bar::before, .sign .bar::after { content: ""; position: absolute; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.sign .bar::before { left: 11px; } .sign .bar::after { right: 11px; }
.hang { position: relative; z-index: 2; margin: 16px 6px 0; transform-origin: 50% -16px; animation: swing 4s ease-in-out infinite; }
.hang::before, .hang::after { content: ""; position: absolute; top: -19px; width: 6px; height: 21px; border-radius: 3px; background: repeating-linear-gradient(var(--ink) 0 5px, #5d5246 5px 7px); }
.hang::before { left: 24%; } .hang::after { right: 24%; }
.plank { padding: 10px 14px 8px; border: var(--line) solid var(--ink); border-bottom-width: var(--foot); border-radius: 12px; color: var(--cream-hi); text-align: center; text-wrap: balance;
  background: repeating-linear-gradient(180deg, var(--wood) 0 26px, var(--wood-dk) 26px 29px);
  font-weight: 700; font-size: 17px; line-height: 1.25; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.plank b { display: block; font-size: min(32px, 9vw); color: var(--gold); }
.lower { position: relative; z-index: 1; margin: 18px -12px 0; padding: 10px; border: var(--line) solid var(--ink); border-bottom-width: var(--foot); border-radius: 12px;
  background: repeating-linear-gradient(180deg, var(--wood) 0 30px, var(--wood-dk) 30px 33px); }
.lower .nail { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #6F6A62; border: 2px solid var(--ink); }
.lower .nail.l { left: 6px; } .lower .nail.r { right: 6px; }
/* Official badge: unlinked, unaltered, no motion; clear space = 1/4 of the badge height. */
.plate { display: block; width: max-content; margin: 0 auto; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 12px; }
.badge-space { display: block; padding: 14px; }
.gp-badge { width: 189px; height: 56px; }

/* ---------- reel (tilted phone) ---------- */
.reel { padding: 46px 0 40px; background: var(--cream); }
.reel .wrap { display: grid; justify-items: center; gap: 30px; }
.phone { position: relative; width: 210px; padding: 10px; background: var(--ink); border-radius: 34px; box-shadow: 0 12px 0 rgba(39, 33, 25, .18); transform: rotate(-4deg); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); cursor: pointer; }
.phone:hover { transform: rotate(-1deg) scale(1.03); }
.phone::before { content: ""; position: absolute; left: 50%; top: 16px; width: 54px; height: 8px; margin-left: -27px; border-radius: 99px; background: #3c3429; z-index: 2; }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; display: block; background: #1d2a24; cursor: pointer; }
.play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--green); border: var(--line) solid var(--ink); border-bottom-width: 9px; display: grid; place-items: center; cursor: pointer; animation: beat 1.6s ease-in-out infinite; }
.play::before { content: ""; margin-left: 8px; border-left: 28px solid var(--cream-hi); border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.phone.playing .play { display: none; }
.reel .copy { text-align: center; max-width: 520px; }
.reel .copy p { font-size: 18px; line-height: 1.4; margin: 10px 0 0; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 15px; }
.facts img { width: 30px; height: 30px; }

/* ---------- what you do: game cards ---------- */
.do { padding: 44px 0 46px; background: #E8F3D8; border-top: var(--line) solid var(--ink); }
.do .head-row { text-align: center; }
.do .sub, .biomes .sub { margin: 6px 0 0; font-size: 17px; text-wrap: balance; }
.cards { display: grid; gap: 22px; max-width: 420px; margin: 26px auto 0; }
.card { background: var(--cream); border: var(--line) solid var(--ink); border-bottom-width: 7px; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 rgba(39, 33, 25, .14); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card .bandh { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-bottom: var(--line) solid var(--ink); color: var(--cream-hi); font-weight: 700; font-size: 23px; line-height: 1.2; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.card .bandh img { width: 42px; height: 42px; margin: -6px 0; }
.card .n { margin-left: auto; font-size: 15px; background: var(--cream); color: var(--ink); -webkit-text-stroke: 0; border: 2px solid var(--ink); border-radius: 99px; padding: 2px 9px; }
.card.c1 .bandh { background: var(--green); } .card.c2 .bandh { background: var(--gold); } .card.c3 .bandh { background: var(--orange); }
.card.c2 { animation-delay: .08s; } .card.c3 { animation-delay: .16s; }
.card .shot { position: relative; margin: 12px; border: var(--line) solid var(--ink); border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1; background: #9ED6F2; }
.card .shot img, .card .shot video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The #still renders show the poster frame; this tag marks the cards that loop a clip there. */
.loops { display: none; position: absolute; right: 8px; bottom: 8px; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; background: rgba(39, 33, 25, .82); color: var(--cream-hi); border-radius: 99px; font-weight: 700; font-size: 13px; }
.loops svg { width: 13px; height: 13px; }
.still .loops { display: inline-flex; }
.card p { margin: 0 16px 16px; font-size: 16px; line-height: 1.35; }
.reveal { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }

/* ---------- biome strip with two locked web-era gates ---------- */
.biomes { position: relative; padding: 44px 0 50px; border-top: var(--line) solid var(--ink); background: linear-gradient(180deg, #CFEBC0 0%, #CFEBC0 52%, #6E6A9E 74%, #3E3A63 100%); overflow: hidden; }
.biomes .head-row { text-align: center; }
.trail { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 6px; margin: 26px auto 0; }
.biome { width: 31%; margin: 0; text-align: center; }
.biome .gate { position: relative; width: 100px; height: 100px; margin: 0 auto; }
.biome .gate img { width: 100%; height: 100%; }
.biome.open .gate img { animation: hop 1s cubic-bezier(.3, 1.8, .5, 1) both; }
.biome.b2 .gate img { animation-delay: .12s; } .biome.b3 .gate img { animation-delay: .24s; }
.biome .name { display: inline-block; max-width: 100%; margin-top: 6px; padding: 3px 10px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 99px; font-weight: 700; font-size: min(14px, 4.2vw); line-height: 1.2; text-wrap: balance; }
.biome .tag { display: none; margin: 8px 0 0; font-size: 14px; line-height: 1.3; }
.biome.locked .gate img { filter: brightness(.16) saturate(.4) drop-shadow(0 0 10px rgba(178, 140, 255, .85)); }
.biome.locked .gate .q { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); font-weight: 700; font-size: 46px; line-height: 1; color: #E9DCFF; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; animation: qbob 2.4s ease-in-out infinite; }
.biome.b5 .gate .q { animation-delay: -1.2s; }
.biome.locked .gate .lock { position: absolute; left: 50%; bottom: 4%; width: 30%; height: auto; margin-left: -15%; filter: drop-shadow(0 2px 0 var(--ink)); }
.biome.locked .gate .sparkle { position: absolute; width: 8px; height: 8px; background: #D9C6FF; transform: rotate(45deg); animation: twinkle 2.2s ease-in-out infinite; }
.sparkle.s1 { left: 8%; top: 20%; } .sparkle.s2 { right: 12%; top: 8%; animation-delay: -1s; }
.sparkle.s3 { left: 14%; top: 6%; animation-delay: -.5s; } .sparkle.s4 { right: 6%; top: 30%; animation-delay: -1.6s; }
.biome.locked .name { background: #2E2A48; color: #E9DCFF; }
.biome.locked .tag { color: var(--cream-hi); }
.biome.locked:hover .gate { animation: rattle .4s ease-in-out; }

/* ---------- placeholder and 404 pages ---------- */
.sub-page { display: flex; flex-direction: column; min-height: 100vh; }
.soon { flex: 1; padding: 40px 0 56px; background: linear-gradient(var(--sky-1), var(--sky-2) 55%, var(--sky-3)); }
.soon-card { max-width: 560px; margin: 0 auto; background: var(--cream); border: var(--line) solid var(--ink); border-bottom-width: 7px; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 rgba(39, 33, 25, .14); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.soon-band { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--green); border-bottom: var(--line) solid var(--ink); }
.soon-band.band-orange { background: var(--orange); }
.soon-band img { width: 48px; height: 48px; margin: -6px 0; flex: none; }
.soon-band h1 { min-width: 0; margin: 0; font-size: 26px; line-height: 1.15; color: var(--cream-hi); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.soon-body { padding: 18px 20px 22px; }
.soon-tag { display: inline-block; padding: 3px 12px; background: var(--gold); border: var(--line) solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 15px; }
.soon-body p { margin: 12px 0 20px; font-size: 18px; line-height: 1.4; }

/* ---------- long-form pages (privacy policy) ---------- */
.legal { flex: 1; padding: 24px 0 40px; background: linear-gradient(var(--sky-1), var(--sky-2) 320px, var(--sky-3) 640px); }
.doc { max-width: 780px; margin: 0 auto; background: var(--cream); border: var(--line) solid var(--ink); border-bottom-width: 7px; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 rgba(39, 33, 25, .14); }
.doc-body { padding: 18px 18px 26px; font-weight: 400; font-size: 17px; line-height: 1.6; overflow-wrap: break-word; }
.doc-body h2 { margin: 30px 0 8px; font-weight: 700; font-size: 21px; line-height: 1.25; scroll-margin-top: 76px; -webkit-hyphens: auto; hyphens: auto; }
.doc-body h2::after { content: ""; display: block; width: 44px; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--wood); }
.doc-body p, .doc-body ul { margin: 0 0 14px; }
.doc-body ul { padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--wood-dk); }
.doc-body strong { font-weight: 600; }
.doc-body a { color: #2F6F3A; font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc-body a:hover { color: var(--ink); }
.doc-body .meta { margin-bottom: 18px; font-weight: 500; font-size: 15px; color: #6B6257; }
.doc-body .translation-note { padding: 10px 14px; background: #FCE7A4; border: var(--line) solid var(--ink); border-radius: 12px; font-size: 15px; line-height: 1.45; }
.doc-body .summary { margin-bottom: 8px; padding: 14px 16px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-left-width: 9px; border-left-color: var(--green); border-radius: 14px; }
.doc-body .summary p { margin: 0; }

/* ---------- press kit ---------- */
.press { flex: 1; padding: 26px 0 44px; background: linear-gradient(var(--sky-1), var(--sky-2) 360px, var(--sky-3) 760px, #E8F3D8 1200px); }
.press-hero { text-align: center; }
.press-icon { width: 76px; height: 76px; margin: 0 auto 10px; border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: 0 5px 0 rgba(39, 33, 25, .18); animation: hop 1s cubic-bezier(.3, 1.8, .5, 1) both; }
.press-hero .title { font-size: 40px; }
.lede { max-width: 640px; margin: 10px auto 0; font-size: 18px; line-height: 1.4; font-weight: 600; text-wrap: balance; }
.press-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.btn-big { padding: 10px 18px 9px 14px; font-size: 19px; }
.btn .dl-ico { width: 22px; height: 22px; flex: none; }
.dl-ico path { fill: none; stroke: var(--cream-hi); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; paint-order: stroke; }
.zip-meta { font-size: 15px; font-weight: 600; color: #3D4A3F; text-align: center; }
.zip-meta a { color: #2F6F3A; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.press-grid { display: grid; gap: 22px; margin-top: 28px; }
.pcard { min-width: 0; background: var(--cream); border: var(--line) solid var(--ink); border-bottom-width: 7px; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 rgba(39, 33, 25, .14); animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; scroll-margin-top: 76px; }
.pband { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; background: var(--green); border-bottom: var(--line) solid var(--ink); color: var(--cream-hi); font-weight: 700; font-size: 23px; line-height: 1.2; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.pband img { width: 44px; height: 44px; margin: -6px 0; flex: none; }
.pband.band-gold { background: var(--gold); } .pband.band-orange { background: var(--orange); } .pband.band-blue { background: var(--blue); }
.pbody { padding: 16px; }
.pnote { margin: 14px 16px 0; font-size: 16px; line-height: 1.35; }
/* fact sheet */
.facts-list { margin: 0; padding: 6px 16px 14px; }
.facts-list > div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 2px dashed rgba(39, 33, 25, .18); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { font-weight: 700; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; color: var(--wood-dk); }
.facts-list dd { margin: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.facts-list a, .rules a { color: #2F6F3A; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.facts-list .soon-tag { font-size: 15px; }
/* descriptions */
.desc + .desc { margin-top: 18px; }
.desc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.desc-head h3 { margin: 0; font-size: 19px; }
.desc-text { margin-top: 8px; padding: 12px 14px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 14px; font-weight: 400; font-size: 16px; line-height: 1.5; }
.desc-text p { margin: 0; } .desc-text p + p { margin-top: 10px; }
.btn-sm { gap: 5px; padding: 3px 12px 2px; font-size: 15px; border-bottom-width: 5px; border-radius: 11px; -webkit-text-stroke-width: 3px; }
.btn.copy { background: var(--blue); }
.btn.copy.done { background: var(--green); animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
/* download tiles */
.tiles { display: grid; gap: 16px; padding: 16px; grid-template-columns: minmax(0, 1fr); }
.tile { display: flex; flex-direction: column; min-width: 0; margin: 0; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 16px; overflow: hidden; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.tile:hover { transform: translateY(-4px) rotate(-.6deg); }
.tile .pv { display: grid; place-items: center; min-height: 0; border-bottom: var(--line) solid var(--ink); background: #9ED6F2; }
.tile .pv img { width: 100%; height: auto; }
.tile .pv-light, .tile .pv-dark, .tile .pv-icon { padding: 26px 20px; min-height: 150px; }
.tile .pv-light { background: repeating-conic-gradient(#FFFDF6 0% 25%, #F3EAD6 0% 50%) 50% / 22px 22px; }
.tile .pv-dark { background: #1D2A24; }
.tile .pv-icon { background: repeating-conic-gradient(#FFFDF6 0% 25%, #F3EAD6 0% 50%) 50% / 22px 22px; }
.tile .pv-icon img { width: 120px; border-radius: 26px; box-shadow: 0 4px 0 rgba(39, 33, 25, .2); }
.tile figcaption { padding: 10px 12px 0; line-height: 1.25; }
.tile figcaption b { display: block; font-size: 17px; }
.tile figcaption span { font-size: 14px; color: #6B6257; }
.dls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 10px 12px 12px; }
.dl { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 10px 3px; background: var(--green); color: var(--cream-hi); border: var(--line) solid var(--ink); border-bottom-width: 5px; border-radius: 11px; font-weight: 700; font-size: 15px; white-space: nowrap; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; transition: transform .18s cubic-bezier(.3, 1.8, .5, 1); }
.dl small { font-size: 12px; font-weight: 600; -webkit-text-stroke-width: 2.5px; }
.dl:hover { transform: translateY(-2px) scale(1.04); }
.dl:active { border-bottom-width: var(--line); border-top-width: 5px; transform: scale(1.06, .9); transition-duration: .06s; }
.tiles-art .pv { aspect-ratio: 16 / 9; padding: 10px; background: repeating-conic-gradient(#FFFDF6 0% 25%, #F3EAD6 0% 50%) 50% / 22px 22px; }
.tiles-art .pv img { width: 100%; height: 100%; object-fit: contain; }
.tiles-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile-shot .pv { aspect-ratio: 9 / 16; }
.tile-shot .pv img { height: 100%; object-fit: cover; }
.tile-shot figcaption b { font-size: 15px; }
.tile-shot .dls { padding: 8px 6px 10px; }
/* video */
.press-video { display: grid; gap: 18px; justify-items: center; padding: 18px 16px 20px; }
.vframe { width: min(100%, 260px); padding: 9px; background: var(--ink); border-radius: 30px; box-shadow: 0 10px 0 rgba(39, 33, 25, .18); }
.vframe video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px; background: #1D2A24; }
.vcopy { text-align: center; }
.vcopy h3 { margin: 0; font-size: 22px; }
.vcopy p { margin: 8px 0 16px; font-size: 17px; line-height: 1.4; }
.vcopy .btn { white-space: normal; text-align: left; }
/* usage guidelines */
.rules { display: grid; gap: 10px; margin: 0; padding: 16px; list-style: none; }
.rules li { position: relative; padding: 10px 14px 10px 50px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 14px; font-size: 17px; line-height: 1.35; }
.rules li::before { position: absolute; left: 10px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border: var(--line) solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; line-height: 1; color: var(--cream-hi); }
.rules .yes::before { content: "\2713"; background: var(--green); }
.rules .no::before { content: "\2715"; background: var(--red); }
.rules .star::before { content: "\2605"; background: var(--gold); color: var(--ink); }
.rules .mail::before { content: "@"; background: var(--blue); }

/* ---------- footer ---------- */
footer { padding: 26px 16px 112px; text-align: center; color: var(--cream-hi);
  background: repeating-linear-gradient(180deg, var(--wood) 0 44px, var(--wood-dk) 44px 48px); border-top: 4px solid var(--ink); }
footer .wordmark { font-size: 30px; display: inline-block; }
footer small { display: block; text-wrap: balance; margin-top: 10px; font-size: 14px; font-weight: 700; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
footer small + small { margin-top: 4px; font-size: 12px; }

/* ---------- phone tab bar ---------- */
.tabbar { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; background: var(--cream); border: var(--line) solid var(--ink); border-bottom-width: 7px; border-radius: 22px; }
.tabbar a { display: grid; justify-items: center; min-width: 0; padding: 4px 0 2px; border-radius: 14px; font-weight: 700; font-size: min(13px, 3.3vw); line-height: 1.2; white-space: nowrap; border: var(--line) solid transparent; }
.tabbar a img { width: 36px; height: 36px; transition: transform .25s cubic-bezier(.3, 2, .5, 1); }
.tabbar a.on { background: var(--green); color: var(--cream-hi); border-color: var(--ink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.tabbar a.on img { transform: translateY(-10px) scale(1.15); }

/* ---------- motion ---------- */
@keyframes idle { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg) scaleY(1.015); } }
@keyframes squash { 0% { transform: scale(1); } 30% { transform: scale(1.14, .84) rotate(-4deg); } 65% { transform: scale(.94, 1.08) rotate(2deg); } 100% { transform: scale(1); } }
@keyframes fell { 0% { transform: scale(1); } 30% { transform: scale(1.15, .8); } 100% { transform: scale(0) rotate(40deg); opacity: 0; } }
@keyframes grow { 0% { transform: scale(0, .2); } 100% { transform: scale(1); } }
@keyframes hint { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-6px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes swing { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes hop { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-10px) scale(.95, 1.08); } 100% { transform: translateY(0) scale(1); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); } }
@keyframes qbob { 0%, 100% { transform: translateX(-50%) translateY(0) rotate(-6deg); } 50% { transform: translateX(-50%) translateY(-6px) rotate(6deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: rotate(45deg) scale(.4); } 50% { opacity: 1; transform: rotate(45deg) scale(1); } }
@keyframes rattle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }
@keyframes drift { to { translate: 70px 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* #still: the frozen frame used for the PNG renders (set by site.js) */
.still .tree { animation: none; transform: scale(1.1, .88) rotate(-3deg); }
.still .hang { animation: none; transform: rotate(-1.2deg); }

/* ---------- tablet: 601-1023 ---------- */
@media (min-width: 601px) {
  .wrap { padding: 0 28px; }
  .topbar .wrap { height: 68px; gap: 14px; }
  .brand .wordmark { display: block; }
  .hero .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: 24px; padding-top: 34px; padding-bottom: 46px; }
  .hero h1, .pitch { grid-column: 1 / -1; }
  .hero h1 { font-size: 76px; }
  .pitch { font-size: 21px; max-width: 560px; }
  .stage { grid-column: 1; margin-top: 10px; }
  .sign { grid-column: 2; margin-top: 10px; }
  .reel .wrap { grid-template-columns: 260px 1fr; align-items: center; gap: 44px; justify-items: start; }
  .phone { width: 230px; justify-self: center; }
  .biomes { background: linear-gradient(100deg, #CFEBC0 0%, #CFEBC0 48%, #6E6A9E 64%, #3E3A63 100%); }
  .reel .copy { text-align: left; }
  .facts { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 16px; }
  .card .bandh { font-size: 20px; }
  .card p { font-size: 15px; }
  .trail { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .biome { width: auto; flex: 1; min-width: 0; }
  .biome .gate { width: 118px; height: 118px; }
  .biome .tag { display: block; }
  .soon { padding: 64px 0 80px; }
  .soon-band h1 { font-size: 34px; }
  .legal { padding: 44px 0 64px; }
  .doc-body { padding: 26px 40px 36px; font-size: 18px; }
  .doc-body h2 { font-size: 24px; margin-top: 38px; }
  .press { padding: 44px 0 64px; }
  .press-hero .title { font-size: 52px; }
  .lede { font-size: 20px; }
  .press-actions { flex-direction: row; justify-content: center; gap: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 18px; }
  .tiles-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts-list > div { grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .press-video { grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 32px; padding: 24px 28px; justify-items: start; }
  .vcopy { text-align: left; }
}

/* The top bar links need about 710 px in the longest language (pt-br); below 768 the
   phone tab bar stays. */
@media (min-width: 768px) {
  .links { display: flex; }
  .tabbar { display: none; }
  footer { padding-bottom: 28px; }
}

/* ---------- desktop: >= 1024 ---------- */
@media (min-width: 1024px) {
  .wrap { padding: 0 48px; }
  .topbar .wrap { height: 74px; }
  .gull { display: block; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto auto 1fr; column-gap: 56px; min-height: 780px; padding-top: 56px; padding-bottom: 70px; text-align: left; align-items: start; }
  .hero h1 { grid-column: 1; grid-row: 1; font-size: 104px; }
  .pitch { grid-column: 1; grid-row: 2; margin: 18px 0 0; font-size: 26px; max-width: 500px; }
  .sign { grid-column: 1; grid-row: 3; width: 430px; margin: 34px 0 0; }
  .plank b { font-size: 40px; } .plank { font-size: 20px; padding: 12px 18px 10px; }
  .stage { grid-column: 2; grid-row: 1 / span 3; width: 100%; max-width: 560px; height: 640px; align-self: end; margin: 0 auto; }
  .tree-wrap { width: 230px; margin-left: -115px; bottom: 132px; }
  .shadow { width: 200px; margin-left: -100px; bottom: 120px; height: 36px; }
  .hint { top: 36px; font-size: 19px; }
  .toast { top: 120px; right: 0; }
  .mountains { height: 240px; }
  .reel { padding: 80px 0 76px; }
  .reel .wrap { grid-template-columns: 420px 1fr; gap: 70px; max-width: 1100px; }
  .phone { width: 290px; justify-self: center; }
  .reel .copy { max-width: 560px; }
  .reel .title, .do .title, .biomes .title { font-size: 46px; -webkit-text-stroke-width: 9px; }
  .reel .copy p { font-size: 21px; }
  .do { padding: 76px 0 84px; }
  .do .sub, .biomes .sub { font-size: 20px; }
  .cards { gap: 32px; margin-top: 40px; }
  .card .bandh { font-size: 24px; }
  .card p { font-size: 17px; }
  .biomes { padding: 76px 0 86px; }
  .trail { margin-top: 44px; }
  .trail::before { content: ""; position: absolute; left: 8%; right: 8%; top: 84px; height: 10px; background: repeating-linear-gradient(90deg, var(--wood) 0 18px, transparent 18px 30px); z-index: 0; }
  .biome { position: relative; z-index: 1; }
  .biome .gate { width: 170px; height: 170px; }
  .biome .name { font-size: 17px; padding: 4px 14px; }
  .biome .tag { font-size: 15px; max-width: 200px; margin: 10px auto 0; }
  .biome.locked .gate .q { font-size: 72px; -webkit-text-stroke-width: 8px; }
  footer { padding: 34px 16px 30px; }
  .soon { padding: 90px 0 110px; }
  .legal { padding: 64px 0 90px; }
  .doc-body { padding: 32px 56px 44px; }
  .doc-body h2 { scroll-margin-top: 92px; }
  .press { padding: 60px 0 90px; }
  .press-hero .title { font-size: 64px; -webkit-text-stroke-width: 10px; }
  .press-icon { width: 96px; height: 96px; border-radius: 24px; }
  .press-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; margin-top: 40px; align-items: start; }
  .press-grid .span { grid-column: 1 / -1; }
  .pcard { scroll-margin-top: 92px; }
  .pband { font-size: 26px; padding: 9px 18px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 22px; gap: 22px; }
  .tiles-art { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pnote { margin: 18px 22px 0; }
  .press-video { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 28px 40px; }
  .vcopy { max-width: 560px; }
  .vcopy h3 { font-size: 28px; }
  .vcopy p { font-size: 19px; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px; gap: 14px; }
}

/* ---------- what you do: the Upgrades replica (tools/site_upgrades.py, site.js) ----------
   A copy of the game's Stats tab: group panels with a coloured band, rows with the art
   tile, name, value now -> next and the price plate; a tapped row opens with its
   description, the big now -> next, the tier chip and bar, and a big Buy. Phone: the card
   is simply taller. Tablet and desktop: the card has its own row under Chop and Sell,
   with the two groups side by side on desktop (PO 2026-10-17: layout A). */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card-upg { overflow: clip; }
.card-upg .lead { margin: 12px 16px 0; font-size: 16px; line-height: 1.35; }
.upg { --row: #F5E8CA; --open: #FFFAEE; --muted: #786C5C; --up-green: #408C3A; --tier-gold: #C4820A; --short: #CEC7BA; --price-red: #CC302C;
  position: relative; margin: 10px 12px 14px; container-type: inline-size; }
.upg-top { position: sticky; top: 64px; z-index: 3; display: flex; align-items: center; gap: 12px; margin: 0 -12px 8px; padding: 8px 12px; background: var(--cream); }
.upg-coins { position: relative; display: inline-flex; align-items: center; margin-left: 12px; padding: 2px 14px 2px 22px; background: var(--cream-hi); border: var(--line) solid var(--ink); border-radius: 99px; font-weight: 700; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.upg-coins img { position: absolute; left: -16px; top: 50%; width: 36px; height: 36px; margin-top: -18px; }
.upg-coins.bump { animation: upg-bump .36s cubic-bezier(.3, 1.6, .5, 1); }
.upg-coins.no { animation: upg-no .36s ease-in-out; background: #F7D2CC; }
.upg .upg-hint { flex: 1; margin: 0; font-size: 14px; line-height: 1.25; color: var(--muted); text-align: right; text-wrap: balance; }
.upg-group { margin-bottom: 12px; background: var(--row); border: var(--line) solid var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 0 rgba(39, 33, 25, .16); }
.upg-band { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-bottom: var(--line) solid var(--ink); color: var(--cream-hi); font-weight: 700; font-size: 20px; line-height: 1.2; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.upg-band img { width: 30px; height: 30px; margin: -4px 0; }
.upg-band.b-orange { background: #F4903C; } .upg-band.b-blue { background: #71AAFC; }
.upg-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: 2px solid rgba(0, 0, 0, .1); transition: background-color .2s; }
.upg-band + .upg-row { border-top: 0; }
.upg-row.open { background: var(--open); }
.upg-head { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "art name" "art val"; column-gap: 10px; align-items: center; min-height: 64px; padding: 8px 6px 8px 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.upg-head:focus-visible { outline-offset: -3px; }
.upg-art { grid-area: art; display: grid; place-items: center; width: 46px; height: 46px; border: var(--line) solid var(--ink); border-radius: 12px; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .2) 0 12deg, transparent 12deg 30deg), var(--a); }
.upg-art img { width: 36px; height: 36px; }
.upg-art.a-orange { --a: #F4903C; } .upg-art.a-red { --a: #FC746E; } .upg-art.a-blue { --a: #71AAFC; } .upg-art.a-green { --a: #74C95C; } .upg-art.a-gold { --a: #FAC738; }
.upg-art.pop { animation: upg-pop .34s cubic-bezier(.3, 1.6, .5, 1); }
.upg-name { grid-area: name; align-self: end; font-weight: 700; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; }
.upg-val { grid-area: val; align-self: start; font-weight: 700; font-size: 15px; line-height: 1.3; white-space: nowrap; }
.upg .now { color: var(--muted); }
.upg .next, .upg .sfx { color: var(--up-green); }
.upg .arr::before { content: "\2192"; margin: 0 4px; color: #968A78; font-style: normal; }
.upg .tierup .next { color: var(--tier-gold); }
.upg .maxed .arr, .upg .maxed .next, .upg .maxed .sfx { display: none; }
.upg-lv { display: none; position: absolute; top: 8px; right: 10px; padding: 1px 9px; background: var(--ink); color: var(--cream-hi); border-radius: 99px; font-weight: 700; font-size: 13px; line-height: 1.4; }
.upg-lv.pop { animation: upg-pop .34s cubic-bezier(.3, 1.6, .5, 1); }
.upg-plate, .upg-buy { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: var(--green); border: var(--line) solid var(--ink); border-bottom-width: 6px; color: var(--cream-hi); font: inherit; font-weight: 700; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; cursor: pointer; transition: transform .18s cubic-bezier(.3, 1.8, .5, 1); }
.upg-plate { min-width: 86px; height: 46px; margin-right: 10px; padding: 0 10px; border-radius: 14px; font-size: 20px; }
.upg-plate img { width: 24px; height: 24px; }
.upg-plate:active, .upg-buy:active { border-bottom-width: var(--line); border-top-width: 6px; transform: scale(1.06, .9); transition-duration: .06s; }
.upg .m { display: none; }
.upg .short .upg-plate, .upg .short .upg-buy { background: var(--short); cursor: not-allowed; }
.upg .short .p { color: var(--price-red); -webkit-text-stroke: 0; }
.upg .maxed .upg-plate, .upg .maxed .upg-buy { background: var(--short); color: var(--muted); -webkit-text-stroke: 0; font-size: 14px; cursor: default; }
.upg .maxed .upg-buy { font-size: 18px; }
.upg .maxed .p, .upg .maxed .w, .upg .maxed .upg-plate img, .upg .maxed .upg-buy img { display: none; }
.upg .maxed .m { display: inline; }
.upg-plate.squash, .upg-buy.squash { animation: upg-squash .42s cubic-bezier(.3, 1.6, .5, 1); }
.upg-plate.no, .upg-buy.no { animation: upg-no .36s ease-in-out; }
.upg-row.open .upg-val, .upg-row.open .upg-plate { display: none; }
.upg-row.open .upg-lv { display: block; }
.upg-row.open .upg-head { grid-template-areas: "art name"; align-items: start; padding-right: 64px; }
.upg-row.open .upg-name { align-self: start; margin-top: 4px; }
.upg-fold { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .18s ease-in, visibility 0s .18s; }
.upg-row.open .upg-fold { margin-top: -32px; grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s cubic-bezier(.3, 1.3, .5, 1), visibility 0s; }
.upg-in { min-height: 0; overflow: hidden; padding: 0 12px; text-align: center; pointer-events: none; }
.upg-in .upg-buy { pointer-events: auto; }
.upg-row.open .upg-in { animation: upg-unfold .42s cubic-bezier(.3, 1.5, .5, 1); }
.upg .upg-desc { margin: 0 0 6px 54px; font-size: 15px; line-height: 1.3; color: #6E6254; text-align: left; }
.upg .upg-big { margin: 4px 0 6px; font-weight: 700; font-size: 32px; line-height: 1.15; }
.upg-big .now { color: var(--ink); }
.upg-big .sfx { font-size: 20px; }
.upg-big .next.pop, .upg-val .next.pop, .upg-big .now.pop { display: inline-block; animation: upg-pop .38s cubic-bezier(.3, 1.6, .5, 1); }
.upg-tier { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; font-weight: 700; }
.upg-tier .chip { padding: 1px 9px; background: var(--ink); color: var(--cream-hi); border-radius: 99px; font-size: 13px; line-height: 1.4; }
.upg-tier .chip.pop { animation: upg-pop .5s cubic-bezier(.3, 1.6, .5, 1); background: var(--tier-gold); }
.upg-tier .bar { position: relative; width: 150px; height: 18px; background: #E3DCCD; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.upg-tier .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(180deg, #A8E57A, #6CC24A); transition: width .35s cubic-bezier(.3, 1.4, .5, 1); }
.upg-tier .bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), rgba(39, 33, 25, .18) calc(20% - 2px) 20%); }
.upg-tier .bar b { position: relative; z-index: 1; display: block; color: var(--cream-hi); font-size: 12px; line-height: 14px; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.upg-tier .bar.flash i { animation: upg-flash .5s ease-out; }
.upg-tier .up { display: none; color: var(--tier-gold); font-size: 14px; }
.upg .tierup .upg-tier .up { display: inline; }
.upg-buy { width: 100%; min-height: 56px; margin: 10px 0 12px; padding: 4px 12px; border-radius: 16px; border-bottom-width: 7px; font-size: 24px; -webkit-text-stroke-width: 5px; }
.upg-buy img { width: 30px; height: 30px; margin-left: 4px; }
.upg-fly { position: absolute; z-index: 4; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; }
.upg-minus { position: absolute; z-index: 4; color: var(--price-red); font-weight: 700; font-size: 20px; -webkit-text-stroke: 4px var(--cream-hi); paint-order: stroke fill; pointer-events: none; white-space: nowrap; }
.upg-more { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: linear-gradient(110deg, #6E6A9E, #3E3A63); border: var(--line) solid var(--ink); border-radius: 16px; color: var(--cream-hi); box-shadow: 0 4px 0 rgba(39, 33, 25, .16); overflow: hidden; }
.upg-more .lock { flex: none; width: 52px; height: 52px; animation: upg-rock 2.6s ease-in-out infinite; }
.upg-more b { display: block; font-size: 18px; line-height: 1.2; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.upg-more span { display: block; font-size: 14px; line-height: 1.3; opacity: .9; }
.upg-more .ghosts { display: flex; gap: 2px; margin-left: auto; }
.upg-more .ghosts img { width: 34px; height: 34px; filter: grayscale(1) brightness(.9); opacity: .45; }
@container (max-width: 420px) { .upg-more .ghosts { display: none; } }
@container (min-width: 460px) {
  .upg-head { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "art name val"; }
  .upg-name, .upg-val { align-self: center; }
  .upg-val { padding-left: 8px; }
}
@keyframes upg-bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes upg-pop { 0% { transform: scale(1); } 35% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes upg-squash { 0% { transform: scale(1); } 25% { transform: scale(1.1, .84); } 55% { transform: scale(.95, 1.07); } 100% { transform: scale(1); } }
@keyframes upg-no { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes upg-unfold { 0% { transform: scale(.94); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); } }
@keyframes upg-flash { 0% { filter: brightness(1.5) saturate(1.4); } 100% { filter: none; } }
@keyframes upg-rock { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

@media (min-width: 601px) {
  .upg-top { top: 76px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
  .cards .card-upg { grid-column: 1 / -1; }
  .card-upg .lead { margin: 14px 18px 0; text-align: center; }
  .upg { margin: 8px 18px 18px; }
}
@media (min-width: 1024px) {
  .upg-top { top: 82px; }
  .cards { max-width: 1000px; }
  .card-upg .lead { font-size: 17px; }
  .upg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; align-items: start; }
  .upg-top, .upg-more { grid-column: 1 / -1; }
  .upg-group { margin-bottom: 14px; }
}
