/* ==========================================================================
   GSC In Motion — Game Pages & Interactive Demos Stylesheet
   Division of Gradedsports Cards LLC
   Palette: Dark Navy (#0D1B2A / #1B2A4A) & Metallic Gold (#C5A059 / #E6C363)
   Semantic: Emerald (#2E7D32), Amber (#FFB300), Crimson (#C62828), Slate (#37474F)
   ========================================================================== */

:root {
  --demo-bg-primary: var(--bg-primary, #0D1B2A);
  --demo-bg-elevated: var(--bg-elevated, #1B2A4A);
  --demo-bg-surface: var(--bg-surface, #132238);
  --demo-gold: var(--gold, #C5A059);
  --demo-gold-bright: var(--gold-bright, #E6C363);
  --demo-text-primary: var(--text-primary, #FFFFFF);
  --demo-text-secondary: var(--text-secondary, #C5D1E0);
  --demo-text-muted: var(--text-muted, #8FA3BD);
  --demo-correct: var(--state-correct, #2E7D32);
  --demo-active: var(--state-active, #FFB300);
  --demo-inactive: var(--state-inactive, #37474F);
  --demo-error: var(--state-error, #C62828);
  --demo-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --demo-radius: 16px;
  --demo-radius-sm: 10px;
}

/* ---------- Game Page Layout & Hero ---------- */

.game-page {
  padding-bottom: 4rem;
}

.game-hero {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  background: radial-gradient(circle at 80% 0%, rgba(197, 160, 89, 0.14), transparent 55%),
              linear-gradient(180deg, rgba(27, 42, 74, 0.45) 0%, transparent 100%);
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.75rem;
  align-items: center;
}

.game-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--demo-gold-bright);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 0.9rem;
}

.game-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--demo-text-primary);
  margin: 0 0 0.75rem;
}

.game-lead {
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--demo-text-secondary);
  margin: 0 0 1.25rem;
  max-width: 62ch;
}

.game-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
}

.game-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--demo-text-secondary);
  background: var(--demo-bg-surface);
  border: 1px solid rgba(197, 209, 224, 0.18);
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
}

.game-pill--gold {
  color: var(--demo-gold-bright);
  border-color: rgba(197, 160, 89, 0.45);
  background: rgba(197, 160, 89, 0.1);
}

/* Store Badges Panel */
.store-panel {
  background: linear-gradient(155deg, rgba(27, 42, 74, 0.95), rgba(19, 34, 56, 0.95));
  border: 1px solid rgba(197, 160, 89, 0.38);
  border-radius: var(--demo-radius);
  padding: 1.2rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.store-panel-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--demo-gold-bright);
  margin: 0 0 0.35rem;
}

.store-panel-sub {
  font-size: 0.88rem;
  color: var(--demo-text-secondary);
  margin: 0 0 0.95rem;
  line-height: 1.45;
}

.store-panel .store-badges {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.6rem;
}

.store-panel .store-badge {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.6rem 0.9rem;
  border-radius: var(--demo-radius-sm);
  background: rgba(13, 27, 42, 0.85);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: var(--demo-text-primary);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.store-panel .store-badge:hover,
.store-panel .store-badge:focus-visible {
  border-color: var(--demo-gold-bright);
  background: rgba(27, 42, 74, 0.95);
  transform: translateY(-1px);
}

.store-badge-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.store-badge-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--demo-gold-bright);
  flex-shrink: 0;
}

.store-badge-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge-small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--demo-text-muted);
}

.store-badge-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--demo-text-primary);
}

.store-badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--demo-gold-bright);
  background: rgba(197, 160, 89, 0.14);
  border: 1px solid rgba(197, 160, 89, 0.35);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- Demo Shell Container ---------- */

.demo-section {
  padding: 2rem 0 1.5rem;
}

.demo-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.demo-section-header h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  margin: 0;
  color: var(--demo-text-primary);
}

.demo-section-note {
  font-size: 0.88rem;
  color: var(--demo-text-muted);
  margin: 0;
}

