* {
  box-sizing: border-box;
}

:root {
  --bg: #0f1828;
  --panel: #1a2741;
  --panel-soft: #233553;
  --panel-dark: #122036;
  --line: rgba(255, 255, 255, 0.12);
  --text: #edf4ff;
  --muted: #b6c4dc;
  --accent: #7fd2ff;
  --accent-strong: #59bcff;
  --accent-dark: #07131f;
  --shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: linear-gradient(180deg, #09111f 0%, #0f1828 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body {
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font: inherit;
}

.hidden {
  display: none !important;
}

.game-body {
  padding: 18px;
}

.game-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  min-width: 0;
}
/* =========================
   line number 57
========================= */
.persistent-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.header-left {
  display: grid;
  gap: 6px;
  order: 1;
}

.game-name {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}

.game-date {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.header-right {
  display: flex;
  align-items: flex-start;
  order: 2;
}

.user-link {
  background: transparent;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
  font-size: 18px;
}
/* =========================
   line number 113
========================= */
.header-progress-row {
  display: grid;
  gap: 8px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-weight: 700;
}

.progress-label,
.progress-percent {
  color: var(--muted);
}

.progress-bar {
  position: relative;
  min-height: 22px;
  border-radius: 999px;
  background: #0d1728;
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  min-height: 22px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.3s ease;
}

.chapter-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.35);
}
/* =========================
   line number 159
========================= */
.header-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.header-left-controls {
  width: 100%;
  display: grid;
  gap: 14px;
  align-items: center;
}

.game-timer-box {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: var(--muted);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-link-button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-dark);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.detective-tools-toggle {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-dark);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* =========================
   line number 217
========================= */
.detective-tools-toggle.is-active {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: transparent;
}

.workspace {
  display: grid;
  gap: 18px;
}

