:root {
  color-scheme: dark;
  --ink: #f8f1df;
  --muted: #c7b999;
  --shadow: #071013;
  --panel: rgba(10, 17, 20, 0.78);
  --panel-strong: rgba(5, 9, 11, 0.92);
  --petrol: #0d4b53;
  --petrol-light: #28a2a9;
  --gold: #f2c86b;
  --gold-deep: #8b6224;
  --rose: #e7a6b3;
  --ruby: #8d1f40;
  --green: #4dd49a;
  --danger: #ff7a7a;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

button {
  min-height: 44px;
  border: 1px solid rgba(242, 200, 107, 0.35);
  border-radius: var(--radius);
  background: rgba(248, 241, 223, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

button:hover {
  border-color: rgba(242, 200, 107, 0.75);
  background: rgba(242, 200, 107, 0.15);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 22px rgba(255, 122, 122, 0.6);
}

.status-dot.is-connected {
  background: var(--green);
  box-shadow: 0 0 22px rgba(77, 212, 154, 0.7);
}

.display-page,
.photo-page {
  min-height: 100vh;
  background: var(--shadow);
  color: var(--ink);
}

.display-page {
  overflow: hidden;
}

.photo-page {
  overflow: auto;
}

.display-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.stage-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("/assets/wedding-stage.png") center / cover no-repeat;
}

.display-shell::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 48%, rgba(7, 16, 19, 0.18), rgba(7, 16, 19, 0.6) 52%, rgba(7, 16, 19, 0.88) 100%),
    linear-gradient(180deg, rgba(7, 16, 19, 0.2), rgba(7, 16, 19, 0.6));
}

.display-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2vw, 2rem) clamp(1.5rem, 3vw, 3.2rem);
}

.brand-lockup {
  display: inline-flex;
  gap: 0.7rem;
  align-items: baseline;
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 2.5rem);
  font-weight: 900;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.65);
}

.brand-lockup strong {
  color: var(--gold);
  font-size: 0.75em;
  text-transform: uppercase;
}

.display-meta,
.controller-status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(248, 241, 223, 0.16);
  border-radius: 999px;
  background: rgba(5, 9, 11, 0.42);
  padding: 0.55rem 0.9rem;
  color: var(--muted);
  font-weight: 800;
}

.display-main,
.display-screen {
  min-height: 100vh;
}

.display-screen {
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(5.5rem, 9vw, 8rem) clamp(1.5rem, 4vw, 5rem) clamp(2rem, 4vw, 4rem);
}

.display-screen.is-active {
  display: flex;
}

.screen-quiz {
  padding-top: clamp(4.4rem, 6vw, 5.8rem);
  padding-bottom: clamp(0.8rem, 1.6vw, 1.6rem);
}

.display-screen.screen-photo {
  justify-content: flex-start;
  padding-left: clamp(2rem, 5vw, 7rem);
  padding-right: clamp(2rem, 4vw, 5rem);
}

.welcome-copy,
.big-message {
  width: min(88vw, 1100px);
  text-align: center;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.welcome-copy h1,
.big-message h2 {
  margin: 0.1em 0;
  color: var(--ink);
  font-size: clamp(5rem, 11vw, 10.5rem);
  line-height: 0.9;
}

.welcome-subtitle {
  margin: 0;
  color: var(--rose);
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  font-weight: 900;
}

.photo-tv {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 840px);
  gap: clamp(4rem, 6vw, 10rem);
  align-items: center;
  justify-content: start;
  width: min(96vw, 2500px);
}

.photo-tv-copy {
  min-width: 0;
}

