/* Drake Jeopardy — Shiesty Nurse × OVO (black / gold) */

:root {
  --gold: #d4af37;
  --gold-bright: #f5d76e;
  --gold-dim: #a8892a;
  --black: #0a0a0a;
  --black-deep: #000000;
  --charcoal: #141414;
  --panel: rgba(10, 10, 10, 0.92);
  --cream: #f5f0e6;
  --muted: rgba(245, 240, 230, 0.55);
  --danger: #e74c3c;
  --success: #27ae60;
  --shiesty-red: #e10600;
  --x-black: #000000;
  --tiktok-cyan: #25f4ee;
  --tiktok-magenta: #fe2c55;
  --youtube-red: #ff0000;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
  --radius: 10px;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--black-deep);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.72) 40%, rgba(10, 8, 0, 0.88) 100%),
    url("../assets/brand/drake-ovo-champagne.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.owl {
  display: inline-block;
  width: 64px;
  height: 64px;
  vertical-align: middle;
}

.owl-lg {
  width: 96px;
  height: 96px;
}

.brand-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
  background: #111;
}

.brand-avatar-lg {
  width: 96px;
  height: 96px;
}

.lb-brand-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  display: block;
  margin: 0 auto 0.75rem;
  background: #111;
}

/* ---- Creator corner / socials (real brand colors) ---- */
.creator-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.landing-creator {
  align-items: center;
  margin: 0 0 1.25rem;
}

.follow-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.15s, box-shadow 0.15s;
}

.follow-link:hover {
  background: rgba(212, 175, 55, 0.15);
  text-decoration: none;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.15s;
}

.social-icons a:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.social-icons a svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* X — black tile, white glyph */
.social-x {
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.social-x:hover {
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

/* TikTok — black tile, cyan + magenta + white note */
.social-tiktok {
  background: #010101;
  border: 1px solid rgba(37, 244, 238, 0.45);
  box-shadow: 0 2px 8px rgba(254, 44, 85, 0.35);
}
.social-tiktok:hover {
  box-shadow: 0 0 14px rgba(37, 244, 238, 0.45), 0 0 18px rgba(254, 44, 85, 0.35);
}

/* YouTube — red tile */
.social-youtube {
  background: #ffffff;
  border: 1px solid rgba(255, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.35);
}
.social-youtube:hover {
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.5);
}

/* ---- Landing ---- */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  text-align: center;
}

.logo-block {
  margin-bottom: 0.75rem;
}

.logo-block h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.35), 2px 2px 0 #000;
  margin: 0.6rem 0 0.25rem;
  text-transform: uppercase;
}

