:root {
  --bg: #0b0d12; --bg2: #11141b; --panel: #161a23; --panel2: #1c212c; --line: #262c39; --line2: #333b4b;
  --tx: #e9edf2; --tx2: #9aa3b2; --tx3: #646d7d;
  --ember: #ff6a2b; --ember2: #ff8f4d; --cyan: #31c6ff; --gold: #ffc23d; --red: #ff3d5a; --green: #3ddc97; --vip: #ffb020;
  --f-disp: 'Chakra Petch', sans-serif; --f-body: 'Barlow', sans-serif; --f-mono: 'JetBrains Mono', monospace;
  --cut: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--tx); font-family: var(--f-body); font-size: 15px; overflow: hidden; }
body { background:
  radial-gradient(1200px 600px at 80% -10%, rgba(255,106,43,0.10), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(49,198,255,0.07), transparent 60%), var(--bg); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #2a303d; border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }

.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.mono { font-family: var(--f-mono); }
.disp { font-family: var(--f-disp); }
.muted { color: var(--tx2); } .dim { color: var(--tx3); }
.row { display: flex; align-items: center; gap: 10px; } .col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx3); }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 700; letter-spacing: 0.01em; text-wrap: balance; }
h1 { font-size: 34px; line-height: 1.05; } h2 { font-size: 24px; } h3 { font-size: 17px; }

