:root {
  color-scheme: light;
  --ink: #17201e;
  --muted: #63716d;
  --line: #dbe5e0;
  --surface: #f6faf7;
  --panel: #ffffff;
  --teal: #077a73;
  --teal-dark: #064f4b;
  --coral: #df624b;
  --yellow: #f3b541;
  --blue: #456fcd;
  --mint: #dff2e9;
  --rose: #fde7e0;
  --plum: #5c4b73;
  --shadow: 0 20px 55px rgba(23, 32, 30, 0.12);
  --soft-shadow: 0 10px 26px rgba(23, 32, 30, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(7, 122, 115, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 8%, rgba(243, 181, 65, 0.2), transparent 19rem),
    linear-gradient(135deg, #f8fbf7 0%, #eef8f4 52%, #fff8ef 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  background-image:
    linear-gradient(rgba(7, 122, 115, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 122, 115, 0.06) 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
  position: fixed;
}

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

button {
  cursor: pointer;
}

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

.auth-locked {
  overflow: hidden;
}

.auth-locked .app-shell {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.auth-screen {
  align-items: center;
  background:
    var(--paper-noise),
    linear-gradient(135deg, rgba(243, 235, 220, 0.94), rgba(233, 223, 204, 0.96));
  display: flex;
  height: 100dvh;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  width: 100vw;
  z-index: 50;
}

.auth-screen[hidden] {
  display: none;
}

.auth-card {
  background: var(--panel);
  background-image: var(--paper-noise);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--coral), 0 18px 44px var(--shadow);
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  width: min(100%, 34rem);
}

.auth-card h1 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.auth-card code {
  background: var(--mint);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  padding: 0.1rem 0.35rem;
}

.auth-main-action,
.auth-secondary-action {
  width: 100%;
}

.auth-note,
.auth-error {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 0.85rem;
}

.auth-error {
  background: var(--rose);
  border-color: var(--stamp);
  color: var(--stamp);
  font-weight: 800;
}

.auth-choices {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-choice {
  align-items: start;
  display: grid;
  font-size: 1.05rem;
  min-height: 5rem;
  padding: 0.9rem;
}

.auth-choice small {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  margin-top: 0.3rem;
  text-transform: uppercase;
}

.auth-badge {
  background: var(--mint);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
  display: grid;
  gap: 0.1rem;
  min-height: 2.6rem;
  padding: 0.35rem 0.7rem;
  text-align: left;
}

.auth-badge strong {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: 0.9rem;
}

.auth-badge span {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100%;
}

.sidebar {
  border-right: 1px solid rgba(219, 229, 224, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  padding: 1.1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, var(--teal), #0fa499);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(7, 122, 115, 0.24);
  color: white;
  display: flex;
  height: 3rem;
  justify-content: center;
  width: 3rem;
}

.brand-mark svg {
  height: 2rem;
  width: 2rem;
}

.brand h1,
.topbar h2,
.hero-copy h3,
.panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 1.25rem;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
}

.nav-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 0.6rem;
  min-height: 2.8rem;
  padding: 0 0.8rem;
  text-align: left;
  width: 100%;
}

.nav-button:hover,
.nav-button.active {
  background: #eef8f3;
  border-color: #b7dfd1;
  box-shadow: var(--soft-shadow);
  transform: translateY(-1px);
}

.nav-button.locked {
  opacity: 0.45;
}

.nav-icon {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex: 0 0 1.8rem;
  height: 1.8rem;
  justify-content: center;
}

.nav-label-short {
  display: none;
}

.season-pod {
  background:
    linear-gradient(145deg, rgba(23, 32, 30, 0.9), rgba(7, 79, 75, 0.9)),
    radial-gradient(circle at top right, rgba(243, 181, 65, 0.35), transparent 55%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: white;
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
  padding: 0.95rem;
}

.season-pod .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}

.season-pod strong {
  font-size: 1.2rem;
}

.season-pod span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
}

.main {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 1.3rem clamp(1rem, 2.4vw, 2rem) 2rem;
  position: relative;
  z-index: 1;
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.topbar h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  line-height: 1.05;
}

.ghost-button,
.primary-button,
.choice-button,
.small-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
}

.ghost-button {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  color: var(--ink);
}

.primary-button {
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  border: 1px solid var(--teal-dark);
  box-shadow: 0 10px 20px rgba(7, 122, 115, 0.18);
  color: white;
  font-weight: 800;
}

.primary-button:hover,
.ghost-button:hover,
.small-button:hover,
.choice-button:hover {
  transform: translateY(-1px);
}

.hero-band {
  align-items: end;
  background:
    linear-gradient(110deg, rgba(6, 79, 75, 0.97), rgba(7, 122, 115, 0.92) 52%, rgba(92, 75, 115, 0.94)),
    repeating-linear-gradient(45deg, transparent 0 1rem, rgba(255, 255, 255, 0.11) 1rem 1.3rem);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: white;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.35fr);
  margin-bottom: 1.1rem;
  min-height: 16rem;
  overflow: hidden;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  position: relative;
}