.nav-drawer {
  display: none;
  background: rgba(18, 32, 54, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

body.tools-drawer-open .persistent-header .nav-drawer {
  display: block;
}

body.tools-drawer-open .content-pane {
  display: none;
}

body.tools-drawer-open .tools-content-pane {
  display: block;
}

body:not(.tools-drawer-open) .tools-content-pane {
  display: none;
}

body:not(.tools-drawer-open) .content-pane {
  display: block;
}

.nav-drawer-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.drawer-tab {
  min-height: 46px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}
/* =========================
   line number 277
========================= */
.drawer-tab.is-active {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: transparent;
}

.tools-content-pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.nav-drawer-content {
  padding: 18px;
  min-height: 360px;
}

.drawer-panel {
  display: none;
}

.drawer-panel.is-active {
  display: block;
}

.drawer-panel h2 {
  margin-top: 0;
}

.drawer-scroll-panel {
  max-height: 520px;
  overflow: auto;
  padding-right: 8px;
  color: var(--muted);
}

.stacked-panel {
  display: grid;
  gap: 18px;
}

.suspect-list-panel {
  display: grid;
  gap: 12px;
}

.content-pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}


.content-pane-inner {
  display: grid;
  gap: 18px;
  padding: 18px;
}
/* =========================
   line number 342
========================= */
.suspect-header-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.suspect-header-left {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.suspect-headshot {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2d4368, #1b2a43);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.suspect-meta h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.suspect-meta p {
  margin: 0;
  color: var(--muted);
}

.secondary-action-button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-dark);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.conversation-panel {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
}

.conversation-stream {
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  padding: 18px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #1b2a43 0%, #17243a 100%);
  font-size: 19px;
  line-height: 1.6;
}

.conversation-message {
  max-width: 78%;
  padding: 12px 16px;
  margin: 4px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.65;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}
/* =========================
   line number 423
========================= */
.conversation-message p {
  margin: 0;
  line-height: 1.65;
}

.message-user {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
  background: rgba(127, 210, 255, 0.16);
  border: 1px solid rgba(127, 210, 255, 0.45);
  color: var(--text);
  font-style: normal;
}

.message-intari {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
  background: rgba(178, 212, 91, 0.10);
  border: 1px solid rgba(178, 212, 91, 0.32);
  color: var(--text);
  font-style: italic;
}

.system-message {
  margin: 10px;
  max-width: 90%;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.95;
  color: #e0ac42;
}

.typing-cursor {
  display: inline-block;
  width: 8px;
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

.conversation-controls {
  border-top: 1px solid var(--line);
  padding: 16px;
  display: grid;
  gap: 14px;
  background: var(--panel-dark);
}

.prebuilt-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* =========================
   line number 488
========================= */
.question-chip {
  min-height: 70px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  max-width: 300px;
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.chat-input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c1627;
  color: var(--text);
  padding: 12px 14px;
}

.chat-control-button {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.chat-control-button.primary {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: transparent;
}

.chat-helper-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.suspect-dock {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
/* =========================
   line number 550
========================= */
body.tools-drawer-open .suspect-dock,
body.tools-panel-active .suspect-dock {
  display: flex;
}

body:not(.tools-drawer-open):not(.tools-panel-active) .suspect-dock {
  display: none;
}
.suspect-dock-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.suspect-dock-image {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2d4368, #1b2a43);
  border: 1px solid var(--line);
}

.suspect-dock-meta h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.suspect-dock-meta p {
  margin: 0;
  color: var(--muted);
}

.suspect-dock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dock-button {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-dark);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.dock-button.primary {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: transparent;
}

#passphrase-close, #passphrase-submit {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-dark);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-dark);
  border-color: transparent;
}

.suspect-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.suspect-card p {
  margin: 0 0 8px;
  color: var(--muted);
}
/* =========================
   line number 633
========================= */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-dark);
  border-color: transparent;
}

.button-secondary {
  background: var(--panel-dark);
  color: var(--text);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 9, 18, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.modal-panel {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-title {
  margin: 0 0 8px;
}

.modal-copy {
  margin: 0 0 14px;
  color: var(--muted);
}

.text-input {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0f1b2e;
  color: var(--text);
  padding: 12px 14px;
  margin-top: 12px;
}
/* =========================
   line number 705
========================= */
.message-text {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .nav-drawer-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .game-body {
    padding: 10px;
  }

  .persistent-header {
    border-radius: 14px;
    padding: 14px;
  }

  .header-top-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .header-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .header-right {
    flex: 0 0 auto;
    max-width: 42%;
    justify-content: flex-end;
    text-align: right;
  }

  .game-name,
  .persistent-header .game-name {
    font-size: 16px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .game-date {
    font-size: 13px;
    line-height: 1.2;
  }

  .user-link {
    font-size: 14px;
    line-height: 1.15;
    padding: 4px 6px;
    text-align: right;
  }

  .nav-drawer-tabs {
    grid-template-columns: 1fr;
  }

  .chat-input-row {
    grid-template-columns: 1fr;
  }

  .suspect-header-card,
  .suspect-dock {
    flex-direction: column;
    align-items: flex-start;
  }

  .suspect-dock-actions {
    width: 100%;
  }

  .conversation-message {
    max-width: 100%;
  }
}

.object-detail-panel {
  width: min(760px, 100%);
}

.object-detail-panel.term-mode {
  border-color: rgba(127, 210, 255, 0.35);
  background: linear-gradient(180deg, rgba(25, 39, 62, 0.98), rgba(18, 29, 46, 0.98));
}

.object-detail-panel.evidence-mode {
  border-color: rgba(224, 172, 66, 0.35);
  background: linear-gradient(180deg, rgba(44, 28, 21, 0.98), rgba(28, 20, 18, 0.98));
}

.object-detail-header {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
/* =========================
   line number 772
========================= */
.object-detail-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.object-detail-image,
.object-detail-image-fallback {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: linear-gradient(180deg, #243955, #16253b);
}

.object-detail-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.object-detail-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e0ac42;
}

.object-detail-body {
  display: grid;
  gap: 14px;
}

.object-detail-body .suspect-card {
  cursor: default;
}

.object-detail-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.object-detail-trigger:hover {
  border-color: rgba(127, 210, 255, 0.45);
}

.object-detail-trigger.term-trigger:hover {
  border-color: rgba(127, 210, 255, 0.45);
}

.object-detail-trigger.evidence-trigger:hover {
  border-color: rgba(224, 172, 66, 0.45);
}

@media (max-width: 760px) {
  .object-detail-header {
    grid-template-columns: 1fr;
  }

  .object-detail-image,
  .object-detail-image-fallback {
    width: 100%;
    max-width: 240px;
    height: 180px;
  }
}
.suspect-headshot,
.suspect-dock-image,
.character-bio-headshot {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* =========================
   line number 855
========================= */
.character-bio-panel {
  width: min(760px, 100%);
}

.character-bio-header {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.character-bio-headshot {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #243955, #16253b);
}

.character-bio-meta h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.character-bio-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.character-bio-body {
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
  white-space: pre-line;
}

@media (max-width: 760px) {
  .character-bio-header {
    grid-template-columns: 1fr;
  }

  .character-bio-headshot {
    width: 140px;
    height: 140px;
  }
}
#character-bio-modal .character-bio-headshot {
  background-size: cover;
}
.object-detail-trigger, #detective-notes-content .suspect-card, #chapter-list-content .suspect-card, #chapter-modal-content .suspect-card, #hints-content .suspect-card, #investigator-report-content .suspect-card, #puzzles-content .suspect-card, .scoreboard-reveal-shell .suspect-card, #account-modal .suspect-card {
  margin-top: 10px;
  margin-bottom: 10px;
}
.suspect-list-card {
  display: grid;
  grid-template-columns: 25% 75%;
  gap: 20px;
  align-items: start;
}
/* =========================
   line number 919
========================= */
.suspect-list-media {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.suspect-list-headshot {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #243955, #16253b);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.suspect-list-content {
  min-width: 0;
}

.suspect-list-content p {
  margin-top: 0;
}

@media (max-width: 860px) {
  .suspect-list-card {
    grid-template-columns: 1fr;
  }

  .suspect-list-headshot {
    max-width: 140px;
  }
}
.suspect-dock-compact .suspect-header {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
}

.suspect-dock-compact .suspect-dock-image {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #243955, #16253b);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.suspect-dock-compact .suspect-meta {
  min-width: 0;
}

.suspect-dock-compact .suspect-meta p {
  margin: 0;
}
.modal {
  padding: 24px;
  overflow-y: auto;
}
/* =========================
   line number 987
========================= */
.modal-panel {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

#chapter-modal .modal-panel {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

#chapter-modal-content {
  overflow-wrap: anywhere;
}

#chapter-modal .button-row {
  position: sticky;
  bottom: 0;
  background: var(--panel);
  padding-top: 16px;
  margin-top: 16px;
}
/* =========================================
   FORM CONTROLS / INPUTS / SELECTS
========================================= */

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(10, 16, 24, 0.88);
  color: #f3f6fb;
  font-size: 16px;
  line-height: 1.4;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
/* =========================
   line number 1038
========================= */
select {
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #b7c9e6 50%),
    linear-gradient(135deg, #b7c9e6 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="number"]:hover,
textarea:hover {
  border-color: rgba(151, 195, 255, 0.35);
  background: rgba(14, 22, 32, 0.94);
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus {
  outline: none;
  border-color: rgba(120, 181, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(67, 135, 255, 0.22);
  background: rgba(14, 22, 32, 1);
}

select:disabled,
input:disabled,
textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d9e6f7;
}

/* =========================================
   FORM LAYOUT HELPERS
========================================= */
/* =========================
   line number 1100
========================= */
.accusation-form,
#accusation-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accusation-form .suspect-card,
#accusation-form .suspect-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accusation-form .button-row,
#accusation-form .button-row {
  margin-top: 4px;
}

/* =========================================
   OPTIONAL: improve smaller legacy inputs
========================================= */

input::placeholder,
textarea::placeholder {
  color: rgba(220, 230, 245, 0.5);
}
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.18);
}
/* =========================
   ACCOUNT MODAL
========================= */

.user-link {
  background: transparent;
  border: 0;
  color: #f4f0e6;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.user-link:hover,
.user-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}
/* =========================
   line number 1166
========================= */
#account-panel {
  max-width: 420px;
  width: min(92vw, 420px);
}

#account-panel .modal-title {
  margin-bottom: 8px;
}

#account-panel .modal-copy {
  margin-bottom: 18px;
}

#account-username,
#account-score {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}

#account-score {
  font-weight: 700;
}

#account-panel .button-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

#account-panel .button-row .button,
#account-panel .button-row button {
  min-width: 120px;
}
.pre-event-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.pre-event-card {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  text-align: center;
}
/* =========================
   line number 1219
========================= */
.pre-event-kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.pre-event-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.pre-event-copy,
.pre-event-meta {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.pre-event-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.countdown-unit {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 12px;
  display: grid;
  gap: 6px;
}

.countdown-value {
  display: block;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1;
}

.countdown-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .pre-event-countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.puzzle-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.puzzle-card.is-solved {
  border-color: rgba(127, 210, 255, 0.55);
  background: rgba(127, 210, 255, 0.08);
}

.puzzle-panel {
  width: min(860px, 92vw);
}

.puzzle-body {
  display: grid;
  gap: 16px;
}

.puzzle-image-wrap {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-dark);
}
/* =========================
   line number 1306
========================= */
.puzzle-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.puzzle-choice-list {
  display: grid;
  gap: 10px;
}

