/* ============================================================
   AWKWARD GUESTS - Victorian Mansion Theme
   Dark, atmospheric styling for murder mystery investigation
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-darkest: #0a0806;
  --bg-dark: #1a1410;
  --bg-medium: #2a2118;
  --bg-card: #1e1812;
  --bg-card-hover: #2a2218;

  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #8a6a2a;
  --gold-glow: rgba(201, 168, 76, 0.3);

  --crimson: #8b1a1a;
  --crimson-light: #c43c3c;
  --crimson-dark: #5a0e0e;

  --ivory: #e8dcc8;
  --ivory-dim: #b8a88a;
  --ivory-dark: #8a7a60;

  --green-muted: #4a6a4a;
  --blue-muted: #4a5a7a;
  --purple-muted: #5a4a6a;

  --border-subtle: rgba(201, 168, 76, 0.15);
  --border-gold: rgba(201, 168, 76, 0.3);
  --shadow-deep: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.4);

  --font-title: 'Cinzel', serif;
  --font-body: 'Crimson Text', serif;
  --font-accent: 'IM Fell English', serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: 0.3s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-darkest);
  color: var(--ivory);
  min-height: 100dvh;
  overflow: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

#app {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  position: relative;
}

/* ---- Screens ---- */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-darkest);
}

.screen.active {
  display: flex;
}

.scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 100px;
  -webkit-overflow-scrolling: touch;
}

/* ---- Screen Header ---- */
.screen-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-gold);
  min-height: 56px;
  gap: 12px;
}

.screen-header h2 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ========== TITLE SCREEN ========== */
#screen-title {
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.title-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.mansion-silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  background: linear-gradient(to top,
    var(--bg-darkest) 0%,
    rgba(20, 16, 10, 0.95) 30%,
    rgba(30, 24, 16, 0.6) 60%,
    transparent 100%
  );
}

.fog-layer {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 30%;
  background: radial-gradient(ellipse at center bottom,
    rgba(180, 160, 120, 0.08) 0%,
    transparent 70%
  );
  animation: fogDrift 15s ease-in-out infinite alternate;
}

@keyframes fogDrift {
  0% { transform: translateX(-5%); opacity: 0.6; }
  100% { transform: translateX(5%); opacity: 1; }
}

.lightning-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 245, 200, 0.03), transparent 50%);
  animation: lightning 8s ease-in-out infinite;
}

@keyframes lightning {
  0%, 90%, 100% { opacity: 0; }
  91% { opacity: 1; }
  92% { opacity: 0; }
  93% { opacity: 0.5; }
  94% { opacity: 0; }
}

.title-content {
  position: relative;
  z-index: 2;
  padding: 16px;
  max-width: 500px;
  width: 100%;
}

.title-ornament {
  font-size: 2rem;
  color: var(--gold-dark);
  margin-bottom: 8px;
  opacity: 0.7;
}

.game-title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 6.5vw, 3.5rem);
  color: var(--gold);
  letter-spacing: 0.03em;
  text-shadow:
    0 0 20px rgba(201, 168, 76, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 4px;
  line-height: 1.1;
}

.game-subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(0.85rem, 3vw, 1.3rem);
  color: var(--ivory-dim);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.title-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}

.title-divider::before,
.title-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dark), transparent);
  max-width: 100px;
}

.divider-ornament {
  color: var(--gold-dark);
  margin: 0 12px;
  font-size: 1.2rem;
}

.title-intro {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ivory-dim);
  margin-bottom: 32px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.title-intro em {
  color: var(--crimson-light);
  font-style: italic;
}

/* ========== BUTTONS ========== */
.btn {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-darkest);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.5);
}