.demo-shell {
  background: linear-gradient(165deg, rgba(27, 42, 74, 0.88) 0%, rgba(19, 34, 56, 0.96) 100%);
  border: 1px solid rgba(197, 160, 89, 0.38);
  border-radius: 20px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.demo-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.95rem 1.25rem;
  background: rgba(13, 27, 42, 0.75);
  border-bottom: 1px solid rgba(197, 160, 89, 0.24);
}

.demo-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.35rem;
}

.demo-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.demo-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--demo-text-muted);
}

.demo-stat-value {
  font-family: var(--demo-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--demo-text-primary);
}

.demo-stat-value--gold {
  color: var(--demo-gold-bright);
}

.demo-stat-value--amber {
  color: var(--demo-active);
}

.demo-hud-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.demo-body {
  padding: 1.35rem;
}

/* ---------- Buttons (Minimum 44x44px Touch Targets) ---------- */

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.55rem 1rem;
  border-radius: var(--demo-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  border: 1px solid rgba(197, 209, 224, 0.25);
  background: rgba(13, 27, 42, 0.85);
  color: var(--demo-text-primary);
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  user-select: none;
}

.demo-btn:hover:not(:disabled) {
  border-color: var(--demo-gold);
  background: rgba(27, 42, 74, 0.98);
  transform: translateY(-1px);
}

.demo-btn:active:not(:disabled) {
  transform: translateY(0);
}

.demo-btn:focus-visible {
  outline: 2px solid var(--demo-active);
  outline-offset: 2px;
}

.demo-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.demo-btn--gold {
  background: linear-gradient(135deg, #C5A059 0%, #E6C363 100%);
  color: #0D1B2A;
  border-color: #E6C363;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.28);
}

.demo-btn--gold:hover:not(:disabled) {
  background: linear-gradient(135deg, #D5B068 0%, #F1D27B 100%);
  color: #0D1B2A;
  border-color: #F1D27B;
  box-shadow: 0 8px 24px rgba(230, 195, 99, 0.36);
}

.demo-btn--amber {
  border-color: rgba(255, 179, 0, 0.55);
  color: var(--demo-active);
  background: rgba(255, 179, 0, 0.1);
}

.demo-btn--amber:hover:not(:disabled) {
  background: rgba(255, 179, 0, 0.18);
  border-color: var(--demo-active);
}

.demo-btn--ghost {
  background: transparent;
  border-color: rgba(197, 209, 224, 0.22);
  color: var(--demo-text-secondary);
}

.demo-btn--lg {
  min-height: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Status Banner */
.demo-feedback-bar {
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--demo-text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  background: rgba(13, 27, 42, 0.5);
  border: 1px solid rgba(197, 209, 224, 0.12);
  margin-top: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.demo-feedback-bar.is-correct {
  background: rgba(46, 125, 50, 0.22);
  border-color: var(--demo-correct);
  color: #B9F6CA;
}

.demo-feedback-bar.is-active {
  background: rgba(255, 179, 0, 0.16);
  border-color: var(--demo-active);
  color: #FFE082;
}

.demo-feedback-bar.is-error {
  background: rgba(198, 40, 40, 0.22);
  border-color: var(--demo-error);
  color: #FFCDD2;
}

/* ---------- Shared Score Card (Dark Navy & Metallic Gold) ---------- */

.score-card {
  background: radial-gradient(circle at top center, rgba(230, 195, 99, 0.16), transparent 60%),
              linear-gradient(160deg, #132238 0%, #0D1B2A 100%);
  border: 2px solid var(--demo-gold);
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(230, 195, 99, 0.35);
  animation: gsc-fade-up 0.35s ease both;
}

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

.score-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0D1B2A;
  background: linear-gradient(135deg, #C5A059, #E6C363);
  margin-bottom: 0.85rem;
}

.score-card h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--demo-text-primary);
  margin: 0 0 0.4rem;
}

.score-card-subtitle {
  color: var(--demo-text-secondary);
  font-size: 0.94rem;
  margin: 0 auto 1.35rem;
  max-width: 50ch;
}

.score-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.score-metric {
  background: rgba(27, 42, 74, 0.78);
  border: 1px solid rgba(197, 160, 89, 0.32);
  border-radius: 12px;
  padding: 0.9rem 0.75rem;
}

.score-metric--featured {
  background: linear-gradient(160deg, rgba(197, 160, 89, 0.2), rgba(27, 42, 74, 0.9));
  border-color: var(--demo-gold-bright);
}

.score-metric-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--demo-text-muted);
  margin-bottom: 0.25rem;
}

.score-metric-value {
  display: block;
  font-family: var(--demo-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--demo-text-primary);
  line-height: 1.15;
}

.score-metric--featured .score-metric-value {
  color: var(--demo-gold-bright);
}

.score-metric-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--demo-text-secondary);
  margin-top: 0.2rem;
}

