/* ============================================================================
   PIGËON — STREET UI THEME
   A complete design system in the visual language of 2004-era console
   open-world games: sun-bleached, low contrast, hard-edged.

   Palette sourced from the documented in-game HUD colours.
   Fonts: Pricedown (Ray Larabie / Typodermic, free for commercial use),
          Diploma.

   Usage:  link theme/pigeon-theme.css, then put class="pg" on the body.
   ========================================================================= */

/* ---------------------------------------------------------------- FONTS -- */

@font-face {
  font-family: "Pricedown";
  src: url("../fonts/pricedown.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Diploma";
  src: url("../fonts/diploma.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- TOKENS -- */

:root {
  /* -- Core HUD palette (in-game values) -- */
  --pg-white: #e1e1e1;   /* HUD text            */
  --pg-blue: #accbf1;    /* armour bar          */
  --pg-red: #b4191d;     /* health bar          */
  --pg-green: #36682c;   /* money / success     */
  --pg-gold: #906210;    /* wanted stars        */

  /* -- Brightened variants. Pulled back from neon: nothing in a 2004
        console render is fully saturated. -- */
  --pg-red-hi: #c33a30;
  --pg-green-hi: #5fae3d;
  --pg-gold-hi: #dba62b;
  --pg-blue-hi: #b8c9d8;

  /* -- Ground & surfaces, sampled directly from 2004-era console footage.
        Everything lives in a narrow brown midtone band, and black is
        never blacker than #241a10 — the era's blacks were milky. -- */
  --pg-asphalt: #241a10;   /* page ground              */
  --pg-tarmac: #332415;    /* raised surface           */
  --pg-concrete: #3f2d1a;  /* input wells, tracks      */
  --pg-kerb: #5a412a;      /* hairlines, borders       */
  --pg-smog: #8f7e68;      /* muted body text, the haze */
  --pg-dust: #c9b992;      /* blown-out horizon        */
  --pg-chalk: #e8dcc0;     /* brightest text           */

  /* -- Scene colours, straight off the reference frame -- */
  --pg-wall: #553822;      /* sunlit alley wall        */
  --pg-wall-dark: #3d2a19; /* wall in shadow           */
  --pg-ground: #614730;    /* dust underfoot           */
  --pg-canopy: #342917;    /* tree silhouette          */
  --pg-sky-low: #c9b992;   /* horizon glow             */
  --pg-sky-high: #877d70;  /* washed sky overhead      */

  /* -- Crew colours, for badges and categorical use -- */
  --pg-crew-green: #35682d;
  --pg-crew-purple: #7a4c9e;
  --pg-crew-yellow: #e0b21c;
  --pg-crew-cyan: #2f9bbd;

  /* -- Panels -- */
  --pg-panel: rgba(36, 26, 16, 0.86);
  --pg-panel-solid: #2b1f12;
  --pg-scrim: rgba(26, 18, 10, 0.62);

  /* -- Typography -- */
  --pg-font-display: "Pricedown", "Haettenschweiler", "Impact",
                     "Arial Narrow Bold", sans-serif;
  --pg-font-serif: "Diploma", "Bookman Old Style", Georgia, serif;
  --pg-font-hud: "Arial Black", "Arial Bold", Gadget, Arial, sans-serif;
  --pg-font-body: ui-sans-serif, -apple-system, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;
  --pg-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Type scale — 1.25 minor third, 16px base */
  --pg-text-xs: 0.72rem;
  --pg-text-sm: 0.85rem;
  --pg-text-base: 1rem;
  --pg-text-lg: 1.25rem;
  --pg-text-xl: 1.6rem;
  --pg-text-2xl: 2rem;
  --pg-text-3xl: 2.75rem;
  --pg-text-4xl: 4rem;
  --pg-text-5xl: 6rem;

  /* -- Space -- */
  --pg-1: 4px;
  --pg-2: 8px;
  --pg-3: 12px;
  --pg-4: 16px;
  --pg-5: 24px;
  --pg-6: 32px;
  --pg-7: 48px;
  --pg-8: 64px;

  /* -- Geometry. SA UI is hard-edged: no soft radii. -- */
  --pg-radius: 0px;
  --pg-radius-pill: 999px;
  --pg-border: 1px solid var(--pg-kerb);

  /* -- The in-game text outline -- */
  --pg-outline:
     2px  2px 0 #000, -2px  2px 0 #000,
     2px -2px 0 #000, -2px -2px 0 #000,
     0    2px 0 #000,  0   -2px 0 #000,
     2px  0   0 #000, -2px  0   0 #000;
  --pg-outline-thin:
     1px  1px 0 #000, -1px  1px 0 #000,
     1px -1px 0 #000, -1px -1px 0 #000;

  --pg-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ----------------------------------------------------------------- BASE -- */

.pg {
  margin: 0;
  background-color: var(--pg-asphalt);
  color: var(--pg-white);
  font-family: var(--pg-font-body);
  font-size: var(--pg-text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The street grade: sepia haze pooling at the horizon, corners falling
   into brown. Deliberately weak — the era's look is low contrast, so the
   vignette must not reintroduce a hard black edge. */
.pg-grade {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(130% 85% at 50% 4%,
      rgba(201, 185, 146, 0.22) 0%,
      rgba(201, 185, 146, 0.07) 40%,
      transparent 70%),
    radial-gradient(110% 110% at 50% 50%,
      transparent 48%,
      rgba(36, 26, 16, 0.5) 100%);
}

/* Interlace lines. PS2 output at 480i on a CRT, not a crisp modern scanline
   shader — hence the 2px pitch and the low opacity. */
.pg-scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  background: repeating-linear-gradient(
    to bottom,
    rgba(20, 12, 4, 0.5) 0px,
    rgba(20, 12, 4, 0.5) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* Colour banding. 2004 hardware dithered to 16-bit, so smooth gradients
   broke into steps — this puts the steps back. */
.pg-band {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.5;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.018) 0px,
    rgba(0, 0, 0, 0.018) 2px,
    transparent 2px,
    transparent 4px
  );
}

.pg-content {
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------- TYPOGRAPHY -- */

.pg-display {
  font-family: var(--pg-font-display);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}

/* The wordmark gradient: gold falling into deep orange. */
.pg-display--gold {
  background: linear-gradient(180deg,
    #fff3c4 0%, #f0b429 42%, #de911d 58%, #8f5f13 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.85));
}

.pg-wordmark {
  font-family: var(--pg-font-serif);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pg-dust);
  margin: 0;
}

/* In-game HUD/subtitle text: heavy sans, hard black outline. */
.pg-hudtext {
  font-family: var(--pg-font-hud);
  text-shadow: var(--pg-outline);
  letter-spacing: 0.01em;
}

.pg-eyebrow {
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pg-smog);
  margin: 0;
}

.pg-lead {
  max-width: 62ch;
  color: var(--pg-chalk);
  font-size: var(--pg-text-lg);
  line-height: 1.5;
}

.pg-body {
  max-width: 65ch;
  color: var(--pg-smog);
}

.pg-num {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ HUD -- */

/* Full HUD cluster, top-right, exactly as the game stacks it. */
.pg-hud {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--pg-2);
  font-family: var(--pg-font-hud);
  text-shadow: var(--pg-outline);
}

.pg-hud__money {
  font-family: var(--pg-font-display);
  font-size: var(--pg-text-3xl);
  line-height: 1;
  color: var(--pg-green-hi);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.pg-hud__money--negative {
  color: var(--pg-red-hi);
}

.pg-hud__stars {
  display: flex;
  gap: 2px;
}

.pg-star {
  width: 22px;
  height: 22px;
  color: var(--pg-gold-hi);
  filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1px #000);
}

.pg-star--empty {
  color: transparent;
  stroke: rgba(240, 180, 41, 0.55);
  stroke-width: 1.5;
}

/* Wanted level pulses once a star lights up. */
.pg-star--active {
  animation: pg-star-pulse 1.4s var(--pg-ease) infinite;
}

@keyframes pg-star-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Bars: health, armour, breath, sprint. */
.pg-bar {
  --pg-bar-fill: var(--pg-red);
  width: 140px;
  height: 12px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 0 0 1px rgba(225, 225, 225, 0.18);
  position: relative;
  overflow: hidden;
}

.pg-bar__fill {
  height: 100%;
  background: var(--pg-bar-fill);
  transition: width 0.45s var(--pg-ease);
}

.pg-bar--health { --pg-bar-fill: var(--pg-red); }
.pg-bar--armour { --pg-bar-fill: var(--pg-blue); }
.pg-bar--breath { --pg-bar-fill: var(--pg-blue-hi); }
.pg-bar--money  { --pg-bar-fill: var(--pg-green-hi); }
.pg-bar--gold   { --pg-bar-fill: var(--pg-gold-hi); }

/* The radar: circular, sepia street grid, player blip at centre. */
.pg-radar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 0 0 2px rgba(225, 225, 225, 0.22),
              0 4px 14px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg,
      transparent 0 22px, rgba(0, 0, 0, 0.35) 22px 26px),
    repeating-linear-gradient(90deg,
      transparent 0 30px, rgba(0, 0, 0, 0.35) 30px 34px),
    linear-gradient(160deg, #b79a6e 0%, #8f7852 60%, #6d5b3e 100%);
}

.pg-radar__blip {
  position: absolute;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 0, 0, 0.8);
}

.pg-radar__blip--player {
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-bottom: 12px solid var(--pg-white);
  filter: drop-shadow(0 0 1px #000);
}

.pg-radar__blip--objective { background: var(--pg-gold-hi); }
.pg-radar__blip--crew      { background: var(--pg-crew-green); }
.pg-radar__blip--enemy     { background: var(--pg-red-hi); }

/* Weapon slot. */
.pg-weapon {
  display: flex;
  align-items: baseline;
  gap: var(--pg-2);
  font-family: var(--pg-font-hud);
  text-shadow: var(--pg-outline);
}

.pg-weapon__ammo {
  font-variant-numeric: tabular-nums;
  font-size: var(--pg-text-lg);
  color: var(--pg-white);
}

.pg-weapon__ammo span {
  color: var(--pg-smog);
  font-size: var(--pg-text-sm);
}

/* --------------------------------------------------------- SUBTITLE BAR -- */

/* The bottom-centre dialogue line. "Ah shit, here we go again." */
.pg-subtitle {
  font-family: var(--pg-font-hud);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  color: var(--pg-white);
  text-shadow: var(--pg-outline);
  text-align: center;
  letter-spacing: 0.08em;
  max-width: 46ch;
  margin-inline: auto;
  line-height: 1.35;
}

.pg-subtitle--yellow { color: var(--pg-gold-hi); }
.pg-subtitle--green  { color: var(--pg-green-hi); }
.pg-subtitle--blue   { color: var(--pg-blue); }

/* ---------------------------------------------------------- BIG SPLASHES -- */

/* MISSION PASSED! / WASTED / BUSTED */
.pg-splash {
  font-family: var(--pg-font-display);
  font-size: clamp(2.5rem, 8vw, var(--pg-text-5xl));
  line-height: 0.9;
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0;
}

.pg-splash--passed {
  background: linear-gradient(180deg, #fff8d6 0%, #f0b429 50%, #9a6410 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.9));
}

.pg-splash--wasted {
  color: var(--pg-red);
  text-shadow: var(--pg-outline);
}

.pg-splash--busted {
  color: var(--pg-blue);
  text-shadow: var(--pg-outline);
}

.pg-splash__sub {
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-lg);
  color: var(--pg-green-hi);
  text-shadow: var(--pg-outline);
  text-align: center;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------- PANELS -- */

.pg-panel {
  background: var(--pg-panel);
  border: var(--pg-border);
  border-radius: var(--pg-radius);
  padding: var(--pg-5);
}

.pg-panel--solid { background: var(--pg-panel-solid); }

.pg-panel__title {
  font-family: var(--pg-font-display);
  font-size: var(--pg-text-xl);
  color: var(--pg-dust);
  letter-spacing: 0.03em;
  margin: 0 0 var(--pg-3);
}

/* Shop card. */
.pg-card {
  background: linear-gradient(180deg,
    rgba(31, 34, 29, 0.9) 0%, rgba(11, 13, 12, 0.9) 100%);
  border: var(--pg-border);
  padding: var(--pg-4);
  display: flex;
  flex-direction: column;
  gap: var(--pg-2);
  transition: border-color 0.2s var(--pg-ease),
              transform 0.2s var(--pg-ease);
}

.pg-card:hover {
  border-color: var(--pg-gold);
  transform: translateY(-2px);
}

.pg-card__price {
  font-family: var(--pg-font-display);
  font-size: var(--pg-text-xl);
  color: var(--pg-green-hi);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------- PAUSE MENU -- */

/* The blue-tinted list from the pause screen. Selection is a filled bar. */
.pg-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--pg-font-hud);
}

.pg-menu__item {
  padding: var(--pg-3) var(--pg-4);
  color: var(--pg-blue);
  text-shadow: var(--pg-outline-thin);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--pg-text-sm);
  cursor: pointer;
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  transition: background 0.14s var(--pg-ease), color 0.14s var(--pg-ease);
  display: flex;
  justify-content: space-between;
  gap: var(--pg-4);
}

.pg-menu__item:hover,
.pg-menu__item:focus-visible,
.pg-menu__item[aria-selected="true"] {
  background: var(--pg-blue);
  color: #0b0d0c;
  text-shadow: none;
  outline: none;
}

.pg-menu__item[aria-disabled="true"] {
  color: var(--pg-kerb);
  cursor: not-allowed;
}

.pg-menu__item[aria-disabled="true"]:hover {
  background: transparent;
  color: var(--pg-kerb);
}

.pg-menu__value {
  color: var(--pg-smog);
  font-variant-numeric: tabular-nums;
}

.pg-menu__item:hover .pg-menu__value,
.pg-menu__item[aria-selected="true"] .pg-menu__value {
  color: rgba(11, 13, 12, 0.7);
}

/* --------------------------------------------------------------- STATS -- */

/* CJ's stat sheet: label, track, value. */
.pg-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--pg-1) var(--pg-3);
  align-items: baseline;
}

.pg-stat__label {
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pg-smog);
}

.pg-stat__value {
  font-family: var(--pg-font-display);
  font-size: var(--pg-text-lg);
  color: var(--pg-chalk);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pg-stat__track {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--pg-concrete);
  border: 1px solid rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.pg-stat__fill {
  height: 100%;
  background: var(--pg-dust);
  transition: width 0.6s var(--pg-ease);
}

/* -------------------------------------------------------------- BUTTONS -- */

.pg-btn {
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--pg-3) var(--pg-5);
  border: 2px solid var(--pg-dust);
  background: transparent;
  color: var(--pg-dust);
  cursor: pointer;
  border-radius: var(--pg-radius);
  transition: background 0.16s var(--pg-ease),
              color 0.16s var(--pg-ease),
              box-shadow 0.16s var(--pg-ease);
}

.pg-btn:hover,
.pg-btn:focus-visible {
  background: var(--pg-dust);
  color: var(--pg-asphalt);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 166, 120, 0.25);
}

