/* BLUP3TS Sandbox: every file is local. */
@font-face { font-family: Nun; src: url('fonts/Nunito.ttf') format('truetype'); font-weight: 200 1000; font-display: swap; }
:root { --cyan:#48D8FC; --blue:#1E6FD9; --deep:#0E2A4A; --gold:#F2C94C; --card:#141B24; --card2:#1C2633; --dim:#9AA7B6; --pink:#FF5C8A; --green:#3EE08F; }
* { box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color:transparent; }
html { -webkit-text-size-adjust:100%; }
/* Apply desk layout before JS so the page never flashes the mobile stack on desktop */
html.desk body, body.desk { height:var(--vvh, 100svh); max-height:var(--vvh, 100svh); min-height:0; overflow:hidden; padding:calc(32px + max(10px, env(safe-area-inset-top))) max(120px, 8vw) max(14px, env(safe-area-inset-bottom)); align-items:stretch; }
.boot {
  position:fixed; inset:0; z-index:9999; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px;
  background:radial-gradient(circle at 30% 10%, #12305a 0, #070b18 55%, #03040a 100%); color:#fff; font-family:Nun,-apple-system,"Segoe UI",Roboto,sans-serif;
}
.boot[hidden] { display:none !important; }
.boot__mark { font-weight:1000; font-size:42px; letter-spacing:-1px; }
.boot__mark span { color:var(--cyan); text-shadow:0 0 22px rgba(72,216,252,.5); }
.boot__bar { width:min(220px, 50vw); height:6px; border-radius:999px; background:#1c2633; overflow:hidden; }
.boot__bar i { display:block; height:100%; width:40%; border-radius:inherit; background:linear-gradient(90deg,#48D8FC,#1E6FD9); animation:bootslide 1.1s ease-in-out infinite; }
.boot__msg { font-size:14px; font-weight:800; color:var(--dim); letter-spacing:.04em; text-transform:uppercase; }
@keyframes bootslide { 0% { transform:translateX(-120%); } 100% { transform:translateX(280%); } }
html.booting body > :not(.boot) { visibility:hidden !important; }
body { min-height:100vh; font-family:Nun,-apple-system,"Segoe UI",Roboto,sans-serif; color:#fff; -webkit-font-smoothing:antialiased;
  background:radial-gradient(circle at 30% 10%, #12305a 0, #070b18 55%, #03040a 100%) fixed; display:flex; flex-direction:column; align-items:center;
  padding:calc(46px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom)); overflow-x:hidden; }
.ticker { position:fixed; top:0; left:0; right:0; z-index:70; height:32px; overflow:hidden; background:#07101c; border-bottom:1px solid #2c3a52; color:var(--gold); font-size:13px; font-weight:800; }
.tickertrack { position:absolute; top:0; left:0; height:32px; display:flex; align-items:center; gap:48px; width:max-content; white-space:nowrap; will-change:transform; animation:ticker 36s linear infinite; -webkit-animation:ticker 36s linear infinite; }
.tickertrack span { padding-left:48px; line-height:32px; }
.livenotes { position:fixed; top:calc(40px + env(safe-area-inset-top)); right:16px; z-index:75; display:flex; flex-direction:column; gap:8px; width:min(320px, calc(100% - 24px)); pointer-events:none; }
.livenote { background:rgba(15,22,34,.96); border:1px solid #2c3a52; border-left:3px solid var(--gold); border-radius:14px; padding:10px 12px; box-shadow:0 10px 28px rgba(0,0,0,.35); animation:livein .25s ease; }
.livenote b { display:block; font-weight:1000; font-size:14px; }
.livenote span { display:block; margin-top:2px; color:var(--dim); font-size:13px; font-weight:800; line-height:1.3; }
@keyframes livein { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
@media (max-width:699px) { .livenotes { left:12px; right:12px; width:auto; } }
@media (prefers-reduced-motion: reduce) { .livenote { animation:none; } }
@keyframes ticker { from { transform:translate3d(0,0,0); } to { transform:translate3d(-50%,0,0); } }
@-webkit-keyframes ticker { from { -webkit-transform:translate3d(0,0,0); } to { -webkit-transform:translate3d(-50%,0,0); } }
button { font:inherit; color:inherit; border:0; background:none; cursor:pointer; }
button:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
.hero { display:flex; align-items:center; gap:12px; max-width:560px; width:100%; margin:28px 0 10px; }
.labs { width:56px; height:56px; flex:none; object-fit:contain; }
h1 { font-weight:1000; font-size:30px; letter-spacing:-.5px; line-height:1; display:flex; align-items:center; gap:8px; }
h1 .logo { font-weight:1000; } h1 .logo span { color:var(--cyan); }
.demo-tag { font-style:normal; font-size:12px; letter-spacing:1.5px; background:var(--gold); color:#000; padding:3px 8px; border-radius:7px; }
.sub { font-size:14px; color:#cdd6e1; margin-top:6px; line-height:1.35; font-weight:600; }
.coin { width:16px; height:16px; vertical-align:-3px; }
main { display:flex; flex-direction:column; align-items:center; width:100%; }

/* watch: designed at the real 45mm size (396x484) and scaled by app.js */
.stagewrap { position:relative; width:452px; height:660px; margin:6px 0 4px; }
.stage { position:absolute; left:0; top:0; width:452px; height:660px; transform-origin:0 0; }
.band { position:absolute; left:91px; width:270px; height:110px; background:var(--case-band,linear-gradient(#1a1f2a,#0c0f16)); border-radius:34px; }
.band.top { top:0; } .band.bottom { bottom:0; }
.case { position:absolute; left:12px; top:72px; width:428px; height:516px; border-radius:96px; padding:16px;
  background:var(--case-bg,linear-gradient(145deg,#4a4f5c,#15171d 55%,#2c3038)); box-shadow:0 30px 70px rgba(0,0,0,.65), 0 0 34px var(--case-glow,transparent), inset 0 0 0 2px var(--case-rim,#5c6170); }
.crown { position:absolute; right:-14px; top:118px; width:36px; height:76px; padding:0; border:0; border-left:16px solid transparent; border-top:6px solid transparent; border-bottom:6px solid transparent; border-radius:8px; background:var(--case-crown,repeating-linear-gradient(#80838d 0 3px,#3a3d46 3px 6px)) padding-box; } /* transparent borders = bigger tap area */
.sidebtn { position:absolute; right:-7px; top:222px; width:9px; height:64px; border-radius:0 5px 5px 0; background:linear-gradient(90deg,#2a2d35,#4a4e59 60%,#2f323a); box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
.screen { position:relative; width:396px; height:484px; border-radius:80px; background:#000; overflow:hidden; user-select:none; -webkit-user-select:none; }

.topbar { position:absolute; top:14px; left:34px; right:34px; height:34px; display:flex; align-items:center; justify-content:space-between; z-index:30; pointer-events:none; }
.ttl { font-weight:800; font-size:25px; color:var(--cyan); max-width:250px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.clock { font-weight:700; font-size:25px; }
.concept { position:absolute; top:52px; left:34px; z-index:30; background:var(--gold); color:#000; font-weight:900; font-size:12px; letter-spacing:1px; padding:2px 8px; border-radius:7px; pointer-events:none; }
.wm { position:absolute; bottom:6px; left:0; right:0; text-align:center; font-size:13px; font-weight:800; color:rgba(255,255,255,.66); z-index:40; pointer-events:none; }
.dots { position:absolute; right:-3px; top:176px; display:flex; flex-direction:column; gap:0; z-index:12; }
.dots button { position:relative; width:38px; height:38px; background:none; padding:0; border-radius:50%; }
.dots button::before { content:''; position:absolute; left:50%; top:50%; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-radius:50%; background:#4a5563; }
.dots button.a::before { background:#fff; height:18px; margin-top:-9px; border-radius:5px; }
.dots button:focus-visible { outline:2px solid var(--cyan); outline-offset:-6px; }

.page { position:absolute; inset:0; display:none; }
.page.on { display:block; }
.page.scroll { -webkit-mask-image:linear-gradient(to bottom,transparent 66px,#000 84px,#000 440px,transparent 458px); mask-image:linear-gradient(to bottom,transparent 66px,#000 84px,#000 440px,transparent 458px); overflow-y:auto; padding:82px 38px 30px 26px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.page.scroll::-webkit-scrollbar { display:none; }

.btn { display:flex; align-items:center; justify-content:center; gap:10px; height:58px; border-radius:30px; font-weight:800; font-size:24px; width:100%; transition:transform .1s; }
.btn:active { transform:scale(.96); }
.btn.small { height:48px; font-size:19px; }
.b-gold { background:var(--gold); color:#000; }
.b-cyan { background:var(--cyan); color:#02131f; }
.b-ghost { background:var(--card2); color:#fff; }
.b-pink { background:rgba(255,92,138,.22); color:var(--pink); }
.b-tcyan { background:rgba(72,216,252,.18); color:var(--cyan); }
.ico { width:28px; height:28px; object-fit:contain; }
.inl { height:1em; vertical-align:-.12em; }
.cap { font-size:18px; color:var(--dim); font-weight:600; line-height:1.2; }
.center { text-align:center; }
.dim { color:var(--dim); } .small { font-size:13px; }
.fine { font-size:12px; font-weight:700; color:var(--dim); margin-top:6px; line-height:1.3; }
.pad { padding:0 34px; }
.row { display:flex; align-items:center; } .sb { justify-content:space-between; }
.c-cyan { color:var(--cyan); } .c-pink { color:var(--pink); } .c-gold { color:var(--gold); }
.bar { height:10px; border-radius:5px; background:#26313f; overflow:hidden; }
.bar.big { height:14px; margin-top:5px; }
.bar i { display:block; height:100%; width:0; border-radius:5px; transition:width .4s; }
.f-cyan { background:var(--cyan); } .f-pink { background:var(--pink); } .f-gold { background:var(--gold); }
.glow { position:absolute; border-radius:50%; filter:blur(18px); pointer-events:none; }

/* launch */
.g-launch { left:88px; top:70px; width:220px; height:160px; background:rgba(72,216,252,.28); }
.launchpet { position:absolute; left:118px; top:64px; width:160px; height:160px; border-radius:34px; object-fit:cover; object-position:50% 50%; box-shadow:0 0 0 4px var(--frame-ring),0 0 30px var(--frame-glow); }
.launchbanana { position:absolute; left:262px; top:162px; width:46px; transform:rotate(18deg); }
.launchtitle { position:absolute; top:234px; left:0; right:0; text-align:center; font-weight:900; font-size:44px; letter-spacing:-.5px; }
.launchtitle span { color:var(--cyan); }
#pg-launch .cap { position:absolute; top:290px; left:0; right:0; }
.launchbtns { position:absolute; left:30px; right:30px; top:326px; display:flex; flex-direction:column; gap:10px; }

/* home */
.moodpill { position:absolute; top:50px; right:34px; z-index:12; background:var(--card2); border-radius:16px; padding:3px 12px; font-weight:800; font-size:18px; }
.g-home { left:70px; top:110px; width:240px; height:200px; background:rgba(30,111,217,.35); }
.shadow { position:absolute; left:113px; top:286px; width:170px; height:20px; border-radius:50%; background:rgba(72,216,252,.25); filter:blur(6px); }
.petwrap { position:absolute; left:113px; top:90px; width:170px; height:170px; animation:bob 2.4s ease-in-out infinite; }
.petimg { display:block; width:100%; height:100%; border-radius:36px; object-fit:cover; object-position:50% 50%; box-shadow:0 0 0 4px var(--frame-ring),0 0 30px var(--frame-glow); transition:filter .6s; background:#000; }
.petwrap.sad { animation-duration:4.5s; }
.petwrap.sad .petimg { filter:saturate(.45) brightness(.8); }
.petwrap.chomp { animation:chomp .3s ease-in-out 4; }
.petwrap.hop { animation:hop .45s ease-out 2; }
.petwrap.shake { animation:shake .15s linear 4; }
@keyframes bob { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-8px) } }
@keyframes chomp { 0%,100% { transform:translateY(0) scaleY(1) } 50% { transform:translateY(-14px) scaleY(.94) } }
@keyframes hop { 0%,100% { transform:translateY(0) rotate(0) } 50% { transform:translateY(-30px) rotate(-6deg) } }
@keyframes shake { 0%,100% { transform:rotate(0) } 25% { transform:rotate(-7deg) } 75% { transform:rotate(7deg) } }
.verified { position:absolute; left:0; right:0; top:274px; text-align:center; font-size:15px; font-weight:900; color:var(--cyan); }
.statgrid { position:absolute; left:30px; right:30px; top:306px; display:grid; grid-template-columns:1fr 1fr 1fr; gap:8px; }
.sc { background:var(--card); border-radius:16px; padding:6px 10px; }
.sl { font-size:14px; font-weight:800; }
.sv { font-size:22px; font-weight:900; line-height:1.1; white-space:nowrap; }
.sv small { font-size:12px; color:var(--dim); font-weight:800; }
.homebtns { position:absolute; left:30px; right:30px; top:388px; display:grid; grid-template-columns:1.2fr 1fr; gap:10px; }
.fx { position:absolute; inset:0; pointer-events:none; z-index:8; overflow:hidden; }
.fx .p { position:absolute; left:0; top:0; font-size:22px; will-change:transform,opacity; }
.fx img.p { width:34px; height:auto; }
.toast { position:absolute; left:50%; top:244px; transform:translateX(-50%); background:rgba(28,38,51,.95); padding:5px 14px; border-radius:20px; font-size:16px; font-weight:900;
  opacity:0; transition:opacity .25s; white-space:nowrap; z-index:9; display:flex; align-items:center; gap:5px; pointer-events:none; }
.toast.show { opacity:1; }
.toast img { width:18px; height:18px; }

/* stats */
.statsbars { display:flex; flex-direction:column; gap:12px; font-size:20px; font-weight:800; }
.card { background:var(--card); border-radius:18px; padding:10px 14px; margin-top:12px; }
.cardh { font-size:17px; font-weight:900; color:var(--cyan); margin-bottom:4px; display:flex; justify-content:space-between; align-items:baseline; }
.trow { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:30px; min-width:0; }
.trow .tk { font-size:16px; color:var(--dim); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:48%; flex:0 0 auto; }
#perkRow { align-items:flex-start; }
#perkRow .tk { max-width:none; }
.trow .tv { text-align:right; font-size:16px; font-weight:800; min-width:0; flex:1 1 auto; display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:baseline; gap:6px; }
.trow .tv b { font-size:12px; margin-left:0; white-space:nowrap; }
.rar-legendary { color:#ffb347; } .rar-rare { color:var(--gold); } .rar-uncommon { color:var(--gold); } .rar-common { color:var(--dim); } .yourlook { color:var(--cyan); }
.look { height:46px; font-size:19px; margin-top:8px; }
.facts { display:flex; flex-direction:column; gap:4px; font-size:18px; font-weight:700; }
.facts .cap { font-size:18px; }

/* pets */
.prow { width:100%; background:var(--card2); border-radius:22px; height:88px; display:flex; align-items:center; padding:0 12px; gap:12px; margin-bottom:9px; text-align:left; }
.prow.on { outline:3px solid var(--cyan); }
.prow.locked { background:#10151c; border:2px solid #232d3a; cursor:default; }
.prow.add { background:#151D28; border:2px dashed #2A3646; }
.pav { width:64px; height:64px; border-radius:50%; background:#000; overflow:hidden; flex:none; position:relative; }
.pav img { width:100%; height:100%; object-fit:cover; }
.pav.lockbg { background:#18202b; }
.pav .lock { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.pn { font-size:21px; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ps { font-size:15px; font-weight:700; color:var(--dim); white-space:nowrap; }
.prow.locked .pn { color:#6f7c8b; } .prow.locked .ps { color:var(--gold); font-weight:800; }
.pcheck { margin-left:auto; width:30px; height:30px; flex:none; border-radius:50%; background:var(--cyan); color:#02131f; font-weight:900; font-size:18px; display:flex; align-items:center; justify-content:center; }
.ptext { flex:1; min-width:0; }

/* balance */
.balbig { position:absolute; top:130px; left:0; right:0; display:flex; align-items:center; justify-content:center; gap:10px; font-size:46px; font-weight:1000; color:var(--cyan); }
.balbig img { width:46px; height:46px; }
#pg-balance .cap { position:absolute; top:196px; left:0; right:0; }
.refill { position:absolute; left:50px; right:50px; width:auto; top:236px; height:50px; font-size:20px; }
#pg-balance .fine { position:absolute; top:300px; left:0; right:0; }
.soon2 { position:absolute; left:50px; right:50px; width:auto; top:372px; }

/* overlays */
.overlay { position:absolute; inset:0; background:#000; z-index:20; display:none; flex-direction:column; padding:76px 26px 30px; }
#ov-feed { overflow-y:auto; }
#walletBal[hidden] { display:none; }
.wallet-bal { margin:8px 16px 0; text-align:center; font-size:15px; font-weight:800; color:#b8ffe4; }
.reservebal { margin:8px 16px 0; text-align:center; font-size:15px; font-weight:800; color:var(--gold); }
.reservebal[hidden] { display:none; }
.overlay.show { display:flex; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.ovhdr { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.close { background:var(--card2); border-radius:16px; padding:4px 14px; font-size:16px; font-weight:900; }
.baltag { margin-left:auto; font-size:15px; font-weight:800; color:var(--dim); display:flex; align-items:center; gap:4px; }
.ovt { font-size:20px; font-weight:900; color:var(--cyan); }
.food { width:100%; background:var(--card2); border-radius:20px; height:80px; display:flex; align-items:center; padding:0 14px; gap:12px; margin-bottom:8px; text-align:left; transition:transform .1s; }
.food:active { transform:scale(.97); }
.food:disabled { opacity:.4; }
.food .fi { width:44px; height:52px; display:flex; align-items:center; justify-content:center; font-size:38px; position:relative; flex:none; }
.food .fi img { width:34px; position:absolute; }
.food .fi img.a { left:0; top:6px; transform:rotate(-14deg); } .food .fi img.b { left:12px; top:2px; transform:rotate(10deg); }
.food .fi img.solo { left:5px; top:0; width:34px; }
.food .fn { flex:1; } .food .fn b { font-size:21px; font-weight:900; display:block; }
.food .fn span { font-size:14px; font-weight:700; color:var(--dim); white-space:nowrap; }
.food .fc { display:flex; align-items:center; gap:4px; font-size:19px; font-weight:900; color:var(--cyan); white-space:nowrap; }
.food .fc img { width:20px; }
.scrollbox { -webkit-mask-image:linear-gradient(to bottom,#000 92%,transparent); mask-image:linear-gradient(to bottom,#000 92%,transparent); overflow-y:auto; flex:1; scrollbar-width:none; padding-right:4px; }
.scrollbox::-webkit-scrollbar { display:none; }
.lgrp { border:2px solid rgba(72,216,252,.55); border-radius:18px; padding:8px; margin-bottom:8px; background:linear-gradient(180deg,rgba(72,216,252,.10),rgba(72,216,252,.02)); }
.lgrp.plain { border-color:#2A3646; background:none; }
.lgh { font-size:14px; font-weight:1000; letter-spacing:1px; color:var(--cyan); margin:0 4px 6px; }
.lgrp.plain .lgh { color:var(--dim); }
.lopt { width:100%; height:44px; display:flex; align-items:center; gap:10px; padding:0 12px; border-radius:14px; background:rgba(72,216,252,.12); font-size:18px; font-weight:900; margin-bottom:5px; text-align:left; }
.lgrp.plain .lopt { background:var(--card2); }
.lopt.on { outline:2.5px solid var(--cyan); }
.lopt .le { font-size:21px; width:26px; text-align:center; }
.lopt .ln { flex:1; }
.lopt .lc { width:24px; height:24px; border-radius:50%; background:var(--cyan); color:#02131f; font-size:14px; display:flex; align-items:center; justify-content:center; }

/* jam */
.overlay.jam { background:radial-gradient(circle at 50% 36%,#14234a 0,#070b1c 50%,#000 78%); padding:88px 30px 30px; align-items:stretch; }
.jamhdr { display:flex; align-items:center; justify-content:space-between; margin:0 8px; height:34px; }
.groove { position:absolute; z-index:31; top:52px; right:30px; background:var(--card2); border-radius:16px; padding:2px 12px; font-size:16px; font-weight:800; }
.jamstage { position:relative; height:160px; flex:none; display:flex; justify-content:center; }
.jamfb { position:relative; height:32px; flex:none; margin-top:8px; display:flex; align-items:center; justify-content:center; }
.jampet { display:block; flex:none; width:160px; height:160px; padding:0; border:0; border-radius:34px; overflow:hidden; box-shadow:0 0 0 4px var(--frame-ring),0 0 30px var(--frame-glow); background:#000; transition:transform .08s; }
.jampet img { width:100%; height:100%; object-fit:cover; object-position:50% 50%; display:block; border-radius:inherit; }
.jampet.beat { transform:scale(1.06); }
.notes { position:absolute; inset:-20px -10px; pointer-events:none; }
.notes span { position:absolute; font-size:30px; }
.eq { display:flex; justify-content:center; align-items:flex-end; gap:7px; height:40px; flex:none; margin-top:6px; overflow:hidden; }
.eq i { width:13px; height:12px; border-radius:3px; background:var(--cyan); transition:height .12s; }
.eq i:nth-child(odd) { background:var(--gold); }
.jammood { margin-top:8px; flex:none; font-size:17px; font-weight:900; padding:6px 14px 8px; }
.overlay.jam #jamTxt { margin-top:5px; }
.overlay.jam .longhint { margin-top:0; }

/* level up */
.overlay.levelup { background:radial-gradient(circle at 50% 30%,#3a2d05 0,#120d00 50%,#000 80%); align-items:center; padding-top:40px; }
.rays { position:absolute; left:50%; top:150px; width:700px; height:700px; margin:-350px 0 0 -350px; pointer-events:none;
  background:repeating-conic-gradient(rgba(242,201,76,.13) 0 6deg, transparent 6deg 30deg); border-radius:50%; animation:spin 12s linear infinite; }
@keyframes spin { to { transform:rotate(360deg) } }
.lvhdr { position:relative; font-size:20px; font-weight:1000; letter-spacing:3px; color:var(--gold); margin-top:18px; }
.lvbadge { position:relative; width:96px; height:96px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff3b0,#F2C94C 45%,#b8860b); color:#3a2c00;
  font-size:54px; font-weight:1000; display:flex; align-items:center; justify-content:center; margin-top:6px; box-shadow:0 0 30px rgba(242,201,76,.6); animation:pop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform:scale(.3) } to { transform:scale(1) } }
.lvpet { position:relative; width:110px; height:110px; border-radius:26px; object-fit:cover; margin-top:10px; box-shadow:0 0 0 3px var(--gold); }
.lvtxt { position:relative; font-size:20px; font-weight:900; margin:8px 0 10px; }
.levelup .btn { position:relative; width:220px; height:52px; font-size:22px; }

/* sandbox sheet */
.soonov { align-items:center; justify-content:center; padding:40px 26px 40px; }
.soonicon { font-size:54px; }
.soont { font-size:24px; font-weight:1000; margin:6px 0 2px; color:var(--cyan); }
.soonov .pad { padding:0 10px; margin-bottom:14px; font-size:14px; }
.soonov .btn { width:220px; height:52px; }

/* outside the watch */
.tabs { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; margin-top:4px; }
.tabs button, .controls button { background:#141b28; border:1px solid #2c3a52; color:#dfe7f1; padding:8px 12px; border-radius:12px; font-size:14px; font-weight:800; }
.tabs button.a { background:rgba(72,216,252,.18); border-color:var(--cyan); color:var(--cyan); }
.controls { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; margin-top:10px; max-width:560px; }
.controls button[aria-pressed="true"] { border-color:var(--gold); color:var(--gold); }
.how { max-width:560px; width:100%; margin-top:18px; background:rgba(20,27,36,.7); border:1px solid #223047; border-radius:16px; padding:14px 18px; }
.how h2 { font-size:18px; font-weight:1000; color:var(--cyan); margin-bottom:6px; }
.how ol { padding-left:20px; font-size:14px; line-height:1.5; color:#d3dce7; }
.muted { font-size:12px; color:var(--dim); margin-top:6px; }
.foot { margin-top:12px; text-align:center; max-width:560px; }
.betaline { width:100%; max-width:560px; margin-top:18px; text-align:center; font-size:14px; font-weight:900; color:var(--gold); }
.homestack { display:flex; flex-direction:column; align-items:center; width:100%; }
.sidecol { display:contents; }

@media (min-width: 900px) {
  main { display:grid; grid-template-columns:auto 360px; grid-template-areas:"watch how" "tabs how" "controls how"; column-gap:34px; align-items:start; width:auto; }
  .stagewrap { grid-area:watch; } .tabs { grid-area:tabs; } .controls { grid-area:controls; }
  .how { grid-area:how; margin-top:80px; }
  .hero { max-width:860px; }
}
/* eating */
.petchomp { width:100%; height:100%; transform-origin:50% 90%; will-change:transform; }
.eatlayer { position:absolute; inset:0; pointer-events:none; z-index:9; overflow:hidden; }
.eatitem { position:absolute; left:0; top:0; will-change:transform,opacity; filter:drop-shadow(0 6px 10px rgba(0,0,0,.45)) drop-shadow(0 0 10px rgba(72,216,252,.35)); }
.eatinner { will-change:transform; }
.eatitem svg { display:block; overflow:visible; }
.crumb { position:absolute; left:0; top:0; width:7px; height:7px; margin:-3px 0 0 -3px; border-radius:1px; will-change:transform,opacity; }
.crumb.c0 { background:#48D8FC; } .crumb.c1 { background:#B9F3FF; } .crumb.c2 { background:#1E6FD9; width:5px; height:5px; } .crumb.c3 { background:#FFF6D8; width:5px; height:5px; }
.spark { position:absolute; left:0; top:0; width:16px; height:16px; margin:-8px 0 0 -8px; background:#B9F3FF; clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); filter:drop-shadow(0 0 4px #48D8FC); will-change:transform,opacity; }
.confetti { position:absolute; left:0; top:0; width:8px; height:13px; border-radius:2px; will-change:transform,opacity; }
.confetti.k0 { background:#48D8FC; } .confetti.k1 { background:#F2C94C; } .confetti.k2 { background:#FF5C8A; } .confetti.k3 { background:#fff; } .confetti.k4 { background:#1E6FD9; }
.eatring { position:absolute; width:210px; height:210px; border-radius:50%; border:6px solid #48D8FC; box-shadow:0 0 24px #48D8FC, inset 0 0 24px rgba(72,216,252,.6); will-change:transform,opacity; }
.eatpop { position:absolute; left:0; top:0; white-space:nowrap; font-size:22px; font-weight:1000; color:#48D8FC; text-shadow:0 2px 0 #02131f, 0 0 12px rgba(72,216,252,.8); will-change:transform,opacity; }
.eatpop.big { font-size:34px; color:#fff; text-shadow:0 3px 0 #1E6FD9, 0 0 16px #48D8FC; }
.btn:disabled { opacity:.45; cursor:default; transform:none; }
.food .fi svg { width:52px; height:52px; }
@media (prefers-reduced-motion: reduce) { .petwrap, .rays { animation:none !important; } }

/* ===== views ===== */
.view { display:none; width:100%; flex-direction:column; align-items:center; transition:opacity .32s ease, transform .32s ease; }
.view.on { display:flex; }
.view.leaving { opacity:0; transform:scale(.96) translateY(-10px); }
.view.entering { opacity:0; transform:translateY(16px); }
.gamebar { width:100%; max-width:860px; display:flex; justify-content:flex-start; margin-top:4px; }
.homebtn, .hometab { background:#141b28; border:1px solid #2c3a52; color:#dfe7f1; padding:8px 14px; border-radius:12px; font-size:14px; font-weight:900; }
.hometab { color:var(--cyan); border-color:rgba(72,216,252,.5); }

/* ===== home screen ===== */
.homeview { position:relative; max-width:720px; padding:34px 0 6px; }
.bgfx { position:fixed; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.blob { position:absolute; width:520px; height:520px; border-radius:50%; filter:blur(60px); opacity:.45; will-change:transform; }
.blob.b1 { left:-160px; top:-120px; background:radial-gradient(circle,#1E6FD9,transparent 65%); animation:drift1 18s ease-in-out infinite alternate; }
.blob.b2 { right:-180px; top:120px; background:radial-gradient(circle,#48D8FC,transparent 65%); opacity:.28; animation:drift2 22s ease-in-out infinite alternate; }
.blob.b3 { left:20%; bottom:-260px; background:radial-gradient(circle,#9945FF,transparent 65%); opacity:.25; animation:drift1 26s ease-in-out infinite alternate-reverse; }
.stars { position:absolute; inset:-50%; background-image:radial-gradient(1.5px 1.5px at 20px 30px,rgba(255,255,255,.55),transparent 60%),radial-gradient(1px 1px at 120px 80px,rgba(185,243,255,.6),transparent 60%),radial-gradient(1.5px 1.5px at 200px 160px,rgba(255,255,255,.35),transparent 60%);
  background-size:240px 200px; animation:starsmove 60s linear infinite; opacity:.7; }
@keyframes drift1 { to { transform:translate(120px,80px) scale(1.15); } }
@keyframes drift2 { to { transform:translate(-100px,60px) scale(.9); } }
@keyframes starsmove { to { transform:translate(240px,200px); } }
.hhead { text-align:center; display:flex; flex-direction:column; align-items:center; padding:0 16px; }
.hlabs { width:56px; height:56px; flex:none; object-fit:contain; filter:drop-shadow(0 0 14px rgba(72,216,252,.45)); }
.hword { display:flex; align-items:center; justify-content:center; gap:12px; margin:0; flex-wrap:wrap; }
.wmark { font-weight:1000; font-size:46px; letter-spacing:-1px; line-height:1; }
.wmark b { color:var(--cyan); font-weight:1000; text-shadow:0 0 22px rgba(72,216,252,.5); }
.beta-tag, .demo-tag { font-style:normal; font-size:12px; letter-spacing:1.5px; background:var(--gold); color:#000; padding:3px 8px; border-radius:7px; font-weight:900; }
.htag { margin-top:14px; font-size:15px; line-height:1.45; color:#cdd6e1; font-weight:700; max-width:460px; }
.carwrap { position:relative; width:100%; margin-top:18px; }
.carousel { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; padding:14px calc(50% - 92px) 18px; scrollbar-width:none; -webkit-overflow-scrolling:touch; outline:none; cursor:grab; }
.carousel::-webkit-scrollbar { display:none; }
.carousel.dragging { cursor:grabbing; scroll-snap-type:none; }
.carousel:focus-visible { box-shadow:inset 0 0 0 2px rgba(72,216,252,.5); border-radius:20px; }
.pcard { flex:none; width:184px; scroll-snap-align:center; background:linear-gradient(180deg,rgba(28,38,51,.95),rgba(16,22,32,.95)); border:2px solid #263346; border-radius:24px; padding:12px 12px 12px; text-align:center; position:relative; transition:transform .2s, border-color .2s, box-shadow .2s; }
.pcard:hover { transform:translateY(-3px); }
.pcard.on { border-color:var(--cyan); box-shadow:0 0 0 2px rgba(72,216,252,.25), 0 10px 30px rgba(30,111,217,.35); }
.pcart { width:150px; height:150px; margin:0 auto; border-radius:30px; overflow:hidden; background:#000; position:relative; animation:cbob 3s ease-in-out infinite; animation-delay:var(--bob, 0s); }
.pcart img { width:100%; height:100%; object-fit:cover; display:block; user-select:none; -webkit-user-drag:none; }
.pcfallback { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:64px; font-weight:1000; color:var(--gold); }
@keyframes cbob { 0%,100% { transform:translateY(0) } 50% { transform:translateY(-6px) } }
.pcname { margin-top:10px; font-size:18px; font-weight:1000; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pcsub { font-size:12.5px; font-weight:800; color:var(--dim); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pcsub.gold { color:var(--gold); }
.pchunger { display:flex; align-items:center; gap:6px; margin-top:8px; font-size:12px; font-weight:900; color:var(--cyan); }
.pchunger .bar { flex:1; height:8px; }
.pcbadge { position:absolute; top:-10px; left:50%; transform:translateX(-50%); background:var(--cyan); color:#02131f; font-size:11px; font-weight:1000; padding:2px 10px; border-radius:10px; letter-spacing:.5px; }
.pcard.locked { background:#0d1219; border-color:#232d3a; }
.pcard.locked .pcart { background:#18202b; animation:none; }
.pcard.locked .pcart img { opacity:.9; }
.pcard.locked .pcname { color:#6f7c8b; }
.pclock { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; animation:lockw 4s ease-in-out infinite; }
@keyframes lockw { 0%,80%,100% { transform:rotate(0) } 84% { transform:rotate(-12deg) } 88% { transform:rotate(10deg) } 92% { transform:rotate(-6deg) } }
.carnav { position:absolute; top:50%; z-index:3; width:40px; height:40px; margin-top:-26px; border-radius:50%; background:rgba(20,27,40,.9); border:1px solid #2c3a52; color:#fff; font-size:26px; font-weight:900; line-height:1; display:flex; align-items:center; justify-content:center; }
.carnav.prev { left:8px; } .carnav.next { right:8px; }
.carstatus { font-size:13px; font-weight:800; color:var(--dim); margin-top:2px; text-align:center; padding:0 16px; }
.playbtn { margin-top:14px; min-width:260px; max-width:92vw; height:64px; border-radius:34px; padding:0 28px; background:linear-gradient(180deg,#7fe6ff,#48D8FC 50%,#1E9FE0); color:#02131f; font-size:24px; font-weight:1000;
  box-shadow:0 10px 30px rgba(72,216,252,.35), inset 0 -3px 0 rgba(0,0,0,.15); transition:transform .12s; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; animation:pulseglow 2.4s ease-in-out infinite; }
.playbtn:active { transform:scale(.97); }
@keyframes pulseglow { 0%,100% { box-shadow:0 10px 30px rgba(72,216,252,.30), inset 0 -3px 0 rgba(0,0,0,.15) } 50% { box-shadow:0 10px 44px rgba(72,216,252,.55), inset 0 -3px 0 rgba(0,0,0,.15) } }
.hbtns { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:14px; padding:0 12px; }
.acctpair { flex:1 0 100%; display:grid; grid-template-columns:minmax(0,max-content); justify-content:center; justify-items:stretch; gap:8px; max-width:100%; }
.discordrow { display:flex; align-items:center; justify-content:center; gap:8px; min-width:0; height:44px; min-height:44px; padding:0 14px; border-radius:14px; border:1px solid #2c3a52; background:#141b28; color:#dfe7f1; font-size:14px; font-weight:1000; text-align:center; }
.discordrow .discordmark { width:22px; height:22px; }
.discordrow .discordmark svg { width:20px; height:20px; }
.discordrow img { width:28px; height:28px; }
.discordrow.out { background:#5865F2; border-color:#5865F2; color:#fff; }
.discordrow.out .discordmark { color:#fff; }
.discordrow img { width:36px; height:36px; border-radius:50%; object-fit:cover; background:#0e141e; flex:none; }
.discordmark { width:36px; height:36px; flex:none; display:flex; align-items:center; justify-content:center; color:#5865F2; }
.discordmark svg { width:28px; height:28px; display:block; }
.sheethead h2 .discordmark { width:24px; height:24px; }
.sheethead h2 .discordmark svg { width:22px; height:22px; }
.toolrow { flex:1 0 100%; display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.moderow { flex:1 0 100%; display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }
.moderow .modeseg button { padding-left:10px; padding-right:10px; }
.toksw { display:inline-flex; align-items:center; gap:6px; height:44px; padding:0 2px; background:none; color:var(--dim); font-size:12px; font-weight:900; letter-spacing:.2px; }
.toksw[hidden] { display:none !important; }
.toksw-track { width:40px; height:22px; border-radius:999px; background:#0e141e; border:1px solid #2c3a52; position:relative; flex:none; }
.toksw-thumb { position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#9aa7b6; transition:transform .15s ease; }
.toksw.on .toksw-thumb { transform:translateX(18px); background:var(--cyan); }
.toksw.on .toksw-track { border-color:var(--cyan); }
.toksw span.on { color:var(--cyan); }
.discordrow span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dhead { display:flex; align-items:center; gap:12px; }
.dhead img { width:56px; height:56px; border-radius:50%; object-fit:cover; background:#0e141e; flex:none; }
.dhead b { display:block; font-weight:1000; }
.dhead small { display:block; color:var(--dim); font-weight:800; }
.dwallet { display:flex; align-items:center; gap:8px; margin-top:8px; padding:8px 10px; border-radius:14px; background:#141b28; border:1px solid #2c3a52; }
.dwallet b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:1000; }
.dwallet button { flex:none; min-height:36px; padding:0 12px; border-radius:12px; background:#0e141e; border:1px solid #2c3a52; color:#dfe7f1; font-weight:900; }
.hb { background:#141b28; border:1px solid #2c3a52; color:#dfe7f1; padding:9px 14px; border-radius:14px; font-size:14px; font-weight:900; }
.hb[aria-pressed="true"] { border-color:var(--gold); color:var(--gold); }
.modeseg { display:flex; background:#0e141e; border:1px solid #2c3a52; border-radius:14px; padding:3px; }
.modeseg button { padding:6px 14px; border-radius:11px; font-size:14px; font-weight:900; color:var(--dim); }
.modeseg button.a { background:var(--cyan); color:#02131f; }
.modenote { font-size:12.5px; font-weight:700; color:var(--dim); margin-top:8px; text-align:center; padding:0 18px; }
.looksrow { display:flex; align-items:center; gap:12px; width:calc(100% - 32px); max-width:460px; margin-top:14px; padding:12px 14px; border-radius:18px; border:2px dashed #2A3646; background:rgba(20,27,36,.6); opacity:.85; }
.looksrow .lk { font-size:26px; } .looksrow small { color:var(--dim); font-weight:700; } .looksrow b { font-weight:1000; }
.soonpill { margin-left:auto; background:rgba(242,201,76,.15); color:var(--gold); font-size:11px; font-weight:1000; padding:3px 9px; border-radius:9px; letter-spacing:.5px; }
.htoast { position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom)); transform:translateX(-50%) translateY(20px); background:rgba(28,38,51,.97); border:1px solid #2c3a52; padding:8px 16px; border-radius:20px; font-size:14px; font-weight:900; opacity:0; transition:opacity .25s, transform .25s; pointer-events:none; z-index:80; white-space:nowrap; }
.htoast.show { opacity:1; transform:translateX(-50%) translateY(0); }
/* sheets */
.sheetbg { position:fixed; inset:0; background:rgba(0,0,0,.55); opacity:0; pointer-events:none; transition:opacity .25s; z-index:90; }
.sheetbg.show { opacity:1; pointer-events:auto; }
.sheet { position:fixed; left:50%; top:50%; bottom:auto; width:min(560px, calc(100% - 24px)); max-height:calc(var(--vvh, 100dvh) - 24px); display:flex; flex-direction:column; overflow:hidden; transform:translate(-50%, -50%); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s, visibility 0s linear .25s; z-index:91;
  background:#0f1622; border:1px solid #26334a; border-radius:22px; padding:16px 18px 18px; box-shadow:0 24px 70px rgba(0,0,0,.55); }
.sheet.show { opacity:1; visibility:visible; pointer-events:auto; transition:opacity .25s, visibility 0s; }
.sheethead { display:flex; align-items:center; justify-content:space-between; flex:none; margin-bottom:8px; }
.sheetbody { flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.sheethead h2 { display:flex; align-items:center; gap:8px; font-size:20px; font-weight:1000; color:var(--cyan); }
.sheetx { background:var(--card2); border-radius:14px; padding:4px 12px; font-weight:900; }
.sheetbody p { font-size:14.5px; line-height:1.45; color:#d3dce7; margin:6px 0; font-weight:600; }
.sheetbody ol, .sheetbody ul { padding-left:20px; font-size:14.5px; line-height:1.5; color:#d3dce7; }
.sheetbody li { margin:4px 0; }
.sheetbody .sbtn { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:50px; border-radius:26px; font-weight:1000; font-size:17px; margin-top:10px; background:var(--card2); color:#fff; text-decoration:none; }
.sheetbody .sbtn.primary { background:var(--cyan); color:#02131f; }
.sheetbody .sbtn:disabled { opacity:.45; }
.sheetbody .modeseg { width:100%; margin-top:8px; }
.sheetbody .modeseg button { flex:1; }
.sheetbody .ranknote, .sheetbody .ranknote p { margin:10px 0 0; text-align:center; font-size:13px; font-weight:700; color:var(--dim); }
.sheetbody .ranklist { list-style:none; margin:10px 0 0; padding:0; display:flex; flex-direction:column; gap:8px; }
.rankrow { display:grid; grid-template-columns:32px 44px minmax(0,1fr) auto; align-items:center; gap:8px; margin:0; padding:8px; border-radius:16px; background:#141b28; border:1px solid #2c3a52; }
.rankrow.me { border-color:var(--cyan); }
.rankn { text-align:center; font-weight:1000; color:var(--dim); }
.rankpic { width:44px; height:44px; border-radius:12px; overflow:hidden; background:#0e141e; display:flex; align-items:center; justify-content:center; font-size:22px; }
.rankpic img { width:100%; height:100%; object-fit:cover; display:block; }
.rankwho { min-width:0; }
.rankwho b { display:block; font-weight:1000; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ranksub { display:block; font-size:12.5px; font-weight:700; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rankscore { text-align:right; line-height:1.15; }
.rankscore b { color:var(--gold); font-weight:1000; }
.rankscore small { display:block; font-size:11px; font-weight:800; color:var(--dim); }
.ranklist + .rankrow { margin-top:8px; }
@media (prefers-reduced-motion: reduce) { .blob, .stars, .pcart, .pclock, .playbtn { animation:none !important; } .view, .sheet { transition:none !important; } }
@media (min-width: 900px) { .homeview { padding-top:46px; } .wmark { font-size:56px; } .carousel { padding-left:calc(50% - 92px); padding-right:calc(50% - 92px); } }
.carousel { -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent); mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent); }
@media (min-width: 900px) { .homeview { max-width:980px; } }
/* small speaker toggles (sound is off by default) */
.spk { position:absolute; z-index:32; width:30px; height:30px; border-radius:50%; background:rgba(28,38,51,.9); border:1px solid #2c3a52; font-size:15px; line-height:1; display:flex; align-items:center; justify-content:center; padding:0; }
.spk[aria-pressed="true"] { border-color:var(--cyan); box-shadow:0 0 10px rgba(72,216,252,.45); }
.spkhome { position:absolute; top:calc(8px + env(safe-area-inset-top)); left:10px; width:36px; height:36px; font-size:17px; z-index:51; }

/* FAQ */
.faq details { border-bottom:1px solid #223047; padding:4px 0; }
.faq summary { cursor:pointer; list-style:none; font-weight:900; font-size:15px; color:#eef4fb; padding:10px 26px 10px 2px; position:relative; min-height:24px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:'+'; position:absolute; right:4px; top:8px; color:var(--cyan); font-size:18px; }
.faq details[open] summary::after { content:'–'; }
.faq summary:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; border-radius:6px; }
.faq p { margin:0 0 10px 2px; overflow-wrap:anywhere; }

/* Wallet mode */
.boostbtn { display:block; margin:10px auto 0; opacity:.75; font-size:13px; }
.boostbtn[hidden] { display:none; }
.boostbtn:disabled { cursor:not-allowed; }
.realfeed { margin-top:10px; padding-top:10px; border-top:1px dashed #2c3a52; }
.rfhead { font-size:13px; font-weight:1000; color:var(--gold); margin-bottom:6px; letter-spacing:.3px; }
.rfnote { font-size:13px; color:#9fb0c4; margin:6px 0 0; font-weight:700; }
.food.rfoff { opacity:.55; cursor:not-allowed; width:100%; justify-content:center; }
.pcard.addcard .pcfallback { font-size:42px; }
.burnimg { display:block; width:120px; height:120px; object-fit:cover; border-radius:16px; margin:6px auto; }

.food .tryit { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:9px; background:var(--gold); color:#2a1f00; font-style:normal; font-size:11px; font-weight:1000; vertical-align:2px; }

h1.hword { margin:0; font-size:inherit; font-weight:inherit; }

/* wallet connect switched off */
.hb.offpill, .modeseg button.offpill { opacity:.6; cursor:not-allowed; }
.hb.offpill { border-style:dashed; }
.modeseg button.offpill { font-size:12px; padding:6px 10px; }

/* instrument unlocks */
.lopt.locked { opacity:.6; }
.lopt .lul { margin-left:auto; font-size:11px; font-weight:900; color:var(--gold); }
.lvunlock { margin:4px 0 8px; font-size:16px; font-weight:1000; color:var(--gold); text-align:center; }
.lvunlock[hidden] { display:none; }

/* long jam */
.jamch { display:flex; flex-direction:column; gap:10px; padding:18px 14px; }
.jamch .btn:disabled { opacity:.5; cursor:not-allowed; }
.longhint { color:var(--gold); margin-top:2px; }
.longhint[hidden] { display:none; }

/* ===== Full play view (My NFTs -> tap a pet). Same screen, no watch case, taller stage, bigger pet. ===== */
.gamebar { gap:6px; flex-wrap:wrap; align-items:center; }
.fullpet { font-size:13px; font-weight:900; color:var(--dim); margin-left:auto; display:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:46vw; }
.gameview.full .fullpet { display:block; }
.gameview.full .hero { display:none; }
.gameview.full .stage { width:396px; height:700px; }
/* M13: Full view keeps the watch case (bands, crown, side button) - see the M13 Full view block at the end */
.gameview.full .case { left:0; top:0; width:396px; height:700px; padding:0; border-radius:30px; background:none; box-shadow:none; border:0; }
.gameview.full .screen { width:396px; height:700px; border-radius:30px; box-shadow:0 0 0 2px #22324a, 0 18px 50px rgba(0,0,0,.55); }
.gameview.full .dots { top:250px; }
.gameview.full .petwrap { left:70px; top:94px; width:256px; height:256px; }
.gameview.full .petimg { border-radius:54px; }
.gameview.full .shadow { left:80px; top:366px; width:236px; height:22px; }
.gameview.full .g-home { left:48px; top:100px; width:300px; height:260px; }
.gameview.full .verified { top:400px; }
.gameview.full .toast { top:340px; }
.gameview.full .statgrid { top:436px; }
.gameview.full .fullinfo { display:block; }
.gameview.full .homebtns { top:560px; }
.gameview.full .homebtns .btn { height:64px; font-size:22px; }
.fullinfo { display:none; position:absolute; left:30px; right:30px; top:520px; text-align:center; font-size:15px; font-weight:900; color:var(--gold); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gameview.full .page.scroll { -webkit-mask-image:linear-gradient(to bottom,transparent 66px,#000 84px,#000 650px,transparent 672px); mask-image:linear-gradient(to bottom,transparent 66px,#000 84px,#000 650px,transparent 672px); padding-bottom:50px; }
.gameview.full:not(.fold-h):not(.fold-v) .jamstage { height:250px; }
.gameview.full:not(.fold-h):not(.fold-v) .jampet { width:250px; height:250px; border-radius:52px; }
.gameview.full:not(.fold-h):not(.fold-v) .lvpet { width:180px; height:180px; border-radius:36px; margin-top:16px; }
.gameview.full:not(.fold-h):not(.fold-v) .levelup .lvbadge { width:120px; height:120px; font-size:64px; }
.gameview.full:not(.fold-h):not(.fold-v) .rays { top:210px; }
.gameview.full .wm { bottom:10px; }
.origtag { color:var(--pink); }
.rarbox .fine { margin-top:4px; }

/* ===== My NFTs view ===== */
.nftsview { max-width:980px; padding:6px 0 10px; }
.nftbar { width:100%; display:flex; align-items:center; gap:12px; }
.nfth { font-size:24px; font-weight:1000; color:var(--cyan); }
.nftnote { width:100%; margin:8px 2px 6px; color:#c9d4e2; font-size:14px; font-weight:700; }
.chips { width:100%; display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.chip { background:#141b28; border:1px solid #2c3a52; color:#dfe7f1; padding:8px 14px; border-radius:20px; font-size:14px; font-weight:900; min-height:40px; }
.chip.a { background:rgba(72,216,252,.18); border-color:var(--cyan); color:var(--cyan); }
.nftgrid { width:100%; display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
@media (max-width: 420px) { .nftgrid { grid-template-columns:1fr 1fr; gap:10px; } }
.ncard { background:linear-gradient(180deg,rgba(28,38,51,.95),rgba(16,22,32,.95)); border:2px solid #263346; border-radius:22px; padding:10px; text-align:center; min-width:0; }
.ncard.on { border-color:var(--cyan); box-shadow:0 0 18px rgba(72,216,252,.35); }
.nart { position:relative; width:100%; aspect-ratio:1/1; border-radius:18px; overflow:hidden; background:#000; }
.nart img { width:100%; height:100%; object-fit:cover; display:block; }
.ntier { position:absolute; left:6px; top:6px; background:rgba(0,0,0,.72); padding:2px 8px; border-radius:10px; font-size:12px; font-weight:900; }
.nname { margin-top:8px; font-weight:1000; font-size:16px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nsub { font-size:13px; color:var(--dim); font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nftempty { grid-column:1/-1; color:var(--dim); font-weight:800; padding:20px 4px; }
.wm2 { margin-top:16px; font-size:13px; font-weight:800; color:rgba(255,255,255,.66); }
.nftsbtn { margin-top:10px; }
@media (prefers-reduced-motion: reduce) { .gameview.full .petwrap { animation:none !important; } }
@media (max-width: 600px) { .gamebar, .nftbar { margin-top:30px; } }
.modeseg[hidden], .hb[hidden], .btn[hidden] { display:none !important; } /* wallet controls hidden while WALLET_CONNECT_ENABLED is false */

/* Jam: 'Tap your pet to jam!' prompt. Sits over the bottom edge of the pet picture (inside the jam stage), so it never
   reaches the button bar or the credit badge. Tapping the bubble counts as tapping the picture (app.js). */
.jamtap { position:absolute; left:50%; top:50%; margin-top:-15px; transform:translateX(-50%); z-index:3; cursor:pointer; user-select:none; -webkit-user-select:none; white-space:nowrap;
  background:var(--gold); color:#000; font-weight:900; font-size:13px; line-height:18px; padding:6px 14px; border-radius:16px;
  box-shadow:0 4px 14px rgba(0,0,0,.5), 0 0 0 2px rgba(0,0,0,.25); animation:jamtapPulse 1.2s ease-in-out infinite; }
.jamtap::before { content:''; position:absolute; left:50%; top:-7px; margin-left:-7px; border:7px solid transparent; border-top:0; border-bottom-color:var(--gold); }
.jamtap[hidden] { display:none; }
.jamtap-hand { display:inline-block; animation:jamtapHand 1.2s ease-in-out infinite; }
@keyframes jamtapPulse { 0%,100% { transform:translateX(-50%) scale(1); } 50% { transform:translateX(-50%) scale(1.08); } }
@keyframes jamtapHand { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-4px); } }
.gameview.full:not(.fold-h):not(.fold-v) .jamtap { font-size:15px; padding:8px 16px; margin-top:-17px; }
@media (prefers-reduced-motion: reduce) { .jamtap, .jamtap-hand { animation:none; } }

/* Beta 1.01: social links */
.socials { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top:12px; }
.soc { display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.22); color:#fff; font-weight:800; font-size:14px; text-decoration:none; }
.soc:hover, .soc:focus-visible { border-color:var(--cyan); color:var(--cyan); }

/* M11: smoother wallet connect (spinner while connecting / looking, empty-wallet card, Open in Solflare) */
.pcard.addcard .spin { width:44px; height:44px; border-radius:50%; border:5px solid rgba(72,216,252,.22); border-top-color:var(--cyan); animation:blspin .8s linear infinite; }
.pcard.addcard.busy .pcart, .pcard.addcard.emptycard .pcart { display:flex; align-items:center; justify-content:center; }
@keyframes blspin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pcard.addcard .spin { animation-duration:2.4s; } }
.pcard.emptycard .emptyrow { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.pcard.emptycard .mini { background:#141b28; border:1px solid #2c3a52; color:#dfe7f1; border-radius:12px; padding:7px 8px; font-size:12.5px; font-weight:900; min-height:34px; touch-action:manipulation; }
#tryStarter { border-color:var(--gold); color:var(--gold); }
#connectBtn { touch-action:manipulation; display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#F2C94C; border-color:#E0B43A; color:#1a1400; }
#connectBtn .wico { width:20px; height:20px; flex:none; display:block; }
#connectBtn.busy { opacity:.75; pointer-events:none; }
.pcard.addcard { min-height:255px; } /* same height as a pet card: no jump when 'Finding pets…' turns into your pets */
.pcard.emptycard .pcart { height:92px; width:120px; border-radius:24px; }
.pcard.emptycard .pcfallback { font-size:34px; }
.pcard.emptycard .emptyrow { margin-top:6px; }
/* ===== Watch cases (config.js WATCH_CASES). Colours come from the config as CSS variables on #stage; motifs live here. ===== */
.casefx { position:absolute; left:0; top:0; width:452px; height:660px; pointer-events:none; z-index:2; overflow:visible; }
.casefx > g { display:none; } /* M13: only the motif groups; their inner groups (fxtop/fxbot/tw) follow them */
.stage[data-motif="drip"] .casefx .fx-drip, .stage[data-motif="slime"] .casefx .fx-slime { display:inline; }
.stage[data-motif="drip"] .casefx .fx-drip { filter:drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.stage[data-motif="slime"] .casefx .fx-slime { filter:drop-shadow(0 0 5px rgba(124,255,58,.45)); }
.caselogo { position:absolute; left:198px; top:6px; width:56px; height:56px; border-radius:50%; z-index:1; object-fit:cover; pointer-events:none;
  background:radial-gradient(circle,#103a6e,#061533); box-shadow:0 0 0 3px var(--case-rim,#5c6170), 0 0 16px var(--case-glow,transparent); }
.caselogo[hidden] { display:none; }
.stage[data-motif="drip"] .caselogo { padding:7px; }
.stage[data-motif="slime"] .caselogo { background:#050805; }
.stage[data-motif] .case::after { content:''; position:absolute; inset:7px; border-radius:89px; pointer-events:none; box-shadow:inset 0 0 0 1px var(--case-accent,transparent); opacity:.55; }
.stage[data-motif="slime"] .case::after { box-shadow:inset 0 0 0 1px rgba(124,255,58,.5); }
/* full view has no case; the theme shows as a glowing ring around the screen */
.gameview.full .stage[data-motif] .screen { box-shadow:0 0 0 3px var(--case-rim,#22324a), 0 0 26px var(--case-glow,transparent), 0 18px 50px rgba(0,0,0,.55); }
/* case picker (Looks) */
.casepick { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:6px 0 4px; }
.caseopt { display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 8px; border-radius:16px; background:#141b28; border:2px solid #2c3a52; color:#dfe7f1; font-weight:900; font-size:14px; }
.caseopt.on { border-color:var(--cyan); background:rgba(72,216,252,.12); }
.caseopt.locked { opacity:.75; }
.caseopt .sw { width:64px; height:76px; border-radius:20px; box-shadow:inset 0 0 0 3px #5c6170, 0 4px 12px rgba(0,0,0,.5); position:relative; }
.caseopt .sw::after { content:''; position:absolute; inset:9px 8px; border-radius:13px; background:#000; }
.caseopt .cl { font-size:12px; color:var(--gold); font-weight:900; }
.caseopt .cs { font-size:12px; color:var(--cyan); }
/* ===== Beta 1.01: one navigation bar. Bottom nav = one row on a phone (icon over label); top bar = pet name + view toggle only. ===== */
.tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; width:100%; max-width:460px; flex-wrap:nowrap; }
.tabs button, .tabs .hometab { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; padding:6px 2px; font-size:12px; line-height:1.15; min-height:48px; min-width:0; border-radius:12px; }
.tabs button span { font-size:17px; line-height:1; }
.gamebar { justify-content:space-between; }
.gamebar .fullpet { display:block; margin-left:0; color:var(--dim); }
.nftsrow { display:block; width:calc(100% - 40px); margin:4px auto 8px; }
button.looksrow { font:inherit; color:inherit; text-align:left; cursor:pointer; border-style:solid; border-color:#2c3a52; }
button.looksrow .soonpill { background:rgba(72,216,252,.15); color:var(--cyan); }

/* Jam beat play (B1.01): beat marker, judged pop, tap-driven bars */
.beatbar { display:flex; justify-content:center; align-items:center; gap:14px; height:14px; flex:none; margin-top:4px; }
.beatbar b { width:12px; height:12px; border-radius:50%; background:rgba(255,255,255,.16); box-shadow:inset 0 0 0 2px rgba(255,255,255,.22); transition:transform .08s, background .08s; }
.beatbar b:first-child { box-shadow:inset 0 0 0 2px rgba(242,201,76,.55); }
.beatbar b.now { background:rgba(72,216,252,.35); }
.beatbar b.on { background:var(--cyan); transform:scale(1.35); box-shadow:0 0 10px rgba(72,216,252,.8); }
.beatbar b:first-child.on { background:var(--gold); box-shadow:0 0 10px rgba(242,201,76,.8); }
.jampet.tick { box-shadow:0 0 0 6px var(--frame-ring),0 0 44px var(--frame-glow); }
.jampop { position:absolute; left:50%; top:50%; margin-top:-16px; height:32px; box-sizing:border-box; transform:translate(-50%,0); font-weight:900; font-size:19px; line-height:24px; letter-spacing:.5px; padding:4px 16px; border-radius:999px; pointer-events:none; white-space:nowrap; z-index:3; text-shadow:0 2px 0 rgba(0,0,0,.35); }
.jampop.g-perfect { color:#1a1200; background:linear-gradient(180deg,#FFE08A,#F2C94C); box-shadow:0 0 18px rgba(242,201,76,.7); }
.jampop.g-good { color:#00222b; background:var(--cyan); }
.jampop.g-miss { color:#fff; background:rgba(255,255,255,.18); font-size:17px; }
.eq i { transition:height .06s linear; }

.gameview.full:not(.fold-h):not(.fold-v) .jampop { font-size:24px; height:40px; margin-top:-20px; line-height:30px; padding:5px 20px; }
.gameview.full:not(.fold-h):not(.fold-v) .overlay.jam { padding-top:150px; }
.gameview.full:not(.fold-h):not(.fold-v) .beatbar { margin-top:8px; }
.gameview.full:not(.fold-h):not(.fold-v) .jammood { margin-top:14px; }
.gameview.full:not(.fold-h):not(.fold-v) .jamfb { height:40px; margin-top:12px; }
.gameview.full:not(.fold-h):not(.fold-v) .eq { height:48px; margin-top:12px; }
@media (prefers-reduced-motion: reduce) { .beatbar b, .eq i, .jampet { transition:none !important; } .beatbar b.on { transform:none; } }

/* ===== B1.01 layout fix (Oct 28): NFT frame colours follow the case; mini watch previews in the Looks sheet ===== */
:root { --frame-ring:var(--cyan); --frame-glow:rgba(72,216,252,.5); }
.stage[data-motif] { --frame-ring:var(--case-rim,var(--cyan)); --frame-glow:var(--case-glow,rgba(72,216,252,.5)); }
.sheetbg.show { background:rgba(2,6,14,.72); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px); }
.sheet { padding-top:16px; }
.sheet::before { content:none; }
.sheethead h2 { font-size:19px; }
.casepick { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:10px 0 6px; }
.caseopt { position:relative; gap:4px; padding:10px 4px 9px; border-radius:16px; font-size:12.5px; line-height:1.2; text-align:center; min-width:0; opacity:1; }
.caseopt.locked { opacity:1; }
.caseopt .cn { display:flex; align-items:center; justify-content:center; max-width:100%; min-height:30px; overflow-wrap:anywhere; }
.caseopt .cl, .caseopt .cs { font-size:11.5px; }
.caseopt .cfor { font-size:10.5px; color:var(--dim); font-weight:800; }
/* mini watch: same proportions as the big one (case 428x516 r96, bezel 16, screen r80) at ~1/5.6 */
.mw { position:relative; width:84px; height:120px; margin:0 auto 4px; flex:none; }
.mw .mb { position:absolute; left:17px; width:50px; height:24px; background:var(--case-band,linear-gradient(#1a1f2a,#0c0f16)); border-radius:7px; }
.mw .mb.t { top:0; } .mw .mb.b { bottom:0; }
.mw .mc { position:absolute; left:4px; top:14px; width:76px; height:92px; border-radius:17px; padding:3px;
  background:var(--case-bg,linear-gradient(145deg,#4a4f5c,#15171d 55%,#2c3038)); box-shadow:0 6px 14px rgba(0,0,0,.55), 0 0 10px var(--case-glow,transparent), inset 0 0 0 1px var(--case-rim,#5c6170); }
.mw .mk { position:absolute; right:-3px; top:22px; width:4px; height:13px; border-radius:0 2px 2px 0; background:var(--case-crown,#80838d); }
.mw .ms { position:relative; width:70px; height:86px; border-radius:14px; background:#000; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.mw .ms img { width:44px; height:44px; border-radius:9px; object-fit:cover; object-position:50% 50%; display:block; box-shadow:0 0 0 2px var(--case-rim,var(--cyan)); }
.mw[data-case="default"] .ms img { box-shadow:0 0 0 2px var(--cyan); }
.mw .mlogo { position:absolute; left:33px; top:1px; width:18px; height:18px; border-radius:50%; object-fit:cover; z-index:2; background:#061533; box-shadow:0 0 0 1.5px var(--case-rim,#5c6170); }
.mw[data-motif="drip"] .mlogo { padding:2px; }
.mw .mfx { position:absolute; left:20px; right:20px; top:104px; height:9px; z-index:2; pointer-events:none; }
.mw .mfx i { position:absolute; top:0; width:4px; border-radius:0 0 3px 3px; }
.mw[data-motif="drip"] .mfx i { background:linear-gradient(#8af0ff,#48D8FC 55%,#1E6FD9); }
.mw[data-motif="slime"] .mfx i { background:linear-gradient(#d4ff7a,#7CFF3A 50%,#2e9e0c); box-shadow:0 0 4px rgba(124,255,58,.6); }
.mw .mfx i:nth-child(1) { left:2px; height:5px; } .mw .mfx i:nth-child(2) { left:12px; height:9px; } .mw .mfx i:nth-child(3) { left:22px; height:4px; }
.mw .mfx i:nth-child(4) { left:30px; height:8px; } .mw .mfx i:nth-child(5) { left:38px; height:5px; }
.mw .mlock { position:absolute; right:2px; bottom:10px; z-index:3; width:24px; height:24px; border-radius:50%; background:rgba(8,12,20,.92); border:1px solid rgba(242,201,76,.7); display:flex; align-items:center; justify-content:center; font-size:12px; }
.caseopt.locked .mw .ms img { filter:brightness(.8); }
.caseopt.locked .mw .mc, .caseopt.locked .mw .mb, .caseopt.locked .mw .mfx, .caseopt.locked .mw .mlogo, .caseopt.locked .mw .mk { filter:saturate(.55) brightness(.6); }
.caseopt.on::after { content:'✓'; position:absolute; top:6px; right:6px; width:20px; height:20px; border-radius:50%; background:var(--cyan); color:#02131f; font-size:12px; font-weight:1000; display:flex; align-items:center; justify-content:center; }
.lookshead { display:flex; align-items:center; gap:10px; margin:2px 0 4px; }
.lookshead img { width:40px; height:40px; border-radius:9px; object-fit:cover; box-shadow:0 0 0 2px var(--cyan); }
.lookshead p { margin:0 !important; }
/* M13: Add my own row fits the watch screen (no text running past the edge), spinner while checking; wallet icons */
.prow .ps { overflow:hidden; text-overflow:ellipsis; }
.prow .pn { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.prow.add { touch-action:manipulation; cursor:pointer; }
.prow.add .pav { display:flex; align-items:center; justify-content:center; }
.prow.add .spin { width:34px; height:34px; border-radius:50%; border:4px solid rgba(72,216,252,.22); border-top-color:var(--cyan); animation:blspin .8s linear infinite; }
.prow.add.busy { opacity:.85; cursor:default; }
img.wlogo { width:22px; height:22px; border-radius:6px; flex:none; display:inline-block; vertical-align:-5px; margin-right:6px; }
.sheetbody .sbtn img.wlogo { width:26px; height:26px; border-radius:7px; margin-right:2px; }
.prow.add .pav img.wl { width:44px; height:44px; border-radius:12px; object-fit:contain; }
.prow.add .pn { font-size:18px; }
#petList { padding-bottom:36px; } /* M13: last row can scroll clear of the fade + watermark */

/* ===== M13: Full view shows the watch case ===== */
.gameview.full .stage { width:452px; height:876px; }
.gameview.full .case { left:12px; top:72px; width:428px; height:732px; padding:16px; border-radius:96px;
  background:var(--case-bg,linear-gradient(145deg,#4a4f5c,#15171d 55%,#2c3038)); box-shadow:0 30px 70px rgba(0,0,0,.65), 0 0 34px var(--case-glow,transparent), inset 0 0 0 2px var(--case-rim,#5c6170); }
.gameview.full .screen { width:396px; height:700px; border-radius:80px; box-shadow:none; }
.gameview.full .stage[data-motif] .screen { box-shadow:none; }
.gameview.full .casefx { width:452px; height:876px; }
.gameview.full .crown { top:150px; } .gameview.full .sidebtn { top:280px; }

/* ===== M13: animated cases (transform / opacity only; static with reduced motion) ===== */
.case > .screen { z-index:1; } .case > .crown { z-index:2; }
.caseglow, .casesheen { position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:0; }
.caseglow { box-shadow:0 0 30px 6px var(--case-glow,transparent), inset 0 0 0 3px var(--case-rim,transparent); opacity:0; }
.casesheen { overflow:hidden; }
.casesheen i { position:absolute; top:-10%; bottom:-10%; left:-40%; width:30%; background:linear-gradient(100deg,transparent,rgba(255,255,255,.16),transparent); transform:translateX(0) skewX(-12deg); opacity:0; }
.stage:not([data-motif]) .casesheen i { animation:csSheen 7s ease-in-out infinite; }
@keyframes csSheen { 0%,55% { transform:translateX(0) skewX(-12deg); opacity:0; } 60% { opacity:1; } 90% { opacity:1; } 100% { transform:translateX(560%) skewX(-12deg); opacity:0; } }
.stage[data-motif="drip"] .caseglow { animation:csPulse 3.2s ease-in-out infinite; }
@keyframes csPulse { 0%,100% { opacity:.15; } 50% { opacity:.75; } }
.stage[data-motif="slime"] .caseglow { animation:csFlicker 4.6s steps(1,end) infinite; }
@keyframes csFlicker { 0% { opacity:.35; } 8% { opacity:.7; } 10% { opacity:.25; } 14% { opacity:.65; } 40% { opacity:.4; } 62% { opacity:.75; } 64% { opacity:.3; } 80% { opacity:.55; } 100% { opacity:.35; } }
.stage.beat .caseglow { opacity:1 !important; } /* little pulse on the Jam beat */
.casefx .dr, .casefx .drop, .casefx .bub, .casefx .tw, .casefx .sh { transform-box:fill-box; }
.casefx .dr { transform-origin:50% 0; }
.stage[data-motif="drip"] .casefx .dr { animation:csDrip 3.6s ease-in-out infinite; }
.stage[data-motif="drip"] .casefx .dr:nth-of-type(2n) { animation-delay:-1.2s; animation-duration:4.2s; }
.stage[data-motif="drip"] .casefx .dr:nth-of-type(3n) { animation-delay:-2.3s; animation-duration:3.1s; }
@keyframes csDrip { 0%,100% { transform:scaleY(1); } 55% { transform:scaleY(1.32); } 70% { transform:scaleY(.92); } }
.casefx .drop { opacity:0; }
.stage[data-motif="drip"] .casefx .drop { animation:csFall 3.6s ease-in infinite; }
.stage[data-motif="drip"] .casefx .drop.d2 { animation-delay:-1.4s; animation-duration:4.2s; } .stage[data-motif="drip"] .casefx .drop.d3 { animation-delay:-2.6s; animation-duration:3.1s; }
@keyframes csFall { 0%,50% { transform:translateY(0) scale(.6); opacity:0; } 58% { opacity:1; transform:translateY(2px) scale(1); } 92% { opacity:.9; } 100% { transform:translateY(26px) scale(.8); opacity:0; } }
.casefx .tw { transform-origin:50% 50%; }
.stage[data-motif="drip"] .casefx .tw { animation:csTwinkle 2.8s ease-in-out infinite; }
.stage[data-motif="drip"] .casefx .tw:nth-of-type(2n) { animation-delay:-1.4s; }
@keyframes csTwinkle { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.55; transform:scale(.88); } }
.stage[data-motif="slime"] .casefx .dr { animation:csOoze 5.2s ease-in-out infinite; }
.stage[data-motif="slime"] .casefx .dr:nth-of-type(2n) { animation-delay:-2s; animation-duration:6s; }
.stage[data-motif="slime"] .casefx .dr:nth-of-type(3n) { animation-delay:-3.4s; animation-duration:4.6s; }
@keyframes csOoze { 0%,100% { transform:scaleY(1) scaleX(1); } 45% { transform:scaleY(1.4) scaleX(.9); } 60% { transform:scaleY(1.25) scaleX(1.05); } }
.casefx .bub { transform-origin:50% 50%; }
.stage[data-motif="slime"] .casefx .bub { animation:csBubble 3.4s ease-in infinite; }
.stage[data-motif="slime"] .casefx .bub:nth-of-type(2n) { animation-delay:-1.1s; animation-duration:2.9s; }
.stage[data-motif="slime"] .casefx .bub.b2 { animation-delay:-2.2s; } .stage[data-motif="slime"] .casefx .bub.b3 { animation-delay:-.6s; animation-duration:4s; }
@keyframes csBubble { 0% { transform:translateY(8px) scale(.5); opacity:0; } 15% { opacity:.85; } 80% { transform:translateY(-20px) scale(1); opacity:.85; } 90% { transform:translateY(-22px) scale(1.6); opacity:.3; } 100% { transform:translateY(-22px) scale(1.9); opacity:0; } }
/* picker previews: lighter */
.mw .mfx i { transform-origin:50% 0; }
.mw[data-motif="drip"] .mfx i, .mw[data-motif="slime"] .mfx i { animation:csDrip 4.4s ease-in-out infinite; }
.mw .mfx i:nth-child(2n) { animation-delay:-1.6s; } .mw .mfx i:nth-child(3n) { animation-delay:-2.8s; }
.caseopt.locked .mw .mfx i { animation:none; }
@media (prefers-reduced-motion: reduce) {
  .caseglow, .casesheen i, .casefx .dr, .casefx .drop, .casefx .tw, .casefx .bub, .mw .mfx i { animation:none !important; }
  .stage[data-motif] .caseglow { opacity:.45; } .casefx .drop { opacity:0; }
}
@media (prefers-reduced-motion: reduce) { .stage.beat .caseglow { opacity:.45 !important; } }
/* M13: the case frame makes Full view scale a bit smaller on phones, so the pet and the rows under it are made bigger to keep the pet large */
.gameview.full .petwrap { left:54px; top:88px; width:288px; height:288px; }
.gameview.full .petimg { border-radius:60px; }
.gameview.full .shadow { left:72px; top:386px; width:252px; }
.gameview.full .g-home { left:40px; top:94px; width:316px; height:292px; }
.gameview.full .toast { top:356px; }
.gameview.full .verified { top:416px; }
.gameview.full .statgrid { top:450px; }
.gameview.full .fullinfo { top:534px; }
.gameview.full .homebtns { top:570px; }
.gameview.full .homebtns .btn { height:62px; }

/* ===== M13: Full view = an open foldable phone (generic look, no brand). fold-v = stacked (portrait phones), fold-h = side by side ===== */
.foldhinge, .foldside { display:none; }
.gameview.full .band { display:none; }
.gameview.full .case { top:40px; border-radius:62px; }
.gameview.full .screen { border-radius:46px; }
.gameview.full .caselogo { top:0; z-index:3; }
.gameview.full .foldhinge { display:block; position:absolute; z-index:45; pointer-events:none; }
.foldhinge i { position:absolute; border-radius:4px; background:linear-gradient(90deg,#14171d,#3d424d 50%,#14171d); box-shadow:0 0 14px 5px rgba(0,0,0,.75); }
.foldhinge::before, .foldhinge::after { content:''; position:absolute; width:22px; height:22px; border-radius:50%; background:var(--case-rim,#4a4f5c); box-shadow:0 0 0 3px #0b0d12; }
/* stacked: two screens, top and bottom */
.gameview.fold-v .stage { width:452px; height:934px; }
.gameview.fold-v .case { height:838px; }
.gameview.fold-v .screen { height:806px; }
.gameview.fold-v .casefx { width:452px; height:934px; }
.gameview.fold-v .crown { top:180px; } .gameview.fold-v .sidebtn { top:320px; }
.gameview.fold-v .foldhinge { left:0; right:0; top:395px; height:16px; background:linear-gradient(to bottom,transparent,rgba(0,0,0,.6) 45%,rgba(0,0,0,.6) 55%,transparent); }
.gameview.fold-v .foldhinge i { left:0; right:0; top:4px; height:8px; }
.gameview.fold-v .foldhinge::before { left:-12px; top:-3px; } .gameview.fold-v .foldhinge::after { right:-12px; top:-3px; }
.gameview.fold-v .dots { top:170px; }
.gameview.fold-v .petwrap { left:42px; top:80px; width:312px; height:312px; }
.gameview.fold-v .shadow { left:76px; top:378px; width:244px; height:12px; }
.gameview.fold-v .g-home { left:36px; top:84px; width:324px; height:304px; }
.gameview.fold-v .toast { top:350px; }
.gameview.fold-v .verified { top:444px; }
.gameview.fold-v .statgrid { top:480px; }
.gameview.fold-v .fullinfo { top:582px; }
.gameview.fold-v .homebtns { top:624px; }
.gameview.fold-v .homebtns .btn { height:70px; }
/* menus and other pages open on the bottom screen; the pet stays on the top screen */
.gameview.fold-v .overlay, .gameview.fold-v .page:not(#pg-home) { top:411px; height:395px; bottom:auto; }
.gameview.fold-v .overlay { padding-top:12px; padding-bottom:30px; overflow-y:auto; }
.gameview.fold-h .overlay { padding-top:64px; padding-bottom:30px; overflow-y:auto; }
.gameview.fold-v .overlay .food, .gameview.fold-h .overlay .food { height:70px; margin-bottom:6px; }
.gameview.fold-v .overlay.jam { padding-top:14px; }
.gameview.fold-v .overlay.levelup { padding-top:10px; }
.gameview.fold-v .page.scroll { padding-top:24px; -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18px,#000 346px,transparent 370px); mask-image:linear-gradient(to bottom,transparent 0,#000 18px,#000 346px,transparent 370px); }
.gameview.fold-v #screen:not(:has(#pg-home.on)) .foldside { display:flex; position:absolute; left:0; right:0; top:60px; height:340px; align-items:center; justify-content:center; z-index:5; pointer-events:none; }
/* side by side: pet screen on the left, stats + menus on the right */
.gameview.fold-h .stage { width:856px; height:598px; }
.gameview.fold-h .case { width:832px; height:502px; }
.gameview.fold-h .screen { width:800px; height:470px; }
.gameview.fold-h .casefx { left:202px; width:452px; height:598px; }
.gameview.fold-h .caselogo { left:400px; }
.gameview.fold-h .crown { top:110px; } .gameview.fold-h .sidebtn { top:210px; }
.gameview.fold-h .foldhinge { top:0; bottom:0; left:392px; width:16px; background:linear-gradient(to right,transparent,rgba(0,0,0,.6) 45%,rgba(0,0,0,.6) 55%,transparent); }
.gameview.fold-h .foldhinge i { top:0; bottom:0; left:4px; width:8px; background:linear-gradient(180deg,#14171d,#3d424d 50%,#14171d); }
.gameview.fold-h .foldhinge::before { top:-12px; left:-3px; } .gameview.fold-h .foldhinge::after { bottom:-12px; left:-3px; }
.gameview.fold-h .overlay, .gameview.fold-h .page:not(#pg-home) { left:408px; }
.gameview.fold-h .page.scroll { -webkit-mask-image:linear-gradient(to bottom,transparent 66px,#000 84px,#000 426px,transparent 444px); mask-image:linear-gradient(to bottom,transparent 66px,#000 84px,#000 426px,transparent 444px); }
.gameview.fold-h .dots { top:120px; }
.gameview.fold-h .petwrap { left:56px; top:82px; width:288px; height:288px; }
.gameview.fold-h .shadow { left:80px; top:384px; width:240px; height:14px; }
.gameview.fold-h .g-home { left:46px; top:86px; width:308px; height:284px; }
.gameview.fold-h .toast { left:200px; top:340px; }
.gameview.fold-h .verified { left:410px; top:84px; }
.gameview.fold-h .statgrid { left:430px; right:40px; top:120px; }
.gameview.fold-h .fullinfo { left:430px; right:40px; top:212px; }
.gameview.fold-h .homebtns { left:430px; right:40px; top:256px; }
.gameview.fold-h .homebtns .btn { height:70px; }
.gameview.fold-h .wm { left:408px; }
.gameview.fold-h #screen:not(:has(#pg-home.on)) .foldside { display:flex; position:absolute; left:0; top:0; bottom:0; width:392px; align-items:center; justify-content:center; z-index:5; pointer-events:none; }
.foldside img { width:280px; height:280px; border-radius:58px; object-fit:cover; box-shadow:0 0 0 4px var(--frame-ring,var(--cyan)),0 0 30px var(--frame-glow,rgba(72,216,252,.5)); animation:bob 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .foldside img { animation:none; } }
/* M13: landscape phones: keep the Watch view / Full view button clear of the 'Made by Azgog' tag in the corner */
@media (min-width: 601px) and (max-width: 1100px) and (max-height: 500px) { .gamebar { padding-right:200px; } }
/* M13 foldable: menus on the bottom screen are a little more compact so they clear the watermark */
.gameview.fold-v .overlay.jam { padding-top:8px; padding-bottom:34px; }
.gameview.fold-v .overlay.jam .jamstage { height:118px; }
.gameview.fold-v .overlay.jam .jampet { width:118px; height:118px; border-radius:28px; }
.gameview.fold-v .overlay .food { height:68px; margin-bottom:5px; } .gameview.fold-v .overlay .food .fn b, .gameview.fold-h .overlay .food .fn b { font-size:18px; line-height:1.1; }
.gameview.fold-v #ov-feed { padding-top:8px; padding-bottom:26px; }
.groove { pointer-events:none; } /* M13: label only, never blocks a tap on the pet */
.gameview.fold-v .overlay.jam .groove { top:40px; left:14px; right:auto; max-width:118px; font-size:13px; padding:3px 10px; line-height:1.2; text-align:center; }

/* ===== M13: top bar = volume + view switch (Watch | Phone) + Phone layout picker. Same spot in both views, never on the device ===== */
.volctl { display:flex; align-items:center; gap:4px; margin-left:auto; }
.volbtn { width:44px; height:44px; flex:none; border-radius:22px; background:rgba(28,38,51,.92); border:1px solid #2c3a52; display:flex; align-items:center; justify-content:center; padding:0; color:#9aa7b8; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.volbtn svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.volbtn[data-on="1"] { border-color:var(--cyan); color:var(--cyan); box-shadow:0 0 10px rgba(72,216,252,.35); }
.volbtn:focus-visible, .viewswitch .homebtn:focus-visible, .foldpick .homebtn:focus-visible { outline:2px solid var(--cyan); outline-offset:2px; }
.volslider { width:132px; height:44px; margin:0; padding:0; background:transparent; -webkit-appearance:none; appearance:none; touch-action:pan-y; cursor:pointer; flex:none; }
.volslider[hidden] { display:none; }
.volslider::-webkit-slider-runnable-track { height:8px; border-radius:4px; background:linear-gradient(90deg,var(--cyan) var(--v,0%),#2c3a52 var(--v,0%)); }
.volslider::-webkit-slider-thumb { -webkit-appearance:none; width:28px; height:28px; margin-top:-10px; border-radius:50%; background:#fff; border:3px solid var(--cyan); box-shadow:0 2px 6px rgba(0,0,0,.5); }
.volslider::-moz-range-track { height:8px; border-radius:4px; background:#2c3a52; }
.volslider::-moz-range-progress { height:8px; border-radius:4px; background:var(--cyan); }
.volslider::-moz-range-thumb { width:24px; height:24px; border-radius:50%; background:#fff; border:3px solid var(--cyan); }
.viewswitch { display:flex; flex:none; border:1px solid #2c3a52; border-radius:14px; overflow:hidden; }
.viewswitch .homebtn { min-height:44px; border:0; border-radius:0; margin:0; padding:0 12px; }
.viewswitch .homebtn.on { background:var(--cyan); color:#00121c; }
.foldbtn { min-height:44px; display:inline-flex; align-items:center; gap:6px; padding:0 12px; margin:0; flex:none; }
.foldbtn[hidden] { display:none; }
.foldbtn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.foldbtn[data-fold="v"] svg, .foldbtn[data-fold="h"] svg { color:var(--cyan); }
/* narrow phones: while the volume slider is open it takes the switch's place (no layout jump); tap the speaker or anywhere else to close */
@media (max-width: 600px) { .gamebar.volopen .viewswitch, .gamebar.volopen .foldbtn { display:none; } .gamebar.volopen .volslider { width:min(230px, calc(100vw - 90px)); } }
@media (max-width: 600px) { .gameview .gamebar .fullpet { display:none; } } /* the watch / phone top bar already shows the pet name */

/* M13: Blunana icon (blue $BLUNANA banana) used wherever the game used the yellow 🍌 emoji */
img.blu { display:inline-block; width:1.15em; height:1.15em; object-fit:contain; vertical-align:-.22em; margin:0 .08em; pointer-events:none; -webkit-user-drag:none; }
.tabs img.blu, nav img.blu { width:22px; height:22px; vertical-align:middle; }
.pcfallback img.blu { width:46px; height:46px; }

/* M13: Phone view: the mood badge moves to the bottom/right screen, its own centred row above the pet line + stat cards (never on the NFT) */
.gameview.full .moodpill { left:0; right:0; width:max-content; max-width:calc(100% - 40px); margin:0 auto; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gameview.fold-v .moodpill { top:424px; }
.gameview.fold-v .verified { top:466px; }
.gameview.fold-v .statgrid { top:496px; }
.gameview.fold-v .fullinfo { top:596px; }
.gameview.fold-v .homebtns { top:634px; }
.gameview.fold-h .moodpill { left:408px; top:64px; max-width:360px; }
.gameview.fold-h .verified { top:108px; }
.gameview.fold-h .statgrid { top:138px; }
.gameview.fold-h .fullinfo { top:228px; }
.gameview.fold-h .homebtns { top:266px; }

/* M13: one "Made by Azgog (@azgog)" watermark per view, as a subtle link to @BluP3ts on X (44px tap area, only as wide as the text) */
a.wmlink { color:rgba(255,255,255,.66); text-decoration:underline dotted rgba(255,255,255,.35); text-underline-offset:3px; -webkit-tap-highlight-color:rgba(0,229,255,.2); touch-action:manipulation; }
a.wmlink:hover, a.wmlink:active { color:#fff; text-decoration-color:var(--cyan); }
a.wmlink:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; border-radius:10px; }
a.wm2.wmlink { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 12px; margin:8px auto 0; align-self:center; }
#gameWm { position:absolute; left:16px; right:16px; z-index:41; pointer-events:auto; display:flex; justify-content:center; width:max-content; max-width:calc(100% - 48px); margin:0 auto;
  box-sizing:border-box; padding:14px 12px 0; align-items:flex-start; bottom:-3px; height:54px; text-align:center; font-size:13px; line-height:16px; white-space:nowrap; }
.gameview.full #gameWm { align-items:flex-end; padding:0 12px 30px; bottom:0; height:60px; }
.gameview.fold-h #gameWm { left:424px; right:16px; max-width:360px; }
/* M13: Phone view moves the yellow BETA badge to the bottom screen, at the right end of the mood row (Watch view keeps it top left).
   The mood badge stays centred but narrower, so the two never touch. BETA hides with the mood (other pages, open menus). */
.gameview.full .moodpill { max-width:calc(100% - 156px); }
.gameview.fold-h .moodpill { max-width:236px; }
.gameview.full .concept { left:auto; right:22px; }
.gameview.fold-v .concept { top:431px; }
.gameview.fold-h .concept { top:71px; }
.gameview.full .concept.offrow { display:none; }

/* M13 batch: the top tag is gone, so the control bar moves up and sits centred; Duo device a little bigger */
.gameview .gamebar { margin-top:4px; justify-content:center; }
@media (min-width: 601px) and (max-width: 1100px) and (max-height: 500px) { .gamebar { padding-right:0; } }
.gameview .gamebar .volctl { margin-left:0; }

/* M13 batch: game-view header centred */
.hero { justify-content:center; }

/* M13 batch: BABI3S gold lock jiggles. Gentle idle wiggle every ~4s, a bigger jiggle on tap. Off with reduced motion. */
.pclock { animation:none; }
.pclock svg { transform-origin:50% 20%; animation:lockidle 4s ease-in-out infinite; will-change:transform; }
.pclock.jig svg { animation:lockjig .7s cubic-bezier(.36,.07,.19,.97) 1; }
@keyframes lockidle { 0%, 78%, 100% { transform:rotate(0) } 82% { transform:rotate(-7deg) } 86% { transform:rotate(6deg) } 90% { transform:rotate(-4deg) } 94% { transform:rotate(2deg) } }
@keyframes lockjig { 0% { transform:rotate(0) scale(1) } 15% { transform:rotate(-16deg) scale(1.12) } 30% { transform:rotate(14deg) scale(1.12) } 45% { transform:rotate(-11deg) scale(1.08) }
  60% { transform:rotate(8deg) scale(1.05) } 75% { transform:rotate(-4deg) scale(1.02) } 100% { transform:rotate(0) scale(1) } }
@media (prefers-reduced-motion: reduce) { .pclock svg, .pclock.jig svg { animation:none !important; } }


/* M13 batch: small, subtle 'Adopt on Orbis' link on a live floor starter's Stats page */
.adoptlink { display:flex; align-items:center; justify-content:center; width:max-content; max-width:100%; margin:4px auto 12px; min-height:calc(44px / var(--fs, 1)); padding:0 16px; box-sizing:border-box;
  border-radius:22px; font-family:inherit; font-size:15px; font-weight:800; color:var(--cyan); background:rgba(72,216,252,.08); border:1px solid rgba(72,216,252,.3); text-decoration:none; cursor:pointer; -webkit-appearance:none; appearance:none; }
.adoptlink:active { background:rgba(72,216,252,.18); }
.adoptlink:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
.adoptlink[hidden] { display:none; }

/* Full screen (Oct 29): top-bar button + 'Start in full screen' switch in Settings */
.gamebar .fsbtn { width:44px; min-width:44px; height:44px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
.fsbtn svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.fsbtn .fs-out { display:none; } .fsbtn.on .fs-in { display:none; } .fsbtn.on .fs-out { display:inline; }
.fsbtn.on { border-color:var(--cyan); color:var(--cyan); }
.fsbtn[hidden] { display:none; }
html:fullscreen, html:-webkit-full-screen { background:#05070d; overflow-y:auto; }
.fstoggle { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:48px; text-align:left; }
.fsknob { position:relative; flex:0 0 auto; width:46px; height:26px; border-radius:13px; background:#2c3a52; transition:background .2s; }
.fsknob::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#dfe7f1; transition:transform .2s; }
.fstoggle[aria-checked="true"] .fsknob { background:var(--cyan); }
.fstoggle[aria-checked="true"] .fsknob::after { transform:translateX(20px); background:#05070d; }
@media (prefers-reduced-motion: reduce) { .fsknob, .fsknob::after { transition:none; } }
@media (max-width:379px) { .gamebar .foldbtn #foldTxt { display:none; } .gamebar .foldbtn { min-width:44px; padding:0 10px; } } /* narrow phones: rotate button shows its icon only so the full screen button stays on the same row */

/* ---------- Quick tap fixes (Azgog, Oct 29) ---------- */
/* shared squish on press (not the test buttons, not the jam picture) */
button, [role=button], a.extlink, .soc { transition:scale .08s ease-out; }
button:not(:disabled):active, [role=button]:active, a.extlink:active, .soc:active { scale:.95; }
.controls button:active, #jamPet:active, #jamTap:active { scale:none; }
/* new tap spots */
#moodPill, .sc[role=button], #balCoin, .betatap, #heroLogo, #homeLogo, #babiRow { cursor:pointer; -webkit-tap-highlight-color:transparent; }
.concept.betatap { pointer-events:auto; }
.moodpill::before, .betatap::before { content:''; position:absolute; inset:-10px -6px; }
.moodpill, .betatap { position:relative; } .concept.betatap, #moodPill { position:absolute; }
.balcoin { padding:6px; margin:-6px; box-sizing:content-box; }
.balcoin.spin { animation:coinspin .9s ease-in-out 1; }
@keyframes coinspin { 0% { transform:rotateY(0) } 100% { transform:rotateY(720deg) } }
.patheart { position:absolute; font-size:30px; transform:translate(-50%,0); pointer-events:none; animation:patheart 1.1s ease-out forwards; }
@keyframes patheart { 0% { opacity:0; transform:translate(-50%,10px) scale(.6) } 20% { opacity:1; transform:translate(-50%,0) scale(1.15) } 100% { opacity:0; transform:translate(-50%,-70px) scale(1) } }
.hlabs.wig, .hero .labs.wig { animation:logowig .6s ease-in-out 1; }
@keyframes logowig { 0%,100% { transform:rotate(0) } 20% { transform:rotate(-12deg) } 40% { transform:rotate(10deg) } 60% { transform:rotate(-6deg) } 80% { transform:rotate(3deg) } }
#babiRow .pclock { position:absolute; }
/* the side button is a real button now (same look) */
.sidebtn { border:0; padding:0; background-clip:padding-box; z-index:2; cursor:pointer; }
/* portrait: screen dots >= 44 real px (size set in app.js sideFit) */
.stage.t44 .dots button { width:var(--t44); height:var(--t44); }
.stage.t44 .dots button::before { left:auto; right:0; margin-left:0; } /* the dot stays where it was; the tap area grows inward */
.stage.t44 .dots button.a::before { margin-top:-9px; }
/* portrait-friendly 44px targets outside the watch */
.spkhome { width:44px; height:44px; }
.carnav { width:44px; height:44px; margin-top:-28px; }
.hb, .soc { min-height:44px; }
.modeseg button { min-height:44px; }
#sheetClose { min-width:44px; min-height:44px; }
@media (orientation: portrait) { #gameNfts, #refillBtn, #lookBtn { min-height:calc(44px / var(--fs, 1)); } }
@media (prefers-reduced-motion: reduce) {
  button, [role=button], a.extlink, .soc { transition:none; }
  button:not(:disabled):active, [role=button]:active, a.extlink:active, .soc:active { scale:none; }
  .balcoin.spin, .patheart, .hlabs.wig, .hero .labs.wig, .petwrap.hop { animation:none !important; }
  .patheart { opacity:1; }
}
@media (max-width:339px) { .gamebar { gap:4px; } .viewswitch .homebtn { padding:0 7px; } } /* 320px phones: the top bar (with the full screen button) stays on one row */

.dots button::before { transform:translateX(var(--dx, 0px)); } /* 320px watch: the Balance tap area slides right off the LEVEL tile; the dot itself stays put */

/* Desktop: one screen, two columns. Phones and short windows keep the stacked mobile layout. */
body.desk { height:var(--vvh, 100svh); max-height:var(--vvh, 100svh); min-height:0; overflow:hidden; padding:calc(32px + max(10px, env(safe-area-inset-top))) max(120px, 8vw) max(14px, env(safe-area-inset-bottom)); align-items:stretch; }
body.desk .homeview.on, body.desk .gameview.on { flex:1 1 0; min-height:0; width:100%; max-width:1280px; margin-inline:auto; }
body.desk .homeview.on { display:grid; grid-template-columns:minmax(320px,400px) minmax(0,1fr); grid-template-rows:minmax(0,1fr); column-gap:36px; align-items:stretch; padding:0; overflow:hidden; }
body.desk .leftcol { grid-column:1; grid-row:1; min-height:0; height:100%; display:flex; flex-direction:column; justify-content:space-between; gap:18px; overflow:hidden; padding-left:52px; }
body.desk .homeview .wmark { font-size:38px; }
body.desk .hlabs { width:40px; height:40px; }
body.desk .hhead { flex:none; align-self:stretch; padding:0; }
body.desk .hword { gap:12px; justify-content:flex-start; }
body.desk .htag { margin-top:14px; font-size:14px; max-width:none; }
body.desk .spkhome { left:8px; top:calc(4px + env(safe-area-inset-top, 0px)); }
body.desk .homestack { flex:1 1 auto; min-height:0; width:auto; display:flex; flex-direction:column; align-items:center; justify-content:space-evenly; gap:10px; overflow-x:hidden; overflow-y:auto; padding:0; }
body.desk .carwrap { grid-column:2; grid-row:1; margin:0; align-self:stretch; min-width:0; min-height:0; overflow:hidden; display:flex; flex-direction:column; background:rgba(10,16,26,.82); border:1px solid #2c3a52; border-radius:28px; padding:16px; box-shadow:0 16px 40px rgba(0,0,0,.28); }
body.desk .carnav { display:none; }
body.desk .carousel { display:grid; grid-template-columns:repeat(auto-fill,minmax(156px,1fr)); grid-auto-rows:max-content; align-content:start; gap:12px; flex:1 1 auto; width:100%; height:auto; min-height:0; max-height:none; margin:0; padding:8px 4px 8px 2px; overflow-x:hidden; overflow-y:auto; scroll-snap-type:none; scrollbar-width:thin; scrollbar-color:#2c3a52 transparent; -webkit-mask-image:none; mask-image:none; }
body.desk .pcbadge { top:10px; z-index:2; }
body.desk .pcard { flex:none; width:auto; min-width:0; max-width:none; scroll-snap-align:none; }
body.desk .pcart { width:100%; height:auto; aspect-ratio:1; max-height:none; }
body.desk .hbtns, body.desk .acctpair { display:contents; }
body.desk .moderow, body.desk .toolrow, body.desk .homestack > .hb, body.desk .homestack > button, body.desk .homestack > p, body.desk .homestack > a { flex:none; }
body.desk .playbtn { margin:0; height:44px; width:100%; align-self:stretch; }
body.desk .hb { min-height:40px; padding:8px 14px; }
body.desk .discordrow, body.desk .toksw { height:36px; min-height:36px; }
body.desk #discordBtn, body.desk #connectBtn, body.desk .looksrow { align-self:stretch; width:100%; max-width:none; margin:0; }
body.desk .modeseg { padding:3px; }
body.desk .modeseg button { min-height:32px; padding:4px 12px; }
body.desk .wallet-bal, body.desk .modenote, body.desk .carstatus { margin:0; align-self:stretch; }
body.desk a.wm2.wmlink { min-height:24px; margin:0; }
body.desk .looksrow { padding:6px 12px; }
body.desk .looksrow .lk { font-size:22px; }
body.desk .modenote { line-height:1.3; font-size:12px; }
body.desk .htag { line-height:1.3; }
body.desk #settingsBtn { align-self:center; }
body.desk .betaline { flex:none; max-width:none; margin:14px 0 0; text-align:center; }
body.desk .gameview.on { display:grid; grid-template-columns:auto minmax(340px,420px); grid-template-rows:minmax(0,1fr) auto auto minmax(0,1fr); column-gap:36px; justify-content:center; align-items:stretch; padding:0; overflow:hidden; }
body.desk .gamebar { grid-column:1 / -1; grid-row:2; width:auto; max-width:none; margin:0 0 12px; align-self:end; }
body.desk .gameview .hero { display:none; }
body.desk .gameview main { display:contents; }
body.desk .stagewrap { grid-column:1; grid-row:3; justify-self:end; align-self:center; margin:0; }
body.desk .sidecol { display:flex; flex-direction:column; justify-content:center; gap:12px; grid-column:2; grid-row:3; align-self:center; min-width:0; background:rgba(10,16,26,.82); border:1px solid #2c3a52; border-radius:28px; padding:14px; box-shadow:0 16px 40px rgba(0,0,0,.28); }
body.desk .sidecol .tabs { flex:none; display:grid; grid-template-columns:1fr 1fr; grid-template-rows:auto auto; gap:8px; width:100%; max-width:none; margin:0; }
body.desk .sidecol .tabs button { height:52px; min-height:0; font-size:13px; border-radius:14px; padding:6px 8px; gap:2px; }
body.desk .sidecol .tabs button span { font-size:18px; }
body.desk .sidecol .tabs img.blu { width:20px; height:20px; }
body.desk .sidecol .controls { flex:none; display:flex; flex-direction:column; gap:8px; width:100%; max-width:none; margin:0; }
body.desk .sidecol .controls button { flex:none; width:100%; height:44px; min-height:0; font-size:14px; border-radius:14px; padding:8px 12px; }
body.desk .foot { flex:none; width:100%; max-width:none; margin-top:8px; display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 16px; }
body.desk .muted { margin:0; text-align:center; }
body.desk .socials { margin:0; }
body.desk .nftsview.on { flex:1 1 auto; min-height:0; width:100%; max-width:1280px; overflow:auto; align-self:center; }
/* Tablet: same one-screen layout as desktop, with tighter columns so the footer stays in view. */
@media (max-width: 1099px) {
  body.desk { padding:calc(32px + max(8px, env(safe-area-inset-top))) 16px max(8px, env(safe-area-inset-bottom)); }
  body.desk .homeview.on { grid-template-columns:minmax(220px,280px) minmax(0,1fr); column-gap:16px; }
  body.desk .gameview.on { grid-template-columns:auto minmax(210px,260px); column-gap:16px; }
  body.desk .homeview .wmark { font-size:36px; }
  body.desk .hlabs { width:40px; height:40px; }
  body.desk .leftcol { padding-left:48px; }
  body.desk .hword { gap:12px; }
  body.desk .htag { margin-top:12px; font-size:13px; }
  body.desk .playbtn { height:48px; }
  body.desk .betaline { margin:8px 0 0; font-size:12px; }
  body.desk .foot { margin-top:4px; }
  body.desk .sidecol { padding:10px; gap:8px; }
  body.desk .sidecol .tabs button { height:46px; font-size:12px; }
  body.desk .sidecol .controls button { height:40px; font-size:13px; }
}
@media (max-height: 720px) {
  body.desk .homeview .wmark { font-size:32px; }
  body.desk .hlabs { width:36px; height:36px; }
  body.desk .leftcol { gap:12px; padding-left:48px; }
  body.desk .htag { margin-top:10px; font-size:12px; }
  body.desk .homestack { gap:8px; }
  body.desk .playbtn { height:40px; }
  body.desk .discordrow, body.desk .toksw { height:36px; min-height:36px; }
  body.desk .hb { min-height:36px; }
  body.desk .looksrow { padding:6px 10px; }
}
.srtxt { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; } /* spoken only: what a stat tile does */
.dots { pointer-events:none; } .dots button { pointer-events:auto; } /* only the dot buttons take taps, never the empty column box (320px: LEVEL tile under it) */

/* ===== Credit fix (Azgog, Nov 1): one "Made by Azgog (@azgog)" credit per view, centred directly under the watch / phone and under the pet cards ===== */
.stagewrap { margin-bottom:48px; }
body.desk .stagewrap { margin:0 0 48px; }
#gameWm.wmunder, .gameview.full #gameWm.wmunder, .gameview.fold-h #gameWm.wmunder { position:absolute; top:calc(100% + 2px); bottom:auto; left:50%; right:auto; transform:translateX(-50%); height:44px; width:max-content; max-width:calc(100vw - 16px); margin:0; padding:0 12px; display:flex; align-items:center; justify-content:center; white-space:nowrap; z-index:41; pointer-events:auto; }
.carwrap > a.wm2.wmunder { display:flex; width:max-content; margin:6px auto 0; }
.carwrap .carnav { top:calc(50% - 25px); }
body.desk .carwrap > a.wm2.wmunder { flex:none; min-height:32px; margin:8px auto 0; }

/* ===== GOO MOCK 2 (preview only, Nov 2): more goo drips on the MNK3YS (blue) and ZMB3YS (green) watch faces only.
   Same colours as each face. Watch view only (Duo unchanged). transform/opacity only. ===== */
.casefx .gx, .casefx .gxdrop { display:none; transform-box:fill-box; transform-origin:50% 0; }
.gameview:not(.full) .stage[data-motif] .casefx .gx { display:inline; animation:gxStretch 3.6s cubic-bezier(.5,0,.6,1) infinite; }
.gameview:not(.full) .stage[data-motif] .casefx .gxdrop { display:inline; opacity:0; animation:gxDrop 3.6s cubic-bezier(.55,0,1,.45) infinite; }
@keyframes gxStretch { 0% { transform:scale(1,1); } 50% { transform:scale(.92,1.5); } 58% { transform:scale(.86,1.6); } 62% { transform:scale(1.08,.82); } 70% { transform:scale(.97,1.06); } 78%,100% { transform:scale(1,1); } }
@keyframes gxDrop { 0%,57% { transform:translateY(-3px) scale(.5,.9); opacity:0; } 60% { transform:translateY(0) scale(.9,1.25); opacity:1; } 70% { transform:translateY(8px) scale(1,1); opacity:1; } 92% { opacity:.85; } 100% { transform:translateY(34px) scale(.9,1.05); opacity:0; } }
/* timings per drip (class, not inline style: the page CSP blocks inline styles) */
.gameview:not(.full) .stage[data-motif] .casefx .gxd1 { animation-duration:3.5s; animation-delay:-.4s; } .gameview:not(.full) .stage[data-motif] .casefx .gxd2 { animation-duration:3.9s; animation-delay:-1.7s; } .gameview:not(.full) .stage[data-motif] .casefx .gxd3 { animation-duration:3.2s; animation-delay:-2.5s; } .gameview:not(.full) .stage[data-motif] .casefx .gxd4 { animation-duration:4.1s; animation-delay:-1.1s; } .gameview:not(.full) .stage[data-motif] .casefx .gxd5 { animation-duration:3.6s; animation-delay:-2.9s; }
/* phones: 3 extra drips, not 5 */
@media (max-width: 600px) { .casefx .gxd2, .casefx .gxd4 { display:none !important; } }
@media (prefers-reduced-motion: reduce) { .casefx .gx { animation:none !important; } .casefx .gxdrop { display:none !important; } }

/* ===== Reset double check (preview, Nov 2): red "Yes, reset" in the sheet ===== */
.sheetbody .sbtn.danger { background:#e5484d; color:#fff; min-height:44px; }
.sheetbody .sbtn.danger:focus-visible { outline:3px solid #ffb3b5; outline-offset:2px; }

/* ===== SOL fee line mock (preview, Nov 2): same fine print as #feedFine; [hidden] must win over .fine display ===== */
#solFeeFine[hidden] { display:none !important; }
#solFeeFine { margin-top:2px; }
/* ===== Favorites (NEXT BATCH preview) ===== */
.favstar { width:44px; height:44px; min-width:44px; flex:none; display:inline-flex; align-items:center; justify-content:center; padding:0; border-radius:50%; background:none; color:#8a97a8; font-size:26px; line-height:1; touch-action:manipulation; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.favstar.on { color:var(--gold); text-shadow:0 0 8px rgba(242,201,76,.55); }
.favstar:focus-visible { outline:2px solid var(--cyan); outline-offset:-4px; }
/* Pets list: the star is a sibling of the row button, left of the ✓ */
.prowwrap { position:relative; margin-bottom:9px; --tap:max(44px, calc(44px / var(--fs, 1))); } /* the watch is drawn scaled down: keep the real on-screen tap at 44px or more */
.prowwrap > .prow { margin-bottom:0; padding-right:calc(var(--tap) + 12px); }
.prowwrap.on > .prow { padding-right:12px; }
.prowwrap.on > .prow .ptext { padding-right:calc(var(--tap) + 2px); }
.favstar.row { position:absolute; top:50%; right:6px; transform:translateY(-50%); z-index:2; width:var(--tap); height:var(--tap); }
.prowwrap.on > .favstar.row { right:44px; }
.favnote { font-size:14px; font-weight:800; color:var(--gold); text-align:center; margin:0 4px 9px; }
/* Home cards: star in the top right corner (the ✓ Active badge stays top centre) */
.pcwrap { display:grid; flex:none; scroll-snap-align:center; }
.pcwrap > .pcard { grid-area:1/1; }
.favstar.card { grid-area:1/1; justify-self:end; align-self:start; z-index:3; margin:2px 2px 0 0; font-size:24px; }
body.desk .pcwrap { min-width:0; }
/* Pet screen: star next to the "✔ MNK3YS · starter pet" line */
.verified { display:flex; align-items:center; justify-content:center; gap:2px; }
.favstar.home { --tap:max(44px, calc(44px / var(--fs, 1))); width:var(--tap); height:var(--tap); margin:calc((var(--tap) - 20px) / -2) 0; font-size:22px; }

/* REAL TIME ONLY preview: check-in card, stickers, hunger countdown */
#careCard .carexp { font-size:17px; font-weight:800; margin-top:8px; }
#careCard #checkinBtn { width:100%; min-height:44px; margin-top:4px; }
#careCard #checkinBtn:disabled { opacity:.75; }
.stickers { display:flex; gap:8px; justify-content:center; margin-top:8px; }
.sticker { font-size:24px; width:44px; height:44px; display:flex; align-items:center; justify-content:center; border-radius:50%; background:#141b28; border:2px solid #2c3a52; filter:grayscale(1); opacity:.45; }
.sticker.on { filter:none; opacity:1; border-color:var(--gold); }
.ps.hcount { color:var(--cyan); }
/* Narrow phones (320-360px wide, build Nov 2 2026): the favorite star no longer eats the pet name's width. The star moves to the
   bottom-right corner of the row (same 44px+ tap area), so the name line uses the full width; only the two small lines under it
   keep room for the star. 390px and wider are unchanged. */
@media (max-width:360px) {
  .prowwrap > .prow { padding-right:12px; }
  .prowwrap.on > .prow .ptext { padding-right:0; }
  .prowwrap > .prow .ps { padding-right:calc(var(--tap) - 6px); }
  .prowwrap.on > .prow .ps { padding-right:calc(var(--tap) - 6px); }
  .prowwrap.on > .prow .pcheck { display:none; } /* selected row keeps its cyan ring; the tick makes room so nothing sits on the name or the star */
  .favstar.row, .prowwrap.on > .favstar.row { top:auto; bottom:0; right:6px; transform:none; }
}
/* Ranks security bar (lb_auth.js, build Nov 2 2026) */
.lbauth { margin:8px 0 10px; padding:10px 12px; border-radius:16px; background:#141b28; border:1px solid #2a3646; text-align:center; }
.lbauth .sbtn { margin-top:8px; }
.lbauthp { font-size:14px; font-weight:700; color:var(--dim); margin:0; line-height:1.35; }
.lbauthok { font-size:16px; font-weight:900; color:#7CFF3A; margin:0 0 4px; }

/* ===== CAPO FACES (Nov 2 2026): 4 Caporegime Del $Empire watch faces, same drip layer + motion as MNK3YLabs Drip.
   Galaxy Glow (Skins: Galaxy), Golden Robe (Outfit: Golden Robe), Radiation Zone (Backgrounds: Radiation), Spooky Ember (Skins: Demonic, Nov 3).
   Only colours change; painted look = smooth drips. The screen background is not touched. ===== */
.stage[data-case="capo_galaxy"] #cxMkDrip stop:nth-child(1) { stop-color:#e3d1ff; }
.stage[data-case="capo_galaxy"] #cxMkDrip stop:nth-child(2) { stop-color:#9b5cff; }
.stage[data-case="capo_galaxy"] #cxMkDrip stop:nth-child(3) { stop-color:#4a1fa8; }
.stage[data-case="capo_galaxy"] #cxBlu stop:nth-child(1) { stop-color:#e3d1ff; }
.stage[data-case="capo_galaxy"] #cxBlu stop:nth-child(2) { stop-color:#9b5cff; }
.stage[data-case="capo_galaxy"] #cxBlu stop:nth-child(3) { stop-color:#4a1fa8; }
.stage[data-case="capo_galaxy"] #cxGold stop:nth-child(1) { stop-color:#e3d1ff; }
.stage[data-case="capo_galaxy"] #cxGold stop:nth-child(2) { stop-color:#9b5cff; }
.stage[data-case="capo_galaxy"] #cxGold stop:nth-child(3) { stop-color:#4a1fa8; }
.stage[data-case="capo_galaxy"] .casefx .fx-drip .fxtop .tw path:first-child { stroke:#4a1fa8; } .stage[data-case="capo_galaxy"] .casefx .fx-drip .fxtop .tw path + path { fill:#2a1260; }
.stage[data-case="capo_galaxy"][data-motif="drip"] .casefx .fx-drip { filter:drop-shadow(0 0 4px rgba(159,232,255,.70)); }
.mw[data-case="capo_galaxy"][data-motif="drip"] .mfx i { background:linear-gradient(#e3d1ff,#9b5cff 55%,#4a1fa8); }
.stage[data-case="capo_golden"] #cxMkDrip stop:nth-child(1) { stop-color:#fff1a8; }
.stage[data-case="capo_golden"] #cxMkDrip stop:nth-child(2) { stop-color:#f2c230; }
.stage[data-case="capo_golden"] #cxMkDrip stop:nth-child(3) { stop-color:#a8740c; }
.stage[data-case="capo_golden"] #cxBlu stop:nth-child(1) { stop-color:#fff1a8; }
.stage[data-case="capo_golden"] #cxBlu stop:nth-child(2) { stop-color:#f2c230; }
.stage[data-case="capo_golden"] #cxBlu stop:nth-child(3) { stop-color:#a8740c; }
.stage[data-case="capo_golden"] #cxGold stop:nth-child(1) { stop-color:#fff1a8; }
.stage[data-case="capo_golden"] #cxGold stop:nth-child(2) { stop-color:#f2c230; }
.stage[data-case="capo_golden"] #cxGold stop:nth-child(3) { stop-color:#a8740c; }
.stage[data-case="capo_golden"] .casefx .fx-drip .fxtop .tw path:first-child { stroke:#a8740c; } .stage[data-case="capo_golden"] .casefx .fx-drip .fxtop .tw path + path { fill:#5a3d06; }
.stage[data-case="capo_golden"][data-motif="drip"] .casefx .fx-drip { filter:drop-shadow(0 0 4px rgba(255,214,90,.70)); }
.mw[data-case="capo_golden"][data-motif="drip"] .mfx i { background:linear-gradient(#fff1a8,#f2c230 55%,#a8740c); }
.stage[data-case="capo_radiation"] #cxMkDrip stop:nth-child(1) { stop-color:#f2ff9a; }
.stage[data-case="capo_radiation"] #cxMkDrip stop:nth-child(2) { stop-color:#c6f21e; }
.stage[data-case="capo_radiation"] #cxMkDrip stop:nth-child(3) { stop-color:#5f8f10; }
.stage[data-case="capo_radiation"] #cxBlu stop:nth-child(1) { stop-color:#f2ff9a; }
.stage[data-case="capo_radiation"] #cxBlu stop:nth-child(2) { stop-color:#c6f21e; }
.stage[data-case="capo_radiation"] #cxBlu stop:nth-child(3) { stop-color:#5f8f10; }
.stage[data-case="capo_radiation"] #cxGold stop:nth-child(1) { stop-color:#f2ff9a; }
.stage[data-case="capo_radiation"] #cxGold stop:nth-child(2) { stop-color:#c6f21e; }
.stage[data-case="capo_radiation"] #cxGold stop:nth-child(3) { stop-color:#5f8f10; }
.stage[data-case="capo_radiation"] .casefx .fx-drip .fxtop .tw path:first-child { stroke:#5f8f10; } .stage[data-case="capo_radiation"] .casefx .fx-drip .fxtop .tw path + path { fill:#e6ff3a; }
.stage[data-case="capo_radiation"][data-motif="drip"] .casefx .fx-drip { filter:drop-shadow(0 0 4px rgba(214,255,58,.75)); }
.mw[data-case="capo_radiation"][data-motif="drip"] .mfx i { background:linear-gradient(#f2ff9a,#c6f21e 55%,#5f8f10); }
/* Spooky Ember (Skins: Demonic): warm ember drips, spooky-cute, nothing gory */
.stage[data-case="capo_demonic"] #cxMkDrip stop:nth-child(1) { stop-color:#ffd0a0; }
.stage[data-case="capo_demonic"] #cxMkDrip stop:nth-child(2) { stop-color:#ff6a2a; }
.stage[data-case="capo_demonic"] #cxMkDrip stop:nth-child(3) { stop-color:#a81e12; }
.stage[data-case="capo_demonic"] #cxBlu stop:nth-child(1) { stop-color:#ffd0a0; }
.stage[data-case="capo_demonic"] #cxBlu stop:nth-child(2) { stop-color:#ff6a2a; }
.stage[data-case="capo_demonic"] #cxBlu stop:nth-child(3) { stop-color:#a81e12; }
.stage[data-case="capo_demonic"] #cxGold stop:nth-child(1) { stop-color:#ffd0a0; }
.stage[data-case="capo_demonic"] #cxGold stop:nth-child(2) { stop-color:#ff6a2a; }
.stage[data-case="capo_demonic"] #cxGold stop:nth-child(3) { stop-color:#a81e12; }
.stage[data-case="capo_demonic"] .casefx .fx-drip .fxtop .tw path:first-child { stroke:#a81e12; } .stage[data-case="capo_demonic"] .casefx .fx-drip .fxtop .tw path + path { fill:#ffd23f; }
.stage[data-case="capo_demonic"][data-motif="drip"] .casefx .fx-drip { filter:drop-shadow(0 0 4px rgba(255,110,50,.75)); }
.mw[data-case="capo_demonic"][data-motif="drip"] .mfx i { background:linear-gradient(#ffd0a0,#ff6a2a 55%,#a81e12); }
/* CAPO FLAIR (Azgog, Nov 3): small painted trait details on the case edge / band only (index.html fxacc a-capo_*). Screen untouched. */
.casefx .fxacc > g[class^="a-capo_"] { display:none; }
.stage[data-case="capo_galaxy"] .casefx .fxacc > g.a-capo_galaxy, .stage[data-case="capo_golden"] .casefx .fxacc > g.a-capo_golden,
.stage[data-case="capo_radiation"] .casefx .fxacc > g.a-capo_radiation, .stage[data-case="capo_demonic"] .casefx .fxacc > g.a-capo_demonic { display:inline; }
.casefx g[class^="a-capo_"] rect { }
.stage[data-case^="capo_"] .casefx .fx-drip .fxtop > circle.tw { display:none; }
.casefx g[class^="a-capo_"] .ctw { animation:capoTw 1.8s ease-in-out infinite alternate; } .casefx g[class^="a-capo_"] .ctw:nth-child(2n) { animation-delay:.9s; }
.casefx .a-capo_demonic .cfl { animation:capoFl 1.2s ease-in-out infinite; transform-box:fill-box; transform-origin:50% 100%; }  .casefx .a-capo_demonic .cfl:nth-child(2n) { animation-delay:.4s; }
.stage[data-case="capo_radiation"] .casefx .fx-drip .dr { filter:drop-shadow(0 0 3px rgba(230,255,58,.8)); }
@keyframes capoTw { 0% { opacity:1; } 100% { opacity:.35; } }
@keyframes capoFl { 0% { transform:scaleY(1); } 50% { transform:scaleY(1.2); } 100% { transform:scaleY(.9); } }
@media (prefers-reduced-motion: reduce) { .casefx g[class^="a-capo_"] .ctw, .casefx .a-capo_demonic .cfl { animation:none; } }
/* Capo Drip (basic Capo face, Nov 3): red + white drips, like MNK3YLabs Drip */
.stage[data-case="capo"] #cxMkDrip stop:nth-child(1) { stop-color:#ff9a9a; }
.stage[data-case="capo"] #cxMkDrip stop:nth-child(2) { stop-color:#ff4d4d; }
.stage[data-case="capo"] #cxMkDrip stop:nth-child(3) { stop-color:#a3191a; }
.stage[data-case="capo"] #cxBlu stop:nth-child(1) { stop-color:#ff9a9a; }
.stage[data-case="capo"] #cxBlu stop:nth-child(2) { stop-color:#ff4d4d; }
.stage[data-case="capo"] #cxBlu stop:nth-child(3) { stop-color:#a3191a; }
.stage[data-case="capo"] #cxGold stop:nth-child(1) { stop-color:#ff9a9a; }
.stage[data-case="capo"] #cxGold stop:nth-child(2) { stop-color:#ff4d4d; }
.stage[data-case="capo"] #cxGold stop:nth-child(3) { stop-color:#a3191a; }
.stage[data-case="capo"] .casefx .fx-drip .fxtop .tw path:first-child { stroke:#a3191a; } .stage[data-case="capo"] .casefx .fx-drip .fxtop .tw path + path { fill:#ffffff; }
.stage[data-case="capo"][data-motif="drip"] .casefx .fx-drip { filter:drop-shadow(0 0 4px rgba(255,77,77,.6)); }
.mw[data-case="capo"][data-motif="drip"] .mfx i { background:linear-gradient(#ff9a9a,#ff4d4d 55%,#a3191a); }

/* ===== Adopt chooser (Nov 19): GraveMarket + Orbis badges, 44px+ tap targets, links only ===== */
.adoptpick { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:10px 0 4px; }
.adoptmkt { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-width:112px; min-height:96px; padding:10px 12px; box-sizing:border-box;
  border-radius:14px; background:rgba(255,255,255,.06); border:2px solid rgba(255,255,255,.14); color:#fff; text-decoration:none; font-weight:800; }
.adoptmkt:active { background:rgba(72,216,252,.18); } .adoptmkt:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
.mktbadge { width:48px; height:48px; object-fit:contain; border-radius:8px; display:block; background:transparent; }
.mktname { font-size:14px; }

/* ===== STORE + $EMPIRE feeds + free unlock fee (Nov 3, preview, flags) ===== */
.storegrid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:8px; }
.storecard { display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 8px; border-radius:14px; background:rgba(255,255,255,.05); border:2px solid rgba(255,255,255,.12); text-align:center; }
.storecard.capo { border-color:rgba(255,214,90,.45); } .storecard.focus { box-shadow:inset 0 0 0 3px var(--cyan); }
.storeart { width:64px; height:64px; object-fit:contain; } .storename { font-size:14px; } .storefor { font-size:11px; opacity:.75; }
.storebuy { min-height:44px; width:100%; font-size:13px; } .storebuy.owned { background:rgba(124,255,58,.14); }
.sbtn.storeopen { min-height:44px; width:100%; margin-top:8px; }
.solfeetag { display:inline-block; margin-left:6px; padding:1px 6px; border-radius:8px; font-size:10px; font-style:normal; background:rgba(159,232,255,.16); color:#9fe8ff; }
/* Nov 19: fee tag pinned bottom right on one line, so Snack, Meal and Feast tags line up and never clip */
.food { position:relative; }
.food > .solfeetag { position:absolute; right:14px; bottom:5px; margin:0; white-space:nowrap; line-height:15px; font-size:11px; font-weight:800; }
.food.empire { border-color:rgba(255,214,90,.5); }
.stage[data-case="capo_night"] #cxMkDrip stop:nth-child(1) { stop-color:#fff1a8; }
.stage[data-case="capo_night"] #cxMkDrip stop:nth-child(2) { stop-color:#ffd65a; }
.stage[data-case="capo_night"] #cxMkDrip stop:nth-child(3) { stop-color:#a8840c; }
.stage[data-case="capo_night"] #cxBlu stop:nth-child(1) { stop-color:#fff1a8; }
.stage[data-case="capo_night"] #cxBlu stop:nth-child(2) { stop-color:#ffd65a; }
.stage[data-case="capo_night"] #cxBlu stop:nth-child(3) { stop-color:#a8840c; }
.stage[data-case="capo_night"] #cxGold stop:nth-child(1) { stop-color:#fff1a8; }
.stage[data-case="capo_night"] #cxGold stop:nth-child(2) { stop-color:#ffd65a; }
.stage[data-case="capo_night"] #cxGold stop:nth-child(3) { stop-color:#a8840c; }
.stage[data-case="capo_night"][data-motif="drip"] .casefx .fx-drip { }
.mw[data-case="capo_night"][data-motif="drip"] .mfx i { background:linear-gradient(#fff1a8,#ffd65a 55%,#a8840c); }
.stage[data-case="capo_velvet"] #cxMkDrip stop:nth-child(1) { stop-color:#ffd6e6; }
.stage[data-case="capo_velvet"] #cxMkDrip stop:nth-child(2) { stop-color:#ff8fb8; }
.stage[data-case="capo_velvet"] #cxMkDrip stop:nth-child(3) { stop-color:#a3245a; }
.stage[data-case="capo_velvet"] #cxBlu stop:nth-child(1) { stop-color:#ffd6e6; }
.stage[data-case="capo_velvet"] #cxBlu stop:nth-child(2) { stop-color:#ff8fb8; }
.stage[data-case="capo_velvet"] #cxBlu stop:nth-child(3) { stop-color:#a3245a; }
.stage[data-case="capo_velvet"] #cxGold stop:nth-child(1) { stop-color:#ffd6e6; }
.stage[data-case="capo_velvet"] #cxGold stop:nth-child(2) { stop-color:#ff8fb8; }
.stage[data-case="capo_velvet"] #cxGold stop:nth-child(3) { stop-color:#a3245a; }
.stage[data-case="capo_velvet"][data-motif="drip"] .casefx .fx-drip { }
.mw[data-case="capo_velvet"][data-motif="drip"] .mfx i { background:linear-gradient(#ffd6e6,#ff8fb8 55%,#a3245a); }
/* ===== Charms on the TOP band (Nov 3): beside the badge on clean gold, away from the credit and drips. Gentle swing, sparkle on Feed, tap reaction.
   44px tap target. Cosmetic only. Reduced motion = no swing, no bounce. ===== */
.bandcharm { position:absolute; left:262px; top:4px; width:48px; height:56px; padding:0; margin:0; border:0; background:none; z-index:6; cursor:pointer;
  transform-origin:24px 4px; animation:charmSwing 2s ease-in-out infinite; -webkit-tap-highlight-color:transparent; }
.bandcharm[hidden] { display:none; }
.bandcharm:focus-visible { outline:2px solid var(--cyan,#48D8FC); outline-offset:2px; border-radius:10px; }
.bandcharm .charmloop { position:absolute; left:19px; top:0; width:10px; height:10px; border:2px solid #ffd65a; border-radius:50%; box-sizing:border-box; box-shadow:0 1px 1px rgba(0,0,0,.5); }
.bandcharm .charmloop::after { content:""; position:absolute; left:2px; top:8px; width:2px; height:6px; background:#ffd65a; }
.bandcharm .charmart { position:absolute; left:2px; top:13px; width:44px; height:44px; object-fit:contain; pointer-events:none; filter:drop-shadow(0 2px 2px rgba(0,0,0,.55)); }
.bandcharm.tapped { animation:charmTip .6s ease-out, charmSwing 2s ease-in-out .6s infinite; }
.charmspark { position:absolute; left:4px; top:14px; width:40px; height:40px; pointer-events:none; border-radius:50%;
  background:radial-gradient(circle,#fff 0 6%,rgba(255,245,180,.9) 7% 14%,transparent 15%),conic-gradient(from 0deg,transparent 0 10deg,rgba(255,245,180,.95) 10deg 14deg,transparent 14deg 45deg,rgba(255,245,180,.95) 45deg 49deg,transparent 49deg 90deg,rgba(255,245,180,.95) 90deg 94deg,transparent 94deg 135deg,rgba(255,245,180,.95) 135deg 139deg,transparent 139deg 180deg,rgba(255,245,180,.95) 180deg 184deg,transparent 184deg 225deg,rgba(255,245,180,.95) 225deg 229deg,transparent 229deg 270deg,rgba(255,245,180,.95) 270deg 274deg,transparent 274deg 315deg,rgba(255,245,180,.95) 315deg 319deg,transparent 319deg);
  -webkit-mask:radial-gradient(circle,#000 0 70%,transparent 71%); mask:radial-gradient(circle,#000 0 70%,transparent 71%); animation:charmSpark .65s ease-out forwards; }
.charmbubble { position:absolute; left:300px; top:8px; z-index:7; max-width:140px; padding:5px 9px; border-radius:12px; background:#fff; color:#1a1a1f; font:700 12px/1.2 inherit; white-space:nowrap; box-shadow:0 2px 6px rgba(0,0,0,.4); pointer-events:none; }
.charmbubble[hidden] { display:none; } .charmbubble.show { animation:charmPop .25s ease-out; }
.gameview.full .bandcharm, .gameview.full .charmbubble { display:none; }
@keyframes charmSwing { 0%,100% { transform:rotate(8deg); } 50% { transform:rotate(-8deg); } }
@keyframes charmTip { 0% { transform:rotate(0) translateY(0); } 30% { transform:rotate(-22deg) translateY(-4px); } 60% { transform:rotate(14deg) translateY(0); } 100% { transform:rotate(0); } }
@keyframes charmSpark { 0% { transform:scale(.4); opacity:1; } 100% { transform:scale(1.5); opacity:0; } }
@keyframes charmPop { 0% { transform:scale(.6); opacity:0; } 100% { transform:scale(1); opacity:1; } }
@media (prefers-reduced-motion: reduce) { .bandcharm, .bandcharm.tapped { animation:none; } .charmspark { animation:none; opacity:.8; } .charmbubble.show { animation:none; } }

/* Side button menu (CSS only) */
.sidemenu { position:absolute; inset:0; z-index:60; display:flex; flex-direction:column; justify-content:center; gap:12px; padding:0 44px; background:rgba(0,0,0,.82); }
.sidemenu[hidden] { display:none; }
.smrow { display:flex; align-items:center; gap:14px; min-height:66px; padding:0 22px; border-radius:33px; border:2px solid var(--case-rim,#48D8FC); background:#11182a; color:#fff; font-family:inherit; font-weight:800; font-size:22px; line-height:1; text-decoration:none; text-align:left; cursor:pointer; box-shadow:0 0 14px var(--case-glow,transparent); }
.smrow:active, .smrow:focus-visible { background:#1d2a48; outline:2px solid var(--case-accent,#F2C94C); }
#screen .sidemenu .smrow { font-family:inherit; font-weight:900; font-size:22px; letter-spacing:.02em; color:#fff; -webkit-font-smoothing:antialiased; }

/* ===== Nov 10 merge: Duo opening, home bottom bar, side menu ===== */
/* Side button menu in Duo Horizontal: opens on the right-hand screen, clear of the crown, dots and the side button itself */
.gameview.fold-h .sidemenu { left:408px; padding:0 60px; }
/* Duo has two layouts, Portrait and Horizontal. Held sideways it is always Horizontal, so no layout button there */
@media (orientation: landscape) { .gameview .gamebar #foldPick { display:none; } }
/* 'Portrait' is a longer label than 'Auto': keep the Duo top controls on one centred row on small phones, so the Duo device sits exactly where it does live */
@media (max-width: 420px) { .gameview.full .gamebar { flex-wrap:nowrap; gap:4px; } .gameview.full .gamebar .foldbtn { padding:0 9px; gap:4px; } .gameview.full .gamebar .viewswitch .homebtn { padding:0 10px; } }
/* the home bottom bar replaces the Looks row; desktop column keeps it full width */
body.desk .leftcol .looks3 { align-self:stretch; }
/* ===== Nov 10: first screen without the stats tiles (Hunger / Strength / Level live on the Stats screen).
   The picture, mood pill and name row stay exactly where they are; Feed and Jam sit centred in the space left under the name row. */
#pg-home .statgrid, #pg-home .fullinfo { display:none; }
.gameview #pg-home .homebtns { top:360px; }
/* Round 3 (Nov 10): Duo Portrait and Horizontal show the stats again (too much empty space without them). Watch stays clean. */
.gameview.fold-v #pg-home .statgrid, .gameview.fold-h #pg-home .statgrid { display:grid; }
.gameview.fold-v #pg-home .fullinfo, .gameview.fold-h #pg-home .fullinfo { display:block; }
/* spacing tidied so the lower / right screen is evenly filled (the picture and its spot stay exactly as live) */
.gameview.fold-v #pg-home .statgrid { top:504px; }
.gameview.fold-v #pg-home .fullinfo { top:602px; }
.gameview.fold-v #pg-home .homebtns { top:652px; }
.gameview.fold-v #pg-home .homebtns .btn { height:78px; }
.gameview.fold-h .moodpill { top:92px; }
.gameview.fold-h .concept { top:99px; }
.gameview.fold-h .verified { top:138px; }
.gameview.fold-h #pg-home .statgrid { top:172px; }
.gameview.fold-h #pg-home .fullinfo { top:264px; }
.gameview.fold-h #pg-home .homebtns { top:304px; }
.gameview.fold-h #pg-home .homebtns .btn { height:78px; }

/* ===== Nov 10: painted instrument icons (assets/inst/*.png) in Looks and on the Jam groove label */
.lopt .le img.instimg { width:30px; height:30px; object-fit:contain; display:block; margin:0 auto; }
.groove .le { display:inline-block; vertical-align:-5px; margin-right:2px; }
.groove .le img.instimg { width:22px; height:22px; object-fit:contain; display:block; }

/* Nov 19: archived Blunana art next to Store $BLUNANA amounts */
.blnbtn { display:flex !important; flex-direction:column; align-items:center; justify-content:center; white-space:normal !important; line-height:1.15; }
.blnrow { white-space:nowrap; display:flex; align-items:center; gap:5px; }
.blnunit { display:block; }
.blnicon { height:26px; width:auto; flex:none; }

/* Nov 19: Feed layout, wallet note right under BETA, only the list scrolls so nothing slides under the header */
#ov-feed { overflow:hidden; }
#ov-feed > #feedTop:empty { display:none; }
#feedTop .feedtopnote { margin:6px 0 6px; padding:0; border-top:0; }
#feedTop .feedtopnote .rfnote { margin:0 0 6px; }
#ov-feed > .feedscroll { flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
/* Nov 19: network status next to the clock */
.tright { display:flex; align-items:center; gap:7px; }
.netstat { display:inline-flex; align-items:center; color:#fff; line-height:1; }
.netstat[hidden] { display:none; }
.netstat.ns-lte { font-weight:900; font-size:13px; letter-spacing:.5px; }
.netstat.ns-wifi svg { display:block; }
/* Nov 19: animated Wi-Fi bars, dot then arcs light up in turn */
.netstat.ns-wifi svg path { animation:wifibar 1.8s ease-in-out infinite; }
.netstat.ns-wifi svg .w1 { animation-delay:0s; } .netstat.ns-wifi svg .w2 { animation-delay:.25s; } .netstat.ns-wifi svg .w3 { animation-delay:.5s; }
@keyframes wifibar { 0%, 100% { opacity:.35; } 35%, 70% { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .netstat.ns-wifi svg path { animation:none; } }

/* Nov 19: instrument picker in the Jam menu. Header stays put, only the menu scrolls. */
#ov-jamch { overflow:hidden; }
#ov-jamch.show { overflow:hidden; }
#ov-jamch > .ovhdr { flex:0 0 auto; }
#ov-jamch > .jamchscroll { flex:1 1 auto; min-height:0; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.gameview.fold-v #ov-jamch, .gameview.fold-h #ov-jamch { overflow:hidden; }
.jaminst { margin:2px 0 4px; }
.jaminsth { font-size:13px; font-weight:900; color:var(--cyan); margin:0 0 6px; letter-spacing:.3px; }
.jaminstgrid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:6px; }
.jaminstbtn { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-width:0; min-height:58px; padding:4px 2px; box-sizing:border-box;
  border-radius:12px; background:rgba(255,255,255,.06); color:#fff; font-family:inherit; font-size:10px; font-weight:800; line-height:1.15; text-align:center; border:0; cursor:pointer; }
.jaminstbtn .le { width:28px; height:28px; display:flex; align-items:center; justify-content:center; font-size:18px; }
.jaminstbtn .le img.instimg { width:26px; height:26px; object-fit:contain; display:block; }
.jaminstbtn .jaminstnm { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jaminstbtn .jaminstlv { font-size:9px; font-weight:800; color:var(--gold); }
.jaminstbtn.on { box-shadow:inset 0 0 0 2px var(--cyan); background:rgba(72,216,252,.14); }
.jaminstbtn.locked { opacity:.55; }
.jaminstbtn:focus-visible { outline:3px solid var(--cyan); outline-offset:2px; }
.gameview.full .jaminstgrid { gap:8px; }
.gameview.full .jaminstbtn { min-height:64px; font-size:11px; }
.gameview.full .jaminstbtn .le, .gameview.full .jaminstbtn .le img.instimg { width:30px; height:30px; }
.gameview.fold-v .jaminstgrid { grid-template-columns:repeat(5, minmax(0, 1fr)); gap:5px; }
.gameview.fold-v .jaminstbtn { min-height:52px; }

/* Duo Portrait: the pet frame stays centred in the 396-wide screen ((396 - 312) / 2 = 42). Size unchanged. Do not use transform (bob animation). */
.gameview.full.fold-v #petWrap, .gameview.full.fold-v .petwrap { left:42px; width:312px; height:312px; }

/* Phone landscape: portrait-only gate (tablets/iPads stay free) */
.g-rotate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
  background: radial-gradient(circle at 30% 10%, #12305a 0, #070b18 55%, #03040a 100%);
  text-align: center;
  box-sizing: border-box;
}
.g-rotate__icon {
  display: grid;
  place-items: center;
  width: clamp(2.6rem, 9vw, 3.4rem);
  height: clamp(2.6rem, 9vw, 3.4rem);
  color: var(--cyan);
  animation: g-rotate-spin 1.6s linear infinite;
}
.g-rotate__icon svg { width: 100%; height: 100%; display: block; }
.g-rotate__msg {
  margin: 0;
  font-family: Nun, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 1000;
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
@keyframes g-rotate-spin { to { transform: rotate(360deg); } }
/* Phones only — never cover desk/tablet layouts */
@media (orientation: landscape) and (max-height: 500px) and (max-width: 900px) {
  html:not(.desk) .g-rotate { display: flex; }
  html:not(.desk) .g-rotate[hidden] { display: flex; }
  html:not(.desk),
  html:not(.desk) body {
    overflow: hidden !important;
    height: 100%;
    overscroll-behavior: none;
    touch-action: none;
  }
  html:not(.desk) body > :not(.g-rotate) {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .g-rotate__icon { animation: none; }
}
