:root {
  --vr-gold: #f0c46a;
  --vr-gold-deep: #c88f39;
  --vr-jade: #8ff0cf;
  --vr-lime: #b7de78;
  --vr-ink: #04100b;
  --vr-ink-2: #081b13;
  --vr-panel: rgba(7, 22, 16, 0.82);
  --vr-line: rgba(240, 196, 106, 0.28);
  --vr-text: #eef7df;
  --vr-muted: #a8bc9d;
  --vr-danger: #f28b82;
}

* { box-sizing: border-box; }

html { background: #020805; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--vr-text);
  font-family: "Trebuchet MS", "Bahnschrift", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 560px at 50% -10%, rgba(79, 156, 108, 0.26), transparent 64%),
    radial-gradient(760px 420px at 108% 112%, rgba(200, 143, 57, 0.13), transparent 62%),
    linear-gradient(180deg, #071c12, #03100a 66%, #010603);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 7px),
    radial-gradient(90% 70% at 50% 0%, transparent 52%, rgba(0, 0, 0, 0.4));
  z-index: 0;
}

.vr-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 14px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vr-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.vr-brand { display: flex; flex-direction: column; gap: 2px; }

.vr-kicker {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  color: var(--vr-gold);
  text-transform: uppercase;
}

.vr-logo {
  margin: 0;
  font-size: clamp(1.3rem, 3.2vw, 1.85rem);
  line-height: 1;
  letter-spacing: 0.14em;
  background: linear-gradient(92deg, #f7e2a4, var(--vr-gold) 44%, #b9efc9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(240, 196, 106, 0.28));
}

.vr-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vr-hearts, .vr-glyphs { display: flex; align-items: center; gap: 4px; }

.vr-heart {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 8px rgba(242, 139, 130, 0.35));
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.vr-heart svg { width: 100%; height: 100%; fill: #e8897c; }
.vr-heart.lost { opacity: 0.18; transform: scale(0.88); filter: none; }

.vr-glyph {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(143, 240, 207, 0.25);
  background: rgba(5, 20, 14, 0.7);
  transition: all 0.25s ease;
}
.vr-glyph svg { width: 19px; height: 19px; fill: none; stroke: rgba(143, 240, 207, 0.3); stroke-width: 1.6; }
.vr-glyph.filled {
  border-color: var(--vr-jade);
  background: rgba(20, 70, 52, 0.8);
  box-shadow: 0 0 14px rgba(143, 240, 207, 0.35);
}
.vr-glyph.filled svg { stroke: var(--vr-jade); }

.vr-score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 10px;
  border: 1px solid var(--vr-line);
  background: linear-gradient(180deg, rgba(15, 36, 24, 0.85), rgba(4, 15, 9, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.vr-score span { font-size: 0.54rem; letter-spacing: 0.22em; color: var(--vr-muted); }
.vr-score b { font-size: 1rem; color: var(--vr-gold); font-variant-numeric: tabular-nums; }

.vr-icon-btn {
  border: 1px solid var(--vr-line);
  background: rgba(6, 19, 13, 0.82);
  color: var(--vr-gold);
  border-radius: 10px;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  font: 800 0.58rem/1 "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.vr-icon-btn:hover { background: rgba(28, 58, 40, 0.9); transform: translateY(-1px); }
.vr-icon-btn:focus-visible { outline: 2px solid var(--vr-jade); outline-offset: 2px; }

.vr-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(143, 240, 207, 0.12);
  background: linear-gradient(90deg, rgba(8, 26, 18, 0.8), rgba(4, 14, 10, 0.48));
  font-size: 0.78rem;
  color: var(--vr-muted);
}
.vr-sector { color: var(--vr-text); font-weight: 800; letter-spacing: 0.05em; }
.vr-objective { color: var(--vr-gold); }
.vr-meta-right { margin-left: auto; display: flex; gap: 14px; align-items: center; }
.vr-meta-right b { color: var(--vr-text); font-variant-numeric: tabular-nums; }

.vr-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(240, 196, 106, 0.4);
  background: #03100a;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 52px rgba(96, 190, 130, 0.12),
    inset 0 0 60px rgba(0, 0, 0, 0.7);
}
.vr-stage canvas { display: block; width: 100%; height: 100%; }
.vr-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.5) 100%);
  mix-blend-mode: screen;
  opacity: 0.55;
}