.puzzle-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  cursor: pointer;
}

.puzzle-choice input {
  margin-top: 3px;
}
/* =========================
   SCOREBOARD MODE
========================= */

.scoreboard-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.scoreboard-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(10, 16, 28, 0.72);
}

.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.scoreboard-table thead tr {
  background: rgba(255, 255, 255, 0.08);
}

.scoreboard-table th,
.scoreboard-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.scoreboard-table th {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
/* =========================
   line number 1379
========================= */
.scoreboard-table td {
  font-size: 0.98rem;
}

.scoreboard-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.scoreboard-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.06);
}

.scoreboard-table tbody tr:hover {
  background: rgba(127, 210, 255, 0.12);
}

.scoreboard-row td[colspan] {
  text-align: center;
  padding: 24px 16px;
}

.scoreboard-table th:nth-child(3),
.scoreboard-table td:nth-child(3),
.scoreboard-table th:nth-child(4),
.scoreboard-table td:nth-child(4),
.scoreboard-table th:nth-child(5),
.scoreboard-table td:nth-child(5),
.scoreboard-table th:nth-child(6),
.scoreboard-table td:nth-child(6),
.scoreboard-table th:nth-child(7),
.scoreboard-table td:nth-child(7) {
  text-align: center;
}

@media (max-width: 900px) {
  .scoreboard-shell {
    padding: 0;
  }

  .scoreboard-table th,
  .scoreboard-table td {
    padding: 12px 10px;
    font-size: 0.92rem;
  }
}
/* =========================
   CHAT THINKING INDICATOR
========================= */
/* =========================
   line number 1430
========================= */
.thinking-message {
  display: flex;
  align-items: center;
}

