/* NeonMind Arena — page shell on top of the arcade's own stylesheet (games/arcade.css) */
:root {
  --nm-ink: #0b1630;
  --nm-muted: #4a5878;
  --nm-dim: #7482a3;
  --nm-line: rgba(37, 82, 190, 0.14);
  --nm-card: #ffffff;
  --nm-soft: #f3f6fb;
  --nm-cyan: #0ea5c6;
  --nm-violet: #6d3cf5;
  --nm-pink: #e83a8f;
  --nm-gold: #d99a06;
  --nm-green: #1f9d6c;
  --nm-red: #e2364d;
  --nm-you: #0ea5c6;
  --nm-ai: #e83a8f;
  --nm-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 16px 36px -22px rgba(15, 23, 42, 0.35);
  --nm-r: 16px;
}

body { min-height: 100dvh; }
#app { min-height: 100dvh; display: flex; flex-direction: column; }
#view { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ------------------------------------------------------------ hub */
.nm-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.nm-top { display: flex; align-items: center; gap: 14px; padding: 18px 0 6px; }
.nm-brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: 0.02em; font-size: 17px; color: var(--nm-ink); }
.nm-logo { width: 34px; height: 34px; border-radius: 10px; background: #0b1224; display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(11, 18, 36, 0.6); }
.nm-logo i { width: 15px; height: 15px; border-radius: 50%; border: 3px solid #67e8f9; position: relative; }
.nm-logo i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #f472b6; }
.nm-top .nm-sp { flex: 1; }
.nm-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--nm-line); background: #fff; color: var(--nm-muted); font-size: 12.5px; white-space: nowrap; }
.nm-pill b { color: var(--nm-ink); font-weight: 700; }
button.nm-pill:hover { border-color: rgba(37, 82, 190, 0.32); color: var(--nm-ink); }

.nm-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; padding: 26px 0 22px; align-items: stretch; }
.nm-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.02; letter-spacing: -0.01em; color: var(--nm-ink); }
.nm-hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--nm-cyan), var(--nm-violet) 55%, var(--nm-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nm-hero p { margin: 14px 0 0; color: var(--nm-muted); font-size: 15px; line-height: 1.65; max-width: 560px; }
.nm-modes-mini { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nm-modes-mini span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--nm-line); font-size: 13px; color: var(--nm-ink); }
.nm-modes-mini span i { width: 8px; height: 8px; border-radius: 50%; }