.score-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.score-card-cta {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(197, 160, 89, 0.25);
}

.score-card-cta p {
  font-size: 0.88rem;
  color: var(--demo-text-secondary);
  margin: 0 0 0.75rem;
}

.score-card-cta-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* ==========================================================================
   1. DAILY GENIUS RUN — 4x4 Word Matrix & 3 Mini-Clues
   ========================================================================== */

.dgr-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.dgr-clues-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dgr-panel-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--demo-gold-bright);
  margin: 0 0 0.15rem;
}

.dgr-clue-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.dgr-clue-btn {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: rgba(13, 27, 42, 0.72);
  border: 1.5px solid rgba(197, 209, 224, 0.18);
  color: var(--demo-text-primary);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.dgr-clue-btn:hover {
  border-color: rgba(197, 160, 89, 0.65);
}

.dgr-clue-btn:focus-visible {
  outline: 2px solid var(--demo-active);
  outline-offset: 2px;
}

.dgr-clue-btn.is-active {
  border-color: var(--demo-active);
  background: rgba(255, 179, 0, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 179, 0, 0.25);
}

.dgr-clue-btn.is-solved {
  border-color: var(--demo-correct);
  background: rgba(46, 125, 50, 0.18);
}

.dgr-clue-index {
  font-family: var(--demo-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--demo-gold-bright);
  background: rgba(197, 160, 89, 0.14);
  border-radius: 6px;
  padding: 0.18rem 0.45rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.dgr-clue-btn.is-active .dgr-clue-index {
  background: var(--demo-active);
  color: #0D1B2A;
}

.dgr-clue-btn.is-solved .dgr-clue-index {
  background: var(--demo-correct);
  color: #FFFFFF;
}

.dgr-clue-copy {
  flex: 1;
}

.dgr-clue-text {
  display: block;
  font-size: 0.92rem;
  line-height: 1.38;
  color: var(--demo-text-primary);
  font-weight: 600;
}

.dgr-clue-answer {
  font-family: var(--demo-mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--demo-text-muted);
  white-space: nowrap;
  align-self: center;
}

.dgr-clue-btn.is-solved .dgr-clue-answer {
  color: #81C784;
}

/* 4-Letter Live Readout Slots */
.dgr-readout-wrap {
  background: rgba(13, 27, 42, 0.75);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: 12px;
  padding: 0.85rem;
}

.dgr-word-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.dgr-slot {
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(27, 42, 74, 0.65);
  border: 1.5px dashed rgba(197, 209, 224, 0.28);
  font-family: var(--demo-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--demo-text-primary);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.dgr-slot.is-filled {
  border-style: solid;
  border-color: var(--demo-active);
  background: rgba(255, 179, 0, 0.15);
  color: var(--demo-gold-bright);
  transform: scale(1.03);
}

.dgr-slot.is-error {
  border-style: solid;
  border-color: var(--demo-error);
  background: rgba(198, 40, 40, 0.28);
  color: #FFFFFF;
}

.dgr-slot.is-correct {
  border-style: solid;
  border-color: var(--demo-correct);
  background: rgba(46, 125, 50, 0.3);
  color: #FFFFFF;
}

.dgr-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

/* 4x4 Letter Grid */
.dgr-grid-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dgr-matrix {
  width: 100%;
  max-width: 340px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.dgr-tile {
  position: relative;
  aspect-ratio: 1;
  min-width: 56px;
  min-height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(155deg, #1E3256 0%, #142542 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.42);
  color: var(--demo-text-primary);
  font-family: var(--demo-mono);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.26);
  transition: transform 0.14s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
  user-select: none;
}

.dgr-tile:hover:not(:disabled) {
  border-color: var(--demo-gold-bright);
  transform: translateY(-2px);
}

.dgr-tile:focus-visible {
  outline: 2px solid var(--demo-active);
  outline-offset: 2px;
}

.dgr-tile.is-selected {
  background: linear-gradient(145deg, #FFB300, #E69500);
  border-color: #FFE082;
  color: #0D1B2A;
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.28), 0 8px 18px rgba(0, 0, 0, 0.35);
}

.dgr-tile.is-solved {
  background: linear-gradient(145deg, #2E7D32, #1F5B23);
  border-color: #66BB6A;
  color: #FFFFFF;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dgr-tile.is-error {
  background: linear-gradient(145deg, #C62828, #8E1B1B);
  border-color: #EF5350;
  color: #FFFFFF;
  animation: gsc-shake 0.38s ease;
}

.dgr-tile.is-inactive {
  background: var(--demo-inactive);
  border-color: rgba(197, 209, 224, 0.18);
  color: var(--demo-text-muted);
  opacity: 0.65;
}

.dgr-tile-order {
  position: absolute;
  top: 5px;
  right: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: #0D1B2A;
}

.dgr-grid-hint {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--demo-text-muted);
  text-align: center;
}

/* ==========================================================================
   2. SOCIAL IQ — 3-Question 160-Scale Trivia Speedrun
   ========================================================================== */

.siq-launch {
  max-width: 600px;
  margin: 0.5rem auto;
  text-align: center;
  padding: 1.25rem 0.5rem;
}

.siq-launch[hidden],
.siq-stage[hidden] {
  display: none;
}

.siq-scale-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.25rem 0 1.5rem;
}

.siq-scale-chip {
  background: rgba(13, 27, 42, 0.72);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 12px;
  padding: 0.85rem 0.6rem;
}

.siq-scale-chip strong {
  display: block;
  font-family: var(--demo-mono);
  font-size: 1.15rem;
  color: var(--demo-gold-bright);
  margin-bottom: 0.2rem;
}

.siq-scale-chip span {
  font-size: 0.78rem;
  color: var(--demo-text-secondary);
}

.siq-timer-display {
  font-family: var(--demo-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 800;
  color: var(--demo-gold-bright);
  letter-spacing: 0.02em;
}

.siq-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(55, 71, 79, 0.7);
  overflow: hidden;
  margin-bottom: 1.35rem;
}

.siq-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--demo-gold) 0%, var(--demo-active) 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.siq-question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.siq-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--demo-active);
  background: rgba(255, 179, 0, 0.12);
  border: 1px solid rgba(255, 179, 0, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}

.siq-q-counter {
  font-family: var(--demo-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--demo-text-muted);
}

.siq-question-text {
  font-size: clamp(1.12rem, 2.5vw, 1.42rem);
  font-weight: 700;
  line-height: 1.38;
  color: var(--demo-text-primary);
  margin: 0 0 1.25rem;
}

.siq-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.siq-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0.85rem 1rem;
  text-align: left;
  border-radius: 12px;
  background: rgba(13, 27, 42, 0.78);
  border: 1.5px solid rgba(197, 160, 89, 0.34);
  color: var(--demo-text-primary);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease;
}

.siq-option:hover:not(:disabled) {
  border-color: var(--demo-active);
  background: rgba(27, 42, 74, 0.95);
  transform: translateY(-1px);
}

.siq-option:focus-visible {
  outline: 2px solid var(--demo-active);
  outline-offset: 2px;
}

.siq-option-key {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--demo-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--demo-gold-bright);
  background: rgba(197, 160, 89, 0.14);
  border: 1px solid rgba(197, 160, 89, 0.35);
  flex-shrink: 0;
}