.pg-btn--primary {
  border-color: var(--pg-gold-hi);
  color: var(--pg-gold-hi);
}

.pg-btn--primary:hover,
.pg-btn--primary:focus-visible {
  background: var(--pg-gold-hi);
  color: var(--pg-asphalt);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.25);
}

.pg-btn--danger {
  border-color: var(--pg-red-hi);
  color: var(--pg-red-hi);
}

.pg-btn--danger:hover,
.pg-btn--danger:focus-visible {
  background: var(--pg-red-hi);
  color: var(--pg-chalk);
  box-shadow: 0 0 0 3px rgba(224, 65, 63, 0.25);
}

.pg-btn--go {
  border-color: var(--pg-green-hi);
  color: var(--pg-green-hi);
}

.pg-btn--go:hover,
.pg-btn--go:focus-visible {
  background: var(--pg-green-hi);
  color: var(--pg-asphalt);
  box-shadow: 0 0 0 3px rgba(108, 192, 74, 0.25);
}

.pg-btn:disabled {
  border-color: var(--pg-kerb);
  color: var(--pg-kerb);
  cursor: not-allowed;
}

.pg-btn:disabled:hover {
  background: transparent;
  color: var(--pg-kerb);
  box-shadow: none;
}

/* --------------------------------------------------------------- FORMS -- */