.btn-primary:disabled {
  background: var(--ivory-dark);
  color: var(--bg-medium);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-glow {
  animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 2px 12px rgba(201, 168, 76, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(201, 168, 76, 0.6); }
}

.btn-secondary {
  background: var(--bg-medium);
  color: var(--ivory);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
}

.btn-danger {
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  color: var(--ivory);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(139, 26, 26, 0.3);
}

.btn-danger:hover {
  box-shadow: 0 4px 20px rgba(139, 26, 26, 0.5);
}

.btn-danger:disabled {
  background: #3a2020;
  color: #6a4a4a;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-back {
  background: none;
  color: var(--gold);
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  padding: 8px 12px;
  font-size: 1rem;
}

.btn-link {
  background: none;
  color: var(--ivory-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: var(--font-accent);
  text-transform: none;
  letter-spacing: 0;
  padding: 8px;
  font-size: 0.9rem;
}

.btn-large {
  padding: 16px 32px;
  font-size: 0.95rem;
  width: 100%;
  max-width: 400px;
  margin: 16px auto;
  display: flex;
}

.btn-count {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--bg-medium);
  color: var(--ivory-dim);
  border: 2px solid var(--border-subtle);
  padding: 0;
}

.btn-count.active {
  background: var(--gold-dark);
  color: var(--bg-darkest);
  border-color: var(--gold);
}

/* ========== HOW TO PLAY ========== */
.help-section {
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.help-section h3 {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.help-section p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--ivory-dim);
}

.help-section ul, .help-section ol {
  padding-left: 20px;
  margin-bottom: 8px;
}

.help-section li {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 4px;
  color: var(--ivory-dim);
}

.card-type-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-type-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-type-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.card-type-item p {
  margin: 0;
  font-size: 0.85rem;
}

/* ========== SETUP SCREEN ========== */
.setup-section {
  margin-bottom: 24px;
}

.setup-section h3 {
  font-family: var(--font-title);
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.player-count-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
}

#player-names-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-name-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-name-input label {
  font-family: var(--font-accent);
  color: var(--gold);
  font-size: 0.9rem;
  width: 80px;
  flex-shrink: 0;
}

.player-name-input input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}

.player-name-input input:focus {
  border-color: var(--gold);
}

.player-name-input input::placeholder {
  color: var(--ivory-dark);
}

/* Case Selector */
#case-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-card {
  padding: 14px;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

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

.case-card.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.case-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.case-card-name {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--gold-light);
}

.case-difficulty {
  display: flex;
  gap: 2px;
}

.skull {
  font-size: 0.9rem;
  opacity: 0.3;
}

.skull.active {
  opacity: 1;
}

.case-card-desc {
  font-size: 0.85rem;
  color: var(--ivory-dim);
  font-style: italic;
}

.case-card-info {
  font-size: 0.8rem;
  color: var(--ivory-dark);
  margin-top: 4px;
}

/* ========== PASS DEVICE SCREEN ========== */
#screen-pass-device {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--bg-darkest);
}

.pass-device-content {
  padding: 24px;
}

.pass-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: magnify 2s ease-in-out infinite;
}

@keyframes magnify {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50% { transform: scale(1.1) rotate(5deg); }
}

.pass-device-content h2 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--ivory-dim);
  margin-bottom: 8px;
}

.pass-player-name {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 16px;
  text-shadow: 0 0 20px var(--gold-glow);
}

.pass-instruction {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--ivory-dark);
  margin-bottom: 24px;
}

/* ========== GAME SCREEN ========== */
.game-header {
  padding: 10px 16px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.game-info {
  display: flex;
  gap: 8px;
  align-items: center;
}

.round-badge, .case-badge {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--bg-medium);
  border: 1px solid var(--border-subtle);
  color: var(--ivory-dim);
}

.current-player-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-name-display {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--gold);
}

.phase-badge {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--crimson-dark);
  color: var(--ivory);
}

/* ---- Game Phase Content ---- */
.game-phase {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 100px;
  -webkit-overflow-scrolling: touch;
}

.phase-intro {
  text-align: center;
  margin-bottom: 20px;
}

.phase-intro h3 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 6px;
}

.phase-intro p {
  font-size: 0.9rem;
  color: var(--ivory-dim);
  font-style: italic;
}

/* ---- Inquiry Grid ---- */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.inquiry-option {
  padding: 14px 10px;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  font-family: var(--font-title);
  font-size: 0.75rem;
  color: var(--ivory-dim);
  letter-spacing: 0.04em;
}

.inquiry-option:hover {
  border-color: var(--gold-dark);
  color: var(--gold);
}

.inquiry-option .inquiry-icon {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

/* ---- Card Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.hand-preview h4, .game-phase h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-count {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ivory-dark);
  font-weight: normal;
}

/* ---- Clue Card ---- */
.clue-card {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  position: relative;
  cursor: default;
}

.clue-card:hover {
  background: var(--bg-card-hover);
}

.selectable .clue-card {
  cursor: pointer;
}

.selectable .clue-card:hover {
  border-color: var(--gold-dark);
}

.clue-card.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.15);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-type-tag {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.card-value-badge {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-dark);
  color: var(--bg-darkest);
}