.siq-option.is-correct {
  background: rgba(46, 125, 50, 0.32);
  border-color: #66BB6A;
  color: #FFFFFF;
}

.siq-option.is-correct .siq-option-key {
  background: var(--demo-correct);
  border-color: #66BB6A;
  color: #FFFFFF;
}

.siq-option.is-wrong {
  background: rgba(198, 40, 40, 0.32);
  border-color: #EF5350;
  color: #FFFFFF;
  animation: gsc-shake 0.35s ease;
}

.siq-option.is-wrong .siq-option-key {
  background: var(--demo-error);
  border-color: #EF5350;
  color: #FFFFFF;
}

.siq-option.is-dimmed {
  background: rgba(55, 71, 79, 0.45);
  border-color: rgba(197, 209, 224, 0.12);
  color: var(--demo-text-muted);
  opacity: 0.7;
}

.siq-disclaimer {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  color: var(--demo-text-muted);
  text-align: center;
}

/* ==========================================================================
   3. 749-DOKU — Sculpted 7x7 Logic Board
   ========================================================================== */

.kd-layout {
  display: grid;
  grid-template-columns: minmax(0, 448px) minmax(240px, 1fr);
  gap: 1.65rem;
  align-items: start;
  justify-content: center;
}

.kd-board-wrap {
  width: 100%;
  max-width: 448px;
  margin: 0 auto;
}

