/* NEON NEXUS · 合併樣式表（由 css/*.css 依原順序合併並移除未使用規則）*/
/* ── main.css ── */
:root {
  --c-bg: #03040a;
  --c-cyan: #00f0ff;
  --c-magenta: #ff2bd6;
  --c-yellow: #fcee0a;
  --c-violet: #8a5cff;
  --c-green: #39ff9f;
  --c-red: #ff4d6d;
  --c-text: #e2f7ff;
  --c-sub: #9bb4c9;
  --c-dim: #5f7890;

  --glass-bg: rgba(10, 16, 34, 0.8);
  --glass-hi: rgba(120, 220, 255, 0.07);
  --edge: rgba(0, 240, 255, 0.32);
  --edge-soft: rgba(120, 220, 255, 0.12);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);

  --f-display: 'Orbitron', 'Noto Sans TC', sans-serif;
  --f-body: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --gap: 14px;
  --side-w: 256px;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --cut: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
kbd { font-family: var(--f-mono); }
.mono { font-family: var(--f-mono); letter-spacing: 0.04em; }
.glow-y { color: var(--c-yellow); text-shadow: 0 0 12px rgba(252, 238, 10, 0.6); }
.glow-c { color: var(--c-cyan); text-shadow: 0 0 12px rgba(0, 240, 255, 0.6); }
.glow-g { color: var(--c-green); }
.dim { color: var(--c-dim); }
.up { color: var(--c-green); }
.down { color: var(--c-red); }
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg > * { position: absolute; inset: 0; }
.bg-space {
  background:
    radial-gradient(120% 80% at 50% 120%, #1a0b3a 0%, transparent 55%),
    radial-gradient(90% 70% at 50% -10%, #06263a 0%, transparent 60%),
    linear-gradient(180deg, #03040a 0%, #050716 55%, #0a0618 100%);
}
.bg-nebula { inset: auto; width: 60vmax; height: 60vmax; border-radius: 50%; opacity: 0.5; }   /* 效能：靜態漸層（原本 blur(80px) + 混合模式 + 無限漂移，每幀重繪） */
.bg-nebula.n1 { left: -15vmax; top: -20vmax; background: radial-gradient(circle, rgba(255, 43, 214, 0.38), transparent 68%); }
.bg-nebula.n2 { right: -18vmax; top: -10vmax; background: radial-gradient(circle, rgba(0, 200, 255, 0.34), transparent 68%); }
.bg-nebula.n3 { left: 25vw; bottom: -35vmax; background: radial-gradient(circle, rgba(138, 92, 255, 0.42), transparent 68%); }
.bg-hex {
  opacity: 0.35;
  background-image:
    linear-gradient(30deg, rgba(0, 240, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 240, 255, 0.05) 87.5%),
    linear-gradient(150deg, rgba(0, 240, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(0, 240, 255, 0.05) 87.5%),
    linear-gradient(90deg, rgba(0, 240, 255, 0.04) 2%, transparent 2.5%, transparent 97%, rgba(0, 240, 255, 0.04) 97.5%);
  background-size: 64px 112px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}
.bg-grid {
  inset: 52% -25% -8%;              /* 效能：原本 19000px 寬的圖層 + 無限捲動，改為靜態且縮小 */
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 70%, transparent 100%);
}
.bg-particles { width: 100%; height: 100%; }
.bg-scan { background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px); }
.bg-vignette { background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.75) 100%); }
.glass {
  position: relative;
  background: linear-gradient(155deg, var(--glass-hi), transparent 38%), var(--glass-bg);
  border: 1px solid var(--edge-soft);
  border-radius: 8px;
  /* 效能：常駐面板不使用 backdrop-filter（底下有 3D / 粒子在動，模糊會每幀重算），改用較不透明的底色 */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), inset 0 0 0 1px rgba(0, 0, 0, 0.2), var(--shadow);
}
.glass::before, .glass::after {
  content: ''; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border: 2px solid var(--c-cyan); filter: drop-shadow(0 0 5px var(--c-cyan));
}
.glass::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.glass::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; border-color: var(--c-magenta); filter: drop-shadow(0 0 5px var(--c-magenta)); }
.glass--edge {
  background:
    linear-gradient(155deg, var(--glass-hi), transparent 38%) padding-box,
    linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
    conic-gradient(from var(--edge-a, 0deg), rgba(0, 240, 255, 0.7), rgba(255, 43, 214, 0.15) 25%, rgba(138, 92, 255, 0.6) 50%, rgba(0, 240, 255, 0.1) 75%, rgba(0, 240, 255, 0.7)) border-box;
}
@property --edge-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.app {
  position: relative; z-index: 1;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  gap: var(--gap);
  padding: var(--gap);
}
.main { display: grid; grid-template-rows: auto 1fr; gap: var(--gap); min-width: 0; min-height: 0; }
.outlet { min-height: 0; min-width: 0; }
.sidebar { display: flex; flex-direction: column; padding: 18px 14px 14px; min-height: 0; overflow: hidden; }
.brand { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 0 6px 18px; }
.brand-mark {
  grid-row: span 2; width: 40px; height: 40px; position: relative;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(135deg, var(--c-cyan), var(--c-magenta));
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
}
.brand-mark i { position: absolute; inset: 3px; clip-path: inherit; background: #070a18; }
.brand-mark i::after { content: ''; position: absolute; inset: 9px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--c-cyan); box-shadow: 0 0 12px var(--c-cyan); }
.logo { font-family: var(--f-display); font-weight: 900; font-size: 19px; letter-spacing: 0.14em; color: #fff; text-shadow: 0 0 10px rgba(0, 240, 255, 0.8); }
.logo em { font-style: normal; color: var(--c-magenta); text-shadow: 0 0 10px rgba(255, 43, 214, 0.8); }
.brand-sub { font-size: 9px; color: var(--c-dim); letter-spacing: 0.2em; }
.side-label { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: 0.26em; color: var(--c-dim); padding: 0 6px 10px; }
.side-label i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--edge), transparent); }
.nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nav-btn {
  --tone: var(--c-cyan);
  position: relative; width: 100%;
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; text-align: left;
  background: rgba(255, 255, 255, 0.02); border: 1px solid transparent;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.nav-btn::after { 
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(0, 240, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.6s;
}
.nav-btn:hover { background: rgba(0, 240, 255, 0.07); border-color: var(--edge-soft); transform: translateX(3px); }
.nav-btn:hover::after { transform: translateX(120%); }
.nav-btn.is-active {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.24), rgba(0, 240, 255, 0.03) 85%);
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.12);
}
.nav-btn.is-active::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; background: var(--c-cyan); box-shadow: 0 0 12px var(--c-cyan); }
.nav-icon {
  width: 36px; height: 36px; display: grid; place-items: center; font-size: 17px;
  color: var(--tone); text-shadow: 0 0 10px var(--tone);
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
  border: 1px solid var(--edge-soft);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.nav-btn.is-hot { --tone: var(--c-magenta); }
.nav-text { display: grid; line-height: 1.25; min-width: 0; }
.nav-text b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-text small { font-family: var(--f-display); font-size: 8.5px; letter-spacing: 0.18em; color: var(--c-dim); white-space: nowrap; }
.nav-badge { font-family: var(--f-mono); font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 2px; color: var(--c-cyan); border: 1px solid rgba(0, 240, 255, 0.5); }
.nav-badge--new { color: #fff; background: var(--c-magenta); border-color: var(--c-magenta); box-shadow: 0 0 10px rgba(255, 43, 214, 0.6); animation: badge-blink 2s infinite; }
.nav-badge--soon { color: var(--c-sub); border-color: rgba(155, 180, 201, 0.4); }
.nav-badge--live { color: var(--c-green); border-color: rgba(57, 255, 159, 0.5); }
@keyframes badge-blink { 50% { box-shadow: 0 0 2px rgba(255, 43, 214, 0.2); } }
.nav-key { position: absolute; right: 6px; top: 4px; font-size: 8px; color: var(--c-dim); opacity: 0; transition: opacity 0.2s; }
.nav-btn:hover .nav-key { opacity: 1; }
[data-input="touch"] .nav-key { display: none; }
.side-status { margin-top: auto; padding-top: 16px; display: grid; gap: 7px; }
.status-row { display: flex; align-items: center; gap: 8px; padding: 0 6px; font-size: 12px; color: var(--c-sub); }
.status-row b { margin-left: auto; font-size: 11px; color: var(--c-text); font-weight: 400; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 10px var(--c-green); animation: blink 1.6s infinite; flex: none; }
@keyframes blink { 50% { opacity: 0.3; } }
.hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px 16px; }
.hud-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar-ring {
  width: 46px; height: 46px; flex: none; border-radius: 50%; position: relative;
  display: grid; place-content: center; text-align: center; line-height: 1;
  font-family: var(--f-display); font-weight: 900; font-size: 17px; color: var(--c-yellow);
  border: 2px solid var(--c-yellow); box-shadow: 0 0 14px rgba(252, 238, 10, 0.4), inset 0 0 10px rgba(252, 238, 10, 0.25);
}
.avatar-ring::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px dashed rgba(252, 238, 10, 0.4); animation: spin 18s linear infinite; }
.avatar-ring small { font-size: 8px; letter-spacing: 0.2em; color: var(--c-dim); margin-top: 2px; }
.hud-who { display: grid; gap: 2px; min-width: 0; }
.hud-who b { font-family: var(--f-display); font-size: 14px; letter-spacing: 0.08em; text-shadow: 0 0 8px rgba(0, 240, 255, 0.7); white-space: nowrap; }
.hud-who .mono { font-size: 10px; color: var(--c-dim); }
.exp { position: relative; width: 170px; max-width: 100%; height: 5px; background: rgba(0, 240, 255, 0.12); margin-top: 3px; }
.exp i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--c-cyan), var(--c-magenta)); box-shadow: 0 0 8px var(--c-cyan); transition: width 0.6s; }
.exp span { position: absolute; right: 0; top: -14px; font-size: 9px; color: var(--c-cyan); }
.hud-mid { font-size: 10px; color: var(--c-dim); display: flex; gap: 8px; padding: 6px 14px; border: 1px solid var(--edge-soft); border-radius: 20px; background: rgba(0, 0, 0, 0.3); }
.hud-mid .sep { opacity: 0.5; }
[data-hud="link"][data-state="ok"] { color: var(--c-green); }
[data-hud="link"][data-state="busy"] { color: var(--c-yellow); }
[data-hud="link"][data-state="err"] { color: var(--c-magenta); }
.hud-wallet { display: flex; justify-content: flex-end; gap: 10px; }
.stat {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; min-width: 150px; justify-content: flex-end;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2)); border: 1px solid var(--edge-soft);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.stat-val { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-delta { position: absolute; right: 12px; top: -1px; font-size: 10px; opacity: 0; pointer-events: none; }
.stat.is-up { animation: stat-up 0.9s; }
.stat.is-down { animation: stat-down 0.9s; }
.stat.is-up .stat-delta { color: var(--c-green); animation: delta-rise 1.2s ease-out; }
.stat.is-down .stat-delta { color: var(--c-red); animation: delta-rise 1.2s ease-out; }
@keyframes stat-up { 0% { border-color: var(--c-green); box-shadow: inset 0 0 18px rgba(57, 255, 159, 0.35); } }
@keyframes stat-down { 0% { border-color: var(--c-red); box-shadow: inset 0 0 18px rgba(255, 77, 109, 0.35); } }
@keyframes delta-rise { 0% { opacity: 1; transform: translateY(6px); } 100% { opacity: 0; transform: translateY(-8px); } }
.lobby { height: 100%; display: grid; grid-template-columns: 1fr 340px; gap: var(--gap); min-height: 0; }
.stage { position: relative; min-height: 0; display: grid; grid-template-rows: 1fr; isolation: isolate; }
.stage-deco { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.stage-deco .ring { position: absolute; left: 50%; top: 47%; border-radius: 50%; transform: translate(-50%, -50%); }
.ring.r1 { width: min(78vh, 92%); aspect-ratio: 1; border: 1px solid rgba(0, 240, 255, 0.16); box-shadow: inset 0 0 80px rgba(0, 240, 255, 0.06); }
.ring.r2 { width: min(64vh, 76%); aspect-ratio: 1; border: 1px dashed rgba(0, 240, 255, 0.25); animation: spin-c 60s linear infinite; }
.ring.r3 { width: min(50vh, 60%); aspect-ratio: 1; border: 2px solid transparent; border-top-color: rgba(255, 43, 214, 0.55); border-bottom-color: rgba(0, 240, 255, 0.45); animation: spin-c 14s linear infinite reverse; filter: drop-shadow(0 0 6px rgba(255, 43, 214, 0.5)); }
@keyframes spin-c { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-beam { position: absolute; left: 50%; bottom: 6%; width: 46%; height: 30%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 100%, rgba(0, 240, 255, 0.28), transparent 70%); filter: blur(10px); }
.tick { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(0, 240, 255, 0.5); }
.tick.t1 { left: 16%; top: 22%; border-right: 0; border-bottom: 0; }
.tick.t2 { right: 16%; top: 22%; border-left: 0; border-bottom: 0; }
.tick.t3 { left: 16%; bottom: 10%; border-right: 0; border-top: 0; }
.tick.t4 { right: 16%; bottom: 10%; border-left: 0; border-top: 0; }
.pod-stage { position: relative; min-height: 0; }
.pod-stage canvas { position: absolute; inset: 0; display: block; }
.stage-hud { position: absolute; top: 4px; display: grid; gap: 10px; z-index: 2; }
.stage-hud--l { left: 4px; }
.stage-hud--r { right: 4px; justify-items: end; }
.readout { display: grid; gap: 2px; padding: 8px 14px 8px 12px; border-left: 2px solid var(--c-yellow); background: linear-gradient(90deg, rgba(252, 238, 10, 0.1), transparent); }
.readout small { font-size: 9px; letter-spacing: 0.22em; color: var(--c-dim); }
.readout b { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.readout--mini { border-left-color: var(--c-cyan); background: linear-gradient(90deg, rgba(0, 240, 255, 0.08), transparent); }
.readout--mini b { font-size: 13px; color: var(--c-cyan); }
.meter { display: flex; gap: 3px; margin-top: 3px; }
.meter i { width: 9px; height: 4px; background: var(--c-cyan); box-shadow: 0 0 6px var(--c-cyan); }
.meter i.off { background: rgba(0, 240, 255, 0.2); box-shadow: none; }
.pod-live { display: flex; align-items: center; gap: 6px; color: var(--c-green); font-size: 10px; }
.pod-live b { width: 6px; height: 6px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 8px var(--c-green); animation: blink 1.4s infinite; }
.chip-btn { font-size: 12px; padding: 7px 12px; border: 1px solid var(--edge); background: rgba(4, 22, 34, 0.85); color: var(--c-cyan); border-radius: 20px; transition: background 0.2s, box-shadow 0.2s; }
.chip-btn:hover { background: rgba(0, 240, 255, 0.18); box-shadow: 0 0 16px rgba(0, 240, 255, 0.3); }
.nameplate {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 8px 20px;
  background: rgba(6, 10, 24, 0.6); border: 1px solid var(--edge-soft);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.nameplate b { font-family: var(--f-display); letter-spacing: 0.12em; font-size: 15px; text-shadow: 0 0 10px rgba(0, 240, 255, 0.8); white-space: nowrap; }
.np-lv { font-size: 11px; color: var(--c-yellow); }
.np-tag { font-size: 9px; color: var(--c-dim); white-space: nowrap; }
.pod-axis { position: absolute; left: 6px; bottom: 8px; font-size: 9px; color: var(--c-dim); z-index: 2; }
.pod-loader { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; font-size: 11px; color: var(--c-cyan); transition: opacity 0.5s; z-index: 3; }
.pod-loader .bar { width: 200px; height: 3px; background: rgba(0, 240, 255, 0.15); }
.pod-loader .bar i { display: block; height: 100%; width: 0; background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan); transition: width 0.2s; }
.pod-loader.is-done { opacity: 0; pointer-events: none; }
.events { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.events::-webkit-scrollbar { display: none; }
.events-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; }
.events-head h2 { margin: 0; font-size: 10px; letter-spacing: 0.3em; color: var(--c-sub); font-weight: 400; }
.banner { position: relative; flex: none; aspect-ratio: 16 / 10.5; border-radius: 8px; overflow: hidden; border: 1px solid var(--edge-soft); box-shadow: var(--shadow); touch-action: pan-y; }
.banner--empty { display: grid; place-items: center; color: var(--c-dim); font-size: 11px; background: var(--glass-bg); }
.banner-track { position: absolute; inset: 0; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.7s, transform 1.2s; pointer-events: none; }
.banner-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.banner-art { position: absolute; inset: 0; background: var(--art); }
.banner-art i { position: absolute; }
.banner-art i:nth-child(1) { inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px); }
.banner-art i:nth-child(2) { right: -10%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--tone); opacity: 0.6; box-shadow: 0 0 30px var(--tone), inset 0 0 30px var(--tone); }
.banner-art i:nth-child(3) { left: 0; right: 0; height: 40%; top: 0; background: linear-gradient(transparent, rgba(255, 255, 255, 0.12), transparent); transform: translateY(-100%); animation: sweep 6s linear infinite; will-change: transform; }
@keyframes sweep { to { transform: translateY(250%); } }
.banner-glyph { position: absolute; right: 8%; top: 12%; font-family: var(--f-display); font-size: 84px; font-weight: 900; color: var(--tone); opacity: 0.85; text-shadow: 0 0 24px var(--tone); line-height: 1; }
.theme-magenta { --tone: var(--c-magenta); --art: linear-gradient(135deg, #3a0838 0%, #16062e 55%, #050716 100%); }
.theme-gold { --tone: #ffc828; --art: linear-gradient(135deg, #3a2a05 0%, #1a1006 55%, #050716 100%); }
.theme-cyan { --tone: var(--c-cyan); --art: linear-gradient(135deg, #04324a 0%, #061a32 55%, #050716 100%); }
.banner-copy { position: absolute; inset: auto 0 0 0; padding: 14px 16px 30px; background: linear-gradient(transparent, rgba(3, 4, 10, 0.92) 45%); display: grid; gap: 4px; }
.banner-tag { font-size: 9px; letter-spacing: 0.24em; color: var(--tone); }
.banner-copy h3 { margin: 0; font-size: 21px; font-weight: 700; text-shadow: 0 0 14px var(--tone); }
.banner-copy p { margin: 0; font-size: 12px; color: var(--c-sub); }
.banner-foot { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.banner-timer { font-size: 10px; color: var(--c-sub); margin-left: auto; }
.banner-dots { position: absolute; left: 16px; bottom: 10px; display: flex; gap: 6px; z-index: 2; }
.banner-dot { width: 22px; height: 10px; display: grid; align-items: center; }
.banner-dot i { display: block; height: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; position: relative; }
.banner-dot.is-active i::after { content: ''; position: absolute; inset: 0; background: var(--c-cyan); transform-origin: left; animation: dot-fill var(--banner-cycle, 6000ms) linear forwards; }
.banner.is-paused .banner-dot.is-active i::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } }
.event-cards { display: grid; gap: 10px; }
.ev-card { display: flex; gap: 12px; padding: 12px; align-items: center; }
.ev-card::before, .ev-card::after { display: none; }
.ev-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 16px; color: var(--tone); border: 1px solid var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.hue-cyan { --tone: var(--c-cyan); }
.hue-magenta { --tone: var(--c-magenta); }
.hue-yellow { --tone: var(--c-yellow); }
.hue-violet { --tone: var(--c-violet); }
.ev-body { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ev-body b { font-size: 13px; font-weight: 500; }
.ev-body small { font-size: 11px; color: var(--c-sub); }
.ev-steps { display: flex; gap: 4px; }
.ev-steps i { flex: 1; height: 4px; background: rgba(0, 240, 255, 0.15); }
.ev-steps i.on { background: var(--c-cyan); box-shadow: 0 0 6px var(--c-cyan); }
.progress { height: 4px; background: rgba(255, 43, 214, 0.15); position: relative; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--c-magenta), var(--c-violet)); box-shadow: 0 0 8px var(--c-magenta); transition: width 0.6s; }
.btn {
  --tone: var(--c-cyan);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: filter 0.2s, background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { cursor: not-allowed; filter: grayscale(0.8); opacity: 0.45; }
.btn--neon { color: #031018; background: linear-gradient(90deg, var(--c-cyan), #6ff7ff); box-shadow: 0 0 18px rgba(0, 240, 255, 0.45); }
.btn--neon:hover:not(:disabled) { filter: brightness(1.15); }
.btn--hot { color: #fff; background: linear-gradient(90deg, var(--c-magenta), var(--c-violet)); box-shadow: 0 0 18px rgba(255, 43, 214, 0.45); }
.btn--hot:hover:not(:disabled) { filter: brightness(1.15); }
.btn--hot.is-confirm { background: linear-gradient(90deg, #ffb300, var(--c-magenta)); animation: confirm-pulse 0.8s infinite alternate; }
@keyframes confirm-pulse { to { box-shadow: 0 0 28px rgba(255, 179, 0, 0.7); } }
.btn--ghost { color: var(--c-cyan); background: rgba(0, 240, 255, 0.06); box-shadow: inset 0 0 0 1px var(--edge); }
.btn--ghost:hover:not(:disabled) { background: rgba(0, 240, 255, 0.14); }
.btn--link { padding: 6px 0; font-size: 12px; color: var(--c-sub); text-decoration: underline; text-underline-offset: 3px; clip-path: none; }
.btn--link:hover { color: var(--c-cyan); }
.btn--sm { padding: 7px 12px; font-size: 12px; }
.btn--block { width: 100%; padding: 13px; font-size: 14px; }
.badge { font-family: var(--f-display); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; padding: 3px 7px; border: 1px solid currentColor; }
.badge--soon { color: var(--c-yellow); background: rgba(252, 238, 10, 0.08); }
.rar-badge.rar-R { color: var(--c-cyan); }
.rar-badge.rar-SR { color: var(--c-violet); }
.rar-badge.rar-SSR { color: var(--c-yellow); text-shadow: 0 0 8px var(--c-yellow); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 10px; padding: 2px 8px; border-radius: 10px; color: var(--c-sub); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { padding: 7px 14px; font-size: 12px; color: var(--c-sub); border: 1px solid transparent; border-radius: 4px; transition: color 0.2s, background 0.2s; }
.tab:hover:not(:disabled) { color: var(--c-text); background: rgba(255, 255, 255, 0.04); }
.tab.is-active { color: var(--c-cyan); background: rgba(0, 240, 255, 0.1); border-color: var(--edge); box-shadow: inset 0 -2px 0 var(--c-cyan); }
.tab:disabled { cursor: default; }
.price { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; }
.price i { font-style: normal; }
.price--gold { color: var(--c-yellow); }
.price--diamond { color: var(--c-cyan); }
.price--none { color: var(--c-dim); font-weight: 400; font-family: var(--f-body); font-size: 11px; }
.toasts { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast {
  --tone: var(--c-cyan);
  position: relative; overflow: hidden; display: grid; gap: 2px; padding: 12px 18px;
  background: rgba(8, 10, 22, 0.86);
  border-left: 3px solid var(--tone); border-radius: 4px;
  box-shadow: 0 0 26px color-mix(in srgb, var(--tone) 35%, transparent), 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
.toast--magenta { --tone: var(--c-magenta); }
.toast--yellow { --tone: var(--c-yellow); }
.toast-title { font-family: var(--f-display); font-size: 10px; letter-spacing: 0.18em; color: var(--tone); text-shadow: 0 0 8px var(--tone); }
.toast-msg { font-size: 14px; }
.toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--tone); transform-origin: left; animation: toast-bar var(--dur) linear forwards; }
.toast.is-out { animation: toast-out 0.3s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px) scale(0.96); filter: blur(4px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); filter: blur(3px); } }
@keyframes toast-bar { to { transform: scaleX(0); } }
.joystick-host { display: none; }
[data-input="touch"] .joystick-host { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.has-modal .joystick-host { display: none !important; }
.vj-zone { position: absolute; left: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 24px); width: 55%; height: 34%; pointer-events: auto; touch-action: none; }
.vj-base {
  position: absolute; left: 0; top: 0; width: 112px; height: 112px; border-radius: 50%;
  transform: translate(22px, calc(34vh - 124px)); opacity: 0.4;
  border: 2px solid var(--c-cyan); background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35); transition: opacity 0.2s;
}
.vj-base.is-active { opacity: 1; transition: none; }
.vj-knob { position: absolute; left: 32px; top: 32px; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #bffcff, var(--c-cyan) 60%); box-shadow: 0 0 18px var(--c-cyan); }
.vj-actions { position: absolute; right: 18px; bottom: calc(var(--nav-h) + var(--safe-b) + 34px); display: flex; gap: 14px; align-items: flex-end; pointer-events: auto; }
.vj-btn { width: 54px; height: 54px; border-radius: 50%; font-family: var(--f-display); font-weight: 700; touch-action: none; border: 2px solid var(--c-magenta); color: var(--c-magenta); background: rgba(255, 43, 214, 0.1); box-shadow: 0 0 14px rgba(255, 43, 214, 0.4); }
.vj-btn--primary { width: 68px; height: 68px; font-size: 24px; border-color: var(--c-yellow); color: var(--c-yellow); background: rgba(252, 238, 10, 0.1); box-shadow: 0 0 18px rgba(252, 238, 10, 0.45); }
.vj-btn.is-pressed { transform: scale(0.92); filter: brightness(1.6); }
.boot { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--c-bg); color: var(--c-cyan); font-size: 12px; transition: opacity 0.6s; }
.boot.is-done { opacity: 0; pointer-events: none; }
.boot-core { position: relative; width: 72px; height: 72px; }
.boot-core i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--c-cyan); animation: spin 1.2s linear infinite; filter: drop-shadow(0 0 6px var(--c-cyan)); }
.boot-core i:nth-child(2) { inset: 10px; border-top-color: var(--c-magenta); animation-duration: 0.9s; animation-direction: reverse; }
.boot-core i:nth-child(3) { inset: 22px; border-top-color: var(--c-yellow); animation-duration: 0.6s; }
@media (max-width: 1320px) {
  .lobby { grid-template-columns: 1fr 300px; }
  .readout b { font-size: 20px; }
}
@media (max-width: 1100px) {
  :root { --side-w: 84px; }
  .brand { grid-template-columns: 1fr; justify-items: center; padding-bottom: 14px; }
  .logo, .brand-sub, .side-label span, .nav-text, .side-status, .nav-key { display: none; }
  .nav-btn { grid-template-columns: 1fr; justify-items: center; padding: 10px 6px; }
  .nav-badge { position: absolute; top: 3px; right: 3px; font-size: 7px; padding: 1px 3px; }
  .hud-mid { display: none; }
  .hud { grid-template-columns: 1fr auto; }
  .lobby { grid-template-columns: 1fr 270px; }
}
@media (max-width: 820px) {
  :root { --gap: 8px; }
  .app { grid-template-columns: 1fr; padding-bottom: calc(var(--nav-h) + var(--safe-b) + var(--gap) * 2); }
  .sidebar {
    position: fixed; z-index: 40; left: var(--gap); right: var(--gap); bottom: calc(var(--gap) + var(--safe-b));
    height: var(--nav-h); padding: 6px; flex-direction: row;
  }
  .brand, .sidebar > .side-label { display: none; }
  .sidebar nav { flex: 1; }
  .nav-list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 100%; gap: 2px; }   /* minmax(0,…)：7 個按鈕不再撐爆螢幕寬度 */
  .nav-list > li, .sidebar nav { min-width: 0; }
  .nav-btn { height: 100%; gap: 2px; padding: 4px 2px; align-content: center; }
  .nav-btn:hover { transform: none; }
  .nav-btn.is-active::before { left: 25%; right: 25%; top: auto; bottom: 0; width: auto; height: 2px; }
  .nav-icon { width: 28px; height: 28px; font-size: 14px; border: 0; background: none; }
  .nav-text { display: grid; text-align: center; }
  .nav-text b { font-size: 10px; }
  .nav-text small, .nav-badge:not(.nav-badge--new) { display: none; }
  .hud { padding: 8px 10px; gap: 8px; }
  .avatar-ring { width: 40px; height: 40px; font-size: 15px; }
  .exp { width: 96px; }
  .hud-wallet { flex-direction: column; gap: 4px; }
  .stat { min-width: 118px; padding: 4px 10px; }
  .stat-val { font-size: 13px; }
  .lobby { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .events { order: -1; overflow: visible; }
  .events-head, .event-cards, .ad-slot { display: none; }
  .banner { aspect-ratio: auto; height: 104px; }
  .banner-glyph { font-size: 48px; top: 10px; }
  .banner-copy { padding: 10px 12px 22px; background: linear-gradient(90deg, rgba(3, 4, 10, 0.92) 55%, transparent); inset: 0; align-content: center; }
  .banner-copy h3 { font-size: 16px; }
  .banner-copy p { display: none; }
  .banner-foot { margin-top: 2px; }
  .banner-timer { margin-left: 0; }
  .banner-dots { left: auto; right: 12px; bottom: 6px; }
  .readout { padding: 6px 10px; }
  .readout b { font-size: 16px; }
  .readout--mini { display: none; }
  .nameplate { bottom: 0; padding: 6px 14px; }
  .np-tag { display: none; }
  .pod-axis { display: none; }
  .toasts { top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
/* ── modal.css ── */
.glass--edge { border-color: transparent; }
.modal-overlay {
  position: fixed; z-index: 60;
  inset: 0 0 0 calc(var(--side-w) + var(--gap) * 1.5);
  display: grid; place-items: center; padding: var(--gap);
  background: radial-gradient(80% 80% at 50% 50%, rgba(10, 4, 30, 0.45), rgba(2, 3, 8, 0.78));
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0; transition: opacity 0.26s;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.is-open { opacity: 1; }
.modal {
  position: relative; outline: none;
  width: min(1120px, 100%); max-height: min(88dvh, 900px);
  display: grid; grid-template-rows: auto 1fr;
  background:
    linear-gradient(160deg, rgba(120, 220, 255, 0.09), transparent 30%) padding-box,
    linear-gradient(rgba(8, 12, 28, 0.78), rgba(8, 12, 28, 0.78)) padding-box,
    linear-gradient(135deg, rgba(0, 240, 255, 0.8), rgba(138, 92, 255, 0.3) 40%, rgba(255, 43, 214, 0.75)) border-box;
  border: 1px solid transparent; border-radius: 10px;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 240, 255, 0.15), 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: translateY(16px) scale(0.97); opacity: 0;
  transition: transform 0.34s cubic-bezier(.2, 1.2, .3, 1), opacity 0.26s;
  overflow: hidden;
}
.modal[data-size="md"] { width: min(720px, 100%); }
.modal-overlay.is-open .modal { transform: none; opacity: 1; }
.modal.is-swap .modal-body { animation: swap-in 0.35s ease-out; }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.modal::before, .modal::after { content: ''; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2; }
.modal::before { top: 6px; left: 6px; border-top: 2px solid var(--c-cyan); border-left: 2px solid var(--c-cyan); filter: drop-shadow(0 0 6px var(--c-cyan)); }
.modal::after { bottom: 6px; right: 6px; border-bottom: 2px solid var(--c-magenta); border-right: 2px solid var(--c-magenta); filter: drop-shadow(0 0 6px var(--c-magenta)); }
.modal-scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; pointer-events: none; z-index: 3; background: linear-gradient(transparent, rgba(0, 240, 255, 0.12), transparent); }
.modal-overlay.is-open .modal-scan, .modal.is-swap .modal-scan { animation: modal-scan 0.9s ease-out; }
@keyframes modal-scan { from { top: -120px; } to { top: 100%; } }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--edge-soft);
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.07), transparent 60%);
}
.modal-titles { display: grid; gap: 4px; min-width: 0; }
.modal-code { font-size: 9px; letter-spacing: 0.3em; color: var(--c-cyan); }
.modal-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 0 16px rgba(0, 240, 255, 0.5); }
.modal-sub { font-size: 12px; color: var(--c-sub); }
.modal-close {
  flex: none; display: grid; justify-items: center; gap: 2px; width: 50px; padding: 8px 0 6px;
  color: var(--c-sub); border: 1px solid var(--edge-soft); background: rgba(0, 0, 0, 0.3);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.modal-close span { font-size: 16px; line-height: 1; }
.modal-close small { font-size: 7px; letter-spacing: 0.1em; }
.modal-close:hover { color: #fff; background: rgba(255, 43, 214, 0.22); border-color: var(--c-magenta); box-shadow: 0 0 16px rgba(255, 43, 214, 0.4); }
.modal-body { overflow-y: auto; padding: 20px 24px 24px; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--c-sub); }
.switch i { width: 30px; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); position: relative; transition: background 0.2s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-sub); transition: transform 0.2s, background 0.2s; }
.switch.is-on i { background: rgba(0, 240, 255, 0.3); }
.switch.is-on i::after { transform: translateX(14px); background: var(--c-cyan); box-shadow: 0 0 8px var(--c-cyan); }
.split { display: grid; grid-template-columns: 320px 1fr; gap: 20px; min-height: 0; }
.split-side { display: grid; gap: 14px; align-content: start; }
.split-main { min-width: 0; }
.notice { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid rgba(252, 238, 10, 0.35); background: rgba(252, 238, 10, 0.06); border-radius: 6px; }
.notice p { margin: 0; font-size: 13px; color: var(--c-sub); }
.notice b { color: var(--c-yellow); }
.notice-tag { font-size: 9px; padding: 3px 7px; color: #120f00; background: var(--c-yellow); letter-spacing: 0.15em; }
.empty { color: var(--c-dim); font-size: 13px; padding: 30px 0; text-align: center; grid-column: 1 / -1; }
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.skeleton-grid i { height: 180px; border-radius: 8px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(0, 240, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.preview-host { position: relative; }
.preview-stage {
  position: relative; height: 360px; border-radius: 8px; overflow: hidden;
  background: radial-gradient(60% 50% at 50% 85%, rgba(0, 240, 255, 0.18), transparent 70%), linear-gradient(180deg, rgba(4, 8, 20, 0.8), rgba(10, 6, 26, 0.8));
  border: 1px solid var(--edge-soft);
}
.preview-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.04) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(0, 240, 255, 0.04) 0 1px, transparent 1px 28px); }
.preview-stage canvas { position: absolute; inset: 0; }
.preview-ring { position: absolute; left: 50%; top: 46%; width: 230px; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); border: 1px dashed rgba(0, 240, 255, 0.3); animation: spin-c 30s linear infinite; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.item-card {
  --tone: var(--c-cyan);
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 10px 12px;
  border-radius: 8px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 10%, transparent), rgba(0, 0, 0, 0.35));
  border: 1px solid color-mix(in srgb, var(--tone) 25%, transparent);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.item-card.rar-SR { --tone: var(--c-violet); }
