:root {
  color-scheme: dark;
  --bg: #09090d;
  --bg-2: #0d0d13;
  --panel: #121219;
  --panel-2: #171720;
  --panel-3: #1d1d28;
  --text: #f5f4f8;
  --muted: #9d9aaa;
  --muted-2: #716f7b;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(255,255,255,.12);
  --purple: #8869ff;
  --purple-2: #a78cff;
  --purple-soft: rgba(136,105,255,.13);
  --good: #5bd6a2;
  --warn: #f2bc66;
  --bad: #f07682;
  --blue: #63a8ff;
  --radius: 15px;
  --radius-sm: 11px;
  --shadow: 0 20px 60px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; background: var(--bg); }
body {
  font-family: "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.hidden { display: none !important; }

.app-shell { display: grid; grid-template-columns: 188px 1fr; height: 100vh; min-height: 680px; }
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--border);
  background: #0b0b10;
  padding: 18px 12px 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 4px 6px 12px;
  cursor: pointer;
  text-align: left;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(167,140,255,.34);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(136,105,255,.22), rgba(136,105,255,.06));
  font-weight: 850;
  letter-spacing: -.06em;
  font-size: 19px;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 14px; letter-spacing: .09em; }
.brand-copy small { margin-top: 5px; font-size: 9px; color: var(--muted); letter-spacing: .28em; }
.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.nav-button:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-button.active { color: var(--text); background: rgba(136,105,255,.09); border-color: rgba(136,105,255,.16); }
.nav-button svg { width: 17px; height: 17px; stroke-width: 1.75; }
.nav-button span { font-size: 13px; font-weight: 600; }
.sidebar-foot { margin-top: auto; display: grid; gap: 7px; }
.icon-button, .command-hint {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  border-radius: 10px;
  min-height: 36px;
  cursor: pointer;
}
.icon-button { width: 36px; display: grid; place-items: center; }
.icon-button svg { width: 17px; height: 17px; }
.command-hint { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 10px; color: var(--muted); font-size: 11px; }
kbd { border: 1px solid var(--border-strong); border-bottom-color: rgba(255,255,255,.18); background: rgba(255,255,255,.045); color: #cbc8d3; border-radius: 5px; font-size: 10px; padding: 3px 5px; font-family: inherit; }

.main-shell { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(circle at 75% 0%, rgba(136,105,255,.055), transparent 31%), var(--bg); }
.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 28px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,13,.86);
}
.eyebrow { margin: 0 0 4px; color: var(--muted-2); font-size: 9px; font-weight: 750; letter-spacing: .22em; }
.topbar h1 { margin: 0; font-size: 23px; letter-spacing: -.035em; }
.player-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 122px;
  padding: 7px 10px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  text-align: left;
}
.avatar-dot { width: 28px; height: 28px; border-radius: 8px; background: var(--purple); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.player-chip span:last-child { display: flex; flex-direction: column; min-width: 0; }
.player-chip small { font-size: 8px; letter-spacing: .15em; color: var(--muted-2); }
.player-chip strong { margin-top: 2px; font-size: 11px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { flex: 1; overflow: auto; padding: 24px 28px 34px; scroll-behavior: smooth; }

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(130deg, rgba(136,105,255,.11), rgba(255,255,255,.018) 45%), #111117;
  box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; width: 250px; height: 250px; right: -90px; top: -100px; border: 1px solid rgba(167,140,255,.11); border-radius: 50%; box-shadow: 0 0 0 44px rgba(167,140,255,.025), 0 0 0 90px rgba(167,140,255,.012); pointer-events: none; }
.hero h2 { margin: 5px 0 7px; font-size: clamp(34px, 4vw, 58px); line-height: .94; letter-spacing: -.065em; max-width: 620px; }
.hero h2 span { color: var(--purple-2); }
.hero p { margin: 0; max-width: 570px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.hero-actions { display: flex; gap: 8px; margin-top: 20px; }
.button {
  min-height: 39px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.045);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.button:hover { transform: translateY(-1px); background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.17); }
.button.primary { background: var(--purple); border-color: var(--purple); color: white; }
.button.primary:hover { background: #957bff; }
.button.danger { color: #ffadb5; border-color: rgba(240,118,130,.25); background: rgba(240,118,130,.06); }
.button.ghost { background: transparent; }
.button.small { min-height: 32px; padding: 0 10px; font-size: 11px; }
.hero-side { position: relative; z-index: 1; align-self: stretch; display: flex; align-items: stretch; }
.daily-card { width: 100%; border: 1px solid rgba(136,105,255,.2); border-radius: 14px; padding: 17px; background: rgba(8,8,12,.48); display: flex; flex-direction: column; justify-content: space-between; }
.daily-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.daily-head span:first-child { font-size: 10px; color: var(--purple-2); font-weight: 800; letter-spacing: .14em; }
.status-pill { font-size: 9px; font-weight: 800; padding: 4px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.status-pill.complete { color: var(--good); border-color: rgba(91,214,162,.22); background: rgba(91,214,162,.07); }
.daily-card h3 { margin: 16px 0 4px; font-size: 17px; letter-spacing: -.025em; }
.daily-card p { font-size: 11px; line-height: 1.45; }
.daily-progress { margin-top: 14px; height: 4px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.daily-progress span { display: block; height: 100%; background: var(--purple); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 26px 0 12px; gap: 16px; }
.section-head h2 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.section-head p { margin: 4px 0 0; font-size: 11px; color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--purple-2); font-size: 11px; font-weight: 700; cursor: pointer; padding: 5px; }

.game-mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 116px; gap: 10px; }
.game-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #121218;
  padding: 15px;
  cursor: pointer;
  text-align: left;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.game-tile:hover { transform: translateY(-2px); border-color: rgba(167,140,255,.22); background: #15151d; }
.game-tile.feature { padding: 18px; }
.game-tile::after { content: ""; position: absolute; width: 115px; height: 115px; right: -46px; bottom: -55px; border-radius: 50%; border: 1px solid rgba(136,105,255,.1); box-shadow: 0 0 0 28px rgba(136,105,255,.018); }
.tile-icon { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(136,105,255,.18); background: rgba(136,105,255,.07); border-radius: 9px; color: var(--purple-2); }
.tile-icon svg { width: 16px; height: 16px; }
.tile-copy { position: relative; z-index: 1; }
.tile-copy h3 { margin: 0; font-size: 14px; letter-spacing: -.02em; }
.feature .tile-copy h3 { font-size: 18px; }
.tile-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.35; max-width: 240px; }
.tile-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tile-best small { display: block; color: var(--muted-2); font-size: 8px; letter-spacing: .1em; }
.tile-best strong { display: block; margin-top: 2px; font-size: 13px; }
.tile-arrow { color: var(--muted-2); font-size: 16px; }
.span-6 { grid-column: span 6; grid-row: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }

.arcade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.arcade-card { min-height: 178px; }

.panel { border: 1px solid var(--border); background: var(--panel); border-radius: var(--radius); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.stat-card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.stat-card small { display: block; color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; }
.stat-card strong { display: block; margin-top: 5px; font-size: 20px; letter-spacing: -.04em; }

.game-view { max-width: 1120px; margin: 0 auto; }
.game-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.game-toolbar-left { display: flex; align-items: center; gap: 10px; }
.game-back { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; cursor: pointer; }
.game-back svg { width: 16px; height: 16px; }
.game-toolbar h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.game-toolbar p { margin: 2px 0 0; font-size: 10px; color: var(--muted); }
.game-arena {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #101016;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.game-arena.center { display: grid; place-items: center; }
.game-center { width: min(620px, 90%); text-align: center; }
.game-center .micro { color: var(--muted-2); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.game-center h3 { margin: 8px 0 5px; font-size: 46px; letter-spacing: -.06em; }
.game-center p { margin: 0 auto 18px; max-width: 500px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.big-score { font-size: clamp(64px, 10vw, 110px); line-height: .9; font-weight: 820; letter-spacing: -.075em; font-variant-numeric: tabular-nums; }
.big-score small { font-size: .24em; color: var(--muted); letter-spacing: -.02em; font-weight: 700; }
.mode-tabs { display: inline-flex; gap: 4px; border: 1px solid var(--border); background: rgba(255,255,255,.02); border-radius: 10px; padding: 4px; }
.mode-tabs button { min-width: 54px; min-height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; cursor: pointer; }
.mode-tabs button.active { color: var(--text); background: rgba(136,105,255,.13); }

.reaction-zone { width: 100%; min-height: 480px; display: grid; place-items: center; cursor: pointer; transition: background .1s ease; }
.reaction-zone.waiting { background: rgba(240,118,130,.035); }
.reaction-zone.ready { background: rgba(91,214,162,.095); }
.reaction-zone.ready .big-score { color: #83e7be; }
.attempt-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.attempt-dot { width: 26px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); }
.attempt-dot.done { background: var(--purple); }

.aim-arena { min-height: 510px; cursor: crosshair; }
.aim-hud { position: absolute; z-index: 4; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.hud-cluster { display: flex; gap: 6px; }
.hud-chip { min-width: 74px; padding: 8px 9px; border-radius: 9px; border: 1px solid var(--border); background: rgba(8,8,12,.76); backdrop-filter: blur(8px); }
.hud-chip small { display: block; color: var(--muted-2); font-size: 7px; letter-spacing: .1em; }
.hud-chip strong { display: block; margin-top: 2px; font-size: 13px; font-variant-numeric: tabular-nums; }
.aim-target { position: absolute; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--purple-2); background: rgba(136,105,255,.1); box-shadow: inset 0 0 0 9px #111117, inset 0 0 0 12px var(--purple); cursor: crosshair; transform: translate(-50%,-50%); }
.aim-target::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 4px; height: 4px; transform: translate(-50%,-50%); border-radius: 50%; background: white; }
.aim-target.hit { animation: targetPop .12s ease forwards; }
@keyframes targetPop { to { transform: translate(-50%,-50%) scale(.72); opacity: 0; } }

.click-zone { width: 100%; min-height: 380px; display: grid; place-items: center; cursor: pointer; border-top: 1px solid var(--border); margin-top: 20px; background: radial-gradient(circle at center, rgba(136,105,255,.05), transparent 52%); }
.click-zone.active { background: radial-gradient(circle at center, rgba(136,105,255,.09), transparent 55%); }
.click-zone:active { background-color: rgba(136,105,255,.035); }

.memory-wrap { min-height: 500px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; }
.memory-info { padding: 28px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.memory-info h3 { margin: 7px 0 5px; font-size: 33px; letter-spacing: -.05em; }
.memory-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 28px; align-content: center; }
.memory-pad { aspect-ratio: 1.35; border: 1px solid var(--border); border-radius: 15px; background: #181820; cursor: pointer; position: relative; overflow: hidden; transition: transform .1s ease, background .1s ease, border-color .1s ease; }
.memory-pad:hover { border-color: var(--border-strong); }
.memory-pad::after { content: ""; position: absolute; inset: 17%; border-radius: 50%; background: var(--pad); opacity: .08; filter: blur(12px); }
.memory-pad.active { background: color-mix(in srgb, var(--pad) 24%, #181820); border-color: color-mix(in srgb, var(--pad) 55%, transparent); transform: scale(.985); }

.canvas-wrap { position: relative; min-height: 520px; display: grid; place-items: center; padding: 22px; }
.game-canvas { width: 100%; max-width: 920px; aspect-ratio: 16/9; border: 1px solid var(--border); border-radius: 12px; background: #0c0c11; display: block; }
.canvas-overlay { position: absolute; inset: 22px; display: grid; place-items: center; pointer-events: none; }
.canvas-overlay > div { pointer-events: auto; text-align: center; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: rgba(9,9,13,.82); backdrop-filter: blur(12px); min-width: 280px; }
.canvas-overlay h3 { margin: 4px 0 5px; font-size: 28px; }
.canvas-overlay p { margin: 0 0 14px; color: var(--muted); font-size: 11px; }

.data-layout { display: grid; grid-template-columns: 240px 1fr; gap: 12px; }
.filter-panel { padding: 10px; height: fit-content; }
.filter-button { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: transparent; border-radius: 9px; color: var(--muted); padding: 0 10px; cursor: pointer; text-align: left; }
.filter-button:hover { color: var(--text); background: rgba(255,255,255,.03); }
.filter-button.active { color: var(--text); background: rgba(136,105,255,.09); }
.filter-button small { color: var(--muted-2); }
.table-panel { overflow: hidden; }
.table-head, .table-row { display: grid; grid-template-columns: 48px 1.2fr 1fr 1fr; gap: 12px; align-items: center; min-height: 42px; padding: 0 15px; }
.table-head { min-height: 35px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--border); }
.table-row { font-size: 11px; border-bottom: 1px solid rgba(255,255,255,.045); }
.table-row:last-child { border-bottom: 0; }
.rank { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.score-value { font-weight: 750; }
.empty-state { min-height: 240px; display: grid; place-items: center; padding: 28px; color: var(--muted); text-align: center; font-size: 12px; }

.achievement-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.achievement-card { min-height: 132px; padding: 15px; position: relative; overflow: hidden; }
.achievement-card.locked { opacity: .54; }
.achievement-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); background: rgba(255,255,255,.025); border-radius: 9px; color: var(--muted); }
.achievement-card.unlocked .achievement-icon { color: var(--purple-2); border-color: rgba(136,105,255,.2); background: rgba(136,105,255,.07); }
.achievement-card h3 { margin: 14px 0 3px; font-size: 13px; }
.achievement-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.achievement-card .unlock-date { position: absolute; right: 12px; top: 12px; font-size: 8px; color: var(--muted-2); }

.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 12px; }
.profile-card { padding: 22px; }
.profile-avatar { width: 74px; height: 74px; border-radius: 18px; background: var(--purple); display: grid; place-items: center; font-size: 27px; font-weight: 850; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.profile-card h2 { margin: 16px 0 3px; font-size: 24px; letter-spacing: -.04em; }
.profile-card p { margin: 0; color: var(--muted); font-size: 10px; }
.profile-detail { margin-top: 18px; display: grid; gap: 9px; }
.detail-row { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; padding-top: 9px; border-top: 1px solid var(--border); }
.detail-row span { color: var(--muted); }
.profile-main { display: grid; gap: 12px; }
.best-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.best-card { padding: 14px; }
.best-card small { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.best-card strong { display: block; margin-top: 7px; font-size: 19px; }

.settings-list { max-width: 760px; display: grid; gap: 9px; }
.setting-row { min-height: 68px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.setting-copy h3 { margin: 0 0 3px; font-size: 12px; }
.setting-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.setting-control { flex-shrink: 0; }
.toggle { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.06); cursor: pointer; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #aaa7b1; transition: transform .14s ease, background .14s ease; }
.toggle.on { background: rgba(136,105,255,.18); border-color: rgba(136,105,255,.3); }
.toggle.on::after { transform: translateX(18px); background: var(--purple-2); }
.text-input { min-height: 36px; width: 220px; padding: 0 10px; background: #0d0d12; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); user-select: text; }
.range { width: 180px; accent-color: var(--purple); }
.accent-options { display: flex; gap: 6px; }
.accent-swatch { width: 26px; height: 26px; border: 2px solid transparent; border-radius: 8px; background: var(--swatch); cursor: pointer; }
.accent-swatch.active { border-color: white; box-shadow: 0 0 0 2px #0d0d12; }

.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(4,4,7,.67); backdrop-filter: blur(10px); }
.command-panel { width: min(600px, 92vw); max-height: min(520px, 80vh); border: 1px solid var(--border-strong); border-radius: 14px; background: #111117; box-shadow: 0 25px 80px rgba(0,0,0,.5); overflow: hidden; }
.command-input-wrap { height: 56px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px; padding: 0 13px; border-bottom: 1px solid var(--border); }
.command-input-wrap svg { width: 17px; height: 17px; color: var(--muted); }
.command-input-wrap input { height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; user-select: text; }
.command-results { max-height: 410px; overflow: auto; padding: 7px; }
.command-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; }
.command-item:hover, .command-item.selected { background: rgba(136,105,255,.09); }
.command-item .tile-icon { width: 29px; height: 29px; }
.command-item-copy { display: flex; flex-direction: column; }
.command-item-copy strong { font-size: 11px; }
.command-item-copy small { margin-top: 2px; font-size: 9px; color: var(--muted); }

.result-card { width: min(700px, 94vw); border: 1px solid var(--border-strong); border-radius: 17px; background: #111117; box-shadow: 0 25px 80px rgba(0,0,0,.5); overflow: hidden; }
.result-top { padding: 22px 24px 18px; background: linear-gradient(130deg, rgba(136,105,255,.09), transparent 45%); border-bottom: 1px solid var(--border); }
.result-top .eyebrow { color: var(--purple-2); }
.result-top h2 { margin: 5px 0 0; font-size: 23px; }
.result-hero { padding: 26px 24px 22px; text-align: center; }
.result-hero .result-primary { font-size: 66px; line-height: .95; font-weight: 850; letter-spacing: -.07em; }
.result-hero .result-rating { margin-top: 7px; color: var(--purple-2); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.result-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 1px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--border); }
.result-metric { background: #111117; padding: 13px 12px; text-align: center; }
.result-metric small { display: block; font-size: 7px; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; }
.result-metric strong { display: block; margin-top: 4px; font-size: 14px; }
.result-actions { display: flex; justify-content: space-between; gap: 8px; padding: 14px; }
.result-actions-group { display: flex; gap: 7px; }

.confirm-card { width: min(430px, 92vw); border: 1px solid var(--border-strong); background: #111117; border-radius: 15px; padding: 20px; box-shadow: var(--shadow); }
.confirm-card h2 { margin: 0 0 7px; font-size: 18px; }
.confirm-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 18px; }

.toast-layer { position: fixed; right: 18px; bottom: 18px; z-index: 150; display: grid; gap: 8px; pointer-events: none; }
.toast { width: 290px; border: 1px solid var(--border-strong); border-radius: 11px; background: #15151c; padding: 11px 12px; box-shadow: var(--shadow); animation: toastIn .18s ease; }
.toast strong { display: block; font-size: 11px; }
.toast span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
@keyframes toastIn { from { opacity: 0; transform: translateY(7px); } }

.neegy-secret { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: #050507; }
.neegy-secret::before { content: ""; position: absolute; inset: -20%; background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(136,105,255,.028) 6px); transform: rotate(-7deg); }
.neegy-card { position: relative; z-index: 1; width: min(760px, 90vw); padding: 44px; border: 1px solid rgba(167,140,255,.25); border-radius: 18px; background: rgba(17,17,23,.93); text-align: center; box-shadow: 0 0 100px rgba(136,105,255,.12); }
.neegy-card .classified { font-size: 9px; color: var(--purple-2); letter-spacing: .24em; }
.neegy-face { width: 118px; height: 118px; display: grid; place-items: center; margin: 22px auto 16px; border-radius: 28px; border: 1px solid rgba(136,105,255,.3); background: rgba(136,105,255,.09); font-size: 50px; font-weight: 900; letter-spacing: -.08em; }
.neegy-card h2 { margin: 0; font-size: 42px; letter-spacing: -.06em; }
.neegy-card p { margin: 8px auto 20px; max-width: 520px; color: var(--muted); font-size: 12px; line-height: 1.55; }

body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }

@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 72px 1fr; }
  .brand-copy, .nav-button span, .command-hint span { display: none; }
  .brand { justify-content: center; }
  .nav-button { justify-content: center; padding: 0; }
  .command-hint { justify-content: center; padding: 0; }
  .command-hint kbd { font-size: 8px; }
  .arcade-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 980px) {
  .content { padding: 18px; }
  .topbar { padding-left: 18px; padding-right: 18px; }
  .hero { grid-template-columns: 1fr; }
  .game-mosaic { grid-auto-rows: 106px; }
  .span-6 { grid-column: span 12; }
  .span-3, .span-4, .span-5, .span-7 { grid-column: span 6; }
  .achievement-grid { grid-template-columns: repeat(2,1fr); }
  .profile-layout, .data-layout { grid-template-columns: 1fr; }
  .filter-panel { display: grid; grid-template-columns: repeat(4,1fr); }
  .filter-button { justify-content: center; }
}

/* 6.2 UI polish: less generic dashboard, more deliberate arcade identity */
html, body {
  background:
    radial-gradient(circle at 12% 0%, rgba(136,105,255,.10), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(99,168,255,.06), transparent 22%),
    linear-gradient(180deg, #0a0a0f 0%, #08090d 100%);
}

.app-shell {
  grid-template-columns: 210px 1fr;
  background: transparent;
}

.sidebar {
  gap: 22px;
  padding: 20px 14px 16px;
  background: linear-gradient(180deg, rgba(12,12,18,.96), rgba(9,9,13,.94));
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: inset -1px 0 0 rgba(255,255,255,.02);
}

.brand {
  padding: 6px 8px 14px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(136,105,255,.26), rgba(136,105,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.brand-copy strong {
  font-size: 15px;
}

.nav-list {
  gap: 6px;
}

.nav-button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
}

.nav-button.active {
  background: linear-gradient(180deg, rgba(136,105,255,.14), rgba(136,105,255,.08));
  border-color: rgba(136,105,255,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.icon-button, .command-hint, .player-chip, .panel, .stat-card, .game-back, .button, .result-card, .command-panel, .confirm-card, .toast {
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.command-hint {
  min-height: 38px;
  border-radius: 12px;
}

.main-shell {
  background:
    radial-gradient(circle at 76% 0%, rgba(136,105,255,.06), transparent 28%),
    linear-gradient(180deg, rgba(11,11,16,.96), rgba(8,9,13,.98));
}

.topbar {
  min-height: 96px;
  padding: 18px 30px 16px;
  background: linear-gradient(180deg, rgba(10,10,15,.88), rgba(10,10,15,.72));
  backdrop-filter: blur(14px);
}

.topbar h1 {
  font-size: 28px;
  letter-spacing: -.045em;
}

.player-chip {
  min-width: 150px;
  padding: 8px 12px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.avatar-dot {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.content {
  padding: 28px 30px 36px;
}

.hero {
  gap: 20px;
  padding: 34px;
  border-radius: 24px;
  border-color: rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 0% 0%, rgba(136,105,255,.10), transparent 32%),
    linear-gradient(135deg, rgba(17,17,24,.98), rgba(14,14,20,.96));
}

.hero::after {
  width: 340px;
  height: 340px;
  right: -110px;
  top: -130px;
  border-color: rgba(167,140,255,.08);
  box-shadow: 0 0 0 56px rgba(167,140,255,.02), 0 0 0 112px rgba(167,140,255,.01);
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero h2 {
  margin: 6px 0 10px;
  max-width: 720px;
  font-size: clamp(38px, 5vw, 64px);
}

.hero p {
  max-width: 620px;
  font-size: 15px;
  color: #b3b0bc;
}

.hero-actions {
  margin-top: 22px;
  gap: 10px;
}

.hero-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 24px;
}

.hero-mini > div {
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  background: rgba(255,255,255,.028);
}

.hero-mini small,
.home-stat small,
.tile-best small,
.stat-card small,
.best-card small,
.result-metric small,
.table-head,
.setting-copy p,
.profile-card p {
  letter-spacing: .12em;
}

.hero-mini small {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-mini strong {
  font-size: 14px;
  letter-spacing: -.02em;
}

.daily-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9,10,14,.78), rgba(16,16,24,.86));
}

.daily-card h3 {
  margin-top: 18px;
  font-size: 18px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin-top: 12px;
}

.home-stat {
  min-height: 126px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17,18,24,.96), rgba(14,15,20,.94));
}

.home-stat small {
  display: block;
  font-size: 8px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.home-stat strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  letter-spacing: -.05em;
}

.home-stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.section-head {
  margin: 30px 0 14px;
}

.section-head h2 {
  font-size: 18px;
}

.section-head p {
  margin-top: 5px;
  font-size: 12px;
}

.game-mosaic {
  grid-auto-rows: 128px;
  gap: 12px;
}

.game-tile {
  align-items: flex-start;
  padding: 16px 16px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20,20,28,.98), rgba(15,15,21,.96));
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.game-tile::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tile-accent, rgba(167,140,255,.95)), transparent 72%);
  opacity: .9;
}

.game-tile::after {
  width: 180px;
  height: 180px;
  right: -72px;
  bottom: -95px;
  border-color: color-mix(in srgb, var(--tile-accent, var(--purple)) 28%, transparent);
  box-shadow: 0 0 0 36px color-mix(in srgb, var(--tile-accent, var(--purple)) 7%, transparent);
}

.game-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.10);
}

.game-tile[data-tone="reaction"] { --tile-accent: #8b73ff; }
.game-tile[data-tone="aim"] { --tile-accent: #63a8ff; }
.game-tile[data-tone="cps"] { --tile-accent: #5bd6a2; }
.game-tile[data-tone="spacebar"] { --tile-accent: #f2bc66; }
.game-tile[data-tone="memory"] { --tile-accent: #ff7fb1; }
.game-tile[data-tone="snake"] { --tile-accent: #7ddc8a; }
.game-tile[data-tone="flappy"] { --tile-accent: #8fd3ff; }
.game-tile[data-tone="pong"] { --tile-accent: #c69bff; }

.tile-topline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tile-accent, var(--purple)) 12%, transparent);
  color: color-mix(in srgb, var(--tile-accent, var(--purple)) 72%, white 18%);
  border: 1px solid color-mix(in srgb, var(--tile-accent, var(--purple)) 22%, transparent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tile-icon {
  margin-top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border-color: color-mix(in srgb, var(--tile-accent, var(--purple)) 22%, transparent);
  background: color-mix(in srgb, var(--tile-accent, var(--purple)) 10%, rgba(255,255,255,.02));
  color: color-mix(in srgb, var(--tile-accent, var(--purple)) 70%, white 10%);
}

.tile-copy h3 {
  margin-top: 10px;
  font-size: 15px;
}

.feature .tile-copy h3 {
  font-size: 22px;
}

.tile-copy p {
  margin-top: 5px;
  max-width: 300px;
  font-size: 11px;
  line-height: 1.45;
}

.tile-bottom {
  width: 100%;
  align-items: end;
  grid-template-columns: 1fr auto auto;
  display: grid;
}

.tile-best strong {
  font-size: 14px;
}

.tile-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  color: #d8d6de;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.tile-arrow {
  position: relative;
  z-index: 1;
  margin-left: 6px;
  color: color-mix(in srgb, var(--tile-accent, var(--purple)) 56%, white 12%);
}

.arcade-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.arcade-card {
  min-height: 220px;
}

.stats-grid {
  gap: 10px;
}

.stat-card,
.best-card,
.profile-card,
.setting-row,
.table-panel,
.filter-panel,
.achievement-card {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,18,26,.98), rgba(15,15,21,.96));
}

.game-arena {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15,15,21,.98), rgba(13,13,19,.96));
}

.result-card {
  border-radius: 20px;
}

.result-top {
  background: linear-gradient(135deg, rgba(136,105,255,.12), rgba(255,255,255,.02) 48%);
}

.toast {
  border-radius: 14px;
}

@media (max-width: 1280px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 78px 1fr;
  }

  .arcade-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .content, .topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding: 24px;
  }

  .hero-mini,
  .home-stats {
    grid-template-columns: 1fr;
  }

  .game-mosaic {
    grid-auto-rows: 120px;
  }
}

/* 6.3 UI overhaul */
.button {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 750;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
}

.button.primary {
  background: linear-gradient(180deg, #987fff, #7e62ff);
  border-color: rgba(136,105,255,.85);
  box-shadow: 0 12px 30px rgba(136,105,255,.22);
}

.button.primary:hover {
  background: linear-gradient(180deg, #a189ff, #876cff);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
}

.feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feed-head small {
  display: block;
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.feed-head h3 {
  margin: 8px 0 0;
  font-size: 20px;
  letter-spacing: -.04em;
}

.home-lower {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  margin-top: 16px;
}

.home-feed,
.home-control,
.arcade-hero {
  padding: 18px;
  border-radius: 22px;
}

.feed-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.feed-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.02));
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.feed-row:hover {
  border-color: rgba(136,105,255,.18);
  background: linear-gradient(180deg, rgba(136,105,255,.06), rgba(255,255,255,.025));
}

.feed-icon.tile-icon {
  margin-top: 0;
  width: 34px;
  height: 34px;
}

.feed-copy strong {
  display: block;
  font-size: 12px;
}

.feed-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.feed-value {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.control-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(136,105,255,.10), transparent 34%),
    linear-gradient(180deg, rgba(20,20,28,.98), rgba(14,14,20,.96));
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.control-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(136,105,255,.18);
}

.control-tile .tile-topline {
  margin-bottom: auto;
  width: fit-content;
}

.control-tile strong {
  display: block;
  margin-top: 20px;
  font-size: 18px;
  letter-spacing: -.04em;
}

.control-tile small:last-child {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.arcade-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  background:
    radial-gradient(circle at 0% 0%, rgba(99,168,255,.08), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(136,105,255,.10), transparent 32%),
    linear-gradient(180deg, rgba(17,17,24,.98), rgba(14,14,20,.96));
}

.arcade-hero h2 {
  margin: 8px 0 8px;
  font-size: 32px;
  letter-spacing: -.05em;
}

.arcade-hero p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.arcade-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.data-layout {
  grid-template-columns: 260px 1fr;
  gap: 14px;
}

.filter-panel {
  padding: 12px;
  border-radius: 18px;
}

.filter-button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
}

.filter-button.active {
  background: linear-gradient(180deg, rgba(136,105,255,.14), rgba(136,105,255,.07));
  border: 1px solid rgba(136,105,255,.14);
}

.table-panel {
  border-radius: 18px;
}

.table-head, .table-row {
  padding-left: 16px;
  padding-right: 16px;
}

.achievement-card {
  min-height: 150px;
  padding: 16px;
}

.profile-layout {
  gap: 14px;
}

.profile-card {
  border-radius: 20px;
}

.best-grid {
  gap: 10px;
}

.best-card {
  border-radius: 16px;
}

.settings-list {
  gap: 10px;
}

.setting-row {
  min-height: 74px;
  border-radius: 18px;
}

.command-panel {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18,18,26,.98), rgba(14,14,20,.98));
}

.command-input-wrap {
  height: 60px;
}

.command-item {
  min-height: 50px;
  border-radius: 12px;
}

.command-item:hover, .command-item.selected {
  background: linear-gradient(180deg, rgba(136,105,255,.12), rgba(136,105,255,.07));
}

.result-card {
  background: linear-gradient(180deg, rgba(18,18,26,.98), rgba(14,14,20,.98));
}

.result-hero {
  padding-top: 30px;
}

.result-hero .result-primary {
  font-size: 78px;
}

.result-actions {
  padding: 16px;
}

.toast {
  background: linear-gradient(180deg, rgba(20,20,28,.98), rgba(15,15,21,.96));
}

@media (max-width: 1180px) {
  .home-lower {
    grid-template-columns: 1fr;
  }

  .arcade-hero {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .control-grid {
    grid-template-columns: 1fr;
  }
}

/* 6.4 browser arcade layout: keep game modes horizontal */
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.arcade-grid .arcade-card {
  min-height: 205px;
  width: 100%;
}

.arcade-grid .game-tile {
  padding: 15px;
}

.arcade-grid .tile-copy h3 {
  font-size: 16px;
}

.arcade-grid .tile-copy p {
  max-width: none;
  font-size: 10.5px;
}

@media (max-width: 1180px) {
  .arcade-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .arcade-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .arcade-grid {
    grid-template-columns: 1fr;
  }
}

/* 7.0 game experience overhaul */
.game-intro-card {
  width: min(430px, 90%);
  text-align: left !important;
}

.game-intro-card h3 {
  font-size: 32px;
  letter-spacing: -.055em;
}

.game-intro-card p {
  font-size: 12px;
  line-height: 1.55;
}

.intro-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.intro-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.upgraded-hud {
  z-index: 8;
}

.upgraded-hud .hud-chip {
  min-width: 82px;
  background: rgba(8,9,13,.78);
  border-color: rgba(255,255,255,.075);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.danger-time {
  border-color: rgba(240,118,130,.3) !important;
  background: rgba(240,118,130,.08) !important;
}

/* Reaction */
.reaction-shell {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
  gap: 12px;
  padding: 12px;
}

.reaction-zone {
  position: relative;
  min-height: 496px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(136,105,255,.055), transparent 42%),
    linear-gradient(180deg,#101017,#0d0e13);
  color: var(--text);
  cursor: pointer;
}

.reaction-zone.waiting {
  background:
    radial-gradient(circle at center, rgba(240,118,130,.055), transparent 40%),
    linear-gradient(180deg,#141015,#0e0d12);
}

.reaction-zone.ready {
  background:
    radial-gradient(circle at center, rgba(91,214,162,.15), transparent 40%),
    linear-gradient(180deg,#0d1714,#0b1010);
  border-color: rgba(91,214,162,.18);
}

.reaction-zone.early {
  background:
    radial-gradient(circle at center, rgba(240,118,130,.15), transparent 40%),
    linear-gradient(180deg,#170d11,#100b0e);
  border-color: rgba(240,118,130,.18);
}

.reaction-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.reaction-orbit.orbit-b {
  width: 470px;
  height: 470px;
  border-color: rgba(255,255,255,.025);
}

.reaction-zone.ready .reaction-orbit {
  border-color: rgba(91,214,162,.15);
  animation: reactionPulse .55s ease-out infinite alternate;
}

@keyframes reactionPulse {
  to { transform: translate(-50%,-50%) scale(1.035); opacity: .55; }
}

.reaction-center {
  position: relative;
  z-index: 2;
  width: min(560px,86%);
  text-align: center;
}

.reaction-word {
  margin: 12px 0 8px;
  font-size: clamp(72px,10vw,126px);
  line-height: .84;
  font-weight: 900;
  letter-spacing: -.085em;
}

.reaction-zone.ready .reaction-word { color: #8ceac5; }
.reaction-zone.early .reaction-word { color: #f58e99; }

.reaction-center p {
  margin: 0 auto;
  max-width: 470px;
  color: var(--muted);
  font-size: 12px;
}

.reaction-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.reaction-side {
  padding: 16px;
  border-radius: 18px;
}

.reaction-side-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.reaction-side-head small {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: .12em;
}

.reaction-side-head h3 {
  margin: 5px 0 0;
  font-size: 17px;
}

.reaction-attempts {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.reaction-attempt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 11px;
  background: rgba(255,255,255,.022);
}

.reaction-attempt span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: .12em;
}

.reaction-attempt strong {
  font-size: 12px;
  color: var(--muted);
}

.reaction-attempt.complete {
  border-color: rgba(136,105,255,.12);
  background: rgba(136,105,255,.045);
}

.reaction-attempt.complete strong { color: var(--text); }

.reaction-summary {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.reaction-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.reaction-summary small {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: .1em;
}

.reaction-summary strong { font-size: 12px; }

.reaction-tip {
  margin-top: 16px;
  padding: 11px;
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

/* Aim */
.aim-arena.upgraded {
  min-height: 540px;
  background:
    radial-gradient(circle at center, rgba(99,168,255,.035), transparent 44%),
    linear-gradient(180deg,#0d0e14,#0a0b10);
}

.aim-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  pointer-events: none;
}

.upgraded-target {
  border-width: 2px;
  box-shadow:
    0 0 0 7px rgba(136,105,255,.08),
    inset 0 0 0 8px #101018,
    inset 0 0 0 11px var(--purple),
    0 14px 30px rgba(0,0,0,.28);
}

.upgraded-target::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(167,140,255,.22);
  border-radius: 50%;
}

.aim-footer {
  position: absolute;
  z-index: 5;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  pointer-events: none;
}

.aim-impact {
  position: absolute;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  animation: impactPop .28s ease-out forwards;
}

.aim-impact.good { border: 2px solid rgba(91,214,162,.75); }
.aim-impact.bad { border: 2px solid rgba(240,118,130,.72); }

@keyframes impactPop {
  from { opacity: 1; transform: translate(-50%,-50%) scale(.45); }
  to { opacity: 0; transform: translate(-50%,-50%) scale(1.5); }
}

/* CPS / Spacebar */
.clicker-shell {
  min-height: 520px;
  display: grid;
  grid-template-columns: 340px minmax(0,1fr);
  gap: 12px;
  padding: 12px;
}

.clicker-panel {
  padding: 20px;
  border-radius: 18px;
}

.clicker-head {
  display: grid;
  gap: 18px;
}

.clicker-head h3 {
  margin: 7px 0 5px;
  font-size: 27px;
  letter-spacing: -.05em;
}

.clicker-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.clicker-dashboard {
  margin-top: 26px;
}

.clicker-primary small,
.clicker-metrics small {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: .11em;
}

.clicker-primary strong {
  display: block;
  margin-top: 6px;
  font-size: 72px;
  line-height: .9;
  letter-spacing: -.075em;
}

.clicker-primary span {
  display: block;
  margin-top: 8px;
  color: var(--purple-2);
  font-size: 13px;
  font-weight: 800;
}

.clicker-metrics {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 7px;
  margin-top: 22px;
}

.clicker-metrics > div {
  padding: 10px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 11px;
  background: rgba(255,255,255,.02);
}

.clicker-metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.clicker-graph {
  height: 78px;
  display: flex;
  align-items: end;
  gap: 3px;
  margin-top: 24px;
  padding: 10px 8px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}

.clicker-graph span {
  flex: 1;
  min-height: 5px;
  height: var(--h);
  border-radius: 4px 4px 1px 1px;
  background: rgba(136,105,255,.28);
  transition: height .14s ease;
}

.clicker-graph span.hot { background: rgba(167,140,255,.82); }

.upgraded-click-zone {
  position: relative;
  overflow: hidden;
  min-height: 496px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(136,105,255,.065), transparent 42%),
    linear-gradient(180deg,#101017,#0d0e13);
  color: inherit;
  cursor: pointer;
}

.upgraded-click-zone.active {
  background:
    radial-gradient(circle at center, rgba(136,105,255,.11), transparent 44%),
    linear-gradient(180deg,#12111c,#0d0e14);
  border-color: rgba(136,105,255,.16);
}

.click-zone-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.click-countdown {
  margin-top: 8px;
  font-size: 82px;
  line-height: .95;
  font-weight: 880;
  letter-spacing: -.075em;
}

.click-countdown small { font-size: .22em; color: var(--muted); }

.click-command {
  margin-top: 12px;
  color: var(--purple-2);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: .08em;
}

.click-zone-inner p {
  max-width: 360px;
  margin: 8px auto 18px;
  color: var(--muted);
  font-size: 11px;
}

.click-ripple-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.click-ripple {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(167,140,255,.65);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  animation: clickRipple .3s ease-out forwards;
}

@keyframes clickRipple {
  to { width: 70px; height: 70px; opacity: 0; }
}

/* Memory */
.memory-shell {
  min-height: 520px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 12px;
  padding: 12px;
}

.upgraded-memory-info {
  padding: 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}

.upgraded-memory-info h3 {
  margin: 8px 0 5px;
  font-size: 34px;
  letter-spacing: -.055em;
}

.upgraded-memory-info p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.memory-meta {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.memory-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}

.memory-meta small { color: var(--muted-2); font-size: 8px; letter-spacing: .1em; }
.memory-meta strong { font-size: 11px; }

.memory-progress {
  height: 5px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
}

.memory-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,var(--purple),var(--purple-2));
  transition: width .18s ease;
}

.memory-keymap {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 5px;
  margin: 18px 0;
}

.memory-keymap span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.memory-stage {
  position: relative;
  min-height: 496px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(136,105,255,.05), transparent 50%),
    linear-gradient(180deg,#0f1016,#0c0d12);
}

.memory-stage-grid {
  width: min(630px,82%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upgraded-pad {
  position: relative;
  aspect-ratio: 1.45;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018));
}

.upgraded-pad::after {
  inset: 24%;
  opacity: .10;
  filter: blur(20px);
}

.upgraded-pad.active {
  background: color-mix(in srgb,var(--pad) 22%,#171720);
  border-color: color-mix(in srgb,var(--pad) 58%,transparent);
  box-shadow: 0 0 44px color-mix(in srgb,var(--pad) 16%,transparent);
}

.upgraded-pad.wrong {
  border-color: rgba(240,118,130,.65);
  background: rgba(240,118,130,.10);
  animation: memoryWrong .22s ease;
}

@keyframes memoryWrong { 50% { transform: translateX(4px); } }

.pad-index {
  position: absolute;
  left: 13px;
  top: 12px;
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: .12em;
}

.pad-key {
  position: absolute;
  right: 13px;
  top: 11px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.pad-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  background: var(--pad);
  opacity: .16;
  box-shadow: 0 0 42px var(--pad);
}

.upgraded-pad.active .pad-core { opacity: .92; transform: translate(-50%,-50%) scale(1.12); }

.memory-sequence-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.memory-sequence-line span {
  width: 12px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}

.memory-sequence-line span.done { background: var(--purple); }

/* Canvas games */
.snake-canvas,.flappy-canvas,.pong-canvas {
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02),0 24px 60px rgba(0,0,0,.22);
}

.snake-status {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,.34);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  pointer-events: none;
}

.flappy-distance {
  position: absolute;
  z-index: 5;
  left: 36px;
  right: 36px;
  bottom: 30px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}

.flappy-distance span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,#7e62ff,#8fd3ff);
  transition: width .16s ease;
}

.pong-difficulty {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 31px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.36);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  pointer-events: none;
}

.score-chip strong { font-size: 18px; }

@media (max-width: 980px) {
  .reaction-shell,
  .clicker-shell,
  .memory-shell {
    grid-template-columns: 1fr;
  }

  .reaction-side {
    min-height: auto;
  }

  .reaction-attempts {
    grid-template-columns: repeat(5,1fr);
  }

  .reaction-attempt {
    min-height: 56px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .clicker-panel {
    order: 2;
  }

  .upgraded-click-zone {
    min-height: 400px;
  }

  .memory-stage {
    min-height: 430px;
  }
}

/* 6.4 anti-template pass: flatter, quieter, more like a real game client */
:root {
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 10px 24px rgba(0,0,0,.22);
}

html, body {
  background: #090a0e;
}

.main-shell,
.sidebar,
.topbar,
.hero,
.daily-card,
.home-stat,
.game-tile,
.stat-card,
.profile-card,
.setting-row,
.table-panel,
.filter-panel,
.achievement-card,
.home-feed,
.home-control,
.arcade-hero,
.command-panel,
.result-card,
.confirm-card,
.toast,
.canvas-overlay > div,
.game-arena,
.control-tile {
  background-image: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.sidebar {
  background: #0c0d12;
  border-right-color: #1b1d25;
}

.main-shell {
  background: #090a0e;
}

.topbar {
  background: #0b0c11;
  border-bottom-color: #1b1d25;
}

.brand-mark {
  background: #15131e;
  border-radius: 8px;
  box-shadow: none;
}

.nav-button,
.icon-button,
.command-hint,
.player-chip,
.game-back,
.button {
  border-radius: 8px;
  box-shadow: none;
}

.nav-button.active {
  background: #171522;
  border-color: #2b2544;
  box-shadow: none;
}

.player-chip {
  background: #111218;
}

.hero {
  border-radius: 12px;
  background: #101117 !important;
  border-color: #20222b;
  box-shadow: none;
}

.hero::after,
.game-tile::before,
.game-tile::after,
.reaction-orbit {
  display: none !important;
}

.hero h2 {
  font-size: clamp(36px, 4vw, 54px);
}

.hero p {
  color: #aaa8b3;
}

.hero-mini {
  gap: 0;
  border-top: 1px solid #20222b;
  padding-top: 14px;
}

.hero-mini > div {
  padding: 0 18px 0 0;
  border: 0;
  border-right: 1px solid #20222b;
  border-radius: 0;
  background: transparent;
}

.hero-mini > div + div {
  padding-left: 18px;
}

.hero-mini > div:last-child {
  border-right: 0;
}

.daily-card {
  border-radius: 10px;
  background: #0d0e13 !important;
  border-color: #242632;
}

.status-pill {
  border-radius: 6px;
  padding: 3px 6px;
  background: transparent;
}

.button {
  background: #171820;
  border-color: #2a2c36;
}

.button:hover {
  transform: none;
  background: #1d1e27;
  border-color: #363944;
}

.button.primary,
.button.primary:hover {
  background: #8065f4;
  border-color: #8065f4;
  box-shadow: none;
}

.home-stats {
  gap: 0;
  border: 1px solid #20222b;
  border-radius: 10px;
  overflow: hidden;
  background: #101117;
}

.home-stat {
  min-height: 104px;
  border: 0;
  border-right: 1px solid #20222b;
  border-radius: 0;
  background: transparent !important;
}

.home-stat:last-child {
  border-right: 0;
}

.home-stat strong {
  font-size: 21px;
}

.game-mosaic,
.arcade-grid {
  gap: 10px;
}

.game-tile {
  border-radius: 10px;
  background: #111218 !important;
  border-color: #20222b;
  box-shadow: none;
  padding: 15px;
}

.game-tile:hover {
  transform: none;
  background: #15161d !important;
  border-color: #343744;
}

.tile-icon {
  margin-top: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: none;
}

.tile-copy h3,
.feature .tile-copy h3 {
  margin-top: 10px;
  font-size: 16px;
}

.feature .tile-copy h3 {
  font-size: 19px;
}

.tile-copy p {
  color: #918f9b;
}

.tile-cta {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a994ff;
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.home-feed,
.home-control,
.arcade-hero {
  border-radius: 10px;
  background: #101117 !important;
  border-color: #20222b;
}

.feed-row,
.control-tile {
  border-radius: 8px;
  background: #0d0e13 !important;
  border-color: #20222b;
  box-shadow: none;
}

.feed-row:hover,
.control-tile:hover {
  transform: none;
  background: #13141a !important;
  border-color: #343744;
}

.arcade-hero h2 {
  font-size: 28px;
}

.panel,
.stat-card,
.profile-card,
.setting-row,
.table-panel,
.filter-panel,
.achievement-card {
  border-radius: 10px;
  background: #101117 !important;
  border-color: #20222b;
}

.filter-button,
.command-item,
.best-card,
.text-input,
.accent-swatch,
.mode-tabs,
.mode-tabs button,
.memory-pad,
.game-canvas {
  border-radius: 8px;
}

.filter-button.active,
.command-item:hover,
.command-item.selected {
  background: #171522 !important;
}

.command-panel,
.result-card,
.confirm-card {
  border-radius: 10px;
  background: #101117 !important;
}

.result-top {
  background: #12131a !important;
}

.toast {
  border-radius: 8px;
  background: #14151c !important;
}

.game-arena {
  border-radius: 10px;
  background: #0d0e13 !important;
}

.canvas-overlay > div,
.game-intro-card {
  border-radius: 10px !important;
  background: #0e0f14 !important;
  border-color: #292b35 !important;
  box-shadow: none !important;
}

.game-intro-card .eyebrow,
.intro-badges {
  display: none !important;
}

.game-intro-card h3 {
  margin-top: 0 !important;
}

.game-intro-card p {
  max-width: 420px;
  color: #9b99a4 !important;
}

.upgraded-hud .hud-chip,
.hud-chip {
  border-radius: 7px !important;
  background: #0c0d12 !important;
  border-color: #272933 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.aim-arena.upgraded,
.upgraded-click-zone,
.upgraded-click-zone.active,
.memory-stage {
  background: #0c0d12 !important;
}

.aim-grid {
  opacity: .45;
}

.upgraded-target {
  box-shadow: inset 0 0 0 8px #0f1015, inset 0 0 0 11px var(--purple) !important;
}

.upgraded-target::before {
  opacity: .35;
}

.upgraded-pad {
  border-radius: 10px !important;
  background: #14151b !important;
  box-shadow: none !important;
}

.upgraded-pad.active {
  box-shadow: none !important;
}

.memory-pad::after {
  filter: none;
  opacity: .05;
}

.neegy-card {
  border-radius: 10px;
  background: #101117;
  box-shadow: none;
}

.neegy-secret::before {
  display: none;
}

.neegy-face {
  border-radius: 10px;
  box-shadow: none;
}

@media (max-width: 1280px) {
  .home-stat:nth-child(2) {
    border-right: 0;
  }
  .home-stat:nth-child(-n+2) {
    border-bottom: 1px solid #20222b;
  }
}

@media (max-width: 980px) {
  .home-stat {
    border-right: 0;
    border-bottom: 1px solid #20222b;
  }
  .home-stat:last-child {
    border-bottom: 0;
  }
}

/* Ranked */
.rank-home-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.rank-home-stat:hover { border-color: rgba(167,140,255,.18); }
.rank-home-stat img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}
.rank-home-stat > div { min-width: 0; }
.rank-home-stat strong { margin-top: 4px; }

.rank-hero {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 36px;
  overflow: hidden;
  position: relative;
  background: #111118;
}
.rank-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 48%, rgba(136,105,255,.13), transparent 28%);
}
.rank-hero-copy { position: relative; z-index: 1; width: min(620px,62%); }
.rank-hero-copy h2 {
  margin: 6px 0 8px;
  font-size: clamp(44px,5vw,70px);
  line-height: .95;
  letter-spacing: -.065em;
}
.rank-hero-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }
.rank-hero-icon {
  position: relative;
  z-index: 1;
  width: min(265px,28vw);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(0,0,0,.42));
}
.rank-progress {
  width: min(520px,100%);
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}
.rank-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#8869ff,#b7a4ff);
}
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: #aaa7b2;
  font-size: 10px;
  font-weight: 650;
}

.rank-ladder {
  display: grid;
  grid-template-columns: repeat(8,minmax(98px,1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.rank-tier-card {
  min-width: 98px;
  min-height: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #111117;
  opacity: .42;
}
.rank-tier-card.reached { opacity: .78; }
.rank-tier-card.active {
  opacity: 1;
  border-color: rgba(167,140,255,.3);
  background: #15141d;
}
.rank-tier-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: auto;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.3));
}
.rank-tier-card strong { font-size: 12px; }
.rank-tier-card small { margin-top: 4px; color: var(--muted-2); font-size: 8px; letter-spacing: .08em; }

.rank-columns {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 12px;
  margin-top: 16px;
}
.rank-info-panel,.rank-history { padding: 18px; }
.rank-rules { display: grid; gap: 0; margin-top: 12px; }
.rank-rules > div {
  display: grid;
  gap: 3px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.rank-rules strong { font-size: 11px; }
.rank-rules span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.rank-history-list { display: grid; gap: 7px; margin-top: 12px; }
.rank-history-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 7px 10px;
  border-top: 1px solid var(--border);
}
.rank-history-row img { width: 38px; height: 38px; object-fit: contain; }
.rank-history-row span strong { display: block; font-size: 11px; }
.rank-history-row span small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.rank-history-row b { font-size: 11px; font-variant-numeric: tabular-nums; }
.rank-gain { color: var(--good); }
.rank-loss { color: var(--bad); }

.profile-rank {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #0e0e14;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.profile-rank:hover { border-color: rgba(167,140,255,.22); }
.profile-rank img { width: 42px; height: 42px; object-fit: contain; }
.profile-rank span { display: grid; gap: 2px; }
.profile-rank small { color: var(--muted-2); font-size: 7px; letter-spacing: .12em; }
.profile-rank strong { font-size: 12px; }

.result-rank-strip {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 54px 1fr minmax(140px,210px);
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  border: 0;
  border-top: 1px solid var(--border);
  background: #0e0e14;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.result-rank-strip:hover { background: #111119; }
.result-rank-strip > img { width: 52px; height: 52px; object-fit: contain; }
.result-rank-strip > span { display: grid; gap: 2px; }
.result-rank-strip > span small { color: var(--purple-2); font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.result-rank-strip > span strong { font-size: 13px; }
.result-rank-progress { display: grid; gap: 6px; justify-items: end; }
.result-rank-progress i {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}
.result-rank-progress i b { display: block; height: 100%; background: var(--purple); border-radius: inherit; }
.result-rank-progress small { color: var(--muted); font-size: 9px; font-weight: 700; }

@media (max-width: 1180px) {
  .rank-ladder { grid-template-columns: repeat(4,minmax(120px,1fr)); }
}
@media (max-width: 900px) {
  .rank-hero { min-height: 250px; padding: 24px; }
  .rank-hero-copy { width: 68%; }
  .rank-columns { grid-template-columns: 1fr; }
  .rank-ladder { grid-template-columns: repeat(4,minmax(105px,1fr)); }
}
@media (max-width: 700px) {
  .rank-hero { align-items: flex-start; }
  .rank-hero-copy { width: 100%; }
  .rank-hero-icon { width: 120px; position: absolute; right: 10px; top: 16px; opacity: .28; }
  .rank-ladder { grid-template-columns: repeat(2,minmax(120px,1fr)); }
  .result-rank-strip { grid-template-columns: 50px 1fr; }
  .result-rank-progress { grid-column: 1 / -1; width: 100%; }
}

/* training pack + simpler browser layout */
.trainers-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.arcade-games-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.arcade-card {
  min-height: 200px;
}

.home-lower {
  align-items: start;
}

.tracking-target {
  position: absolute;
  z-index: 3;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  margin-top: -28px;
  border-radius: 50%;
  border: 2px solid rgba(136,105,255,.55);
  background: radial-gradient(circle at 35% 35%, #ffffff 0 6px, rgba(136,105,255,.35) 7px 18px, rgba(136,105,255,.14) 19px 100%);
  box-shadow: inset 0 0 0 10px rgba(10,10,14,.88), 0 0 20px rgba(136,105,255,.15);
}

.hs-target-head {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(136,105,255,.35);
}

.hs-target-body {
  position: absolute;
  left: 50%;
  bottom: 16%;
  width: 20px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 10px 10px 8px 8px;
  background: rgba(255,255,255,.22);
}

.decision-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.decision-label.bad {
  background: rgba(239,68,68,.16);
  color: #ffb2b2;
}

.decision-label.good {
  background: rgba(34,197,94,.16);
  color: #bcf7c9;
}

.movement-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 28px 28px;
}

.movement-player {
  position: absolute;
  left: var(--px, 160px);
  top: var(--py, 240px);
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(136,105,255,.24);
}

.movement-target {
  position: absolute;
  z-index: 4;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  border-radius: 50%;
  border: 2px solid rgba(136,105,255,.45);
  background: rgba(136,105,255,.16);
  box-shadow: inset 0 0 0 8px rgba(10,10,14,.88);
}

.skill-stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15,15,21,.98), rgba(12,12,18,.96));
  overflow: hidden;
}

.skill-stage .micro {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

#skillRoot.game-arena.center {
  display: grid;
  place-items: center;
  min-height: 520px;
}

.skill-green {
  background: radial-gradient(circle at center, rgba(34,197,94,.12), transparent 40%), linear-gradient(180deg, rgba(15,15,21,.98), rgba(12,12,18,.96));
}

@media (max-width: 1200px) {
  .trainers-grid,
  .arcade-games-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 980px) {
  .trainers-grid,
  .arcade-games-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .trainers-grid,
  .arcade-games-grid {
    grid-template-columns: 1fr;
  }
}
.game-tile[data-tone="flick"],
.game-tile[data-tone="switching"],
.game-tile[data-tone="peek"],
.game-tile[data-tone="micro"],
.game-tile[data-tone="headshot"],
.game-tile[data-tone="precision"] { --tile-accent: #63a8ff; }
.game-tile[data-tone="tracking"] { --tile-accent: #5bd6a2; }
.game-tile[data-tone="movement"] { --tile-accent: #f2bc66; }
.game-tile[data-tone="decision"] { --tile-accent: #ff8f8f; }
.game-tile[data-tone="reflex"] { --tile-accent: #a78cff; }
.game-tile[data-tone="skilltest"] { --tile-accent: #c69bff; }

/* 7.0 progression + secondary page overhaul */
.level-home-stat,
.rank-home-stat,
.home-stat[data-nav] {
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.level-home-stat i {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.level-home-stat i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f67ff, #aa97ff);
}

.game-toolbar-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.game-toolbar-meta > span {
  min-width: 92px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.game-toolbar-meta small {
  display: block;
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: .12em;
}
.game-toolbar-meta strong {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}
.game-mastery-track {
  height: 3px;
  margin: -4px 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.game-mastery-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(136,105,255,.45), rgba(136,105,255,.95));
}

/* Ranked */
.rank-hero {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 34px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(136,105,255,.16), transparent 32%),
    linear-gradient(135deg, #15151d, #0f1016 65%);
}
.rank-hero::after {
  content: "";
  position: absolute;
  inset: auto -100px -180px auto;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 50%;
}
.rank-hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 62%);
}
.rank-hero-copy h2 {
  margin: 5px 0 7px;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -.06em;
}
.rank-hero-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.rank-hero-icon {
  position: relative;
  z-index: 2;
  width: min(240px, 25vw);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,.32));
}
.rank-progress {
  height: 8px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.rank-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7258ff, #b39fff);
}
.rank-meta {
  display: flex;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}
.rank-meta strong { color: var(--text); }
.rank-meta span:last-child { margin-left: auto; }
.rank-ladder {
  display: grid;
  grid-template-columns: repeat(8,minmax(105px,1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.rank-tier-card {
  min-height: 138px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #111118;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: .42;
}
.rank-tier-card.reached { opacity: .72; }
.rank-tier-card.active {
  opacity: 1;
  border-color: rgba(167,140,255,.28);
  background: linear-gradient(180deg, rgba(136,105,255,.10), #111118);
}
.rank-tier-card img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}
.rank-tier-card strong { margin-top: 8px; font-size: 12px; }
.rank-tier-card small { margin-top: 4px; color: var(--muted-2); font-size: 8px; }
.rank-columns {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 12px;
  margin-top: 14px;
}
.rank-info-panel,.rank-history { padding: 18px; }
.rank-rules { display: grid; margin-top: 12px; }
.rank-rules > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.rank-rules strong { font-size: 11px; }
.rank-rules span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.rank-history-list { display: grid; gap: 7px; margin-top: 12px; }
.rank-history-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.02);
}
.rank-history-row img { width: 38px; height: 38px; object-fit: contain; }
.rank-history-row span strong { display: block; font-size: 11px; }
.rank-history-row span small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.rank-history-row b { font-size: 11px; }
.rank-gain { color: var(--good); }
.rank-loss { color: var(--bad); }

/* Leaderboards */
.leader-mode-strip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: thin;
}
.leader-mode {
  flex: 0 0 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #111118;
  color: var(--muted);
  cursor: pointer;
}
.leader-mode:hover { color: var(--text); border-color: var(--border-strong); }
.leader-mode.active {
  color: var(--text);
  border-color: rgba(136,105,255,.25);
  background: rgba(136,105,255,.08);
}
.leader-mode span { width: 16px; height: 16px; display: grid; place-items: center; }
.leader-mode svg { width: 16px; height: 16px; }
.leader-mode strong { font-size: 10px; white-space: nowrap; }
.leader-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.leader-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.leader-big-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(136,105,255,.18);
  background: rgba(136,105,255,.07);
  color: var(--purple-2);
}
.leader-big-icon svg { width: 25px; height: 25px; }
.leader-title h2 { margin: 4px 0 3px; font-size: 25px; letter-spacing: -.04em; }
.leader-title p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }
.leader-hero-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(95px,1fr));
  gap: 7px;
}
.leader-hero-stats > div {
  min-width: 100px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255,255,255,.02);
}
.leader-hero-stats small { display:block; color:var(--muted-2); font-size:7px; letter-spacing:.11em; }
.leader-hero-stats strong { display:block; margin-top:4px; font-size:12px; }
.leader-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 12px;
  margin-top: 12px;
}
.podium-panel,.trend-panel { padding: 18px; min-height: 310px; }
.podium {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  align-items: end;
  gap: 8px;
  margin-top: 24px;
}
.podium-slot {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 13px 8px;
  border: 1px solid var(--border);
  border-radius: 14px 14px 10px 10px;
  background: #101017;
  text-align: center;
}
.podium-slot.place-1 {
  min-height: 205px;
  border-color: rgba(167,140,255,.26);
  background: linear-gradient(180deg, rgba(136,105,255,.11), #101017 55%);
}
.podium-slot.empty { opacity: .2; }
.podium-rank { color: var(--purple-2); font-size: 9px; font-weight: 800; }
.podium-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 9px 0;
  border-radius: 12px;
  background: rgba(136,105,255,.12);
  border: 1px solid rgba(136,105,255,.18);
  font-size: 12px;
  font-weight: 800;
}
.podium-slot strong { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.podium-slot b { margin-top:5px; font-size:15px; }
.podium-slot small { margin-top:6px; color:var(--muted-2); font-size:8px; }
.trend-chart {
  height: 178px;
  display: flex;
  align-items: end;
  gap: 6px;
  margin-top: 22px;
  padding: 12px 8px 0;
  border-bottom: 1px solid var(--border);
}
.trend-bar-wrap {
  flex: 1;
  min-width: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.trend-bar {
  width: min(22px,72%);
  min-height: 10px;
  border-radius: 4px 4px 2px 2px;
  background: rgba(136,105,255,.35);
}
.trend-bar.latest { background: var(--purple); }
.trend-bar-wrap small { height:14px; color:var(--muted-2); font-size:7px; }
.trend-empty { min-height:180px; display:grid; place-items:center; color:var(--muted); font-size:11px; }
.mastery-mini {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.mastery-mini span:first-child small { display:block; color:var(--muted-2); font-size:7px; }
.mastery-mini span:first-child strong { display:block; margin-top:3px; font-size:11px; }
.mastery-mini > i {
  height: 5px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  overflow:hidden;
}
.mastery-mini > i b { display:block; height:100%; background:var(--purple); }
.mastery-mini > span:last-child { color:var(--muted); font-size:8px; }
.leaderboard-table .top-row { background: rgba(136,105,255,.025); }

/* Achievements */
.achievement-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px;
}
.achievement-ring {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--purple) var(--progress), rgba(255,255,255,.06) 0);
  position: relative;
}
.achievement-ring::after {
  content:"";
  position:absolute;
  inset:8px;
  border-radius:50%;
  background:#111117;
}
.achievement-ring span { position:relative; z-index:1; text-align:center; }
.achievement-ring strong { display:block; font-size:25px; letter-spacing:-.05em; }
.achievement-ring small { display:block; margin-top:3px; color:var(--muted-2); font-size:7px; letter-spacing:.12em; }
.achievement-hero h2 { margin:4px 0 4px; font-size:26px; letter-spacing:-.04em; }
.achievement-hero p:not(.eyebrow) { margin:0; color:var(--muted); font-size:11px; }
.achievement-section + .achievement-section { margin-top: 6px; }
.achievement-grid-wide { grid-template-columns: repeat(4,minmax(0,1fr)); }
.achievement-card {
  min-height: 170px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 1;
}
.achievement-card.locked { opacity:.62; }
.achievement-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.rarity-tag {
  padding: 4px 7px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  font-size:7px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.achievement-card.rarity-rare.unlocked { border-color:rgba(99,168,255,.18); }
.achievement-card.rarity-epic.unlocked { border-color:rgba(167,140,255,.24); }
.achievement-card.rarity-legendary.unlocked { border-color:rgba(242,188,102,.28); }
.achievement-card h3 { margin:14px 0 4px; font-size:13px; }
.achievement-card p { margin:0; min-height:30px; color:var(--muted); font-size:9px; line-height:1.45; }
.achievement-progress { margin-top:auto; padding-top:14px; }
.achievement-progress i { display:block; height:4px; border-radius:999px; background:rgba(255,255,255,.06); overflow:hidden; }
.achievement-progress i b { display:block; height:100%; border-radius:inherit; background:var(--purple); }
.achievement-progress span { display:block; margin-top:6px; color:var(--muted-2); font-size:8px; }
.achievement-card .unlock-date { position:static; margin-top:7px; color:var(--good); }

/* Profile */
.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 75% 0%, rgba(136,105,255,.09), transparent 34%),
    #111117;
}
.profile-identity { display:flex; align-items:center; gap:16px; min-width:0; }
.profile-avatar.large { width:78px; height:78px; border-radius:20px; flex:0 0 auto; }
.profile-identity h2 { margin:3px 0 9px; font-size:30px; letter-spacing:-.05em; }
.profile-level-line {
  display:grid;
  grid-template-columns:auto minmax(120px,220px) auto;
  align-items:center;
  gap:9px;
}
.profile-level-line span { font-size:10px; font-weight:750; }
.profile-level-line i { height:5px; border-radius:999px; background:rgba(255,255,255,.07); overflow:hidden; }
.profile-level-line i b { display:block; height:100%; background:var(--purple); }
.profile-level-line small { color:var(--muted); font-size:8px; }
.profile-rank.large {
  min-width:190px;
  padding:10px 13px;
  border-radius:14px;
  background:rgba(255,255,255,.025);
}
.profile-rank.large img { width:58px; height:58px; }
.profile-rank.large em { color:var(--muted); font-size:8px; font-style:normal; }
.profile-kpis {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:9px;
  margin-top:10px;
}
.profile-kpis > .panel { padding:14px; }
.profile-kpis small { display:block; color:var(--muted-2); font-size:7px; letter-spacing:.12em; }
.profile-kpis strong { display:block; margin-top:7px; font-size:18px; letter-spacing:-.035em; }
.profile-kpis span { display:block; margin-top:4px; color:var(--muted); font-size:8px; }
.profile-dashboard {
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:10px;
  margin-top:10px;
}
.profile-dashboard.lower { grid-template-columns:1.2fr .8fr; }
.skill-profile,.mastery-panel,.profile-activity,.achievement-showcase { padding:17px; }
.skill-bars { display:grid; gap:12px; margin-top:18px; }
.skill-row {
  display:grid;
  grid-template-columns:84px 1fr 32px;
  align-items:center;
  gap:10px;
}
.skill-row span { font-size:10px; }
.skill-row i { height:6px; border-radius:999px; background:rgba(255,255,255,.06); overflow:hidden; }
.skill-row i b { display:block; height:100%; background:linear-gradient(90deg,#6d55f7,#9d8aff); }
.skill-row strong { text-align:right; font-size:10px; }
.mastery-list { display:grid; gap:7px; margin-top:14px; }
.mastery-row {
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto 80px;
  align-items:center;
  gap:9px;
  min-height:50px;
  padding:7px 9px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.mastery-row:hover { background:rgba(255,255,255,.025); border-color:var(--border); }
.mastery-row .tile-icon { margin:0; width:30px; height:30px; }
.mastery-row span:nth-child(2) { min-width:0; }
.mastery-row span:nth-child(2) strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.mastery-row span:nth-child(2) small { display:block; margin-top:2px; color:var(--muted); font-size:8px; }
.mastery-row > b { font-size:9px; white-space:nowrap; }
.mastery-row > i { height:4px; border-radius:999px; background:rgba(255,255,255,.06); overflow:hidden; }
.mastery-row > i em { display:block; height:100%; background:var(--purple); }
.showcase-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
.showcase-achievement {
  min-height:94px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:11px;
  border:1px solid var(--border);
  border-radius:11px;
  background:rgba(255,255,255,.02);
}
.showcase-achievement > span { width:25px; height:25px; color:var(--purple-2); }
.showcase-achievement svg { width:22px; height:22px; }
.showcase-achievement strong { margin-top:9px; font-size:10px; }
.showcase-achievement small { margin-top:3px; color:var(--muted-2); font-size:7px; text-transform:uppercase; }
.profile-bests { grid-template-columns:repeat(4,1fr); }
.profile-bests .best-card {
  min-height:126px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  color:inherit;
  cursor:pointer;
  text-align:left;
}
.profile-bests .best-card .tile-icon { margin:0 0 12px; }
.profile-bests .best-card span:last-child { margin-top:auto; padding-top:8px; color:var(--muted); font-size:8px; }

/* Results */
.result-card-upgraded { width:min(760px,95vw); }
.result-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.result-performance {
  padding:5px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  font-size:8px;
  font-weight:800;
  letter-spacing:.1em;
}
.result-next-target { margin-top:11px; display:flex; justify-content:center; gap:7px; align-items:center; }
.result-next-target span { color:var(--muted); font-size:9px; }
.result-next-target strong { color:var(--text); font-size:10px; }
.result-progression-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  background:var(--border);
  border-bottom:1px solid var(--border);
}
.result-progress-card {
  min-height:68px;
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:6px 12px;
  padding:10px 14px;
  border:0;
  background:#111117;
  color:inherit;
  text-align:left;
}
button.result-progress-card { cursor:pointer; }
button.result-progress-card:hover { background:#13131a; }
.result-progress-card small { display:block; color:var(--muted-2); font-size:7px; letter-spacing:.1em; }
.result-progress-card strong { display:block; margin-top:3px; font-size:11px; }
.result-progress-card > b { color:var(--good); font-size:9px; }
.result-progress-card > i { grid-column:1/-1; height:4px; border-radius:999px; background:rgba(255,255,255,.06); overflow:hidden; }
.result-progress-card > i em { display:block; height:100%; background:var(--purple); }
.result-actions-group:first-child { flex-wrap:wrap; }

@media (max-width: 1180px) {
  .achievement-grid-wide { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profile-bests { grid-template-columns: repeat(3,1fr); }
  .leader-hero { align-items:flex-start; flex-direction:column; }
  .leader-hero-stats { width:100%; }
}

@media (max-width: 980px) {
  .rank-columns,.leader-grid,.profile-dashboard,.profile-dashboard.lower { grid-template-columns:1fr; }
  .rank-ladder { grid-template-columns:repeat(4,minmax(105px,1fr)); }
  .achievement-grid-wide { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .achievement-hero { grid-template-columns:auto 1fr; }
  .achievement-hero .button { grid-column:1/-1; width:max-content; }
  .profile-kpis { grid-template-columns:repeat(2,1fr); }
  .profile-bests { grid-template-columns:repeat(2,1fr); }
  .profile-hero { align-items:flex-start; }
  .profile-rank.large { min-width:160px; }
  .game-toolbar { align-items:flex-start; }
  .game-toolbar-meta { max-width:58%; }
}

@media (max-width: 720px) {
  .rank-hero { padding:22px; min-height:240px; }
  .rank-hero-copy { width:100%; }
  .rank-hero-icon { position:absolute; right:10px; top:14px; width:120px; opacity:.25; }
  .rank-ladder { grid-template-columns:repeat(2,minmax(110px,1fr)); }
  .leader-hero-stats { grid-template-columns:repeat(2,1fr); }
  .podium { grid-template-columns:1fr; align-items:stretch; }
  .podium-slot,.podium-slot.place-1 { min-height:100px; }
  .achievement-hero { grid-template-columns:1fr; }
  .achievement-ring { width:94px; height:94px; }
  .achievement-grid-wide,.profile-kpis,.profile-bests { grid-template-columns:1fr; }
  .profile-hero { flex-direction:column; }
  .profile-rank.large { width:100%; }
  .profile-level-line { grid-template-columns:auto 1fr; }
  .profile-level-line small { grid-column:1/-1; }
  .mastery-row { grid-template-columns:32px 1fr auto; }
  .mastery-row > i { grid-column:2/-1; width:100%; }
  .result-progression-grid { grid-template-columns:1fr; }
  .game-toolbar { flex-direction:column; }
  .game-toolbar-meta { max-width:100%; justify-content:flex-start; }
}
.tile-mastery {
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width:52px;
}
.tile-mastery small { color:var(--muted-2); font-size:7px; letter-spacing:.1em; }
.tile-mastery strong { margin-top:2px; font-size:11px; }
.tile-progress {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.tile-progress i {
  display:block;
  height:100%;
  background:color-mix(in srgb,var(--tile-accent,var(--purple)) 72%,transparent);
}
.tile-bottom { grid-template-columns:1fr auto auto auto; }
@media (max-width: 760px){ .tile-mastery{display:none;} .tile-bottom{grid-template-columns:1fr auto auto;} }

/* browser-fit + cleaner categories update */
html, body {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  overflow-y: auto;
}

.app-shell {
  height: auto;
  min-height: 100dvh;
  align-items: stretch;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  overflow-y: auto;
}

.main-shell {
  min-height: 100dvh;
  overflow: visible;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.content {
  overflow: visible;
  min-height: calc(100dvh - 100px);
  padding-bottom: 56px;
}

.hero-browser {
  margin-bottom: 8px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0 10px;
}

.category-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18,18,26,.98), rgba(14,14,20,.96));
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: rgba(136,105,255,.16);
  transform: translateY(-2px);
}

.category-card small,
.category-chip,
.game-group .section-head.compact p {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 8px;
}

.category-card strong {
  font-size: 16px;
  letter-spacing: -.03em;
}

.category-card span {
  color: var(--muted);
  font-size: 11px;
}

.category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  margin: 10px 0 14px;
  scrollbar-width: thin;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
}

.category-chip.active,
.category-chip:hover {
  color: var(--text);
  border-color: rgba(136,105,255,.16);
  background: rgba(136,105,255,.08);
}

.game-group {
  margin-bottom: 22px;
  scroll-margin-top: 92px;
}

.game-group .section-head.compact {
  margin: 0 0 10px;
}

.group-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

.arcade-card {
  min-height: 196px;
}

.game-tile {
  gap: 14px;
  padding-bottom: 14px;
}

.tile-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  align-items: end;
  gap: 8px;
  width: 100%;
}

.tile-mastery {
  min-width: 0;
}

.tile-mastery small,
.tile-cta {
  display: block;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tile-mastery strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.tile-cta {
  align-self: center;
  min-height: 28px;
  line-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.06);
}

.tile-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  overflow: hidden;
}

.tile-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.browser-arcade-hero {
  margin-bottom: 12px;
}

.home-lower {
  margin-top: 8px;
}

.game-toolbar {
  align-items: flex-start;
}

.game-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.game-toolbar-meta > span {
  min-width: 94px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.game-toolbar-meta > span small {
  display: block;
  color: var(--muted-2);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.game-toolbar-meta > span strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.game-mastery-track {
  margin-bottom: 12px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}

.game-mastery-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.result-card {
  max-height: min(90vh, 780px);
  overflow-y: auto;
}

@media (max-width: 1280px) {
  .group-grid,
  .category-cards {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 1120px) {
  .sidebar {
    height: auto;
    position: sticky;
  }

  .group-grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .topbar {
    position: relative;
  }

  .content {
    min-height: auto;
  }

  .category-cards,
  .group-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .game-toolbar {
    flex-direction: column;
  }

  .game-toolbar-meta {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .category-cards,
  .group-grid {
    grid-template-columns: 1fr;
  }

  .tile-bottom {
    grid-template-columns: 1fr auto auto;
  }

  .tile-mastery {
    display: none;
  }
}


/* build marker */
.topbar-actions{display:flex;align-items:center;gap:10px;}
.build-chip{display:inline-flex;align-items:center;min-height:28px;padding:0 9px;border:1px solid rgba(136,105,255,.18);border-radius:999px;background:rgba(136,105,255,.07);color:#b9aaff;font-size:8px;font-weight:800;letter-spacing:.12em;}
@media(max-width:700px){.build-chip{display:none;}}

/* NITRO ZONE V1 — premium browser UI */
:root {
  --bg: #07080d;
  --bg-2: #0b0d14;
  --panel: rgba(15,17,25,.92);
  --panel-2: rgba(20,22,32,.92);
  --panel-3: #1a1d2a;
  --text: #f7f7fb;
  --muted: #989bab;
  --muted-2: #676b7c;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(255,255,255,.14);
  --purple: #8d6bff;
  --purple-2: #b39cff;
  --blue: #54b9ff;
  --pink: #ff67b7;
  --cyan: #5ce1e6;
  --nitro: #ffb84d;
  --radius: 16px;
}

body {
  background:
    radial-gradient(circle at 78% -12%, rgba(84,185,255,.08), transparent 30%),
    radial-gradient(circle at 28% -18%, rgba(141,107,255,.10), transparent 32%),
    #07080d;
}

body::before {
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom,rgba(0,0,0,.72),transparent 70%);
}

.app-shell { grid-template-columns: 202px minmax(0,1fr); }

.sidebar {
  background: rgba(8,10,15,.88);
  border-right-color: rgba(255,255,255,.055);
  backdrop-filter: blur(24px);
  padding: 18px 12px;
}

.brand { padding: 4px 7px 16px; }
.brand-mark {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  border: 1px solid rgba(141,107,255,.36);
  background: linear-gradient(145deg,#9b7cff 0%,#7450ff 50%,#347cff 130%);
  color: white;
  box-shadow: 0 10px 28px rgba(92,62,220,.22), inset 0 1px rgba(255,255,255,.25);
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.brand-copy strong { font-size: 13px; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: #7d8295; letter-spacing: .24em; font-size: 7px; }

.nav-list { gap: 4px; }
.nav-button {
  min-height: 41px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background .15s ease,border-color .15s ease,transform .15s ease,color .15s ease;
}
.nav-button:hover { transform: translateX(2px); background: rgba(255,255,255,.035); color: #fff; }
.nav-button.active {
  background: linear-gradient(90deg,rgba(141,107,255,.16),rgba(84,185,255,.055));
  border-color: rgba(141,107,255,.14);
  color: white;
}
.nav-button.active svg { color: #bca9ff; }

.main-shell { background: transparent; }
.topbar {
  min-height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.045);
  background: rgba(7,8,13,.74);
  backdrop-filter: blur(22px) saturate(120%);
}
.topbar h1 { font-size: 20px; letter-spacing: -.035em; }
.topbar .eyebrow { color: #7e8292; }
.build-chip {
  min-height: 29px;
  border-color: rgba(92,225,230,.18);
  background: rgba(92,225,230,.065);
  color: #9cf3f5;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.player-chip { background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.065); }

.content { max-width: 1640px; width: 100%; margin: 0 auto; padding: 22px 28px 64px; }

.hero,
.arcade-hero,
.rank-hero,
.profile-hero,
.achievement-hero {
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 86% 18%,rgba(84,185,255,.10),transparent 32%),
    linear-gradient(135deg,rgba(18,20,31,.98),rgba(11,13,20,.98)) !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025) !important;
}
.hero::after { display:none !important; }
.hero h2 { font-size: clamp(34px,4.4vw,62px); line-height:.94; letter-spacing:-.065em; }
.hero h2 span {
  background: linear-gradient(90deg,#bba7ff,#70c9ff 62%,#e2f9ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-main > p:not(.eyebrow) { max-width: 620px; font-size: 12px; line-height:1.7; }
.hero-mini { border-top: 1px solid rgba(255,255,255,.055); padding-top: 15px; }
.daily-card { background: rgba(7,9,15,.54) !important; border-color: rgba(141,107,255,.16) !important; }

.button {
  border-radius: 11px;
  border-color: rgba(255,255,255,.075);
  background: rgba(255,255,255,.035);
  transition: transform .14s ease,border-color .14s ease,background .14s ease,box-shadow .14s ease;
}
.button:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.055); }
.button.primary {
  background: linear-gradient(135deg,#8d6bff,#6c55f2 58%,#4b8dff);
  border-color: rgba(183,164,255,.32);
  box-shadow: 0 10px 26px rgba(102,76,225,.20), inset 0 1px rgba(255,255,255,.20);
}
.button.primary:hover { box-shadow: 0 14px 32px rgba(102,76,225,.28), inset 0 1px rgba(255,255,255,.22); }

.home-stats { gap: 10px; }
.home-stat {
  border-color: rgba(255,255,255,.06) !important;
  background: linear-gradient(180deg,rgba(17,19,28,.94),rgba(12,14,21,.94)) !important;
  border-radius: 15px !important;
  min-height: 96px;
  transition: transform .14s ease,border-color .14s ease;
}
button.home-stat:hover { transform: translateY(-2px); border-color: rgba(141,107,255,.14) !important; }
.streak-home-stat strong { color: #ffd392; }
.streak-home-stat::after { content:""; position:absolute; right:14px; top:14px; width:7px; height:7px; border-radius:50%; background:#ffb84d; box-shadow:0 0 14px rgba(255,184,77,.5); }

.category-cards { gap: 11px; }
.category-card {
  position:relative;
  overflow:hidden;
  min-height: 112px;
  justify-content:end;
  border-color: rgba(255,255,255,.065);
  background: linear-gradient(145deg,rgba(19,21,31,.96),rgba(12,14,21,.96));
  transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.category-card::before {
  content:"";
  position:absolute;
  width:130px;
  height:130px;
  border-radius:50%;
  right:-42px;
  top:-60px;
  background: radial-gradient(circle,rgba(141,107,255,.18),transparent 67%);
}
.category-card:nth-child(2)::before { background: radial-gradient(circle,rgba(255,103,183,.16),transparent 67%); }
.category-card:nth-child(3)::before { background: radial-gradient(circle,rgba(255,184,77,.15),transparent 67%); }
.category-card:nth-child(4)::before { background: radial-gradient(circle,rgba(92,225,230,.14),transparent 67%); }
.category-card:hover { transform:translateY(-3px); border-color:rgba(141,107,255,.18); box-shadow:0 18px 34px rgba(0,0,0,.17); }
.category-card strong { font-size:18px; }
.category-strip { position:sticky; top:84px; z-index:15; padding:8px; margin:12px -8px 18px; border-radius:14px; background:rgba(7,8,13,.78); backdrop-filter:blur(18px); }
.category-chip { border-radius:10px; min-height:35px; }
.category-chip:hover,.category-chip.active { background:rgba(141,107,255,.10); border-color:rgba(141,107,255,.16); }

.section-head h2 { font-size:19px; letter-spacing:-.035em; }
.section-head p { margin-top:4px; }
.group-grid { gap: 11px; }
.game-tile {
  min-height: 194px;
  padding: 16px;
  border:1px solid rgba(255,255,255,.065) !important;
  border-radius:16px !important;
  background: linear-gradient(155deg,rgba(18,20,29,.96),rgba(12,14,21,.96)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.018) !important;
  transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease !important;
}
.game-tile:hover {
  transform: translateY(-3px) !important;
  border-color: color-mix(in srgb,var(--tile-accent,#8d6bff) 36%,transparent) !important;
  box-shadow: 0 18px 34px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.025) !important;
}
.game-tile::before {
  display:block !important;
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-70px;
  top:-82px;
  border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--tile-accent,#8d6bff) 22%,transparent),transparent 70%);
  pointer-events:none;
}
.game-tile::after { display:none !important; }
.tile-icon {
  width:36px;
  height:36px;
  border-radius:11px;
  border-color: color-mix(in srgb,var(--tile-accent,#8d6bff) 28%,transparent);
  background: color-mix(in srgb,var(--tile-accent,#8d6bff) 9%,transparent);
  color: var(--tile-accent,#a78cff);
}
.tile-copy h3 { font-size:15px; }
.tile-copy p { font-size:10px; max-width:260px; }
.tile-cta { background:rgba(255,255,255,.045); }
.tile-progress { left:16px; right:16px; height:3px; }
.tile-progress i { background:linear-gradient(90deg,var(--tile-accent,#8d6bff),color-mix(in srgb,var(--tile-accent,#8d6bff) 45%,white)); }

.game-tile[data-tone="reaction"], .game-tile[data-tone="reflex"] { --tile-accent:#ff6f8f; }
.game-tile[data-tone="cps"], .game-tile[data-tone="spacebar"] { --tile-accent:#ffb84d; }
.game-tile[data-tone="aim"], .game-tile[data-tone="flick"], .game-tile[data-tone="switching"], .game-tile[data-tone="peek"], .game-tile[data-tone="micro"], .game-tile[data-tone="headshot"], .game-tile[data-tone="precision"] { --tile-accent:#66b9ff; }
.game-tile[data-tone="tracking"], .game-tile[data-tone="movement"] { --tile-accent:#5ce1e6; }
.game-tile[data-tone="decision"], .game-tile[data-tone="memory"] { --tile-accent:#d18cff; }
.game-tile[data-tone="snake"] { --tile-accent:#65dfa0; }
.game-tile[data-tone="flappy"] { --tile-accent:#8d7dff; }
.game-tile[data-tone="pong"] { --tile-accent:#ff8a65; }
.game-tile[data-tone="skilltest"] { --tile-accent:#cba5ff; }

.game-view { max-width: 1320px; }
.game-toolbar { padding: 4px 0; }
.game-toolbar h2 { font-size:21px; }
.game-toolbar-meta > span { background:rgba(255,255,255,.025); border-color:rgba(255,255,255,.055); }
.game-mastery-track { height:4px; background:rgba(255,255,255,.045); }
.game-mastery-track span { background:linear-gradient(90deg,#8d6bff,#54b9ff); }
.game-arena {
  min-height: min(650px,calc(100dvh - 190px));
  border-radius:18px;
  border-color:rgba(255,255,255,.07);
  background:linear-gradient(180deg,#0d1018,#090b11);
  box-shadow:0 22px 50px rgba(0,0,0,.19), inset 0 1px rgba(255,255,255,.022);
}

body[data-active-game="reaction"] .game-arena { box-shadow:0 22px 52px rgba(60,7,20,.12),inset 0 1px rgba(255,255,255,.02); }
body[data-active-game="cps"] .game-arena,body[data-active-game="spacebar"] .game-arena { box-shadow:0 22px 52px rgba(96,57,0,.12),inset 0 1px rgba(255,255,255,.02); }
body[data-active-game="tracking"] .game-arena,body[data-active-game="movement"] .game-arena { box-shadow:0 22px 52px rgba(0,72,80,.12),inset 0 1px rgba(255,255,255,.02); }

.hud-chip { background:rgba(7,9,14,.78); border-color:rgba(255,255,255,.07); backdrop-filter:blur(12px); }
.aim-target { border-color:#67baff; box-shadow:inset 0 0 0 8px #0d1119,inset 0 0 0 11px #5cb6ff,0 0 18px rgba(84,185,255,.12); }
.aim-target.nitro-target {
  border-color:#ffc76f;
  box-shadow:inset 0 0 0 6px #111018,inset 0 0 0 9px #ffb84d,0 0 24px rgba(255,184,77,.32);
  animation:nitroPulse .75s ease-in-out infinite alternate;
}
@keyframes nitroPulse { from{filter:brightness(.95)}to{filter:brightness(1.28)} }
.nitro-pop { color:#ffcd7d !important; transform:scale(1.05); }

.nitro-heat {
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:14px;
  margin-top:14px;
  padding:10px 12px;
  border:1px solid rgba(255,184,77,.10);
  border-radius:12px;
  background:rgba(255,184,77,.035);
}
.nitro-heat div { min-width:90px; }
.nitro-heat small { display:block; color:#8d806d; font-size:7px; letter-spacing:.13em; }
.nitro-heat strong { display:block; margin-top:2px; color:#ffd28d; font-size:10px; letter-spacing:.08em; }
.nitro-heat > i { height:5px; border-radius:999px; background:rgba(255,255,255,.06); overflow:hidden; }
.nitro-heat > i span { display:block; height:100%; width:0; border-radius:inherit; background:linear-gradient(90deg,#ff9e4d,#ffd66e); transition:width .08s linear; }
.upgraded-click-zone.overdrive { background:radial-gradient(circle at center,rgba(255,184,77,.13),transparent 58%) !important; }
.upgraded-click-zone.overdrive .click-command { color:#ffd18a; text-shadow:0 0 24px rgba(255,184,77,.22); }
.upgraded-click-zone.pulse-boost { animation:clickBoost .18s ease; }
@keyframes clickBoost { 50%{transform:scale(.993);filter:brightness(1.16)} }

.reaction-attempt { grid-template-columns:32px 1fr auto !important; }
.reaction-attempt em { font-style:normal; font-size:9px; font-weight:800; letter-spacing:.08em; color:#777b8d; }
.reaction-attempt.grade-splus em,.reaction-attempt.grade-s em { color:#7fe7c2; }
.reaction-attempt.grade-a em { color:#7ac8ff; }
.reaction-attempt.grade-b em { color:#c1a8ff; }
.reaction-attempt.grade-c em { color:#ffc375; }

.result-card-upgraded {
  border-radius:20px;
  border-color:rgba(255,255,255,.09);
  background:linear-gradient(180deg,#121520,#0c0e15);
  box-shadow:0 34px 90px rgba(0,0,0,.48);
}
.result-primary { letter-spacing:-.075em; }
.result-performance { background:rgba(92,225,230,.06); border-color:rgba(92,225,230,.12); color:#8ceef0; }
.result-progress-card { background:rgba(255,255,255,.025); }
.result-progress-card.streak-card.hot { border-color:rgba(255,184,77,.16); background:rgba(255,184,77,.045); }
.result-progress-card.streak-card.hot b { color:#ffd18a; }
.result-progression-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }

.panel,.achievement-card,.profile-card,.table-panel,.filter-panel,.setting-row {
  border-color:rgba(255,255,255,.06) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.015);
}

@media (max-width: 1280px) {
  .app-shell { grid-template-columns: 184px minmax(0,1fr); }
  .content { padding-left:22px; padding-right:22px; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns:1fr; }
  .sidebar { backdrop-filter:none; }
  .category-strip { top:0; }
  .game-arena { min-height:520px; }
  .result-progression-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 700px) {
  .content { padding:16px 14px 48px; }
  .topbar { padding:0 14px; }
  .hero { border-radius:16px !important; }
  .hero h2 { font-size:38px; }
  .result-progression-grid { grid-template-columns:1fr; }
}

/* 3.0 unique trainer identities */
.trainer-arena {
  position: relative;
  min-height: min(650px, calc(100dvh - 190px));
  overflow: hidden;
  border-radius: 18px;
  background: #0b0e15;
}
.trainer-grid {
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:36px 36px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.75),transparent 90%);
}
.trainer-footer {
  position:absolute; z-index:6; left:18px; right:18px; bottom:16px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:36px; padding:0 12px;
  border:1px solid rgba(255,255,255,.055); border-radius:11px;
  background:rgba(7,9,14,.76); backdrop-filter:blur(12px);
}
.trainer-footer span { color:var(--muted-2); font-size:8px; letter-spacing:.12em; }
.trainer-footer strong { font-size:10px; letter-spacing:.08em; }

/* Flick */
.flick-arena { background:radial-gradient(circle at 50% 54%,rgba(80,160,255,.07),transparent 38%),linear-gradient(180deg,#0b1018,#090b11); }
.flick-centre {
  position:absolute; z-index:4; left:50%; top:54%; width:78px; height:78px; transform:translate(-50%,-50%);
  border-radius:50%; border:1px solid rgba(102,185,255,.28); color:#7cc4ff; background:rgba(74,158,230,.055);
  box-shadow:inset 0 0 0 14px rgba(9,13,20,.78),0 0 0 1px rgba(255,255,255,.025); cursor:crosshair;
}
.flick-centre.ready { border-color:rgba(124,196,255,.72); box-shadow:inset 0 0 0 14px rgba(9,13,20,.78),0 0 34px rgba(76,169,255,.18); }
.flick-centre span { font-size:8px; font-weight:800; letter-spacing:.1em; }
.flick-target {
  position:absolute; z-index:5; width:48px; height:48px; margin:-24px; border-radius:50%; cursor:crosshair;
  border:2px solid #70c5ff; background:rgba(91,183,255,.08); box-shadow:inset 0 0 0 10px #0c1118,inset 0 0 0 13px #67baff,0 0 24px rgba(83,183,255,.18);
  animation:flickSpawn .16s ease-out;
}
.flick-target i { position:absolute; inset:50% auto auto 50%; width:4px; height:4px; border-radius:50%; background:white; transform:translate(-50%,-50%); }
@keyframes flickSpawn { from{opacity:0;transform:scale(.55)} to{opacity:1;transform:scale(1)} }

/* Tracking */
.tracking-arena { background:radial-gradient(circle at 50% 45%,rgba(92,225,230,.07),transparent 42%),linear-gradient(180deg,#0a1115,#081013); cursor:crosshair; }
.tracking-target.premium-track {
  position:absolute; z-index:4; width:62px; height:62px; margin:-31px; border-radius:50%; pointer-events:none;
  border:2px solid rgba(94,232,238,.8); background:radial-gradient(circle,#eaffff 0 5px,rgba(92,225,230,.36) 6px 18px,rgba(92,225,230,.08) 19px 100%);
  box-shadow:inset 0 0 0 11px rgba(7,14,17,.86),0 0 28px rgba(92,225,230,.2);
}
.tracking-target.premium-track i { position:absolute; inset:8px; border:1px dashed rgba(255,255,255,.16); border-radius:50%; }
.tracking-lockbar { position:absolute; z-index:4; left:50%; bottom:62px; width:min(360px,54%); height:5px; transform:translateX(-50%); background:rgba(255,255,255,.05); border-radius:999px; overflow:hidden; }
.tracking-lockbar span { display:block; width:0; height:100%; background:linear-gradient(90deg,#49c4cb,#8ff7ef); border-radius:inherit; }

/* Switching */
.switching-arena { background:radial-gradient(circle at 50% 48%,rgba(131,110,255,.07),transparent 46%),linear-gradient(180deg,#0d0e18,#0a0b13); }
.switch-cluster { position:absolute; inset:0; }
.switch-target {
  position:absolute; z-index:4; width:54px; height:54px; margin:-27px; border-radius:50%; border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.035); color:#707488; cursor:crosshair; transition:transform .12s ease,border-color .12s ease,background .12s ease,opacity .12s ease;
}
.switch-target span { font-size:12px; font-weight:850; }
.switch-target.active { transform:scale(1.16); color:white; border-color:#a98cff; background:rgba(141,107,255,.14); box-shadow:0 0 26px rgba(141,107,255,.17),inset 0 0 0 10px rgba(8,9,14,.62); }
.switch-target.done { opacity:.16; transform:scale(.74); pointer-events:none; }
.switch-target.wrong { border-color:#ff6f8f; background:rgba(255,83,118,.12); }

/* Peek */
.peek-arena { background:linear-gradient(90deg,#080a10 0 18%,#0d1018 18% 82%,#080a10 82%); }
.peek-cover { position:absolute; z-index:3; top:92px; bottom:56px; width:20%; display:flex; align-items:flex-end; padding:16px; color:#515665; font-size:8px; letter-spacing:.15em; background:linear-gradient(180deg,#12151d,#0c0e14); border-color:rgba(255,255,255,.055); }
.peek-cover.left { left:0; border-right:1px solid rgba(255,255,255,.06); }
.peek-cover.right { right:0; justify-content:flex-end; border-left:1px solid rgba(255,255,255,.06); }
.peek-stage { position:absolute; inset:90px 0 52px; overflow:hidden; }
.peek-target {
  position:absolute; z-index:2; width:48px; height:72px; border:1px solid rgba(255,111,143,.36); border-radius:24px 24px 12px 12px;
  background:linear-gradient(180deg,rgba(255,111,143,.2),rgba(255,111,143,.06)); opacity:0; cursor:crosshair; transition:transform .12s ease,opacity .12s ease;
}
.peek-target.left { left:20%; transform:translateX(-75%); }
.peek-target.right { right:20%; transform:translateX(75%); }
.peek-target.visible { opacity:1; transform:translateX(0); }
.peek-target span { position:absolute; left:50%; top:13px; width:18px; height:18px; transform:translateX(-50%); border-radius:50%; background:#ff819b; box-shadow:0 0 0 5px rgba(255,255,255,.05); }

/* Micro */
.micro-arena { background:radial-gradient(circle at 50% 52%,rgba(111,201,255,.055),transparent 26%),linear-gradient(180deg,#0b0f16,#090b11); cursor:crosshair; }
.micro-zone { position:absolute; left:50%; top:52%; width:300px; height:300px; transform:translate(-50%,-50%); border:1px dashed rgba(111,201,255,.08); border-radius:50%; box-shadow:0 0 0 70px rgba(103,186,255,.012),0 0 0 140px rgba(103,186,255,.008); }
.micro-crosshair { position:absolute; z-index:3; width:20px; height:20px; margin:-10px; pointer-events:none; }
.micro-crosshair::before,.micro-crosshair::after { content:""; position:absolute; background:rgba(117,202,255,.22); }
.micro-crosshair::before { width:20px; height:1px; top:10px; }
.micro-crosshair::after { width:1px; height:20px; left:10px; }
.micro-target { position:absolute; z-index:4; margin:-8px; border-radius:50%; border:1px solid #8bd2ff; background:#bde8ff; box-shadow:0 0 0 5px rgba(105,190,255,.1),0 0 20px rgba(105,190,255,.18); cursor:crosshair; }

/* Reflex */
.reflex-arena { background:radial-gradient(circle at center,rgba(255,98,135,.045),transparent 38%),linear-gradient(180deg,#120a0f,#0a090e); cursor:crosshair; }
.reflex-vignette { position:absolute; inset:0; box-shadow:inset 0 0 120px rgba(0,0,0,.55); pointer-events:none; }
.reflex-centre { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); text-align:center; pointer-events:none; }
.reflex-centre small { display:block; color:#6e6570; font-size:9px; letter-spacing:.14em; }
.reflex-centre strong { display:block; margin-top:8px; font-size:54px; letter-spacing:-.06em; color:#f5eef2; }
.reflex-target { position:absolute; z-index:5; width:70px; height:70px; margin:-35px; border-radius:16px; border:1px solid rgba(255,111,143,.62); background:rgba(255,89,126,.14); color:white; box-shadow:0 0 34px rgba(255,89,126,.22); cursor:crosshair; animation:reflexIn .08s linear; }
.reflex-target span { font-size:9px; font-weight:900; letter-spacing:.12em; }
@keyframes reflexIn { from{opacity:0;transform:scale(.82)} to{opacity:1;transform:scale(1)} }

/* Movement */
.movement-arena { background:linear-gradient(180deg,#091216,#071014); }
.movement-lane { position:absolute; left:20px; right:20px; bottom:58px; height:58px; border-top:1px solid rgba(92,225,230,.09); background:linear-gradient(180deg,transparent,rgba(92,225,230,.025)); }
.movement-player { position:absolute; z-index:3; left:50%; bottom:11px; width:20px; height:20px; margin-left:-10px; border-radius:50%; background:#dffeff; box-shadow:0 0 0 6px rgba(92,225,230,.12),0 0 22px rgba(92,225,230,.18); }
.movement-cover { position:absolute; bottom:0; width:80px; height:48px; border-radius:8px 8px 0 0; background:#111a1d; border:1px solid rgba(92,225,230,.06); }
.movement-cover.c1 { left:22%; }.movement-cover.c2 { right:22%; }
.movement-callout { position:absolute; z-index:4; left:50%; top:106px; transform:translateX(-50%); min-width:120px; padding:8px 12px; text-align:center; border-radius:999px; font-size:9px; font-weight:850; letter-spacing:.12em; color:#92f0f2; border:1px solid rgba(92,225,230,.13); background:rgba(92,225,230,.05); }
.movement-callout.left::before { content:'← '; }.movement-callout.right::after { content:' →'; }
.unique-move-target { position:absolute; z-index:5; width:46px; height:46px; margin:-23px; border-radius:50%; border:2px solid #68e8e6; background:rgba(92,225,230,.08); box-shadow:inset 0 0 0 9px #0a1215,inset 0 0 0 12px #5ce1e6,0 0 20px rgba(92,225,230,.14); cursor:crosshair; }

/* Headshot */
.headshot-arena { background:linear-gradient(180deg,#0b0f16 0 62%,#0f1217 62% 100%); }
.headshot-horizon { position:absolute; left:0; right:0; top:62%; height:1px; background:rgba(255,255,255,.05); box-shadow:0 55px rgba(255,255,255,.025),0 -55px rgba(255,255,255,.025); }
.hs-enemy { position:absolute; z-index:4; width:54px; height:116px; margin-left:-27px; border:0; background:transparent; cursor:crosshair; }
.hs-head { position:absolute; left:50%; top:0; width:24px; height:24px; transform:translateX(-50%); border-radius:50%; background:#ff8b9f; box-shadow:0 0 0 5px rgba(255,111,143,.08); }
.hs-body { position:absolute; left:50%; top:28px; width:42px; height:54px; transform:translateX(-50%); border-radius:12px 12px 7px 7px; background:rgba(255,255,255,.15); }
.hs-legs { position:absolute; left:50%; top:82px; width:34px; height:34px; transform:translateX(-50%); border-left:9px solid rgba(255,255,255,.12); border-right:9px solid rgba(255,255,255,.12); }

/* Precision */
.precision-arena { display:grid; place-items:center; background:radial-gradient(circle at center,rgba(101,223,160,.045),transparent 38%),linear-gradient(180deg,#09110d,#080c0a); }
.precision-grid { width:min(520px,72%); display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-top:30px; }
.precision-cell { aspect-ratio:1; border:1px solid rgba(255,255,255,.045); border-radius:12px; background:rgba(255,255,255,.018); display:grid; place-items:center; cursor:crosshair; }
.precision-cell span { width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.04); }
.precision-cell.live { border-color:rgba(101,223,160,.15); background:rgba(101,223,160,.035); }
.precision-cell.live span { width:17px; height:17px; background:#79e5ad; box-shadow:0 0 0 5px rgba(101,223,160,.08),0 0 20px rgba(101,223,160,.18); }
.precision-cell.cleared { opacity:.2; }.precision-cell.wrong { border-color:#ff6f8f; background:rgba(255,89,126,.07); }

/* Decision */
.decision-arena { display:grid; place-items:center; background:radial-gradient(circle at center,rgba(209,140,255,.05),transparent 44%),linear-gradient(180deg,#100c15,#0b0a10); }
.decision-board { width:min(720px,78%); display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:30px; }
.decision-card { min-height:190px; border:1px solid rgba(255,255,255,.06); border-radius:16px; background:rgba(255,255,255,.025); color:#d9d6df; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; cursor:crosshair; transition:transform .12s ease,opacity .12s ease,border-color .12s ease; }
.decision-card:hover { transform:translateY(-2px); }
.decision-card.enemy { border-color:rgba(255,100,127,.14); background:rgba(255,90,120,.035); }.decision-card.ally { border-color:rgba(91,214,162,.13); background:rgba(91,214,162,.03); }
.decision-avatar { display:grid; place-items:center; width:54px; height:54px; border-radius:50%; font-size:26px; background:rgba(255,255,255,.035); }
.decision-card.enemy .decision-avatar { color:#ff8099; box-shadow:inset 0 0 0 1px rgba(255,100,127,.22); }.decision-card.ally .decision-avatar { color:#76e1ae; box-shadow:inset 0 0 0 1px rgba(91,214,162,.22); }
.decision-card strong { font-size:12px; letter-spacing:.08em; }.decision-card small { font-size:8px; color:var(--muted-2); letter-spacing:.1em; }
.decision-card.cleared,.decision-card.safe,.decision-card.expired { opacity:.22; pointer-events:none; transform:scale(.96); }.decision-card.friendly-fire { border-color:#ff6f8f; opacity:.55; }
.decision-countdown { position:absolute; left:50%; bottom:63px; width:min(500px,58%); height:4px; transform:translateX(-50%); background:rgba(255,255,255,.05); border-radius:999px; overflow:hidden; }
.decision-countdown::after { content:""; display:block; height:100%; width:100%; background:linear-gradient(90deg,#d18cff,#ff7fa1); transform-origin:left; }
.decision-countdown.run::after { animation:decisionLife var(--decision-life,1800ms) linear forwards; }
@keyframes decisionLife { to{transform:scaleX(0)} }

/* Skill test */
.skilltest-shell { min-height:min(650px,calc(100dvh - 190px)); display:flex; flex-direction:column; border-radius:18px; overflow:hidden; background:linear-gradient(180deg,#0d1018,#090b11); }
.skilltest-intro { margin:auto; width:min(560px,86%); text-align:center; }.skilltest-intro h3 { margin:8px 0 6px; font-size:40px; letter-spacing:-.055em; }.skilltest-intro p { color:var(--muted); line-height:1.6; }
.skilltest-progress { display:grid; grid-template-columns:repeat(5,1fr); gap:6px; padding:14px; background:rgba(255,255,255,.018); border-bottom:1px solid rgba(255,255,255,.05); }
.skilltest-progress span { min-height:42px; display:grid; place-items:center; align-content:center; border-radius:10px; color:#5d6170; font-weight:850; font-size:11px; background:rgba(255,255,255,.02); }.skilltest-progress span small { display:block; margin-top:2px; font-size:7px; letter-spacing:.08em; }.skilltest-progress span.active { color:white; background:rgba(141,107,255,.09); box-shadow:inset 0 0 0 1px rgba(141,107,255,.15); }.skilltest-progress span.done { color:#72dfab; }
.skilltest-stage { position:relative; flex:1; min-height:520px; display:grid; place-items:center; margin:14px; border:1px solid rgba(255,255,255,.05); border-radius:16px; overflow:hidden; background:rgba(255,255,255,.012); }
button.skilltest-stage { width:calc(100% - 28px); color:inherit; }.skilltest-stage > small { position:absolute; top:16px; left:16px; color:var(--muted-2); font-size:8px; letter-spacing:.12em; }.skilltest-stage.reaction strong { font-size:58px; }.skilltest-stage.reaction.live { background:radial-gradient(circle,rgba(91,214,162,.13),transparent 45%); }
.skill-mini-grid { width:min(420px,70%); display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }.skill-mini-grid button { aspect-ratio:1; border-radius:12px; border:1px solid rgba(255,255,255,.05); background:rgba(255,255,255,.02); }.skill-mini-grid button.live::after { content:""; display:block; width:16px; height:16px; margin:auto; border-radius:50%; background:#77e3ad; box-shadow:0 0 18px rgba(101,223,160,.22); }.skill-mini-grid button.done { opacity:.2; }.skill-mini-grid button.wrong { border-color:#ff6f8f; }
.skilltest-stage.tracking .tracking-target { position:absolute; }.skilltest-stage.switching #skillSwitchTargets { position:absolute; inset:0; }.skill-decision { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; width:min(560px,75%); }.skill-decision button { min-height:150px; border-radius:14px; border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.025); color:white; font-size:10px; font-weight:850; letter-spacing:.1em; }.skill-decision button.enemy { border-color:rgba(255,100,127,.16); color:#ff91a6; }.skill-decision button.ally { border-color:rgba(91,214,162,.14); color:#83e8b8; }.skill-decision button.done,.skill-decision button.wrong { opacity:.25; }

@media (max-width: 900px) {
  .trainer-arena,.skilltest-shell { min-height:560px; }
  .decision-board { width:88%; grid-template-columns:repeat(2,1fr); }.decision-card { min-height:125px; }
  .precision-grid { width:82%; gap:8px; }
  .skilltest-progress span small { display:none; }
}
@media (max-width: 620px) {
  .aim-hud.upgraded-hud { flex-wrap:wrap; }.hud-cluster { flex-wrap:wrap; }.hud-chip { min-width:64px; }
  .trainer-footer span { display:none; }.trainer-footer { justify-content:flex-end; }
  .flick-centre { width:66px; height:66px; }.decision-board { grid-template-columns:1fr 1fr; gap:8px; }.decision-card { min-height:105px; }
  .skilltest-stage { min-height:450px; }.skilltest-intro h3 { font-size:32px; }
}
.tile-top { display:flex; align-items:center; justify-content:space-between; gap:10px; position:relative; z-index:2; }
.tile-tag { font-size:7px; font-weight:850; letter-spacing:.12em; color:color-mix(in srgb,var(--tile-accent,#8d6bff) 75%,white); border:1px solid color-mix(in srgb,var(--tile-accent,#8d6bff) 20%,transparent); background:color-mix(in srgb,var(--tile-accent,#8d6bff) 6%,transparent); border-radius:999px; padding:5px 7px; white-space:nowrap; }
.spacebar-mode .nitro-heat { border-color:rgba(92,225,230,.12); background:rgba(92,225,230,.035); }
.spacebar-mode .nitro-heat small { color:#6e8c91; }.spacebar-mode .nitro-heat strong { color:#8ceef0; }
.spacebar-mode .nitro-heat > i span { background:linear-gradient(90deg,#4fc5cd,#8cf1eb); }
.spacebar-mode .upgraded-click-zone { background:radial-gradient(circle at center,rgba(92,225,230,.05),transparent 55%); }
.spacebar-mode .upgraded-click-zone.overdrive { background:radial-gradient(circle at center,rgba(92,225,230,.12),transparent 58%) !important; }
.spacebar-mode .click-command { color:#9deff1; }
.cps-mode .click-command { color:#ffd18a; }

/* 3.0.2 stability layer: keep gameplay inside the game pane */
.sidebar { position: sticky; top: 0; z-index: 40; }
.topbar { z-index: 30; }
.main-shell { position: relative; z-index: 1; }
.game-view { position: relative; z-index: 1; }
#gameRoot { position: relative; z-index: 1; isolation: isolate; }
#gameBack, #gameRestart, #gamePause { position: relative; z-index: 5; }
