/* Direction: jungle temple arcade — mossy stone, torchlight gold, carved serif display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0d1411;
  --surface: #16201b;
  --surface-2: #1e2a23;
  --border: #2d3c33;
  --border-strong: #565b58;
  --ink: #edf3e8;
  --muted: #a3b4a5;
  --accent: #e2a627;
  --accent-hover: #e6b347;
  --accent-ink: #0d1411;
  --accent-text: #f1c257;
  --accent-strong: #f5d07a;
  --accent-soft: #26200f;
  --accent-border: #6d561b;
  --success: #5faf63;
  --success-ink: #ffffff;
  --success-soft: #1f3623;
  --success-strong: #5faf63;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #32220f;
  --warning-strong: #c57a40;
  --danger: #d2553b;
  --danger-ink: #ffffff;
  --danger-soft: #38221a;
  --danger-strong: #d96f59;
  --chart-1: #e2a627;
  --chart-2: #87d578;
  --chart-3: #09aeb5;
  --chart-4: #9abffd;
  --chart-5: #be75cd;
  --chart-6: #fba2a1;

  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: 0.01em;
  --radius-card: 16px;
  --radius-btn: 10px;
  --x-on-photo: #ffffff;
  --x-on-photo-dim: rgba(255, 255, 255, 0.74);
  --x-scrim: rgba(7, 12, 10, 0.74);
  --gradient-vignette: radial-gradient(ellipse at 50% 58%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
  --x-sky: #10242d;
  --x-sky-2: #3a5852;
  --x-haze: #bd884f;
  --x-sun: #f7d99d;
  --x-ruin: #152429;
  --x-ruin-2: #1d3331;
  --x-canopy: #132620;
  --x-ground: #22301f;
  --x-path: #8e7e61;
  --x-path-2: #7a6b51;
  --x-stripe: #b8a582;
  --x-wall: #4b5a41;
  --x-wall-2: #36422e;
  --x-pillar: #6e7658;
  --x-coin: #f3c54c;
  --x-coin-2: #a87c18;
  --x-hero: #e0d3b7;
  --x-hero-2: #c0462c;
  --x-hero-3: #3f5340;
  --x-skin: #9c6a44;
  --x-hazard: #b4452c;
  --x-hazard-2: #76291a;
  --x-timber: #6b4a2e;
  --x-timber-2: #48311f;
  --x-vine: #3f6b3c;
  --x-shadow: rgba(0, 0, 0, 0.4);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Barlow", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dddede;
  --border-strong: #b6b9b8;
  --ink: #0d1411;
  --muted: #656967;
  --accent: #e2a627;
  --accent-hover: #c08d21;
  --accent-ink: #0d1411;
  --accent-text: #896518;
  --accent-strong: #896518;
  --accent-soft: #fbf3e1;
  --accent-border: #f2d79e;
  --success: #5faf63;
  --success-ink: #0d1411;
  --success-soft: #ecf5ec;
  --success-strong: #3f7341;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #d2553b;
  --danger-ink: #0d1411;
  --danger-soft: #faebe7;
  --danger-strong: #b24832;
  --chart-1: #be8806;
  --chart-2: #5c9f4d;
  --chart-3: #0a8c92;
  --chart-4: #5f92e4;
  --chart-5: #9b5ba9;
  --chart-6: #e07375;
}

/* Ashen Steps — the arcade cabinet screen and its chrome. */

.is-hidden {
  display: none !important;
}

#game {
  display: block;
  width: 100%;
  background: var(--x-sky);
  touch-action: none;
  user-select: none;
  cursor: pointer;
}

.vignette {
  background-image: var(--gradient-vignette);
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--x-scrim);
  color: var(--x-on-photo);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.heart-off {
  opacity: 0.22;
}

.carved {
  background-image: repeating-linear-gradient(
    135deg,
    var(--x-scrim) 0 10px,
    rgba(0, 0, 0, 0) 10px 20px
  );
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

@keyframes torch-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.06);
  }
}

.torch {
  animation: torch-pulse 2.4s ease-in-out infinite;
}

html.reduced-motion .torch {
  animation: none;
}
