/* ─────────────────────────────────────────
   RESET & BASE
   ───────────────────────────────────────── */

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

:root {
  --bg:         #080808;
  --surface:    #111111;
  --border:     #1e1e1e;
  --border-lg:  #2a2a2a;
  --text:       #f0ece4;
  --text-2:     #9b978f;
  --text-3:     #4a4744;
  --gold:       #c8a96a;
  --gold-lt:    #e2cfa0;
  --gold-dk:    #7a6438;
  --gold-glow:  rgba(200,169,106,.12);
  --error:      #d95b5b;
  --r:          3px;
  --sans:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --serif:      'Playfair Display', Georgia, serif;
  --ease:       cubic-bezier(.25,.46,.45,.94);
  --ease-io:    cubic-bezier(.45,0,.55,1);
}

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
}

/* ─────────────────────────────────────────
   GRAIN
   ───────────────────────────────────────── */

.grain {
  position: fixed;
  inset: -80px;
  width: calc(100% + 160px);
  height: calc(100% + 160px);
  pointer-events: none;
  z-index: 999;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.35s steps(2) infinite;
}

@keyframes grain {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -2%); }
  75%  { transform: translate(-1%, 3%); }
  100% { transform: translate(3%, -1%); }
}

/* ─────────────────────────────────────────
   PIN SCREEN
   ───────────────────────────────────────── */

.s-pin {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%,
    rgba(200,169,106,.04) 0%, transparent 65%);
}

.pin-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.pin-subtitle {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: .04em;
  margin-bottom: 40px;
  text-align: center;
}

.pin-dots {
  display: flex;
  gap: 14px;
  margin-bottom: 10px;
}

.pin-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border-lg);
  background: transparent;
  transition: background .15s, border-color .15s, transform .15s;
}

.pin-dots span.filled {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}

.pin-error {
  font-size: 12px;
  color: var(--error);
  min-height: 20px;
  margin-bottom: 28px;
  letter-spacing: .05em;
  text-align: center;
  animation: none;
}

.pin-error.shake {
  animation: pin-shake .35s var(--ease);
}

@keyframes pin-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.pin-key {
  height: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, border-color .12s, transform .1s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  border-radius: var(--r);
}

.pin-key:active {
  background: var(--border-lg);
  border-color: var(--gold);
  transform: scale(.94);
}

.pin-key-del {
  color: var(--text-2);
  font-size: 16px;
}

.pin-key-del:active { border-color: var(--error); }

.pin-key-empty {
  height: 72px;
}

/* ─────────────────────────────────────────
   SCREEN SYSTEM
   ───────────────────────────────────────── */

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

.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(.985);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* ─────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .2s var(--ease);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--bg);
  padding: 15px 32px;
}

.btn-gold:hover:not(:disabled) {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.btn-gold:active { transform: translateY(0); opacity: .85; }

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

.btn-ghost {
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 12px 24px;
  font-size: 11px;
  margin-top: 20px;
}

.btn-ghost:hover {
  color: var(--text-2);
  border-color: var(--text-3);
}

/* ─────────────────────────────────────────
   WELCOME
   ───────────────────────────────────────── */

.s-welcome {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 40px;
  overflow: hidden;
}

.welcome-ambient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 50%,
    rgba(200,169,106,.055) 0%,
    transparent 65%);
  pointer-events: none;
  animation: ambient-breathe 6s ease-in-out infinite;
}

@keyframes ambient-breathe {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1;  transform: scale(1.08); }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .45em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(200,169,106,.3);
  margin-bottom: 36px;
  position: relative;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 24px;
  line-height: 1;
  font-family: var(--serif);
}

.hero-pre {
  font-size: clamp(18px, 5vw, 26px);
  font-style: italic;
  font-weight: 400;
  color: var(--text-2);
  letter-spacing: .06em;
}

.hero-name {
  font-size: clamp(60px, 18vw, 112px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.02em;
  display: block;
}

.hero-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 52px;
  font-weight: 300;
}

.welcome-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  display: flex;
  overflow: hidden;
  opacity: .15;
}

.welcome-lines span {
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: line-flow 4s ease-in-out infinite;
}

.welcome-lines span:nth-child(2) { animation-delay: 1.3s; }
.welcome-lines span:nth-child(3) { animation-delay: 2.6s; }

@keyframes line-flow {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50%       { opacity: 1; transform: translateX(100%); }
}

/* ─────────────────────────────────────────
   NAME + CAMERA
   ───────────────────────────────────────── */

.s-name {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cam-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
}

.cam-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  display: block;
}