.pg-field {
  display: flex;
  flex-direction: column;
  gap: var(--pg-2);
}

.pg-label {
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pg-smog);
}

.pg-input,
.pg-select,
.pg-textarea {
  font-family: var(--pg-font-body);
  font-size: var(--pg-text-base);
  color: var(--pg-chalk);
  background: var(--pg-concrete);
  border: 1px solid var(--pg-kerb);
  border-radius: var(--pg-radius);
  padding: var(--pg-3);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.16s var(--pg-ease),
              box-shadow 0.16s var(--pg-ease);
}

.pg-input::placeholder,
.pg-textarea::placeholder { color: var(--pg-kerb); }

.pg-input:focus,
.pg-select:focus,
.pg-textarea:focus {
  outline: none;
  border-color: var(--pg-blue);
  box-shadow: 0 0 0 3px rgba(172, 203, 241, 0.2);
}

.pg-input[aria-invalid="true"] {
  border-color: var(--pg-red-hi);
}

.pg-help  { font-size: var(--pg-text-xs); color: var(--pg-smog); }
.pg-error { font-size: var(--pg-text-xs); color: var(--pg-red-hi); }

/* -------------------------------------------------------------- BADGES -- */

.pg-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--pg-1);
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px var(--pg-2);
  border: 1px solid currentColor;
  color: var(--pg-dust);
}

