/* ==========================================================================
   Game Shows Australia — shared stage theme
   Marquee bulb border, colour code, and the base furniture every view uses.
   ========================================================================== */

:root {
  --stage-1: #0b0713;
  --stage-2: #180d2a;
  --stage-3: #24123f;

  --ink: #f6f1ff;
  --ink-dim: #b3a6c9;
  --ink-faint: #7d7091;

  --gold: #ffc233;
  --gold-deep: #e08a00;

  /* The colour code, carried straight from the question cards. */
  --c-audio: #ff2f2f;
  --c-visual: #ff3df0;
  --c-dance: #ff9900;
  --c-meeting: #2a9dff;
  --c-slot: #a855f7;
  --c-standard: #ffc233;
  --c-whoami: #4ade80;
  --c-challenge: #f472b6;

  --panel: rgba(255, 255, 255, 0.045);
  --panel-line: rgba(255, 255, 255, 0.13);
  --radius: 22px;

  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 50% -10%, var(--stage-3) 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 110%, #2b1147 0%, transparent 55%),
    linear-gradient(170deg, var(--stage-2) 0%, var(--stage-1) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.01em; margin: 0; }

a { color: var(--gold); }

/* ==========================================================================
   MARQUEE BULB BORDER
   Four strips of bulbs, each scrolling one bulb-width so the light travels
   clockwise around the frame. The bulb colour is inherited from --bulb, which
   each card sets from its own colour code.
   ========================================================================== */

.marquee {
  position: relative;
  --bulb: var(--gold);
  --bulb-size: 9px;
  --bulb-gap: 26px;
  --bulb-inset: 13px;
  --chase: 2.6s;
}

.marquee > .bulbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: inherit;
}

.marquee > .bulbs i {
  position: absolute;
  display: block;
  --dot: radial-gradient(
    circle at center,
    #fff 0 12%,
    var(--bulb) 14% 34%,
    color-mix(in srgb, var(--bulb) 55%, transparent) 36% 44%,
    transparent 46%
  );
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--bulb) 70%, transparent));
}

.marquee > .bulbs .t,
.marquee > .bulbs .b {
  left: var(--bulb-inset);
  right: var(--bulb-inset);
  height: var(--bulb-size);
  background: var(--dot) 0 0 / var(--bulb-gap) var(--bulb-size) repeat-x;
}
.marquee > .bulbs .t { top: var(--bulb-inset); animation: bulbs-x var(--chase) linear infinite; }
.marquee > .bulbs .b { bottom: var(--bulb-inset); animation: bulbs-x var(--chase) linear infinite reverse; }

.marquee > .bulbs .l,
.marquee > .bulbs .r {
  top: var(--bulb-inset);
  bottom: var(--bulb-inset);
  width: var(--bulb-size);
  background: var(--dot) 0 0 / var(--bulb-size) var(--bulb-gap) repeat-y;
}
.marquee > .bulbs .r { right: var(--bulb-inset); animation: bulbs-y var(--chase) linear infinite; }
.marquee > .bulbs .l { left: var(--bulb-inset); animation: bulbs-y var(--chase) linear infinite reverse; }

@keyframes bulbs-x { to { background-position-x: var(--bulb-gap); } }
@keyframes bulbs-y { to { background-position-y: var(--bulb-gap); } }

@media (prefers-reduced-motion: reduce) {
  .marquee > .bulbs i { animation: none !important; }
}

/* ==========================================================================
   Cards, chips, buttons
   ========================================================================== */

.card {
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(10, 6, 20, 0.72);
  border: 1px solid var(--panel-line);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 70px -20px color-mix(in srgb, var(--bulb, var(--gold)) 55%, transparent);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.32em 0.85em;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--chip-c, var(--gold));
  background: color-mix(in srgb, var(--chip-c, var(--gold)) 15%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--chip-c, var(--gold)) 55%, transparent);
  white-space: nowrap;
}
.chip.solid {
  color: #12081f;
  background: var(--chip-c, var(--gold));
  border-color: transparent;
}

.btn {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  padding: 0.62em 1.15em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: #1a0d00;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }

input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--panel-line);
  border-radius: 10px;
  padding: 0.6em 0.75em;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid color-mix(in srgb, var(--gold) 70%, transparent);
  outline-offset: 1px;
}
select option { background: #1a1030; }
label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-dim); margin-bottom: 0.35em; }

.muted { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.notice {
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  border: 1px solid;
  background: color-mix(in srgb, var(--nc, var(--gold)) 12%, transparent);
  border-color: color-mix(in srgb, var(--nc, var(--gold)) 40%, transparent);
  color: color-mix(in srgb, var(--nc, var(--gold)) 82%, white);
}
.notice.warn { --nc: #ffb020; }
.notice.bad { --nc: #ff5c5c; }
.notice.good { --nc: #4ade80; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