.photo-tv-copy h2,
.photo-slide-empty h2 {
  margin: 0.08em 0;
  color: var(--ink);
  font-size: clamp(4rem, 5vw, 7rem);
  line-height: 0.92;
  white-space: nowrap;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.photo-tv-text {
  max-width: 610px;
  margin: 1.1rem 0 0;
  color: var(--rose);
  font-size: clamp(1.75rem, 2.35vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
}

.qr-panel {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  justify-self: center;
  width: min(100%, 840px);
  border: 2px solid rgba(242, 200, 107, 0.58);
  border-radius: var(--radius);
  background: rgba(248, 241, 223, 0.94);
  padding: clamp(0.9rem, 1.5vw, 1.45rem);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
}

.qr-code {
  display: grid;
  place-items: center;
  width: min(100%, 620px);
  aspect-ratio: 1;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: auto;
}

.photo-url-box {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  border: 2px solid rgba(7, 16, 19, 0.18);
  border-radius: var(--radius);
  background: rgba(7, 16, 19, 0.08);
  padding: 0.7rem 0.9rem;
}

.photo-url-box span {
  color: var(--gold-deep);
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.photo-url-box strong {
  color: var(--shadow);
  font-size: clamp(1.45rem, 1.9vw, 2.35rem);
  overflow-wrap: anywhere;
  text-align: center;
}

.photo-slideshow {
  display: grid;
  width: min(94vw, 1420px);
  min-height: min(76vh, 820px);
  place-items: center;
}

.photo-slide-empty {
  text-align: center;
}

.photo-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 35%);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.photo-slide[hidden] {
  display: none;
}

.photo-slide img {
  width: 100%;
  height: min(74vh, 780px);
  border: 2px solid rgba(242, 200, 107, 0.5);
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(5, 9, 11, 0.78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.photo-slide figcaption {
  display: grid;
  align-content: center;
  gap: 1rem;
  border: 1px solid rgba(248, 241, 223, 0.13);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.68);
  padding: clamp(1rem, 2vw, 2rem);
}

.photo-slide figcaption span {
  color: var(--gold);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  font-weight: 950;
}

.photo-slide figcaption strong {
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 3.2rem);
  line-height: 1.02;
}

.photo-slide figcaption small {
  color: var(--rose);
  font-size: clamp(1rem, 1.7vw, 1.7rem);
  font-weight: 850;
  line-height: 1.15;
}

.screen-jeopardy {
  padding-top: clamp(4.8rem, 7vw, 7rem);
}

.jeopardy-tv {
  display: grid;
  width: min(94vw, 1680px);
  gap: clamp(1rem, 1.6vw, 1.7rem);
}

.jeopardy-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.jeopardy-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.4rem, 4vw, 5rem);
  line-height: 0.9;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.jeopardy-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.45rem, 0.7vw, 0.8rem);
}

.jeopardy-scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.7rem, 1vw, 1rem);
}

.jeopardy-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(248, 241, 223, 0.16);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.68);
  padding: clamp(0.75rem, 1.2vw, 1.1rem) clamp(1rem, 1.6vw, 1.5rem);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

.jeopardy-player.is-active {
  border-color: var(--gold);
  background: rgba(242, 200, 107, 0.18);
  box-shadow: 0 0 0 1px rgba(242, 200, 107, 0.42) inset, 0 16px 36px rgba(0, 0, 0, 0.26);
}

.jeopardy-player span {
  color: var(--ink);
  font-size: clamp(1.4rem, 2.2vw, 2.8rem);
  font-weight: 950;
}

.jeopardy-player strong {
  color: var(--gold);
  font-size: clamp(1.7rem, 3vw, 3.6rem);
  font-weight: 950;
}

.jeopardy-board[hidden] {
  display: none;
}

