/* ==========================================================================
   SECRET HITLER — 1930s ART DECO / CLASSIFIED DOSSIER DESIGN SYSTEM
   Mobile-first, tactile tabletop aesthetic
   ========================================================================== */

:root {
  --bg-obsidian: #110f0d;
  --bg-surface: #1b1815;
  --bg-elevated: #24201c;
  --bg-card-dark: #2c2621;

  --parchment: #f3e7cf;
  --parchment-deep: #e3d1ad;
  --ink: #181411;
  --ink-muted: #54493d;

  --text-primary: #f5ecdc;
  --text-secondary: #bfb29c;
  --text-muted: #857968;

  --gold: #d4a853;
  --gold-bright: #ecc572;
  --gold-dim: rgba(212, 168, 83, 0.26);

  --liberal: #2d87a8;
  --liberal-bright: #52b6d9;
  --liberal-deep: #1b556b;
  --liberal-glow: rgba(82, 182, 217, 0.25);

  --fascist: #c92a2a;
  --fascist-bright: #eb4440;
  --fascist-deep: #7d1818;
  --fascist-glow: rgba(235, 68, 64, 0.28);

  --hitler-dark: #4a0e0e;

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

  --font-display: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100dvh;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(212, 168, 83, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 100%, rgba(201, 42, 42, 0.06) 0%, transparent 60%),
    repeating-linear-gradient(
      45deg,
      rgba(255, 245, 220, 0.012) 0px,
      rgba(255, 245, 220, 0.012) 1px,
      transparent 1px,
      transparent 8px
    );
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* App Shell */
#app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 540px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px calc(env(safe-area-inset-bottom, 0px) + 20px);
}

/* Top Utility Bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--gold-dim);
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--parchment);
}

.brand-mini .dot {
  width: 8px;
  height: 8px;
  background: var(--fascist-bright);
  transform: rotate(45deg);
  display: inline-block;
  box-shadow: 0 0 8px var(--fascist-glow);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  min-width: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid rgba(212, 168, 83, 0.22);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  transition: transform 0.12s ease, border-color 0.15s ease, color 0.15s ease;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn.active {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 168, 83, 0.12);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* Art Deco Framed Panel */
.deco-panel {
  position: relative;
  background: linear-gradient(180deg, var(--bg-surface) 0%, #151210 100%);
  border: 1px solid rgba(212, 168, 83, 0.34);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 244, 214, 0.06);
}

.deco-panel::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212, 168, 83, 0.12);
  border-radius: calc(var(--radius-md) - 3px);
  pointer-events: none;
}

.deco-panel.parchment-panel {
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  color: var(--ink);
  border: 2px solid #8a6d3b;
}

.deco-panel.parchment-panel::before {
  border-color: rgba(24, 20, 17, 0.18);
}

/* Hero / Home Screen */
.hero-header {
  text-align: center;
  padding: 18px 8px 14px;
}

.stamp-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 3px;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--parchment);
  text-shadow: 0 3px 0 #000;
}

.hero-title span {
  color: var(--fascist-bright);
}

.hero-subtitle {
  margin: 10px auto 0;
  max-width: 34ch;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.deco-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.deco-divider::before,
.deco-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.45), transparent);
}

/* Mode Cards */
.mode-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mode-card {
  position: relative;
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1.5px solid rgba(212, 168, 83, 0.32);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.14s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.mode-card:hover,
.mode-card:focus-visible {
  border-color: var(--gold-bright);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.mode-card:active {
  transform: scale(0.985);
}

.mode-card.primary-mode {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15) 0%, var(--bg-surface) 90%);
}

.mode-emblem {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(212, 168, 83, 0.14);
  border: 1px solid rgba(212, 168, 83, 0.4);
  color: var(--gold-bright);
}

.mode-emblem.crimson {
  background: rgba(201, 42, 42, 0.16);
  border-color: rgba(235, 68, 64, 0.45);
  color: var(--fascist-bright);
}

.mode-emblem.teal {
  background: rgba(45, 135, 168, 0.18);
  border-color: rgba(82, 182, 217, 0.45);
  color: var(--liberal-bright);
}

.mode-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--parchment);
}

