
  /* Acumin Pro come font principale per titoli e HUD */
  .logo-wrap, .nav-btn, .counter, h1, h2, .ph-title,
  .hud-value, .hud-label, .actor-name, .path-movie,
  .card-title, .eyebrow, .slabel, .small-label {
    font-family: 'acumin-pro', 'Syne', system-ui, sans-serif !important;
  }
/* TOP BAR */
.topbar{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;padding:7px 10px 3px!important;flex-shrink:0!important;width:100%!important}
.settings-btn{background:none!important;border:none!important;padding:6px!important;cursor:pointer!important;flex-shrink:0!important;opacity:.85;transition:opacity .2s}
.settings-btn:active{opacity:.6!important}
.counters-group{display:flex!important;flex-direction:row!important;align-items:center!important;gap:4px!important;flex-shrink:0!important}
.counter{display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:2px!important;position:relative!important;width:22vw!important;max-width:82px!important;min-width:62px!important;height:30px!important;padding:0 5px!important;font-family:'acumin-pro',sans-serif!important;font-weight:800!important;font-size:12px!important;color:#ffd34d!important;white-space:nowrap!important;flex-shrink:0!important}
.counter-bg{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;z-index:0!important;border-radius:999px!important}
.counter img.ic{width:17px!important;height:17px!important;object-fit:contain!important;position:relative!important;z-index:1!important;flex-shrink:0!important}
.counter span{position:relative!important;z-index:1!important;letter-spacing:-.02em!important}
.plus{width:14px!important;height:14px!important;border-radius:999px!important;background:rgba(255,255,255,.22)!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:10px!important;font-weight:900!important;color:#fff!important;cursor:pointer!important;position:relative!important;z-index:1!important;flex-shrink:0!important;line-height:1!important}
.plus:active{background:rgba(255,255,255,.4)!important}

.mode-card{cursor:pointer;border-radius:18px;overflow:hidden;transition:transform .18s cubic-bezier(.34,1.56,.64,1);width:100%;box-sizing:border-box;aspect-ratio:1088/787;}
.mode-card:active{transform:scale(.97)}

/* === ANIMATED MODE CARDS === */
.amc-wrap{display:flex;flex-direction:column;gap:clamp(6px,1.2vh,14px);padding:0 0 10px;}
.amc{position:relative;width:100%;height:clamp(78px,17vh,105px);border-radius:18px;overflow:hidden;cursor:pointer;transition:transform .15s cubic-bezier(.34,1.56,.64,1);}
.amc:active{transform:scale(.97);}
.amc canvas{position:absolute;inset:0;width:100%;height:100%;}
.amc-border{position:absolute;inset:0;border-radius:18px;border:2px solid;z-index:4;pointer-events:none;}
.amc-content{position:absolute;inset:0;z-index:3;display:flex;align-items:center;padding:0 14px;gap:10px;}
.amc-txt{display:flex;flex-direction:column;flex:1;}
.amc-title{font-family:'acumin-pro','Syne',sans-serif;font-size:clamp(14px,2.8vh,18px);font-weight:900;letter-spacing:.02em;text-transform:uppercase;line-height:1.1;text-shadow:1px 1px 0 rgba(0,0,0,.9);}
.amc-sub{font-family:'acumin-pro','Syne',sans-serif;font-size:clamp(9px,1.8vh,11px);font-weight:400;color:rgba(255,235,200,.8);margin-top:4px;line-height:1.3;text-shadow:0 1px 4px rgba(0,0,0,.9);}
.amc-img{width:clamp(48px,11vh,65px);height:clamp(48px,11vh,65px);object-fit:contain;flex-shrink:0;position:relative;z-index:2;}

@keyframes amcBs0{0%,100%{box-shadow:inset 0 0 6px rgba(0,80,255,.35),0 0 10px rgba(0,80,255,.35)}50%{box-shadow:inset 0 0 14px rgba(30,100,255,.65),0 0 22px rgba(30,100,255,.65)}}
@keyframes amcBs1{0%,100%{box-shadow:inset 0 0 6px rgba(220,20,20,.35),0 0 10px rgba(220,20,20,.35)}50%{box-shadow:inset 0 0 14px rgba(255,40,40,.65),0 0 22px rgba(255,40,40,.65)}}
@keyframes amcBs2{0%,100%{box-shadow:inset 0 0 6px rgba(140,0,220,.35),0 0 10px rgba(140,0,220,.35)}50%{box-shadow:inset 0 0 14px rgba(180,30,255,.65),0 0 22px rgba(180,30,255,.65)}}
@keyframes amcBs3{0%,100%{box-shadow:inset 0 0 6px rgba(200,100,0,.35),0 0 10px rgba(200,100,0,.35)}50%{box-shadow:inset 0 0 14px rgba(255,150,0,.65),0 0 22px rgba(255,150,0,.65)}}



:root{
  --gold:#ffd34d;--gold2:#f7a800;--red:#e83030;--text-gold:#ffd34d;
  --navy:#04122d;--txt:#fff;--muted:rgba(226,239,255,.6);
  --nav-h:88px;--ad-h:56px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bot:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%;overflow:hidden;
  background:linear-gradient(180deg,#061a42 0%,#04122d 55%,#020b1f 100%);
  color:#fff;font-family:'DM Sans',system-ui,sans-serif}

/* SPLASH */
#splash{
  position:fixed;inset:0;z-index:9999;
  background:#000;
  display:flex;flex-direction:column;
  align-items:center;justify-content:flex-end;
  transition:opacity .7s ease;
}
#splash img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}
#splash::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.85),transparent 45%)}
.sp-loader{position:relative;z-index:1;width:min(300px,80%);margin-bottom:50px;text-align:center}
.sp-msg{color:rgba(255,211,77,.75);font-family:'Syne',sans-serif;font-size:11px;letter-spacing:.2em;text-transform:uppercase;margin-bottom:12px}
.sp-track{height:4px;background:rgba(255,255,255,.12);border-radius:999px;overflow:hidden}
.sp-fill{height:100%;width:0%;background:linear-gradient(90deg,#f7b500,#ffd34d);border-radius:999px;transition:width .4s ease}

/* SFONDO FUOCO */
.bg{position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(ellipse 70% 65% at 92% 12%,rgba(255,130,0,.72),transparent 52%),
    radial-gradient(ellipse 48% 38% at 75% 3%,rgba(255,220,0,.42),transparent 44%),
    radial-gradient(ellipse 40% 32% at 100% 28%,rgba(255,60,0,.52),transparent 40%),
    radial-gradient(ellipse 75% 42% at 50% 98%,rgba(6,14,45,.92),transparent 62%),
    #060606;}
.spark{position:absolute;border-radius:50%;pointer-events:none;
  animation:sparkAnim var(--d,3s) var(--dl,0s) ease-in-out infinite}
@keyframes sparkAnim{0%{opacity:0;transform:translate(0,0) scale(.4)}25%{opacity:.85}100%{opacity:0;transform:translate(var(--tx,0px),var(--ty,-90px)) scale(2)}}

/* SCHERMATE */
.screen{position:fixed;inset:0;z-index:1;
  padding-bottom:calc(var(--nav-h) + var(--ad-h) + var(--safe-bot));
  padding-top:var(--safe-top);
  transition:opacity .25s ease,transform .25s ease;
  overflow:hidden;}
.screen.hidden{opacity:0;pointer-events:none;transform:translateX(14px)}

/* HOME */
.topbar{display:flex;align-items:center;justify-content:center;
  gap:8px;padding:7px 14px 2px;flex-shrink:0}
.counter{display:flex;align-items:center;gap:5px;
  background:rgba(0,0,0,.72);border:1px solid rgba(255,255,255,.13);
  border-radius:999px;padding:5px 10px 5px 7px;
  font-family:'Syne',sans-serif;font-weight:800;font-size:15px}
.counter img{width:22px;height:22px;object-fit:contain}
.plus{width:20px;height:20px;border-radius:999px;
  background:rgba(255,255,255,.16);display:flex;align-items:center;
  justify-content:center;font-size:14px;font-weight:800;
  color:rgba(255,255,255,.82);margin-left:2px;cursor:pointer}
.home-scroll{flex:1;overflow:hidden;
  padding:0 10px 2px;display:flex;flex-direction:column;min-height:0;}
.logo-wrap{text-align:center;padding:1px 0 2px;flex-shrink:0}
.logo-wrap img{
  width:min(220px,60vw);height:auto;max-height:8vh;
  object-fit:contain;
  filter:drop-shadow(0 3px 18px rgba(255,180,0,.42))}
.grid{display:grid;grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;column-gap:10px;row-gap:14px;flex:1;min-height:0;overflow:hidden;}
.card-wrap{cursor:pointer;transition:transform .18s cubic-bezier(.34,1.56,.64,1);
  display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:0;}
.card-wrap:active{transform:scale(.96)}
.home-wrap{height:100%;display:flex;flex-direction:column;min-height:0;overflow:hidden}

/* === RESPONSIVE CARD COMPONENT (SVG bg + PNG icon + CSS text) === */
/* aspect-ratio preserves SVG frame; max-height:100% shrinks if grid cell is short */
.rcard{position:relative;aspect-ratio:527/736;width:100%;max-height:100%;
  border-radius:14px;overflow:hidden;
  box-shadow:0 3px 14px rgba(0,0,0,.55);
  transform:translateZ(0);-webkit-mask-image:-webkit-radial-gradient(white,black);}
.rcard-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block;z-index:0;}
/* Portrait: title+desc top, illustration fills bottom */
.rcard-body{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;padding:4% 4% 1%;box-sizing:border-box;text-align:center;z-index:2;overflow:hidden;}
/* rcard-top capped: testo sempre dentro, icona prende tutto il resto */
.rcard-top{flex-shrink:0;max-height:30%;overflow:hidden;display:flex;flex-direction:column;gap:2px;align-items:center;}
.rcard-name{font-family:'acumin-pro',sans-serif;font-size:clamp(12px,4vw,22px);font-weight:900;text-transform:uppercase;letter-spacing:.03em;color:#ffd34d;line-height:1.1;text-shadow:0 2px 10px rgba(0,0,0,.9);}
.rcard-desc{font-family:'acumin-pro',sans-serif;font-size:clamp(8px,2.1vw,11px);font-weight:400;color:rgba(255,255,255,.9);line-height:1.3;margin-top:1px;text-shadow:0 1px 5px rgba(0,0,0,.8);}
.rcard-bottom{flex:1;display:flex;align-items:center;justify-content:center;min-height:0;width:100%;padding:1% 2%;}
.rcard-icon{width:100%;max-width:100%;height:auto;max-height:100%;object-fit:contain;filter:drop-shadow(0 4px 16px rgba(0,0,0,.75));display:block;}
/* Landscape mode cards – full viewport width so vw is accurate */
.rcard-h{aspect-ratio:1088/787;}
.rcard-h .rcard-body{padding:4% 5% 3%;gap:0;}
.rcard-h .rcard-top{width:100%;text-align:center;padding-bottom:2%;max-height:none;overflow:hidden;}
.rcard-h .rcard-name{font-size:clamp(13px,4.2vw,26px);letter-spacing:.02em;}
.rcard-h-row{flex:1;display:flex;align-items:center;gap:4%;min-height:0;width:100%;}
.rcard-h .rcard-icon{width:52%;flex-shrink:0;height:auto;max-height:100%;}
.rcard-h-text{flex:1;display:flex;align-items:center;overflow:hidden;min-width:0;}
.rcard-h .rcard-desc{font-size:clamp(10px,2.2vw,13px);font-weight:400;color:rgba(255,255,255,.92);margin:0;line-height:1.4;text-shadow:0 1px 5px rgba(0,0,0,.7);overflow:hidden;}

/* PLACEHOLDER SCHERMATE */
.placeholder{display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:14px;height:100%;
  background:linear-gradient(180deg,#061a42,#04122d)}
.ph-icon{font-size:52px}
.ph-title{font-family:'Syne',sans-serif;font-size:32px;font-weight:800;
  letter-spacing:-.04em;color:var(--gold)}
.ph-sub{color:var(--muted);font-size:14px;text-align:center}

/* AD */
.ad-bar{display:none}

/* ── NAV BAR CUSTOM ── */
.nav{
  position:fixed;bottom:0;left:0;right:0;
  height:calc(88px + var(--safe-bot));
  padding:0 10px calc(var(--safe-bot)) 10px;
  z-index:100;
  display:flex;align-items:center;justify-content:space-around;
  gap:0;
  background:none;
  border:none;
}
.nav-bg{
  position:absolute;inset:0;
  background-image:url('../assets/backgrounds/bg_pattern.png');
  background-size:100% 100%;
  background-repeat:no-repeat;
  background-position:center;
  z-index:0;
  pointer-events:none;
}
.nav-btn{
  position:relative;
  flex:1;max-width:80px;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:5px;
  cursor:pointer;border:none;background:none;
  padding:8px 4px 6px;z-index:1;
  transition:transform .18s cubic-bezier(.34,1.56,.64,1);
}
.nav-btn:active{transform:scale(.88)}
/* nav-btn-bg removed */
.nav-btn img.nav-icon{
  width:min(52px,12vw);height:min(52px,12vw);
  object-fit:contain;position:relative;z-index:1;
  transition:filter .2s,transform .2s;
}
.nav-btn.active img.nav-icon{
  filter:drop-shadow(0 0 10px rgba(255,200,50,.9)) drop-shadow(0 0 20px rgba(255,160,0,.5)) brightness(1.2);
  transform:translateY(-3px) scale(1.18);
}
.nav-btn span{
  position:relative;z-index:1;
  font-family:'acumin-pro','Syne',sans-serif;
  font-weight:800;font-size:9px;
  letter-spacing:.12em;text-transform:uppercase;
  color:rgba(255,200,60,.55);
  transition:color .2s;
  white-space:nowrap;
}
.nav-btn.active span{color:#ffd34d;}
.nav-btn::after{
  content:'';display:block;
  width:5px;height:5px;border-radius:50%;
  background:transparent;
  margin-top:2px;position:relative;z-index:1;
  transition:background .2s;
}
.nav-btn.active::after{background:#ffd34d;}
/* separatori verticali */
.nav-sep{
  width:1px;height:46px;
  background:linear-gradient(to bottom,transparent,rgba(255,200,60,.22),transparent);
  flex-shrink:0;z-index:1;
}

/* =========================================================
   STARBRIDGE UI SYSTEM — HUD / ADS / MONDO / RANK / PROFILE
   Patch: Mondo Pop-Corn + Classifica Oscar + Account semplice
   ========================================================= */

:root{
  --sb-blue-900:#020812;
  --sb-blue-800:#031433;
  --sb-blue-700:#06245a;
  --sb-blue-600:#0b3b83;
  --sb-gold:#ffd34d;
  --sb-gold-2:#f7b500;
  --sb-cream:#fff0c9;
  --sb-cream-2:#e8bf72;
  --sb-green:#39b54a;
  --sb-red:#e84646;
  --sb-nav-h:72px;
  --sb-ad-h:56px;
  --sb-safe-bot:env(safe-area-inset-bottom,0px);
  --sb-radius-lg:24px;
  --sb-radius-md:16px;
  --sb-shadow:0 14px 32px rgba(0,0,0,.55);
}

.screen{
  padding-bottom:calc(var(--sb-nav-h) + var(--sb-ad-h) + var(--sb-safe-bot));
}

.sb-ad-placeholder{
  position:fixed;
  left:0;
  right:0;
  bottom:calc(var(--sb-nav-h) + var(--sb-safe-bot));
  height:var(--sb-ad-h);
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,211,77,.55);
  border-top:1px solid rgba(255,211,77,.18);
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(2,8,18,.82),rgba(0,0,0,.92));
  backdrop-filter:blur(8px);
  pointer-events:none;
}
.sb-ad-placeholder::before{
  content:"spazio banner pubblicitario";
}

/* Shared compact HUD */
.sb-hud{
  width:min(100%,560px);
  margin:0 auto 8px;
  display:grid;
  grid-template-columns:42px 1fr 1fr 1fr 42px;
  gap:6px;
  align-items:center;
}
.sb-avatar,.sb-shop{
  width:42px;
  height:42px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:2px solid var(--sb-gold-2);
  background:linear-gradient(180deg,#17345f,#07162e);
  color:var(--sb-gold);
  box-shadow:0 4px 12px rgba(0,0,0,.45);
  overflow:hidden;
}
.sb-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.sb-shop{
  font-size:20px;
}
.sb-pill{
  min-width:0;
  height:36px;
  border-radius:999px;
  border:2px solid rgba(255,211,77,.88);
  background:linear-gradient(180deg,var(--sb-cream),var(--sb-cream-2));
  color:#2d1804;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:3px 7px;
  box-shadow:0 5px 12px rgba(0,0,0,.35);
}
.sb-pill img,.sb-pill .emoji-icon{
  width:23px;
  height:23px;
  object-fit:contain;
  flex:0 0 auto;
}
.sb-pill strong{
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-size:clamp(13px,4vw,19px);
  line-height:.9;
  font-weight:900;
  letter-spacing:-.04em;
}
.sb-pill span{
  display:block;
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-size:7px;
  line-height:1;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
  opacity:.75;
}

/* === MONDO POP-CORN FINAL PATCH === */
.mondo-screen{
  min-height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  padding:calc(8px + env(safe-area-inset-top,0px)) 10px calc(var(--sb-nav-h) + var(--sb-ad-h) + 18px + var(--sb-safe-bot));
  background:
    radial-gradient(circle at 82% 4%,rgba(255,142,0,.48),transparent 28%),
    radial-gradient(circle at 20% 18%,rgba(31,111,255,.32),transparent 38%),
    radial-gradient(circle at 50% 90%,rgba(255,211,77,.12),transparent 38%),
    linear-gradient(180deg,#020711 0%,#03122f 58%,#01050d 100%);
}
.mondo-logo{
  text-align:center;
  margin:2px auto 8px;
}
.mondo-logo img{
  width:min(70vw,300px);
  max-height:72px;
  object-fit:contain;
  display:block;
  margin:0 auto;
  filter:drop-shadow(0 5px 10px rgba(0,0,0,.65));
}
.mondo-title{
  margin-top:2px;
  color:var(--sb-gold);
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-weight:900;
  font-size:clamp(13px,4vw,21px);
  letter-spacing:.06em;
  text-shadow:0 2px 0 rgba(0,0,0,.75);
  text-transform:uppercase;
}
.mondo-board-panel{
  width:min(100%,560px);
  margin:0 auto;
  padding:clamp(8px,2vw,14px);
  border-radius:24px;
  border:2px solid rgba(255,211,77,.92);
  background:
    linear-gradient(180deg,rgba(9,31,68,.97),rgba(3,12,31,.99));
  box-shadow:
    0 14px 32px rgba(0,0,0,.55),
    inset 0 0 0 2px rgba(28,117,255,.28),
    0 0 22px rgba(255,190,40,.14);
  position:relative;
}
.mondo-board-panel::before{
  content:"";
  position:absolute;
  inset:6px;
  border-radius:19px;
  border:1px solid rgba(255,255,255,.06);
  pointer-events:none;
}
.pop-board-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:clamp(3px,1vw,6px);
  padding:clamp(5px,1.4vw,8px);
  border-radius:16px;
  background:linear-gradient(180deg,#3b5a28,#243c1d);
  border:2px solid rgba(255,211,77,.72);
  box-shadow:inset 0 2px 8px rgba(0,0,0,.42);
  position:relative;
  z-index:1;
}
.pop-cell{
  aspect-ratio:1/1;
  border-radius:7px;
  display:grid;
  place-items:center;
  background:#bdda8d;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 4px rgba(0,0,0,.12);
  overflow:hidden;
}
.pop-cell:nth-child(odd){background:#c8e59b;}
.pop-cell:nth-child(even){background:#98b873;}
.pop-item{
  width:82%;
  height:82%;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 6px 7px rgba(0,0,0,.35));
}
.pop-cell.is-empty .pop-item{display:none;}
.pop-status-strip{
  display:flex;
  gap:10px;
  justify-content:center;
  margin:10px auto 0;
  position:relative;
  z-index:1;
}
.pop-status-badge{
  flex:1;
  max-width:170px;
  min-height:42px;
  border-radius:14px;
  border:2px solid rgba(255,211,77,.86);
  background:linear-gradient(180deg,#11335f,#06182f);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-weight:900;
  font-size:clamp(16px,5vw,24px);
  box-shadow:inset 0 0 0 1px rgba(64,150,255,.35),0 5px 12px rgba(0,0,0,.35);
}
.pop-status-badge img{
  width:30px;
  height:30px;
  object-fit:contain;
}
.pop-info-panel{
  width:min(100%,560px);
  margin:10px auto 0;
  border-radius:16px;
  border:2px solid rgba(255,211,77,.86);
  background:linear-gradient(180deg,#fff1cf,#f0c78b);
  color:#5c3211;
  padding:11px 13px;
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-weight:900;
  font-size:clamp(13px,3.9vw,19px);
  line-height:1.15;
  box-shadow:0 6px 14px rgba(0,0,0,.35);
}
.pop-info-icon{
  width:34px;
  height:34px;
  border-radius:999px;
  background:#0b5ea9;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight:900;
  border:2px solid var(--sb-gold);
  flex:0 0 auto;
}
.pop-actions{
  width:min(100%,560px);
  margin:10px auto 0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.pop-action-btn{
  min-height:48px;
  border-radius:16px;
  border:2px solid rgba(255,211,77,.92);
  color:#fff;
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-weight:900;
  font-size:clamp(14px,4vw,20px);
  text-shadow:0 2px 0 rgba(0,0,0,.35);
  box-shadow:0 7px 16px rgba(0,0,0,.4);
  cursor:pointer;
}
.pop-action-btn.deposit{background:linear-gradient(180deg,#1d7fd4,#073b83);}
.pop-action-btn.help{background:linear-gradient(180deg,#58c544,#167b22);}

/* === CLASSIFICA OSCAR === */
.rank-screen,.profile-screen{
  min-height:100dvh;
  overflow-y:auto;
  overflow-x:hidden;
  padding:calc(8px + env(safe-area-inset-top,0px)) 10px calc(var(--sb-nav-h) + var(--sb-ad-h) + 18px + var(--sb-safe-bot));
  background:
    radial-gradient(circle at 72% 2%,rgba(255,142,0,.42),transparent 27%),
    radial-gradient(circle at 20% 16%,rgba(31,111,255,.28),transparent 40%),
    linear-gradient(180deg,#020711 0%,#03122f 58%,#01050d 100%);
}
.sb-screen-title{
  width:min(100%,560px);
  margin:8px auto 12px;
  color:var(--sb-gold);
  text-align:center;
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-weight:900;
  font-size:clamp(24px,8vw,42px);
  line-height:.95;
  letter-spacing:-.04em;
  text-shadow:0 4px 0 rgba(0,0,0,.55),0 0 18px rgba(255,211,77,.22);
}
.rank-tabs{
  width:min(100%,420px);
  margin:0 auto 12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.rank-tab{
  min-height:38px;
  border-radius:999px;
  border:2px solid rgba(255,211,77,.75);
  background:rgba(4,18,45,.72);
  color:var(--sb-gold);
  font-weight:900;
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
}
.rank-tab.active{
  background:linear-gradient(180deg,var(--sb-cream),var(--sb-cream-2));
  color:#2d1804;
}
.rank-panel,.profile-panel{
  width:min(100%,560px);
  margin:0 auto;
  border-radius:24px;
  border:2px solid rgba(255,211,77,.9);
  background:linear-gradient(180deg,rgba(9,31,68,.97),rgba(3,12,31,.99));
  box-shadow:var(--sb-shadow),inset 0 0 0 2px rgba(28,117,255,.23);
  padding:12px;
}
.rank-podium{
  display:grid;
  grid-template-columns:1fr 1.15fr 1fr;
  gap:8px;
  align-items:end;
  margin-bottom:12px;
}
.podium-card{
  border-radius:18px;
  border:2px solid rgba(255,211,77,.72);
  background:linear-gradient(180deg,#123a72,#071b3d);
  min-height:112px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:9px 6px;
  color:#fff;
  text-align:center;
  box-shadow:0 8px 18px rgba(0,0,0,.35);
}
.podium-card.first{
  min-height:140px;
  background:linear-gradient(180deg,#fff0b6,#b87415);
  color:#281703;
}
.podium-pos{
  font-size:24px;
  font-weight:900;
}
.podium-avatar{
  width:42px;
  height:42px;
  border-radius:999px;
  border:2px solid var(--sb-gold);
  background:#09214b;
  display:grid;
  place-items:center;
  margin:4px 0;
}
.podium-name,.rank-name{
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-weight:900;
}
.podium-score{
  font-size:12px;
  opacity:.9;
}
.rank-list{
  display:grid;
  gap:8px;
}
.rank-row{
  display:grid;
  grid-template-columns:34px 42px 1fr auto;
  gap:8px;
  align-items:center;
  min-height:54px;
  border-radius:16px;
  border:1px solid rgba(255,211,77,.28);
  background:rgba(255,255,255,.055);
  padding:6px 8px;
}
.rank-row.me{
  border:2px solid var(--sb-gold);
  background:rgba(255,211,77,.12);
}
.rank-pos{
  color:var(--sb-gold);
  font-weight:900;
  text-align:center;
}
.rank-avatar{
  width:40px;
  height:40px;
  border-radius:999px;
  background:#123a72;
  border:2px solid rgba(255,211,77,.75);
  display:grid;
  place-items:center;
}
.rank-score{
  display:flex;
  align-items:center;
  gap:5px;
  font-weight:900;
  color:#fff;
}
.rank-score img{
  width:23px;
  height:23px;
}

/* === ACCOUNT SEMPLICE === */
.profile-card{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}
.profile-avatar{
  width:72px;
  height:72px;
  border-radius:999px;
  border:3px solid var(--sb-gold);
  background:linear-gradient(180deg,#17345f,#07162e);
  display:grid;
  place-items:center;
  color:var(--sb-gold);
  font-size:34px;
  box-shadow:0 8px 18px rgba(0,0,0,.42);
}
.profile-name label,.profile-section-title{
  display:block;
  color:rgba(255,211,77,.82);
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-weight:900;
  font-size:10px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:6px;
}
.profile-name input{
  width:100%;
  border-radius:14px;
  border:2px solid rgba(255,211,77,.65);
  background:rgba(0,0,0,.26);
  color:#fff;
  padding:10px 12px;
  font-size:16px;
  font-weight:800;
  outline:none;
}
.profile-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:10px 0 14px;
}
.profile-stat{
  border-radius:16px;
  border:1px solid rgba(255,211,77,.32);
  background:rgba(255,255,255,.055);
  padding:10px 6px;
  text-align:center;
}
.profile-stat strong{
  display:block;
  color:var(--sb-gold);
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-size:clamp(18px,5vw,26px);
  line-height:1;
}
.profile-stat span{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,.72);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:800;
}
.profile-settings{
  display:grid;
  gap:8px;
}
.setting-row{
  min-height:48px;
  border-radius:16px;
  border:1px solid rgba(255,211,77,.28);
  background:rgba(255,255,255,.055);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 10px;
  color:#fff;
  font-weight:900;
}
.switch{
  width:48px;
  height:26px;
  border-radius:999px;
  background:#0b2b60;
  border:2px solid rgba(255,211,77,.55);
  position:relative;
}
.switch::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:var(--sb-gold);
  transition:.2s;
}
.switch.on{
  background:#167b22;
}
.switch.on::after{
  left:25px;
}
.profile-save{
  width:100%;
  margin-top:12px;
  min-height:48px;
  border-radius:16px;
  border:2px solid rgba(255,211,77,.9);
  background:linear-gradient(180deg,#1d7fd4,#073b83);
  color:#fff;
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-weight:900;
  font-size:18px;
  box-shadow:0 7px 16px rgba(0,0,0,.4);
}

@media (max-width:360px){
  .sb-hud{grid-template-columns:36px 1fr 1fr 1fr 36px;gap:4px;}
  .sb-avatar,.sb-shop{width:36px;height:36px;}
  .sb-pill{height:32px;padding:2px 5px;}
  .sb-pill img,.sb-pill .emoji-icon{width:20px;height:20px;}
  .pop-item{width:76%;height:76%;}
  .pop-actions{gap:7px;}
  .profile-stats{grid-template-columns:1fr 1fr;}
}


/* === POP-CORN ECONOMY FIX === */
.mondo-hud-compact .sb-pill-pop{
  background:linear-gradient(180deg,#fff4d6,#efcc7b);
}
.mondo-hud-compact .sb-pill-pop span{
  font-size:6.8px;
}
.pop-status-badge strong{
  font-family:'acumin-pro','Syne',system-ui,sans-serif;
  font-size:clamp(16px,5vw,24px);
  line-height:1;
}
.pop-status-badge span{
  display:block;
  font-size:9px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:rgba(255,255,255,.72);
}
.pop-insert-btn{
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
}
.pop-insert-btn::after{
  content:'+';
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#39b54a;
  color:#fff;
  font-size:14px;
  line-height:1;
  border:2px solid rgba(255,255,255,.85);
  margin-left:4px;
  box-shadow:0 3px 8px rgba(0,0,0,.35);
  flex:0 0 auto;
}
.pop-insert-btn:disabled, .pop-insert-btn.is-empty{
  opacity:.55;
  filter:grayscale(.35);
  cursor:default;
}
.pop-insert-btn:disabled::after, .pop-insert-btn.is-empty::after{
  content:'0';
  background:#777;
}
.pop-cell.filled-later{
  animation:sbPopIn .22s ease-out;
}
@keyframes sbPopIn{
  0%{transform:scale(.82);}
  100%{transform:scale(1);}
}


/* === POP-CORN ANIMATION + TAP MERGE === */
.pop-fly-clone{
  position:fixed;
  z-index:99999;
  pointer-events:none;
  object-fit:contain;
  filter:drop-shadow(0 10px 10px rgba(0,0,0,.45));
  transform-origin:center;
}
.pop-cell{
  position:relative;
  transition:transform .14s ease, box-shadow .14s ease, outline-color .14s ease;
}
.pop-cell.is-selected{
  outline:3px solid #ffd34d;
  outline-offset:-3px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.35),
    0 0 18px rgba(255,211,77,.62);
  transform:scale(.98);
}
.pop-cell.is-move-target::after,
.pop-cell.is-merge-target::after{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:7px;
  pointer-events:none;
  border:2px dashed rgba(255,255,255,.45);
}
.pop-cell.is-merge-target::after{
  border-color:#ffd34d;
  box-shadow:0 0 12px rgba(255,211,77,.45);
}
.pop-cell.is-invalid{
  animation:sbShake .28s ease;
}
.pop-cell.cell-pop .pop-item{
  animation:sbItemPop .26s cubic-bezier(.34,1.56,.64,1);
}
.pop-cell.merge-success{
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.35),
    0 0 22px rgba(255,211,77,.75);
}
@keyframes sbItemPop{
  0%{transform:scale(.55);opacity:.25;}
  70%{transform:scale(1.15);opacity:1;}
  100%{transform:scale(1);opacity:1;}
}
@keyframes sbShake{
  0%,100%{transform:translateX(0);}
  25%{transform:translateX(-4px);}
  50%{transform:translateX(4px);}
  75%{transform:translateX(-3px);}
}