.logo-block .subtitle {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.logo-block .tagline {
  color: var(--muted);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.logo-block .rules {
  margin-top: 1.1rem;
  text-align: left;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.logo-block .rules-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

.logo-block .rules-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.logo-block .rules-list li + li {
  margin-top: 0.45rem;
}

.logo-block .rules-list strong {
  color: var(--cream);
  font-weight: 600;
}


.card {
  background: var(--panel);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  width: min(420px, 100%);
  backdrop-filter: blur(10px);
}

.card label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.card input[type="text"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 2px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: var(--cream);
  font-size: 1.1rem;
  outline: none;
  transition: border-color 0.15s;
}

.card input[type="text"]:focus {
  border-color: var(--gold);
}

.card input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1200;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
  text-decoration: none;
  color: #1a1200;
}

.btn-secondary {
  background: transparent;
  color: var(--gold-bright);
  border: 2px solid rgba(212, 175, 55, 0.45);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  text-decoration: none;
  color: var(--cream);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.error-msg {
  color: #ff8a80;
  font-size: 0.9rem;
  margin-top: 0.6rem;
  min-height: 1.2em;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Game shell ---- */
.game-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 0.75rem 2rem;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem 1rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.topbar .brand h1 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
  color: var(--gold-bright);
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar .brand .sub {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.player-meta .handle {
  color: var(--gold-bright);
  font-weight: 600;
}

.player-meta .score {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-bright);
  font-weight: 700;
  min-width: 5ch;
  text-align: right;
}

.player-meta .score.negative {
  color: #ff8a80;
}

/* ---- Shiesty Nurse board frame ---- */
.board-frame {
  border: 3px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(180deg, #000 0%, #12100a 45%, #000 100%);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(212, 175, 55, 0.25),
    0 0 40px rgba(212, 175, 55, 0.18),
    inset 0 0 30px rgba(212, 175, 55, 0.06);
  padding: 0;
  overflow: hidden;
}

.shiesty-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  padding: 0.45rem 0.75rem;
  background: linear-gradient(90deg, #000 0%, #1a1400 25%, #000 50%, #1a1400 75%, #000 100%);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1.6vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

.shiesty-strip-bottom {
  border-bottom: none;
  border-top: 1px solid rgba(212, 175, 55, 0.45);
}

.strip-sep {
  color: var(--gold-dim);
  opacity: 0.85;
}

/* ---- Jeopardy board ---- */
.board-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px;
}

.board {
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  gap: 4px;
  background: #000;
  border: 2px solid rgba(212, 175, 55, 0.55);
  border-radius: 4px;
  padding: 4px;
  min-width: 920px;
}

.cat-header {
  background: linear-gradient(180deg, #1a1608 0%, #0a0a0a 55%, #000 100%);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1.4vw, 0.9rem);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.65rem 0.35rem;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-shadow: 1px 1px 2px #000;
  border: 2px solid rgba(212, 175, 55, 0.35);
  position: relative;
}

.cat-header::after {
  content: "🩺";
  position: absolute;
  bottom: 2px;
  right: 4px;
  font-size: 0.55rem;
  opacity: 0.4;
}

.cell {
  position: relative;
  background:
    linear-gradient(165deg, #1a160c 0%, #0c0c0c 45%, #050505 100%);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.85rem);
  font-weight: 700;
  text-align: center;
  padding: 0.7rem 0.35rem;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(212, 175, 55, 0.28);
  text-shadow: 2px 2px 0 #000;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  user-select: none;
  overflow: hidden;
}

.cell .owl-mark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.28;
  z-index: 0;
}

.cell .cell-value {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.15rem;
}

.cell .cell-owl {
  font-size: 0.55em;
  line-height: 1;
  margin-top: 0.05em;
  filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.55));
}

.cell:hover:not(.used):not(:disabled) {
  background:
    linear-gradient(165deg, #2a2210 0%, #141414 55%, #0a0a0a 100%);
  border-color: rgba(245, 215, 110, 0.65);
  transform: scale(1.02);
}

.cell:hover:not(.used):not(:disabled) .owl-mark {
  opacity: 0.4;
}

.cell:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.cell.used {
  background: #050505;
  color: transparent;
  text-shadow: none;
  cursor: default;
  border-color: rgba(0, 0, 0, 0.5);
}

.cell.used .owl-mark {
  opacity: 0.06;
  filter: grayscale(1);
}

.cell.used .cell-owl {
  visibility: hidden;
}

.cell.daily-double-glow:not(.used) {
  box-shadow: inset 0 0 0 3px var(--gold-bright);
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.clue-source {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(212, 175, 55, 0.7);
  word-break: break-all;
}

.clue-source a {
  color: var(--gold);
}

/* ---- Modal / clue overlay ---- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #14110a, #0a0a0a 50%, #000);
  border: 4px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow), 0 0 60px rgba(212, 175, 55, 0.25);
  padding: 1.5rem 1.35rem 1.75rem;
  text-align: center;
  animation: popIn 0.25s ease;
}

@keyframes popIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal .cat-label {
  font-family: var(--font-display);
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.modal .value-label {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.modal .clue-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  line-height: 1.35;
  color: var(--cream);
  text-shadow: 1px 1px 2px #000;
  margin: 0 0 1.25rem;
  padding: 0 0.25rem;
}

.modal.daily-double {
  background: linear-gradient(160deg, #2a1a00, #0a0a0a 40%, #1a1408);
}

.modal.daily-double .dd-banner {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0.25rem 0 1rem;
  text-shadow: 0 0 20px rgba(245, 215, 110, 0.5);
}

.modal.final-j {
  background: linear-gradient(160deg, #000, #1a160c 50%, #0a0a0a);
}

.answer-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
  max-width: 480px;
  margin: 0 auto;
}

.answer-form input[type="text"],
.answer-form input[type="number"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 2px solid rgba(245, 215, 110, 0.5);
  background: rgba(0, 0, 0, 0.45);
  color: var(--cream);
  font-size: 1.15rem;
  text-align: center;
  outline: none;
}

.answer-form input:focus {
  border-color: var(--gold-bright);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0.25rem 0 0;
}

.judge-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.judge-result.correct {
  background: rgba(39, 174, 96, 0.25);
  border: 1px solid var(--success);
  color: #a8f0c0;
}

.judge-result.incorrect {
  background: rgba(231, 76, 60, 0.25);
  border: 1px solid var(--danger);
  color: #ffb4ac;
}


.correct-answer {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--gold-bright);
}

/* ---- Answer timer (anti-cheat countdown) ---- */
.answer-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.35rem 0.85rem;
  margin: 0 auto 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  text-shadow: 0 0 12px rgba(245, 215, 110, 0.45);
  line-height: 1.1;
}

.answer-timer.urgent {
  color: #fff;
  border-color: var(--danger);
  background: rgba(231, 76, 60, 0.35);
  box-shadow: 0 0 22px rgba(231, 76, 60, 0.55), 0 0 12px rgba(245, 215, 110, 0.35);
  animation: timerPulse 0.55s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}


/* ---- End screen ---- */
.end-screen {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 520px;
  margin: 2rem auto;
}

.end-screen h2 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.end-screen .final-score {
  font-size: 3rem;
  font-family: var(--font-display);
  color: var(--cream);
  margin: 1rem 0;
}

.end-screen .submit-status {
  color: var(--gold);
  font-size: 0.95rem;
  min-height: 1.4em;
}

/* ---- Leaderboard ---- */
.lb-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.lb-page header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lb-page h1 {
  font-family: var(--font-display);
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin: 0.5rem 0 0.25rem;
}

.lb-page .subtitle {
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.lb-table-wrap {
  background: var(--panel);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

table.lb {
  width: 100%;
  border-collapse: collapse;
}

table.lb th,
table.lb td {
  padding: 0.85rem 1rem;
  text-align: left;
}

table.lb th {
  background: #111;
  color: var(--gold-bright);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

table.lb tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

table.lb td.rank {
  color: var(--gold);
  font-weight: 700;
  width: 3rem;
}

table.lb td.score {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-weight: 700;
}

table.lb td.date {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

table.lb td.handle-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.lb-row-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.5);
  flex-shrink: 0;
  background: #111;
}

.lb-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(255, 255, 255, 0.55);
}

.lb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.35);
  margin-left: 0.35rem;
  vertical-align: middle;
}

.hidden { display: none !important; }

@media (max-width: 640px) {
  .cell {
    min-height: 48px;
    padding: 0.7rem 0.2rem;
  }
  .cat-header {
    min-height: 52px;
    font-size: 0.6rem;
  }
  .modal {
    padding: 1.15rem 1rem 1.35rem;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .shiesty-strip {
    letter-spacing: 0.1em;
    font-size: 0.6rem;
  }
}

/* ---- Answer timer (anti-cheat) ---- */
.answer-timer {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  margin: 0.15rem 0 0;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  letter-spacing: 0.04em;
}

.answer-timer.urgent {
  color: #ff6b5a;
  text-shadow: 0 0 20px rgba(255, 80, 60, 0.55);
  animation: timerPulse 0.55s ease-in-out infinite;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.timer-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 215, 110, 0.75);
  margin: 0.15rem 0 0.85rem;
}

.refill-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--gold-bright);
  letter-spacing: 0.03em;
}

.cell.cell-refill {
  animation: cellRefill 0.55s ease;
  border-color: rgba(245, 215, 110, 0.85);
}

@keyframes cellRefill {
  0% { transform: scale(0.92); opacity: 0.35; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}


/* ---- BIG answer timer (must be impossible to miss) ---- */
.timer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1rem;
  margin: -0.25rem 0 1rem;
  border-radius: 8px;
  background: #000;
  border: 3px solid var(--gold-bright);
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.45);
}

.timer-bar.urgent {
  border-color: #ff4d3d;
  box-shadow: 0 0 28px rgba(255, 60, 40, 0.55);
  animation: timerPulse 0.55s ease-in-out infinite;
}

.timer-bar-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  font-weight: 700;
}

