:root {
  --ink: #16142b;
  --panel: rgba(22, 20, 43, 0.9);
  --panel2: #232046;
  --line: rgba(255, 255, 255, 0.12);
  --pink: #ff4f9a;
  --yellow: #ffd23f;
  --text: #ffffff;
  --muted: #b9b5da;
  --ta: #ff7b1c;
  --tb: #2f63ff;
  --head: 'Lilita One', 'Arial Black', sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0e0c1f; color: var(--text); font-family: var(--body); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#app { position: fixed; inset: 0; }
#app canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
#ui { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#boot-error { display: none; position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 100; background: #c0263d; padding: 16px 20px; border-radius: 12px; font-weight: 700; max-width: 520px; }
kbd { display: inline-block; min-width: 24px; padding: 2px 7px; margin: 0 2px; border-radius: 7px; background: #fff; color: var(--ink); font: 900 12px/18px var(--body); text-align: center; box-shadow: 0 3px 0 #b9b5da; }
button { font-family: var(--body); cursor: pointer; }

/* ---------- screens ---------- */
.screen { position: absolute; inset: 0; pointer-events: auto; padding: 36px 48px; display: flex; animation: fadeIn 0.25s ease; }
.screen.dim { background: radial-gradient(ellipse at 30% 50%, rgba(14, 12, 31, 0.55), rgba(14, 12, 31, 0.82)); backdrop-filter: blur(3px); }
@keyframes fadeIn { from { opacity: 0; } }
.foot { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.foot.keys { left: auto; right: 32px; transform: none; background: var(--panel); padding: 8px 14px; border-radius: 14px; }

.logo { position: relative; width: 340px; height: 170px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.logo-splat { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--pink); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.25)); animation: wobble 5s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(-2deg) scale(1.03); } }
.logo h1 { position: relative; margin: 0; font: 64px/0.9 var(--head); text-align: center; color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); transform: rotate(-4deg); }
.logo h1 span { display: block; }
.logo h1 span:last-child { color: var(--yellow); font-size: 50px; }
.logo-sub { position: relative; margin-top: 8px; background: var(--ink); color: #fff; font: 16px var(--head); letter-spacing: 3px; padding: 3px 14px; border-radius: 10px; transform: rotate(-4deg); }

.loading, .title { flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #2e2766, #0e0c1f); }
.title { background: linear-gradient(transparent 55%, rgba(14, 12, 31, 0.7)); cursor: pointer; }
.title .logo { transform: scale(1.5); margin-bottom: 110px; }
.press { font: 28px var(--head); letter-spacing: 2px; text-shadow: 0 3px 0 var(--ink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.97); } }
.load-bar { width: 360px; height: 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); margin-top: 40px; overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--yellow)); border-radius: 10px; transition: width 0.3s; }
.load-text { margin-top: 12px; font: 18px var(--head); letter-spacing: 1px; }
.load-tip { position: absolute; bottom: 36px; color: var(--muted); font-weight: 700; }