.mode-card p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-gold {
  background: rgba(212, 168, 83, 0.2);
  color: var(--gold-bright);
  border: 1px solid rgba(212, 168, 83, 0.45);
}

.badge-liberal {
  background: rgba(45, 135, 168, 0.24);
  color: var(--liberal-bright);
  border: 1px solid rgba(82, 182, 217, 0.45);
}

.badge-fascist {
  background: rgba(201, 42, 42, 0.25);
  color: #ff8582;
  border: 1px solid rgba(235, 68, 64, 0.5);
}

/* Primary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.btn svg,
.secret-pocket svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright) 0%, #c1923a 100%);
  color: #17120c;
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.3);
}

.btn-crimson {
  background: linear-gradient(180deg, var(--fascist-bright) 0%, #a51e1e 100%);
  color: #fff8ee;
  box-shadow: 0 4px 16px rgba(201, 42, 42, 0.35);
}

.btn-liberal {
  background: linear-gradient(180deg, #3ea2c7 0%, #226b87 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(45, 135, 168, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(212, 168, 83, 0.38);
  color: var(--parchment);
}

.btn-subtle {
  min-height: 40px;
  font-size: 0.88rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* Inputs */
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: #12100e;
  border: 1.5px solid rgba(212, 168, 83, 0.32);
  color: var(--parchment);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.15s ease;
}

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

.code-input {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.28em;
  text-align: center;
  text-transform: uppercase;
  height: 54px;
}

/* Setup Roster List */
.count-pills {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.count-pill {
  height: 42px;
  border-radius: var(--radius-sm);
  background: #13110f;
  border: 1.5px solid rgba(212, 168, 83, 0.24);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.count-pill.selected {
  background: var(--gold);
  border-color: var(--gold-bright);
  color: #17120c;
  font-weight: 700;
}

.roster-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

@media (max-width: 370px) {
  .roster-inputs {
    grid-template-columns: 1fr;
  }
}

.seat-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.seat-num {
  position: absolute;
  left: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  pointer-events: none;
}

.seat-input-wrap .text-input {
  height: 40px;
  padding-left: 30px;
  font-size: 0.88rem;
}

.dist-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 168, 83, 0.24);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

.dist-counts {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

/* QR Room Lobby */
.qr-frame {
  width: 208px;
  height: 208px;
  margin: 8px auto 12px;
  padding: 10px;
  background: var(--parchment);
  border: 3px solid var(--gold);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.room-code-banner {
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.3rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  line-height: 1;
  margin: 4px 0 10px;
}

.lobby-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.lobby-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38d996;
  box-shadow: 0 0 6px rgba(56, 217, 150, 0.6);
  display: inline-block;
}

.status-dot.offline {
  background: #e8590c;
  box-shadow: none;
}

/* ==========================================================================
   GAMEPLAY BOARD TRACKS (Liberal + Fascist + Election Tracker)
   ========================================================================== */

.board-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  background: var(--bg-surface);
  border: 1px solid rgba(212, 168, 83, 0.26);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.76rem;
}

.deck-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.election-pips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 168, 83, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #12100e;
}

.pip.active {
  background: var(--gold);
  border-color: var(--gold-bright);
  color: #15110c;
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.55);
}

.pip.chaos-warn.active {
  background: var(--fascist-bright);
  border-color: #ff9c99;
  color: #fff;
}

/* Policy Track Boards */
.track-board {
  border-radius: var(--radius-md);
  padding: 10px 10px 11px;
  margin-bottom: 9px;
  position: relative;
}

.track-board.liberal-board {
  background: linear-gradient(180deg, rgba(27, 85, 107, 0.36) 0%, rgba(18, 34, 42, 0.72) 100%);
  border: 1.5px solid rgba(82, 182, 217, 0.42);
}

.track-board.fascist-board {
  background: linear-gradient(180deg, rgba(125, 24, 24, 0.42) 0%, rgba(36, 15, 15, 0.8) 100%);
  border: 1.5px solid rgba(235, 68, 64, 0.45);
}

.track-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.liberal-board .track-label-row {
  color: var(--liberal-bright);
}