.thinking-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}

.thinking-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  animation: thinkingPulse 1.2s infinite ease-in-out;
}

.thinking-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes thinkingPulse {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================
   ENDGAME REVEAL TIMER
========================= */
/* =========================
   line number 1475
========================= */
.reveal-timer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-top: 10px;
  border: 1px solid rgba(127, 210, 255, 0.28);
  background: linear-gradient(180deg, rgba(16, 30, 52, 0.96) 0%, rgba(10, 21, 39, 0.96) 100%);
  border-radius: 14px;
}

.reveal-timer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reveal-timer-copy p {
  margin: 0;
}

.reveal-timer-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.reveal-timer-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* =========================
   SCOREBOARD / ENDGAME REVEAL
========================= */
/* =========================
   line number 1518
========================= */
.scoreboard-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.scoreboard-shell + .scoreboard-shell {
  margin-top: 18px;
}

.scoreboard-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scoreboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  background: rgba(8, 16, 29, 0.72);
}

.scoreboard-table thead th {
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(127, 210, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.scoreboard-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.scoreboard-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.025);
}

.scoreboard-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.055);
}

.scoreboard-table tbody tr:hover {
  background: rgba(127, 210, 255, 0.08);
}

.scoreboard-row td {
  color: var(--text);
}

.scoreboard-score {
  font-weight: 700;
  color: var(--accent);
}