.pg-badge--green   { color: var(--pg-green-hi); }
.pg-badge--purple  { color: #b47fdb; }
.pg-badge--yellow   { color: var(--pg-crew-yellow); }
.pg-badge--cyan { color: var(--pg-crew-cyan); }
.pg-badge--wanted  { color: var(--pg-red-hi); }

.pg-badge--solid {
  background: currentColor;
  border-color: transparent;
}

.pg-badge--solid > span { color: var(--pg-asphalt); }

/* --------------------------------------------------------------- TABLE -- */

.pg-table-wrap { overflow-x: auto; }

.pg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--pg-text-sm);
}

.pg-table th {
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pg-smog);
  text-align: left;
  padding: var(--pg-2) var(--pg-3);
  border-bottom: 1px solid var(--pg-kerb);
  white-space: nowrap;
}

.pg-table td {
  padding: var(--pg-3);
  border-bottom: 1px solid rgba(44, 47, 40, 0.5);
  color: var(--pg-chalk);
}

.pg-table td.pg-num { font-variant-numeric: tabular-nums; }

.pg-table tbody tr:hover { background: rgba(200, 166, 120, 0.06); }

/* --------------------------------------------------------- MISSION TOAST -- */

/* The tan mission-briefing box that slides in from the left. */
.pg-toast {
  display: flex;
  gap: var(--pg-3);
  align-items: flex-start;
  background: var(--pg-scrim);
  border-left: 4px solid var(--pg-gold-hi);
  padding: var(--pg-3) var(--pg-4);
  max-width: 44ch;
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-sm);
  color: var(--pg-white);
  text-shadow: var(--pg-outline-thin);
  animation: pg-slide-in 0.4s var(--pg-ease) both;
}