.menu, .pause { justify-content: space-between; background: linear-gradient(90deg, rgba(14, 12, 31, 0.75), transparent 45%, transparent 60%, rgba(14, 12, 31, 0.55)); }
.menu-left { display: flex; flex-direction: column; gap: 12px; width: 400px; }
.menu-left .logo { margin: -10px 0 14px -10px; transform: scale(0.85); transform-origin: left top; height: 150px; }
.menu-right { display: flex; flex-direction: column; gap: 16px; width: 360px; }
.btn { display: flex; align-items: center; gap: 14px; text-align: left; border: 0; border-radius: 16px; padding: 14px 22px; background: var(--panel); color: #fff; font: 24px var(--head); letter-spacing: 1px; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35); transition: transform 0.12s, background 0.12s; transform: skewX(-4deg); }
.btn:hover { transform: skewX(-4deg) translateX(8px); background: #332d66; }
.btn.big { padding: 18px 26px; }
.btn.big b { font-size: 42px; display: block; line-height: 1; }
.btn small { display: block; font: 800 13px var(--body); color: var(--muted); letter-spacing: 0; }
.btn.primary { background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--pink), 0 0 0 4px var(--pink); }
.btn.primary small { color: #5c577f; }
.btn.primary:hover { background: var(--yellow); }
.btn.danger:hover { background: #a3223f; }
.play-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.card { background: var(--panel); border-radius: 20px; padding: 18px 20px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); border: 2px solid var(--line); }
.cap { color: var(--muted); font-weight: 900; font-size: 12px; letter-spacing: 1.5px; }
.pf-head { display: flex; gap: 14px; align-items: center; }
.pf-head b { font: 28px var(--head); display: block; }
.pf-head small { color: var(--yellow); font-weight: 900; letter-spacing: 1px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 38% 42%, #fff 0 9px, var(--ink) 9px 13px, transparent 13px), radial-gradient(circle at 62% 42%, #fff 0 9px, var(--ink) 9px 13px, transparent 13px), var(--pink); flex: none; }
.xp { margin: 14px 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.xp small { grid-column: 2; color: var(--muted); font-weight: 800; font-size: 12px; text-align: right; }
.lv { background: #fff; color: var(--ink); font: 16px var(--head); padding: 3px 9px; border-radius: 9px; }
.xpbar { height: 12px; background: rgba(255, 255, 255, 0.12); border-radius: 8px; overflow: hidden; }
.xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--yellow)); border-radius: 8px; }
.pf-stats, .pc-stats { display: flex; gap: 8px; }
.pf-stats div, .pc-stats div { flex: 1; background: rgba(255, 255, 255, 0.07); border-radius: 12px; padding: 8px; text-align: center; }
.pf-stats b, .pc-stats b { font: 22px var(--head); display: block; }
.pf-stats small, .pc-stats small { color: var(--muted); font-weight: 900; font-size: 10px; letter-spacing: 1px; }
.lo-row { display: flex; gap: 14px; align-items: center; margin: 10px 0; }
.lo-row b { font: 26px var(--head); display: block; }
.lo-row small { color: var(--muted); font-weight: 900; letter-spacing: 1px; }
.wicon { width: 56px; height: 56px; border-radius: 14px; background: var(--pink); color: #fff; display: grid; place-items: center; flex: none; }
.wicon svg { width: 34px; height: 34px; }
.wicon.big { width: 76px; height: 76px; }
.wicon.big svg { width: 48px; height: 48px; }
.chips { display: flex; gap: 8px; }
.chips span { background: rgba(255, 255, 255, 0.1); padding: 5px 12px; border-radius: 20px; font-weight: 800; font-size: 13px; }

.setup, .loadout, .settings, .howto { flex-direction: column; background: linear-gradient(rgba(14, 12, 31, 0.8), rgba(14, 12, 31, 0.55)); gap: 18px; overflow: auto; }
.head { display: flex; gap: 16px; align-items: center; }
.head h2 { margin: 0; font: 48px/1 var(--head); text-shadow: 0 4px 0 var(--ink); }
.head small { color: var(--muted); font-weight: 800; }
.back { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font: 36px/1 var(--head); box-shadow: 0 4px 0 var(--pink); }
.panel { background: var(--panel); border-radius: 22px; padding: 22px 26px; max-width: 760px; width: 100%; border: 2px solid var(--line); }
.opt { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; }
.opt label { font-weight: 900; letter-spacing: 1.5px; font-size: 14px; }
.opt label b { color: var(--yellow); margin-left: 8px; }
.opt-desc { margin: -4px 0 8px; color: var(--muted); font-weight: 700; }
.seg { display: flex; background: rgba(0, 0, 0, 0.35); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 900 14px var(--body); letter-spacing: 1px; padding: 10px 22px; border-radius: 11px; }
.seg button.on { background: var(--yellow); color: var(--ink); }
.stage { text-align: right; max-width: 420px; }
.stage b { font: 22px var(--head); display: block; }
.stage small { color: var(--muted); font-weight: 700; }
input[type=range] { width: 260px; accent-color: var(--pink); }
.name-in { background: rgba(0, 0, 0, 0.35); border: 2px solid var(--line); border-radius: 12px; color: #fff; font: 800 18px var(--body); padding: 8px 12px; width: 260px; user-select: text; }
.setup-foot { display: flex; gap: 18px; align-items: stretch; max-width: 760px; }
.wsel { display: flex; align-items: center; gap: 14px; flex: 1; }
.wsel small { color: var(--muted); font-weight: 900; font-size: 12px; letter-spacing: 1px; }
.wsel b { font: 26px var(--head); display: block; }
.chip-btn { margin-left: auto; border: 0; border-radius: 12px; padding: 8px 14px; background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 900; }
.btn.start { flex: 1.2; background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 #c28f00, 0 0 0 4px #fff; }
.btn.start b { font-size: 44px; display: block; line-height: 1; }
.btn.start small { color: #6b5200; }
.btn.start:hover { background: #fff; }

.weapons { display: flex; gap: 18px; flex-wrap: wrap; }
.wcard { width: 280px; text-align: left; color: #fff; position: relative; transition: transform 0.12s; }
.wcard:hover { transform: translateY(-4px); }
.wcard.on { border-color: var(--yellow); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 0 0 3px var(--yellow); }
.wcard b { font: 30px var(--head); display: block; margin-top: 10px; }
.wtype { color: var(--yellow); font-weight: 900; letter-spacing: 1.5px; }
.wcard p { color: var(--muted); font-weight: 700; font-size: 14px; min-height: 60px; }
.wcard em { position: absolute; top: 16px; right: 16px; background: var(--yellow); color: var(--ink); font: 900 11px var(--body); font-style: normal; padding: 4px 8px; border-radius: 8px; letter-spacing: 1px; }
.stat { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 8px; margin: 5px 0; font-weight: 900; font-size: 11px; letter-spacing: 1px; color: var(--muted); }
.stat div { height: 8px; background: rgba(255, 255, 255, 0.12); border-radius: 6px; overflow: hidden; }
.stat i { display: block; height: 100%; background: var(--pink); }
.subs { display: flex; gap: 18px; max-width: 876px; }
.subs .card { flex: 1; }
.subs b { font: 22px var(--head); display: block; }
.subs small { color: var(--muted); font-weight: 700; }

.howto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 1000px; }
.howto h4 { font: 20px var(--head); letter-spacing: 1px; margin: 4px 0 6px; color: var(--yellow); }
.howto p { color: #ddd9f5; font-weight: 700; line-height: 1.45; margin: 0 0 14px; }
.ctl-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.ctl-row em { color: var(--muted); font-size: 12px; margin: 0 4px; }
.touch-note { margin-top: 12px !important; font-size: 13px; }

.paused { font: 72px var(--head); margin: 0 0 12px; text-shadow: 0 5px 0 var(--ink); }
.pause .menu-right { width: auto; }
.pause-card { width: 460px; max-width: calc(100vw - 460px); }
.pc-head { display: flex; justify-content: space-between; font-weight: 900; letter-spacing: 1px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.pc-head b { color: var(--yellow); }
.pc-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.pc-teams h5 { margin: 0 0 6px; font-size: 12px; letter-spacing: 1px; }
.pr { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); margin-bottom: 5px; font-weight: 800; font-size: 14px; }
.pr i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.pr i svg { width: 16px; height: 16px; }
.pr.t0 i { background: var(--ta); } .pr.t1 i { background: var(--tb); }
.pr b { margin-left: auto; font-weight: 900; }
.pr em, .rr em { font-style: normal; background: #fff; color: var(--ink); font-size: 9px; padding: 1px 5px; border-radius: 5px; margin-left: 4px; }
.pr.you { outline: 2px solid var(--ta); }

.results { flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; background: linear-gradient(rgba(14, 12, 31, 0) 30%, rgba(14, 12, 31, 0.55) 48%, rgba(14, 12, 31, 0.9) 70%); }
.res-top { position: absolute; top: 26px; left: 44px; text-align: left; }
.res-top h2 { font: 88px/1 var(--head); margin: 0; text-shadow: 0 6px 0 var(--ink); animation: pop 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.res-top h2.win { color: var(--yellow); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }
.res-top small { display: inline-block; margin-top: 6px; font-weight: 800; color: #fff; background: rgba(14, 12, 31, 0.75); padding: 4px 10px; border-radius: 10px; }
.photo { background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 8px; }
.judge { display: flex; align-items: center; gap: 14px; width: min(900px, 100%); }
.judge b { font: 22px var(--head); }
.judge span { font: 30px var(--head); min-width: 92px; display: inline-block; }
.jl { display: flex; gap: 10px; align-items: baseline; color: var(--ta); }
.jr { display: flex; gap: 10px; align-items: baseline; color: var(--tb); text-align: right; }
.jbar { flex: 1; height: 28px; border-radius: 16px; background: rgba(0, 0, 0, 0.45); position: relative; overflow: hidden; border: 3px solid #fff; }
.jbar i { position: absolute; top: 0; bottom: 0; }
.ja { left: 0; background: var(--ta); }
.jb { right: 0; background: var(--tb); }
.jbar .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; min-width: 0; background: #fff; }
.res-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: min(900px, 100%); }
.rt { background: var(--panel); border-radius: 18px; padding: 12px; }
.rh, .rr { display: grid; grid-template-columns: 26px 1fr 70px 50px 50px; gap: 8px; align-items: center; }
.rh { grid-template-columns: 1fr 70px 50px 50px; font-weight: 900; font-size: 11px; letter-spacing: 1px; color: var(--muted); padding: 0 8px 6px; }
.rh em { font-style: normal; background: var(--yellow); color: var(--ink); padding: 1px 6px; border-radius: 6px; }
.t0 .rh span:first-child { color: var(--ta); } .t1 .rh span:first-child { color: var(--tb); }
.rr { padding: 7px 8px; border-radius: 10px; font-weight: 800; }
.rr:nth-child(odd) { background: rgba(255, 255, 255, 0.05); }
.rr.you { outline: 2px solid var(--ta); }
.rr i { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.rr i svg { width: 17px; height: 17px; }
.t0 .rr i { background: var(--ta); } .t1 .rr i { background: var(--tb); }
.rr .k, .rr .d { text-align: center; color: var(--muted); }
.res-foot { display: flex; gap: 14px; width: min(900px, 100%); align-items: stretch; }
.xpcard { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.xl { display: flex; gap: 10px; align-items: center; }
.xl b { font: 22px var(--head); }
.lvup { font-style: normal; background: var(--yellow); color: var(--ink); font-weight: 900; padding: 2px 8px; border-radius: 8px; animation: pulse 1s infinite; }
.xpcard small { color: var(--muted); font-weight: 800; font-size: 12px; }
.clicktoplay { align-items: center; justify-content: center; background: rgba(14, 12, 31, 0.4); cursor: pointer; }
.ctp { font: 48px var(--head); text-shadow: 0 5px 0 var(--ink); animation: pulse 1.4s infinite; }

/* stage picker */
.stages { display: flex; gap: 14px; max-width: 900px; }
.stage-card { flex: 1; text-align: left; color: #fff; position: relative; padding: 10px 12px 12px; display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; align-items: start; transition: transform 0.12s; }
.stage-card:hover { transform: translateY(-3px); }
.stage-card.on { border-color: var(--yellow); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 0 0 3px var(--yellow); }
.stage-card img { grid-row: span 3; width: 64px; height: 98px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, 0.5); }
.stage-card b { font: 20px/1.1 var(--head); margin-top: 20px; }
.stage-card small { color: var(--muted); font-weight: 700; font-size: 12px; line-height: 1.3; }
.st-time { position: absolute; top: 10px; left: 88px; font: 900 10px var(--body); letter-spacing: 1px; padding: 2px 7px; border-radius: 8px; background: #ffe27a; color: var(--ink); }
.st-time.dusk { background: #ff9a6a; }
.stage-card em { position: absolute; top: 10px; right: 10px; font: 900 10px var(--body); font-style: normal; background: var(--yellow); color: var(--ink); padding: 2px 7px; border-radius: 8px; letter-spacing: 1px; }

/* ---------- HUD ---------- */
.hud { position: absolute; inset: 0; pointer-events: none; font-family: var(--body); }
.hud.ended > * { opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.hud-top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; }
.icons { display: flex; gap: 6px; }
.ic { width: 46px; height: 46px; border-radius: 50% 50% 46% 46%; display: grid; place-items: center; position: relative; border: 3px solid #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); transition: transform 0.2s; }
.ic.t0 { background: var(--ta); } .ic.t1 { background: var(--tb); }
.ic i { color: #fff; display: grid; } .ic i svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4)); }
.ic.you::after { content: ''; position: absolute; bottom: -12px; border: 6px solid transparent; border-top-color: #fff; }
.ic.dead { background: #3a3850; transform: scale(0.85); }
.ic.dead i { opacity: 0.25; }
.ic b { position: absolute; font: 22px var(--head); color: #fff; text-shadow: 0 2px 0 var(--ink); }
.ic.ready { animation: readyGlow 0.8s ease-in-out infinite alternate; }
@keyframes readyGlow { to { box-shadow: 0 0 0 4px var(--yellow), 0 0 18px var(--yellow); } }
.timer { font: 40px/1 var(--head); background: var(--ink); color: #fff; padding: 10px 22px 12px; border-radius: 26px; border: 4px solid #fff; min-width: 124px; text-align: center; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.timer.hurry { color: var(--yellow); animation: pulse 1s infinite; }
.special { position: absolute; top: 14px; right: 18px; width: 96px; height: 96px; }
.special svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.special circle { fill: none; stroke-width: 10; }
.special .bg { fill: var(--ink); stroke: rgba(255, 255, 255, 0.2); }
.special .fg { stroke: var(--ta); stroke-dasharray: 276.5; stroke-dashoffset: 276.5; stroke-linecap: round; transition: stroke-dashoffset 0.2s; }
.sp-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sp-pct { font: 22px var(--head); }
.sp-in small { font-weight: 900; font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.special kbd { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); }
.special.ready { animation: bob 0.6s ease-in-out infinite alternate; }
.special.ready .bg { fill: var(--ta); }
.special.ready .sp-pct { font-size: 17px; }
@keyframes bob { to { transform: scale(1.08); } }
.points { position: absolute; top: 120px; right: 22px; background: var(--ink); padding: 4px 14px; border-radius: 16px; font: 24px var(--head); border: 2px solid var(--line); }
.points small { font-size: 15px; margin-left: 2px; color: var(--muted); }
.feed { position: absolute; top: 170px; right: 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.feed-row { background: var(--panel); padding: 6px 12px; border-radius: 12px; font-weight: 800; font-size: 14px; animation: slideIn 0.25s ease; transition: opacity 0.4s; }
.feed-row.out { opacity: 0; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
.fn { font-weight: 900; } .fn.t0 { color: var(--ta); } .fn.t1 { color: var(--tb); }
.cross { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.cross i { position: absolute; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5); border-radius: 2px; }
.cross i:nth-child(1) { left: 21px; top: 0; width: 2px; height: 11px; }
.cross i:nth-child(2) { left: 21px; bottom: 0; width: 2px; height: 11px; }
.cross i:nth-child(3) { top: 21px; left: 0; height: 2px; width: 11px; }
.cross i:nth-child(4) { top: 21px; right: 0; height: 2px; width: 11px; }
.cross::after { content: ''; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5); }
.cross.hide { opacity: 0; }
.hm { position: absolute; inset: -10px; opacity: 0; background:
  linear-gradient(45deg, transparent 46%, #fff 46% 54%, transparent 54%) center / 100% 100%,
  linear-gradient(-45deg, transparent 46%, #fff 46% 54%, transparent 54%) center / 100% 100%;
  -webkit-mask: radial-gradient(circle, transparent 14px, #000 15px); mask: radial-gradient(circle, transparent 14px, #000 15px); }
.hm.show { opacity: 1; }
.hm.kill { filter: drop-shadow(0 0 3px #ff2a4a) brightness(0.9) sepia(1) saturate(8) hue-rotate(-40deg); }
.inkgauge { position: absolute; left: calc(50% + 46px); top: 50%; transform: translateY(-50%); width: 12px; height: 70px; border-radius: 8px; background: rgba(0, 0, 0, 0.45); border: 2px solid #fff; overflow: hidden; opacity: 0; transition: opacity 0.25s; }
.inkgauge.show { opacity: 1; }
.inkgauge .fill { position: absolute; left: 0; right: 0; bottom: 0; background: var(--ta); }
.inkgauge .need { position: absolute; left: 0; right: 0; height: 2px; background: #fff; }
.inkgauge.short .fill { background: #ff3b3b; }
.chargering { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%) rotate(-90deg); opacity: 0; }
.chargering.show { opacity: 1; }
.chargering circle { fill: none; stroke: var(--ta); stroke-width: 5; stroke-dasharray: 251; stroke-dashoffset: 251; stroke-linecap: round; }
.chargering.full circle { stroke: #fff; }
.lowink { position: absolute; left: 50%; top: calc(50% + 50px); transform: translateX(-50%); font: 18px var(--head); color: #fff; background: #e0284f; padding: 2px 12px; border-radius: 10px; opacity: 0; transition: opacity 0.2s; }
.lowink.show { opacity: 1; animation: pulse 0.7s infinite; }
.mini-wrap { position: absolute; left: 18px; bottom: 18px; }
.minimap { display: block; width: 150px; height: 230px; border-radius: 18px; border: 4px solid #fff; background: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35); }
.mini-key { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ink); padding: 3px 10px; border-radius: 12px; font: 900 12px var(--body); white-space: nowrap; }
.banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(0.4); font: 110px var(--head); color: #fff; text-shadow: 0 7px 0 var(--ink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; opacity: 0; white-space: nowrap; }
.banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: transform 0.35s cubic-bezier(.2, 1.7, .4, 1), opacity 0.1s; }
.banner.go { color: var(--yellow); font-size: 140px; }
.banner.timeup { color: var(--yellow); }
.bigcount { position: absolute; left: 50%; top: 24%; transform: translate(-50%, -50%); font: 90px var(--head); color: var(--yellow); text-shadow: 0 6px 0 var(--ink); opacity: 0; }
.bigcount.show { animation: countPop 0.9s ease forwards; }
@keyframes countPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; } }
.toast { position: absolute; left: 50%; top: 110px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toast-item { background: var(--panel); border: 2px solid var(--yellow); padding: 7px 16px; border-radius: 14px; font-weight: 900; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } }
.hint { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); background: var(--panel); padding: 10px 20px; border-radius: 16px; font-weight: 900; font-size: 18px; opacity: 0; transition: opacity 0.5s; }
.hint.show { opacity: 1; }
.vignette { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(220, 20, 60, 0.55)); transition: opacity 0.2s; }
.vignette.flash { animation: hurt 0.35s ease; }
@keyframes hurt { 0% { box-shadow: inset 0 0 120px rgba(255, 40, 70, 0.8); } 100% { box-shadow: inset 0 0 0 transparent; } }
.death { position: absolute; left: 50%; bottom: 90px; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s; }
.death.show { opacity: 1; }
.d-card { background: var(--panel); border-radius: 20px; padding: 16px 26px; text-align: center; border: 3px solid var(--tb); min-width: 320px; }
.d-card small { color: var(--muted); font-weight: 900; letter-spacing: 2px; }
.d-card > b { display: block; font: 38px var(--head); color: var(--tb); }
.d-w { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
.d-w svg { width: 20px; height: 20px; }
.d-r { font: 22px var(--head); margin-top: 6px; }
.d-t { color: var(--yellow); font-size: 30px; }
.d-tip { color: var(--muted); font-weight: 700; font-size: 13px; margin-top: 6px; }
.bigmap { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 24px; background: rgba(14, 12, 31, 0.72); flex-wrap: wrap; align-content: center; }
.bigmap.show { display: flex; }
.bm-title { width: 100%; text-align: center; font: 36px var(--head); }
.bm-title small { display: block; font: 800 14px var(--body); color: var(--muted); }
.bigcanvas { width: 300px; height: 460px; border-radius: 22px; border: 5px solid #fff; background: var(--ink); }
.bm-list { display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.bm-t { display: flex; align-items: center; gap: 10px; min-width: 220px; border: 0; border-radius: 14px; background: var(--panel); color: #fff; font: 22px var(--head); padding: 10px 14px; border: 3px solid var(--ta); }
.bm-t small { margin-left: auto; font: 900 11px var(--body); color: var(--yellow); letter-spacing: 1px; }
.bm-t.off { opacity: 0.45; border-color: transparent; }
.lineup { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 30px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lineup.show { opacity: 1; }
.lu-team { background: var(--panel); border-radius: 22px; padding: 18px; width: 300px; border: 3px solid; }
.lu-team.t0 { border-color: var(--ta); animation: slideR 0.5s ease; } .lu-team.t1 { border-color: var(--tb); animation: slideL 0.5s ease; }
@keyframes slideR { from { transform: translateX(-80px); opacity: 0; } }
@keyframes slideL { from { transform: translateX(80px); opacity: 0; } }
.lu-team h3 { margin: 0 0 10px; font: 30px var(--head); }
.lu-team.t0 h3 { color: var(--ta); } .lu-team.t1 h3 { color: var(--tb); }
.lu-row { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; padding: 6px 0; }
.lu-row i { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.lu-row i svg { width: 22px; height: 22px; }
.lu-row.t0 i { background: var(--ta); } .lu-row.t1 i { background: var(--tb); }
.lu-row span { font: 20px var(--head); }
.lu-row small { color: var(--muted); font-weight: 800; font-size: 12px; }
.lu-vs { font: 64px var(--head); color: var(--yellow); text-shadow: 0 5px 0 var(--ink); }

/* ---------- touch ---------- */
.touch { position: absolute; inset: 0; pointer-events: none; }
.touch > * { pointer-events: auto; }
.t-stick { position: absolute; left: 30px; bottom: 30px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); border: 3px solid rgba(255, 255, 255, 0.35); touch-action: none; }
.t-knob { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); }
.t-look { position: absolute; right: 0; top: 0; width: 55%; height: 100%; touch-action: none; }
.tb { position: absolute; border: 3px solid #fff; border-radius: 50%; background: rgba(22, 20, 43, 0.6); color: #fff; font: 900 12px var(--body); letter-spacing: 1px; touch-action: none; }
.tb.on { background: var(--ta); }
.t-fire { right: 110px; bottom: 60px; width: 96px; height: 96px; font-size: 16px; }
.t-swim { right: 24px; bottom: 150px; width: 74px; height: 74px; }
.t-jump { right: 24px; bottom: 60px; width: 74px; height: 74px; }
.t-bomb { right: 220px; bottom: 40px; width: 66px; height: 66px; }
.t-sp { right: 124px; bottom: 170px; width: 66px; height: 66px; }
.t-map { left: 190px; bottom: 30px; width: 56px; height: 56px; }
.t-pause { left: 18px; top: 18px; width: 48px; height: 48px; border-radius: 14px; }
.is-touch .mini-wrap { left: 16px; bottom: auto; top: 84px; transform: scale(0.5); transform-origin: left top; }
.is-touch .mini-key, .is-touch .special kbd { display: none; }
.is-touch .feed { top: 110px; right: 110px; }
.is-touch .foot.keys, .is-touch .d-tip { display: none; }

@media (max-width: 900px), (max-height: 560px) {
  .screen { padding: 18px 20px; }
  .menu-left { width: 300px; gap: 8px; }
  .menu-left .logo { transform: scale(0.6); height: 100px; margin-bottom: 0; }
  .menu-right { width: 300px; }
  .btn { font-size: 18px; padding: 10px 16px; }
  .btn.big b, .btn.start b { font-size: 28px; }
  .play-ic { width: 36px; height: 36px; font-size: 16px; }
  .card { padding: 12px 14px; }
  .title .logo { transform: scale(1); margin-bottom: 40px; }
  .head h2 { font-size: 32px; }
  .timer { font-size: 28px; min-width: 90px; padding: 6px 14px 8px; }
  .ic { width: 34px; height: 34px; border-width: 2px; }
  .ic i svg { width: 18px; height: 18px; }
  .special { width: 72px; height: 72px; }
  .points { top: 94px; }
  .banner { font-size: 70px; }
  .howto-grid, .res-tables { grid-template-columns: 1fr; }
  .res-top h2 { font-size: 54px; }
  .lu-team { width: 230px; padding: 12px; }
  .lu-vs { font-size: 40px; }
  .pause-card { width: 340px; }
  .foot.keys { display: none; }
}
@media (max-height: 560px) {
  .menu-left .logo { transform: scale(0.5); height: 90px; margin: 0 0 0 -40px; transform-origin: left center; }
  .menu-right { gap: 10px; }
  .loadout-card { display: none; }
  .pf-head b { font-size: 22px; }
  .avatar { width: 48px; height: 48px; }
  .xp { margin: 8px 0; }
  .panel { padding: 12px 18px; }
  .opt { padding: 6px 0; }
  .res-top h2 { font-size: 44px; }
  .rr { padding: 3px 8px; }
  .results { gap: 8px; }
  .bigcanvas { width: 200px; height: 306px; }
  .stage-card small { display: none; }
  .opt-desc { display: none; }
  .results { overflow: auto; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .res-top { top: 8px; left: 16px; }
  .res-top h2 { font-size: 34px; }
  .res-tables { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rt { padding: 6px; border-radius: 12px; }
  .rh { font-size: 9px; padding: 0 4px 2px; grid-template-columns: 1fr 44px 34px 34px; }
  .rr { grid-template-columns: 18px 1fr 44px 34px 34px; font-size: 11px; padding: 2px 4px; }
  .rr i { width: 18px; height: 18px; }
  .rr i svg { width: 12px; height: 12px; }
  .judge b { font-size: 14px; }
  .judge span { font-size: 18px; min-width: 56px; }
  .jbar { height: 16px; }
  .xpcard small { display: none; }
  .xl b { font-size: 16px; }
  .res-foot { gap: 8px; }
  .stage-card img { width: 44px; height: 68px; }
  .stage-card { grid-template-columns: 44px 1fr; }
  .st-time { left: 66px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  body::after { content: 'Rotate your device to landscape'; position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: #0e0c1f; font: 24px var(--head); text-align: center; padding: 40px; }
}

/* ---------- power-ups ---------- */
.powers { position: absolute; left: 0; right: 0; bottom: 74px; display: flex; justify-content: center; gap: 10px; }
.pw-chip { display: none; align-items: center; background: var(--panel); border-radius: 26px; padding: 4px 14px 4px 4px; }
.pw-chip.show { display: flex; }
.pw-chip.ending { opacity: 0.55; }
.pw-ic { position: relative; width: 40px; height: 40px; color: #fff; }
.pw-ic > svg:first-child { position: absolute; inset: 0; transform: rotate(-90deg); }
.pw-ic .bg { fill: var(--pc); stroke: rgba(255, 255, 255, 0.25); stroke-width: 4; }
.pw-ic .fg { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 106.8; }
.pw-ic > svg:last-child { position: absolute; left: 9px; top: 9px; width: 22px; height: 22px; }
.pw-txt { margin-left: 8px; display: flex; flex-direction: column; line-height: 1; }
.pw-txt small { font-size: 11px; font-weight: 900; letter-spacing: 1px; }
.pw-txt b { font: 18px var(--head); }
.pw-banner { position: absolute; left: 50%; top: 21%; display: flex; align-items: center; gap: 14px; transform: translateX(-50%) scale(0.5); opacity: 0; transition: transform 0.3s cubic-bezier(.3,1.6,.5,1), opacity 0.15s; white-space: nowrap; }
.pw-banner.show { transform: translateX(-50%) scale(1); opacity: 1; }
.pwb-ic { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; color: #fff; }
.pwb-ic svg { width: 46px; height: 46px; }
.pwb-txt { background: var(--panel); padding: 6px 18px 8px; border-radius: 16px; display: flex; flex-direction: column; }
.pwb-txt b { font: 44px var(--head); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.pwb-txt small { font-weight: 800; font-size: 15px; color: #e6e3ff; }
.pu-layer { position: absolute; inset: 0; overflow: hidden; }
.pu-tag { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; color: #fff; }
.pu-tag svg { width: 20px; height: 20px; }
.ht-pu { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-size: 13px; color: #d8d5f2; }
.ht-pu i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ht-pu i svg { width: 15px; height: 15px; }

/* ---------- title credit ---------- */
.credit { position: absolute; bottom: 52px; display: flex; align-items: center; gap: 10px; }
.credit small { font-weight: 900; letter-spacing: 3px; font-size: 13px; color: #d8d5f2; }
.credit b { font: 22px var(--head); letter-spacing: 2px; background: #1aa7ec; padding: 2px 14px 4px; border-radius: 12px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25); -webkit-text-stroke: 1px #0b4f73; paint-order: stroke fill; }

/* ---------- currency, badges, pop-ups ---------- */
.cur { width: 22px; height: 22px; flex: none; }
.price { display: inline-flex; align-items: center; gap: 4px; font: 18px var(--head); }
.price b { margin-right: 6px; }
.badge { display: inline-block; font: 900 11px var(--body); letter-spacing: 1px; padding: 3px 8px; border-radius: 8px; color: #fff; background: var(--pink); }
.badge.inuse { background: var(--yellow); color: var(--ink); }
.badge.free-b { background: #3ddc6f; }
.owned-t { font-weight: 900; letter-spacing: 1px; color: var(--muted); font-size: 13px; }
.overlay { position: absolute; inset: 0; pointer-events: auto; background: rgba(10, 8, 24, 0.6); display: grid; place-items: center; z-index: 30; animation: fadeIn 0.2s; }
.pop { background: var(--panel2); border: 3px solid var(--yellow); border-radius: 24px; padding: 24px 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 360px; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35); animation: pop 0.35s cubic-bezier(.2, 1.6, .4, 1); }
.pop h3 { margin: 0; font: 34px var(--head); }
.pop small { color: var(--muted); font-weight: 800; }
.pop img { width: 150px; height: 188px; object-fit: contain; }
.pop-n { font: 26px var(--head); }
.pop-price { font-size: 32px; }
.pop-price .cur { width: 34px; height: 34px; }
.pop-act { display: flex; gap: 12px; }
.pop .btn { transform: none; }
.m-toast { position: absolute; left: 50%; top: 86px; transform: translateX(-50%); background: var(--panel); border: 2px solid var(--yellow); padding: 8px 18px; border-radius: 14px; font-weight: 900; z-index: 40; transition: opacity 0.4s; animation: slideDown 0.3s ease; }
.m-toast.out { opacity: 0; }
.chip { background: rgba(255, 255, 255, 0.1); padding: 4px 10px; border-radius: 12px; font-weight: 900; font-size: 12px; }
.chip.done { background: rgba(61, 220, 111, 0.25); }

/* ---------- top bar ---------- */
.topbar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: linear-gradient(rgba(14, 12, 31, 0.85), transparent); z-index: 5; }
.tb-profile { display: flex; align-items: center; gap: 10px; }
.tb-profile b { font: 20px var(--head); }
.tb-lv { display: flex; align-items: center; gap: 8px; }
.tb-lv .lv { font-size: 12px; padding: 1px 6px; }
.tb-lv .xpbar { width: 100px; height: 7px; }
.avatar.sm { width: 42px; height: 42px; background: radial-gradient(circle at 38% 42%, #fff 0 6px, var(--ink) 6px 9px, transparent 9px), radial-gradient(circle at 62% 42%, #fff 0 6px, var(--ink) 6px 9px, transparent 9px), var(--pink); }
.tb-spacer { flex: 1; }
.wallet { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 2px solid var(--line); border-radius: 22px; padding: 5px 6px 5px 10px; color: #fff; font: 18px var(--head); min-width: 120px; }
.wallet b { flex: 1; text-align: right; }
.wallet i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; background: #3ddc6f; display: grid; place-items: center; font: 900 18px/1 var(--body); }
.tb-icon { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: var(--panel); color: #fff; font-size: 22px; }
.topbar .back { width: 44px; height: 44px; font-size: 30px; }

/* ---------- main menu ---------- */
.screen.menu2 { padding: 0; background: linear-gradient(90deg, rgba(14, 12, 31, 0.78), transparent 40%, transparent 62%, rgba(14, 12, 31, 0.6)); }
.m-body { position: absolute; inset: 70px 32px 24px; display: flex; gap: 20px; }
.m-left { width: 330px; display: flex; flex-direction: column; gap: 12px; }
.m-left .logo { transform: scale(0.72); transform-origin: left top; height: 124px; margin: -6px 0 0 -6px; }
.ev-card, .mis-card { text-align: left; color: #fff; background: var(--panel); border: 3px solid var(--acc, var(--line)); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.ev-head { display: flex; justify-content: space-between; align-items: center; }
.ev-head b { font: 22px var(--head); }
.ev-timer { color: var(--yellow); font-weight: 900; font-size: 13px; }
.ev-card small { color: var(--muted); font-weight: 800; font-size: 12px; }
.mis-card h4 { margin: 0 0 2px; font: 15px var(--head); color: var(--yellow); letter-spacing: 1px; }
.mis-row { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; }
.mis-row span { flex: 1; }
.mis-row b { font-size: 12px; color: var(--muted); }
.mis-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.mis-dot.ready { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.mis-dot.done { background: #3ddc6f; }
.weekend { align-self: flex-start; background: var(--yellow); color: var(--ink); font-weight: 900; padding: 5px 12px; border-radius: 12px; animation: pulse 1.6s infinite; }
.m-mid { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.hero { position: absolute; inset: 0 0 46px; }
.preview-canvas { display: block; touch-action: none; cursor: grab; }
.hero-name { position: relative; display: flex; align-items: center; gap: 10px; background: var(--panel); padding: 6px 16px; border-radius: 16px; }
.hero-name b { font: 26px var(--head); }
.m-right { width: 340px; display: flex; flex-direction: column; gap: 14px; justify-content: flex-end; }
.play-big b { font-size: 52px !important; }
.m-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nav { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px; color: #fff; font: 18px var(--head); letter-spacing: 1px; transition: transform 0.12s; }
.nav:hover { transform: translateY(-3px); border-color: var(--yellow); }
.nav i { font-style: normal; font-size: 24px; }
.nav em { position: absolute; top: -6px; right: -6px; font-style: normal; background: #ff3b4f; min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font: 900 13px var(--body); }
.m-small { display: flex; gap: 10px; }
.small { border: 0; background: rgba(255, 255, 255, 0.1); color: #d8d5f2; font-weight: 900; letter-spacing: 1px; padding: 8px 14px; border-radius: 12px; }

/* ---------- locker ---------- */
.panelbg { padding: 0; background: linear-gradient(rgba(14, 12, 31, 0.86), rgba(14, 12, 31, 0.7)); }
.lk-body { position: absolute; inset: 76px 28px 22px; display: flex; gap: 20px; }
.lk-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-content: start; overflow: auto; }
.lk-card { position: relative; background: var(--panel); border: 2px solid var(--line); border-bottom: 5px solid var(--rar); border-radius: 16px; padding: 8px 8px 10px; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform 0.12s; }
.lk-card:hover { transform: translateY(-3px); }
.lk-card.on { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow); }
.lk-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; }
.lk-card.locked img { filter: brightness(0.55) saturate(0.6); }
.lk-card b { font: 18px var(--head); }
.lk-lock { position: absolute; top: 8px; right: 10px; font-style: normal; }
.lk-event { font-weight: 900; font-size: 12px; color: var(--yellow); }
.lk-side { width: 380px; display: flex; flex-direction: column; gap: 10px; }
.lk-preview { flex: 1; min-height: 240px; }
.lk-info { background: var(--panel); border-radius: 18px; padding: 14px 18px; }
.lk-info h3 { margin: 6px 0 2px; font: 34px var(--head); }
.lk-info p { margin: 0 0 10px; color: var(--muted); font-weight: 700; }
.lk-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.lk-act { border: 0; border-radius: 14px; padding: 10px 18px; font: 20px var(--head); display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3); }
.lk-act.primary { background: var(--yellow); }
.lk-act.selected { background: rgba(255, 255, 255, 0.15); color: var(--muted); }
.lk-act.short { opacity: 0.6; }
.lk-note { color: var(--yellow); font-weight: 800; }

/* ---------- shop ---------- */
.shop-scroll { position: absolute; inset: 76px 0 0; overflow: auto; padding: 0 32px 32px; }
.shop-h { font: 22px var(--head); letter-spacing: 1px; margin: 14px 0 10px; color: var(--yellow); }
.shop-row { display: flex; flex-wrap: wrap; gap: 12px; }
.prod { position: relative; width: 170px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.prod .cur { width: 40px; height: 40px; }
.prod > b { font: 22px var(--head); }
.prod small { color: var(--muted); font-weight: 700; font-size: 12px; }
.prod.char { border-bottom: 5px solid var(--rar); }
.prod.char img { width: 120px; height: 150px; object-fit: contain; }
.prod.owned img { filter: saturate(0.4); }
.prod .badge { position: absolute; top: 8px; left: 8px; }
.prod-btns { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.buy-btn { border: 0; border-radius: 12px; padding: 7px 10px; background: #3ddc6f; color: #fff; font: 16px var(--head); display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.buy-btn.gem { background: #2c8bd8; }
.buy-btn.claim { background: var(--yellow); color: var(--ink); }
.buy-btn.alt { background: #6b5bd6; }
.buy-btn .price { font-size: 16px; }
.buy-btn .cur { width: 18px !important; height: 18px !important; }
.prod.free { border-color: #3ddc6f; }
.prod.info { width: 260px; }
.shop-note { color: var(--muted); font-weight: 700; margin-top: 18px; }

/* ---------- events ---------- */
.ev-tabs { position: absolute; top: 76px; left: 32px; right: 32px; display: flex; gap: 8px; }
.ev-tab { border: 0; border-radius: 14px; padding: 9px 18px; background: var(--panel); color: var(--muted); font: 17px var(--head); letter-spacing: 1px; }
.ev-tab.on { background: var(--yellow); color: var(--ink); }
.ev-body { position: absolute; inset: 130px 32px 20px; overflow: auto; }
.evx-head { border-radius: 18px; padding: 14px 20px; position: relative; color: #fff; }
.evx-head h3 { margin: 0; font: 36px var(--head); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.evx-head small { font-weight: 900; }
.evx-timer { position: absolute; right: 18px; top: 18px; background: rgba(0, 0, 0, 0.35); padding: 4px 10px; border-radius: 10px; font-weight: 900; }
.evx-how { color: #e6e3ff; font-weight: 700; }
.evx-track { display: flex; align-items: center; gap: 14px; }
.evx-bar { flex: 1; height: 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.evx-bar i { display: block; height: 100%; }
.evx-track b { font: 20px var(--head); }
.evx-tiers { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.tier { width: 160px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tier.ready { border-color: var(--yellow); box-shadow: 0 0 14px rgba(255, 210, 63, 0.4); }
.tier.claimed { opacity: 0.6; }
.tier img { width: 90px; height: 112px; object-fit: contain; }
.tier-pts { font: 20px var(--head); }
.tier-lock { font-style: normal; }
.ms-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.ms-row { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.ms-row.ready { border-color: var(--yellow); }
.ms-row.claimed { opacity: 0.6; }
.ms-txt { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ms-txt b { font: 18px var(--head); }
.ms-txt small { color: var(--muted); font-weight: 800; }
.ms-rw { display: flex; gap: 6px; }
.ms-reset { color: var(--muted); font-weight: 800; }
.dl-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-day { position: relative; width: 110px; background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dl-day .cur { width: 34px; height: 34px; }
.dl-day small { font-weight: 900; color: var(--muted); letter-spacing: 1px; }
.dl-day b { font: 22px var(--head); }
.dl-day.today { border-color: var(--yellow); box-shadow: 0 0 14px rgba(255, 210, 63, 0.45); }
.dl-day.got { opacity: 0.55; }
.dl-day.big { width: 150px; }
.dl-day > i { position: absolute; top: 6px; right: 8px; font-style: normal; color: #3ddc6f; font-weight: 900; }
.dl-act { display: flex; gap: 12px; margin-top: 16px; }
.dl-act .btn { transform: none; }

/* ---------- matchmaking + versus ---------- */
.mm-bg { flex-direction: column; align-items: center; gap: 10px; padding-top: 30px; background: radial-gradient(circle at 50% 40%, rgba(46, 39, 102, 0.92), rgba(14, 12, 31, 0.96)); }
.mm-head { display: flex; align-items: baseline; gap: 18px; }
.mm-head h2 { margin: 0; font: 54px var(--head); text-shadow: 0 5px 0 var(--ink); }
.mm-timer { font: 30px var(--head); color: var(--yellow); }
.mm-sub { color: var(--muted); font-weight: 800; }
.mm-teams { display: flex; align-items: center; gap: 28px; margin-top: 12px; }
.mm-team { width: 360px; display: flex; flex-direction: column; gap: 8px; }
.mm-team h4 { margin: 0; font: 20px var(--head); letter-spacing: 1px; }
.mm-vs { font: 48px var(--head); color: var(--yellow); text-shadow: 0 4px 0 var(--ink); }
.mm-slot { height: 64px; display: flex; align-items: center; gap: 12px; background: var(--panel); border-left: 6px solid; border-radius: 14px; padding: 6px 12px; font-weight: 800; }
.mm-slot.searching { color: var(--muted); }
.mm-slot.found { animation: pop 0.3s ease; }
.mm-slot.you { box-shadow: 0 0 0 2px var(--yellow); }
.mm-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.2); border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mm-slot img { width: 44px; height: 54px; object-fit: contain; }
.mm-txt { flex: 1; display: flex; flex-direction: column; }
.mm-txt b { font: 18px var(--head); }
.mm-txt small { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 800; font-size: 12px; }
.mm-txt small i { width: 16px; height: 16px; display: inline-grid; }
.mm-txt small i svg { width: 16px; height: 16px; }
.mm-slot em { font-style: normal; color: #3ddc6f; font-weight: 900; font-size: 12px; letter-spacing: 1px; }
.mm-cancel { margin-top: 14px; transform: none; }
.vs-bg { padding: 0; background: radial-gradient(circle at 50% 45%, rgba(46, 39, 102, 0.85), rgba(14, 12, 31, 0.95)); }
.vs-stage { position: absolute; inset: 40px 0 120px; }
.vs-bands { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; display: flex; }
.vs-band { flex: 1; padding: 12px 24px; display: flex; flex-direction: column; gap: 6px; }
.vs-band.right { text-align: right; align-items: flex-end; }
.vs-band h3 { margin: 0; font: 32px var(--head); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.vs-names { display: flex; gap: 14px; font-weight: 900; }
.vs-names .you { background: rgba(0, 0, 0, 0.3); padding: 0 8px; border-radius: 8px; }
.vs-big { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 110px var(--head); color: var(--yellow); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink); animation: pop 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.vs-info { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); text-align: center; }
.vs-info h3 { margin: 0; font: 26px var(--head); letter-spacing: 2px; }
.vs-count { font: 44px var(--head); color: var(--yellow); }
.res-earn { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.res-double { background: var(--yellow) !important; color: var(--ink) !important; }

/* ---------- controls polish ---------- */
.cross.on-target i, .cross.on-target::after { background: #ff3b4f; }
.t-zone { position: absolute; left: 0; bottom: 0; width: 42%; height: 72%; pointer-events: auto; touch-action: none; }
.t-stick { opacity: 0.6; transition: opacity 0.12s; pointer-events: auto; }
.t-stick.active { opacity: 1; background: rgba(255, 255, 255, 0.18); }
.tb.t-sp.ready { background: var(--yellow); color: var(--ink); animation: pulse 1s infinite; }
.tb.t-bomb.low { opacity: 0.4; }
.tb.t-swim.active { background: var(--ta); }
.pad-focus { outline: 4px solid var(--yellow) !important; outline-offset: 3px; }
.opt label small { color: var(--muted); font-weight: 700; letter-spacing: 0; }

/* ---------- phones (landscape) ---------- */
@media (max-height: 560px), (max-width: 760px) {
  .topbar { padding: 6px 12px; gap: 8px; }
  .tb-profile b { font-size: 15px; }
  .tb-lv .xpbar { width: 60px; }
  .avatar.sm { width: 32px; height: 32px; }
  .wallet { min-width: 86px; font-size: 14px; padding: 3px 4px 3px 8px; }
  .wallet .cur { width: 16px; height: 16px; }
  .wallet i { width: 18px; height: 18px; font-size: 14px; }
  .tb-icon, .topbar .back { width: 34px; height: 34px; font-size: 18px; }
  .topbar .back { font-size: 24px; }
  .m-body { inset: 50px 12px 8px; gap: 10px; }
  .m-left { width: 220px; gap: 8px; }
  .m-left .logo { display: none; }
  .ev-card, .mis-card { padding: 7px 10px; gap: 3px; border-width: 2px; }
  .ev-head b { font-size: 16px; }
  .ev-card small, .mis-row { font-size: 11px; }
  .mis-card h4 { font-size: 12px; }
  .m-right { width: 230px; gap: 8px; }
  .play-big { padding: 10px 14px !important; }
  .play-big b { font-size: 30px !important; }
  .play-big .play-ic { width: 34px; height: 34px; font-size: 16px; }
  .m-nav { gap: 6px; }
  .nav { padding: 6px; font-size: 13px; border-radius: 12px; }
  .nav i { font-size: 17px; }
  .hero { bottom: 34px; }
  .hero-name { padding: 3px 10px; }
  .hero-name b { font-size: 18px; }
  .small { padding: 5px 10px; font-size: 11px; }
  .lk-body { inset: 50px 10px 8px; gap: 10px; }
  .lk-grid { gap: 6px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lk-card { padding: 3px 3px 5px; border-radius: 10px; gap: 1px; }
  .lk-card img { aspect-ratio: 1; }
  .lk-card b { font-size: 12px; }
  .lk-card .price { font-size: 12px; }
  .lk-card .cur { width: 13px; height: 13px; }
  .lk-side { width: 240px; gap: 6px; }
  .lk-preview { min-height: 120px; }
  .lk-info { padding: 8px 12px; }
  .lk-info h3 { font-size: 22px; margin: 2px 0; }
  .lk-info p { font-size: 11px; margin-bottom: 6px; }
  .lk-act { font-size: 15px; padding: 6px 12px; }
  .shop-scroll { inset: 50px 0 0; padding: 0 12px 16px; }
  .shop-h { font-size: 16px; margin: 8px 0 6px; }
  .prod { width: 120px; padding: 8px; }
  .prod.char img { width: 80px; height: 100px; }
  .prod > b { font-size: 16px; }
  .prod.info { width: 200px; }
  .ev-tabs { top: 50px; left: 12px; right: 12px; gap: 6px; }
  .ev-tab { font-size: 12px; padding: 6px 10px; }
  .ev-body { inset: 92px 12px 8px; }
  .evx-head { padding: 8px 14px; }
  .evx-head h3 { font-size: 24px; }
  .evx-how { margin: 6px 0; font-size: 12px; }
  .tier { width: 118px; padding: 8px; }
  .tier img { width: 60px; height: 74px; }
  .dl-day { width: 84px; padding: 8px; }
  .dl-day b { font-size: 16px; }
  .ms-row { padding: 8px 12px; gap: 10px; }
  .ms-txt b { font-size: 14px; }
  .mm-bg { padding-top: 12px; gap: 6px; }
  .mm-head h2 { font-size: 32px; }
  .mm-timer { font-size: 22px; }
  .mm-teams { gap: 14px; margin-top: 4px; }
  .mm-team { width: 270px; gap: 5px; }
  .mm-slot { height: 44px; padding: 3px 8px; }
  .mm-slot img { width: 32px; height: 40px; }
  .mm-txt b { font-size: 14px; }
  .mm-vs { font-size: 32px; }
  .mm-cancel { margin-top: 4px; padding: 8px 18px; font-size: 16px; }
  .vs-stage { inset: 34px 0 80px; }
  .vs-bands { height: 78px; }
  .vs-band { padding: 8px 16px; }
  .vs-band h3 { font-size: 22px; }
  .vs-names { gap: 8px; font-size: 12px; }
  .vs-big { font-size: 72px; }
  .vs-info h3 { font-size: 18px; }
  .vs-count { font-size: 30px; }
  .pop { min-width: 280px; padding: 14px 20px; gap: 8px; }
  .pop h3 { font-size: 24px; }
  .pop img { width: 100px; height: 125px; }
  .pwb-txt b { font-size: 28px; }
  .pwb-ic { width: 54px; height: 54px; }
  .pwb-ic svg { width: 32px; height: 32px; }
  .credit { bottom: 44px; }
  .title .foot { font-size: 11px; bottom: 14px; }
  .credit b { font-size: 17px; }
}