.reveal-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.reveal-copy p {
  margin: 0;
}

.reveal-section-title {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--accent);
}
/* =========================
   line number 1600
========================= */
.reveal-fact-list {
  margin: 0;
  padding-left: 18px;
}

.reveal-fact-list li + li {
  margin-top: 8px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .reveal-timer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .reveal-timer-value {
    font-size: 24px;
  }
}
/* =========================
   FINAL REVEAL COUNTDOWN STATE
========================= */
/* =========================
   line number 1629
========================= */
body.final-countdown-active .progress-bar {
  background: linear-gradient(180deg, rgba(60, 10, 8, 0.96) 0%, rgba(34, 8, 7, 0.96) 100%);
  border-color: rgba(255, 122, 102, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 122, 102, 0.08),
    0 0 18px rgba(255, 122, 102, 0.12);
}

body.final-countdown-active .progress-fill {
  background: linear-gradient(90deg, #ff7a66 0%, #ffb347 100%);
}

body.final-countdown-active #header-progress-row .progress-label,
body.final-countdown-active #header-progress-row .progress-percent,
body.final-countdown-active #elapsed-game-time,
body.final-countdown-active .game-timer-box {
  color: #ffb347;
}

body.final-countdown-active #header-progress-row .progress-label {
  text-shadow: 0 0 10px rgba(255, 122, 102, 0.18);
}
/* =========================
   LAYOUT STABILITY / OVERFLOW FIXES
========================= */

.game-shell {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
}

.workspace,
.nav-drawer,
.nav-drawer-content,
.content-pane,
.content-pane-inner,
.scoreboard-shell,
.scoreboard-table-wrap {
  min-width: 0;
}

.content-pane {
  width: 100%;
}

.content-pane-inner {
  width: 100%;
}

.scoreboard-shell {
  width: 100%;
  max-width: 100%;
}

.scoreboard-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* =========================
   SITE FOOTER
========================= */
/* =========================
   line number 1696
========================= */
.site-legal-footer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
}

.site-legal-footer-inner {
  width: 100%;
}

.site-legal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-legal-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-legal-copy {
  min-width: 0;
}

.site-legal-title,
.site-legal-meta {
  margin: 0;
}

.site-legal-title {
  font-weight: 700;
  color: var(--text);
}

.site-legal-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .site-legal-brand {
    align-items: flex-start;
  }

  .site-legal-logo {
    width: 44px;
    height: 44px;
  }
}
/* Suspect local/remote presence indicators */
/* =========================
   line number 1756
========================= */
.suspect-list-headshot {
  border: 2px solid rgba(127, 210, 255, 0.7);
}

.suspect-list-headshot.suspect-presence-local {
  border-color: rgba(127, 210, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.suspect-list-headshot.suspect-presence-remote {
  border-color: #ff9f43;
  box-shadow: 0 0 0 1px rgba(255, 159, 67, 0.35);
}

.suspect-presence-label {
  font-weight: 700;
}

.suspect-presence-label.suspect-presence-local {
  color: #d8f1ff;
}

.suspect-presence-label.suspect-presence-remote {
  color: #ffb15f;
}

/* =========================
   RULES CONTENT
========================= */

.rules-content,
#rules-content {
  color: var(--muted);
  line-height: 1.6;
}

#rules-content h2,
#rules-content h3,
#rules-content h4 {
  color: var(--text);
  margin: 22px 0 10px;
}