/* ---------- botões ---------- */
.btn { --c: var(--ember); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  font-family: var(--f-disp); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c); color: #120a05; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: filter .15s, transform .1s; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); } .btn:active { transform: translateY(1px); }
.btn[disabled] { filter: grayscale(1) brightness(0.5); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--tx); box-shadow: inset 0 0 0 1.5px var(--line2); clip-path: none; border-radius: 2px; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--tx2); }
.btn.cyan { --c: var(--cyan); } .btn.gold { --c: var(--gold); } .btn.red { --c: var(--red); color: #fff; } .btn.dark { --c: var(--panel2); color: var(--tx); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 12px; } .btn.lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn.block { width: 100%; }

/* ---------- auth ---------- */
#auth { position: fixed; inset: 0; display: grid; grid-template-columns: 1.2fr 1fr; }
.auth-art { position: relative; overflow: hidden; border-right: 1px solid var(--line); }
.auth-art canvas { position: absolute; inset: 0; }
.auth-art .brand { position: absolute; left: 48px; bottom: 48px; z-index: 2; }
.logo { font-family: var(--f-disp); font-weight: 700; font-size: 64px; line-height: 0.88; letter-spacing: -0.01em; text-transform: uppercase; }
.logo b { color: var(--ember); font-weight: 700; display: block; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px; max-width: 460px; width: 100%; margin: 0 auto; gap: 18px; }
.tabs { display: flex; gap: 2px; background: var(--bg2); padding: 3px; border: 1px solid var(--line); }
.tabs button { flex: 1; height: 38px; font-family: var(--f-disp); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; color: var(--tx2); }
.tabs button.on { background: var(--panel2); color: var(--tx); box-shadow: inset 0 -2px 0 var(--ember); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx3); }
.field input { height: 46px; padding: 0 14px; background: var(--bg2); border: 1px solid var(--line2); outline: none; font-size: 16px; }
.field input:focus { border-color: var(--ember); }
.form-err { color: var(--red); font-size: 14px; min-height: 20px; }
.netbadge { position: fixed; right: 14px; bottom: 12px; z-index: 50; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx3); display: flex; align-items: center; gap: 7px; pointer-events: none; }
.netbadge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.netbadge.online i { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ---------- shell ---------- */
#app { position: fixed; inset: 0; display: grid; grid-template-columns: 232px 1fr; grid-template-rows: 64px 1fr; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(11,13,18,0.8); backdrop-filter: blur(8px); }
.topbar .logo { font-size: 22px; line-height: 1; display: flex; gap: 6px; } .topbar .logo b { display: inline; }
.wallet { display: flex; gap: 8px; margin-left: auto; }
.chip-cur { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 14px; font-weight: 500; }
.chip-cur .ic { width: 14px; height: 14px; }
.ic-coin { border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe7a0, #e0a020 60%, #8a5a00); box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25); }
.ic-crys { background: linear-gradient(135deg, #b8f0ff, #31c6ff 50%, #1462a0); clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%); }
.me-pill { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--f-disp); font-weight: 700; font-size: 17px; color: #0b0d12; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }
.avatar.lg { width: 96px; height: 96px; font-size: 44px; }
.vip-tag { font-family: var(--f-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 2px 6px; background: var(--vip); color: #1a1000; }

.side { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; font-family: var(--f-disp); font-weight: 600; font-size: 14.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tx2); position: relative; text-align: left; }
.nav .n { font-family: var(--f-mono); font-size: 11px; color: var(--tx3); width: 18px; }
.nav:hover { color: var(--tx); background: var(--panel); }
.nav.on { color: var(--tx); background: linear-gradient(90deg, rgba(255,106,43,0.16), transparent); }
.nav.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--ember); }
.nav.vipnav.on { background: linear-gradient(90deg, rgba(255,176,32,0.16), transparent); } .nav.vipnav.on::before { background: var(--vip); }
.side .sep { height: 1px; background: var(--line); margin: 12px 6px; }
.side .foot { margin-top: auto; padding: 10px 6px 0; }

main { overflow-y: auto; position: relative; }
.page { padding: 30px 34px 60px; max-width: 1340px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-head .grow p { color: var(--tx2); margin-top: 6px; max-width: 640px; text-wrap: pretty; }

.card { background: var(--panel); border: 1px solid var(--line); position: relative; }
.card.pad { padding: 18px; }
.grid { display: grid; gap: 14px; }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.hero-main { min-height: 340px; padding: 28px; overflow: hidden; display: flex; flex-direction: column; background: linear-gradient(135deg, #1c1410, #12141a 60%); border-color: #3a2618; }
.hero-main .bey-stage { position: absolute; right: -30px; top: 50%; transform: translateY(-50%); width: 360px; height: 360px; }
.hero-main .bey-stage canvas { width: 100%; height: 100%; }
.mode-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { padding: 18px; display: flex; flex-direction: column; gap: 6px; text-align: left; transition: border-color .15s, transform .15s; min-height: 160px; }
.tile:hover { border-color: var(--line2); transform: translateY(-2px); }
.tile .tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.tile h3 { font-size: 20px; margin-top: auto; }
.tile p { color: var(--tx2); font-size: 13.5px; text-wrap: pretty; }
.tile.stake { background: linear-gradient(160deg, rgba(255,61,90,0.12), var(--panel) 60%); border-color: #4a2030; }
.tile.vipt { background: linear-gradient(160deg, rgba(255,176,32,0.14), var(--panel) 60%); border-color: #4a3818; }

.statbar { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 10px; font-size: 12px; }
.statbar .lbl { font-family: var(--f-mono); color: var(--tx3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10.5px; }
.statbar .trk { height: 6px; background: #0b0d12; position: relative; overflow: hidden; }
.statbar .trk i { position: absolute; inset: 0 auto 0 0; background: var(--c, var(--ember)); }
.statbar .v { font-family: var(--f-mono); text-align: right; color: var(--tx2); }

.log { display: flex; flex-direction: column; }
.log div { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; display: flex; gap: 12px; color: var(--tx2); }
.log div span:first-child { font-family: var(--f-mono); font-size: 11px; color: var(--tx3); width: 44px; flex: none; padding-top: 2px; }

/* ---------- peças ---------- */
.rar { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.part { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--line); position: relative; text-align: left; transition: border-color .15s, background .15s; }
.part:hover { border-color: var(--line2); background: var(--panel2); }
.part.sel { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember); }
.part .art { height: 84px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.05), transparent 70%); position: relative; }
.part .art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rc); opacity: 0.8; }
.part .nm { font-family: var(--f-disp); font-weight: 600; font-size: 14.5px; line-height: 1.15; }
.part .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.part .lvl { position: absolute; top: 8px; right: 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--gold); }
.part .eq { position: absolute; top: 8px; left: 8px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.08em; padding: 2px 5px; background: var(--cyan); color: #04121a; font-weight: 700; }
.part .price { font-family: var(--f-mono); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.part .price .ic { width: 12px; height: 12px; }
.mini-stats { display: flex; gap: 8px; font-family: var(--f-mono); font-size: 10.5px; color: var(--tx3); flex-wrap: wrap; }
.mini-stats b { color: var(--tx2); font-weight: 500; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.fbtn { height: 32px; padding: 0 12px; font-family: var(--f-disp); font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--tx2); border: 1px solid var(--line); background: var(--bg2); }
.fbtn.on { color: var(--tx); border-color: var(--ember); background: rgba(255,106,43,0.1); }

/* ---------- oficina ---------- */
.ws { display: grid; grid-template-columns: 300px 1fr 340px; gap: 14px; align-items: start; }
.bey-list { display: flex; flex-direction: column; gap: 6px; }
.bey-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); text-align: left; }
.bey-row:hover { border-color: var(--line2); }
.bey-row.on { border-color: var(--ember); background: linear-gradient(90deg, rgba(255,106,43,0.1), var(--panel)); }
.bey-row .nm { font-family: var(--f-disp); font-weight: 600; font-size: 14.5px; }
.bey-row .sub { font-family: var(--f-mono); font-size: 11px; color: var(--tx3); }
.badge { font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 6px; text-transform: uppercase; }
.badge.act { background: var(--ember); color: #120a05; } .badge.inc { background: #3a2020; color: #ff8a8a; }
.ws-center { padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 620px; }
.ws-preview { width: 300px; height: 300px; position: relative; display: grid; place-items: center; }
.ws-preview::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed var(--line2); }
.ws-preview canvas { position: relative; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.slot { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--bg2); border: 1px solid var(--line); text-align: left; min-height: 66px; }
.slot:hover { border-color: var(--line2); }
.slot.on { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.slot .sl { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx3); }
.slot .sv { font-family: var(--f-disp); font-weight: 600; font-size: 14px; }
.slot .empty { color: var(--red); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { width: 26px; height: 26px; border: 2px solid transparent; outline: 1px solid var(--line2); }
.sw.on { border-color: var(--bg); outline: 2px solid var(--tx); }
.name-in { height: 40px; background: var(--bg2); border: 1px solid var(--line2); padding: 0 12px; font-family: var(--f-disp); font-weight: 600; font-size: 18px; text-align: center; outline: none; width: 100%; }
.name-in:focus { border-color: var(--ember); }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 520px; overflow-y: auto; padding-right: 4px; }

/* ---------- loja ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.shop-grid .part .art { height: 120px; }
.vip-banner { padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 20px; overflow: hidden;
  background: linear-gradient(120deg, #2a1d08, #161a23 55%), var(--panel); border-color: #5a4318; }
.vip-banner h2 { color: var(--vip); font-size: 30px; }
.vip-perks { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.vip-perks div { font-size: 13.5px; color: var(--tx2); display: flex; gap: 8px; align-items: center; }
.vip-perks div::before { content: ''; width: 6px; height: 6px; background: var(--vip); transform: rotate(45deg); }
.capsule { display: grid; grid-template-columns: 180px 1fr auto; gap: 22px; align-items: center; padding: 20px; margin-bottom: 20px; }
.capsule-orb { width: 150px; height: 150px; margin: 0 auto; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff 0, #ffd27a 8%, #ff6a2b 30%, #6a1a5a 70%, #1a0820 100%); box-shadow: 0 0 60px rgba(255,106,43,0.35), inset 0 -10px 30px rgba(0,0,0,0.5); animation: orb 4s ease-in-out infinite; }
.capsule-orb::after { content: ''; position: absolute; inset: 46% 0; background: rgba(0,0,0,0.5); }
@keyframes orb { 50% { transform: translateY(-6px) rotate(4deg); } }
.odds { display: flex; gap: 14px; font-family: var(--f-mono); font-size: 12px; flex-wrap: wrap; }
.locked { position: absolute; inset: 0; background: rgba(11,13,18,0.55); display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--vip); backdrop-filter: grayscale(0.7); }

/* ---------- jornada ---------- */
.chapter { margin-bottom: 26px; }
.chapter-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.chapter-head .num { font-family: var(--f-mono); font-size: 13px; color: var(--c); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; }
.stage { padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 150px; position: relative; overflow: hidden; }
.stage:not([disabled]):hover { border-color: var(--c); }
.stage[disabled] { opacity: 0.45; cursor: not-allowed; }
.stage .sn { font-family: var(--f-mono); font-size: 11px; color: var(--tx3); }
.stage .op { font-family: var(--f-disp); font-weight: 700; font-size: 16px; line-height: 1.1; }
.stage.boss { background: linear-gradient(160deg, color-mix(in oklch, var(--c) 18%, transparent), var(--panel) 70%); border-color: color-mix(in oklch, var(--c) 40%, var(--line)); }
.stage .clr { position: absolute; top: 10px; right: 10px; font-family: var(--f-mono); font-size: 10px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; }
.stage .rw { margin-top: auto; display: flex; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--tx2); align-items: center; }
.stage .rw .ic { width: 11px; height: 11px; display: inline-block; vertical-align: -1px; margin-right: 4px; }
.stage .opbey { position: absolute; right: -16px; bottom: -16px; opacity: 0.25; }
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 40; display: grid; place-items: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(620px, 94vw); max-height: 90vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line2); padding: 24px; animation: pop .2s cubic-bezier(.2,1.3,.4,1); }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } }
.drop-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.drop-item { padding: 8px; background: var(--bg2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.drop-item .nm { font-family: var(--f-disp); font-size: 12.5px; font-weight: 600; line-height: 1.1; }
.drop-item .ch { font-family: var(--f-mono); font-size: 10.5px; color: var(--tx3); }

/* ---------- PVP ---------- */
.pvp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pvp-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 380px; position: relative; overflow: hidden; }
.pvp-card.stake { background: linear-gradient(170deg, rgba(255,61,90,0.13), var(--panel) 55%); border-color: #4a2030; }
.pvp-card h2 { font-size: 30px; }
.pvp-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--tx2); font-size: 14px; }
.pvp-card li { display: flex; gap: 10px; } .pvp-card li::before { content: '—'; color: var(--tx3); }
.seg { display: flex; border: 1px solid var(--line2); width: fit-content; }
.seg button { height: 34px; padding: 0 14px; font-family: var(--f-disp); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tx2); }
.seg button.on { background: var(--panel2); color: var(--tx); box-shadow: inset 0 -2px 0 var(--cyan); }
.searching { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px 14px 12px 20px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line2); border-top-color: var(--ember); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
table.lb { width: 100%; border-collapse: collapse; }
table.lb td, table.lb th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
table.lb th { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tx3); font-weight: 500; }
table.lb td.n { font-family: var(--f-mono); }