.vr-toast {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -12px);
  max-width: min(88%, 460px);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(240, 196, 106, 0.5);
  background: rgba(4, 18, 12, 0.9);
  color: var(--vr-text);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.vr-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.vr-toast.lime { border-color: rgba(143, 240, 207, 0.55); color: var(--vr-jade); }
.vr-toast.gold { border-color: var(--vr-gold); color: var(--vr-gold); }
.vr-toast.danger { border-color: rgba(242, 139, 130, 0.6); color: var(--vr-danger); }
.vr-toast.muted { color: var(--vr-muted); border-color: rgba(168, 188, 157, 0.35); }

.vr-touch {
  display: none;
  width: min(560px, 100%);
  margin: 0 auto;
  grid-template-columns: 1fr 1.15fr 1fr 1.15fr;
  gap: 8px;
}
.vr-pad {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(240, 196, 106, 0.45);
  background: linear-gradient(180deg, rgba(12, 34, 23, 0.9), rgba(3, 14, 9, 0.92));
  color: var(--vr-gold);
  font: 800 0.72rem/1 "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition: transform 0.08s ease, background 0.15s ease;
}
.vr-pad.is-down { transform: translateY(2px) scale(0.98); background: rgba(36, 76, 50, 0.95); }
.vr-pad-action { color: var(--vr-jade); border-color: rgba(143, 240, 207, 0.45); }
.vr-pad-action.ready {
  color: #052015;
  background: linear-gradient(135deg, #9ff0cf, #5dbd94);
  box-shadow: 0 0 20px rgba(143, 240, 207, 0.35);
}
.vr-pad-jump {
  color: #1b1306;
  background: linear-gradient(135deg, #f6d27f, #c88f39);
  border-color: rgba(255, 226, 160, 0.7);
}
.vr-pad:focus-visible { outline: 2px solid var(--vr-jade); outline-offset: 2px; }

.vr-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--vr-muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0 4px;
}
.vr-foot b { color: var(--vr-gold); font-weight: 800; }
.vr-foot-mark { letter-spacing: 0.18em; opacity: 0.65; }

.vr-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow-y: auto;
  background:
    radial-gradient(720px 460px at 50% 38%, rgba(66, 128, 86, 0.26), transparent 68%),
    linear-gradient(180deg, rgba(2, 10, 6, 0.93), rgba(1, 5, 3, 0.98));
  backdrop-filter: blur(7px);
}
.vr-hide { display: none !important; }

.vr-card {
  width: min(620px, 100%);
  margin: auto;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 20px;
  border: 1px solid rgba(240, 196, 106, 0.45);
  background:
    linear-gradient(160deg, rgba(22, 52, 36, 0.92), rgba(4, 16, 10, 0.96) 58%),
    #06150e;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 70px rgba(240, 196, 106, 0.08);
  position: relative;
}
.vr-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(240, 196, 106, 0.16);
  border-radius: 14px;
  pointer-events: none;
}
.vr-card-title { text-align: left; }

.vr-title-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.vr-emblem {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(240, 196, 106, 0.5);
  background: #04140d;
  box-shadow: 0 0 26px rgba(143, 240, 207, 0.12), inset 0 0 18px rgba(0, 0, 0, 0.5);
}
.vr-title-head .vr-eyebrow { margin-bottom: 6px; }
.vr-title-head .vr-subtitle { margin-bottom: 0; }

