/* Komplot quiz theme (no show branding or official assets) */

:root {
  --green-deep: #042818;
  --green-mid: #0a3d2e;
  --green-glow: #15803d;
  --green-bright: #22c55e;
  --green-mint: #4ade80;
  --bg-deep: #051910;
  --bg-mid: #082f22;
  --card: #0d3328;
  --card-elevated: #114536;
  --border: #1f6b52;
  --border-glow: rgba(34, 197, 94, 0.45);
  --text: #e8f2ec;
  --muted: #86cbb0;
  --gold: #d4a853;
  --gold-dim: #9a7a3d;
  --forest: #166534;
  --accent: #4ade80;
  --accent-strong: #22c55e;
  --accent-soft: rgba(74, 222, 128, 0.18);
  --error: #ff8b7a;
  --ok: #5ee4a9;
  --bad: #f080a0;
  --radius: 14px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.55;
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(34, 197, 94, 0.35), transparent 52%),
    radial-gradient(ellipse 70% 55% at 0% 40%, rgba(21, 128, 61, 0.28), transparent 50%),
    radial-gradient(ellipse 65% 50% at 100% 60%, rgba(74, 222, 128, 0.12), transparent 48%),
    radial-gradient(ellipse 80% 45% at 100% 10%, rgba(212, 168, 83, 0.07), transparent 42%),
    linear-gradient(168deg, var(--green-deep) 0%, var(--bg-mid) 38%, var(--bg-deep) 72%, #04150f 100%);
  position: relative;
}

/* Green-on-black PNG: black → transparent over body gradients (screen blend) */
.fingerprint-photo-layer {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("/static/fingerprint-overlay.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: min(128vw, 1040px) auto;
  mix-blend-mode: screen;
  opacity: 0.5;
}

@media (max-width: 540px) {
  .fingerprint-photo-layer {
    background-size: min(150vw, 720px) auto;
    opacity: 0.42;
  }
}

.theme-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #e8c56e;
  text-decoration: underline;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.35rem;
  background: linear-gradient(180deg, rgba(13, 51, 40, 0.97) 0%, rgba(5, 25, 18, 0.94) 100%);
  border-bottom: 2px solid rgba(34, 197, 94, 0.45);
  box-shadow:
    0 1px 0 rgba(74, 222, 128, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.brand-block { flex: 1; min-width: 200px; }

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
}

.brand:hover { text-decoration: none; color: var(--text); }

.brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.22), rgba(13, 51, 40, 0.9));
  border: 1px solid rgba(74, 222, 128, 0.35);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.15);
}

.brand-mark img {
  width: 30px;
  height: auto;
  display: block;
  opacity: 0.95;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.pill {
  background: var(--accent-soft);
  border: 1px solid rgba(62, 207, 154, 0.35);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--accent);
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.75rem 1rem 2rem;
}

/* Admin, site front, hoofdbeheer — player quiz stays on .wrap */
.wrap-wide {
  max-width: 1080px;
}