.jeopardy-category,
.jeopardy-tile {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid rgba(242, 200, 107, 0.42);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.78);
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.jeopardy-category {
  min-height: clamp(82px, 9vh, 140px);
  padding: 0.7rem;
  color: var(--rose);
  font-size: clamp(1rem, 1.55vw, 1.9rem);
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.jeopardy-tile {
  min-height: clamp(110px, 14vh, 190px);
  color: var(--gold);
  font-size: clamp(2rem, 4.4vw, 5rem);
  font-weight: 950;
}

.jeopardy-tile.is-played {
  color: rgba(248, 241, 223, 0.2);
  background: rgba(5, 9, 11, 0.42);
}

.jeopardy-card {
  display: grid;
  min-height: min(70vh, 760px);
  align-content: center;
  gap: clamp(1.2rem, 2vw, 2rem);
  border: 2px solid rgba(242, 200, 107, 0.58);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(13, 75, 83, 0.82), rgba(7, 16, 19, 0.94) 52%, rgba(141, 31, 64, 0.36)),
    rgba(5, 9, 11, 0.9);
  padding: clamp(2rem, 4vw, 5rem);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.jeopardy-card[hidden] {
  display: none;
}

.jeopardy-card span {
  color: var(--gold);
  font-size: clamp(1.2rem, 1.8vw, 2rem);
  font-weight: 950;
  text-transform: uppercase;
}

.jeopardy-card strong {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 6.5rem);
  line-height: 1.02;
  text-wrap: balance;
}

.jeopardy-card p {
  margin: 0;
  color: var(--rose);
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 950;
  line-height: 1.02;
}

.jeopardy-card p[hidden] {
  display: none;
}

.quiz-stage {
  display: grid;
  width: min(96vw, 1460px);
  gap: clamp(0.55rem, 1.15vw, 1.15rem);
}

.quiz-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem 1rem;
  align-items: end;
}

.quiz-heading h2 {
  grid-column: 1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.35vw, 3.7rem);
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
}

.round-counter {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  min-width: 7ch;
  border: 1px solid rgba(242, 200, 107, 0.42);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.7);
  padding: 0.8rem 1rem;
  color: var(--gold);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 900;
  text-align: center;
}

.slot-machine {
  position: relative;
  display: grid;
  gap: clamp(0.55rem, 1.15vw, 1.15rem);
  border: 2px solid rgba(242, 200, 107, 0.58);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(13, 75, 83, 0.72), rgba(7, 16, 19, 0.92) 40%, rgba(141, 31, 64, 0.32)),
    rgba(5, 9, 11, 0.82);
  box-shadow:
    0 0 0 1px rgba(248, 241, 223, 0.08) inset,
    0 26px 70px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(242, 200, 107, 0.14);
  padding: clamp(0.8rem, 1.9vw, 2.1rem);
  overflow: hidden;
}

.slot-machine::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 12%, transparent 86%, rgba(255, 255, 255, 0.06));
}

.slot-lights {
  position: absolute;
  inset: 0.7rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.slot-lights span {
  width: clamp(0.6rem, 1vw, 1rem);
  height: clamp(0.6rem, 1vw, 1rem);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(242, 200, 107, 0.9);
  animation: lightPulse 1400ms ease-in-out infinite alternate;
}

.slot-lights span:nth-child(2n) {
  animation-delay: 420ms;
}

.reel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.7rem, 1.5vw, 1.4rem);
  width: min(100%, 980px);
  justify-self: center;
}

.reel-window {
  position: relative;
  height: clamp(190px, 25vh, 320px);
  overflow: hidden;
  border: 1px solid rgba(248, 241, 223, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(248, 241, 223, 0.08), rgba(5, 9, 11, 0.82));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42) inset;
}

.reel-window::before,
.reel-window::after {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 34%;
  content: "";
  pointer-events: none;
}

.reel-window::before {
  top: 0;
  background: linear-gradient(180deg, rgba(5, 9, 11, 0.92), transparent);
}

.reel-window::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(5, 9, 11, 0.92), transparent);
}

.reel-strip {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  transition: transform 120ms linear;
}

.reel-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  border-bottom: 1px solid rgba(248, 241, 223, 0.08);
  padding: 0.4rem clamp(0.4rem, 1vw, 1rem);
  color: rgba(248, 241, 223, 0.64);
  font-size: clamp(1.25rem, 2.5vw, 2.45rem);
  font-weight: 900;
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-align: center;
}

.reel-item.is-focus {
  color: var(--gold);
  font-size: clamp(1.65rem, 4vw, 4rem);
  text-shadow: 0 0 24px rgba(242, 200, 107, 0.45);
}

