/* ============================================================
   Lunch Roulette | Aspen Integrity — Shared Stylesheet
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --navy: #1E3251;
  --navy-dark: #162640;
  --gold: #DDB961;
  --gold-light: rgba(221, 185, 97, 0.15);
  --white: #FFFFFF;
  --bg: #F7F5F0;
  --danger: #B44A4A;
  --danger-dark: #993D3D;
  --text: #1E3251;
  --text-on-dark: #FFFFFF;
  --text-muted: rgba(30, 50, 81, 0.62);
  --border: rgba(30, 50, 81, 0.15);
  --border-strong: rgba(30, 50, 81, 0.25);
  --shadow: rgba(30, 50, 81, 0.08);
  --shadow-heavy: rgba(30, 50, 81, 0.14);
  --radius: 8px;
  --radius-lg: 12px;
}

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

/* --- Base --- */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --- Gold accent bar (replaces checkerboard) --- */
body::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--gold);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
}

/* --- Typography --- */
h1, h2, h3, .heading-font {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mono {
  font-family: 'DM Mono', monospace;
}

/* --- Brand header (shared across all pages) --- */
.brand-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.brand-header .logo {
  height: 44px;
  width: auto;
}

.brand-header .brand-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}

.brand-header .brand-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.brand-header .header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-header .user-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.brand-header .header-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.brand-header .header-link:hover {
  color: var(--navy);
}

/* --- Centered brand block (login / invite pages) --- */
.brand-block {
  text-align: center;
  margin-bottom: 28px;
}

.brand-block .logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
}

.brand-block .brand-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.1;
}

.brand-block .brand-subtitle {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 2px 8px var(--shadow);
}

.card h2 {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  color: var(--navy);
}

/* --- Form fields --- */
.field {
  text-align: left;
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

.field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.field .hint {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Buttons --- */
.btn {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  padding: 12px 28px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Primary: navy bg, white text */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 6px var(--shadow);
}
.btn-primary:hover:not(:disabled) {
  background: var(--navy-dark);
  box-shadow: 0 4px 12px var(--shadow-heavy);
}

/* Secondary: gold bg, navy text */
.btn-secondary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 2px 6px var(--shadow);
}
.btn-secondary:hover:not(:disabled) {
  background: #D0A94E;
  box-shadow: 0 4px 12px var(--shadow-heavy);
}

/* Danger: muted red */
.btn-danger {
  background: var(--danger);
  color: var(--white);
  box-shadow: 0 2px 6px var(--shadow);
}
.btn-danger:hover:not(:disabled) {
  background: var(--danger-dark);
}

/* Outline variant */
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover:not(:disabled) {
  background: var(--gold-light);
  border-color: var(--gold);
}

/* Small button */
.btn-sm {
  font-size: 0.72rem;
  padding: 6px 14px;
  width: auto;
  letter-spacing: 0.08em;
}

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

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

/* --- Error message --- */
.error-msg {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--danger);
  margin-top: 12px;
  display: none;
}

/* --- Notice/inline feedback --- */
.notice {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--danger);
  margin-top: 8px;
  display: none;
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-state p {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* --- Section divider --- */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0 28px;
  color: var(--text-muted);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Section title (admin) --- */
.section-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.section-gap {
  margin-top: 48px;
}

/* --- Badges --- */
.badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
}

.badge-gold {
  background: var(--gold);
  color: var(--navy);
}

.badge-navy {
  background: var(--navy);
  color: var(--white);
}

.badge-danger {
  background: var(--danger);
  color: var(--white);
}

.badge-muted {
  background: rgba(30, 50, 81, 0.08);
  color: var(--text-muted);
}

/* --- Admin form grid --- */
.form-grid {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  box-shadow: 0 2px 8px var(--shadow);
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.form-grid input,
.form-grid select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

/* --- Row-based lists (admin) --- */
.list-row {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px var(--shadow);
}

.list-row .row-name {
  font-weight: 500;
  flex: 1;
  font-size: 0.9rem;
}

.list-row .row-detail {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.list-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* --- Invite URL box --- */
.invite-url-box {
  background: var(--navy);
  color: var(--gold);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 16px;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  word-break: break-all;
  display: none;
}

.invite-url-box .url-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.invite-url-box .url-text {
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.invite-url-box .copy-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.invite-url-box .copy-btn:hover {
  background: rgba(221, 185, 97, 0.12);
}

/* --- Thursday pick cards (admin) --- */
.tpc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 2px 8px var(--shadow);
}

.tpc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.tpc-date-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1;
}

.tpc-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tpc-body select {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  background: var(--white);
  color: var(--text);
  outline: none;
}

.tpc-body select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-light);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .brand-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-header .header-right {
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }

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

  .tpc-body {
    flex-wrap: wrap;
  }

  .list-row {
    flex-wrap: wrap;
  }
}

/* ============================================================
   Theme Engine v2 — Deep Layout Overrides
   Each [data-theme] block overrides layout, typography, spacing,
   borders, shadows, backgrounds — not just colors.
   ============================================================ */

/* ============================================================
   TERMINAL THEME — Green-on-black hacker terminal
   ============================================================ */
[data-theme="terminal"] {
  /* --- Design tokens --- */
  --navy: #0a3d0a;
  --navy-dark: #062d06;
  --gold: #00ff41;
  --gold-light: rgba(0,255,65,0.1);
  --bg: #0a0a0a;
  --white: #111111;
  --text: #00ff41;
  --text-on-dark: #00ff41;
  --text-muted: rgba(0,255,65,0.5);
  --border: rgba(0,255,65,0.25);
  --border-strong: rgba(0,255,65,0.4);
  --shadow: rgba(0,255,65,0.05);
  --shadow-heavy: rgba(0,255,65,0.1);
  --danger: #ff3333;
  --radius: 0px;
  --radius-lg: 0px;
}

