:root {
  --gold: #fbb800;
  --gold-light: #ffd34d;
  --gold-glow: rgba(251, 184, 0, 0.45);
  --bg: #060608;
  --surface: rgba(14, 14, 18, 0.88);
  --border: rgba(251, 184, 0, 0.18);
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --danger: #ff4d6a;
  --success: #4ade80;
  --wait-red: rgba(255, 77, 106, 0.12);
  --go-green: rgba(74, 222, 128, 0.15);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Noto Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(251, 184, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 85% 75%, rgba(120, 80, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(251, 184, 0, 0.06) 0%, transparent 45%);
}

.screen-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.08s ease-out;
}

.screen-flash--go { background: rgba(74, 222, 128, 0.18); }
.screen-flash--hit { background: rgba(251, 184, 0, 0.15); }
.screen-flash.is-on { opacity: 1; }

.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

/* Site pill header (matches game.html / main site) */
.vrbee-header {
  position: relative;
  z-index: 20;
  padding: 20px 16px 0;
}

.vrbee-header__area {
  width: 100%;
}

.vrbee-header__shell {
  width: min(70%, 920px);
  margin: 0 auto;
}

.vrbee-header__wrap {
  background: #fff;
  border-radius: 35px;
  padding: 0 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.vrbee-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}

.vrbee-header__logo {
  flex: 0 0 auto;
}

.vrbee-header__logo img {
  display: block;
  max-height: 45px;
  width: auto;
}

.vrbee-header__menu {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.vrbee-header__links {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vrbee-header__link {
  display: flex;
  align-items: center;
  padding: 20px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  transition: color 0.2s ease;
}

.vrbee-header__link:hover,
.vrbee-header__link:focus-visible {
  color: #111;
}

.vrbee-header__link--gold {
  color: var(--gold);
}

.vrbee-header__link--gold:hover,
.vrbee-header__link--gold:focus-visible {
  color: var(--gold-light);
}

.vrbee-header__action {
  flex: 0 0 auto;
}

.vrbee-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 26px;
  border-radius: 40px;
  background: var(--gold);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vrbee-header__cta:hover,
.vrbee-header__cta:focus-visible {
  background: #fff;
  color: #000;
}

.vrbee-header__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 6px;
}

.site-header__logo img { display: block; height: auto; }

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-switch__btn.is-active {
  background: var(--gold);
  color: #000;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.icon-btn:hover { background: rgba(251, 184, 0, 0.12); }

/* Layout */
.reflex-app {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) 16px 56px;
  min-height: calc(100dvh - 150px);
}

.screen { display: none; animation: fadeUp 0.28s ease; }
.screen--active { display: block; }
.screen--game.screen--active { display: flex; flex-direction: column; gap: 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero */
.hero { text-align: center; padding: clamp(12px, 4vw, 36px) 0; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(251, 184, 0, 0.12);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(30px, 7vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 14px;
}

.hero__title span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 17px);
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 22px;
  min-width: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-pill__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-pill__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
}

.stat-pill__value--sm { font-size: 22px; }

.how-to {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  max-width: 420px;
  text-align: left;
}

.how-to li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
}

.how-to i {
  width: 28px;
  color: var(--gold);
  text-align: center;
  flex-shrink: 0;
}

.hero__hint { margin-top: 16px; font-size: 12px; color: var(--muted); }