.slot-machine.is-spinning .reel-window {
  border-color: rgba(40, 162, 169, 0.8);
}

.slot-machine.is-spinning .reel-strip {
  animation: reelJitter 180ms linear infinite;
}

.result-panel,
.answer-panel,
.now-playing {
  border: 1px solid rgba(242, 200, 107, 0.35);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.72);
  padding: clamp(0.62rem, 1.1vw, 1.05rem);
}

.result-panel {
  display: grid;
  gap: 0.35rem;
  min-height: clamp(92px, 12.5vh, 160px);
  align-content: center;
  text-align: center;
}

.result-panel span,
.answer-panel span,
.now-playing span {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.2vw, 1.15rem);
  font-weight: 900;
  text-transform: uppercase;
}

.result-panel strong {
  color: var(--ink);
  font-size: clamp(1.95rem, 5vw, 5.25rem);
  line-height: 0.98;
  text-wrap: balance;
}

.result-panel.is-revealed strong {
  color: var(--gold);
  text-shadow: 0 0 34px rgba(242, 200, 107, 0.38);
}

.answer-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 1rem;
  align-items: center;
}

.answer-panel[hidden] {
  display: none;
}

.answer-panel strong {
  color: var(--rose);
  font-size: clamp(1.7rem, 3.7vw, 4.2rem);
  line-height: 1;
}

.now-playing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.now-playing strong {
  color: var(--gold);
  font-size: clamp(1rem, 1.55vw, 1.7rem);
  text-align: right;
}

.audio-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(13, 75, 83, 0.92), rgba(7, 16, 19, 0.98) 62%),
    var(--shadow);
  color: var(--ink);
}

.audio-gate span {
  color: var(--gold);
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.9;
  font-weight: 950;
}

.audio-gate small {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.3vw, 2.2rem);
  font-weight: 900;
}

.audio-gate.is-hidden {
  display: none;
}

.display-page.is-photo-mode .audio-gate {
  display: none;
}

.control-page {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(13, 75, 83, 0.28), rgba(141, 31, 64, 0.14)),
    var(--shadow);
  color: var(--ink);
}

.control-shell {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 1rem;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.login-panel {
  display: grid;
  width: min(100%, 520px);
  gap: 0.9rem;
  border: 1px solid rgba(248, 241, 223, 0.13);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.64);
  padding: clamp(1rem, 5vw, 1.6rem);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.login-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1;
}

.login-panel label {
  color: var(--muted);
  font-weight: 900;
}

.login-panel input {
  min-height: 64px;
  border: 1px solid rgba(242, 200, 107, 0.35);
  border-radius: var(--radius);
  background: rgba(248, 241, 223, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 1.5rem;
  font-weight: 850;
  padding: 0 1rem;
}

.login-panel input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 200, 107, 0.18);
}

.login-message {
  min-height: 1.35rem;
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.quick-login-action {
  border-color: rgba(77, 212, 154, 0.86);
  background: linear-gradient(135deg, rgba(77, 212, 154, 0.95), rgba(40, 162, 169, 0.78));
  color: #04110d;
}

.control-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0 1rem;
}

.control-header h1 {
  margin: 0.1rem 0 0;
  font-size: clamp(1.7rem, 8vw, 3rem);
  line-height: 1;
}

.controller-status {
  flex: 0 0 auto;
  padding: 0.48rem 0.7rem;
  font-size: 0.85rem;
}

.control-section {
  margin: 0 0 0.85rem;
  border: 1px solid rgba(248, 241, 223, 0.13);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.56);
  padding: 0.85rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.segmented button.is-active {
  border-color: var(--gold);
  background: rgba(242, 200, 107, 0.24);
  color: var(--gold);
}

.hero-control {
  display: grid;
  gap: 0.7rem;
}

.primary-action {
  display: grid;
  min-height: 5.5rem;
  align-content: center;
  gap: 0.25rem;
  border-color: rgba(242, 200, 107, 0.82);
  background: linear-gradient(135deg, rgba(242, 200, 107, 0.95), rgba(231, 166, 179, 0.75));
  color: #1d1307;
  font-size: clamp(1.25rem, 6vw, 2rem);
  font-weight: 950;
}