/* Typography — everything monospace, uppercase */
[data-theme="terminal"] body {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  background: #0a0a0a;
  color: #00ff41;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Scanline overlay */
[data-theme="terminal"] body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

[data-theme="terminal"] h1,
[data-theme="terminal"] h2,
[data-theme="terminal"] h3,
[data-theme="terminal"] .heading-font {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-theme="terminal"] .brand-header .brand-title {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #00ff41;
}

[data-theme="terminal"] .brand-header .brand-subtitle {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: rgba(0,255,65,0.5);
  letter-spacing: 0.08em;
}

/* Gold accent bar — replaced with green bottom border */
[data-theme="terminal"] body::before {
  display: none;
}

/* Header — dark bg, bottom green border only */
[data-theme="terminal"] .brand-header {
  background: #0a0a0a;
  border-bottom: 1px solid #00ff41;
  padding: 16px 24px 12px;
}

[data-theme="terminal"] .brand-header .logo {
  filter: brightness(0) invert(1) sepia(1) saturate(50) hue-rotate(90deg);
  opacity: 0.6;
}

[data-theme="terminal"] .brand-header .user-label,
[data-theme="terminal"] .brand-header .header-link {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: rgba(0,255,65,0.5);
  border-bottom-color: rgba(0,255,65,0.25);
}

[data-theme="terminal"] .brand-header .header-link:hover {
  color: #00ff41;
}

/* Cards — 1px green border, no shadow, no bg */
[data-theme="terminal"] .card {
  background: #111111;
  border: 1px solid #00ff41;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 20px;
}

[data-theme="terminal"] .card h2 {
  color: #00ff41;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

/* Buttons — outlined green, no fill */
[data-theme="terminal"] .btn {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  background: transparent;
  color: #00ff41;
  border: 1px solid #00ff41;
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

[data-theme="terminal"] .btn:hover:not(:disabled) {
  background: rgba(0,255,65,0.1);
  box-shadow: 0 0 8px rgba(0,255,65,0.3);
  transform: none;
}

[data-theme="terminal"] .btn-primary {
  background: transparent;
  color: #00ff41;
  border: 1px solid #00ff41;
  box-shadow: none;
}

[data-theme="terminal"] .btn-primary:hover:not(:disabled) {
  background: rgba(0,255,65,0.1);
  box-shadow: 0 0 8px rgba(0,255,65,0.3);
}

[data-theme="terminal"] .btn-secondary {
  background: transparent;
  color: #00ff41;
  border: 1px solid rgba(0,255,65,0.5);
  box-shadow: none;
}

[data-theme="terminal"] .btn-danger {
  background: transparent;
  color: #ff3333;
  border: 1px solid #ff3333;
  box-shadow: none;
}

/* Form fields */
[data-theme="terminal"] .field input,
[data-theme="terminal"] .field select,
[data-theme="terminal"] .form-grid input,
[data-theme="terminal"] .form-grid select {
  background: #0a0a0a;
  color: #00ff41;
  border: 1px solid rgba(0,255,65,0.3);
  border-radius: 0;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

[data-theme="terminal"] .field input:focus,
[data-theme="terminal"] .field select:focus,
[data-theme="terminal"] .form-grid input:focus,
[data-theme="terminal"] .form-grid select:focus {
  border-color: #00ff41;
  box-shadow: 0 0 6px rgba(0,255,65,0.3);
}

/* Section dividers */
[data-theme="terminal"] .section-divider {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: rgba(0,255,65,0.5);
}

[data-theme="terminal"] .section-divider::before,
[data-theme="terminal"] .section-divider::after {
  background: rgba(0,255,65,0.25);
}

/* History items */
[data-theme="terminal"] .history-item {
  background: #111111;
  border: 1px solid rgba(0,255,65,0.25);
  border-radius: 0;
  box-shadow: none;
  padding: 10px 12px;
}

[data-theme="terminal"] .history-item .hist-name {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: #00ff41;
}

[data-theme="terminal"] .history-item .hist-date {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: rgba(0,255,65,0.45);
}

[data-theme="terminal"] .hist-badge.locked {
  background: #00ff41;
  color: #0a0a0a;
  border-radius: 0;
}

[data-theme="terminal"] .hist-badge.latest {
  background: rgba(0,255,65,0.15);
  color: rgba(0,255,65,0.6);
  border-radius: 0;
}

/* List rows (admin) */
[data-theme="terminal"] .list-row {
  background: #111111;
  border: 1px solid rgba(0,255,65,0.25);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="terminal"] .list-row .row-name {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: #00ff41;
}

[data-theme="terminal"] .list-row .row-detail {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

/* Badges */
[data-theme="terminal"] .badge {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  border-radius: 0;
}

[data-theme="terminal"] .badge-gold {
  background: #00ff41;
  color: #0a0a0a;
}

[data-theme="terminal"] .badge-navy {
  background: rgba(0,255,65,0.15);
  color: #00ff41;
}

/* Empty state */
[data-theme="terminal"] .empty-state p {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: rgba(0,255,65,0.5);
}

/* Form grid (admin) */
[data-theme="terminal"] .form-grid {
  background: #111111;
  border: 1px solid rgba(0,255,65,0.25);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="terminal"] .form-grid label {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: rgba(0,255,65,0.5);
}

/* Section title */
[data-theme="terminal"] .section-title {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: #00ff41;
  border-bottom-color: rgba(0,255,65,0.25);
}

/* Thursday pick cards */
[data-theme="terminal"] .tpc-card {
  background: #111111;
  border: 1px solid rgba(0,255,65,0.25);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="terminal"] .tpc-date-label {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: rgba(0,255,65,0.5);
}

/* Invite URL box */
[data-theme="terminal"] .invite-url-box {
  background: #0a0a0a;
  border: 1px solid #00ff41;
  border-radius: 0;
  color: #00ff41;
}

[data-theme="terminal"] .invite-url-box .url-text {
  color: #00ff41;
}

[data-theme="terminal"] .invite-url-box .copy-btn {
  border-color: #00ff41;
  color: #00ff41;
  border-radius: 0;
}

/* ============================================================
   NEWSPAPER THEME — Broadsheet print look
   ============================================================ */
[data-theme="newspaper"] {
  /* --- Design tokens --- */
  --navy: #1a1a1a;
  --navy-dark: #000000;
  --gold: #1a1a1a;
  --gold-light: rgba(0,0,0,0.06);
  --bg: #f5f0e8;
  --white: #f5f0e8;
  --text: #1a1a1a;
  --text-on-dark: #f5f0e8;
  --text-muted: rgba(26,26,26,0.55);
  --border: rgba(26,26,26,0.2);
  --border-strong: rgba(26,26,26,0.4);
  --shadow: transparent;
  --shadow-heavy: transparent;
  --danger: #8b0000;
  --radius: 0px;
  --radius-lg: 0px;
}

/* Typography — serif everywhere */
[data-theme="newspaper"] body {
  font-family: 'Lora', 'Georgia', serif;
  background: #f5f0e8;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Newsprint texture */
[data-theme="newspaper"] body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' x='2' y='2' fill='%23000' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

[data-theme="newspaper"] h1,
[data-theme="newspaper"] h2,
[data-theme="newspaper"] h3,
[data-theme="newspaper"] .heading-font {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

[data-theme="newspaper"] .brand-header .brand-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1a1a;
}

[data-theme="newspaper"] .brand-header .brand-subtitle {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(26,26,26,0.55);
}

/* Gold accent bar — thin black line */
[data-theme="newspaper"] body::before {
  height: 2px;
  background: #1a1a1a;
}

/* Header — newsprint bg, black bottom border */
[data-theme="newspaper"] .brand-header {
  background: #f5f0e8;
  border-bottom: 2px solid #1a1a1a;
  padding: 24px 24px 16px;
}

[data-theme="newspaper"] .brand-header .logo {
  filter: grayscale(1) contrast(1.2);
  opacity: 0.7;
}

[data-theme="newspaper"] .brand-header .user-label,
[data-theme="newspaper"] .brand-header .header-link {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 0.62rem;
  color: rgba(26,26,26,0.55);
  border-bottom-color: rgba(26,26,26,0.2);
}

[data-theme="newspaper"] .brand-header .header-link:hover {
  color: #1a1a1a;
}

/* Cards — no bg, thin black border, tight padding */
[data-theme="newspaper"] .card {
  background: transparent;
  border: 1px solid #1a1a1a;
  border-radius: 0;
  box-shadow: none;
  padding: 20px 18px;
}

[data-theme="newspaper"] .card h2 {
  color: #1a1a1a;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(26,26,26,0.2);
  padding-bottom: 8px;
}

/* Buttons — black fill, white text, square */
[data-theme="newspaper"] .btn {
  font-family: 'Playfair Display', 'Georgia', serif;
  background: #1a1a1a;
  color: #f5f0e8;
  border: 1px solid #1a1a1a;
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.8rem;
}

[data-theme="newspaper"] .btn:hover:not(:disabled) {
  background: #333333;
  box-shadow: none;
  transform: none;
}

[data-theme="newspaper"] .btn-primary {
  background: #1a1a1a;
  color: #f5f0e8;
  box-shadow: none;
}

[data-theme="newspaper"] .btn-primary:hover:not(:disabled) {
  background: #333333;
  box-shadow: none;
}

[data-theme="newspaper"] .btn-secondary {
  background: #1a1a1a;
  color: #f5f0e8;
  box-shadow: none;
}

[data-theme="newspaper"] .btn-danger {
  background: #8b0000;
  color: #f5f0e8;
  border-color: #8b0000;
  box-shadow: none;
}

[data-theme="newspaper"] .btn-outline {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

[data-theme="newspaper"] .btn-outline:hover:not(:disabled) {
  background: rgba(26,26,26,0.06);
  border-color: #1a1a1a;
}

/* Form fields */
[data-theme="newspaper"] .field input,
[data-theme="newspaper"] .field select,
[data-theme="newspaper"] .form-grid input,
[data-theme="newspaper"] .form-grid select {
  background: #f5f0e8;
  color: #1a1a1a;
  border: 1px solid rgba(26,26,26,0.3);
  border-radius: 0;
  font-family: 'Lora', 'Georgia', serif;
}

[data-theme="newspaper"] .field input:focus,
[data-theme="newspaper"] .field select:focus,
[data-theme="newspaper"] .form-grid input:focus,
[data-theme="newspaper"] .form-grid select:focus {
  border-color: #1a1a1a;
  box-shadow: none;
}

[data-theme="newspaper"] .field label,
[data-theme="newspaper"] .field .hint {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
}

/* Section dividers — thin rule, serif text */
[data-theme="newspaper"] .section-divider {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #1a1a1a;
}

[data-theme="newspaper"] .section-divider::before,
[data-theme="newspaper"] .section-divider::after {
  background: #1a1a1a;
  height: 1px;
}

/* History items — column style, minimal */
[data-theme="newspaper"] .history-item {
  background: transparent;
  border: 1px solid rgba(26,26,26,0.2);
  border-radius: 0;
  box-shadow: none;
  padding: 10px 12px;
}

[data-theme="newspaper"] .history-item .hist-name {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1a1a1a;
}

[data-theme="newspaper"] .history-item .hist-date {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
  font-size: 0.65rem;
  color: rgba(26,26,26,0.5);
}

[data-theme="newspaper"] .hist-badge.locked {
  background: #1a1a1a;
  color: #f5f0e8;
  border-radius: 0;
}

[data-theme="newspaper"] .hist-badge.latest {
  background: rgba(26,26,26,0.08);
  color: rgba(26,26,26,0.6);
  border-radius: 0;
}

/* List rows */
[data-theme="newspaper"] .list-row {
  background: transparent;
  border: 1px solid rgba(26,26,26,0.2);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="newspaper"] .list-row .row-name {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 700;
}

[data-theme="newspaper"] .list-row .row-detail {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
}

/* Badges */
[data-theme="newspaper"] .badge {
  font-family: 'Lora', 'Georgia', serif;
  border-radius: 0;
  font-size: 0.58rem;
  font-style: italic;
}

[data-theme="newspaper"] .badge-gold {
  background: #1a1a1a;
  color: #f5f0e8;
}

[data-theme="newspaper"] .badge-navy {
  background: rgba(26,26,26,0.08);
  color: #1a1a1a;
}

/* Empty state */
[data-theme="newspaper"] .empty-state p {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
}

/* Form grid */
[data-theme="newspaper"] .form-grid {
  background: transparent;
  border: 1px solid rgba(26,26,26,0.2);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="newspaper"] .form-grid label {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
}

/* Section title */
[data-theme="newspaper"] .section-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
  letter-spacing: 0.06em;
}

/* Thursday pick cards */
[data-theme="newspaper"] .tpc-card {
  background: transparent;
  border: 1px solid rgba(26,26,26,0.2);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="newspaper"] .tpc-date-label {
  font-family: 'Lora', 'Georgia', serif;
  font-style: italic;
}

/* Invite URL box */
[data-theme="newspaper"] .invite-url-box {
  background: #1a1a1a;
  color: #f5f0e8;
  border-radius: 0;
}

[data-theme="newspaper"] .invite-url-box .url-text {
  color: #f5f0e8;
}

[data-theme="newspaper"] .invite-url-box .copy-btn {
  border-color: #f5f0e8;
  color: #f5f0e8;
  border-radius: 0;
}

/* ============================================================
   BLUEPRINT THEME — Engineering blueprint / technical drawing
   ============================================================ */
[data-theme="blueprint"] {
  --navy: #4a9eff;
  --navy-dark: #2e7ad1;
  --gold: #67b8ff;
  --gold-light: rgba(74,158,255,0.1);
  --bg: #0a1628;
  --white: #0d1f36;
  --text: #c0deff;
  --text-on-dark: #c0deff;
  --text-muted: rgba(192,222,255,0.45);
  --border: rgba(74,158,255,0.35);
  --border-strong: rgba(74,158,255,0.55);
  --shadow: transparent;
  --shadow-heavy: transparent;
  --danger: #ff6666;
  --radius: 0px;
  --radius-lg: 0px;
}

[data-theme="blueprint"] body {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: #0a1628;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(74,158,255,0.07) 39px, rgba(74,158,255,0.07) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(74,158,255,0.07) 39px, rgba(74,158,255,0.07) 40px);
  color: #c0deff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

[data-theme="blueprint"] body::before {
  display: none;
}

[data-theme="blueprint"] h1,
[data-theme="blueprint"] h2,
[data-theme="blueprint"] h3,
[data-theme="blueprint"] .heading-font {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #67b8ff;
}

[data-theme="blueprint"] .brand-header {
  background: #0a1628;
  border-bottom: 1px dashed rgba(74,158,255,0.4);
  padding: 16px 24px 12px;
}

[data-theme="blueprint"] .brand-header .brand-title {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #67b8ff;
}

[data-theme="blueprint"] .brand-header .brand-subtitle {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.45);
  letter-spacing: 0.06em;
}

[data-theme="blueprint"] .brand-header .logo {
  filter: brightness(0) invert(0.7) sepia(1) saturate(3) hue-rotate(190deg);
  opacity: 0.5;
}

[data-theme="blueprint"] .brand-header .user-label,
[data-theme="blueprint"] .brand-header .header-link {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.45);
  border-bottom-color: rgba(74,158,255,0.3);
}

[data-theme="blueprint"] .brand-header .header-link:hover {
  color: #67b8ff;
}

[data-theme="blueprint"] .card {
  background: transparent;
  border: 1px dashed rgba(74,158,255,0.4);
  border-radius: 0;
  box-shadow: none;
  padding: 24px 20px;
}

[data-theme="blueprint"] .card h2 {
  color: #67b8ff;
  font-family: 'Space Mono', 'Courier New', monospace;
}

[data-theme="blueprint"] .btn {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: transparent;
  color: #4a9eff;
  border: 2px dotted rgba(74,158,255,0.6);
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

[data-theme="blueprint"] .btn:hover:not(:disabled) {
  background: rgba(74,158,255,0.08);
  box-shadow: none;
  transform: none;
  border-color: #4a9eff;
}

[data-theme="blueprint"] .btn-primary {
  background: transparent;
  color: #4a9eff;
  border: 2px dotted rgba(74,158,255,0.6);
  box-shadow: none;
}

[data-theme="blueprint"] .btn-primary:hover:not(:disabled) {
  background: rgba(74,158,255,0.08);
  box-shadow: none;
}

[data-theme="blueprint"] .btn-secondary {
  background: transparent;
  color: #67b8ff;
  border: 2px dotted rgba(103,184,255,0.5);
  box-shadow: none;
}

[data-theme="blueprint"] .btn-danger {
  background: transparent;
  color: #ff6666;
  border: 2px dotted rgba(255,102,102,0.6);
  box-shadow: none;
}

[data-theme="blueprint"] .btn-outline {
  background: transparent;
  color: #4a9eff;
  border: 2px dotted rgba(74,158,255,0.4);
}

[data-theme="blueprint"] .field input,
[data-theme="blueprint"] .field select,
[data-theme="blueprint"] .form-grid input,
[data-theme="blueprint"] .form-grid select {
  background: rgba(74,158,255,0.05);
  color: #c0deff;
  border: 1px dashed rgba(74,158,255,0.3);
  border-radius: 0;
  font-family: 'Space Mono', 'Courier New', monospace;
}

[data-theme="blueprint"] .field input:focus,
[data-theme="blueprint"] .field select:focus,
[data-theme="blueprint"] .form-grid input:focus,
[data-theme="blueprint"] .form-grid select:focus {
  border-color: #4a9eff;
  box-shadow: none;
}

[data-theme="blueprint"] .section-divider {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.45);
}

[data-theme="blueprint"] .section-divider::before,
[data-theme="blueprint"] .section-divider::after {
  background: none;
  border-top: 1px dashed rgba(74,158,255,0.3);
  height: 0;
}

[data-theme="blueprint"] .history-item {
  background: transparent;
  border: 1px dashed rgba(74,158,255,0.3);
  border-radius: 0;
  box-shadow: none;
  padding: 10px 12px;
}

[data-theme="blueprint"] .history-item .hist-name {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: #c0deff;
}

[data-theme="blueprint"] .history-item .hist-date {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.4);
}

[data-theme="blueprint"] .hist-badge.locked {
  background: rgba(74,158,255,0.15);
  color: #4a9eff;
  border-radius: 0;
  border: 1px dashed rgba(74,158,255,0.4);
}

[data-theme="blueprint"] .hist-badge.latest {
  background: rgba(74,158,255,0.08);
  color: rgba(192,222,255,0.5);
  border-radius: 0;
}

[data-theme="blueprint"] .list-row {
  background: transparent;
  border: 1px dashed rgba(74,158,255,0.3);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="blueprint"] .list-row .row-name {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: #c0deff;
}

[data-theme="blueprint"] .list-row .row-detail {
  font-family: 'Space Mono', 'Courier New', monospace;
}

[data-theme="blueprint"] .badge {
  font-family: 'Space Mono', 'Courier New', monospace;
  border-radius: 0;
}

[data-theme="blueprint"] .badge-gold {
  background: rgba(74,158,255,0.15);
  color: #4a9eff;
}

[data-theme="blueprint"] .badge-navy {
  background: rgba(74,158,255,0.08);
  color: #c0deff;
}

[data-theme="blueprint"] .empty-state p {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.4);
}

[data-theme="blueprint"] .form-grid {
  background: transparent;
  border: 1px dashed rgba(74,158,255,0.3);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="blueprint"] .form-grid label {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.45);
}

[data-theme="blueprint"] .section-title {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: #67b8ff;
  border-bottom: 1px dashed rgba(74,158,255,0.3);
}

[data-theme="blueprint"] .tpc-card {
  background: transparent;
  border: 1px dashed rgba(74,158,255,0.3);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="blueprint"] .tpc-date-label {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.45);
}

[data-theme="blueprint"] .invite-url-box {
  background: rgba(74,158,255,0.05);
  border: 1px dashed rgba(74,158,255,0.4);
  border-radius: 0;
  color: #c0deff;
}

[data-theme="blueprint"] .invite-url-box .url-text {
  color: #67b8ff;
}

[data-theme="blueprint"] .invite-url-box .copy-btn {
  border: 1px dotted rgba(74,158,255,0.5);
  color: #4a9eff;
  border-radius: 0;
}

/* Wheel page elements */
[data-theme="blueprint"] .wheel-pointer {
  border-top-color: #4a9eff;
  filter: drop-shadow(0 0 4px rgba(74,158,255,0.4));
  border-left-width: 10px;
  border-right-width: 10px;
  border-top-width: 28px;
}

[data-theme="blueprint"] canvas#wheel {
  box-shadow: none;
  outline: 2px dashed rgba(74,158,255,0.5);
  outline-offset: 4px;
}