.pg-toast--danger  { border-left-color: var(--pg-red-hi); }
.pg-toast--success { border-left-color: var(--pg-green-hi); }
.pg-toast--info    { border-left-color: var(--pg-blue); }

@keyframes pg-slide-in {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------- LOADING SCREEN -- */

/* The sepia loading plate between missions. */
.pg-loading {
  background:
    radial-gradient(80% 100% at 30% 20%,
      rgba(240, 180, 41, 0.18), transparent 70%),
    linear-gradient(180deg, #2b2519 0%, #0b0d0c 100%);
  border: var(--pg-border);
  padding: var(--pg-7) var(--pg-5);
  text-align: center;
}

.pg-loading__bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--pg-kerb);
  overflow: hidden;
  margin-top: var(--pg-5);
}

.pg-loading__bar > i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--pg-gold-hi);
  animation: pg-load 1.8s var(--pg-ease) infinite;
}

@keyframes pg-load {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* --------------------------------------------------------- RADIO DIAL -- */

.pg-radio {
  display: flex;
  gap: var(--pg-1);
  overflow-x: auto;
  padding-bottom: var(--pg-2);
}

.pg-radio__station {
  flex: 0 0 auto;
  padding: var(--pg-2) var(--pg-3);
  border: 1px solid var(--pg-kerb);
  background: transparent;
  color: var(--pg-smog);
  font-family: var(--pg-font-hud);
  font-size: var(--pg-text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s var(--pg-ease),
              border-color 0.16s var(--pg-ease);
}

.pg-radio__station:hover,
.pg-radio__station:focus-visible {
  color: var(--pg-dust);
  border-color: var(--pg-dust);
  outline: none;
}

.pg-radio__station[aria-pressed="true"] {
  color: var(--pg-asphalt);
  background: var(--pg-dust);
  border-color: var(--pg-dust);
}

/* --------------------------------------------------------------- UTILS -- */

.pg-hr {
  border: 0;
  border-top: 1px solid var(--pg-kerb);
  margin: var(--pg-6) 0;
}

.pg-stack   { display: flex; flex-direction: column; gap: var(--pg-4); }
.pg-row     { display: flex; flex-wrap: wrap; gap: var(--pg-3); align-items: center; }
.pg-grid    { display: grid; gap: var(--pg-4); }
.pg-grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pg-grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.pg-shell {
  max-width: 1080px;
  margin-inline: auto;
  padding: var(--pg-6) var(--pg-5);
}

@media (prefers-reduced-motion: reduce) {
  .pg *,
  .pg *::before,
  .pg *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