.hero-band::before {
  background:
    linear-gradient(90deg, transparent 0 20%, rgba(255, 255, 255, 0.16) 20% 21%, transparent 21% 100%),
    linear-gradient(0deg, transparent 0 46%, rgba(255, 255, 255, 0.14) 46% 47%, transparent 47% 100%);
  background-size: 8rem 8rem;
  content: "";
  inset: 0;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
}

.hero-band::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 0.22rem, transparent 0.25rem),
    radial-gradient(circle, rgba(245, 184, 75, 0.45) 0 0.18rem, transparent 0.21rem);
  background-size: 4.8rem 4.8rem, 6.2rem 6.2rem;
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

.hero-copy,
.week-card {
  position: relative;
  z-index: 1;
}

.hero-copy h3 {
  font-size: clamp(2.2rem, 5vw, 5.25rem);
  line-height: 0.98;
  max-width: 46rem;
}

.hero-copy p:last-child {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.85rem 0 0;
  max-width: 42rem;
}

.hero-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-kpis span {
  align-items: baseline;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
}

.hero-kpis strong {
  color: var(--yellow);
}

.week-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem;
  backdrop-filter: blur(16px);
}

.week-card span,
.week-card small {
  color: rgba(255, 255, 255, 0.78);
}

.week-card strong {
  font-size: 1.6rem;
}

.content-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(219, 229, 224, 0.9);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  min-width: 0;
  padding: 1rem;
  backdrop-filter: blur(14px);
}

.panel.wide {
  grid-column: 1 / -1;
}