.timer-bar .answer-timer {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4rem);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
  margin: 0;
  min-width: 2ch;
  text-align: center;
  text-shadow: 0 0 22px rgba(212, 175, 55, 0.6);
}

.timer-bar.urgent .answer-timer,
.timer-bar .answer-timer.urgent {
  color: #ff6b5a;
  text-shadow: 0 0 22px rgba(255, 80, 60, 0.65);
}

.dd-wager-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

/* ---- BGM controls (gold/black, compact) ---- */
.bgm-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.bgm-mute {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--gold-bright);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.2rem;
  border-radius: 6px;
}

.bgm-mute:hover {
  background: rgba(212, 175, 55, 0.12);
}

.bgm-mute[aria-pressed="true"] {
  opacity: 0.75;
}

.bgm-vol-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.bgm-volume {
  width: 72px;
  height: 4px;
  accent-color: var(--gold);
  cursor: pointer;
  vertical-align: middle;
}

.bgm-volume:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.landing .bgm-controls {
  margin: 0.85rem auto 0;
}

.player-meta .bgm-controls {
  margin-left: 0.25rem;
}

@media (max-width: 640px) {
  .bgm-volume {
    width: 56px;
  }
}


/* ---- Voice control (OVO gold/black mic) ---- */
.voice-board-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin-bottom: 0.35rem;
}