#rules-content p,
#rules-content li {
  font-size: 17px;
  line-height: 1.65;
}

#rules-content ul,
#rules-content ol {
  padding-left: 22px;
}

#rules-content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* =========================
   DRAWER BUTTON REFINEMENTS
========================= */

.drawer-action-button {
  margin-top: 10px;
  background: rgba(127, 210, 255, 0.12);
  border-color: rgba(127, 210, 255, 0.35);
  color: var(--accent);
}

.drawer-action-button.is-active {
  background: rgba(127, 210, 255, 0.12);
  color: var(--accent);
}

.nav-drawer-tabs {
  align-content: start;
}

.drawer-tab {
  height: auto;
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .drawer-tab,
  .drawer-action-button {
    max-height: none;
  }
}

/* =========================
   UX PATCH: COMPACT IDENTITY BAR
========================= */
/* =========================
   line number 1927
========================= */
.conversation-identity-bar {
  position: sticky;
  top: 172px;
  z-index: 30;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(127, 210, 255, 0.22);
  border-radius: 16px;
  background: rgba(18, 32, 54, 0.96);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.conversation-identity-image {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #243955, #16253b);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.conversation-identity-meta {
  min-width: 0;
}

.conversation-identity-label,
.conversation-identity-meta h3,
.conversation-identity-meta p {
  margin: 0;
}

.conversation-identity-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-identity-meta h3 {
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-identity-meta p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-identity-bio-button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-dark);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 760px) {
  .conversation-identity-bar {
    top: 132px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    padding: 8px 10px;
  }

  .conversation-identity-image {
    width: 44px;
    height: 44px;
  }

  .conversation-identity-meta h3 {
    font-size: 16px;
  }

  .conversation-identity-bio-button {
    min-height: 36px;
    padding: 7px 10px;
  }
}
/* =========================
   UX PATCH: IDENTITY BAR SHOW/HIDE
========================= */
/* =========================
   line number 2028
========================= */
.conversation-identity-bar {
  display: none;
}

body.identity-bar-active .conversation-identity-bar {
  display: grid;
}

/* Keep compact identity bar fixed under the main header */

body.identity-bar-active .conversation-identity-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 172px;
  width: min(calc(100% - 36px), 1280px);
  z-index: 39;
}

body.identity-bar-active .conversation-panel {
  margin-top: 76px;
}

@media (max-width: 760px) {
  body.identity-bar-active .conversation-identity-bar {
    top: 250px;
    width: calc(100% - 20px);
  }

  body.identity-bar-active .conversation-panel {
    margin-top: 72px;
  }
}

/* Prevent browser scroll anchoring from jumping to the chat input */

.conversation-panel,
.conversation-stream,
.conversation-controls,
.chat-input-row,
#chat-input,
html,
body,
.game-body,
.game-shell,
.content-pane,
.content-pane-inner {
  overflow-anchor: none;
}
/* =========================
   FINAL DRAWER / CHAT STATE OVERRIDES
========================= */

body.chat-mode-active .content-pane,
body:not(.tools-drawer-open) .content-pane {
  display: block;
}

body.chat-mode-active .tools-content-pane,
body:not(.tools-drawer-open):not(.tools-panel-active) .tools-content-pane {
  display: none;
}

body.tools-drawer-open .content-pane,
body.tools-panel-active .content-pane {
  display: none;
}

body.tools-drawer-open .tools-content-pane,
body.tools-panel-active .tools-content-pane {
  display: block;
}

body.tools-drawer-open .persistent-header .nav-drawer {
  display: block;
}

/* Keep the detective drawer content page-based instead of nested-scroll-based */

.nav-drawer-content,
.drawer-scroll-panel,
.conversation-stream {
  max-height: none;
  overflow: visible;
}

