/* ═══════════════════════════════════════════
   PUZZLE MASTER — Arcane Theme Stylesheet
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #080b12;
  --bg-dark: #0d1219;
  --bg-card: #111924;
  --bg-card-hover: #162030;
  --bg-surface: #1a2332;
  --border-subtle: #1e2d40;
  --border-accent: #2a4060;
  --gold: #c9a55a;
  --gold-bright: #e4c66e;
  --gold-dim: #8a7340;
  --ember: #c45d3e;
  --ember-glow: #e07050;
  --mystic: #6b7db5;
  --mystic-bright: #8fa0d4;
  --teal: #3d8b8b;
  --teal-bright: #5ab8b8;
  --text-primary: #d4dae4;
  --text-secondary: #8899aa;
  --text-dim: #556677;
  --success: #4a9e6e;
  --danger: #b04040;
  --danger-hover: #d04a4a;
  --warning: #b8883a;
  --font-display: 'Cinzel', serif;
  --font-body: 'Crimson Text', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow-gold: 0 0 20px rgba(201,165,90,0.15);
  --shadow-glow-ember: 0 0 20px rgba(196,93,62,0.15);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Subtle background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(107,125,181,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(201,165,90,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(196,93,62,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLLBAR ──────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── TYPOGRAPHY ─────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.03em;
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }

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

code, .mono { font-family: var(--font-mono); font-size: 0.9em; }

/* ── LAYOUT ─────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.page-header .subtitle {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.1rem;
}

.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
}

.connection-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── GRID LAYOUTS ───────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* ── CARDS ──────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.card.active {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-glow-gold);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--gold);
}

.card-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-dim);
  color: var(--gold);
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--bg-deep);
  border-color: var(--gold);
  font-weight: 600;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-deep);
  box-shadow: var(--shadow-glow-gold);
}

.btn-ember {
  background: var(--ember);
  color: #fff;
  border-color: var(--ember);
}

.btn-ember:hover {
  background: var(--ember-glow);
  box-shadow: var(--shadow-glow-ember);
}

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

.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-icon {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 6px;
  font-size: 1.1rem;
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── FORM ELEMENTS ──────────────────────── */
input, textarea, select {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(201,165,90,0.1);
}

textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group { margin-bottom: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── SECTION PANELS ─────────────────────── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.panel-header h3 {
  font-size: 0.95rem;
  color: var(--gold);
}

.panel-body { padding: 1.25rem; }

/* ── PUZZLE-SPECIFIC ────────────────────── */
.puzzle-text {
  font-size: 1.3rem;
  line-height: 1.7;
  white-space: pre-wrap;
  padding: 1.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
  font-style: italic;
}

.cipher-text {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--teal-bright);
  word-break: break-all;
}

.hint-box {
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--mystic);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(8px);
}

.hint-box.revealed {
  opacity: 1;
  transform: translateY(0);
}

.hint-box .hint-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mystic-bright);
  margin-bottom: 4px;
}

.answer-box {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(201,165,90,0.08), rgba(201,165,90,0.03));
  border: 2px solid var(--gold-dim);
  border-radius: var(--radius);
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.answer-box.revealed {
  opacity: 1;
  transform: scale(1);
}

.answer-box .answer-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.answer-box .answer-text {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-weight: 700;
}

/* ── SEQUENCE DISPLAY ───────────────────── */
.sequence-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 1.5rem;
}

.seq-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 60px;
  padding: 0 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-primary);
  transition: all 0.3s;
}

.seq-item.mystery {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,165,90,0.08);
  animation: pulse-border 2s infinite;
}

.seq-arrow {
  color: var(--text-dim);
  font-size: 1.2rem;
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,165,90,0.3); }
  50% { box-shadow: 0 0 12px 2px rgba(201,165,90,0.15); }
}

/* ── COMBINATION LOCK ───────────────────── */
.lock-display {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 2rem;
}

.lock-digit {
  width: 70px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-deep);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 2.5rem;
  color: var(--teal-bright);
}

/* ── MAZE ───────────────────────────────── */
.maze-grid {
  display: inline-grid;
  gap: 1px;
  background: var(--border-subtle);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 2px;
  margin: 0 auto;
}

.maze-cell {
  width: 32px;
  height: 32px;
  transition: all 0.2s;
}

.maze-cell.wall { background: var(--bg-deep); }
.maze-cell.path { background: var(--bg-surface); }
.maze-cell.start { background: var(--teal); border-radius: 50%; }
.maze-cell.end { background: var(--gold); border-radius: 50%; animation: pulse-border 2s infinite; }
.maze-cell.solution { background: rgba(201,165,90,0.2); }

/* ── TRIVIA ─────────────────────────────── */
.trivia-question {
  font-size: 1.2rem;
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.trivia-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.trivia-option {
  padding: 1rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius);
  text-align: center;
  font-size: 1rem;
  cursor: default;
  transition: all 0.3s;
}

.trivia-option.correct {
  border-color: var(--success);
  background: rgba(74,158,110,0.15);
  color: #6fd89a;
}