.panel-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.quick-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.stat-card {
  background: linear-gradient(145deg, #f7fbf9, #eef8f3);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.25rem;
  min-height: 6rem;
  padding: 0.85rem;
}

.stat-card.accent {
  background: linear-gradient(145deg, #eff5ff, #f8fbff);
  border-color: #cbd9ff;
}

.stat-card.warm {
  background: linear-gradient(145deg, #fff7e8, #fffdf8);
  border-color: #f4dab0;
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.stat-card strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.leaderboard {
  display: grid;
  gap: 0.55rem;
}

.leader-row {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 122, 115, 0.08), transparent 55%),
    #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 2.2rem 1fr auto;
  min-height: 3.55rem;
  padding: 0.55rem 0.75rem;
}

.rank {
  align-items: center;
  background: var(--yellow);
  border-radius: 8px;
  display: flex;
  font-weight: 900;
  height: 2.1rem;
  justify-content: center;
}

.score {
  color: var(--teal-dark);
  font-weight: 900;
}

.comeback-badge {
  background: var(--yellow);
  border-radius: 999px;
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  vertical-align: middle;
}

.rules-card {
  background: #fff8ed;
  border: 1px solid #f0d9a8;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.rules-card[open] summary { margin-bottom: 0.55rem; }
.rules-card summary {
  cursor: pointer;
  font-weight: 700;
  list-style: revert;
  outline: none;
}
.rules-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-left: 1.1rem;
}
.rules-list li { line-height: 1.45; }
.rules-list-secondary li { color: var(--ink-soft, #555); }
.rules-eyebrow {
  color: var(--teal-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0.85rem 0 0.4rem;
  text-transform: uppercase;
}
.game-card-rules {
  display: grid;
  font-size: 0.78rem;
  gap: 0.25rem;
  margin: 0.4rem 0 0;
  padding-left: 1rem;
  text-align: left;
}
.game-card-rules li { line-height: 1.35; }

.verdict-box {
  background:
    linear-gradient(145deg, rgba(253, 231, 224, 0.92), rgba(255, 249, 246, 0.96));
  border: 1px solid #f6c7ba;
  border-radius: 8px;
  line-height: 1.5;
  padding: 1rem;
}

.game-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 247, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.55rem;
  min-height: 10.5rem;
  padding: 0.9rem;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.game-card.active {
  border-color: var(--teal);
  box-shadow: inset 0 0 0 1px var(--teal), var(--soft-shadow);
}

.game-card:hover {
  box-shadow: var(--soft-shadow);
  transform: translateY(-2px);
}

.game-card strong {
  font-size: 1.05rem;
}

.game-card p,
.empty-state,
.meta {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.game-status {
  align-self: end;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-card.locked {
  opacity: 0.72;
}

.game-card.locked:hover {
  box-shadow: 3px 3px 0 var(--ink);
  transform: none;
}

.game-card.selectable {
  opacity: 1;
}

.game-card.selectable .game-status {
  color: var(--stamp);
}

.game-card .badge {
  border-radius: 8px;
  justify-content: center;
  min-height: 1.9rem;
  min-width: 1.9rem;
  padding: 0.2rem 0.5rem;
  width: max-content;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  background: #fcfefd;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 2.65rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.segment {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-button {
  background: #f9fcfa;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.choice-button.selected,
.choice-button:hover {
  background: var(--mint);
  border-color: var(--teal);
}

.small-button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 2.25rem;
  padding: 0 0.7rem;
}

.list {
  display: grid;
  gap: 0.7rem;
}

.item {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(248, 251, 250, 0.94));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem;
}

.item-head {
  align-items: start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.quote-card.queued {
  opacity: 0.82;
}

.quote-card .field {
  margin-top: 0.65rem;
}

.quote-card select {
  max-width: 100%;
}

.quote-submitter {
  color: #5b5047;
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  margin-top: 0.35rem;
  text-transform: uppercase;
}

.badge {
  background: #edf4ff;
  border: 1px solid #cddcff;
  border-radius: 999px;
  color: #25498f;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.bingo-board,
.people-grid,
.mood-grid {
  display: grid;
  gap: 0.55rem;
}

.bingo-board {
  gap: 0.45rem;
  grid-template-columns: repeat(5, minmax(4.8rem, 1fr));
  margin-inline: auto;
  max-width: 40rem;
}

.bingo-controls {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  margin-bottom: 0.85rem;
}

.bingo-help {
  background: #fff7e9;
  border: 3px solid var(--pixel-line);
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
}

.bingo-help strong {
  font-weight: 900;
}

.bingo-progress {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.85rem;
}

.bingo-progress-card {
  background: #fff7e9;
  border: 3px solid var(--pixel-line);
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  color: var(--pixel-ink);
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem;
  text-align: left;
}

.bingo-progress-card.active {
  background: var(--pixel-yellow);
  outline: 3px solid var(--pixel-pink);
  outline-offset: -6px;
}

.bingo-progress-card strong {
  font-weight: 900;
}

.bingo-progress-card span,
.bingo-progress-card small {
  font-weight: 850;
}

.bingo-cell {
  aspect-ratio: 1.35;
  background:
    linear-gradient(145deg, #ffffff, #f4faf7);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: clamp(0.6rem, 0.95vw, 0.78rem);
  font-weight: 800;
  justify-content: center;
  line-height: 1.08;
  min-height: 0;
  padding: 0.3rem;
  text-align: center;
  word-break: break-word;
}

.bingo-cell small,
.bingo-cell em {
  display: block;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  margin-top: 0.25rem;
  opacity: 0.78;
  text-transform: uppercase;
}

.bingo-cell em {
  color: var(--pixel-pink);
}

.bingo-cell.custom {
  background: #fff1c4;
}

.bingo-cell.editable {
  outline: 3px solid var(--pixel-yellow);
  outline-offset: -7px;
}

.bingo-cell:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.bingo-cell.view-only {
  cursor: default;
  opacity: 0.92;
}

.bingo-cell.checked {
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  border-color: var(--teal-dark);
  color: white;
}

.people-grid,
.mood-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.people-grid {
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
}

.person-tile,
.mood-card {
  background: linear-gradient(145deg, #ffffff, #f5faf8);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 5.8rem;
  padding: 0.8rem;
  text-align: left;
}

.person-tile {
  align-items: center;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  min-height: 9.25rem;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.person-photo,
.person-initials {
  border: 3px solid white;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23, 32, 30, 0.14);
  height: 4.8rem;
  width: 4.8rem;
}

.person-photo {
  object-fit: cover;
}

.person-initials {
  align-items: center;
  background: linear-gradient(145deg, var(--teal), var(--plum));
  color: white;
  display: flex;
  font-weight: 900;
  justify-content: center;
}

.person-name {
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.15;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.person-tile.eliminated {
  opacity: 0.42;
  text-decoration: line-through;
}

.portrait-toolbar {
  align-items: end;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(12rem, 1fr) auto auto;
  margin: 0.85rem 0;
}

.portrait-action-tabs {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}

.portrait-turn-form [hidden] {
  display: none;
}

.portrait-history {
  background: #fff7e9;
  border: 3px solid var(--pixel-line);
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding: 0.85rem;
}

.portrait-history.empty {
  gap: 0.25rem;
}

.portrait-history ol {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.portrait-history-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  border: 2px solid var(--pixel-line);
  display: grid;
  gap: 0.65rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 0.6rem;
}

.portrait-history-row.guess {
  background: #dbe7ff;
}

.portrait-history-row p {
  font-weight: 800;
  line-height: 1.25;
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.portrait-history-meta {
  align-items: center;
  color: #5b5047;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 850;
  gap: 0.45rem;
}

.portrait-answer {
  background: var(--pixel-yellow);
  border: 2px solid var(--pixel-line);
  box-shadow: 3px 3px 0 var(--pixel-shadow);
  color: var(--pixel-ink);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.35rem 0.5rem;
  white-space: nowrap;
}

.portrait-answer.non,
.portrait-answer.rate {
  background: #ffe1ed;
}

.portrait-answer.oui,
.portrait-answer.trouve {
  background: #dfffd9;
}

.portrait-search {
  margin: 0;
}

.toggle-row {
  align-items: center;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 0.5rem;
  min-height: 2.65rem;
  padding: 0 0.75rem;
  white-space: nowrap;
}

.portrait-counter {
  align-items: center;
  background: var(--mint);
  border: 1px solid #b7dfd1;
  border-radius: 8px;
  color: var(--teal-dark);
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 2.65rem;
  padding: 0 0.75rem;
  white-space: nowrap;
}

.mood-card {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-weight: 900;
  gap: 0.45rem;
  justify-content: center;
  text-align: center;
}

.mood-icon {
  font-size: 1.8rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-actions > * {
  flex: 1 1 12rem;
}

.mood-summary {
  background: #fff7e9;
  border: 3px solid var(--pixel-line);
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  padding: 1rem;
}

.mood-card.selected {
  border-color: var(--pixel-pink);
  box-shadow: 5px 5px 0 var(--pixel-shadow);
  outline: 3px solid var(--pixel-yellow);
  outline-offset: -8px;
}

.mood-round.win {
  animation: mood-win 650ms steps(3);
}

.mood-round.lose {
  animation: mood-lose 420ms steps(2);
}

.mood-result {
  border: 3px solid var(--pixel-line);
  font-weight: 900;
  margin: 0;
  padding: 0.65rem 0.8rem;
}

.mood-result.win {
  background: #dfffd9;
  color: #214d28;
}

.mood-result.lose {
  background: #ffe1ed;
  color: #7d1d42;
}

@keyframes mood-win {
  0%,
  100% {
    transform: translateY(0);
  }

  33% {
    transform: translateY(-6px);
  }

  66% {
    transform: translateY(3px);
  }
}

@keyframes mood-lose {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 1rem;
  color: white;
  left: 50%;
  padding: 0.8rem 1rem;
  position: fixed;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
  z-index: 10;
}

/* Vendredi Verdict inspired skin */
:root {
  --ink: #1d1814;
  --muted: #6b5c4a;
  --line: #d6c8aa;
  --surface: #f3ebdc;
  --panel: #fbf6ec;
  --teal: #2e7d4f;
  --teal-dark: #1d1814;
  --coral: #d63b4b;
  --yellow: #e8b21a;
  --blue: #1f4ecf;
  --mint: #fff4d6;
  --rose: #ffe5dc;
  --plum: #7e2c52;
  --stamp: #c8412c;
  --shadow: rgba(60, 40, 15, 0.18);
  --soft-shadow: 4px 4px 0 var(--ink), 0 10px 24px rgba(60, 40, 15, 0.16);
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

body {
  background:
    linear-gradient(115deg, rgba(214, 59, 75, 0.08), transparent 22rem),
    radial-gradient(circle at 84% 10%, rgba(232, 178, 26, 0.2), transparent 18rem),
    linear-gradient(135deg, #f3ebdc 0%, #eee3cf 100%);
  background-image: var(--paper-noise),
    linear-gradient(115deg, rgba(214, 59, 75, 0.08), transparent 22rem),
    radial-gradient(circle at 84% 10%, rgba(232, 178, 26, 0.2), transparent 18rem),
    linear-gradient(135deg, #f3ebdc 0%, #eee3cf 100%);
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
}

body::before {
  background-image:
    linear-gradient(rgba(29, 24, 20, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 24, 20, 0.055) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.sidebar,
.panel,
.item,
.game-card,
.leader-row,
.person-tile,
.mood-card,
.stat-card,
.field input,
.field select,
.field textarea,
.toggle-row,
.portrait-counter {
  border: 1.5px solid var(--ink);
}

.sidebar {
  background: rgba(251, 246, 236, 0.92);
  background-image: var(--paper-noise);
  border-right: 1.5px solid var(--ink);
  box-shadow: 6px 0 0 rgba(29, 24, 20, 0.08);
}

.brand-mark {
  background: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--coral);
}

.brand h1,
.topbar h2,
.hero-copy h3,
.panel h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.brand h1 {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
}

.eyebrow,
.badge,
.rank,
.score,
.stat-card span,
.stat-card small,
.portrait-counter,
.field span,
.week-card span,
.week-card small {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.05em;
}

.nav-button {
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  transition: transform 90ms ease, box-shadow 90ms ease, background 90ms ease;
}

.nav-button:hover,
.nav-button.active {
  background: var(--panel);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translate(-1px, -1px);
}

.nav-icon {
  background: var(--panel);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 rgba(29, 24, 20, 0.22);
  font-family: "DM Serif Display", Georgia, serif;
}

.season-pod {
  background: var(--ink);
  background-image: var(--paper-noise);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--coral);
}

.topbar h2 {
  font-size: clamp(2.1rem, 4.2vw, 4rem);
}

.ghost-button,
.primary-button,
.choice-button,
.small-button {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font-weight: 800;
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.primary-button {
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--coral);
  color: var(--panel);
}

.ghost-button,
.small-button,
.choice-button {
  background: var(--panel);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--ink);
}

.primary-button:active,
.ghost-button:active,
.small-button:active,
.choice-button:active,
.game-card:active,
.person-tile:active {
  box-shadow: none;
  transform: translate(3px, 3px);
}

.hero-band {
  background: var(--ink);
  background-image:
    var(--paper-noise),
    radial-gradient(circle at 22% 30%, rgba(232, 178, 26, 0.18), transparent 18rem),
    radial-gradient(circle at 85% 18%, rgba(214, 59, 75, 0.26), transparent 18rem);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--coral), 0 16px 36px var(--shadow);
  min-height: 15rem;
}

.hero-band::before {
  background: none;
}

.hero-band::after {
  background:
    radial-gradient(circle, rgba(251, 246, 236, 0.25) 0 0.12rem, transparent 0.14rem),
    radial-gradient(circle, rgba(232, 178, 26, 0.45) 0 0.14rem, transparent 0.16rem);
  background-size: 4rem 4rem, 5.4rem 5.4rem;
}

.hero-copy h3 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.hero-kpis span,
.week-card {
  background: rgba(251, 246, 236, 0.1);
  border: 1.5px solid rgba(251, 246, 236, 0.72);
}

.hero-kpis span {
  border-radius: 999px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
}

.panel {
  background: var(--panel);
  background-image: var(--paper-noise);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.panel-head {
  border-bottom: 1.5px dashed var(--line);
  padding-bottom: 0.85rem;
}

.quick-stats {
  align-items: stretch;
}

.stat-card {
  background: var(--mint);
  background-image: var(--paper-noise);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}

.stat-card.accent {
  background: #eaf0ff;
  border-color: var(--ink);
}

.stat-card.warm {
  background: #fff4d6;
  border-color: var(--ink);
}

.stat-card strong {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

.leader-row,
.item,
.game-card,
.verdict-box,
.bingo-cell,
.person-tile,
.mood-card {
  background: var(--panel);
  background-image: var(--paper-noise);
  border-radius: 12px;
}

.leader-row {
  box-shadow: 2px 2px 0 rgba(29, 24, 20, 0.22);
}

.rank {
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
}

.score {
  color: var(--ink);
}

.verdict-box {
  border: 2.5px double var(--stamp);
  color: var(--ink);
  transform: rotate(-0.35deg);
}

.verdict-box strong {
  color: var(--stamp);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
}

.game-card {
  box-shadow: 3px 3px 0 var(--ink);
}

.game-card.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--coral), 3px 3px 0 var(--ink);
}

.badge {
  background: var(--mint);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.game-card .badge {
  background: #eaf0ff;
}

.field input,
.field select,
.field textarea {
  background: #fffaf0;
  border-radius: 10px;
}

.choice-button.selected,
.choice-button:hover {
  background: var(--yellow);
  border-color: var(--ink);
}

.bingo-cell {
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  box-shadow: 1.5px 1.5px 0 rgba(29, 24, 20, 0.35);
}

.bingo-cell.checked {
  background: var(--ink);
  color: var(--panel);
}

.portrait-counter {
  background: var(--yellow);
  color: var(--ink);
}

.person-tile {
  box-shadow: 2px 2px 0 rgba(29, 24, 20, 0.22);
}

.person-photo,
.person-initials {
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.person-initials {
  background: radial-gradient(120% 120% at 30% 25%, #3f9b79, #1f4ecf);
  color: var(--panel);
}

.person-name {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 800;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    height: auto;
    position: static;
  }

  .season-pod {
    margin-top: 0.8rem;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    flex: 0 0 auto;
    width: auto;
  }

  .hero-band,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main,
  .sidebar {
    padding: 0.85rem;
  }

  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .ghost-button,
  .primary-button,
  .auth-badge {
    width: 100%;
  }

  .auth-choices {
    grid-template-columns: 1fr;
  }

  .panel-head {
    align-items: start;
    flex-direction: column;
  }

  .game-grid,
  .mood-grid {
    grid-template-columns: 1fr;
  }

  .nav-button {
    align-items: center;
    flex-direction: column;
    font-size: 0.72rem;
    gap: 0.35rem;
    min-height: 4rem;
    min-width: 4.65rem;
    padding: 0.4rem 0.45rem;
  }

  .nav-icon {
    flex-basis: auto;
  }

  .nav-label {
    display: none;
  }

  .nav-label-short {
    display: inline;
    font-weight: 800;
    line-height: 1;
  }

  .season-pod {
    display: none;
  }

  .hero-band {
    min-height: 0;
  }

  .hero-copy h3 {
    font-size: 2rem;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card {
    min-height: 8.75rem;
    padding: 0.75rem;
  }

  .game-card p {
    font-size: 0.86rem;
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portrait-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .portrait-history-row {
    align-items: start;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .portrait-answer {
    grid-column: 2;
    justify-self: start;
  }

  .person-tile {
    min-height: 7.1rem;
    padding: 0.45rem;
  }

  .person-photo,
  .person-initials {
    height: 3.45rem;
    width: 3.45rem;
  }

  .person-name {
    font-size: 0.7rem;
  }

  .bingo-board {
    gap: 0.28rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: none;
  }

  .bingo-controls {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .bingo-progress {
    grid-template-columns: 1fr;
  }

  .bingo-cell {
    aspect-ratio: 1.24;
    font-size: clamp(0.5rem, 2.65vw, 0.64rem);
    min-height: 0;
    padding: 0.18rem;
  }

  .bingo-cell small,
  .bingo-cell em {
    font-size: 0.44rem;
  }

  .hero-copy h3 {
    font-size: 2.25rem;
  }
}

/* Pixel Aquarium skin */
:root {
  --pixel-bg: #162035;
  --pixel-bg-2: #23385d;
  --pixel-paper: #f6eedc;
  --pixel-ink: #191721;
  --pixel-line: #191721;
  --pixel-pink: #ff4f7b;
  --pixel-cyan: #36e0d4;
  --pixel-yellow: #ffd24a;
  --pixel-green: #55d67b;
  --pixel-purple: #8b6cff;
  --pixel-shadow: #191721;
  --pixel-size: 8px;
}

body {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 10%, rgba(54, 224, 212, 0.26), transparent 18rem),
    radial-gradient(circle at 86% 12%, rgba(255, 79, 123, 0.22), transparent 18rem),
    linear-gradient(180deg, var(--pixel-bg), #0f1627 76%);
  background-size: var(--pixel-size) var(--pixel-size), var(--pixel-size) var(--pixel-size), auto, auto, auto;
  color: var(--pixel-ink);
  font-family: "Pixelify Sans", "JetBrains Mono", ui-monospace, monospace;
  image-rendering: pixelated;
}

body::before {
  animation: pixel-drift 18s steps(18) infinite;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
    radial-gradient(circle, rgba(255, 210, 74, 0.52) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(54, 224, 212, 0.42) 0 2px, transparent 3px);
  background-size: auto, 96px 96px, 128px 128px;
  opacity: 0.5;
}

@keyframes pixel-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-72px); }
}

@keyframes pixel-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pixel-pop {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, -2px); }
}

.brand h1,
.topbar h2,
.hero-copy h3,
.panel h3,
.auth-card h1 {
  font-family: "Pixelify Sans", "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
}

.eyebrow,
.badge,
.rank,
.score,
.game-status,
.stat-card span,
.stat-card small,
.field span,
.portrait-counter,
.week-card span,
.week-card small,
.auth-choice small,
.auth-badge span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.sidebar,
.panel,
.item,
.game-card,
.leader-row,
.stat-card,
.verdict-box,
.bingo-cell,
.person-tile,
.mood-card,
.field input,
.field select,
.field textarea,
.toggle-row,
.portrait-counter,
.auth-card,
.auth-note,
.auth-error {
  border: 3px solid var(--pixel-line);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--pixel-shadow);
}

.sidebar,
.panel,
.item,
.game-card,
.leader-row,
.stat-card,
.verdict-box,
.bingo-cell,
.person-tile,
.mood-card,
.auth-card {
  background:
    linear-gradient(90deg, rgba(25, 23, 33, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(25, 23, 33, 0.04) 1px, transparent 1px),
    var(--pixel-paper);
  background-size: 8px 8px, 8px 8px, auto;
}

.sidebar {
  border-width: 0 3px 0 0;
  box-shadow: 8px 0 0 rgba(0, 0, 0, 0.22);
}

.brand-mark,
.nav-icon,
.badge,
.rank,
.person-photo,
.person-initials {
  border: 3px solid var(--pixel-line);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--pixel-shadow);
}

.brand-mark {
  animation: pixel-bob 1.8s steps(2) infinite;
  background: var(--pixel-cyan);
  color: var(--pixel-ink);
}

.brand-mark svg,
.nav-icon {
  image-rendering: pixelated;
}

.nav-button,
.ghost-button,
.primary-button,
.choice-button,
.small-button,
.auth-badge {
  border: 3px solid var(--pixel-line);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--pixel-shadow);
  font-family: "Pixelify Sans", "JetBrains Mono", ui-monospace, monospace;
}

.nav-button:hover,
.nav-button.active,
.choice-button.selected,
.choice-button:hover {
  background: var(--pixel-yellow);
  border-color: var(--pixel-line);
  transform: translate(-2px, -2px);
}

.nav-button.locked {
  filter: grayscale(1);
  opacity: 0.42;
}

.primary-button {
  background: var(--pixel-pink);
  color: #fff7f0;
}

.ghost-button,
.small-button,
.choice-button,
.auth-badge {
  background: #fff7e9;
  color: var(--pixel-ink);
}

.hero-band {
  animation: pixel-pop 2.4s steps(2) infinite;
  background:
    radial-gradient(circle, rgba(255, 210, 74, 0.65) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(54, 224, 212, 0.55) 0 3px, transparent 4px),
    linear-gradient(135deg, #1f2440, #3e1f3e 58%, #162035);
  background-size: 72px 72px, 104px 104px, auto;
  border: 4px solid var(--pixel-line);
  border-radius: 0;
  box-shadow: 8px 8px 0 var(--pixel-pink);
}

.hero-band::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px);
  background-size: 16px 16px;
  content: "";
  inset: 0;
  opacity: 0.4;
  position: absolute;
}

.hero-band::after {
  animation: pixel-drift 9s steps(9) infinite;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.36) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 210, 74, 0.65) 0 2px, transparent 3px);
  background-size: 48px 48px, 72px 72px;
}

.hero-copy h3 {
  color: #fff7e9;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.84;
  text-shadow: 4px 4px 0 var(--pixel-shadow);
}

.hero-copy p:last-child,
.hero-band .eyebrow {
  color: #fff7e9;
  text-shadow: 2px 2px 0 var(--pixel-shadow);
}

.hero-kpis span,
.week-card {
  background: rgba(246, 238, 220, 0.14);
  border: 3px solid #fff7e9;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--pixel-shadow);
}

.hero-kpis strong {
  color: var(--pixel-yellow);
}

.panel-head {
  border-bottom: 3px dashed var(--pixel-line);
}

.game-card,
.person-tile,
.bingo-cell {
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}

.game-card:hover,
.person-tile:hover,
.bingo-cell:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--pixel-shadow);
}

.game-card.active,
.game-card.selectable {
  box-shadow: 6px 6px 0 var(--pixel-pink);
}

.game-card.active {
  outline: 4px solid var(--pixel-yellow);
  outline-offset: -10px;
}

.game-card.locked {
  opacity: 0.58;
}

.stat-card.accent {
  background:
    linear-gradient(90deg, rgba(25, 23, 33, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(25, 23, 33, 0.04) 1px, transparent 1px),
    #dbe7ff;
}

.stat-card.warm,
.badge,
.rank,
.portrait-counter {
  background: var(--pixel-yellow);
  color: var(--pixel-ink);
}

.verdict-box {
  border: 4px double var(--pixel-pink);
  color: var(--pixel-ink);
}

.verdict-box strong {
  color: var(--pixel-pink);
}

.leader-row:first-child .rank {
  animation: pixel-bob 1.4s steps(2) infinite;
}

.bingo-cell {
  background: #fff7e9;
}

.bingo-cell.checked {
  background: var(--pixel-ink);
  color: #fff7e9;
  outline: 3px solid var(--pixel-yellow);
  outline-offset: -8px;
}

.person-photo,
.person-initials {
  border-radius: 0;
  image-rendering: auto;
}

.person-initials {
  background: var(--pixel-purple);
}

.toast {
  border: 3px solid #fff7e9;
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--pixel-pink);
  font-family: "Pixelify Sans", "JetBrains Mono", ui-monospace, monospace;
}

.auth-screen {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--pixel-bg), #0f1627);
  background-size: 8px 8px, 8px 8px, auto;
}

.auth-card {
  box-shadow: 8px 8px 0 var(--pixel-pink);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 620px) {
  .hero-copy h3 {
    font-size: 2.55rem;
  }

  .sidebar {
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22);
  }

  .nav-button {
    min-width: 4.4rem;
  }

  .panel,
  .item,
  .game-card,
  .auth-card {
    box-shadow: 4px 4px 0 var(--pixel-shadow);
  }
}

/* Final readability tuning: pixel frame, readable text */
body,
button,
input,
select,
textarea {
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.brand h1,
.topbar h2,
.hero-copy h3,
.panel h3,
.auth-card h1 {
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

.topbar h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.hero-copy h3 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--pixel-shadow);
}

.nav-button,
.ghost-button,
.primary-button,
.choice-button,
.small-button,
.auth-badge,
.game-card p,
.empty-state,
.meta,
.verdict-box,
.leader-row,
.item,
.mood-card,
.person-name,
.bingo-cell,
.field input,
.field select,
.field textarea,
.toast {
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.nav-button.locked {
  filter: none;
  opacity: 0.78;
}

.nav-button.locked .nav-label,
.nav-button.locked .nav-label-short {
  color: #3f352d;
}

.nav-label,
.nav-label-short {
  font-weight: 850;
}

.game-card p,
.empty-state,
.meta,
.stat-card small {
  color: #3f352d;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

.game-card strong,
.leader-row strong,
.item strong,
.verdict-box strong {
  font-weight: 900;
}

.eyebrow,
.badge,
.rank,
.score,
.game-status,
.portrait-counter,
.hero-kpis span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.02em;
}

.week-card,
.stat-card,
.stat-card span,
.stat-card small {
  font-family: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

.week-card small,
.stat-card small {
  font-size: 0.92rem;
  font-weight: 800;
}

.week-card strong,
.stat-card span {
  font-weight: 900;
}

.game-card.locked {
  filter: none;
  opacity: 0.86;
}

.game-card.locked strong,
.game-card.locked p,
.game-card.locked .game-status {
  color: #51463d;
}

.game-card.locked .game-icon {
  opacity: 0.74;
}

.toast {
  font-size: 1rem;
  font-weight: 850;
}

@media (max-width: 620px) {
  .hero-copy h3 {
    font-size: 2.25rem;
    line-height: 1.02;
  }

  .topbar h2 {
    font-size: 2.15rem;
  }

  .nav-button.locked {
    opacity: 0.84;
  }

  .nav-label-short {
    font-size: 0.72rem;
  }

  .game-card p,
  .empty-state,
  .meta {
    font-size: 0.96rem;
  }
}