[data-theme="blueprint"] .spin-btn {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: transparent;
  color: #4a9eff;
  border: 2px dotted rgba(74,158,255,0.6);
  border-radius: 0;
  box-shadow: none;
  letter-spacing: 0.12em;
  font-weight: 700;
}

[data-theme="blueprint"] .spin-btn:hover:not(:disabled) {
  background: rgba(74,158,255,0.08);
  box-shadow: none;
  transform: none;
}

[data-theme="blueprint"] .result-card {
  background: rgba(74,158,255,0.06);
  color: #c0deff;
  border: 1px dashed rgba(74,158,255,0.5);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="blueprint"] .result-card .label {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.5);
}

[data-theme="blueprint"] .result-card .restaurant-name {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: #67b8ff;
  letter-spacing: 0.08em;
}

[data-theme="blueprint"] .lock-btn {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: transparent;
  color: #4a9eff;
  border: 2px dotted rgba(74,158,255,0.5);
  border-radius: 0;
}

[data-theme="blueprint"] .unlock-btn {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: transparent;
  color: rgba(192,222,255,0.5);
  border: 1px dotted rgba(74,158,255,0.3);
  border-radius: 0;
}

[data-theme="blueprint"] .locked-badge {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: rgba(74,158,255,0.15);
  color: #4a9eff;
  border-radius: 0;
  border: 1px dashed rgba(74,158,255,0.4);
}