.trivia-option.wrong {
  border-color: var(--danger);
  background: rgba(176,64,64,0.1);
  opacity: 0.5;
}

/* ── MAGIC SQUARE ───────────────────────── */
.magic-grid {
  display: inline-grid;
  gap: 4px;
  margin: 0 auto;
}

.magic-cell {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  background: var(--bg-surface);
  border: 2px solid var(--border-accent);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.magic-cell.empty {
  border-style: dashed;
  border-color: var(--gold-dim);
  color: var(--gold);
}

.magic-cell.filled {
  color: var(--text-primary);
}

.magic-cell.revealed {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201,165,90,0.08);
}

/* ── TIMER ──────────────────────────────── */
.timer-display {
  text-align: center;
  padding: 2rem;
}

.timer-digits {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(212,218,228,0.2);
  transition: color 0.5s;
}

.timer-digits.warning { color: var(--warning); text-shadow: 0 0 20px rgba(184,136,58,0.3); }
.timer-digits.danger { color: var(--danger); text-shadow: 0 0 30px rgba(176,64,64,0.4); animation: timer-pulse 0.5s infinite; }

@keyframes timer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.timer-message {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ember-glow);
  margin-top: 1rem;
  min-height: 2rem;
}

/* ── DM CONTROLS ────────────────────────── */
.dm-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.dm-control-row:hover {
  border-color: var(--border-accent);
}

.dm-control-row .control-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.dm-control-row .control-label.active {
  color: var(--gold);
}

.dm-answer-preview {
  padding: 1rem;
  background: rgba(201,165,90,0.05);
  border: 1px dashed var(--gold-dim);
  border-radius: var(--radius);
  margin-top: 1rem;
}

.dm-answer-preview h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* ── SIDEBAR ────────────────────────────── */
.sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.sidebar .search-input {
  margin-bottom: 1rem;
}

.puzzle-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}

.puzzle-list-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
}

.puzzle-list-item.selected {
  background: var(--bg-card);
  border-color: var(--gold-dim);
}

.puzzle-list-item .item-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.puzzle-list-item .item-name {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.puzzle-list-item .item-cat {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.category-header {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 12px 12px 6px;
  margin-top: 8px;
}

/* ── TABS ───────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab:hover { color: var(--text-secondary); }
.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── MODAL ──────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 { font-size: 1.2rem; }

.modal-body { padding: 1.5rem; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* ── PLAYER PAGE SPECIFICS ──────────────── */
.player-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.player-waiting {
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.player-waiting .waiting-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.player-waiting h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.player-waiting p {
  color: var(--text-secondary);
  font-style: italic;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.player-puzzle-container {
  width: 100%;
  max-width: 900px;
  animation: fadeSlideIn 0.6s ease-out;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.puzzle-title-bar {
  text-align: center;
  margin-bottom: 2rem;
}

.puzzle-title-bar h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.puzzle-title-bar .puzzle-type-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.player-message {
  text-align: center;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ember-glow);
  background: rgba(196,93,62,0.08);
  border: 1px solid rgba(196,93,62,0.2);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  animation: fadeSlideIn 0.4s ease-out;
}

/* ── SETUP PAGE ─────────────────────────── */
.setup-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.setup-logo {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.setup-title {
  font-size: 3rem;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright), var(--ember-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.setup-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 3rem;
}

.setup-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  width: 100%;
}

.setup-card {
  padding: 2rem;
  text-align: center;
  cursor: pointer;
}

.setup-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.setup-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.setup-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.setup-info {
  margin-top: 3rem;
  padding: 1.5rem;
  max-width: 600px;
  text-align: left;
}

.setup-info h4 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.setup-info .step {
  display: flex;
  gap: 12px;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.setup-info .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── LOGIC PUZZLE ───────────────────────── */
.logic-scenario {
  font-size: 1.15rem;
  line-height: 1.8;
  white-space: pre-wrap;
  padding: 1.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.logic-rules {
  padding: 1rem;
  background: rgba(107,125,181,0.08);
  border: 1px solid rgba(107,125,181,0.2);
  border-radius: var(--radius);
  color: var(--mystic-bright);
  text-align: center;
  font-style: italic;
}

/* ── HIDDEN MESSAGE ─────────────────────── */
.hidden-text {
  font-size: 1.1rem;
  line-height: 2;
  white-space: pre-wrap;
  padding: 1.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  font-family: var(--font-body);
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    max-height: none;
  }
  .page-header h1 { font-size: 1.8rem; }
  .setup-title { font-size: 2rem; }
  .trivia-options { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-wrapper { padding: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .timer-digits { font-size: 3rem; }
  .lock-digit { width: 50px; height: 65px; font-size: 1.8rem; }
  .magic-cell { width: 60px; height: 60px; font-size: 1.3rem; }
}

/* ── UTILITY ────────────────────────────── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-ember { color: var(--ember); }
.text-dim { color: var(--text-dim); }
.text-secondary { color: var(--text-secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }
.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 1.5rem 0;
}