.primary-action span {
  font-size: 0.88rem;
  font-weight: 900;
}

.song-start-action {
  border-color: rgba(77, 212, 154, 0.86);
  background: linear-gradient(135deg, rgba(77, 212, 154, 0.95), rgba(40, 162, 169, 0.78));
  color: #04110d;
}

.control-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.current-panel {
  display: grid;
  gap: 0.25rem;
}

.current-panel span,
.section-head h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.current-panel strong {
  color: var(--gold);
  font-size: 1.25rem;
}

.current-panel p {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.upload-panel .section-head span {
  color: var(--petrol-light);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: right;
}

.upload-form {
  display: grid;
  gap: 0.65rem;
}

.upload-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upload-form select,
.upload-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(242, 200, 107, 0.35);
  border-radius: var(--radius);
  background: rgba(248, 241, 223, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  padding: 0 0.75rem;
}

.upload-form select:focus,
.upload-form input:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 200, 107, 0.18);
}

.upload-form option {
  background: var(--shadow);
  color: var(--ink);
}

.photo-control-panel .section-head span {
  color: var(--petrol-light);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: right;
}

.photo-control-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.photo-submission-list {
  display: grid;
  gap: 0.55rem;
}

.photo-submission-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.photo-submission-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.65rem;
  align-items: center;
  border: 1px solid rgba(248, 241, 223, 0.12);
  border-radius: var(--radius);
  background: rgba(248, 241, 223, 0.06);
  padding: 0.45rem;
}

.photo-submission-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  background: rgba(5, 9, 11, 0.7);
}

.photo-submission-item strong,
.photo-submission-item span {
  display: block;
  overflow-wrap: anywhere;
}

.photo-submission-item strong {
  color: var(--gold);
}

.photo-submission-item span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.15;
}

.jeopardy-current {
  display: grid;
  gap: 0.25rem;
  border: 1px solid rgba(248, 241, 223, 0.12);
  border-radius: var(--radius);
  background: rgba(248, 241, 223, 0.06);
  padding: 0.75rem;
}

.jeopardy-score-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.jeopardy-score-control button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 0.75rem;
}

.jeopardy-score-control button.is-active {
  border-color: var(--gold);
  background: rgba(242, 200, 107, 0.24);
  color: var(--gold);
}

.jeopardy-score-control span,
.jeopardy-score-control strong {
  font-weight: 950;
}

.jeopardy-result-actions button:first-child {
  border-color: rgba(77, 212, 154, 0.62);
  background: rgba(77, 212, 154, 0.12);
}

.jeopardy-result-actions button:last-child {
  border-color: rgba(255, 122, 122, 0.62);
  background: rgba(255, 122, 122, 0.12);
}

.jeopardy-current span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jeopardy-current strong {
  color: var(--gold);
  line-height: 1.16;
}

.jeopardy-current p {
  margin: 0;
  color: var(--rose);
  font-weight: 850;
}

.jeopardy-actions {
  margin: 0.7rem 0;
}

.jeopardy-control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}

.jeopardy-control-category,
.jeopardy-control-tile {
  min-width: 0;
  border-radius: var(--radius);
  text-align: center;
}

.jeopardy-control-category {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid rgba(242, 200, 107, 0.24);
  background: rgba(5, 9, 11, 0.72);
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.05;
  padding: 0.35rem;
  text-transform: uppercase;
}

.jeopardy-control-tile {
  min-height: 48px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 950;
}

.jeopardy-control-tile.is-played {
  color: rgba(248, 241, 223, 0.28);
  background: rgba(248, 241, 223, 0.05);
}

.photo-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(160deg, rgba(13, 75, 83, 0.26), rgba(141, 31, 64, 0.16)),
    var(--shadow);
}