.cam-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 35%,
    rgba(0,0,0,.65) 100%);
  pointer-events: none;
}

.cam-corners {
  position: absolute;
  inset: 18px;
  pointer-events: none;
}

.c {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(200,169,106,.45);
  border-style: solid;
  display: block;
  transition: all .3s var(--ease);
}

.c-tl { top: 0; left: 0;  border-width: 1px 0 0 1px; }
.c-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.c-bl { bottom: 0; left: 0;  border-width: 0 0 1px 1px; }
.c-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.cam-hint {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  background: rgba(0,0,0,.4);
  padding: 6px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
}

.name-panel {
  background: var(--bg);
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-ready-big {
  width: 100%;
  padding: 20px 32px;
  font-size: 14px;
  letter-spacing: .12em;
  justify-content: center;
}

.field-label {
  font-size: 10px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-3);
}

.field-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-lg);
  padding: 8px 0 10px;
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  color: var(--text);
  outline: none;
  width: 100%;
  transition: border-color .25s;
  user-select: text;
  -webkit-tap-highlight-color: transparent;
}

.field-input:focus  { border-bottom-color: var(--gold); }
.field-input::placeholder { color: var(--text-3); }

/* ─────────────────────────────────────────
   FULL-CAMERA SCREENS (countdown + record)
   ───────────────────────────────────────── */

.s-fullcam {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.cam-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.cam-full-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 25%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

.cam-full-vignette.strong {
  background: radial-gradient(ellipse at center, transparent 20%, rgba(0,0,0,.75) 100%);
}

/* ─────────────────────────────────────────
   COUNTDOWN
   ───────────────────────────────────────── */

.countdown-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 1;
}