.hold {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.fingerprint-photo-layer-dim {
  opacity: 0.28;
}

.not-found {
  text-align: left;
  animation: not-found-enter 0.7s ease-out both;
}

.not-found-kicker {
  animation: not-found-fade 0.8s ease-out 0.05s both;
}

.not-found-code {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: rgba(74, 222, 128, 0.22);
  animation: not-found-fade 0.9s ease-out 0.12s both;
}

.not-found-title {
  max-width: 18ch;
  animation: not-found-fade 0.9s ease-out 0.22s both;
}

.not-found-lead {
  max-width: 34ch;
  animation: not-found-fade 0.9s ease-out 0.32s both;
}

.not-found-actions {
  margin: 1.5rem 0 0;
  animation: not-found-fade 0.9s ease-out 0.42s both;
}

@keyframes not-found-enter {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes not-found-fade {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero */
.hero {
  margin-bottom: 1.75rem;
  padding-bottom: 0.25rem;
}

.hero-compact { margin-bottom: 1.25rem; }

.hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(74, 222, 128, 0.85);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-lead strong { color: var(--text); }

.hero-aside {
  margin: 0.85rem 0 0;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.scene-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.scene-lead strong { color: var(--accent); }

h1:not(.hero-title) {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-top: 0;
}

h2, .card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 0;
  color: var(--text);
}

.lead { font-size: 1.05rem; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.empty-hint { margin: 1rem 0; }
.backstage { margin-top: 1.75rem; }

.card {
  background: linear-gradient(145deg, var(--card) 0%, var(--card-elevated) 100%);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.card-spotlight {
  border-color: rgba(74, 222, 128, 0.45);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.28),
    0 0 48px rgba(34, 197, 94, 0.06);
}

.card.narrow { max-width: 400px; }

.error { color: var(--error); }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.join-row { margin-top: 1rem; }
.upload-row { margin-top: 0.75rem; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 18, 14, 0.6);
  color: var(--text);
  min-width: 200px;
  font-family: inherit;
  font-size: 1rem;
}

input[type="email"] {
  width: 100%;
  max-width: 100%;
}

.card input[type="text"],
.card input[type="email"],
.card input[type="password"] {
  width: 100%;
  min-width: 0;
  margin-bottom: 0.75rem;
}

input::placeholder { color: rgba(143, 181, 168, 0.55); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.password-field {
  position: relative;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  width: 100%;
  padding-right: 3rem;
  min-width: 0;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  margin-left: 0;
  border-radius: 999px;
  color: var(--muted);
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle:focus-visible {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.password-toggle-icon-hide {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon-show {
  display: none;
}

.password-toggle.is-visible .password-toggle-icon-hide {
  display: inline-flex;
}

input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.btn-primary,
button:not(.btn-secondary):not(.game-card):not(.game-modal-close):not(.pending-section-toggle):not(.btn-joker-icon):not(.btn-edit-icon):not(.btn-trash-icon):not(.btn-save-icon):not(.btn-cancel-icon):not(.btn-danger-text) {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 83, 0.45);
  background: linear-gradient(180deg, #c99e47 0%, var(--gold-dim) 100%);
  color: #1a1208;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.98rem;
  box-shadow: 0 2px 12px rgba(212, 168, 83, 0.2);
}

.btn-primary:hover,
button:not(.btn-secondary):not(.game-card):not(.game-modal-close):not(.pending-section-toggle):not(.btn-joker-icon):not(.btn-edit-icon):not(.btn-trash-icon):not(.btn-save-icon):not(.btn-cancel-icon):not(.btn-danger-text):hover {
  filter: brightness(1.08);
  text-decoration: none;
}

a.btn-primary {
  color: #1a1208;
}

a.btn-primary:hover {
  color: #1a1208;
  filter: brightness(1.08);
  text-decoration: none;
}

.full-width { width: 100%; margin-top: 0.75rem; text-align: center; }

.btn-secondary {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  margin-left: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-secondary:hover {
  border-color: var(--muted);
  color: var(--text);
  text-decoration: none;
}

/* WhatsApp share (admin deelnemers-tabel): icon only */
a.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.55);
  background: linear-gradient(180deg, #2fe576 0%, #1ebe57 100%);
  color: #082010;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.25);
  line-height: 0;
}

a.btn-whatsapp svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

a.btn-whatsapp:hover {
  filter: brightness(1.06);
  text-decoration: none;
  color: #061808;
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-players .cell-share {
  min-width: 0;
  vertical-align: middle;
}

.table-players .cell-phone {
  min-width: 0;
}

.table-players td {
  vertical-align: middle;
}

.table-players .cell-joker,
.table-players .cell-share,
.table-players .cell-actions {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

/* Keep <td> as table-cell so row borders stay aligned; flex lives inside. */
.table-players .cell-actions-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.table-players .cell-actions form {
  margin: 0;
  display: inline-flex;
}

.table-players .player-inline-input {
  width: 100%;
  min-width: 7rem;
  max-width: 14rem;
  margin: 0;
}

.table-players tr.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

.table-players tr.is-editing .cell-joker,
.table-players tr.is-editing .cell-share {
  opacity: 0.45;
  pointer-events: none;
}

.table-players .mono-phone {
  white-space: nowrap;
  word-break: normal;
  font-size: 0.82em;
}

@media (max-width: 640px) {
  .table-players th,
  .table-players td {
    padding: 0.45rem 0.4rem;
    font-size: 0.86rem;
  }

  .table-players .cell-name {
    max-width: 28vw;
    word-break: break-word;
  }

  .table-players .cell-code .mono-key {
    font-size: 0.78rem;
  }
}

.quiz-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.quiz-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.55rem;
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quiz-link:hover {
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 4px 28px rgba(34, 197, 94, 0.12);
  text-decoration: none;
  color: var(--text);
}

.quiz-link-label { flex: 1; }

.quiz-link-arrow {
  color: var(--gold);
  font-size: 1.15rem;
  opacity: 0.85;
}

.q-block {
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
  background: rgba(8, 40, 30, 0.65);
}

.q-title {
  font-weight: 650;
  padding: 0;
  font-size: 1rem;
}

.opts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.opt {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
  padding: 0.35rem 0;
}

.opt span { color: var(--text); }

.opt input {
  margin-top: 0.35rem;
  accent-color: var(--accent-strong);
}

.actions { margin-top: 1.75rem; }

.score-panel {
  background: linear-gradient(145deg, var(--card) 0%, rgba(17, 69, 54, 0.95) 100%);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  margin: 1.25rem 0;
  text-align: center;
}

.score-label {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-dim);
}

.big-score {
  font-family: var(--font-display);
  font-size: 2.75rem;
  margin: 0 0 0.75rem;
  line-height: 1;
}

.big-score strong {
  color: var(--gold);
  font-weight: 700;
}

.score-slash {
  opacity: 0.45;
  font-weight: 400;
  margin: 0 0.15rem;
}

.score-footnote {
  margin: 0;
  font-size: 0.95rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

.table.tight td { font-size: 0.84rem; }

.detail-row td {
  background: rgba(7, 18, 14, 0.45);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.4rem;
}

.detail-grid .cell {
  font-size: 0.74rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.detail-grid .cell.ok { border-color: var(--ok); color: var(--ok); }
.detail-grid .cell.bad { border-color: var(--bad); color: var(--bad); }

.detail-grid .num { opacity: 0.65; margin-right: 0.25rem; }

.key-list { padding-left: 1.25rem; margin: 0.75rem 0 0; }
.key-list li { margin-bottom: 1.1rem; }

.q-text {
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.correct {
  color: var(--ok);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.opts-mini {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.mono-key {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--accent);
}

.copy-field {
  display: block;
  width: 100%;
  max-width: 36rem;
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(7, 18, 14, 0.6);
  color: var(--muted);
  font-family: inherit;
}

.cell-link {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.cell-link .copy-field {
  margin: 0;
}

/* Speel-link + kopieerknop (beheercentrum / dossier) */
.play-link-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.play-link-stack .play-link-input {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  font-size: 0.78rem;
  word-break: break-all;
}

.play-link-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  width: 100%;
}

.play-link-actions .btn-copy-link,
.play-link-actions .btn-wa-share-test {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.play-link-actions .btn-wa-share-test {
  text-decoration: none;
}

@media (min-width: 520px) {
  .play-link-stack {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .play-link-stack .play-link-input {
    flex: 1 1 12rem;
    min-width: 0;
  }

  .play-link-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    flex: 0 1 auto;
  }

  .play-link-actions .btn-copy-link,
  .play-link-actions .btn-wa-share-test {
    width: auto;
    flex: 0 0 auto;
  }
}

.ok-note {
  margin: 0 0 1rem 0;
  color: var(--ok);
}

.quiz-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(74, 222, 128, 0.45);
  background: rgba(12, 32, 24, 0.95);
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.quiz-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.quiz-toast-error {
  border-color: rgba(255, 120, 120, 0.45);
  color: #ff9aa8;
}

body.quiz-editor-busy {
  cursor: progress;
}

body.quiz-editor-busy .quiz-editor button,
body.quiz-editor-busy .quiz-editor input {
  pointer-events: none;
  opacity: 0.85;
}

.opts-admin {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

/* Quiz editor rows: input + action stay on one line */
.quiz-editor input[type="text"].edit-field {
  min-width: 0;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.quiz-editor .opt-admin-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0;
  cursor: pointer;
  color: var(--text);
  white-space: nowrap;
}

.quiz-editor .question-text-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin-bottom: 0.45rem;
}

.quiz-editor .question-delete-form,
.quiz-editor .option-delete-form {
  display: contents;
}

.quiz-editor .opt-admin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.6rem;
}

.quiz-editor .opt-admin-row:not(:has(.option-delete-form)) {
  grid-template-columns: auto minmax(0, 1fr);
}

.quiz-editor .opt-admin-label input {
  margin: 0;
  accent-color: var(--accent-strong);
}

.opt-admin-num {
  font-size: 0.85rem;
  color: var(--muted);
}

.option-delete-form {
  margin: 0;
}

/* Text danger buttons (e.g. "Testronde verwijderen") — not square icon buttons. */
.btn-danger-text,
button.btn-danger-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #ff9aa8;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.btn-danger-text:hover,
button.btn-danger-text:hover {
  filter: none;
  border-color: var(--bad);
  color: var(--bad);
}

/* Square icon-only action buttons */
button.btn-trash-icon,
button.btn-edit-icon,
button.btn-save-icon,
button.btn-cancel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 120, 120, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #ff9aa8;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 0;
  cursor: pointer;
  box-shadow: none;
}

button.btn-edit-icon,
button.btn-save-icon {
  border-color: rgba(34, 197, 94, 0.35);
  color: #7ddea3;
}

button.btn-cancel-icon {
  border-color: rgba(180, 200, 190, 0.35);
  color: var(--muted);
}

button.btn-trash-icon:hover {
  filter: none;
  border-color: var(--bad);
  color: var(--bad);
}

button.btn-edit-icon:hover,
button.btn-save-icon:hover {
  filter: none;
  border-color: var(--good, #22c55e);
  color: var(--good, #22c55e);
}

button.btn-cancel-icon:hover {
  filter: none;
  border-color: var(--text);
  color: var(--text);
}

.icon-trash,
.icon-edit {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.option-add-form {
  margin: 0.5rem 0 0;
}

.option-add-form .btn-secondary {
  margin-left: 0;
}

.opt-admin {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  cursor: pointer;
  color: var(--text);
}

.opt-admin input {
  margin-top: 0.25rem;
  accent-color: var(--accent-strong);
}

.detail-grid .cell.neutral {
  border-color: var(--muted);
  color: var(--muted);
}

.matrix-table th,
.matrix-table td {
  white-space: nowrap;
  font-size: 0.85rem;
}

.edit-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.edit-field {
  width: 100%;
  max-width: 42rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(7, 18, 14, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.edit-option {
  max-width: 30rem;
}

.host-guide {
  white-space: pre-wrap;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42rem;
}

.catalog-refresh {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.catalog-refresh p {
  margin: 0.4rem 0 0;
}

html.game-modal-open {
  overflow: hidden;
}

.game-modal[hidden] {
  display: none !important;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.game-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 8, 0.72);
  backdrop-filter: blur(2px);
}

.game-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 40rem);
  max-height: min(88vh, 52rem);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  background:
    linear-gradient(165deg, rgba(17, 69, 54, 0.96) 0%, rgba(8, 32, 24, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  outline: none;
  animation: game-modal-enter 0.22s ease-out;
}

@keyframes game-modal-enter {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.game-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.game-modal-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.game-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--text);
}

.game-modal-close {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.game-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  filter: none;
}

.game-modal-body {
  overflow: auto;
  padding: 1rem 1.1rem 1.25rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  min-height: 10rem;
  margin: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(134, 203, 176, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(13, 51, 40, 0.95) 0%, rgba(5, 25, 16, 0.98) 100%);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.game-card:hover {
  border-color: var(--accent);
  background: linear-gradient(165deg, rgba(17, 69, 54, 0.98) 0%, rgba(8, 40, 28, 0.99) 100%);
  transform: translateY(-1px);
  filter: none;
}

.game-card-name {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.game-card-blurb {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.45;
  flex: 1 1 auto;
}

.game-card-meta {
  display: block;
  margin: 0.15rem 0 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.game-detail-blurb {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--text);
}

.game-detail-actions {
  margin: 1.25rem 0 0;
}

.game-detail .host-guide {
  margin-top: 0.85rem;
  max-width: none;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-modal {
    padding: 0.5rem;
  }

  .game-modal-dialog {
    max-height: 94vh;
  }
}

.quiz-create-form {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.player-add-form {
  margin: 0.75rem 0 1rem;
}

.quiz-create-row,
.quiz-rename-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin-top: 0.35rem;
}

.quiz-create-input,
.quiz-rename-input {
  flex: 1 1 14rem;
  max-width: 28rem;
}

.quiz-rename-form {
  margin-bottom: 1rem;
}

.quiz-delete-form {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.question-edit-item {
  list-style: decimal;
}

.question-text-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem 0.6rem;
  margin-bottom: 0.45rem;
}

.question-edit-num {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.question-text-input {
  min-width: 0;
  max-width: none;
}

.question-delete-form {
  margin: 0;
}

.btn-with-trash {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.quiz-editor-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.quiz-editor-actions .question-add-form {
  display: contents;
  margin: 0;
}

.quiz-editor-actions .btn-secondary {
  margin-left: 0;
}

.quiz-editor-actions > .btn-primary {
  margin: 0;
  width: auto;
}

.sandbox-banner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1080px;
  padding: 0.7rem 1.25rem;
  background: rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold);
  font-size: 0.92rem;
}

.sandbox-banner p {
  margin: 0;
}

.sandbox-banner-actions {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
}

.btn-small {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
}

.cell-joker {
  white-space: nowrap;
}

.joker-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
  padding: 0.15rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 83, 0.4);
  background: rgba(5, 25, 16, 0.55);
}

.joker-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0 0.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--gold);
}

.joker-controls.is-busy {
  opacity: 0.65;
  pointer-events: none;
}

button.btn-joker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
}

button.btn-joker-icon:hover {
  filter: none;
}

button.btn-joker-icon:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

button.btn-joker-minus {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

button.btn-joker-minus .joker-minus-mark {
  display: block;
  line-height: 1;
  font-size: 1.15rem;
}

button.btn-joker-minus:not(:disabled):hover {
  filter: none;
  border-color: var(--accent);
  color: var(--accent-strong);
  background: rgba(74, 222, 128, 0.1);
}

button.btn-joker-plus {
  border-color: rgba(212, 168, 83, 0.65);
  background: linear-gradient(180deg, #e8c56a 0%, #b8892e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

button.btn-joker-plus:hover {
  filter: brightness(1.06);
}

button.btn-joker-plus img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  filter: invert(1);
}

button.btn-joker-plus:not(:disabled):hover img {
  transform: scale(1.06);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0 0 0.7rem;
  border-bottom: 1px solid rgba(31, 107, 82, 0.45);
}

.admin-tab {
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--text);
  border-bottom-color: rgba(34, 197, 94, 0.35);
}

.admin-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.admin-status-line {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-status-line strong {
  color: var(--text);
  font-weight: 600;
}

.admin-quick-links {
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.admin-quick-links .btn-inline {
  margin: 0;
}

.btn-inline {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.exclude-form {
  margin: 0;
}

.exclude-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

.dossier-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.dossier-exclude {
  margin: 0;
  flex-shrink: 0;
}

.ok-text-inline {
  color: var(--ok);
  font-weight: 600;
}

.pending-name {
  color: #ffb8c4;
  font-weight: 600;
}

.quiz-timer-bar {
  position: sticky;
  top: 0.5rem;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1rem;
  pointer-events: none;
}

.quiz-timer {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 7.5rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: linear-gradient(165deg, rgba(13, 51, 40, 0.96) 0%, rgba(5, 25, 16, 0.98) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(8px);
}

.quiz-timer-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  flex: 0 0 auto;
}

.quiz-timer-value {
  flex: 1 1 auto;
  min-width: 4.25ch;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
  text-align: right;
  letter-spacing: 0.02em;
}

.quiz-take-form {
  clear: both;
  width: 100%;
}

.pending-badge {
  color: var(--bad);
  font-size: 0.85rem;
  font-weight: 600;
}

.cell-actions {
  white-space: nowrap;
  font-size: 0.9rem;
}

.pending-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pending-section-title {
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pending-toggle-icon::before {
  content: "▼";
  display: inline-block;
  font-size: 0.85rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.pending-section.is-collapsed .pending-toggle-icon::before {
  transform: rotate(-90deg);
}

.pending-section.is-collapsed .pending-section-body {
  display: none;
}

.pending-section-body {
  margin-top: 0.75rem;
}

.pending-block {
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.pending-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pending-test-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.pending-stats {
  margin: 0 0 0.5rem;
}

.ok-text {
  color: var(--ok);
  font-weight: 600;
}

.pending-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pending-names li {
  margin: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(221, 63, 86, 0.45);
  background: rgba(221, 63, 86, 0.12);
  color: #ffb8c4;
  font-size: 0.88rem;
  font-weight: 600;
}

.qr-card .qr-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.qr-image {
  display: block;
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
}

.qr-meta {
  flex: 1 1 240px;
  max-width: 420px;
}

.auth-google-row {
  margin: 0 0 0.75rem;
}

.auth-divider {
  margin: 0 0 1rem;
}

.host-pick-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.host-pick-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(13, 51, 40, 0.55);
  color: var(--text);
  text-decoration: none;
}

.host-pick-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}

.check-inline input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  min-width: 0;
  margin: 0;
  accent-color: var(--accent-strong);
}

.host-owner-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.5rem 0 0.75rem;
}

.host-owner-form .check-inline {
  margin: 0;
}

.host-owner-form input[type="email"] {
  flex: 1 1 14rem;
  margin: 0;
}

.host-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.host-row {
  display: grid;
  gap: 0.55rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
}

.host-row-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.host-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: end;
  margin: 0.35rem 0 0.85rem;
}

.host-dates label {
  margin-bottom: 0;
}

.host-dates .btn-secondary {
  margin-left: 0;
}

.date-field {
  position: relative;
  min-width: 11.5rem;
}

button.date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-width: 11.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 18, 14, 0.6);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
  box-shadow: none;
  text-align: left;
}

button.date-trigger.is-empty {
  color: rgba(143, 181, 168, 0.72);
}

button.date-trigger:hover,
button.date-trigger:focus-visible {
  filter: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.date-trigger-icon {
  width: 1.05rem;
  height: 1.05rem;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.date-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.4rem);
  left: 0;
  width: 17.5rem;
  padding: 0.75rem 0.75rem 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: linear-gradient(165deg, #143f32 0%, #0b261e 100%);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(34, 197, 94, 0.12);
}

.date-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.date-title {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: capitalize;
}

button.date-nav,
button.date-day,
button.date-clear {
  background: transparent;
  color: var(--text);
  border: 0;
  box-shadow: none;
  font-weight: 600;
  padding: 0;
}

button.date-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
}

button.date-nav:hover,
button.date-nav:focus-visible {
  filter: none;
  background: rgba(74, 222, 128, 0.12);
  color: var(--text);
}

.date-weekdays,
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.12rem;
}

.date-weekdays span {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.2rem;
}

button.date-day {
  height: 2rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

button.date-day:hover:not(:disabled),
button.date-day:focus-visible {
  filter: none;
  background: rgba(74, 222, 128, 0.16);
}

button.date-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.85);
}

button.date-day.is-selected,
button.date-day.is-selected:hover {
  background: linear-gradient(180deg, #c99e47 0%, var(--gold-dim) 100%);
  color: #1a1208;
  filter: none;
  box-shadow: none;
}

button.date-day:disabled {
  visibility: hidden;
}

button.date-clear {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.4rem 0.3rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

button.date-clear:hover,
button.date-clear:focus-visible {
  filter: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.front-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.front-actions .btn-secondary {
  margin-left: 0;
}

.front-block {
  margin-bottom: 0.25rem;
}

.front-sub {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.scope-grid {
  display: grid;
  gap: 1rem;
  margin: 0.35rem 0 0.85rem;
}

@media (min-width: 640px) {
  .scope-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.scope-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}

.scope-yes .front-sub {
  color: rgba(125, 222, 163, 0.95);
}

.scope-no .front-sub {
  color: rgba(255, 154, 168, 0.92);
}

.scope-note {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(34, 197, 94, 0.22);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.step-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(74, 222, 128, 0.95);
}

.seat-grid,
.occasion-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .seat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .occasion-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.front-faq details {
  border-top: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.75rem 0;
}

.front-faq details:last-child {
  padding-bottom: 0;
}

.front-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.front-faq details p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

/* ——— Sales homepage ——— */
body.page-front .fingerprint-photo-layer {
  opacity: 0.12;
  background-size: min(90vw, 720px) auto;
  background-position: 85% 20%;
}

body.page-front .top {
  background: linear-gradient(180deg, rgba(5, 25, 18, 0.72) 0%, rgba(5, 25, 18, 0.35) 100%);
  border-bottom-color: rgba(34, 197, 94, 0.22);
  backdrop-filter: blur(8px);
}

.front-main {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 0 3rem;
}

.front-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.front-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.front-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.04);
  animation: front-hero-drift 18s ease-in-out alternate infinite;
}

.front-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 20, 14, 0.35) 0%, rgba(4, 20, 14, 0.2) 35%, rgba(4, 20, 14, 0.82) 72%, rgba(4, 20, 14, 0.96) 100%),
    linear-gradient(90deg, rgba(4, 20, 14, 0.72) 0%, rgba(4, 20, 14, 0.25) 55%, rgba(4, 20, 14, 0.45) 100%);
}

.front-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
  padding: 5.5rem 0 2.75rem;
}

.front-hero-kicker {
  animation: front-rise 0.7s ease-out both;
}

.front-hero-title {
  max-width: 16ch;
  font-size: clamp(2.15rem, 5.5vw, 3.55rem);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
  animation: front-rise 0.8s ease-out 0.08s both;
}

.front-hero-lead {
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(232, 242, 236, 0.9);
  animation: front-rise 0.8s ease-out 0.16s both;
}

.front-hero .front-actions {
  animation: front-rise 0.8s ease-out 0.24s both;
}

.front-hero-secondary {
  color: rgba(232, 242, 236, 0.92);
  border-color: rgba(232, 242, 236, 0.35);
  background: rgba(5, 25, 18, 0.35);
  backdrop-filter: blur(4px);
}

.front-hero-secondary:hover {
  color: #fff;
  border-color: rgba(232, 242, 236, 0.65);
}

.front-hero-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: rgba(134, 203, 176, 0.92);
  animation: front-rise 0.8s ease-out 0.32s both;
}

.front-band {
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
  padding: 3.25rem 0 1rem;
}

.front-band-alt {
  width: 100%;
  margin: 1.5rem 0 0;
  padding: 3.25rem 1rem;
  background: linear-gradient(180deg, rgba(8, 40, 28, 0.55) 0%, rgba(5, 25, 18, 0.2) 100%);
  border-top: 1px solid rgba(34, 197, 94, 0.18);
  border-bottom: 1px solid rgba(34, 197, 94, 0.12);
}

.front-band-alt > .front-split,
.front-band-alt > .front-pricing {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.front-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.front-split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 860px) {
  .front-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .front-split-reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.front-split-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.front-split-media img {
  display: block;
  width: 100%;
  height: auto;
}

.front-split-copy .muted {
  margin-top: 0;
}

.front-occasion-row {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .front-occasion-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.front-occasion {
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: linear-gradient(160deg, rgba(13, 51, 40, 0.72), rgba(8, 35, 26, 0.55));
}

.front-occasion .muted {
  margin: 0;
}

.front-pricing,
.front-faq-wrap,
.front-cta-final-inner {
  max-width: 40rem;
}

.front-cta-final {
  padding-bottom: 2rem;
}

.front-cta-final-inner {
  padding: 1.5rem 0 0;
}

@keyframes front-hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

@keyframes front-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .front-hero-img,
  .front-hero-kicker,
  .front-hero-title,
  .front-hero-lead,
  .front-hero .front-actions,
  .front-hero-note {
    animation: none;
  }

  .front-hero-img {
    transform: none;
  }
}

@media (max-width: 640px) {
  .front-hero {
    min-height: min(88vh, 720px);
  }

  .front-hero-copy {
    padding-top: 4.5rem;
  }
}