.photo-card {
  display: grid;
  width: min(100%, 620px);
  gap: 1rem;
  border: 1px solid rgba(248, 241, 223, 0.13);
  border-radius: var(--radius);
  background: rgba(5, 9, 11, 0.68);
  padding: clamp(1rem, 5vw, 1.6rem);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.photo-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 12vw, 4.8rem);
  line-height: 0.92;
}

.task-card {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(242, 200, 107, 0.35);
  border-radius: var(--radius);
  background: rgba(248, 241, 223, 0.08);
  padding: 1rem;
}

.task-card span {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

.task-card p {
  margin: 0;
  font-size: clamp(1.1rem, 5vw, 1.55rem);
  font-weight: 850;
  line-height: 1.16;
}

.task-card p + p {
  color: var(--rose);
}

.photo-upload-form {
  display: grid;
  gap: 0.8rem;
}

.photo-upload-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.photo-upload-form input {
  width: 100%;
  border: 1px solid rgba(242, 200, 107, 0.35);
  border-radius: var(--radius);
  background: rgba(248, 241, 223, 0.08);
  color: var(--ink);
  font: inherit;
  padding: 0.8rem;
}

.photo-message {
  min-height: 1.35rem;
  margin: 0;
  color: var(--gold);
  font-weight: 850;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.section-head button {
  min-height: 38px;
  padding: 0 0.75rem;
  font-size: 0.86rem;
}

.track-list {
  display: grid;
  gap: 0.55rem;
}

.track-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 0.55rem 0.65rem;
  text-align: left;
}

.track-number {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: rgba(242, 200, 107, 0.18);
  color: var(--gold);
  font-weight: 950;
}

.track-copy {
  min-width: 0;
}

.track-copy strong,
.track-copy span {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.18;
}

.track-copy strong {
  color: var(--ink);
}

.track-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.track-state {
  min-width: 5.2rem;
  color: var(--petrol-light);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.track-button.is-played {
  border-color: rgba(77, 212, 154, 0.36);
  background: rgba(77, 212, 154, 0.08);
}

.track-button.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(242, 200, 107, 0.45) inset;
}

@keyframes lightPulse {
  from {
    opacity: 0.55;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes reelJitter {
  0% {
    transform: translateY(-2%);
  }
  50% {
    transform: translateY(2%);
  }
  100% {
    transform: translateY(-2%);
  }
}

@media (max-width: 760px) {
  .control-shell {
    padding: 0.75rem;
  }

  .control-header {
    display: grid;
  }

  .controller-status {
    width: fit-content;
  }

  .control-actions {
    grid-template-columns: 1fr;
  }

  .segmented {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-tv,
  .photo-slide {
    grid-template-columns: 1fr;
  }

  .screen-photo {
    padding-top: 4.5rem;
  }

  .screen-photo .qr-panel {
    order: -1;
    width: min(100%, 420px);
    justify-self: center;
  }

  .photo-tv-copy h2,
  .photo-slide-empty h2 {
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .photo-slide img {
    height: 52vh;
  }

  .photo-control-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) and (orientation: landscape) {
  .display-screen {
    padding-top: 5rem;
    padding-bottom: 1rem;
  }

  .display-screen.screen-photo {
    justify-content: flex-start;
    padding-left: clamp(2rem, 4vw, 6rem);
    padding-right: clamp(2rem, 3vw, 4rem);
  }

  .reel-window {
    height: 190px;
  }

  .result-panel {
    min-height: 104px;
  }

  .photo-tv {
    width: min(92vw, 1600px);
    grid-template-columns: minmax(0, 520px) minmax(0, 720px);
    gap: clamp(2rem, 4vw, 5rem);
  }

  .photo-tv-copy h2 {
    font-size: clamp(3.4rem, 4.8vw, 5.8rem);
  }

  .photo-tv-text {
    max-width: 520px;
    font-size: clamp(1.45rem, 2.15vw, 2.5rem);
  }

  .qr-panel {
    width: min(100%, 720px);
    padding: 1rem;
  }

  .qr-code {
    width: min(100%, 540px);
  }
}