[data-theme="blueprint"] .locked-this-week {
  font-family: 'Space Mono', 'Courier New', monospace;
  background: rgba(74,158,255,0.06);
  color: #c0deff;
  border: 1px dashed rgba(74,158,255,0.4);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="blueprint"] .thursday-notice {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: rgba(192,222,255,0.4);
}

[data-theme="blueprint"] .history-grid {
  gap: 8px;
}

/* ============================================================
   HANDWRITTEN THEME — Notebook / hand-drawn feel
   ============================================================ */
[data-theme="handwritten"] {
  --navy: #5b7fa6;
  --navy-dark: #4a6d91;
  --gold: #f4a261;
  --gold-light: rgba(244,162,97,0.15);
  --bg: #ffffff;
  --white: #ffffff;
  --text: #3a3a3a;
  --text-on-dark: #ffffff;
  --text-muted: rgba(58,58,58,0.5);
  --border: rgba(58,58,58,0.12);
  --border-strong: rgba(58,58,58,0.2);
  --shadow: rgba(0,0,0,0.04);
  --shadow-heavy: rgba(0,0,0,0.08);
  --danger: #e07a5f;
  --radius: 4px;
  --radius-lg: 6px;
}

[data-theme="handwritten"] body {
  font-family: 'Patrick Hand', 'Comic Sans MS', cursive;
  background: #ffffff;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(100,149,237,0.15) 27px,
      rgba(100,149,237,0.15) 28px
    );
  background-size: 100% 28px;
  background-position: 0 12px;
  color: #3a3a3a;
  text-transform: lowercase;
  letter-spacing: 0.01em;
  line-height: 1.7;
  font-size: 1.05rem;
}