.nm-device { background: #0b1224; color: #dbe7ff; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -36px rgba(11, 18, 36, 0.8); position: relative; overflow: hidden; }
.nm-device::before { content: ""; position: absolute; width: 320px; height: 320px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(103, 232, 249, 0.22), transparent 65%); pointer-events: none; }
.nm-device h3 { margin: 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #8fb3ff; font-weight: 700; }
.nm-device .nm-dev-line { font-size: 14px; color: #fff; }
.nm-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nm-tier { border-radius: 12px; padding: 10px 11px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.nm-tier b { display: block; font-size: 14px; color: #fff; }
.nm-tier small { display: block; color: #93a7d4; font-size: 11px; margin-top: 2px; }
.nm-tier .nm-ms { font-family: var(--mono); font-size: 15px; color: #67e8f9; margin-top: 6px; }
.nm-tier.slow .nm-ms { color: #fda4af; }
.nm-device .nm-note { font-size: 12px; color: #9fb0d6; line-height: 1.55; }
.nm-device .nm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nm-device button { border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #e6eeff; border-radius: 9px; padding: 7px 11px; font-size: 12px; }
.nm-device button:hover { background: rgba(255, 255, 255, 0.12); }
.nm-device select { background: rgba(255, 255, 255, 0.06); color: #e6eeff; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 9px; padding: 6px 8px; font-size: 12px; }
.nm-device select option { color: #0b1224; }

.nm-tabs { display: flex; gap: 6px; margin: 8px 0 14px; flex-wrap: wrap; align-items: center; }
.nm-tab { border: 1px solid var(--nm-line); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 13px; color: var(--nm-muted); }
.nm-tab.on { background: var(--nm-ink); color: #fff; border-color: var(--nm-ink); }
.nm-tabs .nm-sp { flex: 1; }
.nm-stars { font-size: 13px; color: var(--nm-muted); }
.nm-stars b { color: var(--nm-gold); }

.nm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; padding-bottom: 46px; }
.nm-card { position: relative; text-align: left; border: 1px solid var(--nm-line); background: var(--nm-card); border-radius: var(--nm-r); padding: 15px 15px 13px; box-shadow: var(--nm-shadow); display: flex; flex-direction: column; gap: 8px; transition: transform 0.16s ease, box-shadow 0.16s ease; overflow: hidden; }
.nm-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 26px 46px -26px rgba(15, 23, 42, 0.45); }
.nm-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--acc); }
.nm-card-top { display: flex; align-items: center; gap: 10px; }
.nm-glyph { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: var(--acc); flex: none; font-family: var(--display); }
.nm-card h4 { margin: 0; font-size: 15.5px; color: var(--nm-ink); line-height: 1.2; }
.nm-card h4 small { display: block; font-size: 11.5px; color: var(--nm-dim); font-weight: 500; margin-top: 2px; }
.nm-card p { margin: 0; color: var(--nm-muted); font-size: 12.5px; line-height: 1.5; min-height: 37px; }
.nm-card-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.nm-chip { font-size: 11px; padding: 3px 8px; border-radius: 99px; background: var(--nm-soft); color: var(--nm-muted); border: 1px solid var(--nm-line); white-space: nowrap; }
.nm-chip.ai { color: #9d174d; background: #fdf2f8; border-color: #fbcfe8; }
.nm-rank { display: inline-flex; gap: 2px; }
.nm-rank i { width: 9px; height: 9px; border-radius: 3px; background: #e5e9f2; transform: rotate(45deg); }
.nm-rank i.on { background: var(--nm-gold); }
.nm-rank i.crown { background: var(--nm-pink); }

/* ------------------------------------------------------------ mode sheet */
.nm-sheet-back { position: fixed; inset: 0; background: rgba(11, 18, 36, 0.45); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: center; padding: 16px; animation: nmFade 0.16s ease; }
.nm-sheet { width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 40px 90px -30px rgba(11, 18, 36, 0.6); animation: nmUp 0.2s ease; }
.nm-sheet h2 { margin: 0; font-size: 22px; color: var(--nm-ink); display: flex; align-items: center; gap: 10px; }
.nm-sheet .nm-sub { color: var(--nm-muted); font-size: 13.5px; margin: 6px 0 16px; line-height: 1.55; }
.nm-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.nm-modes.one { grid-template-columns: 1fr; }
.nm-mode { border: 1.5px solid var(--nm-line); border-radius: 16px; padding: 14px; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 128px; }
.nm-mode:hover { border-color: var(--acc, var(--nm-cyan)); box-shadow: 0 14px 30px -22px rgba(15, 23, 42, 0.5); }
.nm-mode b { font-size: 15.5px; color: var(--nm-ink); }
.nm-mode span { font-size: 12.5px; color: var(--nm-muted); line-height: 1.5; }
.nm-mode .nm-mi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.nm-levels { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; }
.nm-lv { border: 1.5px solid var(--nm-line); border-radius: 12px; padding: 7px 10px; background: #fff; font-size: 12.5px; color: var(--nm-muted); display: flex; flex-direction: column; align-items: flex-start; min-width: 92px; }
.nm-lv b { color: var(--nm-ink); font-size: 13.5px; }
.nm-lv.on { border-color: var(--nm-ink); background: var(--nm-ink); color: #cbd5e1; }
.nm-lv.on b { color: #fff; }
.nm-lv:disabled { opacity: 0.45; cursor: not-allowed; }
.nm-pick { margin-top: 14px; padding: 12px 13px; border-radius: 14px; background: var(--nm-soft); border: 1px solid var(--nm-line); font-size: 12.5px; color: var(--nm-muted); line-height: 1.55; }
.nm-pick b { color: var(--nm-ink); }
.nm-sheet-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.nm-btn { border: 1px solid var(--nm-line); background: #fff; color: var(--nm-ink); border-radius: 11px; padding: 9px 15px; font-size: 13.5px; font-weight: 600; }
.nm-btn.primary { background: var(--nm-ink); color: #fff; border-color: var(--nm-ink); }
.nm-btn:hover { filter: brightness(1.05); }

/* ------------------------------------------------------------ play view */
.nm-play { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.nm-bar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: rgba(255, 255, 255, 0.88); border-bottom: 1px solid var(--nm-line); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.nm-bar .nm-title { display: flex; flex-direction: column; min-width: 0; }
.nm-bar .nm-title b { font-size: 15.5px; color: var(--nm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-bar .nm-title small { font-size: 11.5px; color: var(--nm-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-bar .nm-sp { flex: 1; }
.nm-ibtn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--nm-line); background: #fff; display: grid; place-items: center; color: var(--nm-ink); flex: none; }
.nm-ibtn svg { width: 18px; height: 18px; }
.nm-ibtn:hover { border-color: rgba(37, 82, 190, 0.35); }
.nm-score { display: flex; align-items: center; gap: 8px; }
.nm-sc { display: flex; flex-direction: column; align-items: flex-end; padding: 3px 10px; border-radius: 10px; border: 1px solid var(--nm-line); background: #fff; min-width: 74px; }
.nm-sc span { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--nm-dim); }
.nm-sc strong { font-family: var(--display); font-size: 17px; color: var(--nm-ink); }
.nm-sc.you strong { color: var(--nm-you); }
.nm-sc.ai strong { color: var(--nm-ai); }

.nm-body { flex: 1; display: flex; gap: 16px; padding: 16px 18px 18px; min-height: 0; align-items: flex-start; justify-content: center; }
.nm-main { flex: 1 1 auto; min-width: 0; max-width: 980px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.nm-main .stage { width: min(100%, 960px, calc((100dvh - 150px) * 1.6)); }
.nm-side { flex: 0 0 280px; width: 280px; display: flex; flex-direction: column; gap: 10px; }
.nm-panel { background: #fff; border: 1px solid var(--nm-line); border-radius: 14px; padding: 13px 14px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.nm-panel h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--nm-dim); }
.nm-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; font-size: 12.5px; color: var(--nm-muted); }
.nm-kv b { color: var(--nm-ink); text-align: right; font-weight: 600; font-family: var(--mono); font-size: 12px; }
.nm-why { font-size: 12px; color: var(--nm-muted); line-height: 1.55; margin-top: 8px; }
.nm-keys { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.nm-keys span { min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--nm-line); display: grid; place-items: center; font-size: 11px; color: var(--nm-dim); background: var(--nm-soft); font-family: var(--mono); }
.nm-keys span.on { background: var(--nm-ai); color: #fff; border-color: var(--nm-ai); }
.nm-spark { width: 100%; height: 46px; display: block; margin-top: 6px; }
.nm-row { display: flex; gap: 6px; flex-wrap: wrap; }
.nm-seg { display: inline-flex; border: 1px solid var(--nm-line); border-radius: 10px; overflow: hidden; }
.nm-seg button { border: 0; background: #fff; padding: 6px 10px; font-size: 12px; color: var(--nm-muted); }
.nm-seg button.on { background: var(--nm-ink); color: #fff; }

/* race: two stages */
.nm-race { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1500px; }
.nm-lane { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nm-lane-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--nm-muted); }
.nm-lane-head b { font-size: 14px; }
.nm-lane-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.nm-lane-head .nm-sp { flex: 1; }
.nm-lane-head strong { font-family: var(--display); font-size: 20px; }
.nm-lane .stage { width: 100%; }
.nm-lane.done .stage { filter: grayscale(0.7) brightness(1.02); }
.nm-lead { height: 8px; border-radius: 99px; background: #f1f4f9; overflow: hidden; display: flex; width: 100%; max-width: 1500px; }
.nm-lead i { display: block; height: 100%; transition: width 0.3s ease; }
.nm-play.race .nm-body { flex-direction: column; align-items: center; }
.nm-play.race .nm-side { display: none; }
.stage-ai { pointer-events: none; }

/* overlays */
.nm-over { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(11, 18, 36, 0.5); backdrop-filter: blur(4px); padding: 16px; animation: nmFade 0.2s ease; }
.nm-over-card { width: min(460px, 100%); background: #fff; border-radius: 22px; padding: 24px; text-align: center; box-shadow: 0 40px 90px -30px rgba(11, 18, 36, 0.6); animation: nmUp 0.22s ease; }
.nm-over-card h2 { margin: 6px 0 4px; font-size: 26px; color: var(--nm-ink); }
.nm-over-card p { color: var(--nm-muted); font-size: 14px; line-height: 1.6; margin: 6px 0 0; }
.nm-badge { display: inline-flex; padding: 5px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.nm-badge.win { background: #ecfdf5; color: var(--nm-green); }
.nm-badge.lose { background: #fff1f2; color: var(--nm-red); }
.nm-badge.up { background: #fffbeb; color: var(--nm-gold); }
.nm-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 16px 0 4px; }
.nm-vs div { display: flex; flex-direction: column; }
.nm-vs span { font-size: 11px; color: var(--nm-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.nm-vs strong { font-family: var(--display); font-size: 28px; }
.nm-vs em { font-style: normal; color: var(--nm-dim); }
.nm-over-actions { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.nm-count { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; pointer-events: none; }
.nm-count b { font-family: var(--display); font-size: 120px; color: #fff; text-shadow: 0 10px 40px rgba(11, 18, 36, 0.6); animation: nmPop 0.9s ease; }
.nm-loading { display: grid; place-items: center; padding: 60px 0; color: var(--nm-muted); font-size: 14px; gap: 12px; }
.nm-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #e2e8f0; border-top-color: var(--nm-cyan); animation: nmSpin 0.8s linear infinite; }

/* chat */
.nm-chat { display: flex; flex-direction: column; gap: 8px; }
.nm-log { height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.nm-msg { max-width: 88%; padding: 7px 10px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.nm-msg.ai { background: #fdf2f8; color: #831843; border-top-left-radius: 4px; align-self: flex-start; }
.nm-msg.me { background: #ecfeff; color: #164e63; border-top-right-radius: 4px; align-self: flex-end; }
.nm-msg small { display: block; font-size: 10.5px; opacity: 0.7; margin-bottom: 1px; }
.nm-chat form { display: flex; gap: 6px; }
.nm-chat input { flex: 1; min-width: 0; border: 1px solid var(--nm-line); border-radius: 10px; padding: 8px 10px; font-size: 13px; background: var(--nm-soft); }
.nm-quick { display: flex; gap: 5px; flex-wrap: wrap; }
.nm-quick button { border: 1px solid var(--nm-line); background: #fff; border-radius: 99px; padding: 4px 9px; font-size: 11.5px; color: var(--nm-muted); }

#toast-root { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 95; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }

@keyframes nmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nmUp { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes nmPop { 0% { opacity: 0; transform: scale(0.5); } 30% { opacity: 1; transform: scale(1.06); } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes nmSpin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nm-side { flex-basis: 250px; width: 250px; }
}
@media (max-width: 900px) {
  .nm-hero { grid-template-columns: 1fr; }
  .nm-body { flex-direction: column; align-items: stretch; padding: 10px 10px 14px; }
  .nm-side { width: 100%; flex: none; }
  .nm-main { max-width: none; }
  .nm-main .stage { width: 100%; }
  .nm-log { height: 160px; }
}
@media (max-width: 720px) {
  .nm-wrap { padding: 0 16px; }
  .nm-modes { grid-template-columns: 1fr; }
  .nm-mode { min-height: 0; }
  .nm-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nm-card { padding: 12px; }
  .nm-card p { display: none; }
  .nm-glyph { width: 32px; height: 32px; font-size: 13px; }
  .nm-card h4 { font-size: 14px; }
  .nm-tiers { grid-template-columns: repeat(3, 1fr); }
  .nm-bar { padding: 8px 10px; gap: 7px; }
  .nm-sc { min-width: 58px; padding: 2px 7px; }
  .nm-sc strong { font-size: 15px; }
  .nm-bar .nm-title small { display: none; }
  .nm-race { grid-template-columns: 1fr; gap: 8px; }
  .nm-top .nm-pill.lang-hide { display: none; }
}
@media (max-width: 420px) {
  .nm-grid { grid-template-columns: 1fr 1fr; }
  .nm-ibtn { width: 34px; height: 34px; }
}
.nm-play.race .nm-main { max-width: 1560px; }
.nm-play.race .nm-main { width: 100%; }
.nm-bar .nm-title { flex: 1 1 auto; min-width: 0; }
.nm-bar .nm-sp { display: none; }
.nm-score { flex: none; }
@media (max-width: 480px) {
  .nm-score { gap: 4px; }
  .nm-sc { min-width: 48px; padding: 2px 6px; }
  .nm-sc span { font-size: 9px; letter-spacing: 0.04em; }
  .nm-sc strong { font-size: 14px; }
  #b-sound { display: none; }
  .nm-ibtn { width: 32px; height: 32px; border-radius: 9px; }
  .nm-bar { gap: 6px; }
}

/* ---- offline bar */
.nm-offline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 11px 14px; margin: 0 0 6px; border-radius: 14px; background: #fff; border: 1px solid var(--nm-line); font-size: 13px; color: var(--nm-muted); }
.nm-offline:empty { display: none; }
.nm-offline b { color: var(--nm-ink); }
.nm-offline .nm-sp { flex: 1; }
.nm-offline .nm-btn { padding: 7px 12px; font-size: 12.5px; text-decoration: none; display: inline-flex; align-items: center; }
.nm-offline .nm-btn:disabled { opacity: 0.55; cursor: default; }
.nm-off-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; flex: none; }
.nm-off-dot.ok { background: var(--nm-green); box-shadow: 0 0 0 4px rgba(31, 157, 108, 0.15); }
.nm-off-pro { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; cursor: pointer; }
@media (max-width: 720px) { .nm-offline .nm-sp { flex-basis: 100%; height: 0; } }

/* ---- additions: rank name, mode chips, tier table, language button, confetti, GO */
.nm-card-foot .nm-sp { flex: 1; display: block; }
.nm-rank-name { font-size: 11.5px; font-weight: 700; color: var(--nm-gold); }
.nm-card-modes { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: var(--nm-dim); }
.nm-card-modes span { display: inline-flex; align-items: center; gap: 5px; }
.nm-card-modes i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.nm-card-modes .m-solo { background: var(--nm-you); }
.nm-card-modes .m-ai { background: var(--nm-ai); }
.nm-card-modes .m-race { background: var(--nm-violet); }
.nm-card-modes .m-versus { background: var(--nm-gold); }
.nm-tt { margin: 8px 0 2px; display: flex; flex-direction: column; gap: 5px; }
.nm-tt-row { display: grid; grid-template-columns: 58px 1fr 62px; align-items: center; gap: 8px; font-size: 12px; }
.nm-tt-row b { color: var(--nm-ink); font-weight: 600; }
.nm-tt-row em { font-style: normal; font-family: var(--mono); font-size: 11.5px; text-align: right; color: var(--nm-muted); }
.nm-tt-bar { height: 7px; border-radius: 99px; background: #e6ebf4; overflow: hidden; }
.nm-tt-bar i { display: block; height: 100%; background: #9fb0d4; border-radius: inherit; }
.nm-tt-row.on b { color: var(--nm-ai); }
.nm-tt-row.on .nm-tt-bar i { background: linear-gradient(90deg, var(--nm-cyan), var(--nm-ai)); }
.nm-tt-row.slow { opacity: 0.5; }
.nm-tt small { font-size: 11px; color: var(--nm-dim); }
.nm-lang { font-size: 12px; font-weight: 700; }
.nm-count b.go { font-size: 96px; color: #fff; }
.nm-over-card { position: relative; overflow: hidden; }
.nm-confetti { position: absolute; top: -12px; width: 7px; height: 11px; border-radius: 2px; pointer-events: none; animation: nmFall 1.6s ease-in forwards; z-index: 2; }
@keyframes nmFall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); opacity: 0.2; } }
.nm-ibtn:focus-visible, .nm-btn:focus-visible, .nm-card:focus-visible, .nm-mode:focus-visible, .nm-tab:focus-visible, .nm-lv:focus-visible { outline: 2px solid var(--nm-cyan); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .nm-confetti, .nm-count b { animation: none; } .nm-card { transition: none; } }