.item-card.rar-SSR { --tone: var(--c-yellow); }
.item-card:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--tone); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 18px color-mix(in srgb, var(--tone) 30%, transparent); }
.item-card.is-selected, .item-card.is-equipped { border-color: var(--c-cyan); box-shadow: 0 0 0 1px var(--c-cyan), 0 0 22px rgba(0, 240, 255, 0.35); }
.item-card .item-thumb { width: 96px; height: 96px; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tone) 40%, transparent)); }
.item-rar { position: absolute; left: 8px; top: 8px; font-family: var(--f-display); font-size: 9px; font-weight: 700; color: var(--tone); text-shadow: 0 0 6px var(--tone); }
.item-name { font-size: 12.5px; line-height: 1.3; min-height: 2.6em; display: grid; place-items: center; }
.item-foot { font-size: 11px; min-height: 18px; }
.owned-tag { color: var(--c-green); }
.equip-tag { color: var(--c-cyan); font-weight: 500; }
.lock-foot { color: var(--c-dim); }
.item-card.is-locked canvas { filter: grayscale(1) brightness(0.45); }
.item-card.is-locked .item-name { color: var(--c-dim); }
.lock-icon { position: absolute; top: 48px; left: 50%; transform: translateX(-50%); font-size: 22px; filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8)); }
.item-card.is-equipped::after { content: 'EQUIPPED'; position: absolute; right: 8px; top: 8px; font-family: var(--f-mono); font-size: 8px; padding: 2px 5px; color: #031018; background: var(--c-cyan); }
.detail { display: grid; gap: 10px; padding: 16px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge-soft); align-content: start; }
.detail-top { display: flex; align-items: center; justify-content: space-between; }
.detail-slot { font-size: 10px; color: var(--c-dim); }
.detail-name { margin: 0; font-size: 19px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.game-card { border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); background: rgba(0, 0, 0, 0.35); transition: transform 0.25s, box-shadow 0.25s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 26px color-mix(in srgb, var(--tone) 30%, transparent); }
.game-art { position: relative; height: 150px; overflow: hidden; background: radial-gradient(70% 90% at 30% 100%, color-mix(in srgb, var(--tone) 40%, transparent), transparent 70%), linear-gradient(135deg, #0a0f24, #120a26); }
.game-glyph { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 92px; line-height: 1; color: var(--tone); text-shadow: 0 0 30px var(--tone); opacity: 0.9; transition: transform 0.4s; }
.game-card:hover .game-glyph { transform: translateY(-50%) scale(1.1) rotate(-6deg); }
.game-grid { position: absolute; inset: 0; background-image: linear-gradient(color-mix(in srgb, var(--tone) 18%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--tone) 18%, transparent) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.game-sweep { position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); animation: game-sweep 5s ease-in-out infinite; }
@keyframes game-sweep { 60%, 100% { left: 120%; } }
.game-en { position: absolute; left: 16px; bottom: 12px; font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: 0.1em; color: #fff; text-shadow: 0 0 12px var(--tone); }
.game-info { padding: 14px 16px 16px; display: grid; gap: 10px; }
.game-info h3 { margin: 0; font-size: 16px; }
.game-info p { margin: 0; font-size: 12.5px; color: var(--c-sub); line-height: 1.6; }
.game-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.game-eta { font-size: 10px; color: var(--c-dim); }
.game-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.game-actions .btn.is-on { background: rgba(57, 255, 159, 0.15); color: var(--c-green); box-shadow: inset 0 0 0 1px var(--c-green); }
.split--ex { grid-template-columns: 1fr 330px; }
.search { flex: 1; max-width: 260px; padding: 8px 12px; font: inherit; font-size: 12px; color: var(--c-text); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--edge-soft); border-radius: 4px; }
.search:disabled { opacity: 0.5; }
.table { display: grid; border: 1px solid var(--edge-soft); border-radius: 6px; overflow: hidden; }
.tr { display: grid; grid-template-columns: 1.6fr 1fr 0.9fr 0.7fr 100px; gap: 10px; align-items: center; padding: 10px 14px; font-size: 12.5px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.04); transition: background 0.15s; }
.tr:last-child { border-bottom: 0; }
.tr.th { font-size: 10px; color: var(--c-dim); background: rgba(0, 240, 255, 0.05); letter-spacing: 0.1em; }
button.tr:hover { background: rgba(0, 240, 255, 0.06); }
button.tr.is-selected { background: rgba(0, 240, 255, 0.12); box-shadow: inset 3px 0 0 var(--c-cyan); }
.rar-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; transform: rotate(45deg); background: var(--c-cyan); }
.rar-dot.rar-SR { background: var(--c-violet); }
.rar-dot.rar-SSR { background: var(--c-yellow); box-shadow: 0 0 6px var(--c-yellow); }
.spark polyline { stroke: var(--c-cyan); }
.spark--up polyline { stroke: var(--c-green); }
.spark--down polyline { stroke: var(--c-red); }
.chart-wrap { border-radius: 6px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--edge-soft); padding: 8px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: rgba(255, 255, 255, 0.06); }
.chart-tick { font-family: var(--f-mono); font-size: 10px; fill: var(--c-dim); }
.chart-label { font-size: 11px; fill: var(--c-sub); }
.chart-line { stroke: var(--c-cyan); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.7)); }
.chart-dot { fill: #fff; stroke: var(--c-cyan); stroke-width: 2; }
.chart-callout { font-family: var(--f-mono); font-size: 11px; fill: var(--c-cyan); font-weight: 600; }
.chart-bar { fill: rgba(0, 240, 255, 0.45); }
.chart-bar.is-top { fill: var(--c-yellow); filter: drop-shadow(0 0 4px rgba(252, 238, 10, 0.6)); }
.lb-clock { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--c-sub); padding: 6px 12px; border: 1px solid var(--edge-soft); border-radius: 20px; background: rgba(0, 0, 0, 0.3); }
.lb-clock b { color: var(--c-cyan); font-size: 13px; }
.lb { display: grid; grid-template-columns: 1fr 360px; gap: 20px; transition: opacity 0.2s; }
.lb.is-loading { opacity: 0.4; }
.lb-main { min-width: 0; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 10px; margin-bottom: 18px; }
.podium-col { --tone: var(--c-cyan); display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.podium-col.p1 { --tone: var(--c-yellow); }
.podium-col.p2 { --tone: #c8d6e5; }
.podium-col.p3 { --tone: #ff8a3b; }
.podium-avatar { width: 54px; height: 54px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 15px; color: var(--tone); border: 2px solid var(--tone); box-shadow: 0 0 16px color-mix(in srgb, var(--tone) 50%, transparent); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); background: color-mix(in srgb, var(--tone) 12%, transparent); }
.p1 .podium-avatar { width: 66px; height: 66px; font-size: 18px; }
.podium-name { font-size: 12px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-score { font-size: 12px; color: var(--tone); }
.podium-block { width: 100%; display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; font-weight: 900; color: var(--tone); text-shadow: 0 0 14px var(--tone); border-radius: 6px 6px 0 0; border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); border-bottom: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 22%, transparent), transparent); }
.p1 .podium-block { height: 96px; }
.p2 .podium-block { height: 70px; }
.p3 .podium-block { height: 54px; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.lb-list li { display: grid; grid-template-columns: 38px 1fr 50px 100px; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13px; border-radius: 4px; background: rgba(255, 255, 255, 0.025); }
.lb-list li:hover { background: rgba(0, 240, 255, 0.06); }
.lb-rank { color: var(--c-dim); }
.lb-name small { color: var(--c-dim); font-size: 10px; margin-left: 4px; }
.lb-delta { font-size: 11px; color: var(--c-dim); }
.lb-delta.up { color: var(--c-green); }
.lb-delta.down { color: var(--c-red); }
.lb-score { text-align: right; }
.lb-side { display: grid; gap: 10px; align-content: start; }
.me-card { padding: 14px 16px; border-radius: 8px; border: 1px solid rgba(252, 238, 10, 0.4); background: linear-gradient(135deg, rgba(252, 238, 10, 0.1), rgba(0, 0, 0, 0.3)); display: grid; gap: 4px; }
.me-card small { font-size: 9px; letter-spacing: 0.24em; color: var(--c-dim); }
.me-row { display: flex; align-items: baseline; gap: 12px; }
.me-row b { font-size: 28px; }
.me-score { font-size: 12px; color: var(--c-sub); }
.side-title { margin: 6px 0 0; font-size: 11px; font-weight: 500; color: var(--c-sub); letter-spacing: 0.08em; }
@media (max-width: 1100px) {
  .split, .split--ex, .lb { grid-template-columns: 1fr; }
  .split--shop .split-side, .split--bag .split-side { grid-template-columns: 260px 1fr; }
  .preview-stage { height: 300px; }
}
@media (max-width: 820px) {
  .modal-overlay { inset: 0 0 calc(var(--nav-h) + var(--safe-b) + var(--gap) * 2) 0; padding: var(--gap); place-items: end center; }
  .modal { max-height: 100%; height: 100%; border-radius: 12px; transform: translateY(40px); }
  .modal-head { padding: 14px 16px 12px; }
  .modal-head h2 { font-size: 18px; }
  .modal-body { padding: 14px 14px 18px; }
  .split--shop .split-side, .split--bag .split-side { grid-template-columns: 1fr; }
  .preview-stage { height: 220px; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .item-card { padding: 10px 6px; }
  .item-card .item-thumb { width: 72px; height: 72px; }
  .lock-icon { top: 36px; }
  .item-name { font-size: 11.5px; }
  .games-grid { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1.4fr 0.9fr 0.6fr; }
  .tr > :nth-child(2), .tr > :nth-child(5) { display: none; }
  .lb-list li { grid-template-columns: 30px 1fr 40px 80px; padding: 8px; font-size: 12px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab { flex: none; }
}
/* ── systems.css ── */
:root { --c-points: #ff6ad5; }
.hud-wallet { gap: 8px; }
.stat { min-width: 138px; padding: 6px 12px; gap: 9px; }
.stat-meta { display: grid; justify-items: end; line-height: 1.1; }
.stat-meta small { font-size: 9px; letter-spacing: 0.12em; color: var(--c-dim); }
.stat-val { font-size: 15px; }
.stat--points { padding-right: 36px; border-color: rgba(255, 106, 213, 0.35); background: linear-gradient(90deg, rgba(255, 43, 214, 0.14), rgba(0, 0, 0, 0.3)); }
.stat-add {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 4px; font-size: 15px; line-height: 1; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--c-magenta), var(--c-violet)); box-shadow: 0 0 10px rgba(255, 43, 214, 0.6);
}
.stat-add:hover { filter: brightness(1.2); }
.price--points { color: var(--c-points); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; }
.chip { padding: 5px 11px; font-size: 11.5px; border-radius: 14px; color: var(--c-sub); border: 1px solid var(--edge-soft); background: rgba(0, 0, 0, 0.25); transition: all 0.2s; }
.chip:hover { color: var(--c-text); border-color: var(--edge); }
.chip.is-active { color: #031018; background: var(--c-cyan); border-color: var(--c-cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.4); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 10px; }
.panel-head b { font-size: 13px; font-weight: 600; }
.panel-head .mono { font-size: 10px; color: var(--c-dim); letter-spacing: 0.14em; }
.panel-head--sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--edge-soft); }
.item-sub { font-size: 10px; color: var(--c-dim); margin-top: -4px; }
.dupe-tag { font-size: 9px; color: #120f00; background: var(--c-yellow); padding: 2px 6px; box-shadow: 0 0 10px rgba(252, 238, 10, 0.5); }
.toggle { flex: none; width: 38px; height: 20px; border-radius: 10px; position: relative; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.2s, border-color 0.2s; }
.toggle i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--c-dim); transition: transform 0.22s cubic-bezier(.3, 1.4, .5, 1), background 0.2s; }
.toggle.is-on { background: rgba(0, 240, 255, 0.28); border-color: var(--c-cyan); }
.toggle.is-on i { transform: translateX(18px); background: var(--c-cyan); box-shadow: 0 0 10px var(--c-cyan); }
.toggle:disabled { opacity: 0.35; cursor: not-allowed; }
.item-card .dupe-tag { margin-top: -2px; }
.cap { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--c-dim); }
.cap b { color: var(--c-text); font-weight: 500; }
.cap .progress { width: 90px; background: rgba(0, 240, 255, 0.12); }
.cap .progress i { background: var(--c-cyan); box-shadow: 0 0 8px var(--c-cyan); }
.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.bag-cell {
  --tone: var(--c-cyan);
  position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tone) 18%, transparent), rgba(0, 0, 0, 0.4) 75%);
  transition: transform 0.15s, box-shadow 0.15s;
}
.bag-cell.rar-SR { --tone: var(--c-violet); }
.bag-cell.rar-SSR { --tone: var(--c-yellow); }
.bag-cell:hover:not(.is-empty) { transform: translateY(-2px); box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 45%, transparent); }
.bag-cell.is-selected { border-color: var(--c-cyan); box-shadow: 0 0 0 1px var(--c-cyan), 0 0 16px rgba(0, 240, 255, 0.45); }
.bag-cell.is-empty { --tone: transparent; border: 1px solid rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.015); }
.bag-qty { position: absolute; right: 4px; bottom: 2px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; }
.bag-e { position: absolute; left: 3px; top: 3px; font-size: 8px; padding: 1px 3px; color: #031018; background: var(--c-cyan); }
.odds { display: grid; gap: 5px; padding: 10px 12px; border-radius: 6px; background: rgba(252, 238, 10, 0.05); border: 1px solid rgba(252, 238, 10, 0.25); font-size: 12px; }
.odds header { font-size: 9px; letter-spacing: 0.2em; color: var(--c-yellow); margin-bottom: 2px; }
.odds div { display: flex; align-items: center; gap: 8px; }
.odds div b { margin-left: auto; font-size: 11px; color: var(--c-yellow); }
.odds p { margin: 4px 0 0; font-size: 10.5px; color: var(--c-sub); line-height: 1.5; }
.ex-rules { margin-bottom: 18px; display: grid; gap: 12px; }
.rule-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rule-card { position: relative; padding: 14px 16px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--tone) 35%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 12%, transparent), rgba(0, 0, 0, 0.3) 60%); }
.rule-no { font-size: 9px; letter-spacing: 0.24em; color: var(--tone); }
.rule-card h4 { margin: 4px 0 6px; font-size: 15px; }
.rule-card p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--c-sub); }
.rule-card b { color: var(--c-text); font-weight: 500; }
.rule-fields { margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--edge-soft); border-radius: 8px; overflow: hidden; }
.rule-fields div { display: grid; gap: 3px; padding: 10px 12px; border-right: 1px solid var(--edge-soft); background: rgba(0, 0, 0, 0.25); }
.rule-fields div:last-child { border-right: 0; }
.rule-fields dt { font-size: 10px; color: var(--c-dim); }
.rule-fields dd { margin: 0; font-size: 13px; color: var(--c-cyan); }
.rule-fields small { font-size: 9.5px; color: var(--c-dim); }
.table--frame { position: relative; }
.tr--6 { grid-template-columns: 1.6fr 0.8fr 0.8fr 1fr 0.9fr 0.9fr; }
.tr--ghost span i { display: block; height: 8px; width: 70%; border-radius: 4px; background: rgba(255, 255, 255, 0.05); }
.tr--ghost { padding: 14px; }
.table-lock { position: absolute; inset: 36px 0 0; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; background: linear-gradient(transparent, rgba(5, 7, 18, 0.75) 30%); }
.table-lock b { font-size: 15px; color: var(--c-yellow); text-shadow: 0 0 12px rgba(252, 238, 10, 0.4); }
.table-lock span { font-size: 12px; color: var(--c-sub); }
.mine-panel { padding: 14px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge-soft); max-height: 460px; overflow-y: auto; display: block; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.elig-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; margin-bottom: 4px; }
.elig-row.is-ok { background: rgba(57, 255, 159, 0.05); border: 1px solid rgba(57, 255, 159, 0.2); }
.elig-row.is-focus { box-shadow: 0 0 0 1px var(--c-cyan), 0 0 14px rgba(0, 240, 255, 0.35); }
.elig-no .elig-row { opacity: 0.6; }
.elig-ico { --tone: var(--c-cyan); width: 32px; height: 32px; flex: none; display: grid; place-items: center; font-size: 15px; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 50%, transparent); border-radius: 4px; }
.elig-ico.rar-SR { --tone: var(--c-violet); }
.elig-ico.rar-SSR { --tone: var(--c-yellow); }
.elig-txt { flex: 1; display: grid; min-width: 0; line-height: 1.35; }
.elig-txt b { font-size: 12.5px; font-weight: 500; }
.elig-txt small { font-size: 10.5px; color: var(--c-sub); }
.elig-row.is-ok .elig-txt small { color: var(--c-green); }
.elig-lock { font-size: 13px; opacity: 0.6; }
.topup-bal { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; margin-bottom: 14px; border-radius: 8px; border: 1px solid rgba(255, 106, 213, 0.35); background: linear-gradient(90deg, rgba(255, 43, 214, 0.12), transparent); }
.topup-bal span { font-size: 12px; color: var(--c-sub); }
.topup-bal b { font-size: 22px; color: var(--c-points); text-shadow: 0 0 12px rgba(255, 106, 213, 0.6); }
.topup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.topup-card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 10px 14px; border-radius: 8px; border: 1px solid rgba(255, 106, 213, 0.25); background: linear-gradient(180deg, rgba(255, 43, 214, 0.1), rgba(0, 0, 0, 0.35)); transition: transform 0.2s, box-shadow 0.2s; }
.topup-card:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(255, 43, 214, 0.35); }
.topup-card b { font-size: 20px; }
.topup-card small { font-size: 10.5px; color: var(--c-yellow); }
.topup-price { margin-top: 4px; font-size: 13px; padding: 4px 14px; border-radius: 12px; color: #fff; background: linear-gradient(90deg, var(--c-magenta), var(--c-violet)); }
.topup-tag { position: absolute; top: -1px; right: -1px; font-size: 9px; padding: 2px 7px; color: #120f00; background: var(--c-yellow); border-radius: 0 8px 0 6px; }
@media (max-width: 1320px) {
  .stat { min-width: 120px; }
  .rule-fields { grid-template-columns: repeat(4, 1fr); }
  .rule-fields div:nth-child(4) { border-right: 0; }
}
@media (max-width: 1100px) {
  .rule-cards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hud { grid-template-columns: 1fr; }
  .hud-wallet { flex-direction: row; gap: 4px; }
  .stat { flex: 1; min-width: 0; padding: 5px 8px; gap: 5px; }
  .stat--points { padding-right: 30px; }
  .stat-val { font-size: 12px; }
  .stat-add { width: 20px; height: 20px; right: 5px; }
  .bag-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
  .rule-fields { grid-template-columns: repeat(2, 1fr); }
  .rule-fields div { border-bottom: 1px solid var(--edge-soft); }
  .tr--6 { grid-template-columns: 1.4fr 1fr 1fr; }
  .tr--6 > :nth-child(n+4) { display: none; }
  .topup-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-text b { font-size: 9px; }
}
/* ── v4.css ── */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.nav-icon .ico { width: 18px; height: 18px; filter: drop-shadow(0 0 5px currentColor); }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; }
.ev-icon .ico { width: 18px; height: 18px; }
.modal-close .ico { width: 16px; height: 16px; }
.vj-btn .ico { width: 26px; height: 26px; }
.cur-gem { display: inline-block; width: 12px; height: 12px; flex: none; position: relative; }
.cur-gem--gold { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8c4, #fcd20a 45%, #a07a00); box-shadow: 0 0 8px rgba(252, 210, 10, 0.7), inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.cur-gem--diamond { width: 11px; height: 11px; transform: rotate(45deg); border-radius: 2px; background: linear-gradient(135deg, #e6ffff, #00f0ff 50%, #0078b4); box-shadow: 0 0 8px rgba(0, 240, 255, 0.8); }
.cur-gem--points { clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: linear-gradient(160deg, #ffd6f6, #ff2bd6 55%, #8a2cff); filter: drop-shadow(0 0 6px rgba(255, 43, 214, 0.8)); }
.cur-gem.lg { width: 28px; height: 28px; }
.cur-gem--diamond.lg { width: 24px; height: 24px; }
.hud .cur-gem { margin-right: auto; width: 14px; height: 14px; }
.hud .cur-gem--diamond { width: 12px; height: 12px; margin-left: 1px; }
.price { gap: 5px; align-items: center; }
.price b { font-weight: 600; }
.price small { font-family: var(--f-body); font-size: 10.5px; font-weight: 400; opacity: 0.8; }
.price--points { color: #ff7ee0; }
.topup-bal b { display: inline-flex; align-items: center; gap: 8px; }
.dot-reg, .dot-ping { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot-reg { background: var(--c-cyan); box-shadow: 0 0 8px var(--c-cyan); }
.dot-ping { background: var(--c-violet); box-shadow: 0 0 8px var(--c-violet); }
.logout { margin: 8px 6px 0; padding: 8px; font-size: 12px; color: var(--c-sub); border: 1px solid var(--edge-soft); border-radius: 4px; transition: color 0.2s, border-color 0.2s; }
.logout:hover { color: var(--c-magenta); border-color: rgba(255, 43, 214, 0.5); }
.app, #modal-root { opacity: 0; visibility: hidden; transition: opacity 0.6s; }
.is-ingame .app, .is-ingame #modal-root { opacity: 1; visibility: visible; }
.gate-host { position: fixed; inset: 0; z-index: 70; display: none; }
.gate-host.is-open { display: block; animation: gate-in 0.6s ease-out; }
.gate-host.is-leaving { animation: gate-out 0.45s forwards; }
@keyframes gate-in { from { opacity: 0; } }
@keyframes gate-out { to { opacity: 0; transform: scale(1.03); filter: blur(4px); } }
.gate { height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: center; padding: 6vh 16px 20px; overflow-y: auto; }
.gate-brand { display: grid; justify-items: center; gap: 10px; text-align: center; }
.brand-mark.lg { width: 64px; height: 64px; }
.brand-mark.lg i::after { inset: 15px; }
.logo.xl { margin: 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: 0.2em; }
.gate-brand p { margin: 0; font-size: 11px; letter-spacing: 0.4em; color: var(--c-sub); }
.gate-stage { width: 100%; display: grid; justify-items: center; align-self: start; margin-top: 4vh; opacity: 0; transform: translateY(12px); }
.gate-stage.is-in { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.4s cubic-bezier(.2, 1, .3, 1); }
.gate-foot { display: flex; gap: 18px; font-size: 10px; letter-spacing: 0.16em; color: var(--c-dim); }
.gate-card { width: min(420px, 100%); padding: 26px; display: grid; gap: 14px; }
.gate-card.servers { width: min(560px, 100%); }
.gate-card.create { width: min(860px, 100%); grid-template-columns: 1fr 1.1fr; gap: 26px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--edge-soft); }
.seg-btn { padding: 9px; font-size: 14px; color: var(--c-sub); border-radius: 4px; transition: all 0.2s; }
.seg-btn.is-active { color: #031018; background: var(--c-cyan); box-shadow: 0 0 14px rgba(0, 240, 255, 0.45); font-weight: 600; }
.field { display: grid; gap: 6px; }
.field > span { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-sub); }
.field small { font-size: 10px; color: var(--c-dim); }
.field input {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--c-text);
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--edge-soft); border-radius: 4px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--c-cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), 0 0 16px rgba(0, 240, 255, 0.2); }
.gate-err { margin: 0; min-height: 0; font-size: 12px; color: var(--c-magenta); max-height: 0; overflow: hidden; transition: max-height 0.2s; }
.gate-err.is-on { max-height: 40px; }
.gate-hint { margin: 0; text-align: center; font-size: 11px; color: var(--c-dim); }
.btn.is-loading { pointer-events: none; filter: saturate(0.4) brightness(0.8); }
.btn.is-loading::after { content: ''; width: 12px; height: 12px; margin-left: 8px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.gate-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--edge-soft); }
.gate-head div { display: grid; gap: 2px; }
.gate-head small { font-size: 9px; letter-spacing: 0.24em; color: var(--c-cyan); }
.gate-head b { font-size: 17px; }
.gate-head > span { font-size: 10px; color: var(--c-dim); }
.server-list { display: grid; gap: 8px; }
.server {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; text-align: left;
  border-radius: 6px; border: 1px solid var(--edge); background: linear-gradient(90deg, rgba(0, 240, 255, 0.1), rgba(0, 0, 0, 0.3));
  transition: transform 0.2s, box-shadow 0.2s;
}
.server:hover:not(:disabled) { transform: translateX(4px); box-shadow: 0 0 20px rgba(0, 240, 255, 0.25); }
.server.is-locked { border-color: var(--edge-soft); background: rgba(0, 0, 0, 0.25); opacity: 0.55; cursor: not-allowed; }
.server-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; color: var(--c-cyan); background: rgba(0, 240, 255, 0.08); border: 1px solid var(--edge-soft); }
.server-ico .ico { width: 20px; height: 20px; }
.server-txt { display: grid; gap: 3px; }
.server-txt b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.server-txt small { font-size: 10.5px; color: var(--c-sub); }
.tag-hot { font-style: normal; font-size: 9px; padding: 2px 6px; color: #fff; background: var(--c-magenta); border-radius: 2px; }
.server-char { display: grid; justify-items: end; gap: 2px; text-align: right; }
.server-char b { font-size: 13px; }
.server-char small { font-size: 10.5px; color: var(--c-dim); }
.create-preview .preview-stage { height: 100%; min-height: 420px; }
.create-form { display: grid; gap: 16px; align-content: start; }
.gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gender-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-size: 15px; border-radius: 6px; color: var(--c-sub); border: 1px solid var(--edge-soft); background: rgba(0, 0, 0, 0.3); transition: all 0.2s; }
.gender-btn .ico { width: 20px; height: 20px; }
.gender-btn[data-gender="male"].is-active { color: var(--c-cyan); border-color: var(--c-cyan); background: rgba(0, 240, 255, 0.12); box-shadow: 0 0 16px rgba(0, 240, 255, 0.3); }
.gender-btn[data-gender="female"].is-active { color: #ff7ee0; border-color: var(--c-magenta); background: rgba(255, 43, 214, 0.12); box-shadow: 0 0 16px rgba(255, 43, 214, 0.3); }
.job-lock { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 12px 14px; border-radius: 6px; border: 1px dashed rgba(252, 238, 10, 0.4); background: rgba(252, 238, 10, 0.05); }
.job-lock b { font-size: 15px; color: var(--c-yellow); }
.job-lock small { grid-row: 2; font-size: 11px; color: var(--c-dim); }
.job-lock .ico { grid-row: 1 / span 2; grid-column: 2; color: var(--c-dim); }
.create-acts { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.zone-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.zone-tab {
  --tone: var(--c-cyan);
  padding: 12px; font-size: 15px; font-weight: 600; letter-spacing: 0.08em; color: var(--c-sub);
  border-radius: 6px; border: 1px solid var(--edge-soft); background: rgba(0, 0, 0, 0.3); position: relative; overflow: hidden;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.zone--points { --tone: #ff5ad8; }
.zone--diamond { --tone: var(--c-cyan); }
.zone--gold { --tone: #fcd20a; }
.zone-tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--tone); transform: scaleX(0); transition: transform 0.3s; box-shadow: 0 0 10px var(--tone); }
.zone-tab:hover { color: var(--c-text); }
.zone-tab.is-active { color: var(--tone); border-color: color-mix(in srgb, var(--tone) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 14%, transparent), rgba(0, 0, 0, 0.3)); text-shadow: 0 0 12px color-mix(in srgb, var(--tone) 70%, transparent); }
.zone-tab.is-active::after { transform: none; }
.detail-price { display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.detail-price .price b { font-size: 20px; }
.split--shop .detail { gap: 12px; }
.lock-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: var(--c-sub); }
.lock-icon .ico { width: 15px; height: 15px; }
.wd2 { display: grid; grid-template-columns: 400px 1fr; gap: 20px; min-height: 0; }
.wd2-stage { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.wd2-meta { display: flex; gap: 20px; padding: 0 4px; }
.wd2-meta div { display: grid; gap: 1px; }
.wd2-meta small { font-size: 10px; color: var(--c-dim); }
.wd2-meta b { font-size: 17px; }
.wd2-meta em { font-style: normal; font-size: 12px; color: var(--c-dim); }
.preview-host--tall .preview-stage { height: 560px; }
.dock {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  border-radius: 8px; border: 1px solid var(--edge-soft);
  background: rgba(6, 10, 24, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); overflow: hidden; transition: border-color 0.2s;
}
.dock.is-open { border-color: var(--edge); }
.dock-head { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 12.5px; color: var(--c-sub); }
.dock-head:hover { color: var(--c-text); }
.dock-head b { font-weight: 500; }
.dock-head .mono { font-size: 11px; color: var(--c-cyan); }
.dock-chev { margin-left: auto; }
.dock-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; padding: 2px 10px 10px; max-height: 210px; overflow-y: auto; animation: dock-in 0.25s ease-out; }
@keyframes dock-in { from { opacity: 0; transform: translateY(6px); } }
.dock-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 2px; }
.dock-label { font-size: 11.5px; color: var(--c-text); text-align: left; }
.dock-label:hover { color: var(--c-cyan); }
.dock-row.is-empty .dock-label { color: var(--c-dim); }
.dock-row.is-hidden .dock-label { color: var(--c-yellow); }
.toggle.sm { width: 28px; height: 15px; }
.toggle.sm i { width: 9px; height: 9px; top: 2px; left: 2px; }
.toggle.sm.is-on i { transform: translateX(13px); }
.wd2-gallery { min-width: 0; display: grid; align-content: start; gap: 12px; }
.chips--slots { margin: 0; }
.wd2-current { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge-soft); }
.cur-slot { font-size: 10px; letter-spacing: 0.1em; padding: 2px 8px; border-radius: 10px; color: #031018; background: var(--c-cyan); }
.wd2-current b { font-size: 14px; font-weight: 500; }
.wd2-current .btn { margin-left: auto; }
.tag-muted { font-size: 10px; padding: 2px 6px; border-radius: 3px; color: var(--c-yellow); border: 1px solid rgba(252, 238, 10, 0.4); }
.wd2-gallery .item-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.inv2 { position: relative; display: grid; grid-template-columns: 340px 1fr; gap: 20px; min-height: 520px; }
.inv2-side { display: grid; gap: 12px; align-content: start; }
.paperdoll {
  position: relative; height: 380px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--edge-soft);
  background: radial-gradient(60% 50% at 50% 55%, rgba(0, 240, 255, 0.12), transparent 70%), linear-gradient(180deg, rgba(4, 8, 20, 0.85), rgba(10, 6, 26, 0.85));
}
.paperdoll::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.04) 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, rgba(0, 240, 255, 0.04) 0 1px, transparent 1px 24px); }
.pd-figure { position: absolute; left: 50%; top: 50%; width: 170px; height: 255px; transform: translate(-50%, -48%); fill: rgba(0, 240, 255, 0.06); stroke: rgba(0, 240, 255, 0.35); stroke-width: 1.2; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.35)); }
.pd-slot {
  --tone: var(--c-cyan);
  position: absolute; width: 62px; height: 62px; transform: translate(-50%, -50%);
  display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 8px;
  color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--tone) 22%, transparent), rgba(4, 6, 16, 0.92) 75%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 30%, transparent);
  transition: transform 0.15s, box-shadow 0.15s;
}
.pd-slot .ico { width: 24px; height: 24px; filter: drop-shadow(0 0 6px currentColor); }
.pd-slot small { font-size: 9.5px; color: var(--c-sub); }
.pd-slot:hover:not(:disabled) { transform: translate(-50%, -50%) scale(1.06); }
.pd-slot.is-selected { box-shadow: 0 0 0 2px var(--c-cyan), 0 0 20px rgba(0, 240, 255, 0.5); }
.pd-slot.rar-SR { --tone: var(--c-violet); }
.pd-slot.rar-SSR { --tone: #fcd20a; }
.pd-slot.is-empty { --tone: rgba(155, 180, 201, 0.5); border-style: dashed; box-shadow: none; cursor: default; }
.pd-slot.is-empty .ico { opacity: 0.4; filter: none; }
.pd-enh { position: absolute; top: 3px; right: 4px; font-size: 9px; color: var(--c-yellow); }
.pd--helmet { left: 50%; top: 13%; }
.pd--accessory { left: 17%; top: 24%; }
.pd--weapon { left: 17%; top: 50%; }
.pd--top { left: 50%; top: 40%; }
.pd--gloves { left: 83%; top: 50%; }
.pd--bottom { left: 50%; top: 66%; }
.pd--shoes { left: 50%; top: 88%; }
.combat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge-soft); }
.combat div { display: grid; gap: 1px; }
.combat small { font-size: 10px; color: var(--c-dim); }
.combat b { font-size: 14px; }
.combat .pw { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--edge-soft); }
.combat .pw b { font-size: 22px; }
.cap2 { position: relative; display: flex; align-items: center; gap: 8px; }
.capx { display: flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 4px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge-soft); }
.capx small { font-size: 10.5px; color: var(--c-dim); }
.capx b { font-size: 13px; font-weight: 500; }
.capx.is-full b { color: var(--c-red); }
.cap-plus { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; color: #031018; background: var(--c-cyan); box-shadow: 0 0 12px rgba(0, 240, 255, 0.5); transition: transform 0.15s, filter 0.15s; }
.cap-plus:hover { filter: brightness(1.15); transform: scale(1.06); }
.cap-plus .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; width: 250px; padding: 6px; display: grid; gap: 4px; border-radius: 8px; border: 1px solid var(--edge); background: rgba(8, 12, 28, 0.96); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6); animation: dock-in 0.2s ease-out; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 6px; text-align: left; transition: background 0.15s; }
.pop-row:hover:not(:disabled) { background: rgba(0, 240, 255, 0.1); }
.pop-row:disabled { opacity: 0.45; }
.pop-row > span:first-child { display: grid; gap: 2px; }
.pop-row b { font-size: 13px; font-weight: 500; }
.pop-row small { font-size: 11px; color: var(--c-dim); display: inline-flex; align-items: center; }
.to-arrow { display: inline-block; width: 14px; height: 1px; margin: 0 6px; background: currentColor; position: relative; }
.to-arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 5px; height: 5px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.inv2-main .bag-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.bag-ico { color: var(--tone); }
.bag-ico .ico { width: 26px; height: 26px; filter: drop-shadow(0 0 6px currentColor); }
.bag-enh { position: absolute; left: 4px; top: 2px; font-size: 9px; color: var(--c-yellow); }
.bag-cell.is-req::after { content: ''; position: absolute; inset: 0; border-radius: 6px; background: rgba(255, 77, 109, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, 0.4); }
.icard-host { position: absolute; inset: -8px; z-index: 10; display: grid; place-items: start center; padding-top: 30px; background: rgba(3, 4, 10, 0.5); border-radius: 8px; animation: dock-in 0.2s ease-out; }
.icard {
  --tone: var(--c-cyan);
  position: relative; width: min(400px, 100%); display: grid; gap: 12px; padding: 18px;
  border-radius: 10px; border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 12%, transparent), rgba(6, 9, 22, 0.97) 45%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--tone) 25%, transparent), 0 24px 60px rgba(0, 0, 0, 0.7);
}
.icard.rar-SR { --tone: var(--c-violet); }
.icard.rar-SSR { --tone: #fcd20a; }
.icard-x { position: absolute; right: 10px; top: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; color: var(--c-sub); }
.icard-x:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.icard-head { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.icard-ico { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--tone); border: 1px solid color-mix(in srgb, var(--tone) 55%, transparent); background: radial-gradient(circle, color-mix(in srgb, var(--tone) 25%, transparent), transparent 70%); }
.icard-ico .ico { width: 28px; height: 28px; filter: drop-shadow(0 0 8px currentColor); }
.icard-head div { display: grid; gap: 3px; }
.icard-head b { font-size: 16px; }
.icard-head em { font-style: normal; color: var(--c-yellow); font-size: 14px; }
.icard-head small { font-size: 11px; color: var(--c-sub); }
.rar-txt { font-family: var(--f-display); font-weight: 700; font-size: 10px; color: var(--c-cyan); }
.rar-txt.rar-SR { color: var(--c-violet); }
.rar-txt.rar-SSR { color: #fcd20a; }
.icard-desc { margin: 0; font-size: 12px; color: var(--c-sub); line-height: 1.6; }
.cmp { display: grid; gap: 2px; padding: 10px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--edge-soft); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; align-items: center; }
.cmp--single .cmp-head, .cmp--single .cmp-row { grid-template-columns: 1fr 1fr; }
.cmp-head { font-size: 10px; color: var(--c-dim); padding-bottom: 6px; border-bottom: 1px solid var(--edge-soft); margin-bottom: 2px; }
.cmp-head span:not(:first-child), .cmp-row b { text-align: right; }
.cmp-row { font-size: 12.5px; padding: 3px 0; }
.cmp-row b { font-weight: 500; }
.enh { display: grid; gap: 10px; padding: 12px; border-radius: 6px; border: 1px solid rgba(255, 43, 214, 0.35); background: rgba(255, 43, 214, 0.06); }
.enh-lv { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 20px; }
.enh-arrow { width: 28px; height: 2px; background: linear-gradient(90deg, transparent, var(--c-cyan)); position: relative; }
.enh-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--c-cyan); border-right: 2px solid var(--c-cyan); transform: rotate(45deg); }
.enh-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12px; color: var(--c-sub); }
.enh-grid b { text-align: right; color: var(--c-text); font-weight: 500; }
.icard-acts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.icard-acts .btn { padding: 10px 8px; font-size: 13px; }
.icard-acts .btn.is-on { background: rgba(255, 43, 214, 0.2); color: #ff7ee0; box-shadow: inset 0 0 0 1px var(--c-magenta); }
.icard-acts .is-confirm { grid-column: span 2; }
.elig-ico .ico, .elig-lock .ico { width: 16px; height: 16px; }
.elig-lock { color: var(--c-dim); }
.game-glyph .ico { width: 84px; height: 84px; stroke-width: 1.3; filter: drop-shadow(0 0 14px currentColor); }
.game-glyph { color: var(--tone); }
.banner-glyph { font-size: 64px; letter-spacing: 0.02em; }
.topup-card .cur-gem { margin-bottom: 4px; }
@media (max-width: 1100px) {
  .wd2 { grid-template-columns: 340px 1fr; }
  .preview-host--tall .preview-stage { height: 480px; }
  .inv2 { grid-template-columns: 1fr; }
  .inv2-side { grid-template-columns: 320px 1fr; }
}
@media (max-width: 820px) {
  .gate { padding-top: 4vh; }
  .gate-card.create { grid-template-columns: 1fr; }
  .create-preview .preview-stage { min-height: 240px; height: 240px; }
  .wd2 { grid-template-columns: 1fr; }
  .preview-host--tall .preview-stage { height: 360px; }
  .dock-body { grid-template-columns: repeat(2, 1fr); }
  .chips--slots { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips--slots .chip { flex: none; }
  .inv2-side { grid-template-columns: 1fr; }
  .paperdoll { height: 330px; }
  .pd-slot { width: 54px; height: 54px; }
  .cap2 { flex-wrap: wrap; }
  .icard-host { position: fixed; inset: 0; padding: 70px 12px 12px; z-index: 65; border-radius: 0; }
  .zone-tab { font-size: 13px; padding: 10px 4px; }
}
[hidden] { display: none !important; }
.gate .logo { display: block !important; }
html:not(.is-ingame) .joystick-host { display: none !important; }
@media (max-width: 820px) {
  .exp span { display: none; }
}
/* ── v5.css ── */
.split--shop { align-items: start; }
.split--shop .split-side {
  position: sticky; top: -20px; z-index: 3;
  align-self: start;
  padding-top: 0;
}
.split--shop .preview-stage { height: clamp(240px, 46vh, 380px); }
.split--shop .detail { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); background: rgba(6, 10, 24, 0.88); }
@media (max-width: 1100px) {
  .split--shop .split-side { grid-template-columns: minmax(180px, 38%) 1fr; align-items: stretch; background: rgba(6, 10, 24, 0.92); border-radius: 10px; padding: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); }
  .split--shop .preview-stage { height: 230px; }
}
@media (max-width: 820px) {
  .split--shop .split-side { top: -14px; grid-template-columns: 120px 1fr; gap: 8px; }
  .split--shop .preview-stage { height: 170px; }
  .split--shop .detail { padding: 10px; gap: 6px; box-shadow: none; }
  .split--shop .detail-name { font-size: 15px; }
  .split--shop .detail .btn--block { padding: 10px; font-size: 13px; }
}
.idle-host { flex: 1 1 240px; min-height: 220px; max-height: 300px; display: flex; }
.idle {
  position: relative; flex: 1; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.6), var(--shadow);
}
.idle::before, .idle::after { content: ''; position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none; }
.idle::before { top: 6px; left: 6px; border-top: 2px solid var(--c-cyan); border-left: 2px solid var(--c-cyan); }
.idle::after { bottom: 6px; right: 6px; border-bottom: 2px solid var(--c-magenta); border-right: 2px solid var(--c-magenta); }
@media (max-width: 820px) {
  .idle-host { display: none; }
}
/* ── v6.css ── */
.act-bar {
  position: absolute; left: 4px; bottom: 62px; z-index: 4;
  display: flex; align-items: center; gap: 4px; padding: 4px;
  border-radius: 6px; border: 1px solid var(--edge-soft);
  background: rgba(6, 10, 24, 0.86);
}
.act-label { font-size: 8px; letter-spacing: 0.22em; color: var(--c-dim); padding: 0 4px 0 2px; }
.act-btn {
  padding: 5px 9px; font-size: 11px; border-radius: 4px; color: var(--c-sub);
  border: 1px solid transparent; transition: all 0.15s;
}
.act-btn:hover { color: var(--c-text); background: rgba(255, 255, 255, 0.06); }
.act-btn.is-on { color: #031018; background: var(--c-cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.act-btn--hot { color: #ff7ee0; }
.act-btn--hot.is-on { color: #fff; background: linear-gradient(90deg, var(--c-magenta), var(--c-violet)); box-shadow: 0 0 12px rgba(255, 43, 214, 0.55); }
.act-state { min-width: 46px; text-align: center; font-size: 9px; letter-spacing: 0.14em; color: var(--c-yellow); padding: 0 4px; }
@media (max-width: 820px) {
  .act-bar, [data-input="touch"] .act-bar { left: auto; right: 4px; top: 50px; bottom: auto; transform: none; flex-direction: column; gap: 2px; padding: 3px; }
  .act-label, .act-state { display: none; }
  .act-btn { padding: 5px 8px; font-size: 10.5px; white-space: nowrap; }
}
.act-btn { white-space: nowrap; }
/* ── v7.css ── */
.stage.is-3d .pod-stage canvas,
.preview-stage canvas,
.create-preview canvas { cursor: grab; touch-action: none; }
.stage.is-3d .pod-stage canvas.is-grabbing,
.preview-stage canvas.is-grabbing,
.create-preview canvas.is-grabbing { cursor: grabbing; }
.stage.is-3d .stage-beam { opacity: 0.35; }
.stage.is-3d .ring { opacity: 0.45; }
.stage-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(159, 252, 255, 0.7); pointer-events: none; z-index: 3; white-space: nowrap; }
.stage:not(.is-3d) .stage-hint { display: none; }
@keyframes idle-dmg { 0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
/* ── v8.css ── */
.audio-toggles { display: inline-flex; gap: 6px; align-items: center; }
.audio-btn { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.45); background: rgba(0, 240, 255, 0.08); color: var(--c-cyan); cursor: pointer;
  font: 600 10px/1 var(--f-mono, monospace); letter-spacing: 0.12em; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.audio-btn svg { width: 15px; height: 15px; }
.audio-btn:hover { background: rgba(0, 240, 255, 0.18); }
.audio-btn:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.audio-slash { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--c-magenta); opacity: 0; transition: opacity 0.2s; }
.audio-slash svg { width: 17px; height: 17px; stroke-width: 2.4; }
.audio-btn.is-off { color: var(--c-dim, #6b7a90); border-color: rgba(155, 180, 201, 0.3); background: rgba(0, 0, 0, 0.25); }
.audio-btn.is-off .audio-slash { opacity: 1; }
.audio-btn.is-off .audio-label { text-decoration: line-through; }
.hud-audio { display: flex; align-items: center; margin-right: 4px; }
@media (max-width: 820px) {
  .hud-audio .audio-label { display: none; }
  .hud-audio .audio-btn { padding: 0 7px; }
}
.nav-badge--beta { color: var(--c-yellow); border-color: rgba(252, 238, 10, 0.5); }
.ro { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 10px; border: 1px solid var(--edge-soft);
  background: radial-gradient(ellipse at 50% 30%, #0f1d33 0%, #070815 70%); isolation: isolate; }
.ro::before, .ro::after { content: ''; position: absolute; width: 18px; height: 18px; z-index: 5; pointer-events: none; }
.ro::before { top: 6px; left: 6px; border-top: 2px solid var(--c-cyan); border-left: 2px solid var(--c-cyan); }
.ro::after { bottom: 6px; right: 6px; border-bottom: 2px solid var(--c-magenta); border-right: 2px solid var(--c-magenta); }
.ro-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ro-fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.ro-hud { position: absolute; inset: 0; z-index: 3; display: grid; grid-template-rows: auto auto 1fr auto; padding: 10px 12px; pointer-events: none; }
.ro-hud button { pointer-events: auto; }
.ro-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ro-map { display: grid; line-height: 1.15; padding: 4px 10px 5px; border-left: 3px solid var(--c-cyan); background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent); }
.ro-map b { font-size: 14px; letter-spacing: 0.1em; text-shadow: 0 0 10px rgba(0, 240, 255, 0.7); }
.ro-map small { font-size: 8.5px; letter-spacing: 0.2em; color: var(--c-cyan); }
.ro-tools { display: flex; gap: 6px; }
.ro-tool { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; cursor: pointer; color: #fff;
  border: 1px solid rgba(255, 43, 214, 0.5); background: rgba(255, 43, 214, 0.12); }
.ro-tool svg { width: 15px; height: 15px; }
.ro-tool:hover { background: rgba(255, 43, 214, 0.25); }
.ro-stats { display: flex; gap: 14px; margin-top: 8px; }
.ro-stats div { display: grid; line-height: 1.15; }
.ro-stats small { font-size: 9px; color: var(--c-sub); }
.ro-stats b { font-size: 13px; color: #fff; }
.ro-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin: 0 -12px -10px; padding: 18px 12px 10px; background: linear-gradient(transparent, rgba(3, 4, 10, 0.85) 55%); }
.ro-bars { display: grid; gap: 3px; width: min(220px, 70%); }
.ro-who { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.ro-who span { font-size: 8.5px; letter-spacing: 0.16em; color: var(--c-cyan); }
.ro-bar { position: relative; height: 11px; border-radius: 2px; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.18); overflow: hidden; }
.ro-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p, 100%); transition: width 0.25s; }
.ro-bar--hp i { background: linear-gradient(180deg, #6dff8d, #1db94a); }
.ro-bar--hp.is-low i { background: linear-gradient(180deg, #ff7a6b, #d4202a); }
.ro-bar--sp i { background: linear-gradient(180deg, #7ab8ff, #2457d6); }
.ro-bar span { position: relative; display: block; font-size: 8.5px; line-height: 10px; padding-left: 4px; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; }
.ro-tag { font-size: 9px; letter-spacing: 0.16em; padding: 3px 7px; color: var(--c-yellow); border: 1px solid rgba(252, 238, 10, 0.6); background: rgba(252, 238, 10, 0.08); }
.ro-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; width: min(360px, 50%); font-size: 11px; color: #d8e6f5; text-shadow: 0 0 3px #000; }
.ro-log li { opacity: 0.9; }
.ro-log li:nth-child(n+4) { opacity: 0.5; }
.ro-log .crit { color: #ff6b6b; font-weight: 700; }
.ro-log .kill { color: #ffd84a; }
.ro-log .cast { color: #ff9ff0; }
.ro-log .warn { color: #ff9a3b; }
.ro-banner { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 4; display: grid; justify-items: center; gap: 4px;
  padding: 10px 34px; pointer-events: none; transition: opacity 0.8s, transform 0.8s;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.7) 20%, rgba(0, 0, 0, 0.7) 80%, transparent); }
.ro-banner b { font-size: 26px; letter-spacing: 0.3em; text-shadow: 0 0 16px rgba(0, 240, 255, 0.9); }
.ro-banner small { font-size: 10px; letter-spacing: 0.3em; color: var(--c-magenta); }
.ro-banner.is-out { opacity: 0; transform: translate(-50%, -70%); }
.ro--widget .ro-banner b { font-size: 18px; }
.ro-dmg { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 3;
  font-weight: 800; font-size: 15px; color: #ffe14a; white-space: nowrap; letter-spacing: 0.02em;
  text-shadow: -1px -1px 0 #3a2400, 1px -1px 0 #3a2400, -1px 1px 0 #3a2400, 1px 1px 0 #3a2400, 0 0 8px rgba(255, 200, 0, 0.6);
  animation: ro-pop 1.05s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.ro-dmg.is-crit { color: #ff2a2a; font-size: 20px; font-weight: 900;
  text-shadow: -1px -1px 0 #2a0000, 1px -1px 0 #2a0000, -1px 1px 0 #2a0000, 1px 1px 0 #2a0000, 0 0 12px rgba(255, 40, 40, 0.8); }
.ro-dmg.is-crit::before { content: ''; position: absolute; inset: -14px -18px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 120, 0.85), rgba(255, 80, 40, 0.35) 55%, transparent); animation: ro-burst 0.4s ease-out forwards; }
.ro-dmg.is-taken { font-size: 13px; }
.ro-dmg.is-crit.is-taken { font-size: 17px; }
.ro-dmg.is-miss { color: #9fd8ff; font-size: 13px; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.ro-dmg.is-info { color: #9ffcff; font-size: 12px; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.ro--widget .ro-dmg { font-size: 12px; }
.ro--widget .ro-dmg.is-crit { font-size: 15px; }
@keyframes ro-pop {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.4); }
  12% { opacity: 1; transform: translate(calc(-50% + var(--dx) * 0.3), -95%) scale(1.35); }
  28% { transform: translate(calc(-50% + var(--dx) * 0.5), -110%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -330%) scale(0.95); }
}
@keyframes ro-burst { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.ro-mob { position: absolute; left: 0; top: 0; will-change: transform; display: grid; justify-items: center; gap: 2px; z-index: 2; }
.ro-mob[hidden] { display: none; }
.ro-mob-name { font-size: 10px; color: #fff; white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 3px #000; }
.ro-mob-name small { color: var(--c-yellow); font-size: 9px; }
.ro-mob-hp { width: 46px; height: 5px; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.35); }
.ro-mob-hp i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(180deg, #ff7a6b, #d4202a); transition: transform 0.2s; }
.ro--widget .ro-mob-name { display: none; }
.ro-cast { position: absolute; left: 0; top: 0; will-change: transform; display: grid; justify-items: center; gap: 3px; z-index: 3; }
.ro-cast[hidden] { display: none; }
.ro-cast b { font-size: 11px; color: #ffd6fb; white-space: nowrap; text-shadow: 0 0 6px rgba(255, 43, 214, 0.9), 0 0 2px #000; }
.ro-cast span { width: 84px; height: 7px; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.7); box-shadow: 0 0 10px rgba(255, 43, 214, 0.6); }
.ro-cast i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #ff2bd6, #ffd6fb); }
.ro--widget .ro-cast b { font-size: 9px; }
.ro--widget .ro-cast span { width: 60px; height: 5px; }
.ro-host-full { height: min(68vh, 640px); min-height: 360px; }
.idle-host .ro { min-height: 220px; }
@media (max-width: 820px) {
  .ro-host-full { height: 62vh; }
  .ro-log { display: none; }
}
@media (max-width: 820px) {
  .nav-btn { min-width: 0; }
  .nav-text { min-width: 0; }
  .nav-text b { font-size: 9px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
/* ── v9.css ── */
.lobby.has-hero { position: relative; }
/* ══ 主角面板：大廳只留左側分頁按鈕；開啟後全螢幕覆蓋（大字體，預留天賦樹） ══ */
.hero-host { display: contents; }
.hero-host.is-collapsed .hero { display: none; }
.hero-tab { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 6; display: grid; justify-items: center; gap: 4px;
  padding: 12px 10px; border-radius: 0 10px 10px 0; border: 1px solid var(--edge); border-left: 0; background: rgba(4, 22, 34, 0.9);
  color: var(--c-cyan); font-size: 13px; line-height: 1.1; cursor: pointer; box-shadow: 0 0 16px rgba(0, 240, 255, 0.18); }
.hero-tab svg { width: 20px; height: 20px; }
.hero-tab span { white-space: nowrap; }
.hero-tab[hidden] { display: none; }
.hero-host.is-open { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(3, 5, 14, 0.97); overflow-y: auto; overscroll-behavior: contain;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
html.hero-open .joystick-host, html.hero-open .act-btns { display: none !important; }
.hero { position: relative; max-width: 1280px; margin: 0 auto; display: grid; gap: 18px; padding: 22px 24px 26px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(14, 22, 46, 0.96), rgba(6, 8, 20, 0.98)); border: 1px solid var(--edge); font-size: 15px; }
.hero-collapse { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--edge); color: var(--c-cyan); background: rgba(0, 240, 255, 0.06); cursor: pointer; }
.hero-collapse svg { width: 18px; height: 18px; }
.hero-collapse small { font-size: 11px; }
.hero-collapse:hover, .hero-collapse:focus-visible { background: rgba(0, 240, 255, 0.16); outline: none; }
.hero-head { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; padding-right: 110px; }
.hero-id { display: grid; gap: 2px; line-height: 1.2; }
.hero-id b { font-size: 28px; letter-spacing: 0.06em; text-shadow: 0 0 10px rgba(0, 240, 255, 0.6); }
.hero-id span { font-size: 14px; color: var(--c-sub); }
.hero-lv { display: grid; justify-items: end; line-height: 1; }
.hero-lv small { font-size: 12px; letter-spacing: 0.2em; color: var(--c-cyan); }
.hero-lv b { font-size: 40px; color: var(--c-yellow); text-shadow: 0 0 12px rgba(252, 238, 10, 0.6); }
.hero-exp { grid-column: 1 / -1; position: relative; height: 22px; border-radius: 4px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.14); overflow: hidden; }
.hero-exp i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: linear-gradient(90deg, #00f0ff, #8a5cff); transition: width 0.4s; }
.hero-exp span { position: relative; display: block; font-size: 13px; line-height: 20px; padding-left: 10px; text-shadow: 0 0 3px #000; }
.hero-idle { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-green, #39ff9f); }
.hero-cols { display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(240px, 0.8fr) minmax(320px, 1.2fr); gap: 16px; align-items: start; }
.hero-cols h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 18px; letter-spacing: 0.08em; color: var(--c-cyan); }
.hero-cols h4 small { font-size: 13px; color: var(--c-sub); letter-spacing: 0; }
.hero-cols h4 small b { color: var(--c-yellow); font-size: 20px; }
.hero-stats, .hero-combat, .hero-skills { min-width: 0; padding: 18px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge-soft); }
.stat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: 1fr 44px 64px 44px 30px; align-items: center; gap: 8px; }
.stat-name { display: grid; line-height: 1.15; }
.stat-name b { font-size: 20px; color: #fff; }
.stat-name small { font-size: 13px; color: var(--c-sub); }
.stat-row .stat-val { text-align: center; font-size: 24px; font-weight: 700; position: relative; }
.stat-row .stat-val.is-pending { color: var(--c-yellow); }
.stat-row .stat-val small { position: absolute; top: -10px; right: -2px; font-size: 12px; color: var(--c-yellow); }
.stat-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-size: 22px; line-height: 1; color: var(--c-cyan);
  border: 1px solid rgba(0, 240, 255, 0.45); background: rgba(0, 240, 255, 0.08); cursor: pointer; }
.stat-btn--add { color: #031018; background: var(--c-cyan); border-color: var(--c-cyan); }
.stat-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stat-btn:not(:disabled):hover { box-shadow: 0 0 12px rgba(0, 240, 255, 0.6); }
.stat-cost { font-size: 13px; color: var(--c-dim); text-align: right; }
.stat-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 18px 0 10px; }
.stat-actions .btn { padding: 12px 16px; font-size: 15px; }
.stat-hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--c-dim); }
.derived { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.derived div { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; padding: 9px 2px; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.derived dt { color: var(--c-sub); font-size: 14px; }
.derived dd { margin: 0; color: #fff; font-size: 18px; }
.hero-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.hero-tabs button { flex: 1; height: 42px; border-radius: 10px; border: 1px solid var(--edge-soft); background: transparent; color: var(--c-sub); font: inherit; font-size: 16px; cursor: pointer; }
.hero-tabs button small { font-size: 11px; color: var(--c-magenta); }
.hero-tabs button[aria-selected="true"] { color: #031018; background: var(--c-cyan); border-color: var(--c-cyan); }
.hero-sub { margin: 0 0 10px; font-size: 14px; color: var(--c-sub); } .hero-sub b { color: var(--c-yellow); font-size: 18px; }
.talent-soon { display: grid; gap: 8px; padding: 30px 18px; text-align: center; border: 1px dashed var(--edge-soft); border-radius: 10px; }
.talent-soon b { font-size: 20px; color: var(--c-magenta); } .talent-soon p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--c-sub); }
.skill-tree { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, auto); gap: 26px 10px; padding: 8px 0 22px; }
.skill-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.skill-links line { stroke: rgba(155, 180, 201, 0.25); stroke-width: 3; stroke-dasharray: 5 4; }
.skill-links line.on { stroke: rgba(0, 240, 255, 0.7); stroke-dasharray: none; }
.skill-slot { position: relative; z-index: 1; justify-self: center; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--edge-soft); background: linear-gradient(160deg, rgba(20, 30, 60, 0.95), rgba(5, 8, 18, 0.95)); transition: border-color 0.2s, box-shadow 0.2s; }
.skill-slot[data-col="0"] { grid-column: 1; } .skill-slot[data-col="1"] { grid-column: 2; } .skill-slot[data-col="2"] { grid-column: 3; }
.skill-slot[data-row="0"] { grid-row: 1; } .skill-slot[data-row="1"] { grid-row: 2; }
.skill-slot--active { border-radius: 50%; }
.skill-slot.is-learned { border-color: rgba(0, 240, 255, 0.6); box-shadow: inset 0 0 14px rgba(0, 240, 255, 0.25); }
.skill-slot.is-locked { opacity: 0.45; }
.skill-slot.is-selected { border-color: var(--c-yellow); box-shadow: 0 0 14px rgba(252, 238, 10, 0.5); }
.skill-slot:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
.skill-icon svg { width: 34px; height: 34px; color: var(--c-cyan); }
.skill-slot.is-locked .skill-icon svg { color: var(--c-sub); }
.skill-lv { position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%); font-size: 12px; padding: 1px 7px; border-radius: 5px; background: #05070f; border: 1px solid var(--edge-soft); white-space: nowrap; }
.skill-up { position: absolute; top: -9px; right: -9px; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; color: #031018; background: var(--c-yellow); box-shadow: 0 0 10px rgba(252, 238, 10, 0.7); cursor: pointer; }
.skill-up:disabled { display: none; }
.skill-detail { min-height: 96px; padding: 14px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); font-size: 15px; line-height: 1.55; }
.skill-detail b { display: block; font-size: 18px; }
.skill-detail b small { font-size: 12px; color: var(--c-cyan); font-weight: 400; margin-left: 6px; }
.skill-detail p { margin: 6px 0; color: var(--c-sub); }
.skill-detail span { font-size: 13px; color: var(--c-dim); }
@media (max-width: 1100px) {
  .hero-cols { grid-template-columns: 1fr 1fr; }
  .hero-skills { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hero { padding: 16px 14px 20px; gap: 14px; font-size: 15px; }
  .hero-head { padding-right: 64px; }
  .hero-collapse { padding: 0 10px; } .hero-collapse small { display: none; }
  .hero-id b { font-size: 22px; } .hero-lv b { font-size: 32px; }
  .hero-cols { grid-template-columns: 1fr; }
  .hero-stats, .hero-combat, .hero-skills { padding: 14px; }
  .derived { grid-template-columns: 1fr 1fr; column-gap: 14px; }
  .stat-row { grid-template-columns: 1fr 44px 56px 44px 26px; gap: 6px; }
  .hero-tab { position: fixed; top: 34%; z-index: 25; transform: none; }
}
.badge--open { color: #031018; background: var(--c-green, #39ff9f); box-shadow: 0 0 10px rgba(57, 255, 159, 0.5); }
.game-card.is-open { border-color: rgba(57, 255, 159, 0.45); }
.game-card.is-open .game-art { box-shadow: inset 0 0 40px rgba(57, 255, 159, 0.12); }
.offline { display: grid; gap: 14px; text-align: center; }
.offline-time { margin: 0; font-size: 14px; color: var(--c-sub); }
.offline-time b { font-size: 22px; color: #fff; margin: 0 4px; }
.offline-time small { display: block; font-size: 11px; color: var(--c-dim); }
.offline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.offline-grid div { display: grid; gap: 4px; padding: 14px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge-soft); }
.offline-grid small { font-size: 11px; color: var(--c-sub); }
.offline-grid b { font-size: 20px; }
.offline-lv { margin: 0; font-size: 12px; color: var(--c-yellow); }
.offline-rate { margin: 0; font-size: 10px; color: var(--c-dim); }
.offline-actions { display: flex; justify-content: center; gap: 10px; }
@media (max-width: 560px) {
  .offline-grid { grid-template-columns: repeat(2, 1fr); }
}
.thor { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; min-height: 0; }
.thor-machine { display: grid; gap: 10px; min-width: 0; padding: 14px; border-radius: 12px; position: relative;
  background: radial-gradient(ellipse at 50% 0%, rgba(252, 210, 10, 0.12), transparent 60%), linear-gradient(180deg, #0b0f24, #05060f);
  border: 1px solid rgba(252, 210, 10, 0.35); box-shadow: inset 0 0 40px rgba(0, 240, 255, 0.06); }
.thor-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.thor-logo { display: grid; line-height: 1.1; }
.thor-logo b { font-size: 22px; letter-spacing: 0.24em; background: linear-gradient(180deg, #fff6b0, #ffb300); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 8px rgba(252, 210, 10, 0.5)); }
.thor-logo small { font-size: 9px; letter-spacing: 0.2em; color: var(--c-cyan); }
.thor-tools { display: flex; gap: 6px; align-items: center; }
.thor-reels { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; aspect-ratio: 5 / 3; max-height: 52vh; padding: 8px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(10, 16, 40, 0.7)); border: 2px solid rgba(0, 240, 255, 0.35); box-shadow: 0 0 30px rgba(0, 240, 255, 0.15) inset; overflow: hidden; }
.reel { position: relative; overflow: hidden; border-radius: 6px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.3) 50%, rgba(255, 255, 255, 0.04)); }
.reel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 6, 15, 0.7), transparent 18%, transparent 82%, rgba(5, 6, 15, 0.7)); }
.strip { --n: 3; height: calc(var(--n) / 3 * 100%); display: grid; grid-auto-rows: 1fr; will-change: transform; }
.cell { display: grid; place-items: center; padding: 8%; transition: transform 0.2s; }
.sym { width: 100%; height: 100%; max-width: 92px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.reel.is-moving .strip { filter: blur(1.5px) brightness(1.15); }
.reel.is-stop .strip { animation: reel-bump 0.22s ease-out; }
@keyframes reel-bump { 30% { transform: translateY(4%); } }
.cell.is-win { animation: cell-win 0.9s ease-in-out infinite; }
.cell.is-win .sym { filter: drop-shadow(0 0 10px rgba(252, 238, 10, 0.9)) drop-shadow(0 0 22px rgba(0, 240, 255, 0.6)); }
@keyframes cell-win { 50% { transform: scale(1.1); } }
.thor-lines { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); pointer-events: none; }
.thor-lines polyline { fill: none; stroke: #fcee0a; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px #fcee0a); opacity: 0.85; vector-effect: non-scaling-stroke; }
.thor-flash { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.9), rgba(0, 240, 255, 0.35) 40%, transparent 70%); mix-blend-mode: screen; }
.thor-flash.is-on { animation: thor-flash 0.9s ease-out; }
@keyframes thor-flash { 0%, 20%, 40% { opacity: 0; } 10%, 30% { opacity: 1; } 55% { opacity: 0.6; } 100% { opacity: 0; } }
.thor.is-spinning .thor-reels { box-shadow: 0 0 40px rgba(0, 240, 255, 0.35) inset; }
.thor-win { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 5; display: grid; justify-items: center; padding: 14px 40px; border-radius: 12px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(10, 6, 30, 0.92), rgba(10, 6, 30, 0.6)); border: 2px solid var(--c-yellow); box-shadow: 0 0 40px rgba(252, 210, 10, 0.5); animation: win-pop 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.thor-win[hidden] { display: none; }
.thor-win small { font-size: 13px; letter-spacing: 0.24em; color: var(--c-cyan); }
.thor-win b { font-size: 40px; color: var(--c-yellow); text-shadow: 0 0 18px rgba(252, 210, 10, 0.8); }
.thor-win[data-tier="mega"] { border-color: var(--c-magenta); box-shadow: 0 0 60px rgba(255, 43, 214, 0.6); }
.thor-win[data-tier="mega"] b { font-size: 52px; }
@keyframes win-pop { from { transform: translate(-50%, -50%) scale(0.4); opacity: 0; } }
.thor-controls { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 12px; }
.cur-select { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
.cur-opt { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; text-align: left;
  border: 1px solid var(--edge-soft); background: rgba(0, 0, 0, 0.35); color: var(--c-sub); transition: all 0.2s; }
.cur-opt .cur-gem { grid-row: 1 / 3; }
.cur-opt span { font-size: 11px; }
.cur-opt b { font-size: 12px; color: #fff; }
.cur-opt.is-on { border-color: var(--c-yellow); background: rgba(252, 238, 10, 0.1); color: var(--c-yellow); box-shadow: 0 0 12px rgba(252, 238, 10, 0.3); }
.bet-box { display: grid; gap: 3px; justify-items: center; }
.bet-box small { font-size: 10px; color: var(--c-sub); }
.bet-box > b { font-size: 16px; }
.bet-ctl { display: flex; align-items: center; gap: 8px; }
.bet-ctl b { min-width: 86px; text-align: center; font-size: 13px; }
.thor-spin { justify-self: end; width: 104px; height: 64px; border-radius: 32px; display: grid; place-items: center; line-height: 1;
  font: 900 20px/1 Orbitron, var(--f-mono); letter-spacing: 0.12em; color: #1a0f00;
  background: radial-gradient(circle at 50% 30%, #fff6b0, #fcd20a 45%, #c88a00); box-shadow: 0 0 24px rgba(252, 210, 10, 0.6), inset 0 -4px 0 rgba(0, 0, 0, 0.25); transition: transform 0.1s, filter 0.2s; }
.thor-spin small { font-size: 8px; letter-spacing: 0.2em; opacity: 0.7; }
.thor-spin:hover { filter: brightness(1.1); }
.thor-spin:active { transform: scale(0.95); }
.thor-spin:disabled { filter: grayscale(0.7) brightness(0.7); cursor: progress; }
.thor-msg { margin: 0; min-height: 16px; font-size: 11px; color: var(--c-sub); text-align: center; }
.thor-msg.is-err { color: var(--c-magenta); }
.thor-side { display: grid; grid-template-rows: minmax(260px, 1fr) auto auto; gap: 10px; min-width: 0; }
.thor-stage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(252, 210, 10, 0.3);
  background: radial-gradient(ellipse at 50% 80%, rgba(0, 240, 255, 0.18), transparent 60%), linear-gradient(180deg, #0a0d22, #05060f); }
.thor-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.thor-sync { position: absolute; left: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: 0.1em; padding: 3px 8px; border-radius: 10px;
  color: var(--c-green, #39ff9f); background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(57, 255, 159, 0.4); }
.thor-sync i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.thor-sync.is-pulse { animation: sync-pulse 0.9s ease-out; }
@keyframes sync-pulse { 0% { box-shadow: 0 0 0 0 rgba(57, 255, 159, 0.8); } 100% { box-shadow: 0 0 0 14px rgba(57, 255, 159, 0); } }
.thor-who { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.thor-who b { font-size: 14px; }
.thor-who small { font-size: 10px; color: var(--c-sub); }
.quick-wd { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--edge-soft); }
.quick-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.quick-tabs .chip { padding: 3px 8px; font-size: 10.5px; }
.quick-items { display: flex; flex-wrap: wrap; gap: 5px; min-height: 30px; }
.qi { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 6px; font-size: 11px; color: var(--c-text, #e6f1ff);
  border: 1px solid var(--edge-soft); background: rgba(255, 255, 255, 0.03); }
.qi small { font-size: 8.5px; color: var(--c-cyan); }
.qi.rar-SR small { color: var(--c-violet); }
.qi.rar-SSR small { color: var(--c-yellow); }
.qi.is-on { border-color: var(--c-cyan); background: rgba(0, 240, 255, 0.12); box-shadow: 0 0 8px rgba(0, 240, 255, 0.3); }
.qi-empty { font-size: 10.5px; color: var(--c-dim); }
.thor-paytable { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(3, 4, 10, 0.75); border-radius: 12px; }
.thor-paytable[hidden] { display: none; }
.pt-card { width: min(640px, 94%); max-height: 92%; overflow: auto; padding: 14px 16px; border-radius: 12px; background: #0a0d20; border: 1px solid rgba(252, 210, 10, 0.4); }
.pt-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pt-table th { font-size: 10px; color: var(--c-sub); font-weight: 400; text-align: left; padding: 4px; border-bottom: 1px solid var(--edge-soft); }
.pt-table td { padding: 3px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.pt-table td .sym { width: 34px; height: 34px; }
.pt-table td small { margin-left: 4px; font-size: 9px; color: var(--c-magenta); }
.pt-notes { margin: 10px 0 0; padding-left: 18px; font-size: 11px; line-height: 1.6; color: var(--c-sub); }
@media (max-width: 1100px) {
  .thor { grid-template-columns: 1fr; }
  .thor-side { grid-template-rows: 260px auto auto; }
}
@media (max-width: 820px) {
  .thor-controls { grid-template-columns: 1fr 1fr; }
  .cur-select { grid-column: 1 / -1; }
  .thor-spin { grid-column: 1 / -1; justify-self: stretch; width: auto; }
  .thor-logo b { font-size: 17px; }
}
.cur-opt.is-disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.8); }
.cur-off { font-size: 10px !important; color: var(--c-sub) !important; }
.thor-free { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 6; display: flex; align-items: baseline; gap: 10px;
  padding: 6px 16px; border-radius: 20px; background: rgba(255, 43, 214, 0.18); border: 1px solid var(--c-magenta); box-shadow: 0 0 20px rgba(255, 43, 214, 0.5); }
.thor-free[hidden] { display: none; }
.thor-free b { font-size: 14px; letter-spacing: 0.2em; color: #fff; }
.thor-free span { font-size: 13px; color: var(--c-yellow); }
.thor-free small { font-size: 11px; color: var(--c-cyan); }
.stage-layer { transition: opacity 0.45s ease; }
.stage-layer.is-entering, .stage-layer.is-leaving { opacity: 0; }
/* ── v10.css ── */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  :root { --side-w: 64px; --gap: 6px; }
  .app { padding-left: max(var(--gap), env(safe-area-inset-left)); padding-right: max(var(--gap), env(safe-area-inset-right)); }
  .sidebar { padding: 8px 6px; }
  .brand-sub, .side-status, .sidebar > .side-label { display: none; }
  .nav-list { gap: 2px; }
  .nav-btn { padding: 6px 4px; }
  .hud { padding: 4px 10px; gap: 8px; }
  .hud-audio .audio-label { display: none; }
  .hud-audio .audio-btn { padding: 0 7px; height: 26px; }
  .avatar-ring { width: 36px; height: 36px; }
  .stat { padding: 2px 8px; }
  .lobby.has-hero, .lobby.has-hero:has(.hero-host.is-collapsed) { grid-template-columns: minmax(0, 1fr) 220px; }
  .events-head, .event-cards { display: none; }
  .banner { aspect-ratio: auto; height: 96px; }
  .banner-copy p { display: none; }
  .idle-host { min-height: 140px; }
  .readout--mini, .pod-axis, .np-tag { display: none; }
  .act-bar { left: 4px; bottom: 44px; }
  .hero-tab { top: 64px; transform: none; }
  .vj-zone { left: calc(var(--side-w) + 16px); bottom: 10px; width: 36%; height: 60%; }
  .vj-actions { right: calc(220px + 24px); bottom: 16px; }
  .modal { max-height: 96dvh; }
  .modal-head { padding: 6px 12px; }
  .modal-head h2 { font-size: 16px; }
  .modal-code, .modal-sub { display: none; }
  .modal-close { transform: scale(0.85); }
  .thor-top { display: none; }
  .thor-machine { padding: 8px; gap: 6px; }
  .thor-msg { display: none; }
  .modal-body { padding: 10px 14px 14px; }
  .thor { grid-template-columns: minmax(0, 1fr) 220px; }
  .thor-reels { max-height: 54dvh; }
  .thor-side { grid-template-rows: minmax(180px, 1fr) auto; }
  .quick-wd { display: none; }
  .thor-controls { grid-template-columns: auto auto auto 1fr; }
  .cur-select { grid-column: auto; }
  .thor-spin { grid-column: auto; width: 88px; height: 52px; justify-self: end; }
  .ro-host-full { height: 76dvh; }
}
@media (pointer: coarse) {
  .pod-stage canvas, .preview-stage canvas, .thor-stage canvas, .ro-cv { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .cur-opt.is-disabled { display: none; }
}
/* ── v14：3D 載入佔位 / 掛機小卡 / 縮圖 ── */
.holo-wait { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; transition: opacity 0.4s ease; }
.holo-wait.is-out { opacity: 0; }
.hw-ring { grid-area: 1 / 1; width: min(46%, 220px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(0, 240, 255, 0.15); border-top-color: var(--c-cyan); animation: hw-spin 1.1s linear infinite;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.25); }
.hw-ring--2 { width: min(34%, 160px); border-top-color: transparent; border-bottom-color: var(--c-magenta); animation-duration: 1.7s; animation-direction: reverse; }
.hw-txt { grid-area: 1 / 1; align-self: end; margin-bottom: 18%; font-size: 11px; letter-spacing: 0.18em; color: rgba(159, 252, 255, 0.85); }
.holo-wait--compact .hw-txt { margin-bottom: 10%; font-size: 10px; }
.idle-stage { position: relative; }
.idle-card { flex: 1; display: grid; align-content: space-between; gap: 8px; padding: 14px; text-align: left; cursor: pointer;
  border-radius: 10px; border: 1px solid rgba(0, 240, 255, 0.35); color: var(--text, #e6f6ff);
  background: radial-gradient(80% 70% at 80% 100%, rgba(255, 43, 214, 0.16), transparent 70%), linear-gradient(160deg, rgba(4, 10, 24, 0.92), rgba(12, 6, 28, 0.92));
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.12); font: inherit; }
.idle-card:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.ic-top { display: grid; gap: 2px; } .ic-top b { font-size: 16px; } .ic-top small { font-size: 10px; letter-spacing: 0.14em; color: rgba(159, 252, 255, 0.7); }
.ic-live { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #7dffb0; }
.ic-live i { width: 7px; height: 7px; border-radius: 50%; background: #3dff8a; box-shadow: 0 0 8px #3dff8a; animation: hw-pulse 1.6s ease-in-out infinite; }
.ic-rate { display: grid; gap: 2px; } .ic-rate small { font-size: 10px; color: rgba(200, 220, 255, 0.6); } .ic-rate b { font-size: 13px; }
.ic-go { display: inline-flex; align-items: center; gap: 6px; justify-self: end; font-size: 11px; color: var(--c-cyan); }
.ic-go svg { width: 14px; height: 14px; }
.item-thumb { display: block; margin: 4px auto; }
@keyframes hw-spin { to { transform: rotate(360deg); } }
@keyframes hw-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .hw-ring { animation: none; } }
@media (max-width: 600px) { .stage-hint { display: none; } }
/* ── v14：量子雷神 連線消除掉落 ── */
.cell.is-blast { animation: cell-blast 0.36s ease-in forwards; position: relative; z-index: 2; }
.cell.is-blast::after { content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(252, 238, 10, 0.7) 30%, rgba(0, 240, 255, 0.35) 55%, transparent 70%);
  animation: blast-ring 0.36s ease-out forwards; }
@keyframes cell-blast { 0% { transform: scale(1); filter: brightness(1); } 40% { transform: scale(1.18); filter: brightness(2.2); } 100% { transform: scale(0.2); opacity: 0; filter: brightness(3); } }
@keyframes blast-ring { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.reel.is-drop { box-shadow: inset 0 -12px 18px -10px rgba(0, 240, 255, 0.5); }
.thor-combo { position: absolute; top: 6px; left: 50%; z-index: 6; translate: -50% 0; pointer-events: none;
  display: flex; align-items: baseline; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: rgba(5, 6, 18, 0.82); border: 1px solid rgba(252, 238, 10, 0.6); box-shadow: 0 0 24px rgba(252, 238, 10, 0.35); }
.thor-combo b { font-size: 22px; color: #fcee0a; text-shadow: 0 0 12px rgba(252, 238, 10, 0.8); }
.thor-combo small { font-size: 12px; letter-spacing: 0.1em; color: #bdfcff; }
.thor-combo[data-lv="2"] { border-color: rgba(0, 240, 255, 0.7); }
.thor-combo[data-lv="3"] { border-color: rgba(255, 43, 214, 0.75); box-shadow: 0 0 30px rgba(255, 43, 214, 0.45); }
.thor-combo[data-lv="4"] { border-color: #fff; box-shadow: 0 0 36px rgba(255, 255, 255, 0.55), 0 0 60px rgba(255, 43, 214, 0.4); }
.thor-combo[data-lv="4"] b { color: #fff; }
.thor-combo.is-pop { animation: combo-pop 0.35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes combo-pop { from { scale: 1.6; opacity: 0; } to { scale: 1; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cell.is-blast, .cell.is-blast::after, .thor-combo.is-pop { animation-duration: 0.01s; } }
@media (max-width: 600px) { .thor-combo { padding: 3px 10px; } .thor-combo b { font-size: 16px; } .thor-combo small { font-size: 10px; } }
/* ── 效能除錯面板（?perf=1） ── */
.perf-hud { position: fixed; left: max(6px, env(safe-area-inset-left)); bottom: max(6px, env(safe-area-inset-bottom)); z-index: 9999; margin: 0; padding: 6px 8px;
  max-width: calc(100vw - 12px); overflow-x: auto; font-size: 10px; line-height: 1.45; color: #9dffb8; background: rgba(0, 0, 0, 0.82); border: 1px solid rgba(61, 255, 138, 0.4); border-radius: 6px; pointer-events: none; white-space: pre; }
/* ══ 全區聊天室 ══ */
.hud-chat { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--edge); background: rgba(4, 22, 34, 0.85); color: var(--c-cyan); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; flex: none; }
.hud-chat svg { width: 18px; height: 18px; }
.hud-chat[aria-expanded="true"] { background: var(--c-cyan); color: #04121c; }
.chat-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  font-size: 10px; background: var(--c-magenta); color: #fff; box-shadow: 0 0 10px rgba(255, 43, 214, 0.7); }
.chat { position: fixed; z-index: 60; right: max(12px, env(safe-area-inset-right)); top: 96px; bottom: 16px; width: min(360px, calc(100vw - 24px));
  display: flex; flex-direction: column; border-radius: 12px; overflow: hidden;
  background: #060916; border: 1px solid var(--edge); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.12); }
.chat-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--edge-soft); }
.chat-head b { font-size: 15px; } .chat-head small { font-size: 10px; letter-spacing: 0.14em; color: rgba(159, 252, 255, 0.6); }
.chat-x { margin-left: auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--edge-soft); background: transparent; color: var(--c-cyan); cursor: pointer; }
.chat-x svg { width: 16px; height: 16px; }
.chat-note { margin: 0; padding: 8px 14px; font-size: 12px; color: #ffd6fb; background: rgba(255, 43, 214, 0.1); border-bottom: 1px solid rgba(255, 43, 214, 0.25); }
.chat-list { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 10px 12px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; }
.chat-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; max-width: 92%; }
.chat-list li b { font-size: 13px; color: var(--c-cyan); }
.chat-list li small { font-size: 10px; color: rgba(200, 220, 255, 0.5); }
.chat-list li p { grid-column: 1 / -1; margin: 3px 0 0; padding: 8px 11px; border-radius: 4px 12px 12px 12px; font-size: 14px; line-height: 1.45;
  background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.18); color: #e8f6ff; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-list li.is-self { align-self: flex-end; }
.chat-list li.is-self b { color: var(--c-magenta); }
.chat-list li.is-self p { border-radius: 12px 4px 12px 12px; background: rgba(255, 43, 214, 0.1); border-color: rgba(255, 43, 214, 0.25); }
.chat-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--edge-soft); }
.chat-input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--edge); background: rgba(0, 0, 0, 0.35);
  color: #fff; font: inherit; font-size: 16px; }                 /* 16px：避免 iOS 點擊輸入框時自動放大畫面 */
.chat-input:focus { outline: none; border-color: var(--c-cyan); box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25); }
.chat-send { width: 44px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--c-cyan); color: #04121c; cursor: pointer; }
.chat-send svg { width: 18px; height: 18px; }
@media (max-width: 820px), (pointer: coarse) and (max-height: 520px) {
  .chat { left: 0; right: 0; bottom: 0; top: auto; width: auto; height: min(62dvh, 520px); border-radius: 14px 14px 0 0; }
  .hud-chat .chat-btn-label { display: none; }
  .hud-chat { padding: 0 9px; }
}

/* ══ 手機大廳緊湊版（≤ 820px 直式）：整個大廳固定在一個螢幕內，不需要上下捲動 ══ */
@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  .app { height: 100dvh; overflow: hidden; }
  .main { grid-template-rows: auto minmax(0, 1fr); }
  .hud { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "id" "wallet"; align-items: center; gap: 6px; padding: 6px 8px; }
  .hud-id { grid-area: id; min-width: 0; gap: 6px; }
  .hud-who { min-width: 0; }
  .hud-who b, .hud-who [data-name] { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hud-who small, .hud-who .exp, .exp { display: none; }
  .avatar-ring { width: 34px; height: 34px; font-size: 13px; }
  .hud-wallet { grid-area: wallet; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 4px; min-width: 0; }
  .hud-wallet .stat { flex: 1 1 0; min-width: 0; padding: 2px 6px; height: 32px; gap: 4px; }
  .hud-wallet .stat-meta { min-width: 0; }
  .hud-wallet .stat-delta { display: none; }
  .hud-wallet .stat-add { position: static; flex: none; width: 22px; height: 22px; margin-left: auto; transform: none; }
  .hud-wallet .stat--points { flex-grow: 1.2; }
  .hud-wallet .stat small, .hud-wallet .stat .stat-label { display: none; }
  .hud-wallet .stat-val { font-size: 12px; }
  .hud-audio .audio-btn, .hud-chat { height: 30px; }
  .hud-audio .audio-label { display: none; }
  .banner { height: 64px; }
  .banner-tag, .banner-dots { display: none; }
  .banner-copy { padding: 6px 12px; }
  .banner-copy h3 { font-size: 14px; }
  .banner-glyph { font-size: 34px; top: 8px; }
  .lobby { gap: 6px; }
  .stage-hud--l .readout { padding: 4px 8px; }
  .stage-hud--l .readout small { font-size: 8px; }
  .stage-hud--l .readout b { font-size: 14px; }
  .chip-btn { padding: 5px 10px; font-size: 11px; }
  .act-bar { gap: 2px; }
  .act-btn { padding: 5px 8px; font-size: 11px; }
  .nameplate { padding: 4px 12px; }
  .nameplate b { font-size: 14px; }
}