.card-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ivory);
}

.card-id {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.6rem;
  color: var(--ivory-dark);
  opacity: 0.5;
}

/* Card category colors */
.clue-card[data-category="guests"] {
  border-left: 3px solid #4a7c59;
}
.clue-card[data-category="rooms"] {
  border-left: 3px solid #5a7c9a;
}
.clue-card[data-category="weapons"] {
  border-left: 3px solid #9a5a5a;
}
.clue-card[data-category="motives"] {
  border-left: 3px solid #8a6a3a;
}

/* ---- Trading Info ---- */
.trading-info-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--ivory-dim);
}

.trading-info-bar strong {
  color: var(--gold);
}

/* ---- Action Bar ---- */
.action-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 16px;
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--bg-darkest) 60%, transparent);
}

.action-bar .btn {
  flex: 1;
  max-width: 200px;
}

/* ---- Accusation ---- */
.accusation-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.accusation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.accusation-field label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.option-btn {
  padding: 10px 8px;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--ivory-dim);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
}

.option-btn:hover {
  border-color: var(--gold-dark);
}

.option-btn.selected {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
}

.styled-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-dark);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a84c' fill='none' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.styled-select:focus {
  border-color: var(--gold);
}

.styled-select option {
  background: var(--bg-dark);
  color: var(--ivory);
}

.accusation-warning {
  padding: 12px;
  background: rgba(139, 26, 26, 0.15);
  border: 1px solid rgba(139, 26, 26, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
  margin-bottom: 16px;
}

.accusation-warning p {
  font-size: 0.9rem;
  color: var(--crimson-light);
}

/* ========== RESULT SCREEN ========== */
.result-content, .game-over-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  height: 100%;
  overflow-y: auto;
}

.result-icon {
  font-size: 5rem;
  margin-bottom: 16px;
}

.result-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.result-title.correct {
  color: #4a8a4a;
}

.result-title.wrong {
  color: var(--crimson-light);
}

.result-message {
  font-size: 1rem;
  color: var(--ivory-dim);
  max-width: 400px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ========== GAME OVER ========== */
.game-over-content {
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
}

.solution-reveal {
  background: var(--bg-dark);
  border: 2px solid var(--gold-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 16px 0;
  max-width: 400px;
  width: 100%;
}

.solution-reveal h3 {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}

.solution-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.solution-item:last-child {
  border-bottom: none;
}

.solution-label {
  color: var(--ivory-dark);
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.solution-value {
  color: var(--ivory);
  font-weight: 600;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .scroll-content {
    max-width: 700px;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .scroll-content {
    max-width: 800px;
  }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ========== UTILITY ========== */
.hidden {
  display: none !important;
}

.text-gold { color: var(--gold); }
.text-crimson { color: var(--crimson-light); }
.text-dim { color: var(--ivory-dim); }
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* ========== SOLO MODE ========== */

/* Setup screen solo label */
.solo-mode-label {
  text-align: center;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.85rem;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Solo status bar (review phase) */
.solo-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-medium);
  border: 1px solid var(--gold-dark);
  border-radius: 6px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ivory);
}

/* Revealed cards section */
.revealed-section {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(201, 168, 76, 0.08);
  border: 1px dashed var(--gold-dark);
  border-radius: 6px;
}

.revealed-section h4 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 10px;
}

/* Solo accusation info in accusation phase */
.solo-accusation-info {
  text-align: center;
  padding: 8px 16px;
  background: rgba(139, 26, 26, 0.15);
  border: 1px solid var(--crimson-dark);
  border-radius: 6px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ivory);
}

/* Solo reshuffle notice */
.solo-reshuffle-notice {
  margin-top: 16px;
  padding: 12px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--gold-dark);
  border-radius: 6px;
}

.solo-reshuffle-notice p {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Solo score card (game over) */
.solo-score-card {
  text-align: center;
  padding: 20px;
  margin: 16px 0;
  background: var(--bg-medium);
  border: 2px solid var(--gold-dark);
  border-radius: 8px;
}

.score-rating {
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.score-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.score-details {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--ivory-dim);
}

@media (max-width: 480px) {
  .solo-status-bar {
    font-size: 0.78rem;
    padding: 8px 12px;
  }
  .score-details {
    flex-direction: column;
    gap: 4px;
  }
}