[data-theme="handwritten"] body::before {
  display: none;
}

[data-theme="handwritten"] h1,
[data-theme="handwritten"] h2,
[data-theme="handwritten"] h3,
[data-theme="handwritten"] .heading-font {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  font-size: 1.6em;
}

[data-theme="handwritten"] .brand-header {
  background: rgba(255,255,255,0.85);
  border-bottom: none;
  padding: 24px 28px 20px;
}

[data-theme="handwritten"] .brand-header .brand-title {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: #3a3a3a;
}

[data-theme="handwritten"] .brand-header .brand-subtitle {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: rgba(58,58,58,0.5);
}

[data-theme="handwritten"] .brand-header .logo {
  filter: sepia(0.3) saturate(0.6);
  opacity: 0.6;
}

[data-theme="handwritten"] .brand-header .user-label,
[data-theme="handwritten"] .brand-header .header-link {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.85rem;
  color: rgba(58,58,58,0.5);
  border-bottom: none;
}

[data-theme="handwritten"] .brand-header .header-link:hover {
  color: #3a3a3a;
}

[data-theme="handwritten"] .card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 28px 24px;
  transform: rotate(-0.5deg);
}

[data-theme="handwritten"] .card h2 {
  color: #3a3a3a;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  border-bottom: 2px solid rgba(58,58,58,0.15);
  padding-bottom: 6px;
}