.btn-mic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 3rem;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid var(--gold);
  background: linear-gradient(165deg, #1a1508, #0a0a0a);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-mic:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.45);
  background: linear-gradient(165deg, #2a210c, #0a0a0a);
}

.btn-mic:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-mic.armed {
  border-color: var(--gold-bright);
  color: #0a0a0a;
  background: linear-gradient(165deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}

.btn-mic.armed.listening {
  animation: micPulse 1.1s ease-in-out infinite;
}

.btn-mic:not(.armed) {
  /* Mic OFF — quiet charcoal pill */
  color: var(--gold);
  background: linear-gradient(165deg, #1a1508, #0a0a0a);
}

@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(212, 175, 55, 0.35); }
  50% { box-shadow: 0 0 28px rgba(245, 215, 110, 0.85); }
}

.btn-mic .mic-icon {
  display: block;
}

.voice-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--gold);
  text-align: center;
}

.voice-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  max-width: 28rem;
}

.answer-mic-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}

.answer-mic-row input {
  flex: 1;
  min-width: 0;
}

.btn-mic-answer {
  flex-shrink: 0;
  min-width: 2.75rem;
  padding: 0.45rem 0.75rem;
}

.btn-mic-answer .mic-label {
  display: none;
}

@media (max-width: 640px) {
  .btn-mic-board .mic-label {
    display: inline;
  }
}


/* ---- How to Play overlay (OVO black/gold) ---- */
.howto-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.howto-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.howto-modal {
  width: min(640px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(165deg, #14110a, #0a0a0a 50%, #000);
  border: 4px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow), 0 0 50px rgba(212, 175, 55, 0.3);
  padding: 1.5rem 1.35rem 1.6rem;
  text-align: left;
  animation: popIn 0.25s ease;
  color: var(--cream);
}

.howto-modal h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  color: var(--gold-bright);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.howto-section {
  margin-bottom: 1.1rem;
}

.howto-section h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.howto-section ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.88);
}

.howto-section li + li {
  margin-top: 0.4rem;
}

.howto-section strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.howto-section em {
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 600;
}

.howto-dont-show {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.howto-dont-show input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
}

.howto-actions {
  margin-top: 0.25rem;
}

.howto-actions .btn {
  min-width: 7.5rem;
}

@media (max-width: 640px) {
  .howto-modal {
    padding: 1.15rem 1rem 1.25rem;
  }
  .howto-section ul {
    font-size: 0.85rem;
  }
}



/* ---- Drake / OVO theme marks ---- */
.drake-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
}
.drake-mark-lg {
  width: 96px;
  height: 96px;
  border-width: 3px;
}
.drake-hero-strip {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 0.25rem;
}
.drake-hero-strip img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}
.cell-drake {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.7);
  opacity: 0.85;
  vertical-align: middle;
}
.board-frame {
  position: relative;
}
.board-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/brand/drake-habibti-cover.jpg") center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.board-frame > * {
  position: relative;
  z-index: 1;
}
