:root {
  --bg0: #07061a;
  --bg1: #120d33;
  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --ink: #f4f1ff;
  --muted: #a9a3c9;
  --a1: #7cf5c8;
  --a2: #b48cff;
  --a3: #ff8bd1;
  --a4: #ffe27a;
  --a5: #5ec8ff;
  --danger: #ff6b8b;
  --radius: 18px;
  --font: ui-rounded, 'SF Pro Rounded', 'Nunito', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg0); color: var(--ink); font-family: var(--font); -webkit-tap-highlight-color: transparent; }
body { background: radial-gradient(1200px 800px at 80% -10%, #2a1460 0%, transparent 60%), radial-gradient(900px 700px at -10% 30%, #0d3a5c 0%, transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg1)); background-attachment: fixed; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 900; }
h2 { font-size: 22px; font-weight: 800; }
p { color: var(--muted); line-height: 1.5; }
.muted { color: var(--muted); }
.hidden, [hidden] { display: none !important; }

#bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#bg-orbs i { position: absolute; width: 40vmax; height: 40vmax; border-radius: 50%; filter: blur(60px); opacity: 0.18; animation: drift 28s ease-in-out infinite alternate; }
#bg-orbs i:nth-child(1) { background: var(--a2); left: -10vmax; top: 10vh; }
#bg-orbs i:nth-child(2) { background: var(--a1); right: -12vmax; top: 40vh; animation-duration: 34s; }
#bg-orbs i:nth-child(3) { background: var(--a3); left: 30vw; bottom: -20vmax; animation-duration: 40s; }
#bg-orbs i:nth-child(4) { background: var(--a5); right: 20vw; top: -20vmax; animation-duration: 31s; }
@keyframes drift { to { transform: translate(6vw, -5vh) scale(1.15); } }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px clamp(12px, 3vw, 28px); background: rgba(7, 6, 26, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.logo-orb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--a1) 30%, var(--a2) 70%, transparent 72%); box-shadow: 0 0 18px var(--a1), 0 0 40px rgba(180, 140, 255, 0.6); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); box-shadow: 0 0 26px var(--a1), 0 0 60px rgba(180, 140, 255, 0.8); } }
.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a { padding: 8px 12px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 15px; transition: 0.2s; }
.topnav a:hover, .topnav a.active { color: var(--ink); background: var(--glass2); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d6d; margin-left: 4px; box-shadow: 0 0 10px #ff4d6d; animation: blink 1.4s infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0.35; } }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--glass2); border: 1px solid var(--line); font-weight: 800; font-size: 14px; white-space: nowrap; }
.me-chip .lvl { background: linear-gradient(135deg, var(--a2), var(--a3)); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.announce { position: relative; z-index: 2; text-align: center; padding: 8px 16px; background: linear-gradient(90deg, rgba(180, 140, 255, 0.25), rgba(124, 245, 200, 0.25)); font-weight: 700; font-size: 14px; }

.tabbar { display: none; }
main { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 18px clamp(12px, 3vw, 28px) 110px; }

/* ---------- Generic UI ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; padding: 12px 20px; border-radius: 14px; font-weight: 800; font-size: 16px; background: var(--glass2); border: 1px solid var(--line); transition: transform 0.12s, filter 0.2s, background 0.2s; min-height: 44px; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: linear-gradient(135deg, var(--a1), var(--a5)); color: #071022; border: 0; box-shadow: 0 6px 24px rgba(124, 245, 200, 0.35); }
.btn.hot { background: linear-gradient(135deg, var(--a3), var(--a2)); color: #fff; border: 0; box-shadow: 0 6px 24px rgba(255, 139, 209, 0.35); }
.btn.gold { background: linear-gradient(135deg, #ffe27a, #ffb35c); color: #2a1600; border: 0; }
.btn.small { padding: 7px 12px; font-size: 14px; min-height: 34px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(8px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
input[type=text], input[type=password], input[type=search], select, textarea { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; outline: none; min-height: 44px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(124, 245, 200, 0.18); }
select option { background: #1a1440; }
label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0 6px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 700; font-size: 14px; cursor: pointer; }
.chip.active { background: linear-gradient(135deg, var(--a2), var(--a3)); border-color: transparent; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 12px; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--a1); font-weight: 700; font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--glass2); font-size: 13px; font-weight: 700; }
.bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--a1), var(--a5), var(--a2)); transition: width 0.8s cubic-bezier(.2,.8,.2,1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(22px, 4vw, 44px); background: radial-gradient(600px 300px at 85% 40%, rgba(255, 107, 214, 0.35), transparent 60%), radial-gradient(500px 300px at 60% 120%, rgba(94, 242, 255, 0.3), transparent 60%), linear-gradient(135deg, #1b1050, #0c1f45); border: 1px solid var(--line); min-height: 260px; display: flex; flex-direction: column; justify-content: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.hero > *:not(canvas) { position: relative; max-width: 560px; }
.hero h1 span { background: linear-gradient(90deg, var(--a1), var(--a5), var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .stats { display: flex; gap: 16px; margin: 6px 0 18px; flex-wrap: wrap; }

.dash { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-top: 16px; }
.daily-card { position: relative; overflow: hidden; cursor: pointer; }
.daily-card .tag { font-size: 12px; font-weight: 900; letter-spacing: 0.12em; color: var(--a4); }
.quest { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.quest:last-child { border-bottom: 0; }
.quest .q-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glass2); font-size: 14px; flex: none; }
.quest.done .q-check { background: linear-gradient(135deg, var(--a1), var(--a5)); color: #071022; }
.quest .q-title { flex: 1; font-weight: 700; font-size: 14px; }
.quest .q-xp { font-size: 12px; color: var(--a4); font-weight: 800; }

/* ---------- Game cards ---------- */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.gcard { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3.4; cursor: pointer; border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s; isolation: isolate; }
.gcard:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.gcard .art { position: absolute; inset: 0; z-index: -1; }
.gcard .art i { position: absolute; border-radius: 50%; filter: blur(2px); }
.gcard .icon { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: 48px; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4)); transition: transform 0.3s; }
.gcard:hover .icon { transform: translate(-50%, -55%) scale(1.15) rotate(-6deg); }
.gcard .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }
.gcard .t { font-weight: 900; font-size: 15px; line-height: 1.15; }
.gcard .s { font-size: 12px; color: rgba(255, 255, 255, 0.75); margin-top: 3px; display: flex; gap: 8px; }
.gcard .badge { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 900; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(4px); }
.gcard .badge.live { background: #ff4d6d; }
.gcard.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gcard.big .icon { font-size: 90px; }
.gcard.big .t { font-size: 24px; }

/* ---------- Play view ---------- */
body.playing { overflow: hidden; }
body.playing .topbar, body.playing .tabbar, body.playing .announce { display: none; }
body.playing main { max-width: none; padding: 0; }
.playview { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; }
.playbar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(5, 4, 20, 0.85); border-bottom: 1px solid var(--line); z-index: 3; }
.playbar .title { font-weight: 900; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.playbar .score { font-weight: 900; font-size: 20px; min-width: 60px; text-align: center; color: var(--a4); }
.playbar .hud { font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass2); border: 1px solid var(--line); cursor: pointer; font-size: 18px; flex: none; }
.iconbtn.rec { background: #ff4d6d; animation: blink 1s infinite; }
.stage { position: relative; flex: 1; overflow: hidden; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 20, 0.55); backdrop-filter: blur(6px); overflow-y: auto; }
.panel { width: min(460px, 100%); background: linear-gradient(160deg, rgba(40, 26, 100, 0.92), rgba(12, 22, 56, 0.95)); border: 1px solid var(--line); border-radius: 24px; padding: 22px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); animation: pop 0.35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.panel .big-icon { font-size: 64px; margin-bottom: 6px; }
.panel .final { font-size: 56px; font-weight: 900; line-height: 1; background: linear-gradient(90deg, var(--a4), var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 6px 0; }
.panel .sub { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.panel .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.panel .actions .btn.wide { grid-column: span 2; }
.challenge-banner { background: linear-gradient(135deg, rgba(255, 139, 209, 0.25), rgba(180, 140, 255, 0.25)); border: 1px solid rgba(255, 139, 209, 0.5); border-radius: 14px; padding: 10px; margin: 10px 0; font-weight: 800; }
.xpline { margin: 12px 0 4px; text-align: left; font-size: 13px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; }
.lb { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb td { padding: 8px 6px; border-bottom: 1px solid var(--line); }
.lb tr.me td { background: rgba(124, 245, 200, 0.12); }
.lb td.r { width: 36px; font-weight: 900; color: var(--muted); }
.lb td.s { text-align: right; font-weight: 900; color: var(--a4); }
.lb tr:nth-child(1) td.r { color: #ffd700; }
.lb tr:nth-child(2) td.r { color: #c0c0c0; }
.lb tr:nth-child(3) td.r { color: #cd7f32; }
.tabs { display: flex; gap: 6px; margin: 10px 0; }
.tabs button { flex: 1; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; font-weight: 800; font-size: 13px; }
.tabs button.active { background: var(--glass2); border-color: var(--a1); }

/* ---------- Nations ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 12px; align-items: end; margin: 16px 0 24px; }
.podium .p { text-align: center; padding: 16px 8px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.podium .p .f { font-size: 54px; }
.podium .p.first { padding: 26px 8px; background: linear-gradient(160deg, rgba(255, 226, 122, 0.25), rgba(255, 139, 209, 0.15)); }
.podium .p.first .f { font-size: 72px; }
.nation-row { display: grid; grid-template-columns: 40px 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--glass); margin-bottom: 8px; border: 1px solid transparent; }
.nation-row.mine { border-color: var(--a1); }
.nation-row .f { font-size: 30px; }
.nation-row .power { font-weight: 900; color: var(--a4); }
.nation-row .bar { height: 6px; margin-top: 6px; }

/* ---------- Forge ---------- */
.forge { display: grid; grid-template-columns: 360px 1fr; gap: 16px; }
.forge .preview { position: relative; border-radius: 20px; overflow: hidden; min-height: 520px; border: 1px solid var(--line); background: #000; }
.engine-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; }
.engine-pick button { padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; font-size: 12px; font-weight: 800; }
.engine-pick button b { display: block; font-size: 24px; }
.engine-pick button.active { border-color: var(--a1); background: rgba(124, 245, 200, 0.15); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 38px; height: 38px; border-radius: 12px; cursor: pointer; border: 2px solid transparent; }
.swatch.active { border-color: #fff; transform: scale(1.08); }
.slider { display: grid; grid-template-columns: 1fr 60px; gap: 8px; align-items: center; }
.slider input { width: 100%; accent-color: var(--a1); }
.slider output { text-align: right; font-weight: 800; color: var(--a4); }

/* ---------- Arena ---------- */
.arena { position: fixed; inset: 0; z-index: 40; background: #05040f; touch-action: none; user-select: none; -webkit-user-select: none; }
.arena #ar-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.a-hud { position: absolute; z-index: 3; pointer-events: none; font-weight: 800; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7); }
.a-top-left { left: 12px; top: max(12px, env(safe-area-inset-top)); display: flex; gap: 8px; align-items: center; pointer-events: auto; }
.a-stats { padding: 6px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); font-size: 14px; }
.a-stats b { color: var(--a4); font-size: 18px; }
.a-lb { right: 10px; top: max(10px, env(safe-area-inset-top)); width: 190px; padding: 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(6px); font-size: 12.5px; }
.a-lb div { display: flex; gap: 6px; white-space: nowrap; overflow: hidden; }
.a-lb div span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.a-lb div.me { color: var(--a1); }
.a-lb h4, .a-nations h4 { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.a-nations { left: 50%; transform: translateX(-50%); top: max(10px, env(safe-area-inset-top)); display: flex; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(6px); font-size: 13px; }
.a-nations span { display: flex; align-items: center; gap: 3px; }
.a-nations span.mine { color: var(--a1); }
.a-feed { left: 12px; top: 64px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; max-width: 60vw; }
.a-feed div { padding: 4px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); animation: pop 0.3s; }
.a-banner { left: 50%; top: 58px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: linear-gradient(135deg, rgba(255, 139, 209, 0.6), rgba(180, 140, 255, 0.6)); font-size: 14px; white-space: nowrap; }
.a-controls { position: absolute; z-index: 4; right: 16px; bottom: calc(18px + var(--safe-b)); display: flex; gap: 14px; align-items: flex-end; }
.a-btn { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); cursor: pointer; position: relative; touch-action: none; }
.a-btn.boost { width: 88px; height: 88px; background: radial-gradient(circle, rgba(255, 139, 209, 0.45), rgba(255, 139, 209, 0.12)); }
.a-btn.on { transform: scale(0.93); background: rgba(255, 139, 209, 0.6); }
.a-btn .cd { position: absolute; inset: -2px; border-radius: 50%; }
.a-emote { position: absolute; z-index: 4; left: 16px; bottom: calc(150px + var(--safe-b)); display: flex; gap: 6px; }
.a-emote button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); font-size: 20px; cursor: pointer; }
.a-mini { position: absolute; z-index: 3; left: 12px; bottom: calc(12px + var(--safe-b)); width: 128px; height: 128px; pointer-events: none; }
.a-exit { pointer-events: auto; }
.join-panel { width: min(520px, 100%); text-align: left; }
.join-panel h1 { text-align: center; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: 0 0 12px currentColor; }
.colors button.active { border-color: #fff; transform: scale(1.15); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.how div { background: var(--glass); padding: 8px; border-radius: 12px; }
.how b { display: block; font-size: 20px; }

/* ---------- Toasts & modal ---------- */
#toast-wrap { position: fixed; z-index: 100; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 14px; background: rgba(20, 14, 50, 0.95); border: 1px solid var(--line); font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: pop 0.3s; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); padding: 16px; }
.modal-card { width: min(480px, 100%); max-height: 90vh; overflow-y: auto; }
.share-preview { width: 100%; border-radius: 16px; margin-bottom: 12px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-grid .btn { font-size: 13px; padding: 10px 6px; }

.footer { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.ad-slot { margin: 24px 0; min-height: 90px; border-radius: 16px; overflow: hidden; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .topnav { display: none; }
  .topbar { justify-content: space-between; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(7, 6, 26, 0.88); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px; border-radius: 12px; }
  .tabbar a b { font-size: 20px; }
  .tabbar a.active { color: var(--ink); background: var(--glass2); }
  .dash { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gcard.big { grid-column: span 2; grid-row: span 1; aspect-ratio: 2 / 1.1; }
  .forge { grid-template-columns: 1fr; }
  .forge .preview { min-height: 420px; order: -1; }
  .a-lb { width: 140px; font-size: 11px; }
  .a-nations { top: auto; bottom: calc(118px + var(--safe-b)); left: 12px; transform: none; font-size: 12px; }
  .a-mini { width: 96px; height: 96px; }
  .a-btn { width: 64px; height: 64px; }
  .a-btn.boost { width: 80px; height: 80px; }
  .a-emote { bottom: calc(160px + var(--safe-b)); }
  .playbar .title { max-width: 24vw; }
  .me-chip #me-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