[data-theme="handwritten"] .btn {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  background: transparent;
  color: #5b7fa6;
  border: 2.5px solid #5b7fa6;
  border-radius: 12px;
  box-shadow: none;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-weight: 700;
  transform: rotate(-1deg);
  padding: 10px 28px;
}

[data-theme="handwritten"] .btn:hover:not(:disabled) {
  background: rgba(91,127,166,0.08);
  box-shadow: none;
  transform: rotate(0.5deg);
}

[data-theme="handwritten"] .btn-primary {
  background: #5b7fa6;
  color: #ffffff;
  border: 2.5px solid #5b7fa6;
  box-shadow: none;
}

[data-theme="handwritten"] .btn-primary:hover:not(:disabled) {
  background: #4a6d91;
  box-shadow: none;
}

[data-theme="handwritten"] .btn-secondary {
  background: #f4a261;
  color: #ffffff;
  border: 2.5px solid #f4a261;
  box-shadow: none;
}

[data-theme="handwritten"] .btn-danger {
  background: transparent;
  color: #e07a5f;
  border: 2.5px solid #e07a5f;
  box-shadow: none;
}

[data-theme="handwritten"] .btn-outline {
  background: transparent;
  color: #5b7fa6;
  border: 2.5px solid rgba(91,127,166,0.4);
}

[data-theme="handwritten"] .field input,
[data-theme="handwritten"] .field select,
[data-theme="handwritten"] .form-grid input,
[data-theme="handwritten"] .form-grid select {
  background: transparent;
  color: #3a3a3a;
  border: none;
  border-bottom: 2px solid rgba(58,58,58,0.2);
  border-radius: 0;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.05rem;
}

[data-theme="handwritten"] .field input:focus,
[data-theme="handwritten"] .field select:focus,
[data-theme="handwritten"] .form-grid input:focus,
[data-theme="handwritten"] .form-grid select:focus {
  border-bottom-color: #5b7fa6;
  box-shadow: none;
}

[data-theme="handwritten"] .field label,
[data-theme="handwritten"] .field .hint,
[data-theme="handwritten"] .form-grid label {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.9rem;
}

[data-theme="handwritten"] .section-divider {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  color: rgba(58,58,58,0.4);
}

[data-theme="handwritten"] .section-divider::before,
[data-theme="handwritten"] .section-divider::after {
  background: rgba(58,58,58,0.1);
}

[data-theme="handwritten"] .history-item {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(58,58,58,0.1);
}

[data-theme="handwritten"] .history-item:nth-child(odd) {
  transform: rotate(-0.6deg);
}