.fascist-board .track-label-row {
  color: #ff7b78;
}

.track-slots-liberal {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.track-slots-fascist {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.danger-zone-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin-bottom: 4px;
}

.danger-span {
  grid-column: 3 / 7;
  background: rgba(235, 68, 64, 0.18);
  border: 1px solid rgba(235, 68, 64, 0.45);
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ffaba8;
  padding: 2px 4px;
  text-transform: uppercase;
}

.danger-span.hot {
  background: rgba(235, 68, 64, 0.38);
  border-color: #ff8784;
  color: #fff;
  animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.track-slot {
  position: relative;
  height: 68px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.liberal-slot {
  background: rgba(12, 26, 33, 0.72);
  border: 1.5px dashed rgba(82, 182, 217, 0.36);
  color: rgba(82, 182, 217, 0.45);
}

.fascist-slot {
  background: rgba(28, 11, 11, 0.72);
  border: 1.5px dashed rgba(235, 68, 64, 0.38);
  color: rgba(255, 168, 165, 0.72);
}

.fascist-slot.danger-slot {
  border-style: solid;
  border-color: rgba(235, 68, 64, 0.52);
}

.track-slot .slot-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
}

.track-slot .slot-icon svg {
  width: 100%;
  height: 100%;
}

.track-slot .slot-text {
  font-family: var(--font-display);
  font-size: 0.62rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.veto-mini {
  position: absolute;
  top: 2px;
  right: 2px;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  padding: 1px 3px;
  background: var(--gold);
  color: #16120d;
  border-radius: 2px;
  font-weight: 700;
}

/* Enacted Tile Placed inside Slot */
.track-slot.enacted-liberal {
  background: linear-gradient(180deg, #39a0c4 0%, #1d6480 100%);
  border: 2px solid var(--parchment);
  color: var(--parchment);
  box-shadow: 0 4px 12px var(--liberal-glow);
}

.track-slot.enacted-fascist {
  background: linear-gradient(180deg, #db3532 0%, #8f1919 100%);
  border: 2px solid var(--parchment);
  color: var(--parchment);
  box-shadow: 0 4px 12px var(--fascist-glow);
}

/* ==========================================================================
   ACTION DOCK & INTERACTIVE GAMEPLAY CARDS
   ========================================================================== */

.action-dock {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  border: 1.5px solid rgba(212, 168, 83, 0.42);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.phase-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3px;
}

.phase-heading {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--parchment);
}

.phase-desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Event Banner */
.event-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 9px;
  font-size: 0.8rem;
  border-left: 4px solid var(--gold);
  background: rgba(212, 168, 83, 0.12);
}

.event-banner.liberal {
  border-left-color: var(--liberal-bright);
  background: rgba(45, 135, 168, 0.16);
}

.event-banner.fascist {
  border-left-color: var(--fascist-bright);
  background: rgba(201, 42, 42, 0.18);
}

.event-banner.warning {
  border-left-color: #f59f00;
  background: rgba(245, 159, 0, 0.14);
}

.event-banner strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

/* Player Selection / Table Roster Grid */
.player-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.player-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: #151310;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.player-chip.selectable {
  border-color: rgba(212, 168, 83, 0.55);
  background: rgba(212, 168, 83, 0.08);
}

.player-chip.selectable:hover,
.player-chip.selectable:focus-visible {
  border-color: var(--gold-bright);
  background: rgba(212, 168, 83, 0.16);
}

.player-chip.selectable:active {
  transform: scale(0.97);
}

.player-chip.is-president {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.3);
}

.player-chip.is-chancellor {
  border-color: var(--liberal-bright);
}

.player-chip.is-dead {
  opacity: 0.42;
  background: #0e0c0a;
  border-style: dashed;
}

.chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
}

.chip-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--parchment);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.is-dead .chip-name {
  text-decoration: line-through;
}

.chip-seat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.chip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.placard-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.placard-pres {
  background: var(--gold);
  color: #16120c;
}

.placard-chan {
  background: var(--liberal-bright);
  color: #0d1d24;
}

.placard-cand {
  background: rgba(82, 182, 217, 0.25);
  color: var(--liberal-bright);
  border: 1px solid rgba(82, 182, 217, 0.5);
}