.conversation-stream {
  min-height: 360px;
}

/* Keep drawer tab buttons from becoming awkwardly tall */

.drawer-tab,
.drawer-action-button {
  max-height: none;
}

/* Keep restored chat mode clean after scoreboard/drawer transitions */

body.chat-mode-active .detective-tools-toggle:not(.is-active) {
  background: var(--panel-dark);
  color: var(--text);
  border-color: var(--line);
}
/* =========================
   DETECTIVE DRAWER BUTTON GRID
========================= */

.nav-drawer-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px;
  align-items: stretch;
}

.nav-drawer-tabs .drawer-tab,
.nav-drawer-tabs .drawer-action-button,
.nav-drawer-tabs button {
  width: 100%;
  max-width: none;
  min-width: 0;
}
/* =========================
   SUSPECT LIST MOBILE TWO-COLUMN LAYOUT
========================= */

@media (max-width: 860px) {
  .suspect-list-card {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 42%);
    gap: 16px;
    align-items: start;
  }

  .suspect-list-info-column,
  .suspect-list-action-column {
    min-width: 0;
  }

  .suspect-list-info-column {
    display: grid;
    gap: 12px;
  }

  .suspect-list-headshot {
    max-width: 150px;
  }

  .suspect-list-actions {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .suspect-list-actions .dock-button {
    width: 100%;
    min-height: 50px;
    text-align: left;
    justify-content: flex-start;
  }
}
/* =========================
   DETECTIVE DRAWER OPEN/CLOSE ANIMATION
========================= */

.persistent-header .nav-drawer {
  display: block;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  transition:
    max-height 450ms ease,
    opacity 300ms ease,
    transform 380ms ease,
    border-color 300ms ease;
}

body.tools-drawer-open .persistent-header .nav-drawer {
  display: block;
  max-height: 520px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  border-color: var(--line);
}

.persistent-header .nav-drawer-tabs {
  transform: translateY(-6px);
  transition: transform 380ms ease;
}

body.tools-drawer-open .persistent-header .nav-drawer-tabs {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .persistent-header .nav-drawer,
  .persistent-header .nav-drawer-tabs {
    transition: none;
  }
}
/* =========================
   ACCUSATION CHOICE BUTTONS
========================= */

.accusation-choice-card {
  gap: 12px;
}

.accusation-choice-group {
  display: grid;
  gap: 10px;
}

.accusation-choice-button {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(127, 210, 255, 0.18);
  background: rgba(10, 18, 32, 0.72);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
  line-height: 1.3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 14px rgba(0, 0, 0, 0.12);
  transition:
    transform 120ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.accusation-choice-button:hover {
  border-color: rgba(127, 210, 255, 0.42);
  background: rgba(16, 31, 52, 0.92);
}

.accusation-choice-button:active {
  transform: scale(0.985);
  background: rgba(127, 210, 255, 0.2);
  border-color: rgba(127, 210, 255, 0.7);
}

.accusation-choice-button.is-selected,
.accusation-choice-button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(127, 210, 255, 0.96), rgba(89, 188, 255, 0.92));
  color: var(--accent-dark);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 2px rgba(127, 210, 255, 0.24),
    0 10px 22px rgba(89, 188, 255, 0.2);
}

.accusation-choice-button.is-selected::before,
.accusation-choice-button[aria-pressed="true"]::before {
  content: "✓ ";
  font-weight: 900;
}

.accusation-choice-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(127, 210, 255, 0.35),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.accusation-choice-button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.accusation-empty-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--muted);
  background: rgba(10, 18, 32, 0.42);
}

@media (max-width: 760px) {
  .accusation-choice-button {
    min-height: 58px;
    font-size: 16px;
    padding: 15px 14px;
  }

  .accusation-choice-group {
    gap: 12px;
  }
}
/* =========================
   DETECTIVE NOTE OBJECT CARDS
========================= */