.kd-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  aspect-ratio: 1;
  border: 2.5px solid var(--demo-gold);
  border-radius: 12px;
  overflow: hidden;
  background: #0D1B2A;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
}

.kd-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border-style: solid;
  border-width: 1px;
  border-color: rgba(197, 209, 224, 0.14);
  font-family: var(--demo-mono);
  font-size: clamp(1.05rem, 3.6vw, 1.45rem);
  font-weight: 700;
  color: var(--demo-text-primary);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
  user-select: none;
}

/* Subtle navy luminance variations across the 7 sculpted regions */
.kd-reg-0 { background-color: #13253F; }
.kd-reg-1 { background-color: #1B3152; }
.kd-reg-2 { background-color: #102037; }
.kd-reg-3 { background-color: #1D3559; }
.kd-reg-4 { background-color: #152946; }
.kd-reg-5 { background-color: #192E4E; }
.kd-reg-6 { background-color: #11223B; }

/* Thick Metallic Gold sculpted region boundaries */
.kd-cell[data-bt="1"] { border-top: 2.5px solid var(--demo-gold); }
.kd-cell[data-br="1"] { border-right: 2.5px solid var(--demo-gold); }
.kd-cell[data-bb="1"] { border-bottom: 2.5px solid var(--demo-gold); }
.kd-cell[data-bl="1"] { border-left: 2.5px solid var(--demo-gold); }

.kd-cell:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2.5px var(--demo-active);
  z-index: 3;
}

.kd-cell.is-given {
  color: var(--demo-gold-bright);
  font-weight: 800;
}

.kd-cell.is-user {
  color: #FFFFFF;
}

.kd-cell.is-peer {
  background-color: rgba(197, 160, 89, 0.14);
}

.kd-cell.is-same-digit {
  background-color: rgba(197, 160, 89, 0.25);
}

.kd-cell.is-selected {
  background-color: rgba(255, 179, 0, 0.26);
  box-shadow: inset 0 0 0 2.5px var(--demo-active);
  z-index: 2;
}

.kd-cell.is-conflict {
  background-color: rgba(198, 40, 40, 0.52);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 2px #EF5350;
  z-index: 2;
}

.kd-cell.is-hinted {
  box-shadow: inset 0 0 0 2px #81C784;
}

.kd-board.is-solved .kd-cell {
  background-color: rgba(46, 125, 50, 0.32);
  color: #FFFFFF;
  cursor: default;
  animation: gsc-emerald-pulse 0.9s ease;
}

/* 749-Doku Side Controls & Number Pad */
.kd-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.kd-legend {
  background: rgba(13, 27, 42, 0.65);
  border: 1px solid rgba(197, 160, 89, 0.24);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font-size: 0.86rem;
  line-height: 1.48;
  color: var(--demo-text-secondary);
}

.kd-legend strong {
  color: var(--demo-gold-bright);
}

.kd-numpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.kd-num-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  min-width: 44px;
  padding: 0.4rem 0.35rem;
  border-radius: 12px;
  background: linear-gradient(155deg, #1E3256 0%, #132238 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.42);
  color: var(--demo-text-primary);
  font-family: var(--demo-mono);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.16s ease, background 0.16s ease;
}

.kd-num-btn:hover:not(:disabled) {
  border-color: var(--demo-active);
  background: rgba(255, 179, 0, 0.16);
  transform: translateY(-1px);
}

.kd-num-btn:focus-visible {
  outline: 2px solid var(--demo-active);
  outline-offset: 2px;
}

.kd-num-digit {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.05;
}

.kd-num-left {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--demo-text-muted);
  margin-top: 0.15rem;
}

.kd-num-btn.is-complete {
  background: rgba(46, 125, 50, 0.18);
  border-color: rgba(46, 125, 50, 0.55);
  color: #A5D6A7;
}

.kd-num-btn.is-complete .kd-num-left {
  color: #81C784;
}

.kd-num-btn--erase {
  background: rgba(55, 71, 79, 0.55);
  border-color: rgba(197, 209, 224, 0.25);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--demo-text-secondary);
}

.kd-action-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.kd-kbd-tip {
  font-size: 0.78rem;
  color: var(--demo-text-muted);
  margin: 0;
}

/* ---------- Feature Highlights Grid ---------- */

.game-features {
  padding: 1.5rem 0;
}

.game-features h2 {
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  margin: 0 0 1rem;
  color: var(--demo-text-primary);
}

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

.feature-card {
  background: rgba(19, 34, 56, 0.86);
  border: 1px solid rgba(197, 160, 89, 0.24);
  border-radius: 14px;
  padding: 1.15rem;
}

.feature-card h3 {
  font-size: 1rem;
  margin: 0 0 0.45rem;
  color: var(--demo-gold-bright);
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--demo-text-secondary);
  margin: 0;
}

/* ---------- Web-Safe AdSense / AdMob Placement ---------- */

.ad-container {
  margin: 2rem 0 0.5rem;
  padding: 0.85rem 1rem 1rem;
  background: rgba(19, 34, 56, 0.65);
  border: 1px dashed rgba(197, 209, 224, 0.22);
  border-radius: 14px;
  text-align: center;
}

.ad-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--demo-text-muted);
  margin-bottom: 0.55rem;
}

.ad-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(13, 27, 42, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.16);
  padding: 0.75rem 1rem;
}

