/* Layout: uma tela de jogo; o lobby é uma grade que vira coluna única no celular em pé. */
/* Fontes empacotadas com o jogo (SIL Open Font License, ver fonts/OFL-*.txt): funciona offline e sem requisições externas. */
@font-face { font-family: "Lilita One"; src: url("../fonts/lilita-one-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/nunito-latin-var.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
:root {
  color-scheme: dark;
  --void: #0a0518;
  --night: #110a2e;
  --panel: #160e34;
  --panel-2: #251552;
  --line: #4a2f9e;
  --ink: #eef2ff;
  --ink-2: #a9b4e2;
  --ink-3: #6f7cb3;
  --cyan: #00f0ff;
  --pink: #ff2e7e;
  --rosa: #ff66c4;
  --gold: #ffc400;
  --gem: #b56cff;
  --green: #c8ff00;
  --red: #ff4d5e;
  --r-comum: #a3b1d9;
  --r-raro: #3da5ff;
  --r-epico: #b56cff;
  --r-lendario: #ffb020;
  --r-vip: #ff2fd0;
  --font-display: "Lilita One", "Arial Black", Impact, system-ui, sans-serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}

html, body { height: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
button { font: inherit; color: inherit; }
input, select { font: inherit; user-select: text; -webkit-user-select: text; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

#app { position: fixed; inset: 0; overflow: hidden; background: var(--void); }
#game, #fx { position: absolute; inset: 0; display: block; }
#fx { pointer-events: none; z-index: 60; }
.layer { position: absolute; inset: 0; }
#touch { z-index: 10; touch-action: none; }
#hud { z-index: 20; pointer-events: none; }
#screen { z-index: 30; }
#screen:empty { pointer-events: none; }
#modals { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
#toasts { position: absolute; left: 0; right: 0; top: calc(var(--safe-t) + 10px); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }

/* ---------- ícones ---------- */
.ic { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.ic svg { width: 100%; height: 100%; display: block; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .02em; line-height: 1.1;
  color: var(--ink);
  background: linear-gradient(180deg, #4b2fb8, #2b1a7a);
  border: 0; border-radius: 14px; padding: .72em 1.1em;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3), 0 2px 0 rgba(0, 0, 0, .35);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3);
  cursor: pointer; position: relative; white-space: nowrap;
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .3); }
.btn:focus-visible, .navbtn:focus-visible, .tile:focus-visible, .chip:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.btn.gold { background: linear-gradient(180deg, #ffe375, #ffb300); color: #2b1a00; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.btn.cyan { background: linear-gradient(180deg, #69f8ff, #12b6d4); color: #032a33; text-shadow: none; }
.btn.gem { background: linear-gradient(180deg, #d29cff, #8a3dff); }
.btn.green { background: linear-gradient(180deg, #e2ff66, #9bd600); color: #1c2600; text-shadow: none; }
.btn.pink { background: linear-gradient(180deg, #ff7ab2, #e0145f); }
.btn.ghost { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 2px var(--line); }
.btn.gold .ic { filter: brightness(.32); }
.btn.gem .ic { filter: brightness(1.9) saturate(.45); }
.btn.small { font-size: .88rem; padding: .5em .8em; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { filter: grayscale(.85) brightness(.65); cursor: not-allowed; transform: none; }
.btn .sub { font-family: var(--font-body); font-weight: 800; font-size: .74em; opacity: .85; }

.badge {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--red); color: #fff; font: 800 12px/20px var(--font-body);
  text-align: center; box-shadow: 0 0 0 2px var(--void); text-shadow: none;
  animation: badgePop 1.4s ease-in-out infinite;
}
@keyframes badgePop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.badge.new { background: var(--green); color: #1c2600; font-size: 10px; letter-spacing: .04em; }

/* ---------- lobby ---------- */
.lobby {
  position: absolute; inset: 0;
  display: grid; gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "top" "season" "stage" "chests" "play" "nav";
  padding-top: calc(var(--safe-t) + 10px);
  padding-bottom: calc(var(--safe-b) + 10px);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.topbar { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.profile-chip {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 12px 4px 4px;
  background: rgba(12, 18, 48, .75); border: 1px solid rgba(120, 140, 255, .25); border-radius: 999px; cursor: pointer;
}
.lvl-badge {
  width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #69f8ff, #127fa8); color: #031c24; font: 18px var(--font-display);
}
.who { display: grid; gap: 3px; min-width: 0; text-align: left; }
.who b { font: 16px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.xpbar { display: block; width: 92px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.xpbar i { display: block; height: 100%; background: var(--cyan); border-radius: 3px; }
.currencies { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px;
  background: rgba(12, 18, 48, .75); border: 1px solid rgba(120, 140, 255, .25);
  font: 15px var(--font-display); white-space: nowrap; cursor: default; position: relative;
}
button.chip { cursor: pointer; }
.chip .plus { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--green); color: #03301b; font-size: 15px; line-height: 1; }
.chip.streak { color: #ffb36b; }

.season-strip {
  grid-area: season; position: relative; display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 8px 12px; border-radius: 14px; cursor: pointer; text-align: left; border: 0;
  background: linear-gradient(90deg, rgba(138, 61, 255, .55), rgba(255, 46, 126, .28), rgba(0, 240, 255, .25));
  box-shadow: inset 0 0 0 1px rgba(160, 140, 255, .35);
}
.season-strip .s-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.season-strip .s-name { font: 15px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.season-strip .s-time { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.season-strip .s-tier { display: grid; justify-items: end; gap: 4px; flex: none; font: 13px var(--font-display); }
.minibar { width: 96px; height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.minibar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); }

.stage { grid-area: stage; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 0; }
.hero-core { width: min(44vh, 70vw, 320px); height: min(44vh, 70vw, 320px); max-width: 100%; aspect-ratio: 1; flex: 0 1 auto; min-height: 0; }
.class-picker { display: flex; align-items: center; gap: 10px; }
.class-picker .arrow { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.class-name { min-width: 150px; text-align: center; display: grid; gap: 2px; }
.class-name b { font: 20px var(--font-display); }
.class-name small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.class-name .locked { color: var(--gold); }
.equip-line { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; justify-content: center; }
.equip-line .rar { font-family: var(--font-display); font-weight: 400; font-size: 14px; }
.trial-tag { padding: 3px 9px; border-radius: 999px; background: rgba(255, 204, 51, .16); color: var(--gold); font-size: 12px; font-weight: 800; }

.chests { grid-area: chests; display: flex; gap: 8px; align-items: stretch; justify-content: center; flex-wrap: wrap; min-width: 0; }
.free-chest { display: flex; align-items: center; gap: 8px; padding: 6px 22px 6px 8px; border-radius: 14px; border: 0; cursor: pointer; background: rgba(12, 18, 48, .8); box-shadow: inset 0 0 0 1px rgba(120, 140, 255, .3); position: relative; text-align: left; }
.free-chest.ready { box-shadow: inset 0 0 0 2px var(--green), 0 0 18px rgba(61, 255, 160, .35); }
.free-chest .ic { width: 30px; height: 30px; }
.free-chest .fc-txt { display: grid; font-weight: 800; font-size: 12px; color: var(--ink-2); }
.free-chest .fc-txt b { font: 14px var(--font-display); color: var(--ink); }
.chest-slot { width: 52px; height: 52px; border-radius: 14px; border: 0; padding: 0; cursor: pointer; position: relative; display: grid; place-items: center; background: rgba(12, 18, 48, .8); box-shadow: inset 0 0 0 2px var(--cc, #3da5ff); }
.chest-slot .ic { width: 36px; height: 36px; }
.chest-slot.more { font: 15px var(--font-display); color: var(--ink-2); }

.play-area { grid-area: play; display: grid; gap: 6px; justify-items: center; }
.btn-play {
  width: min(100%, 360px); font-size: clamp(1.5rem, 4.6vw, 2rem); padding: .42em 1em .48em; border-radius: 20px;
  display: grid; gap: 2px; justify-items: center;
  background: linear-gradient(100deg, #ffe375, #ffb300 40%, #ff7a1a 60%, #ffe375);
  background-size: 220% 100%;
  animation: playPulse 1.6s ease-in-out infinite, playFlow 3s linear infinite;
}
@keyframes playFlow { to { background-position: -220% 0; } }
.btn-play .sub { font-size: .46em; display: inline-flex; gap: 6px; align-items: center; }
@keyframes playPulse { 0%, 100% { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 196, 0, .55); } 50% { box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .25), 0 0 0 14px rgba(255, 196, 0, 0); } }
.proto-note { font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: center; }

.nav { grid-area: nav; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.navbtn {
  position: relative; display: grid; justify-items: center; gap: 3px; min-width: 58px; padding: 8px 6px 6px;
  border-radius: 14px; border: 0; cursor: pointer; background: rgba(37, 21, 82, .88);
  box-shadow: inset 0 0 0 1px rgba(180, 120, 255, .4), inset 0 -3px 0 rgba(0, 0, 0, .3);
  font: 12px var(--font-display); letter-spacing: .02em; color: var(--ink);
}
.navbtn .ic { width: 26px; height: 26px; }
.navbtn.glow { box-shadow: inset 0 0 0 2px var(--green), 0 0 16px rgba(200, 255, 0, .4); }
.navbtn.vip { background: linear-gradient(160deg, #ff2fd0, #7b1fd1); box-shadow: inset 0 0 0 2px var(--gold), 0 0 14px rgba(255, 47, 208, .5); }
.navbtn .badge.new { font-size: 9px; height: 16px; line-height: 16px; min-width: 0; padding: 0 4px; top: -7px; right: -9px; }
.chip.icon-only { padding: 6px 8px; }
.chip.icon-only .ic { width: 18px; height: 18px; }

.offer-stack { position: absolute; top: 8px; right: 0; z-index: 2; display: grid; gap: 6px; justify-items: end; }
.offer-stack:empty { display: none; }
.offer-pill.flash { background: linear-gradient(135deg, #ffc400, #ff2e7e); color: #2b0015; animation: flashWiggle 2.2s ease-in-out infinite; }
@keyframes flashWiggle { 0%, 88%, 100% { transform: none; } 91% { transform: rotate(-2.5deg); } 94% { transform: rotate(2.5deg); } 97% { transform: rotate(-1.5deg); } }
.offer-pill {
  display: grid; gap: 1px; text-align: left; padding: 8px 12px; border-radius: 14px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #ff2e7e, #8a3dff); box-shadow: 0 6px 18px rgba(255, 46, 126, .45); color: #fff;
}
.offer-pill b { font: 15px var(--font-display); }
.offer-pill small { font-size: 11px; font-weight: 800; opacity: .9; }

@media (orientation: landscape) and (min-width: 640px) {
  .lobby {
    grid-template-columns: auto minmax(0, 1fr) minmax(240px, 32%);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "top top top" "nav stage season" "nav stage chests" "nav stage play";
  }
  .nav { display: grid; grid-template-columns: repeat(2, minmax(58px, 1fr)); align-content: start; align-self: start; max-height: 100%; }
  .chests { align-content: flex-start; justify-content: flex-start; }
  .hero-core { width: min(52vh, 40vw, 360px); height: min(52vh, 40vw, 360px); }
  .offer-stack { right: auto; left: 0; justify-items: start; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .lobby { gap: 6px; padding-top: calc(var(--safe-t) + 6px); padding-bottom: calc(var(--safe-b) + 6px); }
  .nav { gap: 4px; }
  .navbtn { min-width: 54px; padding: 5px 4px 4px; font-size: 11px; }
  .navbtn .ic { width: 20px; height: 20px; }
  .hero-core { width: min(46vh, 36vw); height: min(46vh, 36vw); }
  .class-picker .arrow { width: 34px; height: 34px; }
  .class-name b { font-size: 17px; }
  .chest-slot { width: 44px; height: 44px; }
  .chest-slot .ic { width: 30px; height: 30px; }
  .btn-play { font-size: 1.45rem; }
  .proto-note { display: none; }
}
@media (max-width: 480px) {
  .chip.icon-only { display: none; }
  .currencies { gap: 4px; min-width: 0; }
  .who { display: none; }
  .profile-chip { padding: 0; flex: none; background: none; border: 0; }
  .chip { padding: 5px 7px; font-size: 13px; gap: 3px; }
  .chip .ic { width: 15px; height: 15px; }
  .chip .plus { width: 15px; height: 15px; font-size: 13px; }
}
@media (max-width: 360px) {
  .chip.streak { display: none; }
}
@media (max-width: 380px) {
  .who b { max-width: 28vw; }
  .xpbar { width: 64px; }
  .chip { padding: 5px 8px; font-size: 14px; }
  .navbtn { min-width: 50px; font-size: 11px; }
}

/* ---------- onboarding ---------- */
.onboard { position: absolute; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: calc(var(--safe-t) + 20px) var(--gutter-r) calc(var(--safe-b) + 20px) var(--gutter-l); }
.onboard-card { width: min(440px, 100%); display: grid; gap: 16px; text-align: center; }
.logo { font: clamp(56px, 16vw, 92px)/0.9 var(--font-display); letter-spacing: .02em; color: #fff; text-shadow: 0 0 24px rgba(46, 242, 255, .65), 0 6px 0 #1a2b8a; }
.logo { animation: logoGlow 2.4s ease-in-out infinite; }
@keyframes logoGlow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 240, 255, .5)); } 50% { filter: drop-shadow(0 0 22px rgba(255, 46, 126, .85)); } }
.logo span { color: var(--gold); text-shadow: 0 0 24px rgba(255, 204, 51, .6), 0 6px 0 #8a5a00; }
.tagline { font-weight: 800; color: var(--ink-2); }
.form { display: grid; gap: 12px; text-align: left; padding: 18px; }
.field { display: grid; gap: 6px; }
.field label { font: 14px var(--font-display); color: var(--ink-2); letter-spacing: .02em; }
.field input, .field select {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line);
  background: #0a1030; color: var(--ink); font-weight: 800; font-size: 16px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--cyan); }
.field .help { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.fineprint { font-size: 12px; color: var(--ink-3); font-weight: 700; line-height: 1.45; }

/* ---------- painéis e modais ---------- */
.panel {
  background: linear-gradient(180deg, rgba(47, 26, 110, .97), rgba(22, 14, 52, .98));
  border: 1px solid rgba(180, 120, 255, .34); border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.modal-wrap { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: auto; padding: calc(var(--safe-t) + 10px) var(--gutter-r) calc(var(--safe-b) + 10px) var(--gutter-l); }
.modal-back { position: absolute; inset: 0; background: rgba(3, 5, 14, .72); }
.modal { position: relative; width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; animation: pop .22s cubic-bezier(.2, 1.4, .4, 1); }
.modal.wide { width: min(760px, 100%); }
.modal.narrow { width: min(420px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px 18px; }
.modal-head h2 { font-size: 24px; display: flex; align-items: center; gap: 8px; }
.modal-head .x { width: 38px; height: 38px; padding: 0; border-radius: 12px; flex: none; }
.modal-body { position: relative; padding: 4px 18px 18px; overflow-y: auto; display: grid; gap: 14px; overscroll-behavior: contain; }
.modal-foot { padding: 12px 18px 16px; border-top: 1px solid rgba(130, 150, 255, .15); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.tabs { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.tab { flex: 1; padding: 9px 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink-2); font: 15px var(--font-display); cursor: pointer; position: relative; }
.tab.on { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 16px var(--font-display); color: var(--ink-2); }
.section-title small { font-family: var(--font-body); font-weight: 800; font-size: 12px; color: var(--ink-3); }
.note { font-size: 12px; color: var(--ink-3); font-weight: 700; line-height: 1.45; }
.note b { color: var(--ink-2); }

/* cartões de item */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.grid.tight { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tile {
  --rc: var(--r-comum);
  position: relative; display: grid; gap: 6px; justify-items: center; padding: 10px 8px; border-radius: 16px; border: 0; cursor: pointer; text-align: center; min-width: 0;
  background: #121a40;
  box-shadow: inset 0 0 0 2px var(--rc);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, #121a40), #10173a);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--rc) 70%, transparent), inset 0 -4px 0 rgba(0, 0, 0, .25);
}
.tile.r-raro { --rc: var(--r-raro); } .tile.r-epico { --rc: var(--r-epico); } .tile.r-lendario { --rc: var(--r-lendario); } .tile.r-vip { --rc: var(--r-vip); }
.tile.r-lendario, .tile.r-vip { animation: tileGlow 2s ease-in-out infinite; }
@keyframes tileGlow { 0%, 100% { filter: drop-shadow(0 0 2px var(--rc)); } 50% { filter: drop-shadow(0 0 12px var(--rc)); } }
.tile.sel { box-shadow: inset 0 0 0 3px var(--green), 0 0 16px rgba(61, 255, 160, .3); }
.tile.locked canvas { filter: grayscale(.85) brightness(.55); }
.tile canvas { width: 84px; height: 84px; }
.grid.tight .tile canvas { width: 64px; height: 64px; }
.tile .t-name { font: 14px var(--font-display); line-height: 1.1; overflow-wrap: anywhere; }
.tile .t-rar { font-size: 11px; font-weight: 800; color: var(--rc); text-transform: uppercase; letter-spacing: .06em; }
.tile.chest-tile > .ic { width: 72px; height: 72px; filter: drop-shadow(0 0 12px var(--rc)); }
.tile.r-vip .t-src { line-height: 1.25; }
.tile .t-src { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.tile .t-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: 100%; }
.tile .t-actions .btn { flex: 1 1 auto; }
.tile .owned { font-size: 12px; font-weight: 800; color: var(--green); }
.price { display: inline-flex; align-items: center; gap: 4px; }
.brl { font-family: var(--font-body); font-weight: 800; font-size: .76em; opacity: .9; }

.starter {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 61, 139, .32), rgba(138, 61, 255, .32)); box-shadow: inset 0 0 0 2px rgba(255, 120, 190, .5);
}
.starter canvas { width: 104px; height: 104px; }
.starter h3 { font-size: 22px; }
.starter ul { margin: 6px 0 8px; padding: 0; list-style: none; display: grid; gap: 3px; font-weight: 800; font-size: 13px; }
.starter .old { text-decoration: line-through; color: var(--ink-3); font-weight: 800; font-size: 13px; }
.starter .off { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--gold); color: #2b1a00; font: 14px var(--font-display); margin-left: 6px; }
.starter .timer { font-size: 12px; font-weight: 800; color: #ffd0e4; }

.packs { display: grid; gap: 14px 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 8px; }
.pack { display: grid; gap: 6px; justify-items: center; padding: 14px 10px 10px; border-radius: 16px; background: linear-gradient(180deg, rgba(138, 61, 255, .3), rgba(19, 27, 66, .9)); box-shadow: inset 0 0 0 2px rgba(181, 108, 255, .45); position: relative; text-align: center; }
.pack.best { box-shadow: inset 0 0 0 3px var(--gold), 0 0 18px rgba(255, 204, 51, .25); }
.pack .p-gems { font: 22px var(--font-display); display: flex; gap: 6px; align-items: center; }
.pack .p-gems .ic { width: 28px; height: 28px; }
.pack .p-bonus { font-size: 12px; font-weight: 800; color: var(--green); min-height: 16px; }
.pack .ribbon { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 8px; font: 12px var(--font-display); white-space: nowrap; background: var(--gold); color: #2b1a00; }
.pack .ribbon.x2 { background: var(--green); color: #03301b; }
@media (max-width: 720px) {
  .packs { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 0; }
  .pack { grid-template-columns: auto minmax(0, 1fr) minmax(104px, auto); justify-items: start; align-items: center; text-align: left; padding: 12px; }
  .pack .btn { width: auto; }
  .pack .ribbon { top: -8px; left: 14px; transform: none; }
}

/* passe */
.pass-head { display: grid; gap: 10px; }
.pass-tier { display: flex; align-items: center; gap: 12px; }
.tier-badge { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font: 26px var(--font-display); background: linear-gradient(180deg, var(--gem), #5a1fd1); flex: none; }
.bigbar { flex: 1; height: 14px; border-radius: 7px; background: rgba(0, 0, 0, .35); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.bigbar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--gem), var(--cyan)); transition: width .9s cubic-bezier(.2, .8, .2, 1); position: relative; overflow: hidden; }
.bigbar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.premium-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 204, 51, .2), rgba(181, 108, 255, .25)); box-shadow: inset 0 0 0 2px rgba(255, 204, 51, .45); }
.premium-cta b { font: 17px var(--font-display); color: var(--gold); }
.premium-cta p { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.track { display: grid; gap: 6px; }
.track-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.track-row.head { position: sticky; top: 0; z-index: 2; padding: 4px 0; background: #2a1766; font: 13px var(--font-display); color: var(--ink-2); text-align: center; }
.track-row .lv { display: grid; place-items: center; border-radius: 12px; font: 18px var(--font-display); background: rgba(0, 0, 0, .3); color: var(--ink-3); }
.track-row.reached .lv { background: linear-gradient(180deg, var(--gem), #5a1fd1); color: #fff; }
.track-row.current .lv { box-shadow: 0 0 0 2px var(--cyan); }
.cell { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); min-height: 52px; min-width: 0; }
.cell.prem { background: rgba(255, 204, 51, .08); box-shadow: inset 0 0 0 1px rgba(255, 204, 51, .25); }
.cell .rw { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; min-width: 0; flex: 1; }
.cell .rw .ic { width: 26px; height: 26px; }
.cell .rw span.label { overflow-wrap: anywhere; line-height: 1.15; }
.cell canvas { width: 34px; height: 34px; flex: none; }
.cell .state { flex: none; }
.cell.claimed { opacity: .45; }
.cell .lock { color: var(--ink-3); }
@media (max-width: 520px) {
  .track-row { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); gap: 6px; }
  .cell { position: relative; flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; }
  .cell .state { align-self: stretch; }
  .cell .state .btn { width: 100%; }
  .cell .state .lock, .cell .state .tag { position: absolute; top: 6px; right: 6px; }
  .premium-cta { grid-template-columns: minmax(0, 1fr); }
}

/* missões e calendário */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-day { display: grid; gap: 3px; justify-items: center; padding: 8px 2px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 11px; font-weight: 800; color: var(--ink-3); text-align: center; position: relative; }
.cal-day .ic { width: 26px; height: 26px; }
.cal-day b { font: 12px var(--font-display); color: var(--ink-2); }
.cal-day.done { opacity: .5; }
.cal-day.today { background: rgba(61, 255, 160, .14); box-shadow: inset 0 0 0 2px var(--green); color: var(--ink); }
.mission { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.mission .m-txt { font-weight: 800; font-size: 14px; }
.mission .m-tier { font: 11px var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.mission .m-tier.facil { color: var(--green); } .mission .m-tier.medio { color: var(--cyan); } .mission .m-tier.dificil { color: var(--pink); }
.mission .m-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.mission .m-bar .bigbar { height: 10px; }
.mission .m-bar i { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.mission .m-rw { display: flex; gap: 8px; font-size: 12px; font-weight: 800; color: var(--ink-2); align-items: center; }
.mission.claimed { opacity: .5; }
.streak-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(255, 122, 26, .2), rgba(255, 61, 139, .12)); }
.streak-box .ic { width: 38px; height: 38px; }
.streak-box b { font: 20px var(--font-display); }
.streak-box p { font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* trilha de troféus */
.road { display: grid; gap: 8px; }
.road-item { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.road-item .at { display: flex; align-items: center; gap: 4px; font: 16px var(--font-display); color: var(--gold); }
.road-item.reached { background: rgba(255, 204, 51, .1); }
.road-item.claimed { opacity: .5; }
.road-item .rw { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; min-width: 0; }
.road-item .rw .ic { width: 28px; height: 28px; }
.road-item canvas { width: 36px; height: 36px; }

/* baú */
.chest-stage { display: grid; justify-items: center; gap: 14px; padding: 10px 0 4px; text-align: center; }
.chest-big { width: 160px; height: 160px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.chest-big .ic { width: 100%; height: 100%; filter: drop-shadow(0 0 24px var(--cc, #3da5ff)); }
.chest-big.shake { animation: shake var(--shake, .35s) ease; }
.chest-stage { position: relative; }
.chest-stage.opened { overflow: hidden; isolation: isolate; }
.chest-stage.t-lendario .chest-big .ic, .chest-stage.t-epico .chest-big .ic { animation: chestBeat .9s ease-in-out infinite; }
@keyframes chestBeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.chest-stage.opened.best-2::before, .chest-stage.opened.best-3::before, .chest-stage.opened.best-4::before {
  content: ""; position: absolute; left: 50%; top: 80px; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(181, 108, 255, .3) 0 12deg, transparent 12deg 30deg);
  -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 70%); mask-image: radial-gradient(circle, #000 15%, transparent 70%);
  animation: spin 9s linear infinite;
}
.chest-stage.opened.best-3::before, .chest-stage.opened.best-4::before { background: repeating-conic-gradient(rgba(255, 196, 0, .4) 0 12deg, transparent 12deg 30deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.near-miss { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: 14px; text-align: left; background: rgba(255, 176, 32, .12); box-shadow: inset 0 0 0 2px rgba(255, 176, 32, .55); animation: nearIn .5s ease both; }
.near-miss canvas { width: 46px; height: 46px; flex: none; opacity: .8; }
.near-miss b { font: 16px var(--font-display); color: var(--gold); }
.near-miss p { font-size: 12px; font-weight: 800; color: var(--ink-2); }
@keyframes nearIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.drop.jackpot { position: relative; animation-name: flip, jackpotGlow; animation-iteration-count: 1, infinite; }
.jackpot-tag { font: 13px var(--font-display); color: #2b1a00; background: var(--gold); padding: 1px 8px; border-radius: 8px; }
@keyframes jackpotGlow { 0%, 100% { box-shadow: inset 0 0 0 2px var(--gold), 0 0 12px var(--gold); } 50% { box-shadow: inset 0 0 0 3px #fff, 0 0 34px var(--gold); } }
.drop.r-vip { --rc: var(--r-vip); }
.screen-flash { position: absolute; inset: 0; z-index: 55; pointer-events: none; opacity: 0; animation: screenFlash .5s ease-out both; }
@keyframes screenFlash { 0% { opacity: .42; } 100% { opacity: 0; } }
@keyframes shake { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-9deg) scale(1.06); } 60% { transform: rotate(8deg) scale(1.1); } }
.taps { display: flex; gap: 8px; }
.taps i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.taps i.on { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.drops { display: grid; gap: 10px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); width: 100%; }
.drop { --rc: var(--r-comum); display: grid; gap: 4px; justify-items: center; padding: 12px 6px; border-radius: 16px; background: #121a40; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 30%, #121a40), #10173a); box-shadow: inset 0 0 0 2px var(--rc); animation: flip .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.drop.r-raro { --rc: var(--r-raro); } .drop.r-epico { --rc: var(--r-epico); } .drop.r-lendario { --rc: var(--r-lendario); box-shadow: inset 0 0 0 2px var(--rc), 0 0 22px rgba(255, 176, 32, .5); }
.drop .ic { width: 40px; height: 40px; }
.drop canvas { width: 56px; height: 56px; }
.drop b { font: 18px var(--font-display); }
.drop small { font-size: 11px; font-weight: 800; color: var(--rc); text-transform: uppercase; letter-spacing: .05em; }
@keyframes flip { from { transform: rotateY(90deg) scale(.7); opacity: 0; } to { transform: rotateY(0) scale(1); opacity: 1; } }
.odds { width: 100%; border-collapse: collapse; font-size: 13px; font-weight: 800; }
.odds td { padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.odds td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* compra */
.buy-box { display: grid; gap: 12px; justify-items: center; text-align: center; }
.buy-box canvas { width: 120px; height: 120px; }
.buy-box .big-price { font: 30px var(--font-display); }
.buy-box .ic.big { width: 54px; height: 54px; }
.proto-warning { padding: 10px 12px; border-radius: 12px; background: rgba(255, 204, 51, .1); box-shadow: inset 0 0 0 1px rgba(255, 204, 51, .35); color: #ffe6a0; font-size: 12px; font-weight: 800; line-height: 1.4; }

/* configurações e painel dev */
.rows { display: grid; gap: 8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); font-weight: 800; flex-wrap: wrap; }
.row .r-txt { display: grid; gap: 2px; min-width: 0; flex: 1 1 180px; }
.row .r-txt small { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.inline-input { flex: 1 1 140px; min-width: 0; max-width: 220px; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--line); background: #0a1030; color: var(--ink); font-weight: 800; font-size: 15px; outline: none; }
.inline-input:focus { border-color: var(--cyan); }
.switch { width: 52px; height: 30px; border-radius: 15px; border: 0; background: rgba(255, 255, 255, .15); position: relative; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(22px); }
.kpis { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kpi { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .25); display: grid; gap: 2px; }
.kpi small { font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.kpi b { font: 20px var(--font-display); font-variant-numeric: tabular-nums; }
.log { max-height: 220px; overflow: auto; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 8px 10px; color: var(--ink-2); user-select: text; }

/* modos de jogo */
.mode-pick { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; max-width: 100%; }
.mode-btn { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 0; border-radius: 12px; cursor: pointer; font: 13px var(--font-display); color: var(--ink-2); background: rgba(37, 21, 82, .88); box-shadow: inset 0 0 0 1px rgba(180, 120, 255, .4); }
.mode-btn .ic { width: 16px; height: 16px; }
.mode-btn.on { color: #06242a; background: linear-gradient(135deg, var(--cyan), #7bffb0); box-shadow: 0 0 16px rgba(0, 240, 255, .55); }
.mode-btn .badge { top: -9px; right: -7px; height: 16px; line-height: 16px; min-width: 0; font-size: 9px; padding: 0 4px; }
.mode-info { display: grid; gap: 3px; justify-items: center; text-align: center; max-width: 320px; }
.mode-info small { font-size: 12px; font-weight: 800; color: var(--ink-2); line-height: 1.3; }
.mode-info b { font: 13px var(--font-display); color: var(--gold); }
.board { display: grid; gap: 2px; min-width: 128px; padding: 5px 7px; border-radius: 10px; background: rgba(5, 8, 22, .6); }
.board:empty { display: none; }
.bd { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px; font-size: 11px; font-weight: 800; color: var(--ink-2); }
.bd i { font-style: normal; color: var(--ink-3); }
.bd span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 76px; }
.bd b { font-variant-numeric: tabular-nums; color: var(--ink); }
.bd.me span, .bd.me b, .bd.me i { color: var(--gold); }
@media (max-height: 760px) and (orientation: portrait) {
  .hero-core { width: min(32vh, 60vw); height: min(32vh, 60vw); }
}

/* kits, VIP e ofertas */
.starter.kit { grid-template-columns: auto minmax(0, 1fr); }
.starter.kit canvas { width: 88px; height: 88px; }
.starter.kit > .ic { width: 80px; height: 80px; }
.starter.flash { background: linear-gradient(135deg, rgba(255, 196, 0, .32), rgba(255, 46, 126, .34)); box-shadow: inset 0 0 0 2px rgba(255, 196, 0, .7); }
.vip-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(120deg, rgba(255, 47, 208, .4), rgba(123, 31, 209, .4)); box-shadow: inset 0 0 0 2px var(--gold); }
.vip-head .ic { width: 42px; height: 42px; }
.vip-head b { font: 18px var(--font-display); color: var(--gold); }
.vip-head p { font-size: 12px; font-weight: 700; color: var(--ink); }
.tab.vip.on { background: linear-gradient(160deg, #ff2fd0, #7b1fd1); }

/* continuar e energia */
.revive-t { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; font: 50px var(--font-display); color: #fff; background: radial-gradient(circle at 40% 30%, var(--pink), #7b0f3e); box-shadow: 0 0 26px rgba(255, 46, 126, .8); animation: chestBeat .9s ease-in-out infinite; }
.energy-big { font: 42px var(--font-display); display: flex; align-items: center; gap: 8px; }
.energy-big .ic { width: 44px; height: 44px; }

/* ranking */
.rank-list { display: grid; gap: 5px; }
.rank-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.rank-row .pos { font: 15px var(--font-display); color: var(--ink-2); }
.rank-row .rn { display: grid; min-width: 0; }
.rank-row .rn b { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row .rn small { font-size: 11px; font-weight: 800; color: var(--rosa); }
.rank-row .rt { font: 15px var(--font-display); white-space: nowrap; }
.rank-row.top1 { background: rgba(255, 196, 0, .2); } .rank-row.top1 .pos { color: var(--gold); }
.rank-row.top2 { background: rgba(200, 212, 236, .14); } .rank-row.top3 { background: rgba(208, 143, 90, .16); }
.rank-row.me { box-shadow: inset 0 0 0 2px var(--cyan); background: rgba(0, 240, 255, .14); }
.rank-gap { text-align: center; color: var(--ink-3); font-weight: 800; line-height: 1; }
.rank-rewards { display: grid; gap: 4px; }
.rank-rewards > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .18); font-size: 12px; font-weight: 800; }
.rank-rewards b { font: 13px var(--font-display); }
.callout.surprise { animation: nearIn .5s .9s ease both; }
.tab .badge { top: -4px; right: 4px; }

/* ---------- resultados ---------- */
.results { position: absolute; inset: 0; overflow-y: auto; display: grid; justify-items: center; align-content: start; padding: calc(var(--safe-t) + 16px) var(--gutter-r) calc(var(--safe-b) + 16px) var(--gutter-l); background: radial-gradient(ellipse at 50% 0%, rgba(46, 242, 255, .12), transparent 60%); }
.results-inner { width: min(560px, 100%); display: grid; gap: 12px; }
.place-hero { text-align: center; display: grid; gap: 2px; padding: 6px 0 2px; }
.place-num { font: clamp(64px, 20vw, 110px)/0.95 var(--font-display); color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .35); animation: slam .5s cubic-bezier(.2, 1.5, .3, 1) both; }
.place-title { font: clamp(28px, 8vw, 42px)/1 var(--font-display); animation: slam .5s .12s cubic-bezier(.2, 1.5, .3, 1) both; }
.place-sub { font-weight: 800; color: var(--ink-2); font-size: 14px; }
.place-hero.win .place-num, .place-hero.win .place-title { color: var(--gold); text-shadow: 0 0 30px rgba(255, 204, 51, .55), 0 6px 0 #8a5a00; }
.place-hero.near .place-title { color: var(--pink); }
.place-hero.mid .place-title { color: var(--cyan); }
@keyframes slam { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { padding: 10px 6px; border-radius: 14px; background: rgba(0, 0, 0, .25); text-align: center; display: grid; gap: 2px; }
.stat b { font: 22px var(--font-display); font-variant-numeric: tabular-nums; }
.stat small { font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.rewards { display: grid; gap: 10px; padding: 14px; }
.rw-line { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.rw-line > .ic { width: 30px; height: 30px; }
.rw-line .rw-mid { display: grid; gap: 4px; min-width: 0; }
.rw-line .rw-mid b { font: 15px var(--font-display); }
.rw-line .rw-mid small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.rw-line .bigbar { height: 10px; }
.rw-line .delta { font: 22px var(--font-display); font-variant-numeric: tabular-nums; }
.delta.pos { color: var(--green); } .delta.neg { color: var(--red); } .delta.gold { color: var(--gold); } .delta.gem { color: var(--gem); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 8px; font: 12px var(--font-display); background: var(--gold); color: #2b1a00; vertical-align: 2px; }
.tag.green { background: var(--green); color: #03301b; } .tag.pink { background: var(--pink); color: #fff; }
.mlist { display: grid; gap: 8px; padding: 12px 14px; }
.mline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; font-weight: 800; font-size: 13px; }
.mline .bigbar { grid-column: 1 / -1; height: 8px; }
.mline .bigbar i { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.mline.done { color: var(--green); }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 2px var(--cc, var(--line)); }
.callout .ic { width: 42px; height: 42px; }
.callout canvas { width: 54px; height: 54px; }
.callout b { font: 17px var(--font-display); }
.callout p { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.res-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; padding: 10px 0 2px; background: linear-gradient(0deg, var(--void) 60%, transparent); }
.res-actions .btn-play { width: 100%; font-size: 1.5rem; }

/* ---------- HUD ---------- */
.hud-top { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; padding: calc(var(--safe-t) + 10px) var(--gutter-r) 0 var(--gutter-l); }
.hud-left { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.hud-right { display: grid; justify-items: end; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(5, 8, 22, .65); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font: 15px var(--font-display); white-space: nowrap; }
.pill .ic { width: 17px; height: 17px; }
.pill.zone.warn { color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.quit { pointer-events: auto; cursor: pointer; border: 0; color: var(--ink-2); }
.lvl { display: grid; justify-items: center; gap: 4px; }
.lvl-row { display: flex; align-items: center; gap: 8px; font: 16px var(--font-display); }
.lvl .bar { width: min(220px, 38vw); height: 10px; border-radius: 5px; background: rgba(5, 8, 22, .7); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.lvl .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--cyan)); transition: width .15s linear; }
#minimap { width: 104px; height: 104px; border-radius: 14px; background: rgba(5, 8, 22, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.cards { display: flex; gap: 8px; margin-top: 6px; pointer-events: auto; justify-content: center; }
.card {
  width: 118px; padding: 9px 8px 8px; border-radius: 14px; border: 0; cursor: pointer; display: grid; gap: 3px; text-align: center; position: relative;
  background: linear-gradient(180deg, #24327c, #151d4c); box-shadow: inset 0 0 0 2px var(--cyan), 0 6px 16px rgba(0, 0, 0, .4);
  animation: cardIn .3s cubic-bezier(.2, 1.4, .4, 1) both;
}
.card.rare { box-shadow: inset 0 0 0 2px var(--gold), 0 0 16px rgba(255, 204, 51, .35); }
.card b { font: 15px var(--font-display); line-height: 1.05; }
.card small { font-size: 11px; font-weight: 800; color: var(--ink-2); line-height: 1.25; }
.card .key { position: absolute; top: -8px; left: -6px; width: 22px; height: 22px; border-radius: 7px; background: var(--cyan); color: #032a33; font: 13px/22px var(--font-display); }
.card .rare-tag { font: 10px var(--font-display); color: var(--gold); letter-spacing: .06em; }
.card .lvlnum { font-size: 10px; font-weight: 800; color: var(--ink-3); }
@keyframes cardIn { from { transform: translateY(-14px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.feed { display: grid; gap: 4px; justify-items: end; }
.feed-item { padding: 3px 8px; border-radius: 8px; background: rgba(5, 8, 22, .6); font-size: 12px; font-weight: 800; color: var(--ink-2); animation: feedIn .25s ease both; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
.feed-item b { color: var(--ink); }
.feed-item b.you { color: var(--gold); }
@keyframes feedIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.banner { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: clamp(30px, 7vw, 58px)/1 var(--font-display); color: #fff; text-shadow: 0 0 24px rgba(46, 242, 255, .6), 0 5px 0 rgba(0, 0, 0, .4); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .25s cubic-bezier(.2, 1.5, .3, 1); padding-inline: 16px; }
.banner.show { opacity: 1; transform: scale(1); }
.banner.gold { color: var(--gold); text-shadow: 0 0 26px rgba(255, 204, 51, .6), 0 5px 0 #8a5a00; }
.banner.pink { color: var(--pink); text-shadow: 0 0 26px rgba(255, 61, 139, .6), 0 5px 0 rgba(0, 0, 0, .4); }
.hint { position: absolute; left: 50%; bottom: calc(var(--safe-b) + 22px); transform: translateX(-50%); max-width: min(92vw, 520px); padding: 10px 16px; border-radius: 14px; background: rgba(5, 8, 22, .78); box-shadow: inset 0 0 0 2px var(--cyan); text-align: center; font-weight: 800; font-size: 14px; transition: opacity .3s ease; }
.hint:empty { opacity: 0; }
.hint b { color: var(--cyan); }
.dash-btn { position: absolute; right: calc(var(--gutter-r) + 18px); bottom: calc(var(--safe-b) + 150px); width: 74px; height: 74px; border-radius: 50%; pointer-events: auto; font: 15px var(--font-display); color: #fff; border: 0; background: radial-gradient(circle at 40% 35%, rgba(255, 61, 139, .9), rgba(150, 20, 80, .85)); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); touch-action: none; }
.dash-btn.cool { filter: grayscale(.8) brightness(.6); }
.controls-help { position: absolute; left: var(--gutter-l); bottom: calc(var(--safe-b) + 14px); font-size: 12px; font-weight: 800; color: var(--ink-3); display: grid; gap: 2px; }
@media (max-width: 640px), (max-height: 480px) {
  .hud-top { grid-template-columns: auto 1fr auto; }
  #minimap { width: 84px; height: 84px; }
  .card { width: 98px; padding: 7px 6px; }
  .card small { font-size: 10px; }
  .lvl .bar { width: min(150px, 34vw); }
  .controls-help { display: none; }
}
@media (max-width: 520px) {
  .tab { padding: 8px 4px; font-size: 13px; }
  .tab .ic { display: none; }
  .starter.kit { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .packs { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- toasts ---------- */
.toast { padding: 9px 16px; border-radius: 14px; background: rgba(12, 18, 48, .94); box-shadow: inset 0 0 0 2px var(--cyan), 0 8px 20px rgba(0, 0, 0, .4); font-weight: 800; font-size: 14px; animation: toastIn .25s ease both; text-align: center; max-width: 100%; }
.toast.good { box-shadow: inset 0 0 0 2px var(--green), 0 8px 20px rgba(0, 0, 0, .4); }
.toast.warn { box-shadow: inset 0 0 0 2px var(--gold), 0 8px 20px rgba(0, 0, 0, .4); }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateY(-12px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* PvP: fila */
.queue-box { text-align: center; }
.q-spin { width: 56px; height: 56px; margin: 4px auto 12px; border-radius: 50%; border: 5px solid rgba(255,255,255,.14); border-top-color: var(--gold); animation: q-spin 0.9s linear infinite; }
@keyframes q-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .q-spin { animation-duration: 3s; } }
#hud-kills small { opacity: .65; font-size: .78em; margin-left: 4px; }

/* ---------- Critical Mass: Setor X ---------- */
.sector-card { display: grid; gap: 6px; width: min(360px, 100%); padding: 10px 12px; border-radius: 16px; background: rgba(20, 10, 56, .82); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .35), 0 0 22px rgba(0, 240, 255, .15); text-align: left; }
.sc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sc-head b { font: 20px var(--font-display); letter-spacing: .04em; color: var(--cyan); text-shadow: 0 0 12px rgba(0, 240, 255, .6); }
.sc-head span { font: 13px var(--font-display); color: var(--ink-3); }
.sc-clima { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: start; }
.sc-clima .ic { width: 30px; height: 30px; }
.sc-clima > div { display: grid; gap: 1px; }
.sc-clima small { font-size: 11px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.sc-clima b { font: 16px var(--font-display); color: var(--gold); }
.sc-clima span { font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.sc-rec { font-size: 12px; font-weight: 800; color: var(--ink-2); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sc-rec .ic { width: 15px; height: 15px; }
.sc-rec b { color: var(--gold); }
.codex-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.codex-item { padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.codex-item b { font: 15px var(--font-display); color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.codex-item p { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--ink-3); line-height: 1.35; }
.codex-item.on { background: rgba(0, 240, 255, .08); box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .4); }
.codex-item.on b { color: var(--cyan); }
.codex-item.on p { color: var(--ink-2); }
.bd-title { font: 12px var(--font-display); color: var(--cyan); letter-spacing: .06em; text-align: center; padding-bottom: 2px; }
.bd span .ic { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; }
.lvl-row small { font-family: var(--font-body); font-weight: 800; font-size: 11px; color: var(--ink-3); }
.dash-btn.eject { bottom: calc(var(--safe-b) + 60px); right: calc(var(--gutter-r) + 100px); width: 64px; height: 64px; font-size: 13px; background: radial-gradient(circle at 40% 35%, rgba(0, 240, 255, .85), rgba(10, 90, 140, .85)); }
.feed-item .ic { width: 14px; height: 14px; vertical-align: -2px; }
.bd span em { font-style: normal; font-size: 9px; color: var(--ink-3); margin-left: 3px; }
.bd span { max-width: 104px; }