.placard-term {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.placard-clean {
  background: rgba(45, 135, 168, 0.24);
  color: #82d8f5;
}

.placard-dead {
  background: rgba(201, 42, 42, 0.3);
  color: #ff8784;
}

/* Tactile Policy Tiles (Legislative Session & Peek) */
.policy-hand {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.policy-tile {
  flex: 1;
  max-width: 126px;
  height: 168px;
  border-radius: 10px;
  padding: 8px;
  background: var(--parchment);
  border: 3px solid #cbb389;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  user-select: none;
}

.policy-tile-inner {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border: 2px solid currentColor;
}

.policy-tile.liberal .policy-tile-inner {
  background: linear-gradient(180deg, #2d87a8 0%, #1c5b73 100%);
  color: var(--parchment);
}

.policy-tile.fascist .policy-tile-inner {
  background: linear-gradient(180deg, #c92a2a 0%, #801616 100%);
  color: var(--parchment);
}

.policy-tile .tile-art {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.policy-tile .tile-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-tile.marked-discard {
  transform: translateY(6px) scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  border-color: var(--gold-bright);
}

.discard-stamp {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.76);
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.discard-stamp span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: #ff6b6b;
  border: 2.5px solid #ff6b6b;
  padding: 2px 8px;
  transform: rotate(-10deg);
  text-transform: uppercase;
}

/* JA! / NEIN! Ballot Cards */
.ballot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0;
}

.ballot-card {
  height: 124px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  border: 3px solid transparent;
}

.ballot-ja {
  background: linear-gradient(180deg, var(--parchment) 0%, #dfd0b0 100%);
  color: var(--ink);
  border-color: #b89b67;
}

.ballot-nein {
  background: linear-gradient(180deg, #26221e 0%, #14110f 100%);
  color: var(--parchment);
  border-color: #5c5042;
}

.ballot-card .ballot-word {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.ballot-card .ballot-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  margin-top: 6px;
  opacity: 0.75;
  text-transform: uppercase;
}

.ballot-card.chosen {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.35), 0 8px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-3px);
}

/* Vote Breakdown Grid */
.vote-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 10px 0 14px;
}

.vote-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
}

.vote-badge-ja {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
}

.vote-badge-nein {
  background: #2e2924;
  color: var(--parchment);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 4px;
}

/* Secret Dossier Drawer (Multi-Phone Personal Role Peek) */
.secret-pocket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #211c17 0%, #181411 100%);
  border: 1px solid rgba(212, 168, 83, 0.35);
  margin-bottom: 9px;
  user-select: none;
}

.secret-drawer-open {
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  border: 2px solid var(--gold);
  background: #1b1714;
}

/* Privacy / Pass Screen */
.seal-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0;
}

.wax-emblem {
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  color: var(--fascist-bright);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.role-card-showcase {
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  margin: 14px 0;
  border: 3px solid var(--parchment);
}

.role-card-showcase.liberal {
  background: linear-gradient(180deg, #2c84a3 0%, #184b5e 100%);
  color: var(--parchment);
}

.role-card-showcase.fascist {
  background: linear-gradient(180deg, #c22727 0%, #6e1212 100%);
  color: var(--parchment);
}

.role-card-showcase.hitler {
  background: linear-gradient(180deg, #8c1919 0%, #2b0707 100%);
  color: var(--parchment);
  border-color: var(--gold-bright);
}

.role-art-lg {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
}

/* Log & Post-game Declassified Timeline */
.log-box {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.log-list {
  max-height: 150px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.declassified-row {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(212, 168, 83, 0.22);
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.mini-cards-inline {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}

.mini-card {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-card.Liberal {
  background: var(--liberal);
  color: #fff;
}

.mini-card.Fascist {
  background: var(--fascist);
  color: #fff;
}

/* Modal Overlay */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal-sheet {
  width: 100%;
  max-width: 440px;
  max-height: 86dvh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.toast-banner {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--parchment);
  color: var(--ink);
  border: 2px solid var(--gold);
  padding: 9px 16px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  z-index: 150;
  white-space: nowrap;
}