.detective-note-object-card {
  border-color: rgba(224, 172, 66, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(224, 172, 66, 0.18),
    0 8px 18px rgba(224, 172, 66, 0.08);
}

.detective-note-object-card p strong {
  color: #ffd28a;
}
/* =========================
   ENDGAME MOBILE LAYOUT PATCH
   Targets game.js scoreboard/reveal markup
========================= */

.content-pane.is-maximized {
  overflow: hidden;
}

.content-pane.is-maximized .content-pane-inner {
  padding: 18px;
  gap: 18px;
  overflow: hidden;
  min-width: 0;
}

.content-pane.is-maximized .scoreboard-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border-radius: 20px;
}

.content-pane.is-maximized .scoreboard-reveal-section {
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
  overflow: hidden;
}

.content-pane.is-maximized .scoreboard-table-wrap {
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  border-radius: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.content-pane.is-maximized .scoreboard-table {
  min-width: 820px;
  margin: 0;
}

.content-pane.is-maximized .scoreboard-table th,
.content-pane.is-maximized .scoreboard-table td {
  padding: 18px 20px;
}

@media (max-width: 760px) {
  .content-pane.is-maximized .content-pane-inner {
    padding: 12px;
    gap: 14px;
  }

  .content-pane.is-maximized .scoreboard-shell {
    padding: 18px;
    border-radius: 18px;
  }

  .content-pane.is-maximized .scoreboard-shell .object-detail-kicker {
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: anywhere;
  }

  .content-pane.is-maximized .scoreboard-shell .modal-title {
    font-size: 22px;
    line-height: 1.05;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: anywhere;
  }

  .content-pane.is-maximized .scoreboard-shell .modal-copy {
    font-size: 20px;
    line-height: 1.35;
    margin-left: 0;
    margin-right: 0;
    overflow-wrap: anywhere;
  }

  .content-pane.is-maximized .scoreboard-reveal-section {
    padding: 16px;
    border-radius: 16px;
  }

  .content-pane.is-maximized .scoreboard-table-wrap {
    margin-top: 18px;
    border-radius: 16px;
  }

  .content-pane.is-maximized .scoreboard-table th,
  .content-pane.is-maximized .scoreboard-table td {
    padding: 16px 18px;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .content-pane.is-maximized .content-pane-inner {
    padding: 10px;
  }

  .content-pane.is-maximized .scoreboard-shell {
    padding: 16px;
    border-radius: 16px;
  }

  .content-pane.is-maximized .scoreboard-table th,
  .content-pane.is-maximized .scoreboard-table td {
    padding: 15px 18px;
  }
}
.scoreboard-reveal-shell .scoreboard-reveal-section p strong {
  font-size: 20px;
  color: #F5C26B;
}
/* =========================
   PRE-EVENT VIDEO EMBED
========================= */

.pre-event-video-embed {
  width: 100%;
  max-width: 760px;
  margin: 4px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-dark);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.pre-event-video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* =========================
   DRAWER VIDEO EMBED
========================= */

.drawer-video-embed {
  width: 100%;
  max-width: 860px;
  margin: 10px auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-dark);
  aspect-ratio: 16 / 9;
}

.drawer-video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
/* =========================
   DRAWER BUTTON HEIGHT FIX
========================= */

.nav-drawer-tabs .drawer-tab,
.nav-drawer-tabs .drawer-action-button {
  margin-top: 0;
  min-height: 45px;
  height: 100%;
  align-items: center;
}
.feedback-button {
  display: inline-block;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ff7a00, #ff9a2a);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 3px 0 #cc5f00, 0 6px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

/* Hover state */
.feedback-button:hover {
  background: linear-gradient(135deg, #ff8c1a, #ffad42);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #cc5f00, 0 8px 14px rgba(0, 0, 0, 0.3);
}

/* Active / click state */
.feedback-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #cc5f00, 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Focus (keyboard accessibility) */
.feedback-button:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Disabled state */
.feedback-button:disabled {
  background: #999;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: 0.7;
}