.countdown-num {
  font-family: var(--serif);
  font-size: clamp(100px, 32vw, 180px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 80px rgba(200,169,106,.35);
  animation: cd-pop .7s var(--ease) both;
}

@keyframes cd-pop {
  from { transform: scale(1.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.countdown-sub {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

/* ─────────────────────────────────────────
   RECORDING UI
   ───────────────────────────────────────── */

.rec-ui {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rec-badge {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  color: #e05555;
  background: rgba(0,0,0,.55);
  padding: 6px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e05555;
  animation: blink 1s ease-in-out infinite;
}

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

.ring-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255,255,255,.1);
  stroke-width: 1.5;
}

.ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 339.29;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.ring-timer {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  color: #fff;
  position: relative;
  z-index: 1;
  line-height: 1;
}

.rec-name {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,.55);
  white-space: nowrap;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waveform {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}

.waveform b {
  display: block;
  width: 3px;
  min-height: 4px;
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
  opacity: .55;
  font-weight: 400;
}

/* ─────────────────────────────────────────
   UPLOAD
   ───────────────────────────────────────── */

.s-center {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  text-align: center;
  padding: 40px;
}

.upload-spinner {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.upload-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(200,169,106,.25);
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.upload-text {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ─────────────────────────────────────────
   DONE
   ───────────────────────────────────────── */

.s-done {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: radial-gradient(ellipse 80% 55% at 50% 45%, rgba(200,169,106,.045) 0%, transparent 65%);
}

.done-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 44px 36px;
  border: 1px solid var(--border);
  background: var(--surface);
  max-width: 340px;
  width: 100%;
  animation: card-in .6s var(--ease) .1s both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.done-icon { margin-bottom: 4px; }

.done-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
}

.done-title em {
  font-style: italic;
  color: var(--gold);
}

.done-msg {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.done-sep {
  width: 36px;
  height: 1px;
  background: var(--border-lg);
}

.done-meta {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ─────────────────────────────────────────
   ERROR
   ───────────────────────────────────────── */

.error-icon { margin-bottom: 8px; }

.error-text {
  font-size: 15px;
  color: var(--text-2);
  max-width: 280px;
  text-align: center;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   ADMIN OVERLAY
   ───────────────────────────────────────── */

.adm {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: adm-in .35s var(--ease) both;
}

@keyframes adm-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.adm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.adm-back {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid var(--border-lg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .18s;
}
.adm-back:hover { color: var(--text); border-color: var(--text-3); }

.adm-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  flex: 1;
  min-width: 100px;
}

.adm-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border-lg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 16px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
.adm-btn:hover            { color: var(--text); border-color: var(--text-3); }
.adm-btn-gold             { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.adm-btn-gold:hover       { background: var(--gold-lt); border-color: var(--gold-lt); color: var(--bg); }
.adm-btn-danger           { color: var(--error); border-color: rgba(217,91,91,.3); background: rgba(217,91,91,.06); }
.adm-btn-danger:hover     { background: rgba(217,91,91,.15); }

.adm-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  overflow-x: auto;
}

.adm-stats i {
  display: block;
  width: 1px;
  height: 24px;
  background: var(--border-lg);
  flex-shrink: 0;
  margin: 0 20px;
}

.adm-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.adm-stat b {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.adm-stat span {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.adm-grid {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-content: start;
}

.adm-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-3);
  font-size: 14px;
}

/* ── Card ── */

.adm-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
  position: relative;
}

.adm-card:hover { border-color: var(--border-lg); transform: translateY(-2px); }

.adm-card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
}

.adm-card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adm-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .2s;
}

.adm-card:hover .adm-card-play { opacity: 1; }

.adm-card-play-circle {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.adm-card-dl {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s, background .15s;
  color: var(--text);
  text-decoration: none;
  backdrop-filter: blur(6px);
}
.adm-card:hover .adm-card-dl   { opacity: 1; }
.adm-card-dl:hover              { background: rgba(200,169,106,.25); color: var(--gold); }

.adm-card-info { padding: 12px 14px; }

.adm-card-date {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .05em;
  display: flex;
  gap: 8px;
}

.adm-card-date span::after { content: '·'; margin-left: 8px; }
.adm-card-date span:last-child::after { content: ''; }

/* ── Modal ── */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-bd {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border-lg);
  width: 100%;
  max-width: 660px;
  animation: modal-in .28s var(--ease) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  background: var(--surface);
  border: 1px solid var(--border-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all .15s;
  z-index: 1;
}
.modal-close:hover { color: var(--text); border-color: var(--text-3); }

.modal-meta {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.modal-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
}

.modal-date {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.modal-vid {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
}

.modal-foot {
  padding: 14px 18px;
  display: flex;
  gap: 10px;
}

/* ─────────────────────────────────────────
   THEME SELECTION
   ───────────────────────────────────────── */

.s-theme {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  gap: 36px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(200,169,106,.04) 0%, transparent 65%);
}

.theme-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
}

.theme-title {
  font-family: var(--serif);
  font-size: clamp(26px, 7vw, 38px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
}

.theme-sub {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .04em;
}

.theme-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 380px;
}

.theme-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border-lg);
  border-left: 2px solid var(--gold);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: var(--text);
  font-family: var(--sans);
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.theme-card:active {
  background: rgba(200,169,106,.07);
  transform: scale(.98);
}

.theme-card-icon {
  color: var(--gold);
  flex-shrink: 0;
  opacity: .75;
  display: flex;
}

.theme-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-card-body strong {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.theme-card-body span {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-3);
  letter-spacing: .03em;
}

.theme-card-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  display: flex;
}

/* ─────────────────────────────────────────
   QUESTION SCREEN
   ───────────────────────────────────────── */

.s-question {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  gap: 40px;
  text-align: center;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(200,169,106,.05) 0%, transparent 65%);
  cursor: pointer;
}

.q-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .8;
}

.q-text {
  font-family: var(--serif);
  font-size: clamp(20px, 5.5vw, 28px);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  max-width: 360px;
  position: relative;
}

.q-text::before {
  content: '\201C';
  position: absolute;
  top: -.3em;
  left: -.2em;
  font-size: 3.5em;
  color: var(--gold);
  opacity: .1;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.q-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 220px;
}

.q-bar {
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.q-bar-fill {
  height: 100%;
  width: 100%;
  background: var(--gold);
  transform-origin: left;
}

.q-hint {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-3);
}

.q-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-lg);
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, border-color .15s, transform .1s;
}

.q-shuffle:active {
  color: var(--gold);
  border-color: rgba(200,169,106,.4);
  transform: scale(.96);
}

/* ─────────────────────────────────────────
   QUESTION IN CAMERA + RECORDING
   ───────────────────────────────────────── */

.name-q-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.name-question {
  flex: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  text-align: center;
  padding: 10px 16px;
  background: rgba(200,169,106,.06);
  border: 1px solid rgba(200,169,106,.18);
}

.name-question:empty { display: none; }
.name-q-row:has(.name-question:empty) { display: none; }

.name-shuffle {
  flex-shrink: 0;
  width: 44px;
  background: transparent;
  border: 1px solid rgba(200,169,106,.18);
  border-left: none;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, background .15s;
}

.name-shuffle:active {
  background: rgba(200,169,106,.08);
  color: var(--gold);
}

.rec-question {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 78%;
  background: rgba(8,8,8,.6);
  border: 1px solid rgba(200,169,106,.2);
  padding: 8px 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(240,236,228,.6);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
