:root{
  --ink:#1e241b;
  --paper:#fffdf6;
  --app:#f2f4ea;
  --green:#58a832; --green-d:#3d7a22; --green-pale:#e3f0d8;
  --yellow:#ffc61a; --yellow-d:#e8a90c; --gold:#f5b800;
  --blue:#3f8fd2; --red:#e64533; --orange:#ff7a2e;
  --grey:#9aa08f; --line:#1e241b;
  --rust:#c9502a; --rust-d:#a83e20; --olive:#71873f;
  --sans:"Noto Sans SC","PingFang SC",system-ui,sans-serif;
  --fun:"ZCOOL KuaiLe","Noto Sans SC",sans-serif;
  --hard:0 3px 0 var(--ink);
  --card-sh:0 1px 0 rgba(30,36,27,.9), 0 6px 14px rgba(30,36,27,.18), 0 1px 3px rgba(30,36,27,.12);
}
*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{font-family:var(--sans); color:var(--ink); min-height:100dvh; overflow-x:hidden;
  background:#dde6cf radial-gradient(#bccda6 1.4px, transparent 1.5px); background-size:22px 22px;}
button{font-family:var(--sans); cursor:pointer}
button:focus-visible{outline:3px solid var(--blue); outline-offset:2px}
img{display:block; max-width:100%}

/* ---------- stage ---------- */
.stage{max-width:1180px; margin:0 auto; padding:28px 20px 44px; display:grid; grid-template-columns:296px auto 296px; gap:26px; align-items:start; justify-content:center}
.side{margin-top:22px; background:var(--paper); border:2.5px solid var(--ink); border-radius:14px; box-shadow:6px 6px 0 rgba(34,39,31,.85); padding:20px 18px}
.side h1{font-family:var(--fun); font-weight:400; font-size:27px; line-height:1.3; margin:6px 0 8px}
.side .kicker{display:inline-block; background:var(--ink); color:#fff; font-size:11px; font-weight:700; padding:3px 10px; border-radius:99px; letter-spacing:.06em}
.side p{font-size:13px; line-height:1.85; color:#454b3e; margin:8px 0}
.side p b{color:var(--ink)}
.notebox{border:2px dashed var(--green-d); background:var(--green-pale); border-radius:10px; padding:12px 14px; margin-top:14px}
.notebox h3{margin:0 0 6px; font-size:13px; font-weight:900}
.notebox ul{margin:0; padding-left:17px; font-size:12.5px; line-height:1.95; color:#3c4436}
.side ol.steps{margin:8px 0 0; padding-left:19px; font-size:13px; line-height:2; color:#454b3e}
.side ol.steps b{color:var(--ink)}
.tagrow{display:flex; flex-wrap:wrap; gap:6px; margin-top:14px}
.tagrow span{font-size:11px; font-weight:700; border:2px solid var(--ink); border-radius:99px; padding:2px 10px; background:#fff}
.tagrow span.y{background:var(--yellow)} .tagrow span.g{background:var(--green-pale)}
@media (max-width:1020px){ .stage{grid-template-columns:1fr; justify-items:center; padding:12px 8px 28px} .side{max-width:430px; width:100%; margin-top:2px} .side.right{display:none} }

/* ---------- phone ---------- */
.phone{width:min(410px,100vw); height:min(852px,100dvh); position:relative; overflow:hidden; border-radius:36px; border:3px solid var(--ink); background:var(--app); box-shadow:8px 10px 0 rgba(30,36,27,.28), 0 24px 48px rgba(30,40,20,.28), inset 0 0 0 1px rgba(255,255,255,.6); display:flex; flex-direction:column}
@media (max-width:520px){ .phone{border-radius:0; border:none; box-shadow:none; height:100dvh; width:100vw} }
.notch{position:absolute; top:10px; left:50%; transform:translateX(-50%); width:108px; height:23px; background:var(--ink); border-radius:13px; z-index:60}
@media (max-width:520px){ .notch{display:none} }
.statusbar{height:44px; flex:0 0 44px; display:flex; align-items:flex-end; justify-content:space-between; padding:0 20px 3px; font-size:12.5px; font-weight:900; position:relative; z-index:55}
.capsule{border:2px solid var(--ink); border-radius:99px; padding:2px 10px; font-size:11px; font-weight:700; background:#fff; display:flex; gap:7px; align-items:center}
.capsule i{width:6px;height:6px;border-radius:50%;background:var(--green); display:inline-block}
.viewport{flex:1; overflow-y:auto; overflow-x:hidden; scrollbar-width:none}
.viewport::-webkit-scrollbar{display:none}
.view{display:none; padding:4px 14px 116px; animation:vin .18s ease}
.view.on{display:block}
@keyframes vin{from{opacity:0} to{opacity:1}}

/* tab bar : game dock */
.tabbar{position:absolute; left:10px; right:10px; bottom:calc(10px + env(safe-area-inset-bottom)); z-index:50; display:grid; grid-template-columns:repeat(5,1fr); background:#fff; border:2.5px solid var(--ink); border-radius:18px; box-shadow:0 4px 0 var(--ink), 0 12px 24px rgba(30,36,27,.18); padding:5px}
.tabbar button{background:none; border:none; border-radius:12px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; font-size:10.5px; font-weight:700; color:#7c8272; min-height:52px; position:relative; padding:4px 0; transition:transform .12s ease, background .12s ease}
.tabbar button:active{transform:scale(.94)}
.tabbar button svg{width:20px; height:20px}
.tabbar button.act{background:#eef0e6; color:var(--ink); box-shadow:inset 0 0 0 2px var(--ink), 0 2px 0 var(--ink); transform:translateY(-1px)}
.tabbar button[data-go="light"].act{background:#e6ecd2}
.tabbar .bdg{position:absolute; top:2px; right:calc(50% - 20px); background:var(--red); color:#fff; border:2px solid #fff; font-size:10px; min-width:19px; height:19px; border-radius:99px; display:flex; align-items:center; justify-content:center; font-weight:900}
/* center tab : raised rust-orange round open-pack button; yellow is reserved for primary buttons */
.tabbar button[data-go="packs"]{width:64px; height:64px; min-height:64px; justify-self:center; align-self:start; margin-top:-17px; border-radius:50%; background:linear-gradient(160deg,#e0643a,var(--rust) 60%,var(--rust-d)); color:#fff; border:2.5px solid var(--ink); box-shadow:0 4px 0 var(--ink), 0 12px 20px rgba(169,62,32,.4); gap:0}
.tabbar button[data-go="packs"] svg{width:25px; height:25px}
.tabbar button[data-go="packs"]:active{transform:scale(.93)}
.tabbar button[data-go="packs"].act{background:linear-gradient(160deg,#e0643a,var(--rust) 60%,var(--rust-d)); color:#fff; box-shadow:0 4px 0 var(--ink), 0 0 0 3px #ffe98a, 0 12px 20px rgba(169,62,32,.4); transform:none}
.tabbar button[data-go="packs"] .bdg{top:-3px; right:-3px}

/* ---------- generic game UI ---------- */
h2.ptitle{font-family:var(--fun); font-weight:400; font-size:25px; margin:10px 0 2px; display:flex; align-items:center; gap:8px}
.psub{font-size:12.5px; color:#6a7060; margin:0 0 12px; line-height:1.6}
.secttl{font-size:15px; font-weight:900; margin:22px 0 10px; display:flex; align-items:center; gap:8px}
.secttl::before{content:""; width:9px; height:18px; background:var(--green); border:2px solid var(--ink); border-radius:3px}
.secttl .more{margin-left:auto; font-size:11.5px; color:#6a7060; font-weight:700}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:6px; border:2.5px solid var(--ink); border-radius:99px; padding:9px 18px; font-size:14px; font-weight:900; min-height:44px; background:#fff; color:var(--ink); box-shadow:var(--hard); transition:transform .08s, box-shadow .08s, filter .12s; position:relative; overflow:hidden}
.btn::after{content:""; position:absolute; inset:0; background:linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%); transform:translateX(-120%); transition:transform .5s ease; pointer-events:none}
.btn:hover::after{transform:translateX(120%)}
.btn:active{transform:translateY(3px); box-shadow:0 0 0 var(--ink)}
.btn-pri{background:var(--yellow)}
.btn-grn{background:var(--green); color:#fff; text-shadow:0 1px 0 rgba(0,0,0,.18)}
.btn-ghost{box-shadow:none; border-width:2px}
.btn[disabled]{opacity:.45; pointer-events:none}
.pill{display:inline-flex; align-items:center; gap:5px; background:#fff; border:2px solid var(--ink); border-radius:99px; padding:2px 10px 2px 4px; font-size:12px; font-weight:900}
.pill .dot{width:20px; height:20px; border-radius:50%; border:2px solid var(--ink); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:900}
/* leaderboard pill : premium dark-ink + gold, sits in the trainer card's currency row */
.pill-rank{background:linear-gradient(135deg,#3b422c,#1e241b 70%); color:#ffe9a8; border-color:#12160e; box-shadow:0 2px 0 #12160e, 0 5px 12px rgba(30,36,27,.28); cursor:pointer; transition:transform .1s ease, box-shadow .1s ease}
.pill-rank .dot{background:linear-gradient(135deg,#ffe066,#f5b800); color:#5c3d00; border-color:#7a5200}
.pill-rank:active{transform:translateY(2px); box-shadow:0 0 0 #12160e}
/* trainer card assets : silver / packs / coupons + leaderboard in ONE
   slim pill bar — the old three boxes plus a full-width dark banner took
   two rows and clashed with the white card; now a single coordinated row */
.assetbar{display:flex; align-items:center; margin-top:10px; background:#f7f8ef; border:2px solid var(--ink); border-radius:99px; padding:4px 5px; box-shadow:0 2px 0 var(--ink)}
.ab-item{display:flex; align-items:center; justify-content:center; gap:3px; flex:1 1 0; min-width:0; min-height:30px; padding:2px 1px; background:none; border:none; font-family:var(--sans); color:var(--ink); white-space:nowrap}
.ab-item b{font-size:14.5px; font-weight:900; line-height:1}
.ab-lab{font-size:11px; font-weight:700; color:#6a7060}
.ab-dot{width:19px; height:19px; flex:0 0 19px; border-radius:50%; border:1.5px solid var(--ink); display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:900; line-height:1}
.ab-dot.gold{background:linear-gradient(135deg,#ffe066,#f5b800); color:#5c3d00; border-color:#7a5200}
.ab-sep{width:1px; height:17px; flex:0 0 1px; background:#d5d8c6}
button.ab-item{cursor:pointer; border-radius:99px}
button.ab-item:active{background:#eef0e6}
.ab-rank .ab-lab{color:var(--ink); font-weight:900}
.ab-go{font-size:12px; font-weight:900; color:#9aa08f}
@media (max-width:360px){ .ab-item{gap:2px} .ab-lab{font-size:10px} .ab-item b{font-size:13.5px} .ab-dot{width:17px; height:17px; flex-basis:17px; font-size:9px} }
.rar{font-size:11px; letter-spacing:1px; font-weight:900}
.rar-ssr{color:#d9930d} .rar-r{color:var(--blue)}

/* ---------- trainer card (home top) ---------- */
.trainer{background:#fff; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:14px; position:relative; overflow:hidden}
.trainer .who{display:flex; align-items:center; gap:11px}
.avatar{width:46px; height:46px; border-radius:50%; background:var(--green); border:2.5px solid var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); color:#fff; font-size:19px; flex:0 0 auto}
.trainer .who b{font-size:15.5px}
.trainer .who small{display:block; color:#6a7060; font-size:11.5px; margin-top:1px}
.curr{display:flex; gap:8px; margin-top:12px; flex-wrap:wrap}
.dexbar{margin-top:12px}
.dexbar .lab{display:flex; justify-content:space-between; font-size:11.5px; font-weight:700; color:#454b3e}
.pbar{height:12px; background:#fff; border:2px solid var(--ink); border-radius:99px; overflow:hidden; margin-top:5px}
.pbar i{display:block; height:100%; background:repeating-linear-gradient(-45deg, var(--green) 0 10px, #4c9429 10px 20px); transition:width .8s ease}

/* pack banner : like TCG Pocket home */
.packbanner{margin-top:14px; background:linear-gradient(155deg,#e0643a,var(--rust) 62%,var(--rust-d)); border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:14px; display:flex; gap:12px; align-items:center; color:#fff; position:relative; overflow:hidden}
.packbanner::before{content:""; position:absolute; inset:0; background:radial-gradient(#ffffff2e 1.6px, transparent 1.7px); background-size:18px 18px}
.packbanner h3{margin:0 0 3px; font-family:var(--fun); font-weight:400; font-size:19px; position:relative}
.packbanner p{margin:0; font-size:12px; line-height:1.6; opacity:.92; position:relative}
.packbanner .btn{position:relative; flex:0 0 auto}

/* missions */
.mission{background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px 12px; display:flex; gap:11px; align-items:center; margin-bottom:8px}
.mission .chk{width:24px; height:24px; flex:0 0 24px; border:2.5px solid var(--ink); border-radius:7px; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:14px; background:#fff; color:transparent}
.mission.done .chk{background:var(--green); color:#fff}
.mission h4{margin:0; font-size:13.5px}
.mission p{margin:1px 0 0; font-size:11.5px; color:#6a7060; line-height:1.5}
.mission .rwd{margin-left:auto; flex:0 0 auto; text-align:center; font-size:10px; font-weight:900; color:#8a6d00}
.mission .rwd .ic{width:34px; height:34px; margin:0 auto 2px; border:2px solid var(--ink); border-radius:9px; background:#fff3c4; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:15px; color:var(--ink)}
.mission.done{opacity:.75}

/* activities as quest cards */
.quest{background:#fff; border:2px solid var(--ink); border-radius:12px; overflow:hidden; margin-bottom:10px; display:flex}
.quest .cov{width:86px; flex:0 0 86px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#fff; border-right:2px solid var(--ink); padding:10px 4px; text-align:center}
.quest .cov b{font-family:var(--fun); font-weight:400; font-size:16px; line-height:1.25}
.quest .cov span{font-size:10px; font-weight:700; background:rgba(0,0,0,.25); border-radius:99px; padding:1px 8px}
.quest .bd{padding:10px 12px; flex:1}
.quest h4{margin:0 0 2px; font-size:14px}
.quest p{margin:0; font-size:11.5px; color:#6a7060; line-height:1.55}
.quest .get{margin-top:6px; font-size:11px; font-weight:900; color:var(--green-d); background:var(--green-pale); border-radius:6px; padding:4px 8px; display:inline-block}

/* ---------- TCG card (the core fix) ---------- */
.series-tabs{display:flex; gap:7px; overflow-x:auto; padding:2px 2px 8px; scrollbar-width:none}
.series-tabs::-webkit-scrollbar{display:none}
.series-tabs button{flex:0 0 auto; border:2px solid var(--ink); border-radius:99px; padding:6px 14px; font-size:12.5px; font-weight:700; min-height:36px; background:#fff; color:#6a7060}
.series-tabs button.act{background:var(--ink); color:#fff}
.modeswitch{display:flex; background:#fff; border:2.5px solid var(--ink); border-radius:99px; padding:3px; box-shadow:var(--hard); margin:2px 0 14px}
.modeswitch button{flex:1; border:none; background:none; border-radius:99px; padding:8px 0; font-size:14px; font-weight:900; color:#7c8272; min-height:40px}
.modeswitch button.act{background:var(--yellow); color:var(--ink); box-shadow:inset 0 0 0 2px var(--ink)}
.binder{background:#fff; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); padding:14px 12px 12px 20px; position:relative; background-image:linear-gradient(180deg,#fff 0%,#fbfcf6 100%)}
.binder::before{content:""; position:absolute; left:7px; top:0; bottom:0; width:0; border-left:2px dashed #cfd4c2}
.binder::after{content:""; position:absolute; inset:0; border-radius:12px; background:linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); pointer-events:none; opacity:.5}
.binder .holes{position:absolute; left:2px; top:0; bottom:0; width:12px; display:flex; flex-direction:column; justify-content:space-evenly; align-items:center; z-index:1}
.binder .holes i{width:9px; height:9px; border-radius:50%; background:var(--app); border:2px solid var(--ink); box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
.cgrid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; position:relative; z-index:1; align-items:stretch}
.cgrid .tcg,.cgrid .slot{min-width:0; width:100%; height:100%}
.cgrid .tcg{aspect-ratio:3/4.05; display:flex; flex-direction:column}
.cgrid .tcg .art{flex:1 1 auto; aspect-ratio:auto; min-height:0}
.cgrid .tcg .mv{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cgrid .tcg .nm{min-width:0}
.cgrid .tcg .ft>span{min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cgrid .tcg .ft>span:last-child{flex:0 1 auto; text-align:right}
.tcg{border:2px solid var(--ink); border-radius:11px; overflow:hidden; background:#fff; text-align:left; padding:0; width:100%; box-shadow:var(--card-sh); position:relative; font-family:var(--sans); transition:transform .16s ease, box-shadow .16s ease; transform-origin:center bottom}
.tcg::before{content:""; position:absolute; inset:3px; border:1.5px solid rgba(30,36,27,.14); border-radius:7px; pointer-events:none; z-index:3}
.tcg::after{content:""; position:absolute; inset:0; background:linear-gradient(115deg, transparent 35%, rgba(255,255,255,.5) 48%, rgba(255,255,255,.08) 55%, transparent 68%); transform:translateX(-130%); transition:transform .6s ease; pointer-events:none; z-index:4}
.tcg:active{transform:translateY(2px) scale(.98); box-shadow:0 1px 0 var(--ink)}
@media(hover:hover){ .tcg:hover{transform:translateY(-3px) rotate(-.4deg); box-shadow:0 2px 0 var(--ink), 0 12px 20px rgba(30,36,27,.22)} .tcg:hover::after{transform:translateX(130%)} }
.tcg[data-rarity="SSR"]{border-color:#7a5200; box-shadow:0 0 0 2px #ffd94d, 0 2px 0 #7a5200, 0 10px 20px rgba(180,120,0,.35)}
.tcg[data-rarity="SSR"]::before{border-color:rgba(245,184,0,.55)}
.tcg[data-rarity="R"]{box-shadow:0 1px 0 var(--ink), 0 0 0 1.5px rgba(63,143,210,.35), 0 8px 16px rgba(63,143,210,.22)}
.tcg .top{display:flex; align-items:center; gap:4px; padding:4px 6px; color:#fff; border-bottom:2px solid var(--ink); position:relative; text-shadow:0 1px 0 rgba(0,0,0,.22)}
.tcg .top .no{font-size:9px; font-weight:900; background:rgba(0,0,0,.32); border-radius:4px; padding:1px 4px; letter-spacing:.02em}
.tcg .top .hp{margin-left:auto; font-size:10.5px; font-weight:900}
.tcg .top .hp b{font-size:13px}
.tcg .art{aspect-ratio:1/.82; position:relative; display:flex; align-items:center; justify-content:center; border-bottom:2px solid var(--ink); overflow:hidden; box-shadow:inset 0 0 0 3px rgba(255,255,255,.55), inset 0 -14px 18px rgba(0,0,0,.08)}
.tcg .art::after{content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(255,255,255,.28) 0%, transparent 38%, transparent 72%, rgba(0,0,0,.06) 100%); pointer-events:none}
.tcg[data-rarity="SSR"] .art::before,.tcg[data-rarity="R"] .art::before{content:""; position:absolute; inset:-40%; background:conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,.0) 40deg, rgba(255,220,120,.35) 70deg, rgba(160,220,255,.28) 110deg, transparent 150deg, rgba(255,180,220,.22) 210deg, transparent 260deg); animation:foilSpin 5s linear infinite; pointer-events:none; z-index:1}
@keyframes foilSpin{to{transform:rotate(360deg)}}
.tcg .art .big{font-family:var(--fun); font-size:37px; color:rgba(34,39,31,.85); line-height:1; position:relative; z-index:1; text-shadow:2px 2px 0 rgba(255,255,255,.65)}
.tcg .art img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 32%}
.tcg .nm{font-size:11px; font-weight:900; padding:5px 6px 1px; line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:.01em}
.tcg .mv{font-size:9.5px; color:#454b3e; padding:0 6px; line-height:1.5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.tcg .ft{display:flex; align-items:center; justify-content:space-between; padding:3px 6px 5px; font-size:9px; color:#8a8f7d; font-weight:700; border-top:1px dashed #e2e4d6; margin-top:2px}
.tcg .newtag{position:absolute; top:26px; right:-2px; background:var(--red); color:#fff; font-size:9.5px; font-weight:900; padding:2px 7px; border:2px solid var(--ink); border-radius:6px 0 0 6px; z-index:5; box-shadow:0 2px 0 rgba(0,0,0,.25); animation:newPulse 1.2s ease-in-out infinite}
@keyframes newPulse{0%,100%{transform:scale(1)} 50%{transform:scale(1.06)}}
.tcg .duptag{position:absolute; top:26px; right:-2px; background:var(--ink); color:#fff; font-size:9.5px; font-weight:900; padding:2px 7px; border-radius:6px 0 0 6px; z-index:5}
/* empty binder slot : pokemon dex style */
.slot{border:2px dashed #b9bfa9; border-radius:11px; background:linear-gradient(180deg,#eef0e6,#e6e9da); aspect-ratio:3/4.05; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; width:100%; color:#9aa08f; padding:6px; box-shadow:inset 0 2px 8px rgba(30,36,27,.06); transition:transform .14s ease}
.slot:active{transform:scale(.97)}
.slot .no{font-size:10px; font-weight:900; letter-spacing:.08em}
.slot .q{font-family:var(--fun); font-size:30px; line-height:1}
.slot .hw{font-size:9.5px; line-height:1.5; text-align:center; padding:0 4px}
.progline{display:flex; align-items:center; gap:10px; font-size:12px; font-weight:700; color:#454b3e; margin:2px 0 10px}
.progline .pbar{flex:1; margin:0}

/* ---------- atlas : dex collection sheet (gacha album style) ---------- */
.dexpanel{background:#f8f5ee; border:2.5px solid var(--ink); border-radius:18px; box-shadow:var(--hard); padding:15px 12px 13px}
.dexsec{font-size:14px; font-weight:900; margin:0 0 10px; display:flex; align-items:baseline; flex-wrap:wrap}
.dexsec .dexnote{font-size:12px; font-weight:700; color:#6a7060}
.dexsec .dexcnt{font-size:12.5px; font-weight:900; color:#454b3e}
.dexgrid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; align-items:stretch}
.dexcard{min-width:0; width:100%; height:100%; position:relative; aspect-ratio:3/4.05; border:2px solid var(--ink); border-radius:12px; overflow:hidden; padding:0; background:#fff; box-shadow:0 1px 0 rgba(30,36,27,.9), 0 5px 10px rgba(30,36,27,.14); font-family:var(--sans); text-align:center; transition:transform .14s ease}
.dexcard:active{transform:scale(.96)}
@media(hover:hover){ .dexcard:hover{transform:translateY(-2px)} }
.dexcard .dart{position:absolute; inset:0; display:flex; align-items:center; justify-content:center}
.dexcard .dart img{width:100%; height:100%; object-fit:cover; object-position:50% 20%}
.dexcard .dchar{font-family:var(--fun); font-size:40px; color:rgba(34,39,31,.8); text-shadow:2px 2px 0 rgba(255,255,255,.6)}
.dexcard.lock .dart{filter:grayscale(1) contrast(.94); opacity:.48}
.dexbadge{position:absolute; top:6px; right:6px; z-index:3; background:rgba(22,25,20,.66); color:#fff; font-size:9.5px; font-weight:900; letter-spacing:.04em; padding:2px 7px; border-radius:99px}
.dexbadge.gold{background:linear-gradient(135deg,#ffe066,#f5b800); color:#5c3d00; box-shadow:0 0 0 1.5px rgba(255,255,255,.75), 0 2px 6px rgba(180,120,0,.4)}
.dexname{position:absolute; left:0; right:0; bottom:0; z-index:2; padding:18px 5px 6px; background:linear-gradient(180deg, transparent, rgba(12,14,10,.8)); color:#fff; font-size:11px; font-weight:900; text-align:center; line-height:1.3; text-shadow:0 1px 2px rgba(0,0,0,.55); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.dexcard.lock .dexname{background:none; color:#7c8272; text-shadow:0 1px 0 rgba(255,255,255,.85); letter-spacing:.35em; text-indent:.35em}
.dexcard .dnew{position:absolute; top:6px; left:6px; z-index:3; background:var(--red); color:#fff; font-size:9px; font-weight:900; padding:2px 6px; border:1.5px solid var(--ink); border-radius:6px}
.dexcard .dstar{position:absolute; right:6px; bottom:31px; z-index:3; background:rgba(22,25,20,.72); color:#ffd94d; font-size:10px; font-weight:900; padding:1px 6px; border-radius:99px}
.dseq{position:absolute; left:6px; bottom:31px; z-index:3; background:rgba(22,25,20,.72); color:#fff; font-size:10px; font-weight:900; padding:1px 6px; border-radius:99px}
.dexfoot{font-size:11.5px; color:#6a7060; line-height:1.7; margin:12px 2px 0}
@media (prefers-reduced-motion: reduce){ .dexcard{transition:none} }

/* achievements as badges */
.achrow{display:flex; gap:9px; align-items:stretch}
.ach{flex:1 1 0; min-width:0; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px 6px; text-align:center}
.ach .medal{width:42px; height:42px; margin:0 auto 5px; border-radius:50%; border:2.5px solid var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:17px; background:#eef0e6; color:#9aa08f}
.ach.done .medal{background:var(--yellow)}
.ach b{display:block; font-size:12.5px}
.ach span{font-size:10px; color:#6a7060; line-height:1.4; display:block; margin-top:2px}
.ach.lock{opacity:.65}

/* ---------- leaderboard : honor-only ranking ---------- */
.rkrow{display:flex; align-items:center; gap:11px; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:10px 12px; margin-bottom:8px}
.rkrow.me{background:#fffbe8; box-shadow:var(--hard)}
.rkrow .rkno{width:30px; height:30px; flex:0 0 30px; border-radius:50%; border:2px solid var(--ink); background:#eef0e6; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:13px}
.rkrow .rkno.n1{background:var(--gold)}
.rkrow .rkno.n2{background:#e3e6da}
.rkrow .rkno.n3{background:#f2c894}
.rkrow .who b{font-size:14px}
.rkrow .who small{display:block; font-size:10.5px; color:#6a7060; margin-top:1px}
.rkrow .val{margin-left:auto; font-size:16px; font-weight:900; white-space:nowrap}
.rkrow .val small{font-size:10.5px; color:#6a7060; font-weight:700}
.rkrow .val{text-align:right}
.rkrow .val .ud{display:block; font-size:9.5px; color:#9aa08f; margin-top:1px; letter-spacing:.02em}
.pod .pud{display:block; font-size:9.5px; font-weight:700; color:#9aa08f; margin-top:1px}
.rankmine{display:flex; align-items:center; gap:9px; background:var(--ink); color:#fff; border:2.5px solid var(--ink); border-radius:12px; box-shadow:var(--hard); padding:11px 13px; margin-bottom:12px; font-size:12.5px; font-weight:700}
.rankmine b{font-size:17px; color:var(--yellow)}
.rankmine .rv{margin-left:auto; font-size:11.5px; opacity:.85; text-align:right}
/* leaderboard premium : dark-ink hero with gold trim, week/total period
   switch, a top-3 podium, tappable rows that open the hiker's profile */
.rankhero{background:linear-gradient(150deg,#39412c,#1e241b 68%); border:2.5px solid #12160e; border-radius:16px; box-shadow:var(--hard); padding:14px; color:#f3ecd2; position:relative; overflow:hidden; margin-bottom:12px}
.rankhero::before{content:""; position:absolute; inset:0; background:radial-gradient(#ffffff12 1.6px, transparent 1.7px); background-size:18px 18px; pointer-events:none}
.rankhero .rh-top{display:flex; align-items:center; gap:11px; position:relative}
.rankhero .rh-coin{width:40px; height:40px; flex:0 0 40px; border-radius:50%; background:linear-gradient(135deg,#ffe066,#f5b800); border:2px solid #7a5200; color:#5c3d00; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:19px}
.rankhero h3{margin:0; font-size:18px; letter-spacing:.08em; color:#ffe9a8}
.rankhero .rh-top p{margin:2px 0 0; font-size:11px; color:#cfd3b8}
.rankhero .rh-live{margin-left:auto; font-size:10px; font-weight:900; letter-spacing:.12em; color:#ffe9a8; border:1.5px solid rgba(255,233,168,.55); border-radius:99px; padding:3px 9px; white-space:nowrap}
.perswitch{display:flex; gap:0; margin-top:13px; background:rgba(0,0,0,.35); border:2px solid rgba(255,233,168,.4); border-radius:99px; padding:3px; position:relative}
.perswitch button{flex:1; border:none; background:none; border-radius:99px; padding:8px 0; font-size:14px; font-weight:900; color:#b9bfa4; min-height:38px; font-family:var(--sans)}
.perswitch button.act{background:linear-gradient(135deg,#ffe066,#f5b800); color:#3a2a00; box-shadow:0 2px 0 rgba(0,0,0,.35)}
.perswitch button small{display:block; font-size:9.5px; font-weight:700; letter-spacing:.08em; opacity:.75}
.weekprize{display:flex; align-items:center; gap:11px; background:#fffbe8; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); padding:10px 12px; margin-bottom:12px}
.weekprize img{width:52px; height:52px; object-fit:contain; flex:0 0 52px}
.weekprize .wp-tx{flex:1; min-width:0}
.weekprize .wp-tx b{display:block; font-size:13.5px}
.weekprize .wp-tx p{margin:2px 0 0; font-size:11px; color:#6a7060; line-height:1.55}
.weekprize .wp-act{flex:0 0 auto; text-align:right}
.weekprize .wp-act .st{font-size:11.5px; font-weight:900; color:#6a7060; line-height:1.5}
.podium{display:flex; align-items:flex-end; gap:8px; margin:4px 0 14px}
.pod{flex:1; text-align:center; cursor:pointer; background:none; border:none; font-family:var(--sans); padding:0; color:var(--ink)}
.pod .medal{width:30px; height:30px; margin:0 auto; border-radius:50%; border:2px solid var(--ink); display:flex; align-items:center; justify-content:center; font-weight:900; font-size:14px; position:relative; z-index:2}
.pod.p1 .medal{background:linear-gradient(135deg,#ffe066,#f5b800); width:36px; height:36px; font-size:16px}
.pod.p2 .medal{background:linear-gradient(135deg,#f4f6ee,#ccd2c0)}
.pod.p3 .medal{background:linear-gradient(135deg,#f6cf9a,#dd9a52)}
.pod .pav{width:44px; height:44px; margin:-8px auto 0; border-radius:50%; border:2.5px solid var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:18px; color:#fff; position:relative; z-index:1}
.pod.p1 .pav{width:52px; height:52px; font-size:21px}
.pod .pname{display:block; font-size:13px; font-weight:900; margin-top:6px}
.pod .pval{display:block; font-size:11px; font-weight:700; color:#6a7060; margin-top:1px}
.pod .pbase{margin-top:7px; border:2.5px solid var(--ink); border-bottom:none; border-radius:10px 10px 0 0; font-family:var(--fun); display:flex; align-items:flex-start; justify-content:center; padding-top:5px}
.pod.p1 .pbase{height:44px; background:linear-gradient(180deg,#ffe9a8,#fdf0cd); font-size:19px}
.pod.p2 .pbase{height:32px; background:#eef0e6; font-size:16px}
.pod.p3 .pbase{height:25px; background:#fbeed9; font-size:15px}
.pod.me .pname{color:var(--rust-d)}
.pod:active .pbase{filter:brightness(.96)}
.rkrow{cursor:pointer; width:100%; text-align:left; font-family:var(--sans); color:var(--ink)}
.rkrow:active{transform:translateY(1px)}
.rkrow .rav{width:34px; height:34px; flex:0 0 34px; border-radius:50%; border:2px solid var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:14px; color:#fff}
.rkrow .go{font-size:15px; font-weight:900; color:#9aa08f}
/* hiker profile sheet : his atlas + his hike data card */
.pf-head{display:flex; align-items:center; gap:12px}
.pf-head .pav{width:54px; height:54px; flex:0 0 54px; border-radius:50%; border:2.5px solid var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:23px; color:#fff}
.pf-head b{font-size:17px}
.pf-head small{display:block; font-size:11.5px; color:#6a7060; margin-top:2px}
.pf-stats{display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; margin-top:12px}
.pf-stats div{background:#fff; border:2px solid var(--ink); border-radius:10px; padding:8px 4px; text-align:center}
.pf-stats b{display:block; font-size:16px; font-weight:900}
.pf-stats b small{font-size:10px; color:#6a7060; font-weight:700}
.pf-stats span{display:block; font-size:10px; font-weight:700; color:#6a7060; margin-top:2px}
.pf-dex{display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:8px}
.pftile{border:2px solid var(--ink); border-radius:9px; padding:6px 4px 5px; text-align:center; background:#fff}
.pftile .pa{height:30px; border-radius:6px; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:16px; margin-bottom:4px}
.pftile b{display:block; font-size:9.5px; line-height:1.3; font-weight:900}
.pftile span{display:block; font-size:8.5px; font-weight:900; letter-spacing:.06em}
.pftile.lock{border-style:dashed; border-color:#c3c8b2; background:#f4f5ec; color:#a6ab97}
.pftile.lock .pa{background:#e7ead9; color:#a6ab97}

/* ---------- packs ---------- */
.packitem{background:#fff; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); padding:13px; display:flex; gap:13px; align-items:center; margin-bottom:12px}
.packitem h4{margin:0 0 3px; font-size:14.5px}
.packitem p{margin:0; font-size:11.5px; color:#6a7060; line-height:1.6}
.packitem .btn{margin-left:auto; flex:0 0 auto}
.packitem.opened{opacity:.55; box-shadow:none}
.hist{font-size:12px; line-height:1.9; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:10px 13px}
.hist b{color:var(--green-d)}

/* ---------- mine ---------- */
.mine-head{display:flex; align-items:center; gap:12px; padding:10px 2px 2px}
.mine-head b{font-size:17px}
.mine-head small{display:block; color:#6a7060; font-size:12px; margin-top:2px}
.wallet{background:var(--ink); color:#fff; border-radius:16px; padding:16px; margin-top:14px; display:flex; align-items:center; gap:14px; border:2.5px solid var(--ink); box-shadow:var(--hard)}
.wallet .coin{width:52px; height:52px; flex:0 0 52px; border-radius:50%; background:var(--yellow); border:3px solid #fff; color:var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:21px}
.wallet .n{font-size:32px; font-weight:900; line-height:1}
.wallet p{margin:2px 0 0; font-size:11px; opacity:.75; letter-spacing:.14em; font-weight:700}
.wallet .btn{margin-left:auto; flex:0 0 auto}
/* ---------- hike data card (personal) ---------- */
.datacard{background:var(--ink); color:#fff; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:16px; position:relative; overflow:hidden}
.datacard::before{content:""; position:absolute; inset:0; background:radial-gradient(#ffffff14 1.6px, transparent 1.7px); background-size:18px 18px; pointer-events:none}
.datacard .dc-top{display:flex; align-items:flex-start; justify-content:space-between; position:relative}
.datacard .dc-brand{font-family:var(--fun); font-size:16px; line-height:1.2}
.datacard .dc-brand small{display:block; font-family:var(--sans); font-size:10px; font-weight:700; letter-spacing:.18em; opacity:.65; margin-top:3px}
.datacard .dc-chip{width:40px; height:30px; border-radius:6px; background:var(--yellow); border:2px solid #fff; position:relative; flex:0 0 auto}
.datacard .dc-chip::before,.datacard .dc-chip::after{content:""; position:absolute; background:var(--ink); opacity:.35}
.datacard .dc-chip::before{left:0; right:0; top:13px; height:2px}
.datacard .dc-chip::after{top:0; bottom:0; left:18px; width:2px}
.datacard .dc-nums{display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-top:16px; position:relative}
.datacard .dc-nums .n{font-size:23px; font-weight:900; line-height:1}
.datacard .dc-nums .n small{font-size:11px; font-weight:700; margin-left:2px}
.datacard .dc-nums label{display:block; font-size:10px; font-weight:700; letter-spacing:.1em; opacity:.7; margin-top:5px}
.datacard .dc-foot{display:flex; justify-content:space-between; align-items:flex-end; gap:10px; margin-top:16px; padding-top:12px; border-top:2px solid rgba(255,255,255,.22); position:relative; font-size:11px; line-height:1.6}
.datacard .dc-foot b{font-size:12.5px}
.datacard .dc-foot span{opacity:.7}
.datacard .dc-badge{background:var(--yellow); color:var(--ink); border:2px solid #fff; border-radius:99px; font-size:11px; font-weight:900; padding:3px 10px; white-space:nowrap}
.routestat{background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px 12px; margin-bottom:8px}
.routestat .rs-head{display:flex; align-items:baseline; gap:7px}
.routestat .rs-head b{font-size:14px}
.routestat .rs-head .rs-date{margin-left:auto; font-size:11px; color:#6a7060; font-weight:700; white-space:nowrap}
.routestat .rs-done{font-size:10px; font-weight:900; background:var(--green); color:#fff; border:2px solid var(--ink); border-radius:99px; padding:1px 8px}
.routestat .rs-plan{font-size:10px; font-weight:900; background:#eef0e6; color:#6a7060; border:2px solid var(--ink); border-radius:99px; padding:1px 8px}
.routestat .rs-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:6px; margin-top:9px}
.routestat .rs-grid div{background:var(--app); border:2px solid #e6e8dc; border-radius:8px; padding:6px 2px; text-align:center}
.routestat .rs-grid b{display:block; font-size:13px; line-height:1.2}
.routestat .rs-grid b small{font-size:9.5px; font-weight:700; color:#6a7060}
.routestat .rs-grid span{display:block; font-size:9.5px; color:#6a7060; font-weight:700; margin-top:2px}
.routestat.plan{opacity:.82}
.routestat.plan .rs-grid b{color:#454b3e}
.hikedata-box{background:var(--app); border:2px solid var(--ink); border-radius:12px; padding:11px 12px; margin-top:12px}
.hikedata-box h4{margin:0 0 8px; font-size:13px; font-weight:900}
.hikedata-box .rs-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:6px}
.hikedata-box .rs-grid div{background:#fff; border:2px solid #e6e8dc; border-radius:8px; padding:7px 4px; text-align:center}
.hikedata-box .rs-grid b{display:block; font-size:14px; line-height:1.2}
.hikedata-box .rs-grid b small{font-size:9.5px; font-weight:700; color:#6a7060}
.hikedata-box .rs-grid span{display:block; font-size:9.5px; color:#6a7060; font-weight:700; margin-top:2px}
.menu{background:#fff; border:2px solid var(--ink); border-radius:14px; overflow:hidden; margin-top:14px}
.menu button{width:100%; display:flex; align-items:center; gap:10px; background:none; border:none; border-bottom:2px solid #e6e8dc; padding:13px 14px; font-size:14px; font-weight:700; color:var(--ink); text-align:left; min-height:52px}
.menu button:last-child{border-bottom:none}
.menu button .arw{margin-left:auto; color:#9aa08f; font-weight:900}
.menu button small{margin-left:auto; color:#6a7060; font-size:11.5px; font-weight:400}
.menu button small + .arw{margin-left:6px}
.menu .mic{width:30px; height:30px; flex:0 0 30px; border:2px solid var(--ink); border-radius:9px; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:14px}


/* ---------- sheets ---------- */
.overlay{position:absolute; inset:0; z-index:80; display:none; flex-direction:column}
.overlay.on{display:flex}
.sheet{position:absolute; inset:0; background:rgba(24,28,20,.55); z-index:90; display:none; align-items:flex-end}
.sheet.on{display:flex}
.sheet .box{width:100%; max-height:88%; overflow-y:auto; border-radius:20px 20px 0 0; padding:20px 18px calc(110px + env(safe-area-inset-bottom)); animation:up .25s ease; position:relative; background:var(--paper); border-top:3px solid var(--ink)}
.pickopts{display:flex; flex-direction:column; gap:8px; margin:10px 0 4px}
.pickopt{display:flex; gap:10px; align-items:flex-start; width:100%; text-align:left; background:#fff; border:2px solid #d9dcc9; border-radius:12px; padding:11px 12px; cursor:pointer; font:inherit; color:var(--ink)}
.pickopt .rd{width:18px; height:18px; border-radius:50%; border:2px solid var(--ink); flex:none; margin-top:2px; position:relative; background:#fff}
.pickopt.sel{border-color:var(--ink); background:#fffbe8; box-shadow:2px 2px 0 var(--ink)}
.pickopt.sel .rd::after{content:''; position:absolute; inset:3px; border-radius:50%; background:var(--ink)}
.pickopt b{font-size:13.5px; display:block}
.pickopt p{font-size:11.5px; color:#6a7060; margin:2px 0 0; line-height:1.55}
.pickopt .fee{margin-left:auto; flex:none; font-size:11px; font-weight:900; background:var(--green-pale); border-radius:999px; padding:3px 9px; white-space:nowrap}
.pickopt .fee.pay{background:#ffe1d6}
.exform{display:flex; flex-direction:column; gap:10px; margin-top:10px}
.exform label{display:block; font-size:12px; font-weight:900; margin-bottom:4px}
.exform label i{font-style:normal; color:var(--rust-d)}
.exform textarea.tinput{resize:vertical; line-height:1.6}
.exform .bad{border-color:var(--rust-d); background:#fdf1ec}
@keyframes up{from{transform:translateY(36px)} to{transform:none}}
.sheet h3{margin:0 0 4px; font-size:19px; font-weight:900}
table.prob{width:100%; border-collapse:collapse; font-size:12.5px; margin-top:10px; background:#fff; border:2px solid var(--ink); border-radius:10px; overflow:hidden}
table.prob th, table.prob td{border-bottom:2px solid #e6e8dc; padding:9px 10px; text-align:left}
table.prob th{background:var(--green-pale); font-size:12px}
table.prob td:last-child, table.prob th:last-child{text-align:right; font-weight:900}
/* ---------- closed loop + exchange center ---------- */
.loopflow{display:flex; align-items:stretch; gap:0; margin-top:12px}
.loopstep{flex:1; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:9px 6px 8px; text-align:center; position:relative}
.loopstep b{display:block; font-size:12px; line-height:1.3}
.loopstep span{display:block; font-size:10px; color:#6a7060; line-height:1.45; margin-top:2px}
.loopstep .lic{width:30px; height:30px; margin:0 auto 5px; border:2px solid var(--ink); border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:13px}
.looparrow{display:flex; align-items:center; justify-content:center; width:16px; flex:0 0 16px; font-weight:900; color:#9aa08f; font-size:13px}
.silver-hero{background:var(--ink); color:#fff; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:14px; display:flex; gap:12px; align-items:center}
.silver-hero .bigcoin{width:54px; height:54px; flex:0 0 54px; border-radius:50%; background:var(--yellow); border:3px solid #fff; color:var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:22px}
.silver-hero .n{font-size:34px; font-weight:900; line-height:1}
.sourcegrid{display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px}
.sourcecard{background:#fff; border:2px solid var(--ink); border-radius:12px; padding:10px 8px; text-align:center}
.sourcecard b{font-size:12px; display:block; line-height:1.35}
.sourcecard span{font-size:10.5px; color:#6a7060; line-height:1.5; display:block; margin-top:3px}
.sourcecard .prob{font-weight:900; color:var(--green-d); font-size:13px}
.shopcats{display:flex; gap:7px; overflow-x:auto; padding:2px 2px 8px; scrollbar-width:none}
.shopcats::-webkit-scrollbar{display:none}
.shopcats button{flex:0 0 auto; border:2px solid var(--ink); border-radius:99px; padding:6px 13px; font-size:12.5px; font-weight:700; min-height:36px; background:#fff; color:#6a7060}
.shopcats button.act{background:var(--ink); color:#fff}
.shopgrid{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.shopcard{background:#fff; border:2px solid var(--ink); border-radius:14px; overflow:hidden; display:flex; flex-direction:column}
.shopcard .cov{height:86px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border-bottom:2px solid var(--ink); position:relative}
.shopcard .cov .ic{font-family:var(--fun); font-size:28px; line-height:1}
.shopcard .cov .tag{position:absolute; top:7px; left:7px; font-size:9.5px; font-weight:900; background:var(--ink); color:#fff; padding:2px 7px; border-radius:99px}
.shopcard .cov .tag.show{background:var(--yellow); color:var(--ink); border:2px solid var(--ink)}
.shopcard .bd{padding:10px 10px 11px; display:flex; flex-direction:column; flex:1}
.shopcard h5{margin:0; font-size:13.5px; line-height:1.35}
.shopcard p{margin:3px 0 0; font-size:11px; color:#6a7060; line-height:1.55; flex:1}
.shopcard .foot{margin-top:9px; display:flex; align-items:center; justify-content:space-between; gap:6px}
.shopcard .cost{font-weight:900; font-size:14px; white-space:nowrap}
.shopcard .cost small{font-size:10px; font-weight:700; color:#6a7060}
.showcase-shelf{background:#fff; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); padding:12px}
.shelfrow{display:flex; gap:8px; flex-wrap:wrap}
.shelfitem{width:72px; text-align:center}
.shelfitem .box{height:62px; border:2px solid var(--ink); border-radius:10px; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:20px}
.shelfitem span{font-size:10px; font-weight:700; line-height:1.35; display:block; margin-top:4px; color:#454b3e}
.shelfempty{border:2px dashed #b9bfa9; border-radius:10px; background:#eef0e6; color:#9aa08f; font-size:11.5px; line-height:1.6; padding:12px; text-align:center; width:100%}
.shopitem{display:flex; align-items:center; gap:12px; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px; margin-bottom:9px}
.shopitem .ic{width:44px; height:44px; border-radius:10px; border:2px solid var(--ink); display:flex; align-items:center; justify-content:center; flex:0 0 44px; font-family:var(--fun); font-size:16px; background:#fff3c4}
.shopitem h5{margin:0; font-size:13.5px}
.shopitem p{margin:2px 0 0; font-size:11px; color:#6a7060}
.shopitem .cost{margin-left:auto; text-align:right; flex:0 0 auto}
.shopitem .cost b{font-size:15px; font-weight:900}
/* shop item photos : every exchange item carries a product image */
.shopcard .cov{height:118px}
.shopcard .cov img.covimg{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block}
.shopcard .cov .catlab{position:absolute; right:7px; bottom:6px; font-size:10px; font-weight:900; color:var(--ink); background:rgba(255,251,232,.94); border:1.5px solid var(--ink); padding:1px 7px; border-radius:99px}
.shopitem .ic img{width:100%; height:100%; object-fit:cover; display:block}
.shopitem .ic:has(img){padding:0; overflow:hidden; background:#e9e4d2}
.shelfitem .box img{width:100%; height:100%; object-fit:cover; display:block}
.shelfitem .box:has(img){padding:0; overflow:hidden}
.adm-thumb{width:54px; height:40px; object-fit:cover; border:2px solid var(--ink); border-radius:8px; display:block; background:#fff3c4}
.qrwrap{text-align:center; padding:8px 0}
.qr{display:grid; grid-template-columns:repeat(9,1fr); gap:2px; width:178px; height:178px; margin:12px auto; background:#fff; padding:10px; border:2.5px solid var(--ink); border-radius:12px}
.qr i{background:var(--ink); border-radius:2px}
.qr i.o{background:transparent}
.toast{position:absolute; left:50%; bottom:96px; transform:translateX(-50%) translateY(16px); background:var(--ink); color:#fff; font-size:13px; font-weight:700; padding:11px 18px; border-radius:20px; z-index:120; opacity:0; pointer-events:none; transition:.25s; white-space:normal; max-width:min(92%,430px); text-align:center; line-height:1.55; border:2px solid #fff; box-shadow:0 8px 20px rgba(0,0,0,.3)}
.toast.on{opacity:1; transform:translateX(-50%)}
.kv{display:flex; justify-content:space-between; gap:14px; font-size:13px; padding:9px 2px; border-bottom:2px solid #e6e8dc}
.kv b{flex:0 0 auto}
.kv span{color:#6a7060; text-align:right}
.detailcard{border:3px solid var(--ink); border-radius:14px; overflow:hidden; box-shadow:5px 5px 0 rgba(34,39,31,.8); position:relative; background:#fff; transform-style:preserve-3d}
.detailcard img{width:100%}
/* single-card showcase page : the whole phone page is one card, big and draggable */
.cardstage{position:absolute; inset:0; z-index:97; background:var(--app); display:none; flex-direction:column}
.cardstage.on{display:flex}
.cs-bar{flex:0 0 auto; display:flex; align-items:center; gap:10px; padding:12px 14px 10px; border-bottom:2.5px solid var(--ink); background:var(--paper)}
.cs-back{border:2.5px solid var(--ink); background:#fff; border-radius:99px; font-size:13px; font-weight:900; color:var(--ink); padding:6px 14px; min-height:38px; box-shadow:0 2px 0 var(--ink)}
.cs-back:active{transform:translateY(2px); box-shadow:0 0 0 var(--ink)}
.cs-name{font-weight:900; font-size:16px; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cs-no{flex:0 0 auto; font-size:11px; font-weight:900; background:var(--yellow); border:2px solid var(--ink); border-radius:99px; padding:3px 10px}
.cs-scroll{flex:1; overflow-y:auto; padding:16px 16px 30px}
.cardstage .detailcard{width:min(302px,88%); margin:0 auto; touch-action:none; cursor:grab}
.cardstage .detailcard:active{cursor:grabbing}
.cs-tiltwrap{width:min(302px,88%); margin:0 auto; touch-action:none; cursor:grab}
@media (prefers-reduced-motion: reduce){ .cardstage .detailcard, .cs-tiltwrap{transition:none !important} }
.detailcard .foil{position:absolute; inset:0; background:linear-gradient(115deg, transparent 30%, rgba(255,120,200,.22) 42%, rgba(120,220,255,.28) 52%, rgba(255,240,150,.25) 60%, transparent 72%); background-size:220% 220%; mix-blend-mode:screen; pointer-events:none}
/* ---------- 360° card viewer (detail page) : drag to spin a full turn — front, edges, back ---------- */
.spin360{width:min(302px,88%); margin:0 auto}
.spin360-scene{perspective:1200px; touch-action:none; cursor:grab; outline:none; user-select:none; -webkit-user-select:none}
.spin360-scene:active{cursor:grabbing}
.spin360-scene:focus-visible{outline:2.5px dashed var(--green-d); outline-offset:6px; border-radius:16px}
.spin360-card{position:relative; transform-style:preserve-3d; will-change:transform}
.spin360-face{backface-visibility:hidden; -webkit-backface-visibility:hidden}
/* real card thickness : the two faces sit half an edge-width apart (±4px) and
   the edge strip spans exactly the gap — faces and edge share one silhouette,
   so at side angles the edge reads as the card's own rim, never a slab beside it */
.spin360-front{position:relative; transform:translateZ(4px)}
.spin360 .detailcard{box-shadow:none; width:100%; margin:0}
.spin360-back{position:absolute; inset:0; transform:rotateY(180deg) translateZ(4px); background:#fff; border:3px solid var(--ink); border-radius:14px; overflow:hidden}
.spin360-back .cardback{padding:18px 12px 14px}
.spin360-back .cb-top{font-size:10px}
.spin360-back .cb-bottom{font-size:10px}
.spin360-back .cb-num{font-size:9px}
.spin360-edge{position:absolute; top:2%; height:96%; width:8px; border-radius:2px; background:linear-gradient(90deg,#c6bda1 0,#ece5cf 24%,#faf6ea 50%,#ece5cf 76%,#bfb69c 100%); transform:rotateY(90deg); pointer-events:none}
.spin360-edge::before{content:""; position:absolute; inset:0; border-radius:inherit; background:repeating-linear-gradient(180deg, rgba(122,112,84,.14) 0 1px, transparent 1px 5px)}
.spin360-edge.l{left:-4px} .spin360-edge.r{right:-4px}
.spin360-shadow{width:72%; height:16px; margin:14px auto 0; background:radial-gradient(ellipse at center, rgba(20,26,18,.5), transparent 68%); border-radius:50%}
.spin360-ctl{display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; flex-wrap:wrap}
.spin360-ctl button{border:2.5px solid var(--ink); background:#fff; color:var(--ink); border-radius:99px; font-size:12.5px; font-weight:900; padding:7px 14px; min-height:38px; box-shadow:0 2px 0 var(--ink); cursor:pointer}
.spin360-ctl button:active{transform:translateY(2px); box-shadow:0 0 0 var(--ink)}
.spin360-ctl button.on{background:var(--yellow)}
.spin360-deg{font-size:11.5px; font-weight:900; color:#6a7060; font-variant-numeric:tabular-nums; min-width:76px; text-align:center}
.packitem{transition:transform .14s ease, box-shadow .14s ease}
@media(hover:hover){ .packitem:not(.opened):hover{transform:translateY(-2px)} .packitem:not(.opened):hover .bp-mini{transform:rotate(1deg) scale(1.04)} }
.mission,.quest,.shopcard,.sourcecard{transition:transform .13s ease}
@media(hover:hover){ .quest:hover,.shopcard:hover{transform:translateY(-2px)} }

/* ---------- card back : 南充浪浪山涂鸦字标 ---------- */
.cardback{background:#fff; color:var(--ink); display:flex; flex-direction:column; align-items:center; justify-content:space-between; padding:10px 7px 8px; position:relative; width:100%; height:100%}
.cardback::before{content:""; position:absolute; inset:5px; border:2px solid var(--ink); border-radius:6px; pointer-events:none}
.cardback::after{content:""; position:absolute; inset:8px; border:1px solid rgba(30,36,27,.22); border-radius:4px; pointer-events:none}
.cardback .cb-top{font-size:7.5px; font-weight:900; letter-spacing:.24em; color:#6a7060; margin-top:3px; position:relative; z-index:1; white-space:nowrap}
.cardback .cb-logo{width:96%; max-width:100%; height:auto; object-fit:contain; position:relative; z-index:1; filter:drop-shadow(0 1px 0 rgba(0,0,0,.08))}
.cardback .cb-bottom{display:flex; align-items:center; gap:5px; font-size:7.5px; font-weight:900; letter-spacing:.14em; position:relative; z-index:1; margin-bottom:2px; white-space:nowrap}
.cardback .cb-bottom .dot{width:5px; height:5px; border-radius:50%; background:linear-gradient(135deg,#ff7ad9,#ffc61a 45%,#3ddc84); border:1.2px solid var(--ink); flex:0 0 auto}
.cardback .cb-num{font-size:7px; font-weight:700; letter-spacing:.18em; color:#9aa08f; position:relative; z-index:1}
.cardback-lg{border:3px solid var(--ink); border-radius:12px; overflow:hidden; box-shadow:5px 5px 0 rgba(34,39,31,.8); aspect-ratio:3/4.18; background:#fff}
.cardback-lg .cardback{padding:16px 10px 12px}
.cardback-lg .cb-top{font-size:9px}
.cardback-lg .cb-bottom{font-size:9px}
.cardback-lg .cb-num{font-size:8px}

/* ---------- opening flow : TCG Pocket style ---------- */
#openFlow{background:#070b1d radial-gradient(ellipse 90% 55% at 50% 38%, #1d2a52 0%, #0a0f26 58%, #070b1d 100%); color:#fff; overflow:hidden}
#openFlow::before{content:""; position:absolute; inset:0; background-image:radial-gradient(#ffffff 1.1px, transparent 1.3px), radial-gradient(#cfe0ff 1.6px, transparent 1.9px), radial-gradient(#ffe9a8 1px, transparent 1.2px); background-size:90px 90px, 150px 150px, 64px 64px; background-position:0 0, 34px 52px, 12px 30px; opacity:.55; animation:starTw 3.4s ease-in-out infinite alternate; pointer-events:none}
@keyframes starTw{from{opacity:.35} to{opacity:.65}}
#openFlow::after{content:""; position:absolute; left:-35%; right:-35%; bottom:-46%; height:78%; background:repeating-conic-gradient(from -90deg at 50% 100%, rgba(255,214,110,.13) 0deg 3.5deg, transparent 3.5deg 10deg); transform-origin:50% 100%; animation:raySway 10s ease-in-out infinite alternate; -webkit-mask-image:radial-gradient(ellipse 62% 100% at 50% 100%, #000 25%, transparent 70%); mask-image:radial-gradient(ellipse 62% 100% at 50% 100%, #000 25%, transparent 70%); pointer-events:none}
@keyframes raySway{from{transform:rotate(-3.5deg)} to{transform:rotate(3.5deg)}}
.of-top{display:flex; justify-content:space-between; align-items:center; padding:52px 18px 0; position:relative; z-index:2}
.of-top .t{font-weight:900; font-size:14px; letter-spacing:.14em; background:rgba(255,255,255,.12); border:2px solid rgba(255,255,255,.5); padding:5px 14px; border-radius:99px; backdrop-filter:blur(4px)}
.of-top .cnt{font-weight:900; font-size:13px; font-variant-numeric:tabular-nums}
.skip{background:rgba(255,255,255,.12); color:#fff; border:2px solid rgba(255,255,255,.5); border-radius:99px; padding:6px 14px; font-size:12px; font-weight:700; min-height:36px}
.of-stage{flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:10px 22px; position:relative; text-align:center; z-index:1}
.of-hint{font-size:13px; color:rgba(255,255,255,.75); margin-top:18px; line-height:1.7}
.of-hint b{color:#fff}
.of-hint .swipe{display:inline-block; animation:swipeHint 1.4s ease-in-out infinite; color:var(--yellow); font-weight:900}
@keyframes swipeHint{0%,100%{transform:translateX(0)} 50%{transform:translateX(9px)}}
/* ---------- backpack opening : unzip & rummage ---------- */
.bp{width:210px; position:relative; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; animation:bob 2.4s ease-in-out infinite; filter:drop-shadow(0 24px 22px rgba(0,0,0,.45))}
.bp:active{cursor:grabbing}
@keyframes bob{0%,100%{transform:translateY(0) rotate(-1deg)} 50%{transform:translateY(-10px) rotate(1deg)}}
.bp-strap{position:absolute; top:-13px; width:32px; height:60px; border:9px solid #8a4a26; border-bottom:none; border-radius:19px 19px 0 0; z-index:0}
.bp-strap.l{left:27px} .bp-strap.r{right:27px}
.bp-handle{position:absolute; top:-7px; left:50%; transform:translateX(-50%); width:62px; height:15px; border:6px solid #6e3a1e; border-bottom:none; border-radius:11px 11px 0 0; z-index:0}
.bp-body{position:relative; height:254px; border:3px solid #10131c; border-radius:44px 44px 30px 30px; background:linear-gradient(160deg,#ef7a45 0%,#e0643a 52%,#c9502a 100%); box-shadow:inset 0 0 0 1px rgba(255,255,255,.3), inset 0 -18px 24px rgba(0,0,0,.18); z-index:1}
.bp-cards{position:absolute; left:50%; top:0; transform:translateX(-50%); width:132px; height:88px; overflow:hidden; z-index:2}
.bp-card{position:absolute; bottom:0; width:58px; height:80px; background:#fff; border:2.5px solid #10131c; border-radius:8px; overflow:hidden; transition:transform .55s cubic-bezier(.2,1.3,.4,1); box-shadow:0 4px 10px rgba(0,0,0,.3)}
.bp-card img{width:100%; height:100%; object-fit:cover}
.bp-card.c1{left:6px; transform:translateY(48px) rotate(-7deg)}
.bp-card.c2{right:6px; transform:translateY(48px) rotate(6deg); transition-delay:.07s}
.bp.open .bp-card.c1{transform:translateY(-24px) rotate(-11deg)}
.bp.open .bp-card.c2{transform:translateY(-30px) rotate(9deg)}
.bp-side{position:absolute; bottom:36px; width:15px; height:62px; background:#b34a26; border:3px solid #10131c; z-index:0}
.bp-side.l{left:-12px; border-radius:9px 0 0 9px; border-right:none}
.bp-side.r{right:-12px; border-radius:0 9px 9px 0; border-left:none}
.bp-lid{position:absolute; left:-3px; right:-3px; top:-3px; height:88px; background:linear-gradient(180deg,#d1572c,#bf4a24); border:3px solid #10131c; border-radius:44px 44px 18px 18px; z-index:3; transition:transform .5s cubic-bezier(.3,1.2,.4,1); box-shadow:inset 0 0 0 1px rgba(255,255,255,.25), 0 4px 8px rgba(0,0,0,.2)}
.bp.open .bp-lid{transform:translateY(-58px) rotate(-13deg)}
.bp-patch{position:absolute; left:50%; top:13px; transform:translateX(-50%); background:var(--yellow); border:2.5px solid var(--ink); border-radius:8px; padding:3px 12px; font-family:var(--fun); font-size:16px; color:var(--ink); box-shadow:0 2px 0 var(--ink); white-space:nowrap; z-index:1}
.bp-buckle{position:absolute; left:50%; bottom:9px; transform:translateX(-50%); width:30px; height:18px; border:3px solid #10131c; border-radius:5px; background:#f2ead8}
.bp-buckle::after{content:""; position:absolute; left:50%; top:0; bottom:0; width:3px; background:#10131c; transform:translateX(-50%)}
.bp-zip{position:absolute; left:16px; right:16px; top:90px; height:18px; z-index:4}
.bp-teeth{position:absolute; left:0; right:0; top:5px; height:8px; border:2px solid #10131c; border-radius:5px; background:repeating-linear-gradient(90deg,#3a3a34 0 4px,#7a7a70 4px 6px,#3a3a34 6px 10px)}
.bp-mouth{position:absolute; left:2px; top:4px; height:11px; width:0; background:#221a12; border-radius:7px; box-shadow:inset 0 3px 6px rgba(0,0,0,.85)}
.bp.open .bp-mouth{height:20px; top:-1px; transition:height .3s ease, top .3s ease}
.bp-pull{position:absolute; top:-4px; left:0; width:30px; height:26px; background:var(--yellow); border:2.5px solid #10131c; border-radius:7px; z-index:5; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 0 #10131c}
.bp-pull::before{content:""; width:13px; height:11px; background:repeating-linear-gradient(90deg,#10131c 0 2.5px, transparent 2.5px 5.5px); opacity:.6}
.bp:not(.open):not(.dragging) .bp-pull{animation:pullWiggle 1.6s ease-in-out infinite}
@keyframes pullWiggle{0%,100%{transform:translateX(0)} 50%{transform:translateX(6px)}}
.bp-pocket{position:absolute; left:26px; right:26px; bottom:19px; height:106px; background:linear-gradient(180deg,#e87347,#d95f33); border:3px solid #10131c; border-radius:16px; z-index:2; box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.bp-pocket::before{content:""; position:absolute; left:10px; right:10px; top:9px; height:7px; border:2px solid #10131c; border-radius:4px; background:repeating-linear-gradient(90deg,#3a3a34 0 4px,#7a7a70 4px 6px,#3a3a34 6px 10px)}
.bp-logo{background:#fff; border:2px solid var(--ink); border-radius:8px; padding:5px 7px 3px; margin:25px 12px 0; box-shadow:0 2px 0 rgba(0,0,0,.25)}
.bp-logo img{width:100%; height:auto}
.bp-pocket .bp-note{text-align:center; font-size:9.5px; font-weight:900; letter-spacing:.16em; color:rgba(255,255,255,.92); margin-top:7px}
/* burst-out : 5 cards explode from the pack mouth and fan open */
.bp-wrap{position:relative; margin-top:66px}
.bp.open{animation:none}
.burst-layer{position:absolute; inset:0; pointer-events:none; z-index:8}
.burst-card{position:absolute; left:50%; top:92px; width:78px; height:108px; margin-left:-39px; background:#fff; border:3px solid #10131c; border-radius:9px; overflow:hidden; box-shadow:0 16px 26px rgba(0,0,0,.5); opacity:0}
.burst-card .cardback{padding:7px 5px 6px}
.burst-card .cb-top{font-size:6.5px}
.burst-card .cb-bottom{font-size:6.5px}
.burst-lang{position:absolute; left:50%; top:118px; margin-left:-160px; width:104px; z-index:9; display:flex; flex-direction:column; align-items:center; gap:2px; pointer-events:none}
.burst-lang .bubble{font-size:12.5px; padding:6px 11px; border-width:2.5px; border-radius:13px; box-shadow:0 3px 0 var(--ink)}
.burst-lang .bubble::after{bottom:-10px; border-width:5px; border-top-width:7px}
/* mini backpack : packs list thumbnail */
.bp-mini{width:62px; height:88px; flex:0 0 62px; position:relative; transform:rotate(-1.2deg); transition:transform .18s ease}
.bp-mini .mb-body{position:absolute; left:0; right:0; top:7px; bottom:0; border:2.5px solid var(--ink); border-radius:16px 16px 11px 11px; box-shadow:3px 4px 0 rgba(30,36,27,.28), inset 0 0 0 1px rgba(255,255,255,.3); overflow:hidden}
.bp-mini .mb-lid{position:absolute; left:0; right:0; top:0; height:23px; border-bottom:2.5px solid var(--ink); filter:brightness(.86)}
.bp-mini .mb-zip{position:absolute; left:6px; right:6px; top:26px; height:5px; border:1.8px solid #10131c; border-radius:3px; background:repeating-linear-gradient(90deg,#3a3a34 0 3px,#7a7a70 3px 4.5px,#3a3a34 4.5px 7.5px)}
.bp-mini .mb-pocket{position:absolute; left:9px; right:9px; bottom:15px; height:30px; border:2px solid var(--ink); border-radius:7px; filter:brightness(1.08); display:flex; align-items:center; justify-content:center}
.bp-mini .mb-pocket b{font-family:var(--fun); font-weight:400; font-size:12.5px; color:#fff; text-shadow:1.2px 1.2px 0 rgba(0,0,0,.35); white-space:nowrap}
.bp-mini .mb-sub{position:absolute; left:0; right:0; bottom:3px; text-align:center; font-size:8px; font-weight:900; letter-spacing:.14em; color:rgba(255,255,255,.92); text-shadow:0 1px 1px rgba(0,0,0,.3)}
.burst-rays{position:absolute; left:50%; top:44%; width:560px; height:560px; margin:-280px 0 0 -280px; background:repeating-conic-gradient(rgba(255,226,140,.5) 0deg 4deg, transparent 4deg 12deg); border-radius:50%; -webkit-mask-image:radial-gradient(circle,#000 0%, transparent 68%); mask-image:radial-gradient(circle,#000 0%, transparent 68%); pointer-events:none; z-index:3; animation:raysBurst .8s ease-out both}
@keyframes raysBurst{0%{transform:scale(.25) rotate(0deg); opacity:0} 25%{opacity:1} 100%{transform:scale(1.25) rotate(24deg); opacity:0}}
.pack-half{position:absolute; left:50%; top:50%; width:182px; height:130px; margin-left:-91px; overflow:hidden; border:3px solid #10131c; pointer-events:none; z-index:6}
.particle{position:absolute; border-radius:3px; pointer-events:none; z-index:5}
.hi-pop{animation:hipop .55s cubic-bezier(.2,1.5,.4,1) both}
@keyframes hipop{from{transform:scale(.4) translateY(40px); opacity:0} to{transform:scale(1) translateY(0); opacity:1}}
.bubble{background:#fff; color:var(--ink); border:3px solid var(--ink); border-radius:18px; padding:12px 20px; font-weight:900; font-size:19px; position:relative; box-shadow:var(--hard)}
.bubble::after{content:""; position:absolute; left:50%; bottom:-13px; transform:translateX(-50%); border:7px solid transparent; border-top:9px solid var(--ink)}
.reveal-row{display:flex; gap:11px; justify-content:center; align-items:flex-start; perspective:1100px}
.flip{width:104px; height:146px; position:relative; transform-style:preserve-3d; transition:transform .62s cubic-bezier(.25,.8,.3,1); cursor:pointer; flex:0 0 auto; filter:drop-shadow(0 14px 18px rgba(0,0,0,.45))}
.flip.flipped{transform:rotateY(180deg)}
.flip .fside{position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:11px; overflow:hidden}
.flip .back{background:#fff; border:3px solid var(--ink); box-shadow:inset 0 0 0 1px rgba(30,36,27,.15)}
.flip.is-ssr .back{box-shadow:0 0 0 2px #ffd94d, 0 0 26px rgba(255,201,26,.75), inset 0 0 0 1px rgba(30,36,27,.15); animation:ssrBackGlow 1.15s ease-in-out infinite}
@keyframes ssrBackGlow{0%,100%{box-shadow:0 0 0 2px #ffd94d, 0 0 16px rgba(255,201,26,.5)} 50%{box-shadow:0 0 0 2.5px #ffe98a, 0 0 34px rgba(255,201,26,.95)}}
.flip.is-rare .back{box-shadow:0 0 0 2px rgba(120,195,255,.9), 0 0 20px rgba(63,143,210,.55)}
.flip .front{transform:rotateY(180deg); background:#fff; border:3px solid #10131c}
.flip .front img{width:100%; height:100%; object-fit:cover}
.flipwrap{display:flex; flex-direction:column; align-items:center; width:104px; animation:cardIn .5s cubic-bezier(.2,1.3,.4,1) both}
.flipwrap:nth-child(2){animation-delay:.1s} .flipwrap:nth-child(3){animation-delay:.2s}
@keyframes cardIn{from{transform:translateY(34px) rotate(2deg); opacity:0} to{transform:none; opacity:1}}
.flipcap{font-size:11px; color:rgba(255,255,255,.85); font-weight:700; margin-top:9px; min-height:16px; text-align:center; line-height:1.45}
.holo-wrap{position:relative; width:min(242px,68vw)}
.holo-wrap::before{content:""; position:absolute; inset:-6px; border-radius:17px; background:conic-gradient(from var(--a,0deg), #ff9d9d, #ffe29d, #b6ffb0, #9dd8ff, #d9b0ff, #ff9d9d); animation:spin 2.6s linear infinite; z-index:0; filter:saturate(1.15)}
.holo-wrap::after{content:""; position:absolute; inset:-22px; background:repeating-conic-gradient(from 0deg, rgba(255,220,110,.16) 0deg 7deg, transparent 7deg 18deg); border-radius:50%; animation:spin 14s linear infinite reverse; z-index:0; pointer-events:none}
@property --a{syntax:'<angle>'; initial-value:0deg; inherits:false}
@keyframes spin{to{--a:360deg}}
.ssr-tilt{border-radius:12px; overflow:hidden; transform-style:preserve-3d; position:relative; z-index:1; border:3px solid #10131c; touch-action:none; background:#10131c; box-shadow:0 24px 44px rgba(0,0,0,.55)}
.ssr-tilt img{width:100%}
.ssr-tilt .foil{position:absolute; inset:0; background:linear-gradient(115deg, transparent 30%, rgba(255,120,200,.22) 42%, rgba(120,220,255,.28) 52%, rgba(255,240,150,.25) 60%, transparent 72%); background-size:220% 220%; background-position:var(--fx,50%) var(--fy,50%); mix-blend-mode:screen; pointer-events:none}
.glare{position:absolute; inset:0; background:radial-gradient(420px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.5), transparent 45%); mix-blend-mode:screen; pointer-events:none}
.flash{position:absolute; inset:0; background:#fff; opacity:0; pointer-events:none; z-index:40}
.flash.go{animation:flashA .8s ease-out}
@keyframes flashA{0%{opacity:0} 15%{opacity:.95} 100%{opacity:0}}
/* ---------- one-by-one reveal : XP pack-opening style ---------- */
.one-wrap{position:relative; display:flex; flex-direction:column; align-items:center; width:100%}
.card-rays{position:absolute; left:50%; bottom:-64px; width:520px; height:520px; margin-left:-260px; background:repeating-conic-gradient(from -90deg at 50% 100%, rgba(255,216,120,.34) 0deg 4deg, transparent 4deg 11deg); -webkit-mask-image:radial-gradient(ellipse 60% 62% at 50% 100%, #000 20%, transparent 68%); mask-image:radial-gradient(ellipse 60% 62% at 50% 100%, #000 20%, transparent 68%); transform-origin:50% 100%; animation:raySway 7s ease-in-out infinite alternate; pointer-events:none}
.one-float{animation:oneFloat 3.2s ease-in-out infinite; position:relative; z-index:2}
.one-float.still{animation:none}
.one-float.enter{animation:cardFlyIn .55s cubic-bezier(.2,1.25,.35,1) both}
@keyframes oneFloat{0%,100%{transform:translateY(0) rotate(-1.1deg)} 50%{transform:translateY(-9px) rotate(1.1deg)}}
@keyframes cardFlyIn{from{transform:translateY(90px) scale(.6) rotate(-7deg); opacity:0} to{transform:translateY(0) scale(1) rotate(0); opacity:1}}
.one-tilt{perspective:1200px}
.one-card{width:min(300px,78%); aspect-ratio:3/4.08; position:relative; transform-style:preserve-3d; transition:transform .72s cubic-bezier(.3,.7,.3,1); cursor:pointer}
.one-card.flipped{transform:rotateY(180deg)}
.one-card .oside{position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:13px; overflow:hidden}
.one-card .oback{background:#fff; border:3px solid #10131c; box-shadow:0 22px 38px rgba(0,0,0,.5); transform:translateZ(3.5px)}
.one-card .ofront{transform:rotateY(180deg) translateZ(3.5px); background:#fff; border:3px solid #10131c; box-shadow:0 22px 38px rgba(0,0,0,.5)}
.one-card .oedge{position:absolute; top:2%; height:96%; width:7px; border-radius:2px; background:linear-gradient(90deg,#c6bda1 0,#ece5cf 24%,#faf6ea 50%,#ece5cf 76%,#bfb69c 100%); transform:rotateY(90deg); pointer-events:none}
.one-card .oedge::before{content:""; position:absolute; inset:0; border-radius:inherit; background:repeating-linear-gradient(180deg, rgba(122,112,84,.14) 0 1px, transparent 1px 5px)}
.one-card .oedge.r{right:-3.5px}
.one-card .oedge.l{left:-3.5px}
.one-card.pre-ssr .oback{animation:ssrBackGlow 1.15s ease-in-out infinite}
.one-card.pre-rare .oback{animation:rareBackGlow 1.15s ease-in-out infinite}
@keyframes rareBackGlow{0%,100%{box-shadow:0 0 0 2px rgba(120,195,255,.85), 0 0 14px rgba(63,143,210,.45)} 50%{box-shadow:0 0 0 2.5px #bfe3ff, 0 0 30px rgba(63,143,210,.85)}}
.one-card .foil{position:absolute; inset:0; background:linear-gradient(115deg, transparent 30%, rgba(255,120,200,.22) 42%, rgba(120,220,255,.28) 52%, rgba(255,240,150,.25) 60%, transparent 72%); background-size:220% 220%; background-position:var(--fx,50%) var(--fy,50%); mix-blend-mode:screen; pointer-events:none}
.soft-glow{position:absolute; left:50%; top:46%; width:340px; height:340px; margin:-170px 0 0 -170px; border-radius:50%; background:radial-gradient(circle, rgba(190,225,255,.5), transparent 65%); pointer-events:none; z-index:1; animation:glowPulse .9s ease-out both}
@keyframes glowPulse{0%{transform:scale(.4); opacity:0} 35%{opacity:1} 100%{transform:scale(1.3); opacity:0}}
.coin-p{position:absolute; border-radius:50%; background:radial-gradient(circle at 35% 32%, #fff3b0, #ffc61a 55%, #d9930d); border:1.5px solid #a86e00; color:#8a5a00; display:flex; align-items:center; justify-content:center; font-weight:900; pointer-events:none; z-index:6; box-shadow:0 2px 6px rgba(0,0,0,.35)}
.ssrfront-frame{position:absolute; inset:0; padding:5px; background:conic-gradient(from var(--a,0deg), #ff9d9d, #ffe29d, #b6ffb0, #9dd8ff, #d9b0ff, #ff9d9d); animation:spin 2.6s linear infinite}
.ssrfront-frame img{width:100%; height:100%; object-fit:cover; border-radius:9px}
.fx-orb{position:absolute; left:50%; top:44%; width:120px; height:120px; margin:-60px 0 0 -60px; border-radius:50%; background:radial-gradient(circle, #fff 0%, #ffe98a 34%, rgba(255,180,40,.55) 58%, transparent 72%); pointer-events:none; z-index:7; animation:orbBlast .7s ease-out both}
@keyframes orbBlast{0%{transform:scale(.2); opacity:0} 30%{opacity:1} 100%{transform:scale(3.4); opacity:0}}
.fx-bolt{position:absolute; left:50%; top:40%; transform:translate(-50%,-50%); pointer-events:none; z-index:7; animation:boltFlash .55s ease-out both}
@keyframes boltFlash{0%,55%{opacity:0} 12%,30%{opacity:1} 100%{opacity:0; transform:translate(-50%,-50%) scale(1.12)}}
.fx-shard{position:absolute; pointer-events:none; z-index:7; background:linear-gradient(135deg, rgba(210,240,255,.95), rgba(130,190,255,.75)); clip-path:polygon(50% 0, 100% 100%, 0 78%)}
.fx-rays{position:absolute; left:50%; top:44%; width:640px; height:640px; margin:-320px 0 0 -320px; border-radius:50%; background:repeating-conic-gradient(rgba(255,160,220,.4) 0deg 3deg, rgba(140,220,255,.35) 3deg 6deg, rgba(255,230,140,.4) 6deg 9deg, transparent 9deg 15deg); -webkit-mask-image:radial-gradient(circle,#000 0%, transparent 66%); mask-image:radial-gradient(circle,#000 0%, transparent 66%); pointer-events:none; z-index:3; animation:fxRaysSpin 1.1s ease-out both}
@keyframes fxRaysSpin{0%{transform:scale(.3) rotate(0deg); opacity:0} 25%{opacity:1} 100%{transform:scale(1.15) rotate(50deg); opacity:0}}
.one-cap{margin-top:16px; font-size:13px; font-weight:700; color:rgba(255,255,255,.88); line-height:1.6; min-height:22px; position:relative; z-index:2; max-width:320px}
.one-cap b{color:var(--yellow)}
.sumrow{display:flex; gap:8px; justify-content:center}
.sumrow .sc{width:94px; animation:hipop .45s both}
/* ---------- pack result : fan layout, rare card centered (reference style) ---------- */
#openFlow.result{background:#eae7df linear-gradient(180deg,#f4f2ec 0%,#eae7df 55%,#e2ded2 100%); color:var(--ink)}
#openFlow.result::before,#openFlow.result::after{display:none}
#openFlow.result .of-top .t{background:#fff; color:var(--ink); border-color:#d5cfbf}
#openFlow.result .of-top .cnt{color:#6a7060}
#openFlow.result .skip{background:#fff; color:var(--ink); border-color:#d5cfbf}
#openFlow.result .of-top{display:none}
/* ---------- pack stage : clean light stage, pack centered large (PRISMA-style) ---------- */
#openFlow.packstage{background:#f0ede4 linear-gradient(180deg,#f8f6f0 0%,#f0ede4 58%,#e7e3d2 100%); color:var(--ink)}
#openFlow.packstage::before,#openFlow.packstage::after{display:none}
#openFlow.packstage .of-top .t{background:#fff; color:var(--ink); border-color:#d5cfbf}
#openFlow.packstage .of-top .cnt{color:#6a7060}
#openFlow.packstage .skip{background:#fff; color:var(--ink); border-color:#d5cfbf}
#openFlow.packstage .bp-wrap{transform:scale(1.17); margin-top:30px}
#openFlow.packstage .bp{filter:drop-shadow(0 26px 20px rgba(84,62,18,.30))}
#openFlow.packstage .of-hint{color:#6a7060}
#openFlow.packstage .of-hint b{color:var(--ink)}
.fan{position:relative; width:100%; max-width:368px; height:566px; margin:0 auto}
.fan-banner{position:absolute; left:50%; top:-2px; transform:translateX(-50%); z-index:20; display:flex; align-items:center; gap:6px; background:rgba(23,26,38,.94); color:#fff; border-radius:99px; padding:4px 10px 4px 4px; font-size:11.5px; font-weight:900; white-space:nowrap; box-shadow:0 5px 12px rgba(23,26,38,.28); border:none; cursor:pointer; animation:bannerIn .5s .45s both}
@keyframes bannerIn{from{transform:translateX(-50%) scale(.45) translateY(28px); opacity:0} to{transform:translateX(-50%) scale(1) translateY(0); opacity:1}}
.fan-banner .rb-rar{background:linear-gradient(135deg,#ffe98a,#f5b800); color:#4a3200; border-radius:99px; padding:2px 7px; font-size:10px; letter-spacing:.06em}
.fan-banner .rb-new{background:#ff3d68; color:#fff; border-radius:99px; padding:2px 6px; font-size:9.5px}
.fan-banner .rb-go{color:#ffd94d; font-size:10.5px}
.fcard{position:absolute; left:50%; top:50%; width:140px; padding:0; background:#fffdf8; border:1px solid #ddd6c6; border-radius:12px; box-shadow:0 14px 28px rgba(50,46,32,.20), 0 2px 6px rgba(50,46,32,.10); transform:translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); animation:fanIn .6s cubic-bezier(.2,1.2,.35,1) both; cursor:pointer; text-align:center; font-family:var(--sans); color:var(--ink); overflow:hidden}
@keyframes fanIn{from{transform:translate(-50%,-26%) rotate(0deg) scale(.32); opacity:0} to{transform:translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); opacity:1}}
.fcard .fc-top{display:flex; justify-content:space-between; align-items:center; padding:6px 7px 0}
.fc-new{display:inline-block; background:#ff3d68; color:#fff; font-size:9.5px; font-weight:900; padding:2px 7px; border-radius:99px; letter-spacing:.04em}
.fc-dup{display:inline-block; background:var(--ink); color:#fff; font-size:9.5px; font-weight:900; padding:2px 7px; border-radius:99px}
.fc-rarc{min-width:24px; height:22px; padding:0 8px; border-radius:99px; background:rgba(20,22,30,.88); color:#e8e4d8; border:1.5px solid rgba(20,22,30,.25); font-size:10.5px; font-weight:900; letter-spacing:.05em; display:flex; align-items:center; justify-content:center; flex:0 0 auto}
.fcard .fc-arch{display:block; margin:6px 8px 0; border-radius:66px 66px 8px 8px; overflow:hidden; aspect-ratio:1/.92; background:#eef0e6}
.fcard .fc-arch img{width:100%; height:100%; object-fit:cover; object-position:50% 38%}
.fcard .fc-name{display:block; margin:7px 8px 0; border:1.5px solid #e3ddcd; border-radius:7px; padding:5px 4px; font-size:12.5px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.fcard .fc-meta{display:flex; justify-content:space-between; padding:6px 10px 8px; font-size:8.5px; line-height:1.5; color:#8a8f7d; font-weight:700; text-align:center}
.fcard .fc-meta b{display:block; color:#454b3e; font-size:9.5px}
.fcard.fc-full{background:#141c3f; border-color:#2a3565}
.fcard.fc-full img.fcf-img{width:100%; height:196px; object-fit:cover; object-position:50% 30%; display:block}
.fcard.fc-full .fc-full-name{display:block; color:#fff; font-size:13.5px; font-weight:900; padding:8px 6px 2px}
.fcard.fc-full .fc-full-sub{display:block; color:rgba(255,255,255,.65); font-size:8.5px; font-weight:700; letter-spacing:.14em; padding:0 6px 9px}
.fcard.fc-full .fc-rard{position:absolute; top:7px; right:7px; height:22px; padding:0 8px; border:1.5px solid rgba(255,217,77,.85); display:flex; align-items:center; justify-content:center; border-radius:99px; background:rgba(10,14,34,.82)}
.fcard.fc-full .fc-rard i{font-style:normal; color:#ffd94d; font-size:9.5px; font-weight:900; letter-spacing:.05em}
.fcard.fc-center{width:min(238px,72%); z-index:10; border:3px solid #c9962e; border-radius:14px; background:#10131c; box-shadow:0 0 0 2px #ffe98a, inset 0 0 0 2px rgba(255,233,138,.85), inset 0 0 0 5px #8a5f14, 0 26px 44px rgba(50,38,0,.45), 0 0 44px rgba(245,184,0,.4)}
.fcard.fc-center::after{content:""; position:absolute; inset:0; z-index:1; background:repeating-radial-gradient(circle at 88% -6%, transparent 0 13px, rgba(255,217,77,.16) 13px 14.5px, transparent 14.5px 27px); pointer-events:none}
.fcard.fc-center img.fcc-img{width:100%; height:300px; object-fit:cover; object-position:50% 30%; display:block}
.fcard.fc-center .fc-new{position:absolute; top:9px; left:9px; z-index:2; box-shadow:0 2px 6px rgba(0,0,0,.35)}
.fcard.fc-center .fc-rarg{position:absolute; top:9px; right:9px; z-index:2; background:rgba(12,12,16,.82); color:#ffd94d; border:1.5px solid #ffd94d; font-size:10.5px; font-weight:900; letter-spacing:.06em; padding:3px 9px; border-radius:99px}
.fcard.fc-center .fc-ssr-name{position:absolute; left:0; right:0; bottom:0; z-index:2; display:block; background:linear-gradient(180deg, transparent, rgba(8,8,12,.88) 42%); color:#fff; font-size:16.5px; font-weight:900; padding:26px 8px 10px; text-shadow:0 1px 3px rgba(0,0,0,.6)}
.fcard.fc-center .fc-ssr-name span{display:block; font-size:10px; font-weight:700; color:#ffd94d; letter-spacing:.12em; margin-top:3px}
.fan-cap{margin-top:2px; font-size:12px; font-weight:700; color:#6a7060; line-height:1.7; text-align:center}
.fan-cap b{color:var(--ink)}
@media (prefers-reduced-motion: reduce){ .fcard,.fan-banner{animation:none} }
.prize-list{background:#fff; color:var(--ink); border:3px solid var(--ink); border-radius:14px; box-shadow:var(--hard); padding:12px 16px; font-size:13px; line-height:2; text-align:left; width:100%; max-width:320px; margin-top:18px}
.prize-list b{color:var(--green-d)}

/* ---------- route lighting ---------- */
.lightbanner{margin-top:12px; background:#fff; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:13px 14px; display:flex; gap:12px; align-items:center}
.lightbanner .lb-ic{width:46px; height:46px; flex:0 0 46px; border:2.5px solid var(--ink); border-radius:50%; background:var(--olive); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:19px}
.lightbanner h3{margin:0 0 2px; font-size:15.5px}
.lightbanner p{margin:0; font-size:11.5px; color:#6a7060; line-height:1.55}

/* ---------- medal check-in : home column + single page ---------- */
.medalbanner{margin-top:14px; background:linear-gradient(150deg,#fff8dc,#ffe9a3); border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:14px; display:flex; gap:13px; align-items:center; position:relative; overflow:hidden; cursor:pointer; transition:transform .13s ease}
.medalbanner::before{content:""; position:absolute; inset:0; background:radial-gradient(#ffffff55 1.6px, transparent 1.7px); background-size:18px 18px; pointer-events:none}
.medalbanner:active{transform:scale(.985)}
.medalbanner .mb-art{flex:0 0 auto; position:relative; filter:drop-shadow(0 3px 0 rgba(30,36,27,.35))}
.medalbanner h3{margin:0 0 3px; font-family:var(--fun); font-weight:400; font-size:19px; position:relative}
.medalbanner p{margin:0; font-size:12px; line-height:1.6; color:#5c5340; position:relative}
.medalbanner .btn{position:relative; flex:0 0 auto}
.medalhero{background:var(--ink); color:#fff; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:18px 16px; position:relative; overflow:hidden; text-align:center}
.medalhero::before{content:""; position:absolute; inset:0; background:radial-gradient(#ffffff14 1.6px, transparent 1.7px); background-size:18px 18px; pointer-events:none}
.medalhero .mh-medal{position:relative; display:inline-block; animation:medalSwing 3.6s ease-in-out infinite; transform-origin:50% -10px; filter:drop-shadow(0 10px 14px rgba(0,0,0,.45))}
@keyframes medalSwing{0%,100%{transform:rotate(-2.4deg)} 50%{transform:rotate(2.4deg)}}
@media (prefers-reduced-motion: reduce){ .medalhero .mh-medal{animation:none} }
.medalhero h3{font-family:var(--fun); font-weight:400; font-size:26px; margin:10px 0 4px; position:relative}
.medalhero p{margin:0; font-size:12.5px; line-height:1.7; opacity:.85; position:relative}
.medalhero .mh-chips{display:flex; gap:7px; justify-content:center; flex-wrap:wrap; margin-top:12px; position:relative}
.medalhero .mh-chips span{font-size:11.5px; font-weight:900; background:var(--yellow); color:var(--ink); border:2px solid #fff; border-radius:99px; padding:3px 11px}
.checkrow{display:flex; align-items:center; gap:10px; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px 12px; margin-bottom:8px}
.checkrow b{font-size:13.5px}
.checkrow p{margin:1px 0 0; font-size:11.5px; color:#6a7060; line-height:1.5}
.checkrow .ck{margin-left:auto; flex:0 0 auto; font-size:10.5px; font-weight:900; background:var(--green); color:#fff; border:2px solid var(--ink); border-radius:99px; padding:2px 9px; white-space:nowrap}

/* ---------- check-in page : the page signup success jumps to (GPS punch points + medal claim) ---------- */
.okhero{background:linear-gradient(155deg,#6cb84a,var(--green) 55%,var(--green-d)); color:#fff; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:18px 16px; text-align:center; position:relative; overflow:hidden}
.okhero::before{content:""; position:absolute; inset:0; background:radial-gradient(#ffffff2e 1.6px, transparent 1.7px); background-size:18px 18px; pointer-events:none}
.okhero .ok-ck{width:58px; height:58px; margin:0 auto; border-radius:50%; background:#fff; border:3px solid var(--ink); color:var(--green-d); display:flex; align-items:center; justify-content:center; font-size:29px; font-weight:900; box-shadow:0 3px 0 var(--ink); position:relative; animation:okPop .45s cubic-bezier(.2,1.4,.4,1)}
@keyframes okPop{from{transform:scale(.35)} to{transform:scale(1)}}
.okhero h3{font-family:var(--fun); font-weight:400; font-size:25px; margin:10px 0 3px; position:relative}
.okhero p{margin:0; font-size:12.5px; line-height:1.7; opacity:.95; position:relative}
.okhero .ok-route{display:inline-block; margin-top:11px; background:var(--ink); color:#fff; font-weight:900; font-size:13px; border:2px solid #fff; border-radius:99px; padding:4px 14px; position:relative}
.credcard{background:#fff; border:2px solid var(--ink); border-radius:12px; padding:6px 13px; margin-top:12px}
.cknode{display:flex; align-items:center; gap:11px; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px 12px; margin-bottom:8px; position:relative}
.cknode .nd{width:34px; height:34px; flex:0 0 34px; border-radius:50%; border:2.5px solid var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:15px; background:#eef0e6; color:#9aa08f; position:relative; z-index:1}
.cknode:not(:last-child)::after{content:""; position:absolute; left:28px; top:46px; bottom:-10px; width:0; border-left:3px dashed #cfd4c2; z-index:0}
.cknode.done .nd{background:var(--green); color:#fff}
.cknode.cur{border-color:var(--ink); box-shadow:var(--hard); background:#fffef4}
.cknode.cur .nd{background:var(--yellow); color:var(--ink)}
.cknode b{font-size:14px}
.cknode p{margin:1px 0 0; font-size:11.5px; color:#6a7060; line-height:1.5}
.cknode .st{margin-left:auto; flex:0 0 auto; font-size:10.5px; font-weight:900; border:2px solid var(--ink); border-radius:99px; padding:2px 9px; white-space:nowrap; background:#eef0e6; color:#6a7060}
.cknode.done .st{background:var(--green); color:#fff}
.cknode.cur .st{background:var(--yellow); color:var(--ink)}
.gpscard{background:var(--ink); color:#fff; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:16px 14px; position:relative; overflow:hidden; text-align:center}
.gpscard::before{content:""; position:absolute; inset:0; background:radial-gradient(#ffffff14 1.6px, transparent 1.7px); background-size:18px 18px; pointer-events:none}
.gpscard .gp-pt{font-size:12px; font-weight:900; letter-spacing:.12em; opacity:.75; position:relative}
.gpscard .gp-name{font-family:var(--fun); font-weight:400; font-size:21px; margin:4px 0 0; position:relative}
.gpscard .gp-dist{margin-top:12px; font-size:13px; line-height:1.6; opacity:.9; position:relative}
.gpscard .gp-dist b{font-size:27px; font-weight:900; color:var(--yellow); font-variant-numeric:tabular-nums}
.gpscard .gp-dist b.in{color:#8fe388}
.ckbtn{width:138px; height:138px; border-radius:50%; border:3.5px solid var(--ink); margin:16px auto 6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; font-family:var(--fun); font-size:25px; color:#fff; background:#565d4e; box-shadow:0 5px 0 var(--ink), 0 14px 26px rgba(0,0,0,.4); position:relative; transition:transform .1s ease, box-shadow .1s ease}
.ckbtn small{font-family:var(--sans); font-size:10.5px; font-weight:700; opacity:.85}
.ckbtn.armed{background:radial-gradient(circle at 50% 32%, #79c94f, var(--green) 62%, var(--green-d)); animation:ckPulse 1.5s ease-in-out infinite}
@keyframes ckPulse{0%,100%{box-shadow:0 5px 0 var(--ink), 0 0 0 0 rgba(120,220,90,.55)} 55%{box-shadow:0 5px 0 var(--ink), 0 0 0 17px rgba(120,220,90,0)}}
.ckbtn:active{transform:translateY(4px)}
.ckbtn.busy{pointer-events:none; opacity:.85}
.gpscard .gp-note{font-size:11px; line-height:1.65; opacity:.72; margin:10px 0 0; position:relative}
.gpscard .btn{position:relative}
.claimcard{background:linear-gradient(150deg,#fff8dc,#ffe9a3); border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:18px 16px; text-align:center; position:relative; overflow:hidden}
.claimcard::before{content:""; position:absolute; inset:0; background:radial-gradient(#ffffff55 1.6px, transparent 1.7px); background-size:18px 18px; pointer-events:none}
.claimcard h4{font-family:var(--fun); font-weight:400; font-size:21px; margin:10px 0 3px; position:relative}
.claimcard p{margin:0; font-size:12.5px; line-height:1.7; color:#5c5340; position:relative}
.claimcard .code{font-size:31px; font-weight:900; letter-spacing:.22em; margin:12px 0 2px; font-variant-numeric:tabular-nums; position:relative}
.claimcard .stamp{display:inline-block; margin-top:12px; border:3px solid var(--rust); color:var(--rust); font-weight:900; font-size:15px; border-radius:8px; padding:4px 16px; transform:rotate(-5deg); background:rgba(255,255,255,.65); position:relative}
@media (prefers-reduced-motion: reduce){ .okhero .ok-ck{animation:none} .ckbtn.armed{animation:none} }
/* full-screen game map : contour-line topo base, Chinese labels, icon markers, fog of war */
#v-light{padding:0}
#v-light.on{display:flex; flex-direction:column; height:100%}
.gamemap{position:relative; flex:1; overflow:hidden; background:#0d84a5; touch-action:none}
.mapworld{position:absolute; inset:0; transform-origin:50% 50%; will-change:transform}
.mapworld svg{position:absolute; inset:0; width:100%; height:100%}
.mapfog{position:absolute; inset:0; z-index:4; pointer-events:none; transition:opacity 1s ease; background:linear-gradient(180deg, rgba(43,58,84,.34) 0%, rgba(43,58,84,.16) 30%, rgba(43,58,84,.16) 68%, rgba(43,58,84,.38) 100%)}
.mapfog .puffs{position:absolute; inset:-8%; background:
  radial-gradient(ellipse 46% 13% at 22% 12%, rgba(84,104,127,.85), transparent 70%),
  radial-gradient(ellipse 52% 15% at 74% 30%, rgba(70,90,117,.8), transparent 70%),
  radial-gradient(ellipse 58% 14% at 34% 55%, rgba(84,104,127,.78), transparent 70%),
  radial-gradient(ellipse 48% 13% at 82% 76%, rgba(70,90,117,.82), transparent 70%),
  radial-gradient(ellipse 42% 12% at 12% 88%, rgba(84,104,127,.8), transparent 70%);
  filter:blur(7px); animation:fogDrift 13s ease-in-out infinite alternate}
@keyframes fogDrift{from{transform:translateX(-7px)} to{transform:translateX(9px)}}
.gamemap::after{content:""; position:absolute; inset:0; z-index:5; pointer-events:none; box-shadow:inset 0 0 0 2px rgba(255,255,255,.3), inset 0 0 44px rgba(24,32,18,.28)}
.gamemap.pulse .pulsering{position:absolute; z-index:6; width:60px; height:60px; margin:-30px 0 0 -30px; border-radius:50%; border:4px solid var(--gold); pointer-events:none; animation:pulseRing .9s ease-out both}
@keyframes pulseRing{0%{transform:scale(.4); opacity:.95} 100%{transform:scale(6.2); opacity:0}}
.maphud{position:absolute; top:10px; left:10px; right:10px; z-index:8; display:flex; justify-content:space-between; align-items:flex-start; gap:8px; pointer-events:none}
.hudchip{background:rgba(24,30,20,.88); color:#fff; border:2px solid #fff; border-radius:99px; padding:5px 12px; font-size:11.5px; font-weight:900; box-shadow:0 3px 0 rgba(24,30,20,.55); white-space:nowrap; max-width:47vw; overflow:hidden; text-overflow:ellipsis}
.hudchip b{color:var(--yellow); font-size:13px}
.hudchip.gold{background:var(--gold); color:var(--ink); border-color:var(--ink)}
.gamemap.tlock .mk.lock{opacity:.72}
.gamemap.tlock .mk.lock .halo{animation:none}
/* admin sheet form bits */
.tinput{width:100%; border:2px solid var(--ink); border-radius:10px; padding:9px 10px; font-size:13.5px; font-family:var(--sans); background:#fff; min-height:44px; color:var(--ink)}
.recog{background:var(--green-pale); border:2px solid var(--green-d); border-radius:12px; padding:11px 12px; font-size:12.5px; line-height:1.75; margin-top:10px}
.recog b{color:var(--ink)}
.adminsec{font-size:13px; font-weight:900; margin:18px 0 8px; display:flex; align-items:center; gap:8px}
.adminsec::before{content:""; width:9px; height:18px; background:var(--rust); border:2px solid var(--ink); border-radius:3px}
.quickrow{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.quickrow .btn{min-height:40px; padding:7px 14px; font-size:12.5px}
.mapprog{position:absolute; top:47px; left:10px; right:10px; z-index:8; height:11px; background:rgba(255,253,246,.92); border:2px solid var(--ink); border-radius:99px; overflow:hidden; box-shadow:0 2px 0 rgba(24,30,20,.4); display:flex}
.mapprog i{display:block; height:100%; transition:width .8s ease}
.mapprog .seg-walk{background:repeating-linear-gradient(-45deg, var(--green) 0 10px, #4c9429 10px 20px)}
.mapprog .seg-paid{background:repeating-linear-gradient(-45deg, var(--gold) 0 10px, #d9930d 10px 20px)}
/* percentage gift boxes, infinite rounds : a progress bar with four gift-box
   nodes at 25 / 50 / 75 / 100 % (lit 2 / 4 / 6 / 8 routes). A reached node is
   the blue game gift box, ready to open (tap it to open THAT box); opened
   nodes turn green with a check; unreached nodes show the box greyed out.
   A round is 8 routes — at 100% the next round starts (第 2 轮, 第 3 轮...),
   so the boxes never run out. The HUD chip shows the round's 探索度 %. */
/* no outer frame (MJ 2026-12-01) : the gift track floats on the map itself —
   no card background, no border, no shadow; the round / pending labels are
   small dark chips so they stay readable over the terrain */
.boxtrack{position:absolute; top:68px; left:10px; right:10px; z-index:8; background:transparent; border:none; box-shadow:none; padding:2px 2px 0}
.bt-head{display:flex; justify-content:space-between; align-items:center; font-size:11px; font-weight:900; padding:0 2px}
.bt-head span{background:rgba(24,30,20,.85); color:#fff; border-radius:99px; padding:3px 10px}
.bt-head .av{background:var(--gold); color:var(--ink)}
.bt-bar{position:relative; height:64px; margin:0 22px}
.bt-line{position:absolute; left:0; right:0; top:24px; height:9px; border:2px solid var(--ink); border-radius:99px; background:#fff}
.bt-fill{display:block; height:100%; border-radius:99px; background:repeating-linear-gradient(-45deg, var(--green) 0 9px, #4c9429 9px 18px); transition:width .6s ease}
.bt-node{position:absolute; top:3px; transform:translateX(-50%); width:44px; height:44px; border-radius:50%; border:2.5px solid var(--ink); display:flex; align-items:center; justify-content:center; padding:0; font-family:var(--sans); color:var(--ink); box-shadow:0 2px 0 var(--ink)}
.bt-node svg{width:20px; height:20px}
.bt-node .pc{position:absolute; top:49px; left:50%; transform:translateX(-50%); font-size:9.5px; font-weight:900; color:#9aa08f; white-space:nowrap}
.bt-node.ready .pc{color:var(--yellow-d)}
.bt-node.opened .pc{color:var(--green-d)}
.bt-node.ready{background:var(--paper); border-color:var(--ink); color:var(--ink); cursor:pointer; box-shadow:0 2px 0 var(--ink), 0 0 10px 2px rgba(245,184,0,.55)}
.bt-node.next{animation:boxGlowBlue 1.6s ease-in-out infinite}
.bt-node.opened{background:var(--green); color:#fff; cursor:pointer}
.bt-node.opened .no{background:var(--green-d)}
.bt-node.locked{background:#eef0e4; color:#a6ab97; border-style:dashed; box-shadow:none; cursor:pointer}
.bt-node.locked .no{background:#a6ab97}
.bt-node.inf{background:#fff; color:#8a8f7d; border-style:dashed; box-shadow:none; font-size:16px; font-weight:900}
.bt-node:active{transform:translateX(-50%) translateY(2px); box-shadow:0 0 0 var(--ink)}
@media (prefers-reduced-motion: reduce){ .bt-node.next{animation:none} .bt-fill{transition:none} .bt-node.next .bximg, .bt-node.next::after, .boxstage .rays, .boxstage .bximg, .boxstage .spark{animation:none} }
/* olive paper gift box (MJ 2026-12-02, back to the paper version) : olive box, mustard bow, rust tag, gold
   bow, violet gem on top. Ready track nodes carry the box art itself with a
   pulsing blue halo, a breathing zoom and a twinkling spark; locked nodes
   show the same box greyed out, so the whole track reads as game rewards. */
.bt-node .bximg{position:absolute; inset:0; border-radius:50%; overflow:hidden; display:block}
.bt-node .bximg img{width:100%; height:100%; object-fit:cover; display:block; transform:scale(1.12)}
.bt-node.next .bximg{animation:bxBreath 1.6s ease-in-out infinite}
.bt-node.next::after{content:""; position:absolute; top:-5px; right:-5px; width:11px; height:11px; z-index:2; background:#ffe98a; clip-path:polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%); filter:drop-shadow(0 0 4px rgba(245,184,0,.95)); animation:bxTwinkle 1.3s ease-in-out infinite}
.bt-node.locked .bximg img{filter:grayscale(.9) brightness(.62); opacity:.6}
.bt-node .bxlk{position:absolute; right:-5px; bottom:-5px; width:18px; height:18px; border-radius:50%; background:#7c8272; border:2px solid #fff; display:flex; align-items:center; justify-content:center; z-index:3; box-shadow:0 1px 3px rgba(0,0,0,.35)}
@keyframes boxGlowBlue{0%,100%{box-shadow:0 2px 0 var(--ink), 0 0 8px 2px rgba(245,184,0,.5)}50%{box-shadow:0 2px 0 var(--ink), 0 0 19px 7px rgba(255,198,26,.95)}}
@keyframes bxBreath{0%,100%{transform:scale(1)}50%{transform:scale(1.13)}}
@keyframes bxTwinkle{0%,100%{opacity:.25; transform:scale(.65) rotate(0deg)}50%{opacity:1; transform:scale(1.15) rotate(20deg)}}
/* the box on its light stage in the open sheet : deep-blue glow backdrop,
   light rays slowly rotating behind it, the box floating with a blue halo
   and sparks twinkling; tapping open makes it charge, shake and burst in a
   flash of blue-white light before the gift is revealed */
.boxstage{position:relative; margin-top:10px; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); background:radial-gradient(ellipse at 50% 36%, #fdf6d8 0%, #eef3da 56%, #e0ead0 100%); overflow:hidden; padding:14px 14px 12px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px}
.boxstage .rays{position:absolute; inset:-45%; background:repeating-conic-gradient(from 0deg, rgba(245,184,0,.20) 0deg 9deg, transparent 9deg 24deg); animation:raysSpin 16s linear infinite; pointer-events:none}
.boxstage .bximg{position:relative; z-index:2; width:104px; height:104px; object-fit:contain; filter:drop-shadow(0 0 16px rgba(245,184,0,.65)); animation:boxFloat 2.6s ease-in-out infinite}
.boxstage h4{position:relative; z-index:2; margin:2px 0 0; font-size:16.5px; color:var(--ink)}
.boxstage p{position:relative; z-index:2; margin:0; font-size:12px; color:#6a7060; line-height:1.6}
.boxstage .spark{position:absolute; z-index:3; color:var(--gold); text-shadow:0 0 6px rgba(245,184,0,.9); animation:bxTwinkle 1.8s ease-in-out infinite; pointer-events:none}
.boxstage .flash{position:absolute; inset:0; z-index:4; opacity:0; pointer-events:none; background:radial-gradient(circle at 50% 44%, rgba(255,255,255,.96), rgba(255,220,110,.55) 42%, transparent 72%)}
.boxstage.bursting .rays{animation-duration:1.1s}
.boxstage.bursting .bximg{animation:boxBurst .78s ease-in forwards}
.boxstage.bursting .flash{animation:flashGo .78s ease-in forwards}
.boxstage.dim .rays{display:none}
.boxstage.dim .bximg{filter:grayscale(.75) brightness(.65); animation:none}
@keyframes raysSpin{to{transform:rotate(360deg)}}
@keyframes boxFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-8px) scale(1.03)}}
@keyframes boxBurst{0%{transform:scale(1) rotate(0deg)}28%{transform:scale(.9) rotate(-3deg)}52%{transform:scale(1.14) rotate(2.5deg)}100%{transform:scale(1.45) rotate(0deg); opacity:0; filter:brightness(1.9) drop-shadow(0 0 40px rgba(255,198,26,1))}}
@keyframes flashGo{0%,42%{opacity:0}68%{opacity:1}100%{opacity:0}}
.mapchip-tl{position:absolute; left:10px; top:128px; z-index:8; pointer-events:none}
.compass{position:absolute; top:130px; right:10px; z-index:8; width:48px; height:48px; border-radius:50%; background:rgba(255,253,246,.94); border:2.5px solid var(--ink); box-shadow:0 3px 0 var(--ink); display:flex; align-items:center; justify-content:center; pointer-events:none}
.compass svg{width:34px; height:34px}
.mapzoom{position:absolute; right:10px; top:188px; z-index:8; display:flex; flex-direction:column; gap:6px}
.mapzoom button{width:40px; height:40px; border-radius:12px; border:2.5px solid var(--ink); background:var(--paper); font-size:19px; font-weight:900; color:var(--ink); box-shadow:0 3px 0 var(--ink); display:flex; align-items:center; justify-content:center; line-height:1}
.mapzoom button:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink)}
.mapbag{position:absolute; right:10px; bottom:142px; z-index:8; display:flex; align-items:center; gap:7px; background:linear-gradient(160deg,#e0643a,var(--rust) 60%,var(--rust-d)); color:#fff; border:2.5px solid var(--ink); border-radius:99px; padding:8px 14px; font-size:12.5px; font-weight:900; box-shadow:0 3px 0 var(--ink); text-shadow:0 1px 0 rgba(0,0,0,.2)}
.mapbag:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink)}
.mapbag.lit{background:linear-gradient(160deg,#ffd94d,var(--gold) 62%,#d9930d); color:var(--ink); text-shadow:none; box-shadow:0 3px 0 var(--ink), 0 0 24px 7px rgba(245,184,0,.65); animation:bagGlow 1.6s ease-in-out infinite}
.mapbag.lit .n{background:var(--rust); color:#fff}
@keyframes bagGlow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.13)}}
.giftbig{display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px; background:#fff; border:2.5px solid var(--ink); border-radius:16px; box-shadow:var(--hard); padding:20px 16px 16px; margin-top:12px}
.giftbig .gic{width:84px; height:84px; border-radius:20px; border:2.5px solid var(--ink); display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:40px; color:var(--ink)}
.giftbig h4{margin:2px 0 0; font-size:18px}
.giftbig p{margin:0; font-size:12.5px; color:#6a7060; line-height:1.65}
.giftbig.dim{opacity:.75}
.giftbig.dim .gic{filter:grayscale(.6)}
.giftprog{height:12px; border:2.5px solid var(--ink); border-radius:99px; background:#fff; overflow:hidden; margin-top:12px}
.giftprog i{display:block; height:100%; background:linear-gradient(90deg,var(--gold),#ffd94d)}
.mapbag .n{background:var(--yellow); color:var(--ink); border:2px solid var(--ink); border-radius:99px; min-width:21px; height:21px; display:flex; align-items:center; justify-content:center; font-size:11px; text-shadow:none; padding:0 4px}
/* milestone gifts : ONE button on the map's right edge, opens a claim sheet */
.msbtn{position:absolute; right:10px; top:284px; z-index:8; width:86px; padding:8px 4px 7px; border-radius:14px; border:2.5px solid var(--ink); background:var(--paper); box-shadow:0 3px 0 var(--ink); display:flex; flex-direction:column; align-items:center; gap:1px; font-size:11px; font-weight:900; color:var(--ink); line-height:1.4; text-align:center}
.msbtn svg{width:22px; height:22px}
.msbtn small{font-size:9.5px; color:#6a7060; font-weight:700; line-height:1.45}
.msbtn:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink)}
.msbtn.ready{background:linear-gradient(160deg,#ffe98a,var(--gold)); animation:giftGlow 1.6s ease-in-out infinite}
.msbtn.ready small{color:#7a5200}
.msbtn .dot{position:absolute; top:-5px; right:-5px; width:14px; height:14px; border-radius:50%; background:var(--red); border:2px solid #fff}
@keyframes giftGlow{0%,100%{box-shadow:0 3px 0 var(--ink), 0 0 0 0 rgba(245,184,0,.55)} 50%{box-shadow:0 3px 0 var(--ink), 0 0 0 7px rgba(245,184,0,0)}}
.msrow{display:flex; align-items:center; gap:12px; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px 12px; margin-top:10px}
.msrow .ic{width:44px; height:44px; flex:0 0 44px; border:2px solid var(--ink); border-radius:10px; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:16px}
.msrow h5{margin:0; font-size:13.5px}
.msrow p{margin:2px 0 0; font-size:11px; color:#6a7060; line-height:1.55}
.msrow .st{margin-left:auto; flex:0 0 auto; font-size:11.5px; font-weight:900; color:#6a7060; text-align:right}
/* map first-entry hint : no popup card any more — entering the map just
   pops ONE short toast line (see maybeShowGuide) and leaves the map clear */
/* unlock / milestone sheets pop up from the tapped marker */
#sheetUnlock .box, #sheetMs .box, #sheetMsGift .box{animation:sheetPop .3s cubic-bezier(.2,1.3,.4,1)}
/* gift sheet is a compact centred card, not a full-width bottom sheet :
   just the box, its gift and one button — no wall of explanation text */
#sheetMsGift{align-items:center; justify-content:center; padding:22px}
#sheetMsGift .box{max-width:330px; max-height:78%; border:2.5px solid var(--ink); border-radius:20px; padding:16px 16px 20px; box-shadow:0 5px 0 var(--ink)}
@keyframes sheetPop{from{transform:translateY(26px) scale(.94); opacity:.4} to{transform:none; opacity:1}}
@media (prefers-reduced-motion: reduce){ .msbtn.ready{animation:none} #sheetUnlock .box, #sheetMs .box{animation:none} }
/* route markers drawn inside the SVG map */
.mk{cursor:pointer}
.mk .halo{fill:none; stroke:rgba(245,184,0,0); stroke-width:2}
.mk.lock .halo{stroke:rgba(67,83,107,.4); animation:mkPulse 2.4s ease-out infinite}
@keyframes mkPulse{0%{r:14px; opacity:.85} 70%{r:25px; opacity:0} 100%{r:25px; opacity:0}}
.mk .pin{stroke:var(--ink); stroke-width:2}
.mk.lock .pin{fill:#43536b}
.mk.lit .pin{fill:var(--gold)}
.mk.walked .pin{fill:var(--green)}
.mk .nm{font-size:11.5px; font-weight:900; fill:var(--ink); text-anchor:middle; paint-order:stroke; stroke:rgba(255,253,246,.92); stroke-width:3.5px; pointer-events:none}
.mk .prbg{fill:var(--yellow); stroke:var(--ink); stroke-width:1.6}
.mk .pr{font-size:9.5px; font-weight:900; fill:var(--ink); text-anchor:middle; pointer-events:none}
.mk.just .pinwrap{transform-box:fill-box; transform-origin:center; animation:litPop .7s cubic-bezier(.2,1.6,.4,1)}
/* lit route tracks : glowing gold (paid unlock) / green (really walked), drawn on segment by segment when just lit */
#trackLayer path{fill:none; stroke-linecap:round; stroke-linejoin:round}
.trackdraw{stroke-dasharray:100; stroke-dashoffset:100; animation:trackDraw .9s ease-out forwards}
@keyframes trackDraw{to{stroke-dashoffset:0}}
/* map face labels */
.citylb{font-size:12px; font-weight:900; fill:#33402a; paint-order:stroke; stroke:rgba(255,253,246,.85); stroke-width:3px}
.citylb.sm{font-size:10.5px; fill:#4a5a3c}
.riverlb{font-size:11px; font-weight:900; fill:#2f6ea3; letter-spacing:.35em; paint-order:stroke; stroke:rgba(230,244,252,.9); stroke-width:3px}
.roadlb{font-size:8.5px; font-weight:700; fill:#8a8266; paint-order:stroke; stroke:rgba(255,253,246,.85); stroke-width:2.5px}
.elevlb{font-size:8px; fill:#97824f; font-style:italic}
@keyframes litPop{0%{transform:scale(.5)} 55%{transform:scale(1.32)} 100%{transform:scale(1)}}
@media (prefers-reduced-motion: reduce){ .bp{animation:none} .flip{transition-duration:.15s} .flipwrap{animation:none} .one-float,.card-rays,#openFlow::after,#openFlow::before{animation:none} .one-card{transition-duration:.2s} .mapfog .puffs{animation:none} .gamemap.pulse .pulsering{animation:none; display:none} .mapfog{transition:none} .mk.lock .halo,.msbtn.ready,.mapbag.lit{animation:none} .trackdraw{animation:none; stroke-dashoffset:0} }
/* small / short screens : keep the fan result and the backpack stage clear of the action bar */
.sr-only{position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0}
@media (max-width:430px){ .fan{height:520px} .fcard{width:128px} }
@media (max-height:760px){ #openFlow.packstage .bp-wrap{transform:scale(1.02); margin-top:12px} .fan{height:500px} }

/* ---------- real tile map (map-pack engine, canvas) ---------- */
.ncwrap{position:absolute; inset:0; background:#0d84a5; outline:none}
/* 定版地图（单一画风，不再切换）: 方案一等高线引擎（真实高程分层设色 +
   等高线）配 GTA 游戏图配色——青色衬底、卫星绿山地、城市灰色块、经纬网格、
   白字地名；有线路就亮星星：后台开启的路线起点亮闪烁空心星，付费点亮变
   实心金星。图例已按 MJ 要求取消，地图上不放图例框 */
.ncwrap canvas{position:absolute; inset:0; width:100%; height:100%; display:block; touch-action:none}
#tile-status{position:absolute; left:50%; bottom:142px; transform:translateX(-50%); z-index:8; background:rgba(24,30,20,.88); color:#fff; font-size:10.5px; font-weight:700; border-radius:99px; padding:3px 11px; pointer-events:none; white-space:nowrap}
.nc-scale{position:absolute; left:10px; bottom:38px; z-index:8; color:var(--ink); font-size:10px; font-weight:700; background:rgba(255,253,246,.88); border-radius:6px; padding:2px 7px; pointer-events:none}
.nc-scale b{display:block; height:4px; background:#2c2a20; border:1.5px solid #2c2a20; border-top:none; margin-top:1px}
#end-preview{position:absolute; right:10px; top:208px; z-index:8; background:var(--yellow); border:2px solid var(--ink); border-radius:99px; font-size:11px; font-weight:900; padding:5px 11px; min-height:34px; box-shadow:0 2px 0 var(--ink)}
.mapzoom2{position:absolute; right:10px; bottom:196px; z-index:8; display:flex; flex-direction:column; gap:6px}
.mapzoom2 button{width:40px; height:40px; border-radius:12px; border:2.5px solid var(--ink); background:var(--paper); font-size:17px; font-weight:900; color:var(--ink); box-shadow:0 3px 0 var(--ink); display:flex; align-items:center; justify-content:center; line-height:1}
.mapzoom2 button:active{transform:translateY(2px); box-shadow:0 1px 0 var(--ink)}
/* star-up bits */
.infocard{background:#fff; border:2px solid var(--ink); border-radius:12px; padding:12px 13px; margin-top:10px}
.fragrow{display:flex; align-items:center; gap:10px; padding:8px 0; border-top:2px dashed #e2e4d6}
.fragrow:first-of-type{border-top:none}
.fragrow b{font-size:13px}
.fragrow p{margin:1px 0 0; font-size:11px; color:#6a7060; line-height:1.5}
.fragrow .btn{margin-left:auto; flex:0 0 auto}
.sessrow{display:flex; gap:7px; flex-wrap:wrap; margin-top:8px}
.sessrow button{border:2px solid var(--ink); border-radius:99px; padding:5px 12px; font-size:12px; font-weight:700; min-height:34px; background:#fff; color:#6a7060}
.sessrow button.act{background:var(--ink); color:#fff}

/* ---------- showcase ---------- */
.showcase{max-width:1180px; margin:0 auto; padding:2px 20px 48px}
.sc-box{background:var(--paper); border:2.5px solid var(--ink); border-radius:14px; box-shadow:6px 6px 0 rgba(34,39,31,.85); padding:22px}
.sc-head{display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:16px}
.sc-head h2{font-family:var(--fun); font-weight:400; font-size:24px; margin:0}
.sc-head span{font-size:12.5px; color:#6a7060}
.sc-grid{display:grid; grid-template-columns:250px 1fr; gap:22px; align-items:start}
.sc-hero{border:3px solid var(--ink); border-radius:14px; overflow:hidden; box-shadow:5px 5px 0 rgba(34,39,31,.8)}
.sc-hero img{width:100%}
.sc-cap{font-size:12px; color:#6a7060; line-height:1.75; margin:10px 0 0}
.sc-cap b{color:var(--ink)}
.sc-stats{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px}
.sc-stats span{font-size:11.5px; font-weight:700; border:2px solid var(--ink); border-radius:99px; padding:3px 11px; background:#fff}
.sc-stats span.y{background:var(--yellow)} .sc-stats span.g{background:var(--green-pale)}
.sc-tiles{display:grid; grid-template-columns:repeat(auto-fill,minmax(106px,1fr)); gap:10px}
.sc-tiles .tcg{cursor:default}
@media (max-width:760px){ .showcase{padding:2px 8px 32px} .sc-grid{grid-template-columns:1fr} .sc-hero{max-width:250px} }

/* ---------- admin console : full web backend prototype ---------- */
.adm{position:fixed; inset:0; z-index:200; background:var(--app); display:none; flex-direction:column; color:var(--ink)}
.adm.on{display:flex}
.adm-top{flex:0 0 auto; display:flex; align-items:center; gap:14px; background:var(--paper); border-bottom:2.5px solid var(--ink); padding:10px 18px; flex-wrap:wrap}
.adm-brand{display:flex; align-items:center; gap:10px; font-weight:900; font-size:16.5px; line-height:1.25}
.adm-brand small{display:block; font-size:9.5px; letter-spacing:.16em; color:#6a7060; font-weight:700}
.adm-logo{width:38px; height:38px; flex:0 0 38px; border-radius:50%; background:var(--green); border:2.5px solid var(--ink); color:#fff; font-family:var(--fun); font-size:17px; display:flex; align-items:center; justify-content:center}
.adm-env{font-size:11.5px; font-weight:700; color:#6a7060; background:#eef0e6; border:2px solid var(--ink); border-radius:99px; padding:3px 11px}
.adm-user{margin-left:auto; font-size:12.5px; font-weight:900}
.adm-back{border:2.5px solid var(--ink); background:var(--yellow); border-radius:99px; font-size:13px; font-weight:900; padding:8px 16px; min-height:40px; box-shadow:0 3px 0 var(--ink)}
.adm-back:active{transform:translateY(2px); box-shadow:0 0 0 var(--ink)}
.adm-shell{flex:1; display:flex; min-height:0}
.adm-nav{width:206px; flex:0 0 206px; background:var(--paper); border-right:2.5px solid var(--ink); padding:14px 10px; overflow-y:auto}
.adm-nav button{width:100%; display:flex; align-items:center; gap:9px; background:none; border:2px solid transparent; border-radius:11px; padding:9px 10px; font-size:14px; font-weight:700; color:#454b3e; text-align:left; min-height:46px; margin-bottom:2px}
.adm-nav button .adm-nic{width:28px; height:28px; flex:0 0 28px; border:2px solid var(--ink); border-radius:8px; display:flex; align-items:center; justify-content:center; font-family:var(--fun); font-size:13px; background:#eef0e6; color:var(--ink)}
.adm-nav button.act{background:#fff; border-color:var(--ink); color:var(--ink); box-shadow:0 3px 0 var(--ink); font-weight:900}
.adm-nav button.act .adm-nic{background:var(--yellow)}
.adm-nbdg{margin-left:auto; background:var(--red); color:#fff; font-size:10.5px; font-weight:900; min-width:20px; height:20px; border-radius:99px; display:flex; align-items:center; justify-content:center; border:2px solid var(--ink); padding:0 5px}
.adm-navnote{font-size:11px; color:#6a7060; line-height:1.7; border-top:2px dashed #cfd4c2; margin-top:12px; padding:10px 4px 0}
.adm-main{flex:1; overflow-y:auto; padding:22px 26px 64px; min-width:0}
.adm-main h2{font-family:var(--fun); font-weight:400; font-size:26px; margin:0 0 2px}
.adm-main .adm-sub{font-size:12.5px; color:#6a7060; margin:0 0 16px; line-height:1.7}
.adm-sec{font-size:15px; font-weight:900; margin:24px 0 10px; display:flex; align-items:center; gap:8px}
.adm-sec::before{content:""; width:9px; height:18px; background:var(--green); border:2px solid var(--ink); border-radius:3px}
.adm-sec.rust::before{background:var(--rust)}
.adm-sec .more{margin-left:auto; font-size:11.5px; color:#6a7060; font-weight:700}
.adm-kpis{display:grid; grid-template-columns:repeat(auto-fit,minmax(168px,1fr)); gap:12px}
.adm-kpi{background:#fff; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); padding:13px 14px}
.adm-kpi .n{font-size:27px; font-weight:900; line-height:1.1}
.adm-kpi .n small{font-size:12px; font-weight:700; color:#6a7060; margin-left:3px}
.adm-kpi label{display:block; font-size:11.5px; font-weight:900; margin-top:3px}
.adm-kpi p{margin:3px 0 0; font-size:11px; color:#6a7060; line-height:1.55}
.adm-kpi.warn{border-color:var(--rust-d); background:#fdf3ee}
.adm-card{background:#fff; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); padding:16px}
.adm-todo{display:flex; align-items:center; gap:12px; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px 13px; margin-bottom:9px}
.adm-todo b{font-size:13.5px}
.adm-todo p{margin:1px 0 0; font-size:11.5px; color:#6a7060; line-height:1.55}
.adm-todo .btn{margin-left:auto; flex:0 0 auto}
.adm-tablewrap{background:#fff; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); overflow:hidden}
.adm-table{width:100%; border-collapse:collapse; font-size:13px}
.adm-table th{background:var(--green-pale); text-align:left; font-size:12px; padding:10px 12px; border-bottom:2.5px solid var(--ink); white-space:nowrap}
.adm-table td{padding:10px 12px; border-bottom:2px solid #e6e8dc; vertical-align:middle; line-height:1.55}
.adm-table tr:last-child td{border-bottom:none}
.adm-table .num{font-variant-numeric:tabular-nums; white-space:nowrap}
.adm-table .dim{color:#6a7060; font-size:12px}
.adm-badge{display:inline-block; font-size:11px; font-weight:900; border:2px solid var(--ink); border-radius:99px; padding:1px 9px; white-space:nowrap; background:#eef0e6; color:#454b3e}
.adm-badge.g{background:var(--green); color:#fff}
.adm-badge.y{background:var(--yellow); color:var(--ink)}
.adm-badge.r{background:#fbe7dd; color:var(--rust-d)}
.adm-badge.k{background:var(--ink); color:#fff}
.adm-in{width:92px; border:2px solid var(--ink); border-radius:9px; padding:7px 9px; font-size:13px; font-family:var(--sans); min-height:38px; background:#fff; color:var(--ink)}
.adm-in.wide{width:100%}
.adm-sel{border:2px solid var(--ink); border-radius:9px; padding:7px 9px; font-size:13px; font-family:var(--sans); min-height:38px; background:#fff; color:var(--ink); font-weight:700}
.adm-mini{min-height:38px; padding:6px 14px; font-size:12.5px}
.adm-form{display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; align-items:end}
.adm-form label{display:block; font-size:11.5px; font-weight:900; margin-bottom:5px}
.adm-filters{display:flex; gap:7px; flex-wrap:wrap; margin-bottom:12px}
.adm-filters button{border:2px solid var(--ink); border-radius:99px; padding:6px 14px; font-size:12.5px; font-weight:700; min-height:36px; background:#fff; color:#6a7060}
.adm-filters button.act{background:var(--ink); color:#fff}
.adm-grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start}
.adm-log{font-size:12.5px; line-height:1.6}
.adm-log .lt{color:#6a7060; font-size:11.5px; white-space:nowrap}
.adm-perm{width:40px; height:34px; border-radius:9px; border:2px solid var(--ink); font-weight:900; font-size:14px; background:#eef0e6; color:#9aa08f}
.adm-perm.yes{background:var(--green); color:#fff}
.adm-toast{position:absolute; left:50%; bottom:26px; transform:translateX(-50%) translateY(14px); background:var(--ink); color:#fff; font-size:13px; font-weight:700; padding:11px 18px; border-radius:20px; z-index:5; opacity:0; pointer-events:none; transition:.25s; white-space:normal; max-width:min(92%,430px); text-align:center; line-height:1.55; border:2px solid #fff; box-shadow:0 8px 20px rgba(0,0,0,.3)}
.adm-toast.on{opacity:1; transform:translateX(-50%)}
/* ---------- ops monitor : big-screen dashboard ---------- */
.mon-panel{background:var(--ink); color:#eef0e6; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); padding:16px 18px}
.mon-panel h4{margin:0 0 2px; font-size:14.5px; font-weight:900; color:#fff}
.mon-panel .mon-sub{font-size:11.5px; color:#aeb69e; margin:0 0 10px; line-height:1.6}
.mon-panel svg{display:block; width:100%; height:auto}
.mon-legend{display:flex; gap:16px; flex-wrap:wrap; font-size:11.5px; font-weight:700; color:#cfd4c2; margin-top:8px}
.mon-legend i{display:inline-block; width:11px; height:11px; border-radius:3px; margin-right:5px; vertical-align:-1px}
.mon-donut{display:flex; gap:16px; align-items:center; flex-wrap:wrap}
.mon-donut svg{width:158px; flex:0 0 158px}
.mon-dlist{flex:1; min-width:170px; font-size:12.5px}
.mon-dlist .kv{border-bottom:2px solid rgba(255,255,255,.13); color:#eef0e6; padding:7px 2px}
.mon-dlist .kv:last-child{border-bottom:none}
.mon-dlist .kv b{font-weight:700}
.mon-dlist .kv span{font-variant-numeric:tabular-nums; white-space:nowrap}
.mon-dlist i{display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px}
.mon-hbar{display:grid; grid-template-columns:118px 1fr 92px; gap:10px; align-items:center; font-size:12.5px; padding:7px 0; border-bottom:2px solid rgba(255,255,255,.13)}
.mon-hbar:last-child{border-bottom:none}
.mon-hbar .hl{font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.mon-hbar .hv{font-variant-numeric:tabular-nums; color:#cfd4c2; text-align:right; white-space:nowrap}
.mon-track{height:13px; background:rgba(255,255,255,.14); border-radius:99px; overflow:hidden}
.mon-fill{height:100%; background:var(--yellow); border-radius:99px}
.mon-fill.full{background:var(--red)}
.mon-warn{display:flex; gap:10px; align-items:flex-start; background:#fff; border:2px solid var(--ink); border-radius:12px; padding:11px 13px; margin-bottom:9px; font-size:12.5px; line-height:1.6}
.mon-warn .wic{flex:0 0 auto; width:24px; height:24px; border-radius:50%; border:2px solid var(--ink); background:var(--yellow); font-weight:900; font-size:12px; display:flex; align-items:center; justify-content:center}
.mon-warn.red .wic{background:var(--red); color:#fff}
.mon-warn b{font-size:13px}
.mon-warn p{margin:1px 0 0; color:#6a7060; font-size:11.5px}
.mon-warn .btn{margin-left:auto; flex:0 0 auto}
.mon-live{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px}
.mon-live span{font-size:12px; font-weight:900; border:2px solid var(--ink); border-radius:99px; padding:5px 12px; background:#fff}
.mon-live span i{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--green); margin-right:6px}
@media (max-width:860px){
  .adm-shell{flex-direction:column}
  .adm-nav{width:100%; flex:0 0 auto; border-right:none; border-bottom:2.5px solid var(--ink); display:flex; gap:6px; overflow-x:auto; overflow-y:hidden; padding:10px}
  .adm-nav button{width:auto; flex:0 0 auto; margin-bottom:0}
  .adm-navnote{display:none}
  .adm-main{padding:16px 12px 48px}
  .adm-grid2{grid-template-columns:1fr}
  .adm-user{display:none}
  .mon-hbar{grid-template-columns:86px 1fr 78px; font-size:11.5px}
  .mon-donut svg{width:132px; flex-basis:132px}
  .adm-tablewrap{border:none; box-shadow:none; background:transparent; overflow:visible}
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td{display:block; width:100%}
  .adm-table thead{display:none}
  .adm-table tr{background:#fff; border:2.5px solid var(--ink); border-radius:14px; box-shadow:var(--hard); margin-bottom:12px; padding:6px 14px}
  .adm-table td{border-bottom:2px dashed #e2e4d6; padding:8px 0; display:flex; align-items:center; justify-content:space-between; gap:16px; text-align:right}
  .adm-table tr td:last-child{border-bottom:none}
  .adm-table td::before{content:attr(data-label); font-size:11px; font-weight:900; color:#6a7060; text-align:left; flex:0 0 auto}
}