.ad-slot-placeholder {
  font-size: 0.82rem;
  color: var(--demo-text-muted);
}

/* ---------- Animations ---------- */

@keyframes gsc-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
  90% { transform: translateX(3px); }
}

@keyframes gsc-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gsc-emerald-pulse {
  0% { background-color: rgba(46, 125, 50, 0.68); }
  100% { background-color: rgba(46, 125, 50, 0.32); }
}

/* ---------- Responsive Breakpoints (Mobile 375px & Tablet) ---------- */

@media (max-width: 900px) {
  .game-hero-grid {
    grid-template-columns: 1fr;
  }

  .dgr-layout,
  .kd-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .demo-hud {
    padding: 0.85rem 1rem;
  }

  .demo-body {
    padding: 1rem 0.85rem;
  }

  .siq-options {
    grid-template-columns: 1fr;
  }

  .siq-scale-preview {
    grid-template-columns: 1fr;
  }

  .dgr-matrix {
    gap: 0.45rem;
  }

  .kd-cell {
    min-width: 44px;
    min-height: 44px;
    font-size: 1.05rem;
  }

  .score-card {
    padding: 1.35rem 1rem;
  }
}

@media (max-width: 380px) {
  .demo-body {
    padding: 0.85rem 0.6rem;
  }

  .kd-cell {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .score-card,
  .dgr-tile,
  .siq-option,
  .kd-board.is-solved .kd-cell {
    animation: none !important;
    transition: none !important;
  }
}