.hero__kiosk-touch {
  display: none;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn--primary {
  background: linear-gradient(180deg, var(--gold), #e5a600);
  color: #000;
  box-shadow: 0 8px 28px var(--gold-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px var(--gold-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(251, 184, 0, 0.08);
  border-color: var(--gold);
}

/* HUD */
.hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.hud__left { display: flex; align-items: center; gap: 10px; }

.hud__round { font-size: 14px; color: var(--muted); }
.hud__round strong { color: var(--gold); font-size: 17px; }

.combo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 100, 50, 0.15);
  border: 1px solid rgba(255, 120, 60, 0.35);
  color: #ff9f43;
  font-size: 13px;
  font-weight: 800;
  animation: comboPop 0.25s ease;
}

.combo-badge--hidden { display: none; }

@keyframes comboPop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.hud__times { display: flex; gap: 6px; flex-wrap: wrap; }

.time-chip {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform 0.15s, border-color 0.15s;
}

.time-chip--done { transform: scale(1); }
.time-chip--elite { color: #ffd34d; border-color: rgba(255, 211, 77, 0.5); background: rgba(255, 211, 77, 0.1); }
.time-chip--good { color: var(--gold); border-color: rgba(251, 184, 0, 0.45); background: rgba(251, 184, 0, 0.08); }
.time-chip--ok { color: #e5a600; border-color: rgba(229, 166, 0, 0.35); }
.time-chip--slow { color: var(--muted); }

.time-chip--current {
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  color: var(--gold);
  animation: pulseChip 1s ease infinite;
}

@keyframes pulseChip {
  0%, 100% { box-shadow: 0 0 8px var(--gold-glow); }
  50% { box-shadow: 0 0 16px var(--gold-glow); }
}

.time-chip--false {
  color: var(--danger);
  border-color: rgba(255, 77, 106, 0.4);
}

.progress-wrap {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  margin-bottom: 12px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Arena */
.arena {
  position: relative;
  flex: 1;
  min-height: clamp(300px, 52vh, 460px);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.arena:focus-visible { box-shadow: 0 0 0 2px var(--gold); }

.arena--waiting {
  cursor: wait;
  border-color: rgba(255, 77, 106, 0.35);
  box-shadow: inset 0 0 60px var(--wait-red);
}

.arena--ready {
  cursor: crosshair;
  border-color: rgba(251, 184, 0, 0.4);
  box-shadow: inset 0 0 40px rgba(251, 184, 0, 0.06);
}

.arena--false {
  animation: shake 0.22s ease;
  border-color: rgba(255, 77, 106, 0.6);
}

.arena__flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 1;
}

.arena__flash--wait {
  opacity: 1;
  background: radial-gradient(circle at center, var(--wait-red) 0%, transparent 70%);
  animation: breatheWait 1.2s ease infinite;
}

.arena__flash--go {
  opacity: 1;
  background: radial-gradient(circle at center, var(--go-green) 0%, transparent 65%);
}

@keyframes breatheWait {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.arena__message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}

.arena__message--hidden { opacity: 0; }

.arena__message-icon { font-size: 42px; color: var(--gold); opacity: 0.5; }

#messageText {
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  text-align: center;
  padding: 0 20px;
}

.arena__message.countdown #messageText,
.arena__message.go #messageText {
  font-size: clamp(56px, 14vw, 100px);
  text-shadow: 0 0 40px var(--gold-glow);
}

.arena__message.countdown #messageText { color: var(--gold); }
.arena__message.go #messageText { color: var(--success); }

.hit-popup {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 800;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hit-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hit-popup--elite { color: #ffd34d; text-shadow: 0 0 24px rgba(255, 211, 77, 0.6); }
.hit-popup--good { color: var(--gold); text-shadow: 0 0 20px var(--gold-glow); }
.hit-popup--ok { color: #e5a600; }
.hit-popup--slow { color: var(--muted); }

.arena__tip {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* Target */
.target {
  position: absolute;
  width: clamp(56px, 14vw, 88px);
  height: clamp(56px, 14vw, 88px);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  transform: translate(-50%, -50%) scale(calc(0 * var(--target-scale, 1)));
  animation: targetPop 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 5;
}

@keyframes targetPop {
  to { transform: translate(-50%, -50%) scale(var(--target-scale, 1)); }
}

.target__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  animation: pulseRing 0.5s ease infinite;
  box-shadow: 0 0 20px var(--gold-glow);
}

@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.88; }
}

.target__core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-light), var(--gold));
  color: #000;
  font-size: clamp(22px, 5vw, 30px);
  box-shadow: 0 4px 18px var(--gold-glow);
}

.target--hit { animation: targetHit 0.12s ease forwards; }

@keyframes targetHit {
  to { transform: translate(-50%, -50%) scale(calc(var(--target-scale, 1) * 1.5)); opacity: 0; }
}

/* Results */
.results { text-align: center; margin-bottom: 32px; }

.results__rank {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}

.results__rank--maestro { background: rgba(255, 211, 77, 0.15); color: #ffd34d; border-color: rgba(255, 211, 77, 0.35); }
.results__rank--fast { background: rgba(251, 184, 0, 0.15); color: var(--gold); }
.results__rank--good { background: rgba(229, 166, 0, 0.12); color: #e5a600; }
.results__rank--starter { background: rgba(74, 222, 128, 0.12); color: var(--success); border-color: rgba(74, 222, 128, 0.3); }

.results__rank-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.results__score { margin-bottom: 20px; }

.results__score-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.results__score-value {
  font-size: clamp(52px, 11vw, 80px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(180deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results__score-unit { font-size: 22px; color: var(--muted); font-weight: 600; }

.results__breakdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.breakdown-item {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
  min-width: 72px;
}

.breakdown-item strong { color: var(--gold); display: block; font-size: 17px; }
.breakdown-item span { color: var(--muted); font-size: 10px; }

.results__record {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  color: var(--success);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
  animation: fadeUp 0.4s ease;
}

.prize-card {
  text-align: left;
  margin: 0 auto 24px;
  max-width: 420px;
  padding: 18px 20px;
  background: linear-gradient(145deg, rgba(251, 184, 0, 0.12), rgba(6, 6, 8, 0.6));
  border: 1px solid rgba(251, 184, 0, 0.35);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(251, 184, 0, 0.08);
  animation: fadeUp 0.45s ease;
}

.prize-card--loading {
  opacity: 0.85;
}

.prize-card--loading .prize-card__code {
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.prize-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.prize-card__header > i {
  font-size: 28px;
  color: var(--gold);
  margin-top: 2px;
}

.prize-card__label {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.prize-card__name {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.prize-card__bonus {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: 8px;
  color: var(--success);
  font-size: 13px;
  font-weight: 600;
}

.prize-card__code-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.prize-card__code-label {
  flex: 1 1 100%;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prize-card__code {
  flex: 1;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(251, 184, 0, 0.4);
  border-radius: 10px;
}

.prize-card__copy {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--gold);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.prize-card__copy:hover {
  background: rgba(251, 184, 0, 0.12);
  border-color: rgba(251, 184, 0, 0.4);
}

.prize-card__copy.is-copied {
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.45);
}

.prize-card__hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: #ccc;
  line-height: 1.45;
}

.prize-card__disclaimer {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.results__chart-wrap {
  max-width: 360px;
  margin: 0 auto 24px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.results__chart {
  display: block;
  width: 100%;
  height: 120px;
}

.reflex-insight {
  text-align: left;
  margin: 24px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.reflex-insight h2 {
  font-size: 15px;
  margin: 0 0 18px;
  color: var(--gold);
}

.reflex-insight h2 i { margin-right: 8px; }

.benchmark__title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

.benchmark__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--success) 0%, var(--gold) 45%, var(--danger) 100%);
  margin-bottom: 28px;
}

.benchmark__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.benchmark__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.benchmark__marker--you .benchmark__dot {
  width: 18px;
  height: 18px;
  background: var(--gold);
  border-color: #fff;
  box-shadow: 0 0 12px var(--gold-glow);
}

.benchmark__marker--ref .benchmark__dot {
  background: rgba(255,255,255,0.35);
  width: 10px;
  height: 10px;
}

.benchmark__label {
  position: absolute;
  top: 16px;
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.benchmark__marker--you .benchmark__label {
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
}

.benchmark__scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: -18px;
  margin-bottom: 20px;
}

.profile-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-stat__head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.profile-stat__head strong { color: var(--gold); }

.profile-stat__track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.profile-stat__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reflex-tip {
  margin: 0;
  padding: 14px 16px;
  background: rgba(251, 184, 0, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.reflex-tip i {
  color: var(--gold);
  margin-right: 8px;
}

.reflex-percentile {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.results__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

/* Leaderboard */
.leaderboard {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.leaderboard h3 {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--gold);
}

.leaderboard h3 i { margin-right: 8px; }

.leaderboard__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}

.leaderboard__list li:last-child { border-bottom: none; }

.leaderboard__list .rank {
  width: 26px;
  font-weight: 800;
  color: var(--muted);
}

.leaderboard__list .rank--1 { color: #ffd34d; }
.leaderboard__list .rank--2 { color: #c0c0c0; }
.leaderboard__list .rank--3 { color: #cd7f32; }
.leaderboard__list .score { font-weight: 700; color: var(--gold); }
.leaderboard__list .date { font-size: 11px; color: var(--muted); }

.leaderboard__empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 10px;
  list-style: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 991px) {
  .vrbee-header__shell { width: min(92%, 920px); }
  .vrbee-header__link { padding: 18px 14px; font-size: 13px; }
}

@media (max-width: 640px) {
  .vrbee-header { padding-top: 14px; }
  .vrbee-header__shell { width: 100%; }
  .vrbee-header__wrap { border-radius: 28px; padding: 0 14px; }
  .vrbee-header__nav { min-height: 64px; gap: 8px; }
  .vrbee-header__menu { justify-content: flex-start; }
  .vrbee-header__link { padding: 12px 10px; font-size: 12px; }
  .vrbee-header__cta { min-height: 40px; padding: 10px 16px; font-size: 12px; }
  .vrbee-header__logo img { max-height: 38px; }
  .results__actions .btn { flex: 1 1 calc(50% - 5px); min-width: 140px; }
  .how-to { font-size: 13px; }
}

@media (max-width: 400px) {
  .time-chip { width: 36px; height: 36px; font-size: 10px; }
}

/* ===== TV kiosk — 43" portrait / rotated display ===== */
html.tv-kiosk.tv-kiosk--rotate-90,
html.tv-kiosk.tv-kiosk--rotate-270 {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

html.tv-kiosk.tv-kiosk--rotate-90 body,
html.tv-kiosk.tv-kiosk--rotate-270 body {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vh;
  width: 100dvh;
  height: 100vw;
  height: 100dvw;
  max-width: 100dvh;
  max-height: 100dvw;
  margin: 0;
  transform-origin: center center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

html.tv-kiosk.tv-kiosk--rotate-90 body {
  transform: translate(-50%, -50%) rotate(90deg);
}

html.tv-kiosk.tv-kiosk--rotate-270 body {
  transform: translate(-50%, -50%) rotate(-90deg);
}

html.tv-kiosk {
  font-size: 18px;
}

html.tv-kiosk .vrbee-header {
  padding: 14px 24px 0;
}

html.tv-kiosk .vrbee-header__shell {
  width: min(88%, 1100px);
}

html.tv-kiosk .vrbee-header__logo img {
  max-height: 52px;
}

html.tv-kiosk .vrbee-header__menu {
  display: none;
}

html.tv-kiosk .vrbee-header__action {
  display: none;
}

html.tv-kiosk .lang-switch__btn {
  font-size: 13px;
  padding: 8px 14px;
}

html.tv-kiosk .icon-btn {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

html.tv-kiosk .reflex-app {
  max-width: none;
  width: 100%;
  padding: 12px 28px 28px;
  min-height: calc(100dvh - 88px);
}

html.tv-kiosk .hero {
  padding: clamp(24px, 5vh, 48px) 0;
}

html.tv-kiosk .hero__badge {
  font-size: 15px;
  padding: 10px 22px;
  margin-bottom: 28px;
}

html.tv-kiosk .hero__title {
  font-size: clamp(40px, 7vh, 72px);
  margin-bottom: 20px;
}

html.tv-kiosk .hero__sub {
  font-size: clamp(18px, 2.8vh, 24px);
  max-width: 640px;
  margin-bottom: 32px;
}

html.tv-kiosk .stat-pill {
  min-width: 160px;
  padding: 16px 28px;
}

html.tv-kiosk .stat-pill__value {
  font-size: 34px;
}

html.tv-kiosk .how-to li {
  font-size: 18px;
  padding: 14px 18px;
}

html.tv-kiosk .how-to i {
  width: 36px;
  font-size: 20px;
}

html.tv-kiosk .btn {
  padding: 20px 40px;
  font-size: 17px;
  min-height: 68px;
}

html.tv-kiosk .btn--kiosk-start {
  min-width: min(420px, 90vw);
  min-height: 80px;
  font-size: 20px;
  animation: kioskPulse 2.4s ease-in-out infinite;
}

@keyframes kioskPulse {
  0%, 100% { box-shadow: 0 8px 28px var(--gold-glow); transform: scale(1); }
  50% { box-shadow: 0 16px 48px var(--gold-glow); transform: scale(1.03); }
}

html.tv-kiosk .hero__kiosk-touch {
  display: block;
  margin: 20px 0 0;
  font-size: clamp(22px, 3.5vh, 32px);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.02em;
}

html.tv-kiosk .hero__hint {
  display: none;
}

html.tv-kiosk .screen--game.screen--active {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 96px);
}

html.tv-kiosk .hud__round {
  font-size: 20px;
}

html.tv-kiosk .hud__round strong {
  font-size: 26px;
}

html.tv-kiosk .time-chip {
  width: 56px;
  height: 56px;
  font-size: 14px;
  border-radius: 12px;
}

html.tv-kiosk .combo-badge {
  font-size: 18px;
  padding: 8px 16px;
}

html.tv-kiosk .progress-wrap {
  height: 8px;
  margin-bottom: 16px;
}

html.tv-kiosk .arena {
  flex: 1;
  min-height: clamp(420px, 58vh, 920px);
  border-width: 2px;
  border-radius: 20px;
}

html.tv-kiosk .arena__message-icon {
  font-size: 64px;
}

html.tv-kiosk #messageText {
  font-size: clamp(24px, 4vh, 36px);
}

html.tv-kiosk .arena__message.countdown #messageText,
html.tv-kiosk .arena__message.go #messageText {
  font-size: clamp(80px, 18vh, 140px);
}

html.tv-kiosk .hit-popup {
  font-size: clamp(48px, 10vh, 80px);
}

html.tv-kiosk .target__ring {
  border-width: 5px;
  inset: -10px;
}

html.tv-kiosk .target__core {
  font-size: clamp(32px, 6vh, 48px);
}

html.tv-kiosk .arena__tip {
  font-size: 16px;
  margin-top: 16px;
}

html.tv-kiosk .results__rank {
  font-size: 24px;
  padding: 14px 28px;
}

html.tv-kiosk .results__rank-desc {
  font-size: 18px;
  max-width: 640px;
}

html.tv-kiosk .results__score-label {
  font-size: 16px;
}

html.tv-kiosk .results__score-value {
  font-size: clamp(64px, 12vh, 96px);
}

html.tv-kiosk .results__score-unit {
  font-size: 32px;
}

html.tv-kiosk .breakdown-item strong {
  font-size: 24px;
}

html.tv-kiosk .breakdown-item span {
  font-size: 13px;
}

html.tv-kiosk .results__record {
  font-size: 18px;
  padding: 12px 24px;
}

html.tv-kiosk .prize-card {
  max-width: none;
  padding: 24px 28px;
}

html.tv-kiosk .prize-card__name {
  font-size: clamp(22px, 3.5vh, 28px);
}

html.tv-kiosk .prize-card__code {
  font-size: clamp(32px, 6vh, 48px);
  padding: 16px 20px;
}

html.tv-kiosk .prize-card__copy {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

html.tv-kiosk .prize-card__hint {
  font-size: 17px;
}

html.tv-kiosk .reflex-insight {
  padding: 24px;
}

html.tv-kiosk .reflex-insight h2 {
  font-size: 20px;
}

html.tv-kiosk .reflex-tip {
  font-size: 17px;
}

html.tv-kiosk .leaderboard {
  display: none;
}

html.tv-kiosk .results__actions {
  gap: 16px;
}

html.tv-kiosk .results__actions .btn--ghost:not(#playAgainBtn) {
  display: none;
}

html.tv-kiosk .results__actions #playAgainBtn {
  flex: 1 1 100%;
  min-height: 76px;
  font-size: 20px;
}

html.tv-kiosk .site-footer {
  font-size: 13px;
  padding: 16px;
}

/* Native portrait (OS already vertical) — no CSS rotate */
@media (orientation: portrait) and (min-height: 900px) {
  html.tv-kiosk:not(.tv-kiosk--rotate-90):not(.tv-kiosk--rotate-270) .reflex-app {
    max-width: 820px;
    margin: 0 auto;
  }
}