/* ---------- batalha ---------- */
#battle {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  z-index: 60;
  background: #06070a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.b-top {
  flex: 0 0 74px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: #0b0d12;
  box-sizing: border-box;
  z-index: 20;
}
.b-pl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b-pl.r { flex-direction: row-reverse; text-align: right; }
.b-pl .nm { font-family: var(--f-disp); font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-pl .bn { font-family: var(--f-mono); font-size: 11px; color: var(--tx3); }
.b-meters { display: flex; flex-direction: column; gap: 4px; width: 220px; }
.b-pl.r .b-meters { align-items: flex-end; }
.meter { height: 8px; width: 100%; background: #14171e; position: relative; overflow: hidden; }
.meter i { position: absolute; top: 0; bottom: 0; left: 0; transition: width .1s linear; }
.b-pl.r .meter i { left: auto; right: 0; }
.meter.spin i { background: linear-gradient(90deg, var(--cyan), #a6ecff); }
.meter.burst { height: 4px; } .meter.burst i { background: var(--red); }
.meter-lbl { display: flex; justify-content: space-between; width: 100%; font-family: var(--f-mono); font-size: 10px; color: var(--tx3); letter-spacing: 0.08em; }
.b-score { text-align: center; }
.b-score .sc { font-family: var(--f-disp); font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: 0.04em; }
.b-score .sc span { color: var(--tx3); margin: 0 8px; }
.b-score .info { font-family: var(--f-mono); font-size: 10.5px; color: var(--tx3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.b-stage {
  flex: 1 1 0px;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  touch-action: none;
}
.b-stage canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.b-ctrl { position: absolute; right: 26px; bottom: 26px; display: flex; gap: 12px; align-items: flex-end; z-index: 25; }
.abtn { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--f-disp); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; position: relative; background: #151922; border: 2px solid var(--line2); }
.abtn .k { position: absolute; bottom: -20px; left: 0; right: 0; font-family: var(--f-mono); font-size: 10px; color: var(--tx3); }
.abtn.sp { width: 108px; height: 108px; }
.abtn.ready { border-color: var(--c, var(--ember)); box-shadow: 0 0 24px var(--c, var(--ember)), inset 0 0 20px rgba(255,255,255,0.08); color: #fff; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 40px var(--c, var(--ember)); } }
.abtn svg { position: absolute; inset: -2px; width: calc(100% + 4px); height: calc(100% + 4px); transform: rotate(-90deg); }
.b-help {
  position: absolute;
  top: 14px;
  left: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--tx3);
  line-height: 1.8;
  letter-spacing: 0.04em;
  z-index: 10;
  pointer-events: none;
}
.b-help button { pointer-events: auto; }
.b-help b { color: var(--tx2); font-weight: 500; padding: 1px 5px; border: 1px solid var(--line2); margin-right: 4px; }
.b-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.b-overlay > * { pointer-events: auto; }
.callout { font-family: var(--f-disp); font-weight: 700; text-transform: uppercase; text-align: center; letter-spacing: 0.02em; animation: slam .5s cubic-bezier(.2,1.6,.4,1); text-shadow: 0 6px 40px rgba(0,0,0,0.8); }
.callout .big { font-size: 110px; line-height: 0.9; }
.callout .sm { font-size: 20px; letter-spacing: 0.3em; color: var(--tx2); margin-top: 10px; }
@keyframes slam { from { transform: scale(2.2); opacity: 0; } }
.launcher { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 26px 34px; background: rgba(11,13,18,0.88); border: 1px solid var(--line2); backdrop-filter: blur(6px); }
.launch-bar { width: 440px; height: 26px; position: relative; background: #14171e; border: 1px solid var(--line2); overflow: hidden; }
.launch-bar .zone { position: absolute; top: 0; bottom: 0; right: 0; width: 6%; background: repeating-linear-gradient(45deg, rgba(255,194,61,0.5) 0 6px, rgba(255,194,61,0.25) 6px 12px); border-left: 2px solid var(--gold); }
.launch-bar .fill { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, #6b2a10, var(--ember), #ffd27a); }
.launch-bar .needle { position: absolute; top: -3px; bottom: -3px; width: 3px; background: #fff; box-shadow: 0 0 10px #fff; }
.launch-status { display: flex; gap: 30px; font-family: var(--f-mono); font-size: 12px; color: var(--tx2); }
.result { width: min(640px, 94vw); padding: 30px; background: rgba(16,19,26,0.96); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 18px; animation: pop .3s cubic-bezier(.2,1.3,.4,1); }
.result .title { font-family: var(--f-disp); font-weight: 700; font-size: 64px; line-height: 0.9; text-transform: uppercase; }
.result .rw { display: flex; gap: 10px; flex-wrap: wrap; }
.result .rw > div { padding: 10px 14px; background: var(--bg2); border: 1px solid var(--line); font-family: var(--f-mono); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.rounds { display: flex; gap: 6px; }
.rounds span { font-family: var(--f-mono); font-size: 11px; padding: 4px 8px; background: var(--bg2); border: 1px solid var(--line); }
.stake-box { padding: 16px; display: flex; gap: 16px; align-items: center; border: 1px solid; }
.stake-box.win { border-color: var(--green); background: rgba(61,220,151,0.08); }
.stake-box.lose { border-color: var(--red); background: rgba(255,61,90,0.08); }

.toast-wrap { position: fixed; top: 76px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--ember); font-size: 14px; max-width: 360px; animation: tin .25s; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
.toast.err { border-left-color: var(--red); } .toast.good { border-left-color: var(--green); }
@keyframes tin { from { transform: translateX(30px); opacity: 0; } }

.empty-state { padding: 40px; text-align: center; color: var(--tx2); border: 1px dashed var(--line2); }
.desktop-help { display: block; }
.mobile-help { display: none; }
.auth-mobile-header { display: none; }
.nav .nav-ic { display: none; }
.callout-intro { display: flex; align-items: center; justify-content: center; gap: 36px; }
.b-poke-ic { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; }
.arenas-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }

/* Card de Bey Ativa no PvP */
.pvp-active-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pvp-active-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 250px;
}
.pvp-bey-name {
  font-size: 18px;
  margin-top: 2px;
}
.pvp-active-pref {
  flex: 1;
  min-width: 250px;
}

/* Joystick Virtual Tátil para Mobile */
.v-joystick {
  position: absolute;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.v-joystick.active {
  opacity: 1;
}
.v-joy-base {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(49, 198, 255, 0.6);
  background: radial-gradient(circle, rgba(49, 198, 255, 0.18) 0%, rgba(4, 15, 30, 0.45) 70%);
  box-shadow: 0 0 16px rgba(49, 198, 255, 0.5), inset 0 0 10px rgba(49, 198, 255, 0.3);
}
.v-joy-base::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(49, 198, 255, 0.4);
}
.v-joy-stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #76ddff, #0099cc 70%, #004d66);
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(49, 198, 255, 0.9), inset 0 0 8px rgba(255, 255, 255, 0.6);
  will-change: transform;
}

/* Joystick Virtual Analógico Fixo para Mobile (D-pad/Analógica) */
.fixed-joystick {
  position: absolute;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 124px;
  height: 124px;
  border-radius: 50%;
  z-index: 30;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
.joy-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 22, 36, 0.72) 0%, rgba(6, 10, 18, 0.88) 75%);
  border: 2.5px solid rgba(49, 198, 255, 0.55);
  box-shadow: 0 0 20px rgba(49, 198, 255, 0.35), inset 0 0 16px rgba(49, 198, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.joy-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px dashed rgba(49, 198, 255, 0.35);
  pointer-events: none;
}
.joy-axis-h {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: rgba(49, 198, 255, 0.2);
  pointer-events: none;
}
.joy-axis-v {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(49, 198, 255, 0.2);
  pointer-events: none;
}
.joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #76ddff 0%, #1582b8 60%, #083c59 100%);
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 16px rgba(49, 198, 255, 0.8), inset 0 0 8px rgba(255, 255, 255, 0.7);
  pointer-events: none;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}
.joy-knob-core {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px #ffffff;
}

/* ---------- Subdomínio e Elementos Holográficos ---------- */
.subdomain-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(49, 198, 255, 0.08);
  border: 1px solid rgba(49, 198, 255, 0.25);
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.subdomain-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blink 2s infinite ease-in-out;
}
@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.sound-btn {
  width: 36px;
  height: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sound-btn:hover {
  background: var(--panel2);
  border-color: var(--line2);
}

/* Badges de Tipo Pokémon */
.poke-type {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.poke-type.fire     { background: rgba(255, 69, 0, 0.2);   color: #ff5722; border: 1px solid rgba(255, 87, 34, 0.4); }
.poke-type.water    { background: rgba(33, 150, 243, 0.2); color: #2196f3; border: 1px solid rgba(33, 150, 243, 0.4); }
.poke-type.grass    { background: rgba(76, 175, 80, 0.2);  color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.4); }
.poke-type.electric { background: rgba(255, 235, 59, 0.2); color: #ffeb3b; border: 1px solid rgba(255, 235, 59, 0.4); }
.poke-type.psychic  { background: rgba(233, 30, 99, 0.2);  color: #f06292; border: 1px solid rgba(240, 98, 146, 0.4); }
.poke-type.ghost    { background: rgba(156, 39, 176, 0.2); color: #ba68c8; border: 1px solid rgba(186, 104, 200, 0.4); }
.poke-type.dragon   { background: rgba(125, 92, 255, 0.2); color: #a98bff; border: 1px solid rgba(169, 139, 255, 0.4); }
.poke-type.ice      { background: rgba(0, 229, 255, 0.2);  color: #00e5ff; border: 1px solid rgba(0, 229, 255, 0.4); }
.poke-type.fighting { background: rgba(188, 170, 164, 0.2);color: #d7ccc8; border: 1px solid rgba(215, 204, 200, 0.4); }
.poke-type.normal   { background: rgba(144, 164, 174, 0.2);color: #b0bec5; border: 1px solid rgba(176, 190, 197, 0.4); }
.poke-type.bug      { background: rgba(118, 255, 3, 0.2);  color: #76ff03; border: 1px solid rgba(118, 255, 3, 0.4); }

/* =========================================================================
   HOLOGRAMA ANIMADO DA FERA-BIT (UI & ARENA)
   ========================================================================= */

/* Display do Holograma no Card do Bey (Home & Oficina) */
.live-holo-display {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  animation: holoFloat 3.2s ease-in-out infinite;
}

.live-holo-display.ws-holo {
  top: 6px;
}
.live-holo-display.ws-holo .live-holo-beast {
  width: 90px;
  height: 90px;
}
.live-holo-display.ws-holo .holo-emitter-ring {
  width: 60px;
  height: 12px;
}

.live-holo-beast {
  width: 104px;
  height: 104px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 14px rgba(49, 198, 255, 0.85)) drop-shadow(0 0 24px rgba(49, 198, 255, 0.45));
  opacity: 0.95;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.live-holo-beast:hover {
  filter: drop-shadow(0 0 18px rgba(255, 179, 0, 0.95)) drop-shadow(0 0 30px rgba(255, 87, 34, 0.6));
}

.holo-emitter-ring {
  width: 72px;
  height: 14px;
  margin-top: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(49, 198, 255, 0.7);
  box-shadow: 0 0 12px rgba(49, 198, 255, 0.8), inset 0 0 8px rgba(49, 198, 255, 0.5);
  background: radial-gradient(ellipse at center, rgba(49, 198, 255, 0.35) 0%, rgba(49, 198, 255, 0) 70%);
  animation: emitterPulse 2s ease-in-out infinite alternate;
}

.holo-tag {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #c7f2ff;
  text-shadow: 0 0 8px rgba(49, 198, 255, 0.9);
  background: rgba(4, 15, 30, 0.7);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(49, 198, 255, 0.4);
}

@keyframes holoFloat {
  0%, 100% {
    transform: translateX(-50%) translateY(0px) scale(1);
  }
  50% {
    transform: translateX(-50%) translateY(-9px) scale(1.03);
  }
}

@keyframes emitterPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.6;
    box-shadow: 0 0 8px rgba(49, 198, 255, 0.5), inset 0 0 5px rgba(49, 198, 255, 0.3);
  }
  100% {
    transform: scale(1.08);
    opacity: 1;
    box-shadow: 0 0 16px rgba(49, 198, 255, 0.95), inset 0 0 12px rgba(49, 198, 255, 0.7);
  }
}

/* ==================== CINEMÁTICA DE MOVIMENTO ESPECIAL (FERABIT DESPERTADA) ==================== */
.special-cinematic-banner {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: cinematicSlam 0.32s cubic-bezier(0.18, 1, 0.3, 1) forwards;
  transition: opacity 0.32s ease-out, transform 0.32s ease-out;
}
.special-cinematic-banner.fade-out {
  opacity: 0;
  transform: translateY(-50%) scale(1.06);
}
.cinematic-backdrop {
  position: absolute;
  inset: -36px 0;
  background: linear-gradient(90deg, rgba(6,8,13,0) 0%, rgba(6,8,13,0.92) 15%, rgba(11,15,25,0.97) 50%, rgba(6,8,13,0.92) 85%, rgba(6,8,13,0) 100%);
  border-top: 2.5px solid var(--holo-glow, #31c6ff);
  border-bottom: 2.5px solid var(--holo-glow, #31c6ff);
  box-shadow: 0 0 35px var(--holo-glow, #31c6ff), inset 0 0 30px rgba(0,0,0,0.85);
  transform: skewY(-2.5deg);
}
.cinematic-speedlines {
  position: absolute;
  inset: -36px 0;
  background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,0.035) 24px 26px);
  transform: skewY(-2.5deg);
  animation: speedlinesShift 0.22s linear infinite;
}
.cinematic-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 36px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}
.cinematic-beast-slot {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cinematic-aura-pulse {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--holo-glow, #31c6ff) 0%, transparent 70%);
  opacity: 0.75;
  filter: blur(14px);
  animation: auraThrob 1s ease-in-out infinite alternate;
}
.cinematic-poke-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  image-rendering: pixelated;
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 0 16px var(--holo-glow, #31c6ff));
  animation: beastRoar 0.5s ease-out;
}
.cinematic-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 4;
  opacity: 0.45;
}
.cinematic-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cinematic-badge {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--holo-glow, #31c6ff);
  letter-spacing: 0.18em;
  text-shadow: 0 0 8px var(--holo-glow, #31c6ff);
}
.cinematic-trainer {
  font-family: var(--f-disp);
  font-size: 16px;
  font-weight: 600;
  color: var(--tx2);
  letter-spacing: 0.05em;
}
.cinematic-trainer .beast-nm {
  font-weight: 700;
}
.cinematic-title {
  font-family: var(--f-disp);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 20px var(--holo-glow, #31c6ff), 0 4px 10px rgba(0,0,0,0.9);
}
.cinematic-desc {
  font-family: var(--f-body);
  font-size: 13px;
  color: var(--tx2);
  line-height: 1.4;
  margin-top: 2px;
}

@keyframes cinematicSlam {
  0% { opacity: 0; transform: translateY(-50%) scale(1.25) skewX(-4deg); }
  100% { opacity: 1; transform: translateY(-50%) scale(1) skewX(0deg); }
}
@keyframes speedlinesShift {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}
@keyframes auraThrob {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.95; }
}
@keyframes beastRoar {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* =========================================================================
   ADAPTAÇÃO MOBILE & RESPONSIVIDADE COMPLETA (Fica no final para ter precedência)
   ========================================================================= */

/* Tablets e Telas Médias (<= 1100px) */
@media (max-width: 1100px) {
  #auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-mobile-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
  .ws { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(3, 1fr); }
  #app { grid-template-columns: 74px 1fr; }
  .nav span.nav-txt { display: none; }
  .nav span.nav-ic { display: block; font-size: 20px; }
  .nav .n { display: none; }
  .nav { justify-content: center; }
  .side .foot { display: none; }
  .pvp-grid { grid-template-columns: 1fr; }
  .b-meters { width: 140px; }
  .launch-bar { width: 80vw; }
  .callout .big { font-size: 64px; }
}

/* Smartphones e Tablets Compactos (<= 768px) */
@media (max-width: 768px) {
  * { -webkit-tap-highlight-color: transparent; }
  html, body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Layout do App com Barra de Navegação Inferior Móvel */
  #app {
    height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: 54px 1fr auto;
  }

  /* Topbar Compacta no Mobile */
  .topbar {
    height: 54px;
    padding: 0 10px;
    gap: 6px;
  }
  .topbar .logo {
    font-size: 16px;
  }
  .subdomain-tag {
    display: none !important;
  }
  .wallet {
    gap: 4px;
    margin-left: auto;
  }
  .chip-cur {
    height: 30px;
    padding: 0 6px;
    font-size: 11.5px;
    gap: 3px;
  }
  .chip-cur .ic {
    width: 11px;
    height: 11px;
  }
  .sound-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .me-pill {
    padding: 2px 6px 2px 2px;
    gap: 4px;
  }
  .me-pill .avatar {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .me-pill div {
    display: none !important;
  }

  /* Ocultar NetBadge no Mobile para não sobrepor abas */
  .netbadge {
    display: none !important;
  }

  /* Barra de Navegação Inferior (Mobile Bottom Navigation Bar) */
  .side {
    grid-column: 1 / -1;
    grid-row: 3;
    border-right: none;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 4px 1px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 17, 24, 0.98);
    backdrop-filter: blur(12px);
    z-index: 40;
    gap: 2px;
    height: auto;
  }
  .side .sep, .side .foot, .nav .n {
    display: none !important;
  }
  .nav {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 48px !important;
    padding: 2px 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px !important;
    border-radius: 4px !important;
    text-align: center !important;
  }
  .nav .nav-ic {
    display: block !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }
  .nav .nav-txt {
    display: block !important;
    font-size: 8px !important;
    letter-spacing: -0.02em !important;
    font-family: var(--f-disp) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
  }
  .nav.on {
    background: rgba(49, 198, 255, 0.08);
    color: var(--cyan);
  }
  .nav.on::before {
    top: 0;
    left: 15%;
    right: 15%;
    width: auto;
    height: 2.5px;
    bottom: auto;
    border-radius: 0 0 3px 3px;
    background: var(--cyan);
  }
  .nav.vipnav.on {
    background: rgba(255, 176, 32, 0.08);
    color: var(--vip);
  }
  .nav.vipnav.on::before {
    background: var(--vip);
  }

  /* Espaçamento Seguro das Páginas */
  .page {
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }
  .page-head h1 {
    font-size: 22px;
  }
  .page-head p {
    font-size: 12.5px;
  }

  /* Home Hero Responsivo */
  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-main {
    min-height: auto;
    padding: 18px 14px;
    position: relative;
    align-items: center;
    text-align: center;
  }
  .hero-main .bey-stage {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 260px;
    height: 260px;
    margin: 6px auto 10px;
  }
  .hero-title {
    max-width: 100% !important;
    font-size: 28px !important;
  }
  .hero-parts {
    font-size: 11px !important;
    margin-top: 4px;
  }
  .hero-stats {
    width: 100% !important;
    max-width: 300px;
    margin: 12px auto 0 !important;
  }
  .hero-chip-info {
    max-width: 100% !important;
    margin: 10px auto 0 !important;
    text-align: center;
  }
  .hero-btns {
    width: 100%;
    justify-content: center;
    padding-top: 14px !important;
  }
  .hero-btns .btn {
    flex: 1;
  }
  .mode-tiles {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-subgrid {
    grid-template-columns: 1fr !important;
  }

  /* Card Ativo no PvP Mobile (Correção do texto sobreposto) */
  .pvp-active-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .pvp-active-top {
    width: 100% !important;
    min-width: 0 !important;
    gap: 10px !important;
  }
  .pvp-bey-name {
    font-size: 15px !important;
  }
  .pvp-active-pref {
    width: 100% !important;
    min-width: 0 !important;
  }
  .pvp-active-pref .seg {
    display: flex !important;
    width: 100% !important;
  }
  .pvp-active-pref .seg button {
    flex: 1 1 0 !important;
    font-size: 10.5px !important;
    padding: 6px 2px !important;
    height: 32px !important;
  }

  /* Cards de PvP Compactos no Mobile */
  .pvp-card {
    min-height: auto !important;
    padding: 16px 14px !important;
    gap: 10px !important;
  }
  .pvp-card h2 {
    font-size: 22px !important;
  }
  .pvp-card ul {
    gap: 5px !important;
    font-size: 13px !important;
  }
  .pvp-card .btn.lg {
    height: 48px !important;
    font-size: 14px !important;
    margin-top: 10px !important;
  }

  /* Oficina Responsiva Móvel */
  .ws {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .ws-center {
    order: 1;
    padding: 16px 14px;
    width: 100%;
    min-height: auto;
  }
  .ws > .col:last-child {
    order: 2;
    width: 100%;
  }
  .ws > .col:first-child {
    order: 3;
    width: 100%;
  }
  .ws-preview {
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }
  .ws-preview canvas {
    width: 240px !important;
    height: 240px !important;
  }
  .inv-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    max-height: 360px;
  }

  /* Loja & Banner VIP */
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 8px;
  }
  .shop-grid .part {
    padding: 10px;
  }
  .shop-grid .part .art {
    height: 90px;
  }
  .vip-banner {
    grid-template-columns: 1fr;
    padding: 18px 14px;
    text-align: center;
  }
  .vip-banner .btn {
    width: 100%;
  }

  /* Jornada */
  .stages {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .chapter-head {
    flex-direction: column;
    gap: 4px;
  }

  /* Perfil */
  .prof-grid {
    grid-template-columns: 1fr !important;
  }
  .prof-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .prof-stats-grid .card.pad {
    padding: 12px;
  }
  .prof-stats-grid .disp {
    font-size: 22px !important;
  }

  /* Modal e Fila */
  .modal {
    padding: 16px;
    width: 95vw;
  }
  .searching {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 24px);
    max-width: 380px;
    padding: 10px 14px;
  }

  /* ==================== ARENA DE BATALHA MOBILE ==================== */
  #battle {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .b-top {
    flex: 0 0 54px;
    height: 54px;
    padding: 0 8px;
    gap: 6px;
  }
  .b-stage {
    flex: 1 1 0px;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .fixed-joystick {
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    width: 114px;
    height: 114px;
  }
  .joy-knob {
    width: 48px;
    height: 48px;
  }
  .b-pl .avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }
  .b-pl .nm {
    font-size: 12px;
    max-width: 72px;
  }
  .b-pl .bn {
    display: none;
  }
  .b-poke-ic {
    width: 22px !important;
    height: 22px !important;
  }
  .b-meters {
    width: clamp(58px, 18vw, 92px);
    gap: 2px;
  }
  .meter {
    height: 6px;
  }
  .meter-lbl {
    font-size: 8px;
  }
  .b-score .sc {
    font-size: 24px;
  }
  .b-score .info {
    font-size: 8px;
    letter-spacing: 0.04em;
  }

  /* Botões de Ação na Área do Polegar */
  .b-ctrl {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .abtn {
    width: 64px;
    height: 64px;
    font-size: 10px;
    border-width: 2px;
  }
  .abtn.sp {
    width: 76px;
    height: 76px;
    font-size: 10.5px;
  }
  .abtn .k {
    display: none;
  }

  /* Instruções de Batalha Mobile */
  .b-help {
    left: 10px;
    top: 10px;
    bottom: auto;
    line-height: 1.3;
  }
  .desktop-help {
    display: none;
  }
  .mobile-help {
    display: none;
  }
  .b-help .btn.sm {
    height: 28px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  /* Lançador de Bey Mobile */
  .launcher {
    padding: 16px 14px;
    width: 92vw;
    gap: 12px;
  }
  .launcher .disp {
    font-size: 20px !important;
  }
  .launch-bar {
    width: 100%;
    max-width: 320px;
    height: 22px;
  }
  .launch-status {
    gap: 8px;
    flex-direction: column;
    font-size: 11px;
    align-items: center;
  }
  #lBtn {
    width: 100%;
    height: 50px;
    font-size: 15px;
  }
  .launch-hint {
    font-size: 12px;
    opacity: 0.85;
  }

  /* Cinemática de Especial Mobile */
  .special-cinematic-banner {
    top: 45%;
  }
  .cinematic-body {
    gap: 14px;
    padding: 12px 18px;
  }
  .cinematic-beast-slot {
    width: 80px;
    height: 80px;
  }
  .cinematic-poke-img {
    width: 75px;
    height: 75px;
  }
  .cinematic-badge {
    font-size: 8.5px;
  }
  .cinematic-trainer {
    font-size: 13px;
  }
  .cinematic-title {
    font-size: 24px;
  }
  .cinematic-desc {
    display: none;
  }

  /* Vinhetas e Telas de Fim de Partida */
  .callout-intro {
    flex-direction: column;
    gap: 14px !important;
  }
  .callout-intro svg {
    width: 80px !important;
    height: 80px !important;
  }
  .vs-text {
    font-size: 40px !important;
  }
  .vs-names {
    font-size: 13px !important;
  }
  .callout .big {
    font-size: clamp(32px, 10vw, 68px);
  }
  .result {
    padding: 18px 14px;
    width: 94vw;
  }
  .result .title {
    font-size: 32px;
  }
}

/* ==================== ARENA MOBILE EM PAISAGEM (TELA VIRADA) ==================== */
@media (orientation: landscape) and (max-height: 550px) {
  #battle {
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .b-top {
    flex: 0 0 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    gap: 8px !important;
  }
  .b-pl .avatar {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }
  .b-pl .nm {
    font-size: 11px !important;
    max-width: 65px !important;
  }
  .b-meters {
    width: 65px !important;
  }
  .b-score .sc {
    font-size: 18px !important;
  }
  .b-score .info {
    display: none !important;
  }
  .fixed-joystick {
    left: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    width: 96px !important;
    height: 96px !important;
  }
  .joy-knob {
    width: 40px !important;
    height: 40px !important;
  }
  .b-ctrl {
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 6px !important;
  }
  .abtn {
    width: 52px !important;
    height: 52px !important;
    font-size: 9px !important;
  }
  .abtn.sp {
    width: 62px !important;
    height: 62px !important;
    font-size: 9.5px !important;
  }
  .launcher {
    padding: 10px 14px !important;
    max-height: 90vh !important;
    gap: 6px !important;
  }
  .launcher .disp {
    font-size: 16px !important;
  }
  .launch-bar {
    height: 16px !important;
    max-width: 260px !important;
  }
  #lBtn {
    height: 38px !important;
    font-size: 13px !important;
  }
  .special-cinematic-banner {
    top: 50% !important;
  }
  .cinematic-body {
    gap: 12px !important;
    padding: 8px 16px !important;
  }
  .cinematic-beast-slot {
    width: 65px !important;
    height: 65px !important;
  }
  .cinematic-poke-img {
    width: 60px !important;
    height: 60px !important;
  }
  .cinematic-badge {
    font-size: 8px !important;
  }
  .cinematic-trainer {
    font-size: 11px !important;
  }
  .cinematic-title {
    font-size: 20px !important;
  }
  .cinematic-desc {
    display: none !important;
  }
}

/* Telas Muito Pequenas (<= 380px) */
@media (max-width: 380px) {
  .topbar .logo { font-size: 15px; }
  .chip-cur { font-size: 11px; padding: 0 4px; }
  .abtn { width: 56px; height: 56px; font-size: 9px; }
  .abtn.sp { width: 68px; height: 68px; font-size: 9.5px; }
  .nav .nav-txt { font-size: 7.5px !important; }
}
