/* Jaiho91 x Arrow – styles */
@font-face{font-family:"Baloo 2";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/baloo-2-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Baloo 2";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/baloo-2-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Baloo 2";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/baloo-2-latin-800-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  --bg:#bfe6ff; --bg2:#e9f6ff; --board:#ffffff; --ink:#1d2a4d; --muted:rgba(29,42,77,.6);
  --chip:#ffffff; --accent:#ff4d8d; --arrow:#2f7cf6;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  height:100%;
}
*,*::before,*::after{box-sizing:inherit}
html{height:100%;scroll-padding-top:env(safe-area-inset-top,0px);background:var(--bg)}
body{
  height:100%;margin:0;background:var(--bg);background-image:radial-gradient(circle at 20% 0%,var(--bg2) 0,transparent 55%),radial-gradient(circle at 100% 100%,var(--bg2) 0,transparent 50%);color:var(--ink);
  font-family:"Baloo 2",system-ui,-apple-system,"Segoe UI",sans-serif;
  overflow:hidden;transition:background-color .5s ease,color .5s ease;
  -webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;touch-action:manipulation;
}
.app{height:100%;display:flex;flex-direction:column;max-width:620px;margin:0 auto;padding:10px 14px 12px}
header{display:flex;align-items:center;gap:10px}
.brand{flex:1;min-width:0}
.brand .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.95rem;font-weight:700;color:var(--muted);line-height:1.1}
.brand .lvl{font-size:1.9rem;font-weight:800;line-height:1;letter-spacing:-.01em}
.hearts{display:flex;gap:3px}
.hearts svg{width:25px;height:25px;transition:transform .25s,opacity .25s}
.hearts svg.off{opacity:.25;filter:grayscale(1);transform:scale(.82)}
.hearts svg.pop{animation:pop .45s ease}
@keyframes pop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(.82)}}
.round{width:40px;height:40px;border-radius:50%;border:0;background:var(--chip);box-shadow:0 3px 0 rgba(29,42,77,.12);color:var(--ink);font-family:inherit;font-weight:800;font-size:1.2rem;line-height:1;cursor:pointer;display:grid;place-items:center}
.sub{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;font-weight:600;color:var(--muted);font-size:1rem}
.chipbtn{border:0;background:var(--chip);color:var(--ink);font-family:inherit;font-weight:700;font-size:.9rem;line-height:1;padding:8px 12px;border-radius:999px;cursor:pointer;display:flex;align-items:center;gap:6px}
.swatch{width:12px;height:12px;border-radius:50%;background:var(--arrow);display:inline-block}
main{flex:1;min-height:0;position:relative;margin:8px 0 10px}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block;cursor:pointer;touch-action:none}
.fit{position:absolute;right:8px;bottom:8px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:var(--ink);box-shadow:0 3px 0 rgba(29,42,77,.15);display:none;place-items:center;cursor:pointer}
.fit.show{display:grid}
.fit svg{width:22px;height:22px}
footer{display:flex;gap:8px}
.btn{flex:1;min-height:52px;border:0;border-radius:16px;background:var(--chip);box-shadow:0 4px 0 rgba(29,42,77,.12);color:var(--ink);font-family:inherit;font-weight:800;font-size:1.05rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;position:relative;transition:transform .12s}
.btn:active,.round:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(29,42,77,.12)}
.btn svg{width:20px;height:20px;flex:none}
.btn.empty .badge{opacity:.35}
.bonus{display:flex;justify-content:center;gap:8px;margin:-6px 0 18px}
.bonus span{background:var(--bg2);border-radius:999px;padding:6px 14px;font-weight:800;font-size:1rem}
.btn .badge{background:var(--arrow);color:#fff;border-radius:999px;font-size:.85rem;padding:3px 8px 2px;line-height:1}
.btn.cs{background:var(--accent);color:#fff;flex:.8}
@media (max-width:400px){.btn{font-size:.95rem;gap:5px}}
button:focus-visible,a:focus-visible{outline:3px solid var(--arrow);outline-offset:2px}
.toast{position:absolute;left:50%;top:10px;transform:translate(-50%,-8px);background:var(--board);color:var(--ink);padding:8px 16px;border-radius:999px;font-weight:800;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 6px 20px rgba(0,0,0,.25);white-space:nowrap}
.toast.show{opacity:1;transform:translate(-50%,0)}
.modal{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(29,42,77,.35);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.modal.open{display:flex}
.card{width:100%;max-width:380px;background:var(--board);box-shadow:0 18px 40px rgba(29,42,77,.25);color:var(--ink);border-radius:24px;padding:24px 20px 18px;text-align:center;animation:rise .3s ease}
@keyframes rise{from{transform:translateY(16px) scale(.96);opacity:0}to{transform:none;opacity:1}}
.card h2{margin:0 0 6px;font-size:2rem;line-height:1.1;font-weight:800}
.card p{margin:0 0 18px;color:var(--muted);font-size:1.05rem;line-height:1.45}
.card .actions{display:flex;flex-direction:column;gap:8px}
.card .btn{flex:none;width:100%}
.card .btn{background:var(--bg2)}
.card .btn.primary{background:var(--arrow);color:#fff}
.card .help{display:grid;gap:10px;text-align:left;margin:0 0 18px;color:var(--ink);font-size:1rem;line-height:1.4}
.card .help div{display:flex;gap:10px;align-items:flex-start}
.card .help b{flex:none;width:26px;height:26px;border-radius:50%;background:var(--arrow);color:#fff;display:grid;place-items:center;font-size:.95rem}
.subR{display:flex;gap:6px;align-items:center}
.chipbtn{background:#fff;box-shadow:0 3px 0 rgba(29,42,77,.12);font-size:1rem}
@keyframes wob{0%,100%{transform:rotate(0)}50%{transform:rotate(18deg) scale(1.08)}}
i.coin{display:inline-block;width:16px;height:16px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#ffe680,#f5b301 60%,#d18f00);box-shadow:inset 0 0 0 2px #ffd34d;vertical-align:-2px;margin-right:4px;flex:none}
.combo{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);pointer-events:none;opacity:0;font-weight:800;color:var(--accent);white-space:nowrap;text-align:center;line-height:1;
  -webkit-text-stroke:6px #fff;paint-order:stroke fill;filter:drop-shadow(0 6px 10px rgba(29,42,77,.3))}
.combo small{display:block;font-size:.5em;margin-top:4px;color:#e09a00;-webkit-text-stroke:4px #fff}
.combo.show{animation:combo 1s ease-out forwards}
@keyframes combo{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}18%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}30%{transform:translate(-50%,-50%) scale(1)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-90%) scale(1)}}
.daytag{font-size:2.6rem;font-weight:800;line-height:1;margin:0 0 10px;color:var(--accent)}
canvas.wheel{display:block;width:min(280px,72vw);height:min(280px,72vw);margin:0 auto 16px}
.note{font-size:.95rem!important;margin:-8px 0 14px!important}
.shophead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.shophead h2{margin:0;font-size:1.6rem}
.wallet{display:flex;align-items:center;font-weight:800;font-size:1.1rem;background:var(--bg2);padding:6px 12px;border-radius:999px}
.tabs{display:flex;gap:6px;margin-bottom:10px}
.tabs button{flex:1;border:0;border-radius:12px;padding:9px;font-family:inherit;font-weight:800;font-size:1rem;background:var(--bg2);color:var(--ink);cursor:pointer}
.tabs button.on{background:var(--ink);color:#fff}
.sgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:min(52vh,430px);overflow-y:auto;margin-bottom:14px;padding:2px}
.sitem{background:var(--bg2);border-radius:14px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px;border:2px solid transparent}
.sitem.using{border-color:var(--ink)}
.sitem canvas{width:100%;height:58px;background:#fff;border-radius:10px}
.sitem b{font-size:.95rem}
.sbtn{width:100%;border:0;border-radius:10px;padding:7px;font-family:inherit;font-weight:800;font-size:.95rem;cursor:pointer;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center}
.sbtn.on{background:transparent;color:var(--ink);cursor:default}
.sbtn.buy{background:#f5b301;color:#3d2a00}
.sbtn.poor{opacity:.55}
.bonus{flex-wrap:wrap}
.bonus span{display:inline-flex;align-items:center;white-space:nowrap}
header{position:relative;justify-content:center;min-height:44px}
.title{margin:0;font-size:clamp(1.25rem,6.1vw,2.1rem);font-weight:800;line-height:1.05;text-align:center;letter-spacing:.005em;white-space:nowrap;padding:0 44px;text-shadow:0 3px 0 rgba(29,42,77,.16)}
.title .tx{color:var(--muted);font-size:.7em}
.title .sp{display:inline-block;width:.18em}
.help{position:absolute;right:0;top:50%;transform:translateY(-50%)}
.help:active{transform:translateY(calc(-50% + 2px))}
.sub{margin-top:8px;color:var(--ink)}
.lv{background:var(--ink);color:#fff;font-weight:800;font-size:1.15rem;line-height:1;padding:7px 12px 6px;border-radius:12px}
.arrowtag{display:inline-flex;align-items:center;height:32px;padding:0 22px 0 16px;background:var(--accent);color:#fff;font-weight:800;font-size:1.15rem;line-height:1;
  clip-path:polygon(0 0,calc(100% - 14px) 0,100% 50%,calc(100% - 14px) 100%,0 100%,9px 50%);filter:drop-shadow(0 2px 0 rgba(29,42,77,.15))}
.grow{flex:1}
footer{gap:7px}
.ibtn{flex:1;min-width:0;height:60px;border:0;border-radius:18px;background:#fff;box-shadow:0 4px 0 rgba(29,42,77,.12);display:grid;place-items:center;position:relative;cursor:pointer;text-decoration:none;transition:transform .12s}
.ibtn:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(29,42,77,.12)}
.ibtn svg{width:36px;height:36px}
.ibtn .badge{position:absolute;top:-7px;right:-4px;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--accent);color:#fff;font-weight:800;font-size:.85rem;line-height:24px;text-align:center;border:2px solid #fff}
.ibtn .badge.gold{background:#f5b301;color:#3d2a00}
.ibtn.empty .badge{opacity:.45}
.ibtn.cs{background:var(--accent)}
.wheelbtn{display:none}
.wheelbtn.show{display:grid;animation:none}
.wheelbtn .spinme{animation:spinw 3s ease-in-out infinite}
.wheelbtn .pin{position:absolute;width:36px;height:36px;pointer-events:none}
.wheelbtn::after{content:"";position:absolute;top:-4px;right:-3px;width:14px;height:14px;border-radius:50%;background:#ff3b5c;border:2px solid #fff}
@keyframes spinw{0%,40%{transform:rotate(0)}70%{transform:rotate(200deg)}100%{transform:rotate(360deg)}}
.ibtn{background:transparent!important;box-shadow:none!important;height:62px;border-radius:0}
.ibtn:active{transform:scale(.9)!important}
.ibtn svg{width:52px!important;height:52px!important;filter:drop-shadow(0 3px 3px rgba(29,42,77,.18))}
.ibtn .badge{top:-2px;right:calc(50% - 38px)}
.ibtn.cs{background:transparent!important}
.wheelbtn::after{display:none}
.help{width:46px;height:46px;position:absolute;right:-4px;top:50%;transform:translateY(-50%)}
.help:active{transform:translateY(-50%) scale(.9)!important}
.help svg{width:44px!important;height:44px!important}
.stat{display:inline-flex;align-items:center;gap:4px;font-weight:800}
.stat svg.lvicon{width:50px;height:50px;filter:drop-shadow(0 2px 2px rgba(29,42,77,.15))}
.stat svg.aricon{width:34px;height:34px}
.stat b{font-size:1.6rem;line-height:1;color:var(--ink);-webkit-text-stroke:5px #fff;paint-order:stroke fill}
.sub{margin-top:4px;gap:10px}
footer{background:#fff;border-radius:24px;padding:8px 6px;box-shadow:0 6px 0 rgba(29,42,77,.1),0 10px 24px rgba(29,42,77,.12);gap:0;align-items:center}
.ibtn{height:54px}
.ibtn.sm svg{width:42px!important;height:42px!important}
.ibtn svg{width:48px!important;height:48px!important}
.ibtn .badge{top:-3px;right:calc(50% - 34px)}
.ibtn.sm .badge{right:calc(50% - 32px)}
.ibtn+.ibtn{border-left:1.5px solid rgba(29,42,77,.08)}
.hearts{display:block;width:52px;height:52px;filter:drop-shadow(0 2px 2px rgba(29,42,77,.15))}
.hearts svg{width:52px!important;height:52px!important;opacity:1!important;transform:none!important;filter:none!important}
.hearts.off{filter:grayscale(1) opacity(.5)}
.hearts.pop{animation:hpop .5s ease}
@keyframes hpop{0%{transform:scale(1)}30%{transform:scale(1.3) rotate(-8deg)}60%{transform:scale(.9) rotate(5deg)}100%{transform:scale(1)}}
/* whole game inside one frame */
body{padding:calc(env(safe-area-inset-top,0px) + 8px) 8px calc(env(safe-area-inset-bottom,0px) + 8px)}
:root{padding-top:0!important;padding-bottom:0!important}
.app{height:100%;background:rgba(255,255,255,.62);border:3px solid #fff;border-radius:28px;box-shadow:0 10px 30px rgba(29,42,77,.16),inset 0 0 0 1px rgba(29,42,77,.04);padding:12px 12px 10px;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
footer{background:transparent!important;box-shadow:none!important;padding:4px 0 0!important;border-top:1.5px solid rgba(29,42,77,.08);border-radius:0!important}
.ibtn+.ibtn{border-left:0!important}
.help{right:0}
body{display:flex;align-items:center;justify-content:center}
.app{height:auto!important;width:auto;max-width:none;margin:0;display:flex;flex-direction:column}
main{flex:none!important;margin:8px auto 8px!important}
header{min-height:0}
.title{padding:0}
.sub{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;margin-top:4px}
.sl{display:flex;align-items:center;gap:6px}
.coinstat{justify-self:end;border:0;background:transparent;padding:0;cursor:pointer;font-family:inherit}
.coinstat:active{transform:scale(.92)}
.coinstat svg{width:30px;height:30px;filter:drop-shadow(0 2px 2px rgba(29,42,77,.15))}
.stat svg.lvicon{width:40px!important;height:40px!important}
.stat svg.aricon{width:26px!important;height:26px!important}
.stat b{font-size:1.3rem!important}
.hearts{width:42px!important;height:42px!important}
.hearts svg{width:42px!important;height:42px!important}
.ibtn{height:46px!important}
.ibtn svg{width:38px!important;height:38px!important}
.ibtn.sm svg{width:33px!important;height:33px!important}
.ibtn .badge{min-width:20px;height:20px;line-height:17px;font-size:.75rem;padding:0 5px;top:-2px;right:calc(50% - 28px)!important}
body{padding:calc(env(safe-area-inset-top,0px) + 4px) 4px calc(env(safe-area-inset-bottom,0px) + 4px)!important}
.app{padding:8px 8px 6px!important;border-width:2px!important;border-radius:22px!important}
header{display:grid!important;grid-template-columns:44px 1fr 44px;align-items:center;gap:4px;position:static}
.title{font-size:clamp(1.15rem,5.4vw,1.75rem)!important}
.hbtn{display:grid;place-items:center;width:40px;height:40px;justify-self:end}
.hbtn:active{transform:scale(.9)}
.hbtn svg{width:34px;height:34px;filter:drop-shadow(0 2px 2px rgba(29,42,77,.15))}
header .stat svg.lvicon{width:36px!important;height:36px!important}
.sub{margin-top:2px!important}
.stat svg.aricon{width:22px!important;height:22px!important}
.stat b{font-size:1.15rem!important;-webkit-text-stroke:4px #fff}
.hearts,.hearts svg{width:34px!important;height:34px!important}
.coinstat svg{width:24px!important;height:24px!important}
main{margin:6px auto 4px!important}
footer{padding-top:2px!important}
.ibtn{height:38px!important}
.ibtn svg,.ibtn.sm svg{width:30px!important;height:30px!important}
.ibtn .badge{min-width:18px;height:18px;line-height:15px;font-size:.7rem;right:calc(50% - 24px)!important;top:-3px}
.sgrid,.modal{touch-action:pan-y}
.zoomctl{position:absolute;left:6px;bottom:6px;display:none;flex-direction:column;gap:6px;z-index:2}
.zoomctl.show{display:flex}
.zoomctl button{width:34px;height:34px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:var(--ink);box-shadow:0 2px 0 rgba(29,42,77,.15),0 2px 8px rgba(29,42,77,.12);display:grid;place-items:center;cursor:pointer;padding:0}
.zoomctl button:disabled{opacity:.35}
.zoomctl button:active{transform:scale(.9)}
.zoomctl svg{width:18px;height:18px}
.fit{width:34px!important;height:34px!important;right:6px!important;bottom:6px!important}
.fit svg{width:18px!important;height:18px!important}
html,body{overscroll-behavior:none;touch-action:none}
.zoomgrp{display:none;align-items:center;gap:2px;background:var(--bg2);border-radius:999px;padding:3px;margin-left:4px;flex:none}
.zoomgrp.show{display:flex}
.zoomgrp button{width:30px;height:30px;border-radius:50%;border:0;background:#fff;color:#4e1d9e;display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 2px 0 rgba(29,42,77,.12)}
.zoomgrp button:disabled{opacity:.35}
.zoomgrp button:active{transform:scale(.9)}
.zoomgrp svg{width:16px;height:16px}
.zoomgrp .zfit{display:none}
.zoomgrp .zfit.show{display:grid}
/* game-style modal buttons */
.card .btn{height:56px;border-radius:18px;font-size:1.15rem;font-weight:800;position:relative;overflow:hidden;gap:8px;
  background:linear-gradient(#ffffff,#e8ecf4);color:var(--ink);border:2px solid #c9d0dd;box-shadow:0 5px 0 #b7bfce,0 8px 14px rgba(29,42,77,.12);transition:transform .08s,box-shadow .08s}
.card .btn::before{content:"";position:absolute;left:10px;right:10px;top:4px;height:42%;border-radius:12px;background:linear-gradient(rgba(255,255,255,.65),rgba(255,255,255,0));pointer-events:none}
.card .btn:active{transform:translateY(4px);box-shadow:0 1px 0 #b7bfce,0 3px 6px rgba(29,42,77,.12)}
.card .btn.primary{background:linear-gradient(#6ee98a,#22b14f);color:#fff;border-color:#138a3b;text-shadow:0 2px 0 rgba(10,80,30,.45);box-shadow:0 5px 0 #138a3b,0 8px 16px rgba(19,138,59,.3)}
.card .btn.primary::before{background:linear-gradient(rgba(255,255,255,.5),rgba(255,255,255,0))}
.card .btn.primary:active{box-shadow:0 1px 0 #138a3b,0 3px 6px rgba(19,138,59,.3)}
.card .btn span{position:relative}
.card .btn .bi{width:24px;height:24px;flex:none;position:relative;filter:drop-shadow(0 2px 0 rgba(10,80,30,.35))}
.card .actions{gap:12px}
.bigheart{width:84px;height:84px;margin:-6px auto 4px;animation:hb 1.2s ease-in-out infinite}
.bigheart svg{width:100%;height:100%;filter:drop-shadow(0 4px 4px rgba(143,15,46,.25))}
@keyframes hb{0%,100%{transform:scale(1)}50%{transform:scale(1.06) rotate(-3deg)}}
.card h2{margin-bottom:16px}
/* ---------- illustrated home + game backgrounds ---------- */
html{background:#7fc8f5!important;background-image:none!important}
body{background:transparent!important;background-image:none!important}
body::before{content:"";position:fixed;inset:-20px;z-index:-1;background:#7fc8f5 var(--img-bg) center/cover no-repeat;filter:blur(8px) saturate(1.1);opacity:.9}
.home{position:fixed;inset:0;z-index:40;display:flex;justify-content:center;background:#6cc7ff var(--img-bg) center/cover no-repeat;transition:opacity .3s ease}
.home.hide{opacity:0;pointer-events:none}
/* image 2 inside the game frame, faded so the board stays easy to read */
.app{position:relative;isolation:isolate;overflow:hidden}
.app::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:var(--img-panel) center/cover no-repeat;opacity:.55}
.app::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:rgba(255,255,255,.35)}
.hframe{width:100%;max-width:520px;height:100%;display:flex;flex-direction:column;align-items:center;
  padding:calc(env(safe-area-inset-top,0px) + 10px) 12px calc(env(safe-area-inset-bottom,0px) + 10px)}
.htop{width:100%;display:flex;justify-content:space-between;align-items:center}
.coinpill{display:flex;align-items:center;gap:6px;height:40px;padding:0 4px 0 2px;border-radius:999px;border:3px solid #fff;background:linear-gradient(#7a4a2a,#4e2a14);box-shadow:0 3px 0 rgba(40,20,5,.4);cursor:pointer;font-family:inherit}
.coinpill .cico{width:38px;height:38px;margin-left:-8px;display:grid}
.coinpill .cico svg{width:100%;height:100%;filter:drop-shadow(0 2px 1px rgba(0,0,0,.3))}
.coinpill b{color:#fff;font-size:1.1rem;font-weight:800;min-width:46px;text-align:center}
.coinpill .plus{width:28px;height:28px;border-radius:50%;background:linear-gradient(#7ee36b,#2bb33a);border:2px solid #fff;color:#fff;font-weight:800;font-size:1.3rem;line-height:22px;text-align:center;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18)}
.coinpill:active,.hround:active{transform:scale(.93)}
.hround{width:48px;height:48px;border-radius:50%;border:3px solid #fff;background:linear-gradient(#5cb4ff,#2a6fe0);display:grid;place-items:center;box-shadow:0 3px 0 rgba(10,40,110,.4)}
.hround svg{width:34px;height:34px}
.hlogo{width:min(86%,360px);height:auto;margin-top:6px;filter:drop-shadow(0 6px 0 rgba(59,31,120,.35));animation:logoIn .8s cubic-bezier(.34,1.56,.64,1) both}
@keyframes logoIn{from{transform:translateY(-14px) scale(.9);opacity:.25}to{transform:none;opacity:1}}
.hmid{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;padding-bottom:14px}
.lvnode{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#ff9ccf,#ff3f95 60%,#d81b72);border:5px solid #fff;
  box-shadow:0 7px 0 #a8125a,0 0 0 8px rgba(255,255,255,.35),0 0 40px 10px rgba(255,214,90,.75);animation:nodeBob 1.6s ease-in-out infinite}
.lvnode span{font-weight:800;font-size:2.4rem;color:#fff;text-shadow:0 3px 0 #a8125a,0 0 2px #a8125a}
@keyframes nodeBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.playbtn{width:min(78%,320px);height:84px;border-radius:999px;border:4px solid #fff;cursor:pointer;font-family:inherit;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;
  background:linear-gradient(#8ef06a,#33b82a);box-shadow:0 8px 0 #1f7d1a,0 14px 24px rgba(20,80,20,.35);margin-bottom:16px}
.playbtn::before{content:"";position:absolute;left:18px;right:18px;top:6px;height:38%;border-radius:999px;background:linear-gradient(rgba(255,255,255,.6),rgba(255,255,255,0))}
.playbtn b{position:relative;font-size:2.4rem;font-weight:800;color:#fff;letter-spacing:.03em;text-shadow:0 3px 0 #1f7d1a,0 0 2px #1f7d1a}
.playbtn small{position:relative;font-size:.95rem;font-weight:800;color:#eaffd9;text-shadow:0 2px 0 #1f7d1a}
.playbtn:active{transform:translateY(6px);box-shadow:0 2px 0 #1f7d1a}
.hnav{width:100%;max-width:460px;display:flex;align-items:center;height:76px;border-radius:24px;border:3px solid #fff;background:linear-gradient(#b06bff,#7a34e0);box-shadow:0 6px 0 #4e1d9e,0 10px 22px rgba(60,20,120,.35);padding:0 6px}
.hnav button{flex:1;height:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;cursor:pointer;font-family:inherit;position:relative}
.hnav button svg{width:46px;height:46px;filter:drop-shadow(0 3px 2px rgba(40,10,90,.35))}
.hnav button span:not(.dot){color:#fff;font-weight:800;font-size:1.35rem;text-shadow:0 2px 0 #4e1d9e}
.hnav button:active{transform:scale(.94)}
.hnav .sep{width:2px;height:60%;background:rgba(255,255,255,.35);border-radius:2px}
.hnav .dot{position:absolute;top:10px;left:calc(50% - 26px);width:14px;height:14px;border-radius:50%;background:#ff3b5c;border:2px solid #fff;display:none;z-index:1}
.hnav .dot.show{display:block}
.streak{display:flex;gap:6px;margin-top:10px}
.streak i{width:11px;height:11px;border-radius:50%;background:rgba(255,255,255,.55);border:2px solid #fff;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.streak i.on{background:#ffb703}
.streak i.now{background:#ff3f95}
@media (max-height:640px){.lvnode{width:72px;height:72px}.lvnode span{font-size:1.9rem}.playbtn{height:68px}.playbtn b{font-size:2rem}.hnav{height:62px}}
/* game page: match the illustrated world */
.app{background:transparent!important}
footer{background:linear-gradient(#b06bff,#7a34e0)!important;border:2px solid #fff!important;border-radius:18px!important;box-shadow:0 4px 0 #4e1d9e!important;padding:2px 4px!important;margin-top:2px}
footer .zoomgrp{background:rgba(255,255,255,.22)}
/* ---------- game-style popups ---------- */
.modal{background:radial-gradient(circle at 50% 45%,rgba(120,70,220,.55),rgba(25,10,60,.82))!important;backdrop-filter:blur(2px)}
.modal.win::before{content:"";position:absolute;left:50%;top:46%;width:180vmax;height:180vmax;transform:translate(-50%,-50%);
  background:repeating-conic-gradient(rgba(255,240,170,.22) 0 10deg,rgba(255,240,170,0) 10deg 20deg);animation:rays 18s linear infinite;pointer-events:none;
  -webkit-mask:radial-gradient(circle,#000 0,transparent 45%);mask:radial-gradient(circle,#000 0,transparent 45%)}
@keyframes rays{to{transform:translate(-50%,-50%) rotate(360deg)}}
.card{position:relative;overflow:visible!important;background:linear-gradient(#fffdf6,#fff0f8)!important;border:5px solid #fff;border-radius:30px!important;
  box-shadow:0 0 0 5px #8a4dff,0 11px 0 5px #4e1d9e,0 26px 44px rgba(20,8,60,.5)!important;padding:54px 18px 20px!important;max-width:360px!important;animation:popIn .45s cubic-bezier(.34,1.56,.64,1)!important}
@keyframes popIn{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.card h2{position:absolute!important;top:-30px;left:50%;transform:translateX(-50%);width:max-content;min-width:230px;max-width:112%;margin:0!important;
  padding:9px 46px 18px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%2064%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22a%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23ff8ac0%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23ff2f86%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d%3D%22M2%2018h34v42H2l12-21z%22%20fill%3D%22%23c2156a%22/%3E%3Cpath%20d%3D%22M298%2018h-34v42h34l-12-21z%22%20fill%3D%22%23c2156a%22/%3E%3Cpath%20d%3D%22M28%2050l10%2010V48z%22%20fill%3D%22%237d0a43%22/%3E%3Cpath%20d%3D%22M272%2050l-10%2010V48z%22%20fill%3D%22%237d0a43%22/%3E%3Crect%20x%3D%2224%22%20y%3D%224%22%20width%3D%22252%22%20height%3D%2246%22%20rx%3D%2210%22%20fill%3D%22url%28%23a%29%22%20stroke%3D%22%23fff%22%20stroke-width%3D%223%22/%3E%3Crect%20x%3D%2234%22%20y%3D%229%22%20width%3D%22232%22%20height%3D%2214%22%20rx%3D%227%22%20fill%3D%22%23fff%22%20opacity%3D%22.3%22/%3E%3C/svg%3E") center/100% 100% no-repeat;color:#fff!important;font-size:1.65rem!important;line-height:1.1;text-align:center;white-space:nowrap;
  text-shadow:0 3px 0 #a8125a,0 0 2px #a8125a,2px 0 0 #a8125a,-2px 0 0 #a8125a;filter:drop-shadow(0 4px 0 rgba(80,10,50,.35))}
.card .bigheart{margin:4px auto 14px!important;width:100px!important;height:100px!important}
.modal.lose .card{box-shadow:0 0 0 5px #ff5d8f,0 11px 0 5px #a8125a,0 26px 44px rgba(20,8,60,.5)!important}
.stars{display:flex;justify-content:center;align-items:flex-end;gap:2px;margin:6px 0 2px}
.stars i{width:64px;height:64px;display:block;opacity:0;animation:starPop .5s cubic-bezier(.34,1.8,.64,1) forwards}
.stars i.s2{width:86px;height:86px;margin-bottom:12px;animation-delay:.25s}
.stars i.s1{animation-delay:.1s;transform:rotate(-12deg)} .stars i.s3{animation-delay:.4s}
.stars i svg{width:100%;height:100%;filter:drop-shadow(0 3px 3px rgba(120,70,0,.3))}
@keyframes starPop{0%{opacity:0;transform:scale(.2) rotate(-40deg)}100%{opacity:1;transform:scale(1)}}
.cheer{font-weight:800;font-size:2rem;line-height:1;background:linear-gradient(90deg,#ff9f1c,#ff3f95,#8a4dff,#3a7bff);-webkit-background-clip:text;background-clip:text;color:transparent;margin:4px 0 10px;filter:drop-shadow(0 2px 0 rgba(59,31,120,.2))}
.reward{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(#7a4a2a,#4e2a14);color:#fff;font-weight:800;font-size:1.5rem;padding:6px 20px 6px 8px;border-radius:999px;border:3px solid #fff;box-shadow:0 4px 0 rgba(40,20,5,.35);margin-bottom:18px}
i.coin.big{width:34px;height:34px;margin:0}
.card .daytag{display:none}
.shophead{justify-content:flex-end!important;margin-top:-10px}
.card .btn.primary{border-width:3px;border-color:#fff;box-shadow:0 5px 0 #1f7d1a,0 8px 16px rgba(19,138,59,.3)!important;background:linear-gradient(#8ef06a,#33b82a)!important}
.card .btn{border-radius:999px!important;border:3px solid #fff!important}
.card .btn:not(.primary){background:linear-gradient(#ffffff,#e9e3ff)!important;color:#4e1d9e!important;box-shadow:0 5px 0 #b9a8e8,0 8px 14px rgba(29,42,77,.12)!important}
/* compact result popups */
.modal.compact .card,.modal.lose .card{max-width:270px!important;padding:40px 14px 14px!important;border-radius:24px!important}
.modal.compact .card h2,.modal.lose .card h2{font-size:1.25rem!important;min-width:170px;padding:7px 34px 14px;top:-24px}
.modal.compact .cheer{font-size:1.5rem;margin:2px 0 8px}
.modal.compact .reward{font-size:1.1rem;padding:4px 14px 4px 6px;gap:6px;margin-bottom:14px;border-width:2px}
.modal.compact i.coin.big{width:24px;height:24px}
.modal.compact .card .btn,.modal.lose .card .btn{height:44px!important;font-size:1rem!important;white-space:nowrap}
.modal.compact .card .btn .bi,.modal.lose .card .btn .bi{width:18px;height:18px}
.modal.lose .card .bigheart{width:70px!important;height:70px!important;margin:0 auto 10px!important}
.modal.lose .card .actions{gap:9px}
/* compact v2: smaller + tinted with the current theme */
.modal.compact .card,.modal.lose .card{max-width:236px!important;padding:34px 12px 12px!important;border-radius:22px!important;
  background:linear-gradient(180deg,var(--bg) 0%,var(--bg) 100%)!important}
.modal.compact .card::after,.modal.lose .card::after{content:"";position:absolute;inset:0;border-radius:18px;pointer-events:none;
  background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.4),rgba(255,255,255,0) 45%)}
.modal.compact .card>*,.modal.lose .card>*{position:relative;z-index:1}
.modal.compact .card h2,.modal.lose .card h2{position:absolute!important;font-size:1.1rem!important;min-width:150px;padding:6px 30px 12px;top:-21px;z-index:2}
.modal.compact .reward{font-size:1rem;padding:3px 12px 3px 5px;margin:4px 0 12px}
.modal.compact i.coin.big{width:22px;height:22px}
.modal.compact .card .btn,.modal.lose .card .btn{height:40px!important;font-size:.95rem!important}
.modal.lose .card .bigheart{width:58px!important;height:58px!important;margin:2px auto 10px!important}
.modal.lose .card .actions{gap:8px}
.coinpill{cursor:default!important;padding-right:16px!important}
.coinpill:active{transform:none!important}
.playbtn b{font-size:2.6rem}
/* compact PLAY + icon-only shop/spin */
.playbtn{width:min(56%,220px)!important;height:62px!important;margin-bottom:12px!important;border-width:3px!important;box-shadow:0 6px 0 #1f7d1a,0 10px 18px rgba(20,80,20,.3)!important}
.playbtn b{font-size:1.9rem!important}
.playbtn:active{transform:translateY(5px)!important;box-shadow:0 1px 0 #1f7d1a!important}
.hnav{background:none!important;border:0!important;box-shadow:none!important;height:auto!important;padding:0!important;justify-content:center;gap:40px;width:auto!important}
.hnav button{flex:none!important;width:64px;height:64px!important;padding:0}
.hnav button svg{width:64px!important;height:64px!important;filter:drop-shadow(0 4px 3px rgba(20,10,60,.35))!important}
.hnav .dot{top:0!important;left:auto!important;right:-2px}
/* ---------- boosters in game ---------- */
.ibtn.boost{display:none}
.ibtn.boost.show{display:grid}
.ibtn.boost>span:first-child{width:30px;height:30px;display:grid}
.ibtn.boost>span:first-child svg{width:100%!important;height:100%!important}
.lifebox{display:flex;align-items:center;gap:2px}
.shieldtag{display:none;align-items:center;gap:1px}
.shieldtag.show{display:flex}
.shieldtag>span{width:22px;height:22px;display:grid}
.shieldtag svg{width:100%;height:100%}
.shieldtag b{font-size:.9rem;font-weight:800;color:#0b5d6b}
#stage.aiming{cursor:crosshair}
#stage.aiming::after{content:"";position:absolute;inset:0;border-radius:12px;box-shadow:inset 0 0 0 3px #ff8a1f,inset 0 0 24px rgba(255,138,31,.45);pointer-events:none;animation:aimPulse 1s ease-in-out infinite}
@keyframes aimPulse{50%{box-shadow:inset 0 0 0 3px #ff3b1f,inset 0 0 34px rgba(255,59,31,.55)}}
/* ---------- worlds (game page) ---------- */
body[data-world="sunset"]::before{background:linear-gradient(#ff8a6b,#ffc46e 55%,#ffe2a8)!important;filter:none!important}
body[data-world="sunset"] .app::before{background:radial-gradient(circle at 50% 108%,#fff2b0 0,#ffd36e 18%,rgba(255,211,110,0) 40%),linear-gradient(#ff9a76,#ffd36e)!important;opacity:.55!important}
body[data-world="snow"]::before{background:radial-gradient(circle,#fff 0 2px,transparent 3px) 0 0/34px 34px,radial-gradient(circle,#fff 0 1.5px,transparent 2.5px) 17px 17px/34px 34px,linear-gradient(#bfe3ff,#f2f9ff)!important;filter:none!important}
body[data-world="snow"] .app::before{background:radial-gradient(circle,#fff 0 2px,transparent 3px) 0 0/28px 28px,linear-gradient(#cfe9ff,#ffffff)!important;opacity:.8!important}
body[data-world="night"]::before{background:radial-gradient(circle,#fff 0 1.2px,transparent 2px) 0 0/46px 46px,radial-gradient(circle,rgba(255,255,255,.7) 0 1px,transparent 1.6px) 23px 15px/38px 38px,linear-gradient(#141c4f,#3b2a7a)!important;filter:none!important}
body[data-world="night"] .app::before{background:radial-gradient(circle,#fff 0 1.2px,transparent 2px) 0 0/40px 40px,linear-gradient(#1b2a6b,#4b2c91)!important;opacity:1!important}
body[data-world="night"] .app::after{background:rgba(20,20,60,.15)!important}
body[data-world="night"] .app{--ink:#ffffff;--muted:rgba(255,255,255,.75)}
body[data-world="night"] .stat b{color:#fff!important;-webkit-text-stroke:4px #1b2a6b!important}
/* ---------- shop modal ---------- */
.modal.shopm .card{max-width:380px!important;padding-top:44px!important}
.shophead{display:flex;justify-content:flex-end!important;margin:-6px 0 8px!important}
.wallet{background:linear-gradient(#7a4a2a,#4e2a14)!important;color:#fff;border:2px solid #fff;box-shadow:0 3px 0 rgba(40,20,5,.3)}
.tabs button{border-radius:999px!important;background:#efe8ff!important;color:#4e1d9e!important;border:2px solid #fff!important;box-shadow:0 3px 0 #c9b8f2}
.tabs button.on{background:linear-gradient(#b06bff,#7a34e0)!important;color:#fff!important;box-shadow:0 3px 0 #4e1d9e}
.bgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}
.bitem{position:relative;border-radius:16px;padding:10px 6px 8px;display:flex;flex-direction:column;align-items:center;gap:2px;border:2px solid #fff;box-shadow:0 3px 0 rgba(29,42,77,.12)}
.bitem svg{width:46px;height:46px;filter:drop-shadow(0 2px 2px rgba(29,42,77,.2))}
.bitem b{font-size:.92rem;line-height:1.1;text-align:center}
.bitem small{font-size:.7rem;line-height:1.15;color:var(--muted);text-align:center;min-height:2.3em}
.bitem .own{position:absolute;top:5px;left:6px;font-size:.72rem;font-weight:800;background:rgba(255,255,255,.85);border-radius:999px;padding:1px 6px}
.r-free{background:linear-gradient(#f3f4f8,#e3e6ee)}
.r-common{background:linear-gradient(#e2f2ff,#bfe0ff)}
.r-rare{background:linear-gradient(#f1e6ff,#d9c2ff)}
.r-epic{background:linear-gradient(#fff6d2,#ffd977);box-shadow:0 3px 0 #d39b00,0 0 12px rgba(255,190,40,.45)!important}
.stage{height:118px;border-radius:16px;margin-bottom:8px;border:2px solid #fff;box-shadow:inset 0 2px 6px rgba(29,42,77,.12);overflow:hidden}
.stage canvas{width:100%;height:100%;display:block}
.stage.w-sky{background:linear-gradient(#9fdcff,#e8f7ff)}
.stage.w-sunset{background:linear-gradient(#ff9a76,#ffd36e)}
.stage.w-snow{background:radial-gradient(circle,#fff 0 2px,transparent 3px) 0 0/22px 22px,linear-gradient(#cfe9ff,#fff)}
.stage.w-night{background:radial-gradient(circle,#fff 0 1px,transparent 1.8px) 0 0/26px 26px,linear-gradient(#1b2a6b,#4b2c91)}
.chips{display:flex;gap:5px;margin-bottom:8px;overflow-x:auto}
.chips button{flex:1;border:2px solid #fff;border-radius:999px;padding:6px 4px;font-family:inherit;font-weight:800;font-size:.82rem;background:#f3eefe;color:#4e1d9e;cursor:pointer;white-space:nowrap}
.chips button.on{background:#ffb703;color:#3d2a00}
.sgrid{grid-template-columns:repeat(3,1fr)!important;gap:7px!important;max-height:min(34vh,300px)!important}
.sitem{position:relative;border:2px solid #fff!important;border-radius:14px!important;padding:6px!important;cursor:pointer;box-shadow:0 3px 0 rgba(29,42,77,.12)}
.sitem.sel{outline:3px solid #ff3f95;outline-offset:1px}
.sitem canvas{height:46px!important;background:rgba(255,255,255,.75)!important}
.sitem b{font-size:.78rem!important;line-height:1.1;text-align:center}
.sitem.locked canvas{filter:saturate(.6)}
.sitem .lock{position:absolute;top:2px;right:4px;font-size:.75rem}
.sitem .using{font-size:.75rem;font-weight:800;color:#138a3b;padding:5px 0}
.sbtn{font-size:.8rem!important;padding:5px 4px!important;border-radius:999px!important}
.sbtn.buy{background:linear-gradient(#ffd34d,#f5a300)!important;color:#3d2a00!important;box-shadow:0 2px 0 #b07000}
.sbtn i.coin{width:13px;height:13px}
/* smaller in-game title so the board gets more room */
.app header .title{font-size:clamp(.95rem,4.3vw,1.25rem)!important;text-shadow:0 2px 0 rgba(29,42,77,.14)!important}
.app header{grid-template-columns:34px 1fr 34px!important;min-height:0!important}
.app header .stat svg.lvicon{width:30px!important;height:30px!important}
.app .sub{margin-top:0!important}
/* ---------- purchase feedback ---------- */
.bitem.bought,.sitem.bought{animation:boughtPop .6s cubic-bezier(.34,1.8,.64,1);box-shadow:0 0 0 3px #33d17a,0 0 18px rgba(51,209,122,.7)!important}
@keyframes boughtPop{0%{transform:scale(1)}35%{transform:scale(1.12)}100%{transform:scale(1)}}
.gainfx{position:absolute;left:50%;top:30%;transform:translateX(-50%);font-weight:800;font-size:1.5rem;color:#fff;-webkit-text-stroke:5px #138a3b;paint-order:stroke fill;pointer-events:none;animation:gainUp 1.1s ease-out forwards;z-index:3}
@keyframes gainUp{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}20%{opacity:1;transform:translate(-50%,0) scale(1.2)}100%{opacity:0;transform:translate(-50%,-46px) scale(1)}}
.wallet{position:relative}
.wallet.spent{animation:walletShake .45s ease}
@keyframes walletShake{20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-2px)}80%{transform:translateX(2px)}}
.costfx{position:absolute;right:6px;top:-4px;font-weight:800;font-size:1rem;color:#ff3b5c;-webkit-text-stroke:3px #fff;paint-order:stroke fill;animation:costUp 1.1s ease-out forwards;pointer-events:none}
@keyframes costUp{0%{opacity:0;transform:translateY(6px)}20%{opacity:1}100%{opacity:0;transform:translateY(-26px)}}
.buyfx{position:absolute;inset:0;z-index:20;display:grid;place-items:center;border-radius:inherit;background:rgba(40,15,90,.35);animation:fadeIn .2s ease;pointer-events:none}
.buyfx.out{animation:fadeOut .35s ease forwards}
@keyframes fadeIn{from{opacity:0}} @keyframes fadeOut{to{opacity:0}}
.buybox{position:relative;width:180px;padding:18px 12px 14px;border-radius:22px;background:linear-gradient(#fffdf2,#ffe9a8);border:4px solid #fff;box-shadow:0 0 0 4px #33b82a,0 8px 0 4px #1f7d1a,0 18px 30px rgba(20,8,60,.4);
  display:flex;flex-direction:column;align-items:center;gap:4px;animation:popIn .45s cubic-bezier(.34,1.8,.64,1)}
.buybox .rays{position:absolute;left:50%;top:38%;width:260px;height:260px;transform:translate(-50%,-50%);border-radius:50%;z-index:-1;
  background:repeating-conic-gradient(rgba(255,214,90,.55) 0 12deg,rgba(255,214,90,0) 12deg 24deg);animation:rays 6s linear infinite;
  -webkit-mask:radial-gradient(circle,#000 0,transparent 65%);mask:radial-gradient(circle,#000 0,transparent 65%)}
.buybox .bico{width:64px;height:64px;display:grid;place-items:center;animation:bob2 .9s ease-in-out infinite}
.buybox .bico svg{width:100%;height:100%;filter:drop-shadow(0 3px 3px rgba(29,42,77,.25))}
.buybox .bico img{width:84px;height:auto;border-radius:10px;border:2px solid #fff}
@keyframes bob2{50%{transform:translateY(-5px) scale(1.06)}}
.buybox b{font-size:1.4rem;font-weight:800;color:#fff;-webkit-text-stroke:6px #1f7d1a;paint-order:stroke fill}
.buybox small{font-size:.9rem;font-weight:800;color:#3d2a00;text-align:center}
.buybox .spk{position:absolute;left:50%;top:40%;width:9px;height:9px;border-radius:2px;animation:spark .8s ease-out forwards}
@keyframes spark{from{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) scale(.3) rotate(220deg);opacity:0}}
/* clearer in-game title */
.app header .title{font-size:clamp(1.25rem,5.6vw,1.65rem)!important;letter-spacing:.01em;
  text-shadow:2px 0 0 #fff,-2px 0 0 #fff,0 2px 0 #fff,0 -2px 0 #fff,1.5px 1.5px 0 #fff,-1.5px 1.5px 0 #fff,1.5px -1.5px 0 #fff,-1.5px -1.5px 0 #fff,0 4px 0 rgba(59,31,120,.35)!important}
.app header .title .tx{color:#3b1f78!important}
.app header{grid-template-columns:36px 1fr 36px!important}
.app header .stat svg.lvicon{width:34px!important;height:34px!important}
.app header .title span:nth-child(1){color:#ff7a00!important}
.app header .title span:nth-child(2){color:#e6247a!important}
.app header .title span:nth-child(3){color:#0fa3a3!important}
.app header .title span:nth-child(4){color:#f2a900!important}
.app header .title span:nth-child(5){color:#6a3fe0!important}
.app header .title span:nth-child(6){color:#1f8be0!important}
.app header .title span:nth-child(7){color:#e8452c!important}
.app header .title span:nth-child(11){color:#ff7a00!important}
.app header .title span:nth-child(12){color:#e6247a!important}
.app header .title span:nth-child(13){color:#0fa3a3!important}
.app header .title span:nth-child(14){color:#f2a900!important}
.app header .title span:nth-child(15){color:#6a3fe0!important}
.combo .cgain{display:inline-flex;align-items:center;gap:6px;color:#f5a300;-webkit-text-stroke:6px #fff;paint-order:stroke fill}
.combo .cgain i.coin{width:.9em;height:.9em;margin:0}
.combo small{color:var(--accent)!important;-webkit-text-stroke:4px #fff!important;font-size:.55em!important}
/* sound toggle: icon only */
.sndbtn{border:0;background:transparent;padding:0;cursor:pointer;display:grid;place-items:center;width:34px;height:34px;justify-self:end}
.sndbtn svg{width:100%;height:100%;filter:drop-shadow(0 2px 2px rgba(29,42,77,.2))}
.sndbtn:active{transform:scale(.88)}
.sndbtn.hsnd{width:46px;height:46px}
.htopr{display:flex;align-items:center;gap:10px}
/* toast always readable on every world/board */
.toast{background:#fff!important;color:#2a1f57!important;border:2px solid #fff;box-shadow:0 4px 0 rgba(42,31,87,.25),0 8px 20px rgba(20,10,60,.25)!important}
.toast.bad{background:linear-gradient(#ff6b85,#e8304f)!important;color:#fff!important;box-shadow:0 4px 0 #a3122f,0 8px 20px rgba(120,10,30,.3)!important}
/* bottom icons sit plainly inside the game frame */
footer{background:transparent!important;border:0!important;border-top:1.5px solid rgba(29,42,77,.1)!important;border-radius:0!important;box-shadow:none!important;padding:4px 0 0!important;margin-top:0!important;justify-content:space-around}
.ibtn{height:32px!important;flex:1}
.ibtn svg,.ibtn.sm svg,.ibtn.boost>span:first-child{width:25px!important;height:25px!important}
.ibtn .badge{min-width:15px!important;height:15px!important;line-height:12px!important;font-size:.6rem!important;padding:0 4px!important;top:-4px!important;right:calc(50% - 20px)!important;border-width:1.5px!important}
footer .zoomgrp{background:rgba(29,42,77,.06)!important;padding:2px}
footer .zoomgrp button{width:24px;height:24px}
footer .zoomgrp svg{width:13px;height:13px}
body[data-world="night"] footer{border-top-color:rgba(255,255,255,.15)!important}
/* image icons for shop + spin */
.gimg{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(40,20,5,.35));pointer-events:none}
.hnav button .gimg{width:64px;height:64px}
#hWheel .gimg{width:64px;height:64px}
.wheelbtn .gimg{width:27px!important;height:27px!important;animation:none}
canvas.wheel{filter:drop-shadow(0 8px 14px rgba(40,20,5,.35))}
/* ---------- daily spin popup: gold & wood to match the wheel ---------- */
.modal.daily{background:radial-gradient(circle at 50% 45%,rgba(120,70,10,.55),rgba(20,8,2,.85))!important}
.modal.daily .card{background:radial-gradient(circle at 50% 38%,#6b3714 0,#45200a 55%,#2a1206 100%)!important;border:4px solid #ffe07a!important;
  box-shadow:0 0 0 5px #c98a12,0 11px 0 5px #6b3f00,0 0 40px rgba(255,190,60,.35),0 26px 44px rgba(10,4,0,.6)!important;color:#fff3d6}
.modal.daily .card::after{content:"";position:absolute;inset:6px;border-radius:22px;border:1.5px dashed rgba(255,214,110,.35);pointer-events:none}
.modal.daily .card h2{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20300%2064%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22a%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23fff0a0%22/%3E%3Cstop%20offset%3D%22.5%22%20stop-color%3D%22%23ffc93c%22/%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23d48a00%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d%3D%22M2%2018h34v42H2l12-21z%22%20fill%3D%22%23a8650a%22/%3E%3Cpath%20d%3D%22M298%2018h-34v42h34l-12-21z%22%20fill%3D%22%23a8650a%22/%3E%3Cpath%20d%3D%22M28%2050l10%2010V48z%22%20fill%3D%22%235a3200%22/%3E%3Cpath%20d%3D%22M272%2050l-10%2010V48z%22%20fill%3D%22%235a3200%22/%3E%3Crect%20x%3D%2224%22%20y%3D%224%22%20width%3D%22252%22%20height%3D%2246%22%20rx%3D%2210%22%20fill%3D%22url%28%23a%29%22%20stroke%3D%22%237a4a00%22%20stroke-width%3D%223%22/%3E%3Crect%20x%3D%2234%22%20y%3D%229%22%20width%3D%22232%22%20height%3D%2213%22%20rx%3D%226.5%22%20fill%3D%22%23fff%22%20opacity%3D%22.45%22/%3E%3C/svg%3E") center/100% 100% no-repeat!important;color:#5a2d00!important;
  text-shadow:0 2px 0 rgba(255,255,255,.6)!important;filter:drop-shadow(0 4px 0 rgba(40,15,0,.45))!important}
.modal.daily .card .btn:not(.primary){background:linear-gradient(#8a4a1c,#5a2a0c)!important;color:#ffe08a!important;border-color:#ffd25a!important;box-shadow:0 5px 0 #2e1405,0 8px 14px rgba(0,0,0,.3)!important;text-shadow:0 2px 0 rgba(0,0,0,.4)}
.modal.daily .bonus span{background:linear-gradient(#ffe680,#e0a000)!important;color:#3d1f00!important;border:2px solid #fff3c4;box-shadow:0 3px 0 #8a5a00}
.modal.daily .note{color:#ffe7b0!important}
.modal.daily.win::before{background:repeating-conic-gradient(rgba(255,214,90,.22) 0 10deg,rgba(255,214,90,0) 10deg 20deg)!important}
/* tablets / desktop: scale top bar + icons with the bigger board */
@media (min-width:600px) and (min-height:700px){
  .app header{grid-template-columns:52px 1fr 52px!important}
  .app header .title{font-size:2.2rem!important}
  .app header .stat svg.lvicon{width:50px!important;height:50px!important}
  .app .sndbtn{width:44px;height:44px}
  .stat svg.aricon{width:32px!important;height:32px!important}
  .stat b{font-size:1.7rem!important}
  .hearts,.hearts svg{width:50px!important;height:50px!important}
  .coinstat svg{width:34px!important;height:34px!important}
  .ibtn{height:52px!important}
  .ibtn svg,.ibtn.sm svg,.ibtn.boost>span:first-child{width:40px!important;height:40px!important}
  .ibtn .badge{min-width:22px!important;height:22px!important;line-height:19px!important;font-size:.85rem!important;right:calc(50% - 30px)!important}
  footer .zoomgrp button{width:34px;height:34px}
  footer .zoomgrp svg{width:18px;height:18px}
}
/* ---------- landscape: side panels, board uses full height ---------- */
body.land .app{display:grid!important;grid-template-columns:118px auto 54px;grid-template-rows:auto auto;align-content:center;grid-template-areas:"h m f" "s m f";column-gap:8px;align-items:start}
body.land .app header{grid-area:h;display:flex!important;flex-direction:column;align-items:center;gap:4px;width:118px}
body.land .app header .title{font-size:1.25rem!important;white-space:normal;line-height:1.05;text-align:center}
body.land .app header .title .sp{display:none}
body.land .app header .title .tx{display:block;margin:-2px 0}
body.land .app .sub{grid-area:s;display:flex!important;flex-direction:column;align-items:center;gap:8px;margin-top:8px!important;width:118px}
body.land .app .sub .coinstat{justify-self:auto}
body.land .app main{grid-area:m;margin:0!important;align-self:center}
body.land .app footer{grid-area:f;flex-direction:column;justify-content:center;align-self:stretch;border-top:0!important;border-left:1.5px solid rgba(29,42,77,.1)!important;padding:0 0 0 4px!important;width:54px;gap:4px}
body.land .app footer .ibtn{flex:none;width:44px}
body.land .app footer .zoomgrp{flex-direction:column;margin:4px 0 0}
body.land .ibtn .badge{right:-4px!important}
/* landscape home + popups on short screens */
@media (orientation:landscape) and (max-height:560px) and (min-width:99999px){
  .hlogo{width:auto!important;height:30vh;margin-top:0}
  .hmid{padding-bottom:4px}
  .lvnode{width:58px!important;height:58px!important}.lvnode span{font-size:1.5rem!important}
  .playbtn{height:48px!important;margin-bottom:6px!important}.playbtn b{font-size:1.5rem!important}
  .hnav button,.hnav button svg,.hnav button .gimg,#hWheel .gimg{width:44px!important;height:44px!important}
  .streak{margin-top:4px}
  .modal{padding:8px}
  .card{max-height:96vh;overflow-y:auto}
  canvas.wheel{width:min(280px,46vh)!important;height:min(280px,46vh)!important;margin-bottom:8px!important}
}
/* ---------- frame fills the phone screen (portrait + landscape) ---------- */
body{align-items:stretch!important}
.app{height:100%!important;width:min(100%,900px,72vh)!important;max-width:none!important}
.app main{flex:1 1 auto!important;min-height:0!important;width:100%!important;margin:6px 0 4px!important}
body.land .app{width:min(100%,1300px)!important;grid-template-rows:auto 1fr!important;align-content:stretch!important}
body.land .app main{height:100%!important;width:100%!important;align-self:stretch!important;margin:0!important}
body.land .app footer{align-self:stretch}
/* social links (home only) */
.socials{display:flex;gap:10px;justify-content:center;margin-top:10px}
.soc{display:block;width:30px;height:30px;transition:transform .12s}
.soc svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 2px rgba(20,10,60,.3))}
.soc:active{transform:scale(.88)}
@media (orientation:landscape) and (max-height:560px) and (min-width:99999px){.socials{margin-top:4px;gap:8px}.soc{width:24px;height:24px}}
/* portrait lock (rotated phone) */
html{overflow:hidden}
body.rot{margin:0!important}
/* ---------- install icon (PWA) ---------- */
.dlbtn{border:0;background:transparent;padding:0;cursor:pointer;width:38px;height:38px;display:grid;place-items:center;position:relative;animation:dlBob 2.4s ease-in-out infinite}
.dlbtn[hidden]{display:none}
.dlbtn svg{width:100%;height:100%;filter:drop-shadow(0 2px 2px rgba(20,10,60,.3))}
.dlbtn:active{transform:scale(.88)}
@keyframes dlBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
.iosteps{display:grid;gap:10px;text-align:left;margin:4px 0 16px;font-size:1rem;color:#2a1f57}
.iosteps div{display:flex;gap:10px;align-items:center}
.iosteps b{flex:none;width:26px;height:26px;border-radius:50%;background:#33b82a;color:#fff;display:grid;place-items:center;font-size:.9rem}
.iosteps svg{width:20px;height:20px;vertical-align:-4px}
.aboutlnk{display:block;width:max-content;margin:6px auto 0;font-size:.72rem;font-weight:700;color:rgba(255,255,255,.85);text-decoration:none;text-shadow:0 1px 2px rgba(20,10,60,.55)}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media (max-height:620px){.brand .lvl{font-size:1.5rem}.btn{min-height:46px}}
html.calm .lvnode,html.calm .dlbtn{animation:none}
body.onhome .app{visibility:hidden}