[data-theme="handwritten"] .history-item:nth-child(even) {
  transform: rotate(0.8deg);
}

[data-theme="handwritten"] .history-item .hist-name {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: #3a3a3a;
}

[data-theme="handwritten"] .history-item .hist-date {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.85rem;
  color: rgba(58,58,58,0.4);
}

[data-theme="handwritten"] .hist-badge.locked {
  background: rgba(244,162,97,0.2);
  color: #c97a3a;
  border-radius: 8px;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.75rem;
}

[data-theme="handwritten"] .hist-badge.latest {
  background: rgba(91,127,166,0.1);
  color: rgba(58,58,58,0.45);
  border-radius: 8px;
  font-family: 'Patrick Hand', cursive;
}

[data-theme="handwritten"] .list-row {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(58,58,58,0.1);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="handwritten"] .list-row .row-name {
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
}

[data-theme="handwritten"] .list-row .row-detail {
  font-family: 'Patrick Hand', cursive;
}

[data-theme="handwritten"] .badge {
  font-family: 'Patrick Hand', cursive;
  border-radius: 8px;
  font-size: 0.75rem;
}

[data-theme="handwritten"] .empty-state p {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.1rem;
}

[data-theme="handwritten"] .form-grid {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 28px 24px;
}

[data-theme="handwritten"] .section-title {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: #3a3a3a;
  border-bottom: 2px solid rgba(58,58,58,0.15);
}

[data-theme="handwritten"] .tpc-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(58,58,58,0.1);
  border-radius: 0;
  box-shadow: none;
}

[data-theme="handwritten"] .tpc-date-label {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.9rem;
}

[data-theme="handwritten"] .invite-url-box {
  background: #5b7fa6;
  border-radius: 12px;
  color: #ffffff;
}

[data-theme="handwritten"] .invite-url-box .url-text {
  color: #ffffff;
  font-family: 'Patrick Hand', cursive;
}

[data-theme="handwritten"] .invite-url-box .copy-btn {
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
  border-radius: 8px;
  font-family: 'Patrick Hand', cursive;
}

/* Wheel page elements */
[data-theme="handwritten"] .wheel-pointer {
  border-top-color: #f4a261;
  filter: none;
}

[data-theme="handwritten"] canvas#wheel {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

[data-theme="handwritten"] .spin-btn {
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  background: #5b7fa6;
  color: #ffffff;
  border: 2.5px solid #5b7fa6;
  border-radius: 16px;
  box-shadow: none;
  letter-spacing: 0.02em;
  font-weight: 700;
  transform: rotate(-1.5deg);
  padding: 14px 48px;
}

[data-theme="handwritten"] .spin-btn:hover:not(:disabled) {
  background: #4a6d91;
  box-shadow: none;
  transform: rotate(0.5deg);
}

[data-theme="handwritten"] .result-card {
  background: #5b7fa6;
  color: #ffffff;
  border-radius: 12px;
  box-shadow: none;
  transform: rotate(0.8deg);
}

[data-theme="handwritten"] .result-card .label {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

[data-theme="handwritten"] .result-card .restaurant-name {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

[data-theme="handwritten"] .lock-btn {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  background: #f4a261;
  color: #ffffff;
  border: none;
  border-radius: 10px;
}

[data-theme="handwritten"] .unlock-btn {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px;
}

[data-theme="handwritten"] .locked-badge {
  font-family: 'Caveat', cursive;
  font-size: 1.1rem;
  background: #f4a261;
  color: #ffffff;
  border-radius: 10px;
}

[data-theme="handwritten"] .locked-this-week {
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  background: rgba(244,162,97,0.15);
  color: #c97a3a;
  border-radius: 12px;
  box-shadow: none;
}

[data-theme="handwritten"] .thursday-notice {
  font-family: 'Patrick Hand', cursive;
  font-size: 0.95rem;
  color: rgba(58,58,58,0.45);
}

[data-theme="handwritten"] .history-grid {
  gap: 4px;
}

/* ============================================================
   BRUTALIST THEME — Raw, aggressive, minimal
   ============================================================ */
[data-theme="brutalist"] {
  --navy: #000000;
  --navy-dark: #000000;
  --gold: #ff0000;
  --gold-light: rgba(255,0,0,0.08);
  --bg: #ffffff;
  --white: #ffffff;
  --text: #000000;
  --text-on-dark: #ffffff;
  --text-muted: rgba(0,0,0,0.45);
  --border: #000000;
  --border-strong: #000000;
  --shadow: transparent;
  --shadow-heavy: transparent;
  --danger: #ff0000;
  --radius: 0px;
  --radius-lg: 0px;
}

[data-theme="brutalist"] body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

[data-theme="brutalist"] body::before {
  height: 6px;
  background: #ff0000;
}

[data-theme="brutalist"] h1,
[data-theme="brutalist"] h2,
[data-theme="brutalist"] h3,
[data-theme="brutalist"] .heading-font {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 2em;
  line-height: 1.0;
}

[data-theme="brutalist"] .brand-header {
  background: #ffffff;
  border-bottom: 4px solid #000000;
  padding: 24px 28px 20px;
}

[data-theme="brutalist"] .brand-header .brand-title {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000000;
  line-height: 1.0;
}

[data-theme="brutalist"] .brand-header .brand-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  font-weight: 600;
}

[data-theme="brutalist"] .brand-header .logo {
  filter: grayscale(1) contrast(2);
}

[data-theme="brutalist"] .brand-header .user-label,
[data-theme="brutalist"] .brand-header .header-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  border-bottom: 2px solid #000000;
  text-transform: uppercase;
}

