/* Stoxa Valley: pixel stock farm (hero, game stage, claim, live harvests) */
@font-face { font-family: 'Press Start 2P'; src: url('/assets/fonts/press-start-2p.woff2') format('woff2'); font-display: swap; }
:root { --gold: #ffcf5a; --gold-2: #ff9d2e; --px: 'Press Start 2P', 'Courier New', monospace; }
.gold { color: var(--gold); }
.valley .cbar { position: absolute; left: 0; right: 0; top: 0; z-index: 5; background: linear-gradient(rgba(5,6,7,.75), transparent); }

/* ---------- hero ---------- */
.vhero { position: relative; min-height: min(78svh, 760px); display: grid; align-items: center; overflow: hidden; }
.vh-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.vh-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transition: opacity .8s; }
.vh-vid.on { opacity: 1; }
.vh-shade { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 45%, rgba(5,6,7,.25), rgba(5,6,7,.82) 75%), linear-gradient(transparent 55%, var(--ink) 98%); }
.vh-in { position: relative; text-align: center; padding: 120px 0 70px; display: grid; justify-items: center; gap: 18px; }
.vtitle { margin: 0; font: 400 clamp(40px, 8.4vw, 104px)/1.12 var(--px); letter-spacing: .02em; color: var(--gold);
  text-shadow: 0 4px 0 #8a4b10, 0 8px 0 #3a1d06, 0 0 40px rgba(255, 170, 60, .45); }
.vsub { margin: 4px 0 0; font-size: clamp(16px, 1.8vw, 20px); color: #e7e9e1; text-shadow: 0 2px 8px #000; max-width: 640px; }
.ea { font: 400 clamp(11px, 1.3vw, 14px)/1 var(--px); color: var(--gold); padding: 12px 16px; border: 3px solid var(--gold); background: rgba(5,6,7,.7); box-shadow: 4px 4px 0 #3a1d06; letter-spacing: .06em; }
.pbtn { display: inline-block; font: 400 clamp(13px, 1.4vw, 16px)/1 var(--px); color: #000; background: var(--volt); padding: 18px 26px; border: 0; box-shadow: 0 -4px 0 #7f9c10 inset, 4px 4px 0 #000; cursor: pointer; transition: transform .12s; letter-spacing: .04em; }
.pbtn:hover { transform: translateY(-2px); }
.pbtn:active { transform: translateY(2px); }
.feats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(760px, 100%); }
.feats li { padding: 12px 10px; background: rgba(5,6,7,.78); border: 2px solid rgba(255, 207, 90, .45); display: grid; gap: 7px; }
.feats b { font: 400 12px/1 var(--px); color: var(--gold); }
.feats span { font-size: 13px; color: var(--mute); }
@media (max-width: 640px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vh-in { padding-top: 100px; } }

/* ---------- game ---------- */
.vplay { padding: 30px 0 20px; scroll-margin-top: 10px; }
.vframe { border: 4px solid #3a1d06; box-shadow: 0 0 0 3px var(--gold), 0 30px 80px -30px #000; background: #0b0d10; }
.vhud { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px; background: #12100c; border-bottom: 3px solid #3a1d06; }
.basket { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px dashed rgba(255,255,255,.18); color: var(--dim); }
.slot i { font-style: normal; font-size: 18px; filter: grayscale(1); opacity: .5; }
.slot span { font: 400 10px/1 var(--px); }
.slot.got { border: 2px solid var(--volt); color: var(--volt); background: rgba(215,255,47,.08); animation: slotIn .45s var(--ease-spring); }
.slot.got i { filter: none; opacity: 1; }
@keyframes slotIn { from { transform: scale(1.25); } }
.vmute { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.15); }
.vstage { position: relative; height: min(70vh, 640px); min-height: 380px; overflow: hidden; touch-action: manipulation; }
@media (min-width: 900px) { .vstage { height: auto; aspect-ratio: 1920 / 1086; } }
.vstage canvas { width: 100%; height: 100%; cursor: pointer; }
.vtip { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 10px 14px; background: rgba(5,6,7,.86); border: 2px solid var(--gold); font-size: 14px; color: #e7e9e1; text-align: center; pointer-events: none; }
.vtip b { color: var(--gold); }
.vbubble { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); padding: 10px 14px; background: rgba(5,6,7,.9); border: 2px solid var(--volt); font: 400 11px/1.5 var(--px); color: var(--volt); text-align: center; max-width: calc(100% - 24px); pointer-events: none; }
.vbubble[hidden] { display: none; }
.vlabels { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 12px; background: #12100c; border-top: 3px solid #3a1d06; font-size: 13px; color: var(--mute); }
.vlabels b { font: 400 10px/1 var(--px); color: var(--gold); margin-right: 6px; }

/* bear cave */
.cave { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(80, 10, 20, .55), rgba(5,6,7,.96)); display: grid; grid-template-rows: auto 1fr; padding: 14px; }
.cave[hidden], .full[hidden] { display: none; }
.cv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-right: 46px; }
.cv-top b { font: 400 14px/1 var(--px); color: var(--down, #ff4d5e); }
.cv-top span { font: 400 11px/1 var(--px); color: #fff; }
.cv-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 10px; padding: 12px 0 0; }
.hole { position: relative; border: 2px solid rgba(255,255,255,.07); background: rgba(0,0,0,.35); overflow: hidden; }
.bear { position: absolute; inset: 10%; border: 0; background: none; opacity: 0; transform: translateY(40%); transition: opacity .12s, transform .12s; cursor: pointer; }
.bear.up { opacity: 1; transform: none; }
.bear svg { width: 100%; height: 100%; }
.bear.hit { opacity: 0; transform: scale(1.4) rotate(20deg); }
.cv-x { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border: 2px solid rgba(255,255,255,.3); font-size: 16px; }
.full { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,6,7,.72); }
.fl-in { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 26px; border: 3px solid var(--gold); background: rgba(12,10,8,.95); box-shadow: 6px 6px 0 #3a1d06; max-width: calc(100% - 30px); animation: slotIn .5s var(--ease-spring); }
.fl-in b { font: 400 clamp(16px, 2.4vw, 24px)/1.2 var(--px); color: var(--gold); }
.fl-in span { color: #e7e9e1; }

/* card drop: a stock card bursts out of the harvest, flips, then flies into the basket */
.cdrop { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.cdrop[hidden] { display: none; }
.cd-rays { position: absolute; width: 140%; aspect-ratio: 1; background: repeating-conic-gradient(rgba(255,207,90,.22) 0 10deg, transparent 10deg 20deg); border-radius: 50%; opacity: 0;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 70%); mask: radial-gradient(closest-side, #000 20%, transparent 70%); }
.cd-card { position: relative; }
.cd-card .scard { --w: clamp(120px, 22vh, 190px); }
.cd-t { position: absolute; bottom: 12%; font: 400 clamp(10px, 1.4vw, 13px)/1.4 var(--px); color: var(--gold); text-shadow: 2px 2px 0 #000; text-align: center; opacity: 0; }
.cdrop.go .cd-rays { animation: cdRays 2.2s ease-out forwards; }
.cdrop.go .cd-card { animation: cdIn 2.2s var(--ease-out) forwards; }
.cdrop.go .cd-t { animation: cdT 2.2s ease-out forwards; }
@keyframes cdRays { 0% { opacity: 0; transform: scale(.4) rotate(0); } 20% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1) rotate(60deg); } }
@keyframes cdIn { 0% { transform: translateY(50%) scale(.2) rotateY(180deg); opacity: 0; } 18% { opacity: 1; } 32% { transform: translateY(0) scale(1.05) rotateY(0); } 40% { transform: scale(1) rotateY(0); }
  72% { transform: scale(1) rotateY(0); opacity: 1; } 100% { transform: translate(var(--fx, -40%), var(--fy, -160%)) scale(.15) rotate(-12deg); opacity: 0; } }
@keyframes cdT { 0%, 25% { opacity: 0; transform: translateY(10px); } 35%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.slot .mini { width: 22px; height: 22px; border-radius: 6px; }

/* binder */
.binder { padding: 40px 0 10px; }
.bn-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px; }
.bn-count { display: grid; justify-items: end; gap: 6px; }
.bn-count b { font: 400 clamp(22px, 3vw, 32px)/1 var(--px); color: var(--gold); }
.bn-count span { font-size: 13px; color: var(--mute); }
.bn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 14px; margin-top: 22px; }
.bn-slot { position: relative; display: grid; justify-items: center; gap: 6px; }
.bn-slot .scard { --w: 100%; max-width: 150px; }
.bn-slot.new .scard { animation: bnNew 1s var(--ease-spring); }
@keyframes bnNew { from { transform: scale(.6) rotate(-8deg); } }
.bn-slot .x { position: absolute; top: -6px; right: 4px; z-index: 2; font: 400 9px/1 var(--px); padding: 5px 6px; background: var(--volt); color: #000; }
.bn-empty { width: 100%; max-width: 150px; aspect-ratio: 520 / 785; display: grid; place-items: center; align-content: center; gap: 8px; border: 2px dashed rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.02); }
.bn-empty i { font-style: normal; font: 400 22px/1 var(--px); color: rgba(255,255,255,.12); }
.bn-empty span { font: 400 9px/1 var(--px); color: var(--dim); }
.items .scard { --w: 100%; }
.it-front.cardf { padding: 0; border: 0; background: none; box-shadow: none; display: block; }
.it-front.cardf .scard { transform: none; transform-style: flat; } /* no nested 3D inside the flipping card (it hid the frame) */
.it-front.cardf .sc-frame { filter: none; width: 100%; height: 100%; border-radius: 0; }
.it-front.cardf .sc-logo { width: 54%; height: auto; border-radius: 18%; }
.it-front.cardf .tierv { position: absolute; left: 0; right: 0; bottom: -40px; z-index: 3; display: grid; justify-items: center; gap: 5px; }
.it-front.cardf .tierv em { font: 400 8px/1 var(--px); font-style: normal; padding: 4px 6px; background: var(--tc); color: #000; }
.it-front.cardf .tierv b { font: 700 clamp(13px, 2vw, 17px)/1 var(--f-mono); color: #fff; text-shadow: 0 2px 6px #000; }
.items { gap: 16px; padding-bottom: 46px; }
.it { aspect-ratio: 520 / 785; }

/* ---------- claim (always under the game) ---------- */
.vclaim { padding: 34px 0 10px; scroll-margin-top: 10px; }
.vclaim.ping .console { animation: claimPing 1.4s ease-out 2; }
@keyframes claimPing { 30% { transform: scale(1.015); } }
.vclaim[hidden] { display: none; }
.vclaim .console { max-width: 680px; margin-inline: auto; }
.vh2 { font-size: clamp(30px, 4.4vw, 52px); }
.lucky-v { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 140, 40, .1); border: 1px solid rgba(255, 150, 60, .35); font-size: 14.5px; color: #ffd2a8; }
.lucky-v b { color: #fff; }
.lucky { margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 140, 40, .14); border: 1px solid rgba(255, 150, 60, .5); color: #ffd2a8; font-size: 14px; }
.valley .pg-bar i { width: 100%; transform-origin: left center; transform: scaleX(0); transition: transform .8s var(--ease-out); }
.vboard { text-align: center; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; perspective: 900px; }
.it { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform .7s var(--ease-out); }
.it.open { transform: rotateY(180deg); }
.it-f { position: absolute; inset: 0; backface-visibility: hidden; display: grid; place-content: center; justify-items: center; gap: 8px; border: 3px solid #3a1d06; background: #12100c; padding: 8px; }
.it-back { box-shadow: 0 0 0 2px var(--gold) inset; }
.it-back i { font-style: normal; font-size: 34px; }
.it-back span { font: 400 9px/1 var(--px); color: var(--gold); }
.it-front { transform: rotateY(180deg); box-shadow: 0 0 0 2px var(--tc, var(--gold)) inset, 0 0 26px -6px var(--tc, var(--gold)); }
.it-front img { width: 44px; height: 44px; border-radius: 10px; }
.it-front em { font: 400 9px/1 var(--px); font-style: normal; color: var(--tc); }
.it-front b { font: 700 clamp(15px, 2.2vw, 20px)/1 var(--f-mono); color: #fff; }
.it-front small { font: 400 8px/1 var(--px); color: var(--mute); }
.vtotal { margin-top: 18px; font: 400 13px/1 var(--px); color: var(--mute); }
.vtotal b { display: block; margin: 10px 0 6px; font: 400 clamp(26px, 4vw, 38px)/1 var(--px); color: var(--volt); text-shadow: 0 0 24px var(--volt-glow); }

/* ---------- live ---------- */
.vlive { padding-top: 50px; }
.hfeed li { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
.hfeed li.empty { display: block; text-align: center; color: var(--mute); padding: 26px; }
.hf-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-who span { font-size: 12.5px; color: var(--mute); }
.hf-tot { font: 700 15px/1 var(--f-mono); color: var(--volt); white-space: nowrap; }
.hfeed time { font: 600 11px/1 var(--f-mono); color: var(--dim); white-space: nowrap; }
@media (max-width: 560px) { .hfeed li { grid-template-columns: 36px minmax(0, 1fr) auto; } .hfeed time { display: none; } }
.vodds { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.vodds summary { cursor: pointer; font-weight: 700; }
.odds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 12px; }
.od { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); display: grid; gap: 4px; }
.od b { font: 400 10px/1.2 var(--px); color: var(--tc); }
.od span { font: 600 13px/1.2 var(--f-mono); color: var(--mute); }
.odds-note { margin: 10px 0 0; font-size: 12.5px; color: var(--dim); }

/* FAQ */
.faq { padding: 70px 0 90px; }
.faq-list { display: grid; gap: 10px; margin-top: 18px; max-width: 860px; }
.faq details { border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(255, 255, 255, .025); padding: 16px 18px; }
.faq details[open] { border-color: rgba(255, 207, 90, .4); }
.faq summary { cursor: pointer; font: 700 16px/1.35 var(--f-body); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font: 800 20px/1 var(--f-display); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 10px 0 0; color: var(--mute); line-height: 1.6; }
.faq p b { color: var(--text); }
.faq a { color: var(--volt); }
.terms { margin: 26px 0 0; max-width: 860px; color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.terms b { color: var(--mute); }
@media (prefers-reduced-motion: reduce) { .slot.got, .fl-in { animation: none; } .it { transition: none; } }

/* claim first: hero buttons, play heading, bonus block */
.hcta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pbtn.ghostp { background: rgba(5,6,7,.75); color: var(--gold); box-shadow: 0 0 0 3px var(--gold) inset, 4px 4px 0 #000; }
.phead { margin-bottom: 16px; }
.phead .h2 { margin-top: 10px; }
.vclaim { padding-top: 26px; }
.bonus { margin-top: 18px; padding: 16px; border: 2px dashed rgba(255,207,90,.55); background: rgba(255,207,90,.05); text-align: center; display: grid; gap: 10px; justify-items: center; }
.bonus b.bh { font: 400 12px/1.4 var(--px); color: var(--gold); }
.bonus p { margin: 0; color: #d9ddd3; font-size: 14.5px; }
.bonus .pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bonus .pills span { font: 400 9px/1 var(--px); padding: 7px 9px; border: 2px solid rgba(255,255,255,.15); color: var(--dim); }
.bonus .pills span.on { border-color: var(--volt); color: var(--volt); }
.bonus:empty, [data-bonustot][hidden] { display: none; }
[data-bonustot] small { display: block; margin-top: 8px; font: 500 13px/1.4 var(--f-body); color: var(--mute); }
@media (max-width: 640px) { .feats { display: none; } .vh-in { padding: 92px 0 34px; gap: 14px; } .vhero { min-height: 0; } } /* phones: the claim flow comes right after the hero */

/* the airdrop amount, highlighted (hero + claim box) */
.bigdrop { display: grid; justify-items: center; gap: 6px; padding: 14px 22px 16px; border: 3px solid var(--volt); background: rgba(5,6,7,.82);
  box-shadow: 0 0 0 3px rgba(215,255,47,.18), 0 0 46px -6px var(--volt-glow), 6px 6px 0 #000; }
.bigdrop small { font: 400 10px/1 var(--px); color: var(--gold); letter-spacing: .06em; }
.bigdrop b { font: 400 clamp(15px, 5.2vw, 52px)/1.15 var(--px); max-width: 100%; overflow-wrap: anywhere; color: var(--volt); text-shadow: 0 0 24px var(--volt-glow), 3px 3px 0 #1c2503; animation: dropGlow 2.4s ease-in-out infinite; }
.bigdrop span { font-size: 13.5px; color: #d9ddd3; }
.bigdrop.in { margin: 18px 0 6px; justify-items: start; }
@keyframes dropGlow { 50% { opacity: .82; } }
/* the complete flow at a glance */
.fmap { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; counter-reset: st; }
.fmap li { counter-increment: st; display: grid; justify-items: center; gap: 6px; padding: 8px 2px; border: 2px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); text-align: center; font: 600 11px/1.2 var(--f-body); color: var(--dim); }
.fmap li::before { content: counter(st); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); font: 400 9px/1 var(--px); }
.fmap li.done { color: var(--volt); border-color: rgba(215,255,47,.35); }
.fmap li.done::before { content: '✓'; background: var(--volt); color: #000; border-color: var(--volt); font: 800 13px/1 var(--f-body); }
.fmap li.now { color: #fff; border-color: var(--volt); background: rgba(215,255,47,.08); box-shadow: 0 0 18px -6px var(--volt-glow); }
.fmap li.now::before { border-color: var(--volt); color: var(--volt); }
.fmap li.last { border-color: rgba(255,207,90,.5); color: var(--gold); }
@media (max-width: 560px) { .fmap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .bigdrop b { animation: none; } }
.bigdrop b span { font: inherit; color: inherit; } /* the amount inside the highlight keeps the big pixel font */
