@font-face{font-family:Geist;src:url(/fonts/Geist.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Chakra;src:url(/fonts/ChakraPetch-Bold.woff2) format('woff2');font-weight:100 900;font-display:swap}
:root{--bc:#CCFF00;--bw:1px;--rs:6px;--r:10px;--pad:10px 14px;--ctl:36px;--o:#4A6600;--k:#141414;--ink:#f3ece0;--line:#3a332b;--panel:linear-gradient(180deg,rgba(34,29,24,.92),rgba(18,16,14,.9))}
*{box-sizing:border-box}body{margin:0;background:var(--k);color:var(--ink);font:15px/1.55 Geist,sans-serif}
a{color:inherit}button{font:inherit;cursor:pointer}[hidden]{display:none!important}
h1,h2,h3{font-family:Chakra,Geist,sans-serif;font-weight:700;line-height:1.1;margin:0}
/* slim navbar */
.nav{position:fixed;z-index:20;left:0;right:0;top:0;height:52px;display:flex;align-items:center;gap:22px;padding:0 20px;background:rgba(20,20,20,.72);backdrop-filter:blur(6px);border-bottom:var(--bw) solid var(--bc)}
.brand{display:flex;align-items:center;gap:8px;font:700 21px Chakra,Geist,sans-serif;text-decoration:none;margin-right:auto}.brand img{width:28px;height:28px;border-radius:var(--r)}
.nav a.l{text-decoration:none;font-size:13.5px;opacity:.78}.nav a.l:hover,.nav a.l[aria-current]{opacity:1;color:var(--o)}
.wbtn{background:#CCFF00;color:#111;border:0;border-radius:var(--r);padding:7px 13px;font-weight:600;font-size:13px}.wbtn:hover{filter:brightness(1.08)}
#walletMenu{position:fixed;z-index:60;background:#1b1916;border:var(--bw) solid var(--bc);border-radius:var(--r);padding:6px;width:230px;box-shadow:0 12px 30px #0008}
#walletMenu button{display:flex;gap:10px;align-items:center;width:100%;background:none;border:0;color:var(--ink);padding:10px;border-radius:var(--r);text-align:left}#walletMenu button:hover{background:#2a251f}
#walletMenu p{margin:8px 10px;font-size:12.5px;opacity:.7}
/* play-first start */
#start{position:fixed;inset:0;z-index:15;display:grid;place-items:center;padding:70px 16px 16px;background:radial-gradient(ellipse at center,#14141455 0%,#141414cc 75%)}
body.playing #start,body.playing .foot{display:none}
body.playing .nav{height:46px;background:linear-gradient(180deg,rgba(20,18,16,.9),rgba(20,18,16,.62));border-bottom:var(--bw) solid var(--bc)}
.card{background:rgba(27,25,22,.94);border:var(--bw) solid var(--bc);border-radius:var(--r);padding:26px 26px 20px;width:min(380px,100%);text-align:center;box-shadow:0 20px 60px #000a}
.card .logo{width:84px;height:84px;border-radius:var(--r);margin:0 auto 10px;display:block}
.card h1{font-size:38px}.card .tag{margin:4px 0 16px;opacity:.75;font-size:14px}
.card input{width:100%;padding:12px 13px;font:16px Geist,sans-serif;background:#111;color:var(--ink);border:var(--bw) solid var(--bc);border-radius:var(--r);text-align:center}.card input:focus{outline:2px solid var(--o);border-color:transparent}
.btn{display:block;width:100%;margin-top:10px;border-radius:var(--r);padding:12px;font-weight:700;border:0}
.btn.main{background:#CCFF00;color:#111}.btn.main:hover{filter:brightness(1.07)}
.btn.alt{background:none;color:var(--ink);border:var(--bw) solid var(--bc)}.btn.alt:hover{border-color:var(--bc)}
.card .online{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:14px;font-size:12.5px;opacity:.75}.online i{width:7px;height:7px;border-radius:50%;background:#5fd36a;box-shadow:0 0 0 3px #5fd36a33}
#cardMsg{font-size:12.5px;opacity:.8;min-height:1em;margin:8px 0 0}
/* footer */
.foot{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;align-items:center;padding:18px 22px;font-size:12.5px;opacity:.7;border-top:var(--bw) solid var(--bc)}
.foot a{text-decoration:none}.foot a:hover{color:var(--o)}
#start~.foot{position:fixed;z-index:16;left:0;right:0;bottom:0;border:0;background:linear-gradient(0deg,#141414dd,#14141400)}
/* content pages */
.page{max-width:760px;margin:0 auto;padding:96px 22px 60px}.page h1{font-size:48px;margin-bottom:18px}.page h2{font-size:28px;margin:36px 0 10px;color:var(--o)}.page p,.page li{opacity:.88}
.page dl dt{font-weight:600;margin-top:18px}.page dl dd{margin:4px 0 0;opacity:.85}
.tiers{width:100%;border-collapse:collapse;margin-top:10px}.tiers td,.tiers th{padding:10px 8px;border-bottom:var(--bw) solid var(--bc);text-align:left}.tiers th{opacity:.6;font-weight:600}
.tiers .sw{width:40px;height:44px;background-size:auto 1352%;background-position:0 0;image-rendering:auto}
.podium{display:grid;grid-template-columns:1fr 1.15fr 1fr;align-items:end;gap:10px;margin:20px 0 36px}
.podium div{background:#1b1916;border:var(--bw) solid var(--bc);border-radius:var(--r) 10px 0 0;text-align:center;padding:14px 8px}
.podium b{display:block;font:700 34px Chakra,Geist,sans-serif;color:var(--o)}.podium .p1{min-height:180px}.podium .p2{min-height:140px}.podium .p3{min-height:115px}
.podium span{display:block;font-weight:600}.podium em{font-style:normal;opacity:.7;font-size:13px}
.lb{width:100%;border-collapse:collapse}.lb th{text-align:left;opacity:.6;font-weight:600;padding:8px 6px;border-bottom:var(--bw) solid var(--bc)}.lb td{padding:11px 6px;border-bottom:var(--bw) solid var(--bc)}
.muted{opacity:.65}
/* game HUD */
#g{position:fixed;inset:0;width:100%;height:100%;z-index:0;touch-action:none}
#hud,#board,#zone,#gbtns,#feed,#stick,#pounceBtn,#cdDesk,#banner{display:none}
body.playing #hud,body.playing #board,body.playing #gbtns,body.playing #feed,body.playing #cdDesk,body.playing #zone,body.playing #banner{display:block}
body.nohud #start,body.nohud .nav,body.nohud .foot{display:none}
.panel{position:fixed;z-index:5;background:var(--panel);border:var(--bw) solid var(--bc);border-top:var(--bw) solid var(--bc);border-radius:var(--r);box-shadow:0 10px 28px #000a,inset 0 1px 0 #ffffff0d}
#hud{left:14px;bottom:14px;width:280px;padding:10px 13px}
.lvl{display:flex;align-items:baseline;gap:9px}.lvl b{font:700 22px Chakra,Geist,sans-serif}.lvl span{opacity:.8;font-size:13px}.lvl em{margin-left:auto;color:var(--o);font-style:normal;font-weight:600;font-size:13px}
.bar{height:7px;background:#2c2721;border-radius:var(--rs);margin:7px 0 5px;overflow:hidden}.bar i{display:block;height:100%;width:0;background:#CCFF00;transition:width .25s}
.small{display:flex;justify-content:space-between;font-size:11.5px;opacity:.75}
#board{right:14px;top:14px;width:210px;padding:9px 11px}.bh{display:flex;justify-content:space-between;font-size:12px;color:var(--o);font-weight:600;margin-bottom:3px}#timer{color:var(--ink);font-variant-numeric:tabular-nums}
#board ol{margin:0;padding:0;list-style:none;font-size:12.5px;line-height:1.75}#board li{display:flex;gap:7px}#board li b{width:14px;opacity:.6}#board li span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#board li em{font-style:normal;font-variant-numeric:tabular-nums;opacity:.8}#board li.me{color:var(--o)}
#zone{position:fixed;z-index:5;right:16px;bottom:142px;font:700 18px Chakra,Geist,sans-serif;text-shadow:0 2px 6px #000;opacity:0}#zone.in{animation:zin 3s}
@keyframes zin{0%{opacity:0;transform:translateY(6px)}12%,75%{opacity:.95;transform:none}100%{opacity:0}}
#gbtns{position:fixed;z-index:5;left:14px;top:14px}#gbtns button{background:var(--panel);color:var(--ink);border:var(--bw) solid var(--bc);border-radius:var(--r);padding:6px 11px;font-size:12.5px;margin-right:6px}
#banner{position:fixed;z-index:6;left:50%;top:20px;transform:translateX(-50%);background:#CCFF00;color:#111;font:700 20px Chakra,Geist,sans-serif;padding:5px 16px;border-radius:var(--r);opacity:0;pointer-events:none;white-space:nowrap}#banner.in{animation:zin 2.6s}
#feed{position:fixed;z-index:5;left:14px;top:56px;font-size:12.5px;line-height:1.7;text-shadow:0 1px 3px #000}
#cdDesk{position:fixed;z-index:5;left:306px;bottom:14px;width:56px;height:56px;border-radius:50%;background:var(--panel);border:var(--bw) solid var(--bc);overflow:hidden;font-size:10px;text-align:center;line-height:56px}
#cdDesk i{position:absolute;left:0;bottom:0;height:100%;width:100%;background:#CCFF0040}#cdDesk span{position:relative}
body.hidden-cat #hud{border-color:var(--bc)}
.screen{position:fixed;inset:0;z-index:30;display:grid;place-items:center;background:#141414b0;padding:16px}
.screen .card{text-align:left}.screen h2{font-size:32px}.stats{display:flex;gap:16px;margin:14px 0}.stats b{display:block;font:700 24px Chakra,Geist,sans-serif;color:var(--o)}
.results{list-style:none;padding:0}.results li{display:flex;gap:10px;padding:6px 0;border-bottom:var(--bw) solid var(--bc)}.results li span{flex:1}.results em{font-style:normal;opacity:.7}
.row{display:flex;gap:10px}.row .btn{margin-top:12px}
#conn{position:fixed;z-index:25;left:50%;top:14px;transform:translateX(-50%);font-size:12px;opacity:.7}
@media (max-width:760px){
 .nav{gap:13px;padding:0 12px}.nav a.l{font-size:12.5px}.brand span{display:none}.nav a.l.hide-m{display:none}
 .page h1{font-size:38px}.podium b{font-size:26px}
}
@media (pointer:coarse),(max-width:760px){
 body.playing #stick,body.playing #pounceBtn{display:block}
 #stick{position:fixed;z-index:6;left:18px;bottom:22px;width:124px;height:124px;border-radius:50%;background:#ffffff10;border:var(--bw) solid var(--bc);touch-action:none}
 #stick i{position:absolute;left:35px;top:35px;width:54px;height:54px;border-radius:50%;background:#CCFF00aa}
 #pounceBtn{position:fixed;z-index:6;right:20px;bottom:30px;width:88px;height:88px;border-radius:50%;background:#CCFF0030;border:0;color:var(--ink);font-weight:600;font-size:13px;padding:0}
 #pounceBtn svg{position:absolute;inset:0;width:100%;height:100%}#pounceBtn span{position:relative}
 body.playing #cdDesk{display:none}
 #hud{left:8px;right:8px;top:8px;bottom:auto;width:auto;padding:7px 11px}#hud .small span:nth-child(3){display:none}
 /* leaderboard sits top-right under the HUD, never near the Pounce button */
 #board{top:84px;right:8px;width:148px;padding:6px 9px}#board ol li:nth-child(n+6){display:none}
 #gbtns{top:auto;bottom:160px;left:8px}#gbtns button{padding:5px 9px;font-size:11.5px}
 #zone{bottom:auto;top:176px;right:10px;font-size:14px}#feed{top:160px;left:8px;font-size:11.5px}#banner{top:200px;font-size:16px}
}

/* in-game, below the slim nav; brand-styled HUD */
body.playing #board{top:58px}body.playing #gbtns{top:58px}body.playing #feed{top:98px}body.playing #banner{top:62px}
#board{width:220px}#board li.me{background:#CCFF001a;border-radius:var(--r);padding:0 4px;margin:0 -4px}
#hud .lvl b{color:var(--o);font-size:24px}#hud .small b{color:var(--ink)}.bar{height:8px;background:#1a1612;border:var(--bw) solid var(--bc)}.bar i{background:linear-gradient(90deg,#d97f00,#CCFF00 60%,#CCFF00);box-shadow:0 0 8px #CCFF0066}
#gbtns button{background:rgba(28,24,20,.9);border:var(--bw) solid var(--bc);font-weight:600}#gbtns button:hover{border-color:var(--bc);color:var(--o)}
#cdDesk{left:308px;width:78px;height:78px;line-height:1.1;display:none;border:var(--bw) solid var(--bc);background:radial-gradient(circle,#2a2016,#141210);box-shadow:0 0 18px #CCFF0044}
body.playing #cdDesk{display:grid;place-items:center}#cdDesk span{font:700 15px Chakra,Geist,sans-serif;color:var(--ink)}#cdDesk small{display:block;font:600 10px Geist,sans-serif;opacity:.6;margin-top:2px}
#cdDesk i{background:#CCFF0033}
@media (pointer:coarse),(max-width:760px){
 body.playing .nav{height:44px}body.playing #hud{top:52px}
 body.playing #board{top:128px}
 body.playing #zone{top:220px}body.playing #feed{top:204px}body.playing #banner{top:244px}body.playing #gbtns{top:auto}
 #pounceBtn{border:var(--bw) solid var(--bc);background:radial-gradient(circle,#2a2016e6,#141210d0);box-shadow:0 0 18px #CCFF0055;font:700 16px Chakra,Geist,sans-serif}
 #stick{border-color:var(--bc);background:#14121099}
}

/* play-first card */
#start{background:radial-gradient(ellipse at center,#14110e33 0%,#14110ebb 70%,#0d0b09ee 100%)}
.card{background:linear-gradient(180deg,rgba(38,32,26,.95),rgba(20,18,15,.95));border:var(--bw) solid var(--bc);border-top:var(--bw) solid var(--bc);border-radius:var(--r);box-shadow:0 24px 70px #000c,inset 0 1px 0 #ffffff0f;backdrop-filter:blur(3px)}
.card .logo{box-shadow:0 6px 20px #CCFF0033}
.card h1{font-family:Chakra,Geist,sans-serif;font-size:42px;letter-spacing:-.01em}
.card input{background:#0f0d0b;border-color:var(--bc)}
.card .btn.main{box-shadow:0 6px 18px #CCFF0033}
.card .or{display:flex;align-items:center;gap:10px;margin:14px 0 2px;font-size:12px;opacity:.55}.card .or:before,.card .or:after{content:"";flex:1;height:1px;background:#4a3d2e}
.card .btn.wl{display:flex;align-items:center;justify-content:center;gap:6px;border-color:var(--bc)}.card .btn.wl img{border-radius:var(--rs)}.card .btn.wl img+img{margin-right:4px}
.card .online{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:13px;opacity:.75}
#walletMenu{position:fixed;z-index:40;width:230px;padding:8px;background:linear-gradient(180deg,#26201a,#14120f);border:var(--bw) solid var(--bc);border-top:var(--bw) solid var(--bc);border-radius:var(--r);box-shadow:0 16px 40px #000c}
#walletMenu button{display:flex;align-items:center;gap:10px;width:100%;padding:10px;border:0;border-radius:var(--r);background:none;color:var(--ink);font:600 14px Geist,sans-serif;text-align:left;cursor:pointer}
#walletMenu button:hover{background:#CCFF001a;color:var(--o)}#walletMenu p{margin:6px 4px 2px;font-size:12px;opacity:.6;line-height:1.4}
@media (pointer:coarse),(max-width:760px){
 #hud .small span:nth-child(3){display:inline}#hud .small span:nth-child(4){display:none}
 #board{width:148px}body.playing #board{top:136px}
 body.playing #cdDesk{display:none}
}

/* ===== game skin: worn alley metal, orange + black, cat motifs ===== */
:root{--metal:linear-gradient(180deg,#2b2520 0%,#1b1714 55%,#14110f 100%);--bolt:radial-gradient(circle,#a8865a 0 2px,#3a2e22 2.5px,transparent 3.5px)}
.gicons{display:none;gap:8px;margin-left:auto}
.gicons a{display:grid;place-items:center;width:34px;height:34px;border-radius:var(--r);background:var(--metal);border:var(--bw) solid var(--bc);box-shadow:inset 0 1px #ffffff14,0 3px 0 #000a}
.gicons a svg{width:18px;height:18px;fill:#4A6600}.gicons a:hover{border-color:var(--bc)}
body.playing .nav a.l{display:none}body.playing .gicons{display:flex}body.playing .nav .wbtn{margin-left:0}
body.playing .nav{background:linear-gradient(180deg,#1d1916f2,#120f0de6);border-bottom:var(--bw) solid var(--bc);box-shadow:0 4px 0 #000c}
body.playing .nav .brand span{font:800 20px Chakra,Geist,sans-serif;color:#4A6600;text-shadow:0 2px 0 #000}
body.playing .nav .wbtn{border-radius:var(--r);border:var(--bw) solid var(--bc);box-shadow:0 3px 0 #7a4d00;font-weight:800}
/* chunky panels with cat-ear tabs and corner bolts */
body.playing #hud,body.playing #board{background:var(--bolt) 6px 6px/10px 10px no-repeat,var(--bolt) calc(100% - 6px) 6px/10px 10px no-repeat,var(--bolt) 6px calc(100% - 6px)/10px 10px no-repeat,var(--bolt) calc(100% - 6px) calc(100% - 6px)/10px 10px no-repeat,repeating-linear-gradient(115deg,#ffffff05 0 2px,transparent 2px 7px),var(--metal);
 border:var(--bw) solid var(--bc);border-radius:var(--r);box-shadow:inset 0 0 0 1px #000,inset 0 2px #ffffff12,0 5px 0 #000b,0 12px 26px #0009;overflow:visible}
body.playing #hud,body.playing #board{position:fixed}
/* level badge as a collar tag */
#hud .lvl{display:flex;align-items:center;gap:10px}
#hud .collar{position:relative;display:grid;place-items:center;min-width:56px;height:40px;padding:0 10px;border-radius:var(--r) 12px 22px 22px;background:radial-gradient(circle at 35% 30%,#ffd27a,#CCFF00 45%,#b86f00);border:var(--bw) solid var(--bc);box-shadow:0 3px 0 #000,inset 0 -3px #0003}
#hud .collar i{position:absolute;top:-9px;left:50%;width:14px;height:14px;margin-left:-7px;border:var(--bw) solid var(--bc);border-radius:50%;background:transparent}
#hud .collar span{font:800 20px/1 Chakra,Geist,sans-serif;color:#1a1208!important;letter-spacing:-.3px}
#hud .lvl #lvName{font:700 14px Geist,sans-serif;color:#e9dcc8;text-transform:uppercase;letter-spacing:1px}
#hud .lvl em{margin-left:auto;display:flex;align-items:center;gap:6px;font:800 26px/1 Chakra,Geist,sans-serif;font-style:normal;color:#4A6600;text-shadow:0 2px 0 #000}
#hud .lvl em svg.rat{width:30px;height:19px;fill:#c9b48a}
/* XP bar as a fish-bone meter */
#hud .bar{height:14px;margin:10px 4px 6px 14px;border-radius:0 8px 8px 0;background:repeating-linear-gradient(90deg,transparent 0 9px,#3d3226 9px 11px),#0f0c0a;border:var(--bw) solid var(--bc);position:relative;overflow:visible}
#hud .bar::before{content:"";position:absolute;left:-14px;top:-5px;width:14px;height:20px;background:#c9b48a;clip-path:polygon(0 0,100% 50%,0 100%,30% 50%)}
#hud .bar i{border-radius:0 6px 6px 0;background:repeating-linear-gradient(90deg,#CCFF00 0 9px,#d98400 9px 11px)!important;box-shadow:0 0 10px #CCFF0088}
#hud .small{font:600 12px Geist,sans-serif;color:#b9ab95}#hud .small b{font:800 14px Geist,sans-serif;color:#fff}
/* leaderboard: medals + tier cat heads */
#board .bh{font:800 13px Geist,sans-serif;text-transform:uppercase;letter-spacing:1px;color:#4A6600;border-bottom:2px dashed #4a3a28;padding-bottom:6px}
#board .bh #timer{font:800 18px Chakra,Geist,sans-serif;color:#fff}
#boardList li{display:flex;align-items:center;gap:7px;padding:4px 4px;border-radius:var(--r)}
#boardList li.me{background:#CCFF0026;box-shadow:inset 0 0 0 1px #CCFF0066}
#boardList li em{margin-left:auto;font:800 16px Chakra,Geist,sans-serif;font-style:normal;color:#4A6600}
#boardList .md{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font:800 11px Geist,sans-serif;color:#cfc3b0;background:#2a231d;border:var(--bw) solid var(--bc)}
#boardList .md.m1{background:radial-gradient(circle at 35% 30%,#fff1a8,#CCFF00);color:#3a2a00;border-color:var(--bc)}
#boardList .md.m2{background:radial-gradient(circle at 35% 30%,#fff,#a9b0b8);color:#222;border-color:var(--bc)}
#boardList .md.m3{background:radial-gradient(circle at 35% 30%,#ffd0a0,#b8692c);color:#2a1500;border-color:var(--bc)}
#boardList .av{width:18px;height:16px;flex:none;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M2 0l6 6h8l6-6v12c0 5-4 9-10 9S2 17 2 12z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 21'%3E%3Cpath d='M2 0l6 6h8l6-6v12c0 5-4 9-10 9S2 17 2 12z'/%3E%3C/svg%3E") center/contain no-repeat;background:#7d7064}
#boardList .av.t1{background:#c9b48a}#boardList .av.t2{background:#CCFF00}#boardList .av.t3{background:linear-gradient(#fff1a8,#CCFF00)}
/* pounce: big round paw button */
.paw{fill:currentColor}
#pounceBtn,body.playing #cdDesk{border-radius:50%!important;border:var(--bw) solid var(--bc)!important;background:radial-gradient(circle at 40% 30%,#CCFF00,#CCFF00 50%,#a96500)!important;box-shadow:0 5px 0 #000,0 0 0 4px #4a3a28,0 10px 24px #000a!important;color:#1a1208!important}
#pounceBtn .paw,#cdDesk .paw{position:absolute;left:50%;top:44%;width:44%;height:44%;transform:translate(-50%,-50%);fill:#1a1208;opacity:.9}
#pounceBtn span,#cdDesk span{position:absolute!important;left:0;right:0;bottom:12%;font:800 12px/1 Geist,sans-serif!important;text-transform:uppercase;letter-spacing:1px;color:#1a1208!important}
#cdDesk span small{display:none}
body.playing #cdDesk{width:84px;height:84px;left:308px;bottom:16px}

#pounceBtn svg:first-child circle{stroke:var(--bc);stroke-width:5}
/* small buttons */
body.playing #gbtns button{background:var(--metal);border:var(--bw) solid var(--bc);border-radius:var(--r);box-shadow:0 3px 0 #000a;font-weight:800;color:#4A6600}
#cdDesk i{position:absolute;inset:0;width:auto!important;border-radius:50%;background:transparent!important}
#cdDesk.ready{box-shadow:0 5px 0 #000,0 0 0 4px #CCFF00,0 0 22px #CCFF00aa!important}
#hud #eaten{font:800 26px/1 Chakra,Geist,sans-serif;color:#4A6600}
@media (max-width:700px){body.playing #board{top:168px!important}body.playing #zone{top:262px}#hud .collar{min-width:48px;height:34px}#hud .collar span{font-size:17px}}
@media (max-width:700px){body.playing #zone{top:380px!important}}

/* ===== radius tokens ===== */
:root{--r:10px;--r-sm:6px}
.panel,#hud,#board,.card,.btn,input,#walletMenu,#walletMenu *,.dlg,.pcard,.pstats>div,.page dl,.wbtn,#hud .collar,#hud .bar,#hud .bar i,#boardList li,.stats span,#feed>div,#banner,#zone{border-radius:var(--r)!important}.or span,.chip,#board .bh,#hud .small b{border-radius:var(--r-sm)!important}
#pounceBtn,#cdDesk,.gicons a,.gicons .ib,#boardList .md,#stick,#stick i{border-radius:50%!important}
/* navbar: no orange line, subtle dark edge */
.nav,body.playing .nav{border-bottom:var(--bw) solid var(--bc)!important;box-shadow:0 1px 0 #ffffff0a!important}
/* Connect wallet: dark fill, thin orange border, wallet icon, white text */
.wbtn,.btn.alt.wl{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(180deg,#221d19,#15120f)!important;color:#fff!important;border:var(--bw) solid var(--bc)!important;box-shadow:inset 0 1px #ffffff10!important;font:600 13px Geist,sans-serif!important;padding:7px 13px;transition:box-shadow .15s,border-color .15s}
.wbtn::before{content:"";width:16px;height:14px;background:#CCFF00;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M3 2h16v3h2v13H3a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3zm0 3h16V4H3zm13 5a2 2 0 1 0 0 4h5v-4z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M3 2h16v3h2v13H3a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3zm0 3h16V4H3zm13 5a2 2 0 1 0 0 4h5v-4z'/%3E%3C/svg%3E") center/contain no-repeat}
.wbtn:hover,.btn.alt.wl:hover{filter:none!important;border-color:var(--bc)!important;box-shadow:0 0 0 1px #CCFF0055,0 0 16px #CCFF0066!important}
.btn.alt.wl{justify-content:center}
/* icon buttons in the top bar */
.gicons .ib{display:grid;place-items:center;width:34px;height:34px;padding:0;background:var(--metal);border:var(--bw) solid var(--bc);cursor:pointer}
.gicons a,.gicons .ib{border-radius:50%}.gicons .ib svg{width:18px;height:18px;fill:#4A6600}.gicons .ib:hover{border-color:var(--bc)}
#muteBtn .off{display:none}#muteBtn.muted .off{display:inline}#muteBtn.muted .on{display:none}#muteBtn.muted svg{fill:#8a7a66}
.gicons #exitBtn{display:none}body.playing .gicons #exitBtn{display:grid}

/* leave confirm */
#leaveDlg{position:fixed;inset:0;z-index:40;display:grid;place-items:center;background:#0009}#leaveDlg[hidden]{display:none}
.dlg{width:min(320px,90vw);padding:20px;background:var(--metal);border:var(--bw) solid var(--bc);box-shadow:0 10px 30px #000c;text-align:center}
.dlg h3{margin:0 0 6px;font:700 24px Chakra,Geist,sans-serif;color:#fff}.dlg p{margin:0 0 16px;color:#b9ab95;font:14px Geist,sans-serif}.dlg .row{display:flex;gap:10px}.dlg .btn{flex:1;min-height:44px}
/* Pounce: sleek claw action button */
#pounceBtn,body.playing #cdDesk{background:radial-gradient(circle at 50% 45%,#1f1a16,#0d0b09 70%)!important;border:var(--bw) solid var(--bc)!important;box-shadow:0 0 0 3px #000,0 8px 20px #000a!important;color:#fff!important}
#pounceBtn .claw,#cdDesk .claw{position:absolute;left:50%;top:44%;width:46%;height:46%;transform:translate(-50%,-50%) rotate(-12deg);stroke:var(--bc);fill:none;z-index:2}
#pounceBtn span,#cdDesk span{z-index:2;color:#fff!important;font:700 12px/1 Geist,sans-serif!important;bottom:13%}
#cdDesk span small{display:block;margin-top:3px;font:600 12px Geist,sans-serif;color:#b9ab95;text-transform:none;letter-spacing:0}
body.playing #cdDesk{width:96px;height:96px}#cdDesk span{bottom:10%}
#cdDesk.ready{box-shadow:0 0 0 3px #000,0 0 22px #CCFF00aa!important}
#pounceBtn svg:first-child circle{stroke:var(--bc);stroke-width:6}
@media (max-width:700px){#pounceBtn{width:110px!important;height:110px!important}}
/* profile */
.prof .pcard{display:flex;gap:22px;flex-wrap:wrap;padding:20px;background:var(--metal);border:var(--bw) solid var(--bc);box-shadow:0 8px 26px #000a}
.pcat{display:grid;justify-items:center;gap:6px;padding:12px;background:#0e0c0a;border:var(--bw) solid var(--bc);border-radius:var(--r)}.pcat canvas{width:150px;height:auto}
.pcat b{font:700 14px Geist,sans-serif;color:#4A6600}
.pinfo{flex:1;min-width:240px}.pinfo h2{margin:0;font:700 30px Chakra,Geist,sans-serif;color:#fff}
.pwho{display:flex;gap:10px;align-items:center;color:#b9ab95;font:14px Geist,sans-serif;margin:4px 0 14px}
.dia{width:14px;height:14px;background:#3aa0ff;transform:rotate(45deg);border-radius:var(--rs);box-shadow:0 0 8px #3aa0ff99}
.pstats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.pstats>div{padding:10px;background:#0e0c0a;border:var(--bw) solid var(--bc)}
.pstats b{display:block;font:800 24px Chakra,Geist,sans-serif;color:#4A6600}.pstats span{font:600 12px Geist,sans-serif;color:#b9ab95}
@media (max-width:520px){.pstats{grid-template-columns:repeat(2,1fr)}}

/* ===================== SPEC.md layout (approved) ===================== */
:root{--r:10px;--r-sm:12px;--acc:#FF8A1F;--pbg:rgba(10,10,10,.72);--pbd:rgba(255,138,31,.35);--tx:#F2EEE8;--mu:#9A948C;
 --st:max(16px,env(safe-area-inset-top));--sb:max(16px,env(safe-area-inset-bottom));--sl:max(16px,env(safe-area-inset-left));--sr:max(16px,env(safe-area-inset-right))}
.nav{border-bottom:0!important;box-shadow:none!important;background:linear-gradient(180deg,rgba(12,11,10,.92),rgba(12,11,10,.55))!important;height:56px}
body.playing .panel,body.playing #hud,body.playing #board,.dlg,.pcard,.card{background:var(--pbg)!important;border:var(--bw) solid var(--bc)!important;box-shadow:0 6px 20px rgba(0,0,0,.45)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.panel::before,.panel::after,#hud::before,#hud::after,#board::before,#board::after,.card::before,.card::after{content:none!important;display:none!important}
#hud,#board,#timerBox,#cdDesk,#feed,#zone,.gicons{font-variant-numeric:tabular-nums}
/* in-match: nav hidden, only round icon buttons stay */
body.playing .nav{background:none!important;height:0;padding:0;pointer-events:none}
body.playing .nav>*:not(.gicons){display:none!important}
body.playing .nav .gicons{display:flex!important;position:fixed;z-index:30;gap:8px;pointer-events:auto;margin:0}
body.playing .gicons a[href="/about"],body.playing .gicons a[href="/leaderboard"],body.playing .gicons a[href="/faq"]{display:none!important}
body.playing .gicons a,body.playing .gicons .ib{width:40px;height:40px;display:grid;place-items:center;background:var(--pbg);border:var(--bw) solid var(--bc);border-radius:50%!important}
#timerBox{display:none}body.playing #timerBox{display:grid;place-items:center;position:fixed;z-index:25;left:50%;transform:translateX(-50%);background:var(--pbg);border:var(--bw) solid var(--bc);border-radius:var(--r);color:var(--tx);font:700 20px Geist,sans-serif}
#timerBox #timer{color:var(--tx)!important;font:inherit!important}
body.playing #board .bh span#timer{display:none}
/* XP bar full width */
body.playing #hud .bar{position:fixed!important;left:0;right:0;top:0;margin:0!important;height:8px!important;border:0!important;border-radius:0!important;background:rgba(0,0,0,.6)!important;z-index:26}
body.playing #hud .bar i{border-radius:0!important;background:var(--acc)!important}
body.playing #hud .bar::before,body.playing #hud .bar::after{display:none!important}
/* desktop */
@media (min-width:701px) and (min-height:521px){
 body.playing #hud{position:fixed!important;top:32px!important;left:24px!important;right:auto!important;bottom:auto!important;width:280px!important;min-height:72px;padding:12px 14px!important;transform:none!important}
 body.playing #timerBox{top:28px;width:96px;height:36px}
 body.playing #board{position:fixed!important;top:32px!important;right:24px!important;left:auto!important;width:240px!important;transform:none!important}
 body.playing #board li{min-height:28px}
 body.playing .nav .gicons{top:32px;right:276px}
 body.playing #cdDesk{display:flex!important;position:fixed!important;left:50%!important;bottom:24px!important;right:auto!important;top:auto!important;transform:translateX(-50%)!important;width:160px!important;height:40px!important;align-items:center;gap:10px;padding:0 14px!important;border-radius:var(--r)!important;border:var(--bw) solid var(--bc)!important;background:var(--pbg)!important;box-shadow:none!important}
 body.playing #cdDesk.ready{border-color:var(--bc)!important;box-shadow:0 0 14px rgba(255,138,31,.35)!important}
 body.playing #cdDesk i{position:relative!important;inset:auto!important;flex:0 0 24px;width:24px!important;height:24px!important;border-radius:50%!important;-webkit-mask:radial-gradient(circle,transparent 7px,#000 8px);mask:radial-gradient(circle,transparent 7px,#000 8px)}
 body.playing #cdDesk .claw{display:none}
 body.playing #cdDesk span{position:static!important;font:700 14px Geist,sans-serif!important;color:var(--tx)!important;text-transform:uppercase;letter-spacing:.04em}
 body.playing #cdDesk span small{display:inline!important;margin-left:6px;color:var(--mu)!important;font:600 12px Geist,sans-serif!important;text-transform:none}
 body.playing #pounceBtn,body.playing #stick{display:none!important}
 body.playing #feed{position:fixed!important;left:24px!important;top:128px!important;right:auto!important;bottom:auto!important}
 body.playing #zone{position:fixed!important;top:76px!important;left:50%!important;transform:translateX(-50%)!important}
}
/* mobile portrait + landscape phones */
@media (max-width:700px),(max-height:520px){
 body.playing #hud{position:fixed!important;top:env(safe-area-inset-top)!important;left:0!important;right:0!important;bottom:auto!important;width:auto!important;height:44px!important;min-height:0!important;padding:0 var(--sr) 0 var(--sl)!important;display:flex;align-items:center;border-radius:0!important;border-width:0!important;background:rgba(10,10,10,.72)!important;transform:none!important}
 body.playing #hud .lvl{display:flex;align-items:center;gap:8px;margin:0!important}
 body.playing #hud #lvName,body.playing #hud #xpTxt,body.playing #hud .small span:nth-child(n+3){display:none!important}
 body.playing #hud .small{display:flex;margin:0 0 0 8px!important;font:600 12px Geist,sans-serif;color:var(--mu)}
 body.playing #hud .collar{transform:scale(.85);transform-origin:left center}
 body.playing #hud .bar{top:calc(env(safe-area-inset-top) + 44px)!important;height:6px!important}
 body.playing #timerBox{top:calc(env(safe-area-inset-top) + 6px);height:32px;width:76px;font-size:16px}
 body.playing .nav .gicons{top:calc(env(safe-area-inset-top) + 4px);right:var(--sr);gap:6px}
 body.playing .gicons a[href="/profile"]{display:none!important}
 body.playing .gicons .ib{width:36px!important;height:36px!important;position:relative}
 body.playing .gicons .ib::after{content:"";position:absolute;inset:-4px}
 body.playing #hud em{position:fixed!important;right:calc(var(--sr) + 12px);bottom:calc(var(--sb) + 152px);width:72px;height:28px;display:flex!important;align-items:center;justify-content:center;gap:6px;background:var(--pbg);border:var(--bw) solid var(--bc);border-radius:var(--r);font-style:normal;z-index:24}
 body.playing #hud em #eaten{font:700 14px Geist,sans-serif!important}
 body.playing #board{position:fixed!important;right:calc(var(--sr) - 4px)!important;top:calc(env(safe-area-inset-top) + 62px)!important;left:auto!important;width:148px!important;padding:6px 8px!important;font-size:12px!important;transform:none!important}
 body.playing #board li:nth-child(n+4):not(.me){display:none!important}
 body.playing #board li{font-size:12px!important;min-height:22px}
 body.playing #board .bh{font-size:11px!important}
 body.playing #zone{position:fixed!important;top:calc(env(safe-area-inset-top) + 160px)!important;left:50%!important;transform:translateX(-50%)!important}
 body.playing #feed{position:fixed!important;left:var(--sl)!important;top:calc(env(safe-area-inset-top) + 160px)!important}
 body.playing #cdDesk{display:none!important}
 body.playing #stick{display:block!important;position:fixed!important;left:0!important;bottom:0!important;width:50vw!important;height:45vh!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;touch-action:none;z-index:24}
 #stick .base{position:absolute;left:calc(var(--sl) + 72px);bottom:calc(var(--sb) + 72px);top:auto;width:120px;height:120px;margin:-60px 0 -60px -60px;border-radius:50%;background:rgba(10,10,10,.5);border:var(--bw) solid var(--bc);opacity:.4;transition:opacity .15s;display:grid;place-items:center}
 #stick.act .base{opacity:1;margin:-60px 0 0 -60px}
 #stick .base i{width:52px;height:52px;border-radius:50%!important;background:var(--acc);box-shadow:0 2px 8px #000a;position:static!important}
 body.playing #pounceBtn{display:grid!important;position:fixed!important;right:calc(var(--sr) + 20px)!important;bottom:calc(var(--sb) + 20px)!important;left:auto!important;top:auto!important;width:96px!important;height:96px!important;border:var(--bw) solid var(--bc)!important;place-items:center}
 body.playing #pounceBtn>svg:first-child{position:absolute;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px)}
 body.playing #pounceBtn>svg:first-child circle{stroke:var(--bc)!important;stroke-width:6!important}
 body.playing #pounceBtn span{position:absolute;bottom:14px;font:700 12px Geist,sans-serif!important}
}
@media (max-height:520px){
 body.playing #mini,body.playing #miniRim,body.playing #miniLbl{display:none!important}
 body.playing #board{top:calc(env(safe-area-inset-top) + 56px)!important}
 body.playing #zone{top:calc(env(safe-area-inset-top) + 56px)!important}
}
/* login card */
.card .btn,.card input{border-radius:var(--r)!important}
.card #nameIn{height:48px}.card .btn.pri,.card #playBtn{min-height:52px}.card .btn.alt.wl{min-height:48px}
@media (min-width:701px){.card{width:420px!important;max-width:calc(100vw - 32px)}}
@media (max-width:700px){body:not(.playing) .card{position:fixed!important;left:16px!important;right:16px!important;bottom:var(--sb)!important;top:auto!important;width:auto!important;transform:none!important;margin:0!important}.card #playBtn{min-height:56px}}
/* profile 2 columns desktop / 1 mobile */
.prof .pcard{display:grid!important;grid-template-columns:200px 1fr;gap:24px}.prof .pstats{grid-template-columns:repeat(3,1fr)}
@media (max-width:700px){.prof .pcard{grid-template-columns:1fr}.prof .pstats{grid-template-columns:repeat(2,1fr)}}
.pstats>div,.pcat{border-radius:var(--r)!important}
.burger{display:none}
@media (max-width:700px){
 .nav{flex-wrap:nowrap!important;gap:8px}
 .nav a.l{display:none!important}
 .nav .wbtn{white-space:nowrap;padding:7px 10px;font-size:12px!important}
 .burger{display:grid;gap:4px;place-content:center;width:40px;height:40px;margin-left:4px;background:var(--pbg);border:var(--bw) solid var(--bc);border-radius:var(--r);cursor:pointer}
 .burger i{display:block;width:18px;height:2px;background:var(--tx);border-radius:var(--rs)}
 .nav.open a.l{display:block!important;position:fixed;left:16px;right:16px;padding:12px 16px;background:rgba(10,10,10,.95);border:var(--bw) solid var(--bc);border-radius:var(--r);z-index:40}
 .nav.open a.l:nth-of-type(1){top:64px}.nav.open a.l:nth-of-type(2){top:112px}.nav.open a.l:nth-of-type(3){top:160px}.nav.open a.l:nth-of-type(4){top:208px}.nav.open a.l:nth-of-type(5){top:256px}
 body:not(.playing) #start~.foot,body:has(#start) .foot{display:none}
 #walletMenu{position:fixed!important;left:16px!important;right:16px!important;top:auto!important;bottom:var(--sb)!important;width:auto!important;z-index:60}
 body.playing #board{max-height:none!important;overflow:visible!important}
 body.playing #board ol{max-height:none!important;overflow:visible!important}
}
@media (max-height:520px){body:not(.playing) .card{max-height:calc(100vh - 64px);overflow:auto;margin-top:56px!important;padding:14px 20px!important}.card .brandmark,.card>img{width:40px;height:40px}body:has(#start) .foot{display:none}}
@media (max-width:700px),(max-height:520px){body.playing #board ol li.me{display:flex!important}}

/* ===== in-match slim game navbar (restored) ===== */
:root{--nh:48px}
body.playing .nav{display:flex!important;align-items:center;height:calc(var(--nh) + env(safe-area-inset-top))!important;padding:env(safe-area-inset-top) var(--sr) 0 var(--sl)!important;background:rgba(10,10,10,.78)!important;border-bottom:var(--bw) solid var(--bc)!important;box-shadow:none!important;pointer-events:auto!important;z-index:30}
body.playing .nav>*{display:revert}
body.playing .nav>.brand{display:flex!important}
body.playing .nav a.l{display:none!important}
body.playing .nav .wbtn{display:inline-flex!important;margin-left:8px;border-radius:var(--r)!important;height:34px}
body.playing .nav .gicons{position:static!important;display:flex!important;margin-left:auto!important}
body.playing .gicons a[href="/about"],body.playing .gicons a[href="/leaderboard"],body.playing .gicons a[href="/faq"],body.playing .gicons a[href="/profile"]{display:grid!important}
body.playing .gicons a,body.playing .gicons .ib{width:36px!important;height:36px!important}
body.playing .nav .burger{display:none!important}
body.playing #timerBox{top:calc(var(--nh) + env(safe-area-inset-top) + 16px)!important}
body.playing #hud .bar{top:calc(var(--nh) + env(safe-area-inset-top))!important}
@media (min-width:701px) and (min-height:521px){
 body.playing #hud{top:calc(var(--nh) + 24px)!important}
 body.playing #board{top:calc(var(--nh) + 24px)!important}
 body.playing #feed{top:calc(var(--nh) + 120px)!important}
 body.playing #zone{top:calc(var(--nh) + 64px)!important}
}
@media (max-width:700px),(max-height:520px){
 body.playing .nav .wbtn,body.playing .gicons a{display:none!important}
 body.playing .nav .burger{display:grid!important;width:36px;height:36px;margin-left:6px}
 body.playing .nav.open a.l{display:block!important;top:auto}
 body.playing .nav.open a.l:nth-of-type(1){top:calc(var(--nh) + 8px)}body.playing .nav.open a.l:nth-of-type(2){top:calc(var(--nh) + 56px)}body.playing .nav.open a.l:nth-of-type(3){top:calc(var(--nh) + 104px)}body.playing .nav.open a.l:nth-of-type(4){top:calc(var(--nh) + 152px)}body.playing .nav.open a.l:nth-of-type(5){top:calc(var(--nh) + 200px)}
 body.playing .nav .brand span{display:none}
 body.playing #timerBox{top:calc(env(safe-area-inset-top) + 8px)!important;z-index:31;height:32px}
 body.playing #hud{top:calc(var(--nh) + env(safe-area-inset-top))!important;height:40px!important;background:rgba(10,10,10,.6)!important}
 body.playing #hud .bar{top:calc(var(--nh) + env(safe-area-inset-top) + 40px)!important}
 body.playing #board{top:calc(env(safe-area-inset-top) + var(--nh) + 58px)!important}
 body.playing #zone,body.playing #feed{top:calc(env(safe-area-inset-top) + var(--nh) + 156px)!important}
}
@media (max-height:520px){body.playing #board,body.playing #zone{top:calc(env(safe-area-inset-top) + var(--nh) + 52px)!important}}
/* desktop Pounce action slot */
@media (min-width:701px) and (min-height:521px){
 body.playing #cdDesk{display:none!important}
 body.playing #pounceBtn{display:grid!important;place-items:center;position:fixed!important;right:32px!important;bottom:32px!important;left:auto!important;top:auto!important;width:72px!important;height:72px!important;border-radius:50%!important;border:var(--bw) solid var(--bc)!important;background:radial-gradient(circle at 50% 45%,#1f1a16,#0b0a09 70%)!important;box-shadow:0 0 0 3px rgba(0,0,0,.7),0 8px 20px rgba(0,0,0,.6)!important;cursor:pointer;z-index:24;overflow:visible}
 body.playing #pounceBtn:hover{box-shadow:0 0 0 3px rgba(0,0,0,.7),0 0 18px rgba(255,138,31,.45)!important}
 body.playing #pounceBtn>svg:first-child{position:absolute;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px)}
 body.playing #pounceBtn>svg:first-child circle{stroke:var(--bc)!important;stroke-width:5!important}
 body.playing #pounceBtn .claw{top:50%!important;width:50%!important;height:50%!important}
 body.playing #pounceBtn span{display:none!important}
 body.playing #pounceBtn::after{content:"SPACE";position:absolute;left:50%;bottom:-24px;transform:translateX(-50%);padding:2px 8px;font:700 11px Geist,sans-serif;letter-spacing:.08em;color:var(--tx);background:#1a1714;border:var(--bw) solid var(--bc);border-bottom-width:2px;border-radius:var(--r)}
}
@media (max-width:700px),(max-height:520px){body.playing .nav .gicons a[href]{display:none!important}}
/* joystick: base always centred on its anchor, knob centred in base */
#stick .base{margin:0!important;left:calc(var(--sl) + 72px);top:calc(100% - var(--sb) - 72px);bottom:auto!important;transform:translate(-50%,-50%)}
#stick .base i{position:absolute!important;left:50%!important;top:50%!important;margin:-26px 0 0 -26px!important}

/* HUD variant A: horizontal strip (desktop) */
#hudA{display:none}
@media (min-width:900px){
body.playing #hudA{display:flex;gap:8px;position:fixed;z-index:8;left:16px;top:64px;align-items:stretch;font-family:Geist,sans-serif;color:#f3ece2;pointer-events:none}
body.playing #hud{display:none!important}
#hudA .hb{background:linear-gradient(180deg,rgba(38,32,28,.86),rgba(16,14,13,.9));border:var(--bw) solid var(--bc);border-radius:var(--r);box-shadow:inset 0 1px 0 rgba(255,200,140,.18),0 4px 10px rgba(0,0,0,.5);padding:8px 12px}
#hudA .lbl{font:700 10px Geist,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#c9b8a4}
#hudA .num{font:800 26px/1 Chakra,Geist,sans-serif;color:#fff}#hudA .num small{font-size:15px;color:#c9b8a4}
#hudA .av{width:76px;padding:4px;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,rgba(249,160,4,.28),rgba(15,12,10,.92) 70%)}
#hudA .av canvas{width:66px;height:66px}
#hudA .who{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:120px}
#hudA .nm{font:800 22px/1.05 Chakra,Geist,sans-serif;color:#fff;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#hudA .tag{display:inline-flex;font:700 10px Geist,sans-serif;letter-spacing:.12em;text-transform:uppercase;padding:2px 7px;border-radius:var(--r);border:var(--bw) solid var(--bc);color:#c9b8a4;background:rgba(0,0,0,.35)}
#hudA .tag.holder{border-color:var(--bc);color:#2F4200;background:rgba(204,255,0,.45)}
#hudA .lvb{min-width:210px;display:flex;flex-direction:column;justify-content:center}
#hudA .row{display:flex;gap:6px;align-items:center}#hudA .sp{justify-content:space-between}
#hudA .lv{font:800 13px Geist,sans-serif;letter-spacing:.08em;color:#1a0f05;background:#CCFF00;border-radius:var(--r);padding:2px 8px}
#hudA .ttl{font:700 18px Chakra,Geist,sans-serif;color:#ffd2a6}
#hudA .bar{height:10px;border-radius:var(--r);background:rgba(0,0,0,.6);border:var(--bw) solid var(--bc);overflow:hidden;margin:6px 0 4px}
#hudA .bar i{display:block;height:100%;width:0;background:linear-gradient(180deg,#ffb15c,#CCFF00 55%,#c45f0a);border-radius:var(--r);transition:width .3s}
#hudA .xp{font:700 13px Chakra,Geist,sans-serif;color:#c9b8a4}
#hudA .stat{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:72px;text-align:center}
#hudA svg.ic{width:14px;height:14px;fill:#4A6600}
}
body.playing .nav{border-bottom:var(--bw) solid var(--bc)!important;box-shadow:0 2px 8px rgba(0,0,0,.5)!important}

/* XP progress lives at the bottom edge, nothing orange under the navbar */
body.playing #hud .bar{display:none!important}
#xpLine{display:none}
body.playing #xpLine{display:block;position:fixed;z-index:7;left:16px;right:124px;bottom:14px;height:6px;border-radius:var(--r);background:rgba(0,0,0,.55);border:var(--bw) solid var(--bc);overflow:hidden;pointer-events:none}
#xpLine i{display:block;height:100%;width:0;background:linear-gradient(90deg,#c45f0a,#CCFF00);border-radius:var(--r);transition:width .3s}
@media (max-width:899px){body.playing #xpLine{left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 4px);height:4px}}
@media(min-width:900px){body.playing #timerBox{top:auto!important;bottom:28px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}}
*{-webkit-tap-highlight-color:transparent}
/* desktop: HUD boxes share the nav height (56px) */
@media (min-width:900px){
body.playing .nav{height:56px}
body.playing #hudA{top:64px;height:56px;align-items:stretch}
#hudA .hb{height:56px;box-sizing:border-box;padding:6px 12px}
#hudA .av{width:56px;padding:3px}#hudA .av canvas{width:48px;height:48px}
#hudA .who{gap:2px}#hudA .nm{font-size:18px}#hudA .tag{font-size:9px;padding:1px 6px}
#hudA .lv{font-size:11px;padding:1px 7px}#hudA .ttl{font-size:15px}
#hudA .bar{height:7px;margin:4px 0 2px}#hudA .xp{font-size:11px;line-height:1}
#hudA .stat{gap:2px;min-width:64px}#hudA .num{font-size:21px}#hudA .num small{font-size:12px}#hudA .lbl{font-size:9px}
body.playing #board{top:64px!important}
body.playing #board .bh{height:56px;box-sizing:border-box;display:flex;align-items:center;margin:-0px 0 0}
}
@media (min-width:900px){body.playing #board{padding-top:0!important}body.playing #board .bh{margin-bottom:4px;border-bottom:1px dashed rgba(249,160,4,.35);font-size:13px}}
#keysHint{display:none}
@media (min-width:900px){
body.playing .nav{height:56px!important}
#hudA .who .lbl{display:none}
body.playing #keysHint{display:flex;align-items:center;gap:8px;position:fixed;z-index:8;bottom:28px;right:calc(50% + 62px);padding:5px 10px;background:linear-gradient(180deg,rgba(38,32,28,.86),rgba(16,14,13,.9));border:var(--bw) solid var(--bc);border-radius:var(--r);pointer-events:none;font-family:Geist,sans-serif}
#keysHint .kc{display:grid;grid-template-columns:repeat(3,16px);grid-template-rows:16px 16px;gap:2px}
#keysHint .k{display:grid;place-items:center;font:700 9px Geist,sans-serif;color:var(--tx,#f3ece2);background:#1a1714;border:var(--bw) solid var(--bc);border-bottom-width:2px;border-radius:var(--rs)}
#keysHint .k.w{grid-column:2}
#keysHint span{font:700 11px Geist,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#c9b8a4}
}
@media (min-width:900px){
#keysHint .kc{grid-template-columns:repeat(3,24px);grid-template-rows:24px 24px}
#keysHint .k{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:11px;line-height:1}
#keysHint .k svg{width:8px;height:5px;color:#4A6600}
}
@media (min-width:900px){#keysHint .k:nth-child(2){grid-column:1;grid-row:2}#keysHint .k:nth-child(3){grid-column:2;grid-row:2}#keysHint .k:nth-child(4){grid-column:3;grid-row:2}}
/* flat WASD row */
@media (min-width:900px){#keysHint .kc{display:grid;grid-template-columns:repeat(4,24px)!important;grid-template-rows:24px!important;gap:4px}
#keysHint .kc .k{grid-column:auto!important;grid-row:1!important}
#board .bh{height:56px!important;box-sizing:border-box}}
/* desktop Online box = 56px row */
@media (min-width:900px){body.playing #board{height:56px!important;box-sizing:border-box;padding:0 12px!important;display:flex!important;align-items:center;gap:10px;overflow:visible}
body.playing #board .bh{height:auto!important;border:0!important;margin:0!important;white-space:nowrap;gap:8px}
body.playing #board #boardList{margin:0;padding:0;min-width:150px}
body.playing #board #boardList li{display:none}body.playing #board #boardList li.me{display:flex!important;margin:0}
body.playing #board:hover #boardList{position:absolute;top:60px;right:0;left:0;background:rgba(20,20,20,.94);border:var(--bw) solid var(--bc);border-radius:var(--r);padding:6px}
body.playing #board:hover #boardList li{display:flex}}
@media (min-width:900px){body.playing #board #boardList{min-width:0;flex:1;overflow:hidden}body.playing #board:hover #boardList{overflow:visible}}
/* sticky footer on content pages (not the game page) */
html:has(body>main.page),body:has(>main.page){min-height:100%}
body:has(>main.page){min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
body:has(>main.page)>main.page{flex:1 0 auto;width:100%}
body:has(>main.page)>.foot{flex-shrink:0;margin-top:auto}

/* unified outlines + accessible focus */
:focus{outline:none}
:focus-visible{outline:2px solid #fff!important;outline-offset:2px;box-shadow:0 0 0 4px var(--bc)!important}
.card input:focus-visible{outline:2px solid #fff}
.wbtn,.btn,.nav .wbtn,#gbtns button{min-height:var(--ctl)}
.wbtn{padding:0 14px;display:inline-flex;align-items:center;border:var(--bw) solid var(--bc)}
.xbtn{display:inline-flex;align-items:center;gap:6px;min-height:var(--ctl);padding:0 12px;border:var(--bw) solid var(--bc);border-radius:var(--r);background:rgba(0,0,0,.35);color:#fff;font-size:13px;font-weight:600;text-decoration:none;margin-right:8px;white-space:nowrap}
.xbtn:hover,.xjoin:hover{background:rgba(249,160,4,.15)}
.xjoin{display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
@media (max-width:640px){.xbtn span{display:none}.xbtn{padding:0 10px;margin-right:6px}}
@media(min-width:900px){body.playing #timerBox{left:auto!important;right:124px!important;transform:none!important;bottom:28px!important}body.playing #keysHint{right:232px!important;left:auto!important;bottom:28px!important}}

#board li.empty{opacity:.6;font-size:12px}#board li em{min-width:44px;text-align:right}

.skinGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;margin-top:22px}
.skinCard{position:relative;background:rgba(27,25,22,.94);border:var(--bw) solid var(--bc);border-radius:var(--r);padding:10px 12px 14px;text-align:center}
.skinCard canvas{width:100%;max-width:180px;aspect-ratio:1;display:block;margin:0 auto}.skinCard.locked canvas{filter:grayscale(.85) brightness(.6)}
.skinCard .sn{font-weight:600;color:var(--o);margin-top:4px}.skinCard .sr{font-size:12.5px;opacity:.75;margin-top:3px}
.skinCard .ss{position:absolute;top:8px;right:8px;font-size:11px;padding:2px 7px;border-radius:var(--rs);border:var(--bw) solid var(--line)}.skinCard .ss.unlocked{color:var(--o);border-color:var(--bc)}
@media(max-width:600px){.skinGrid{grid-template-columns:repeat(2,1fr);gap:10px}.skinCard{padding:8px 8px 12px}}
/* nav modal */
#acModal{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.62)}#acModal[hidden]{display:none}
#acModal .mbox{position:relative;width:min(860px,calc(100vw - 40px));max-height:calc(100vh - 80px);display:flex;flex-direction:column;background:#161412;border:var(--bw) solid var(--bc);border-radius:var(--r);box-shadow:0 20px 60px #000c}
#acModal .mx{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:var(--rs);border:var(--bw) solid var(--bc);background:#1b1916;color:var(--o);font-size:20px;line-height:1;cursor:pointer;z-index:2}
#acModal .mbody{overflow:auto;-webkit-overflow-scrolling:touch}#acModal .mbody .page{padding:26px 26px 30px;max-width:none}#acModal .mbody .page h1{font-size:36px;margin-right:44px}
@media(max-width:600px){#acModal{align-items:flex-end}#acModal .mbox{width:100vw;max-height:calc(100dvh - 24px);border-radius:var(--r) var(--r) 0 0;border-bottom:0}#acModal .mbody .page{padding:20px 16px 28px}#acModal .mbody .page h1{font-size:30px}}
/* top holders: always show list */
@media (min-width:900px){body.playing #board{height:auto!important;display:block!important;padding:0 12px 8px!important}body.playing #board .bh{height:56px!important;display:flex!important;align-items:center}body.playing #board #boardList,body.playing #board:hover #boardList{position:static!important;background:none!important;border:0!important;padding:0!important;min-width:0}body.playing #board #boardList li{display:flex!important}}
@media (max-width:899px){body.playing #board ol#boardList li:nth-child(-n+5):not(.zz){display:flex!important}body.playing #board li:nth-child(n+6){display:none!important}}
/* join screen: no navbar */
body:has(#start):not(.playing) header.nav{display:none!important}
.joinLinks{margin-top:12px;text-align:center;font-size:13px;color:#8a7e6e}.joinLinks a{color:#cfc3b0;text-decoration:none;padding:4px 2px}.joinLinks a:hover{color:#4A6600;text-decoration:underline}
.tiers .sw{width:44px;height:44px;background-size:331px 331px;background-position:-19px -13px;background-repeat:no-repeat}
/* Follow on X in the in-game nav */
body.playing .nav .xbtn{display:inline-flex!important;height:34px;min-height:34px;margin:0 0 0 8px}
@media (max-width:640px){body.playing .nav .xbtn{width:34px;padding:0;justify-content:center;margin-left:6px}}
@media (max-width:640px){body.playing #timerBox{left:60px!important;right:auto!important;transform:none!important}}
.caBox{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:10px 0;font-size:14px}
.caBox .caL{font-weight:700}
.caBox .caV{font-family:ui-monospace,Menlo,monospace;font-size:13px;word-break:break-all;overflow-wrap:anywhere;min-width:0;max-width:100%;background:rgba(255,255,255,.06);padding:3px 6px;border-radius:6px}
.caBox .caCopy{font:inherit;font-size:12px;padding:4px 10px;border-radius:8px;border:1px solid #CCFF00;background:transparent;color:#4A6600;cursor:pointer}
.dia{color:#5ec8ff;font-size:12px}
/* nav: Follow on X sits right next to Connect wallet */
.nav .xbtn{margin-left:auto!important;margin-right:0!important}
.nav .xbtn~.wbtn,body.playing .nav .xbtn~.wbtn{margin-left:calc(8px - var(--ngap,22px))!important}
.nav{--ngap:22px}
body.playing .nav .gicons~.xbtn{margin-left:calc(8px - var(--ngap,22px))!important}
@media(max-width:640px){body.playing .nav .gicons~.xbtn{margin-left:0!important}}

/* ===== Moricat skin: white panels, black ink, hard offset shadows, Robin Neon lime ===== */
@font-face{font-family:Chakra;src:url(/fonts/ChakraPetch-Bold.woff2) format('woff2');font-weight:700;font-display:swap}
:root{--bc:#111;--bw:2.5px;--o:#4A6600;--k:#F6F8EE;--ink:#111;--line:#111;--panel:#fff;--sh:4px 4px 0 #111}
body{background:#F6F8EE;color:#111}
h1,h2,h3,.brand{font-family:Chakra,Geist,sans-serif!important;letter-spacing:-.01em}

.nav,body.playing .nav{background:#fff!important;backdrop-filter:none;border-bottom:2.5px solid #111!important;color:#111}
.nav a.l:hover,.nav a.l[aria-current]{color:#4A6600}
.brand img{border-radius:8px;border:2px solid #111}
#start{background:rgba(246,248,238,.55)!important}
.card,.panel,#walletMenu,.dlg,#acModal .mbox{background:#fff!important;color:#111!important;border:2.5px solid #111!important;border-radius:12px!important;box-shadow:var(--sh)!important}
.card input{background:#fff;color:#111;border:2.5px solid #111}
.btn,.wbtn{border-radius:10px!important;border:2.5px solid #111!important;box-shadow:3px 3px 0 #111;transition:transform .12s,box-shadow .12s}
.btn:hover,.wbtn:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 #111;filter:none}
.btn:active,.wbtn:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #111}
.btn.main,.wbtn{background:#CCFF00!important;color:#111!important}
.btn.alt{background:#fff!important;color:#111!important}
#walletMenu button{color:#111}#walletMenu button:hover{background:#F1FAD6}
.foot{border-top:2.5px solid #111}
/* Moricat HUD skin (final overrides) */
:root{--pbg:#fff;--metal:#fff;--bolt:none;--tx:#111}
#hudA .hb,body.playing .panel,body.playing #hud,body.playing #board,body.playing #keysHint,.pcard,body.playing #board:hover #boardList{background:#fff!important;color:#111!important;border:2.5px solid #111!important;border-radius:10px!important;box-shadow:3px 3px 0 #111!important}
#hudA .av{background:#F1FAD6!important}
#hudA .lbl,#hudA .ttl,#hudA .xp,#hudA .nm,#hudA .num,#board .bh,#boardList,#boardList *{color:#111!important}
#hudA .num,#hudA .nm,#hudA .ttl{font-family:Chakra,Geist,sans-serif!important}
#hudA .lv{color:#111!important;background:#CCFF00!important;border:2px solid #111}
#hudA .tag{color:#111!important;border:2px solid #111!important;background:#fff!important}
#hudA .bar,#xpLine{background:#F1FAD6!important;border:2px solid #111!important}
#hudA .bar i,#xpLine i{background:#CCFF00!important}
#boardList .md{background:#fff!important;color:#111!important;border:2px solid #111!important}
#boardList .md.m1{background:#CCFF00!important;color:#111!important}
.gicons a,.gicons .ib,body.playing .gicons a,body.playing .gicons .ib{background:#fff!important;border:2.5px solid #111!important;box-shadow:2px 2px 0 #111!important;color:#111!important}
.gicons svg{fill:#111!important;color:#111!important}
.wbtn,.btn.alt.wl{background:#CCFF00!important;color:#111!important;border:2.5px solid #111!important;box-shadow:3px 3px 0 #111!important}
.btn.alt.wl{background:#fff!important;color:#111!important}
#keysHint .k{background:#fff!important;color:#111!important;border:2px solid #111!important}
#pounceBtn,body.playing #cdDesk,body.playing #pounceBtn{background:#CCFF00!important;color:#111!important;border:3px solid #111!important;box-shadow:3px 3px 0 #111!important}
#pounceBtn .claw path,#cdDesk .claw path{stroke:#fff!important}
body.playing #pounceBtn::after{color:#111!important;background:#fff;border:2px solid #111;border-radius:6px}
#banner{color:#111!important;background:#CCFF00!important;border:2.5px solid #111;box-shadow:3px 3px 0 #111;font-family:Chakra,sans-serif!important}
.joinLinks,.joinLinks a,.or span{color:#333!important;opacity:1!important}
.or span{background:#fff!important}
#zone{color:#111!important;text-shadow:0 1px 0 #fff!important;font-family:Chakra,sans-serif!important}
.topbar .xjoin,a.xjoin{display:none!important}
/* unified type + navbar (matches Home header) */
.nav,body.playing .nav{background:#fff!important;border-bottom:2px solid #111!important;color:#111;font-family:Geist,system-ui,sans-serif}
.nav .brand{gap:10px;font:700 22px Chakra,sans-serif!important;color:#111}
.nav .brand img{width:34px!important;height:34px!important}
.nav .brand span,body.playing .nav .brand span{font:700 22px Chakra,sans-serif!important;color:#111!important;text-shadow:none!important}
.nav a.l{font:600 15px Geist,system-ui,sans-serif!important;opacity:1!important;color:#111}.nav a.l:hover,.nav a.l[aria-current]{color:#4A6600!important}
.nav .wbtn,body.playing .nav .wbtn{font:700 15px Chakra,sans-serif!important;background:#CCFF00!important;color:#111!important;border:2px solid #111!important;border-radius:12px!important;box-shadow:4px 4px 0 #111!important;padding:8px 16px}
.nav .xbtn{display:inline-flex!important;align-items:center;gap:6px;font:700 15px Chakra,sans-serif;background:#fff;color:#111;border:2px solid #111;border-radius:12px;box-shadow:4px 4px 0 #111;padding:6px 12px;text-decoration:none}
/* HUD responsive: holders panel drops below the stat row when space is short */
@media (min-width:701px) and (max-width:1100px){html body.playing #board{top:132px!important;right:24px!important}}
@media (min-width:701px) and (max-width:820px){html body.playing #hudA .lvb{min-width:150px}html body.playing #hudA .stat{min-width:54px}html body.playing #hudA .who{min-width:90px}}

[data-x][hidden]{display:none!important}
html body .nav .xbtn[data-x][hidden],html body.playing .nav .xbtn[data-x][hidden],html body .xjoin[data-x][hidden]{display:none!important}
html body #pounceBtn .claw,html body #pounceBtn .claw *,html body #cdDesk .claw,html body #cdDesk .claw *{stroke:#111!important}
html body .skinCard .sn,html body .skinCard .ss.unlocked{color:#CCFF00}html body .skinCard .ss.unlocked{border-color:#CCFF00}html body .skinCard .sr{color:#e6dfd3;opacity:.85}