[data-theme="brutalist"] .brand-header .header-link:hover {
  color: #ff0000;
}

[data-theme="brutalist"] .card {
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 0;
  box-shadow: none;
  padding: 32px 28px;
}

[data-theme="brutalist"] .card h2 {
  color: #000000;
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  border-bottom: 3px solid #000000;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

[data-theme="brutalist"] .btn {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  background: #000000;
  color: #ffffff;
  border: 3px solid #000000;
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 32px;
}

[data-theme="brutalist"] .btn:hover:not(:disabled) {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: none;
  transform: none;
}

[data-theme="brutalist"] .btn-primary {
  background: #000000;
  color: #ffffff;
  border: 3px solid #000000;
  box-shadow: none;
}

[data-theme="brutalist"] .btn-primary:hover:not(:disabled) {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: none;
}

[data-theme="brutalist"] .btn-secondary {
  background: #ff0000;
  color: #ffffff;
  border: 3px solid #ff0000;
  box-shadow: none;
}

[data-theme="brutalist"] .btn-danger {
  background: #ff0000;
  color: #ffffff;
  border: 3px solid #ff0000;
  box-shadow: none;
}

[data-theme="brutalist"] .btn-outline {
  background: #ffffff;
  color: #000000;
  border: 3px solid #000000;
}

[data-theme="brutalist"] .btn-outline:hover:not(:disabled) {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

[data-theme="brutalist"] .field input,
[data-theme="brutalist"] .field select,
[data-theme="brutalist"] .form-grid input,
[data-theme="brutalist"] .form-grid select {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

[data-theme="brutalist"] .field input:focus,
[data-theme="brutalist"] .field select:focus,
[data-theme="brutalist"] .form-grid input:focus,
[data-theme="brutalist"] .form-grid select:focus {
  border-color: #ff0000;
  box-shadow: none;
}

[data-theme="brutalist"] .field label,
[data-theme="brutalist"] .field .hint,
[data-theme="brutalist"] .form-grid label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

[data-theme="brutalist"] .section-divider {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #000000;
}

[data-theme="brutalist"] .section-divider::before,
[data-theme="brutalist"] .section-divider::after {
  background: #000000;
  height: 3px;
}

[data-theme="brutalist"] .history-item {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 16px;
}

[data-theme="brutalist"] .history-item .hist-name {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #000000;
}

[data-theme="brutalist"] .history-item .hist-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(0,0,0,0.4);
  text-transform: uppercase;
}

[data-theme="brutalist"] .hist-badge.locked {
  background: #ff0000;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

[data-theme="brutalist"] .hist-badge.latest {
  background: #000000;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

[data-theme="brutalist"] .list-row {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="brutalist"] .list-row .row-name {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
}

[data-theme="brutalist"] .list-row .row-detail {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

[data-theme="brutalist"] .badge {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  border-radius: 0;
  text-transform: uppercase;
}

[data-theme="brutalist"] .badge-gold {
  background: #ff0000;
  color: #ffffff;
}

[data-theme="brutalist"] .badge-navy {
  background: #000000;
  color: #ffffff;
}

[data-theme="brutalist"] .empty-state p {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
}

[data-theme="brutalist"] .form-grid {
  background: #ffffff;
  border: 3px solid #000000;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="brutalist"] .section-title {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: #000000;
  border-bottom: 3px solid #000000;
}

[data-theme="brutalist"] .tpc-card {
  background: #ffffff;
  border: 2px solid #000000;
  border-radius: 0;
  box-shadow: none;
}

[data-theme="brutalist"] .tpc-date-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

[data-theme="brutalist"] .invite-url-box {
  background: #000000;
  color: #ffffff;
  border-radius: 0;
}

[data-theme="brutalist"] .invite-url-box .url-text {
  color: #ffffff;
}

[data-theme="brutalist"] .invite-url-box .copy-btn {
  border: 2px solid #ffffff;
  color: #ffffff;
  border-radius: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* Wheel page elements */
[data-theme="brutalist"] .wheel-pointer {
  border-top-color: #ff0000;
  filter: none;
  border-left-width: 20px;
  border-right-width: 20px;
  border-top-width: 48px;
}

[data-theme="brutalist"] canvas#wheel {
  box-shadow: none;
  outline: 4px solid #000000;
  outline-offset: 0;
}

[data-theme="brutalist"] .spin-btn {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  background: #000000;
  color: #ffffff;
  border: 4px solid #000000;
  border-radius: 0;
  box-shadow: none;
  letter-spacing: 0.08em;
  padding: 18px 60px;
}

[data-theme="brutalist"] .spin-btn:hover:not(:disabled) {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: none;
  transform: none;
}

[data-theme="brutalist"] .result-card {
  background: #000000;
  color: #ffffff;
  border-radius: 0;
  box-shadow: none;
  border: 4px solid #000000;
}

[data-theme="brutalist"] .result-card .label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

[data-theme="brutalist"] .result-card .restaurant-name {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 2.6rem;
  color: #ffffff;
  letter-spacing: 0.02em;
  line-height: 1.0;
}

[data-theme="brutalist"] .lock-btn {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  background: #ff0000;
  color: #ffffff;
  border: none;
  border-radius: 0;
}

[data-theme="brutalist"] .unlock-btn {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 0;
}

[data-theme="brutalist"] .locked-badge {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  background: #ff0000;
  color: #ffffff;
  border-radius: 0;
}

[data-theme="brutalist"] .locked-this-week {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  background: #000000;
  color: #ffffff;
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
}

[data-theme="brutalist"] .thursday-notice {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: rgba(0,0,0,0.4);
  text-transform: uppercase;
}

[data-theme="brutalist"] .history-grid {
  gap: 12px;
}
