:root {
  color-scheme: dark;
  --bg: #09080b;
  --panel: rgba(15, 11, 13, 0.72);
  --panel-strong: rgba(15, 11, 13, 0.88);
  --line: rgba(214, 154, 95, 0.18);
  --text: #f7efe5;
  --muted: #b29f93;
  --accent: #f3b26e;
  --accent-hot: #c95b49;
  --reticle: rgba(247, 239, 229, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(185, 103, 61, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(63, 71, 79, 0.18), transparent 28%),
    linear-gradient(180deg, #120e12 0%, #030304 100%);
  color: var(--text);
  font-family: "Fraunces", "Avenir Next", "Trebuchet MS", serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(90deg, transparent 0%, rgba(201, 91, 73, 0.08) 48%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(243, 178, 110, 0.05) 100%);
  mix-blend-mode: lighten;
}

body::after {
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 120px 120px, 120px 120px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 92%);
  opacity: 0.18;
}

#application {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hud {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px;
  pointer-events: none;
}

.hud-top,
.hud-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.brand-panel,
.stats-panel,
.status-panel,
.controls-panel,
.center-message {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 245, 235, 0.04);
}

.brand-panel {
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 20px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(243, 178, 110, 0.12);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-panel h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.brand-panel p {
  margin: 10px 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.95rem;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
  width: min(580px, 100%);
  padding: 10px;
  border-radius: 22px;
}

.stat-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(214, 154, 95, 0.1);
  border-radius: 16px;
  background: rgba(255, 243, 235, 0.02);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.center-message {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 6px;
  max-width: min(92vw, 460px);
  padding: 18px 22px;
  border-radius: 20px;
  text-align: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.center-message.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

.center-kicker {
  color: var(--accent-hot);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.center-message strong {
  font-size: 1.1rem;
}

.center-message span:last-child {
  color: var(--muted);
}

.reticle {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  margin-top: -12px;
  border: 1px solid rgba(247, 239, 229, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(201, 91, 73, 0.1);
}

.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  inset: 50%;
  background: var(--reticle);
  transform: translate(-50%, -50%);
}

.reticle::before {
  width: 2px;
  height: 12px;
}

.reticle::after {
  width: 12px;
  height: 2px;
}

.hud-bottom {
  align-items: flex-end;
}

.status-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(420px, 100%);
  padding: 14px 16px;
  border-radius: 18px;
}

.status-label {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-text {
  font-size: 1rem;
}

.controls-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
}

.lock-state,
.control-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(214, 154, 95, 0.12);
  border-radius: 999px;
  background: var(--panel-strong);
  white-space: nowrap;
}

.lock-state {
  color: var(--accent);
}

@media (max-width: 980px) {
  .hud {
    padding: 14px;
  }

  .hud-top,
  .hud-bottom {
    flex-direction: column;
  }

  .stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls-panel {
    justify-content: flex-start;
  }
}