.vr-eyebrow {
  margin: 0 0 8px;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vr-gold);
}
.vr-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.1em;
  background: linear-gradient(92deg, #f9e7b3, var(--vr-gold) 45%, #9fe8c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(240, 196, 106, 0.26));
}
.vr-subtitle {
  margin: 4px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: #d8e9c8;
  font-size: 1.05rem;
}
.vr-story {
  margin: 0 0 16px;
  max-width: 54ch;
  color: #d5e6c8;
  line-height: 1.65;
  font-size: 0.92rem;
}
.vr-hint {
  margin: 0 0 18px;
  padding: 10px 12px;
  border-left: 2px solid var(--vr-jade);
  background: rgba(20, 58, 42, 0.4);
  color: #c9f2dd;
  font-size: 0.84rem;
  line-height: 1.5;
}
.vr-controls {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 6px;
  color: var(--vr-muted);
  font-size: 0.82rem;
}
.vr-controls b { color: var(--vr-gold); }
.vr-controls li::before { content: "›"; color: var(--vr-jade); margin-right: 8px; }

.vr-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  font: 800 0.9rem/1 "Trebuchet MS", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #07180d;
  background: linear-gradient(135deg, #f7db95, var(--vr-gold) 48%, #d29a41);
  box-shadow: 0 12px 34px rgba(240, 196, 106, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.vr-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(240, 196, 106, 0.38); }
.vr-btn:focus-visible { outline: 2px solid var(--vr-jade); outline-offset: 3px; }
.vr-btn-ghost {
  background: transparent;
  color: var(--vr-gold);
  border: 1px solid rgba(240, 196, 106, 0.48);
  box-shadow: none;
}
.vr-btn-ghost:hover { background: rgba(240, 196, 106, 0.08); box-shadow: none; }

.vr-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vr-bestline {
  margin: 14px 0 0;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--vr-muted);
}
.vr-bestline b { color: var(--vr-gold); font-size: 0.95rem; }
.vr-bigscore {
  margin: 16px 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--vr-muted);
}
.vr-bigscore b { display: block; margin-top: 4px; font-size: 2rem; letter-spacing: 0.04em; color: var(--vr-gold); }
.vr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 20px;
}
.vr-stats div {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(143, 240, 207, 0.14);
  background: rgba(4, 18, 12, 0.6);
}
.vr-stats span { display: block; font-size: 0.56rem; letter-spacing: 0.18em; color: var(--vr-muted); }
.vr-stats b { display: block; margin-top: 3px; color: var(--vr-text); font-size: 1.05rem; }

@media (hover: hover) and (pointer: fine) {
  .vr-touch { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .vr-touch { display: grid; }
}

@media (max-width: 720px) {
  .vr-shell { padding: 10px 10px 18px; }
  .vr-top { align-items: flex-start; }
  .vr-status {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 6px;
  }
  .vr-heart { width: 18px; height: 18px; }
  .vr-glyph { width: 22px; height: 22px; }
  .vr-score { padding: 4px 8px; gap: 4px; }
  .vr-score span { display: none; }
  .vr-icon-btn { min-width: 40px; height: 32px; padding: 0 6px; font-size: 0.52rem; }
  .vr-meta { gap: 8px; font-size: 0.72rem; }
  .vr-meta-right { margin-left: 0; width: 100%; justify-content: space-between; }
  .vr-foot { font-size: 0.64rem; }
  .vr-touch { display: grid; width: 100%; gap: 6px; }
  .vr-pad { min-height: 44px; font-size: 0.64rem; }
  .vr-overlay { padding: 12px; }
  .vr-card { padding: 20px 18px; }
  .vr-stats { gap: 6px; }
}

@media (max-width: 420px) {
  .vr-score b { font-size: 0.9rem; }
  .vr-glyph { width: 24px; height: 24px; }
  .vr-heart { width: 20px; height: 20px; }
  .vr-touch { grid-template-columns: 1fr 1fr 1fr; }
  .vr-pad-action { grid-column: 1 / -1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
