/* =========================================================
   RadQuizz — single stylesheet
   1. Tokens                 → the whole design is set here
   2. Snow
   3. Base / layout
   4. Chrome (header, tabs)
   5. Image viewer
   6. Answer area + form
   7. Responsive / a11y / print
   8. Home: weeks and doors
   9. Case page
   10. Footer / misc
   11. Console scrolling
   12. Christmas decoration
   ========================================================= */

/* ---------- 1. Tokens ----------
   Single theme: Christmas. No toggle; all the design is set here. */
:root {
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
               Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --max: 1120px;
  --radius: 16px;
  --radius-sm: 9px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .8);

  --ease: cubic-bezier(.22, .61, .36, 1);

  color-scheme: dark;
  --bg: #0f1d16;
  --bg-grad: radial-gradient(1100px 520px at 50% -220px, #1b3527 0%, #0f1d16 66%);
  --surface: #132a1f;
  --surface-2: #173325;
  --ink: #f5f2e9;
  --ink-2: #c2d3c6;
  --ink-3: #93a89a;
  --line: #24402f;
  --accent: #c8102e;
  --accent-2: #a20c25;
  --accent-ink: #ffffff;
  --accent-soft: #33191b;
  --chrome-bg: rgba(15, 29, 22, .84);
  --viewer-bg: #000000;
  --focus: #e8c37a;
  --gold: #e8c37a;
  --gold-soft: rgba(232, 195, 122, .3);
  --green: #2f8f4e;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image: var(--bg-grad);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
a { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 2. Snow ----------
   The full-screen canvas is added by theme.js (SVG flakes from
   assets/neige/); the CSS only places it behind the content. */
.snow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.chrome, .wrap, .foot { position: relative; z-index: 1; }

/* ---------- 4. Chrome ---------- */
.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--chrome-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

/* garland */
.chrome::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background:
    repeating-linear-gradient(90deg,
      #c8102e 0 11px, transparent 11px 15px,
      var(--gold) 15px 26px, transparent 26px 30px,
      #2f8f4e 30px 41px, transparent 41px 45px);
  opacity: .9;
}

.chrome-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.01em;
}
.brand-mark { width: 22px; height: 22px; color: var(--accent); flex: none; }
.brand-text { font-size: 1.02rem; }
.brand-text::after { content: " ✦"; color: var(--gold); }

/* season reminder, right side of the header */
.chrome-note {
  margin: 0;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  opacity: .9;
  white-space: nowrap;
}
.chrome-note sup { font-size: .62em; letter-spacing: 0; }

/* Series tabs — just above the viewer */
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 8px;
  padding: 2px 0 4px;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs[hidden] { display: none; }

.tab {
  appearance: none;
  flex: none;
  font: inherit;
  font-size: .87rem;
  font-weight: 550;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
}
.tab:hover { background: var(--surface-2); color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.tab .tab-index {
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  font-size: .78rem;
  margin-right: 6px;
}
.tab[aria-selected="true"] .tab-index { color: var(--accent); }

/* ---------- 5. Content ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 90px;
}

.intro {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}
.kicker {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 10px;
}
.kicker::before { content: "❄ "; }

.intro h1 {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.7rem);
  letter-spacing: -.022em;
  text-wrap: balance;
}
.lede {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1.02rem;
  text-wrap: pretty;
}

.case-head { margin: 0 0 14px; }
.case-head h2 {
  font-size: clamp(1.15rem, 1rem + .7vw, 1.45rem);
  letter-spacing: -.015em;
}
.stem {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: .95rem;
  max-width: 70ch;
}

/* Visionneuse */
.viewer {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--viewer-bg);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--line);
}

.stack {
  height: clamp(340px, 64svh, 680px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: auto;
  background: var(--viewer-bg);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.stack::-webkit-scrollbar { display: none; }
.stack:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.slice {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--viewer-bg);
  -webkit-user-drag: none;
  user-select: none;
}
.slice[data-loaded="false"] { background: #0a0a0a; }

.viewer::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 88px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), transparent);
}

.hud {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }

.counter {
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #eef2f7;
  background: rgba(10, 12, 16, .58);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 5px 11px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.counter .of { opacity: .55; }

.rationale { display: flex; gap: 6px; }

.icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 12, 16, .58);
  color: #eef2f7;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .16s, transform .16s;
}
.icon-btn:hover { background: rgba(30, 36, 44, .8); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: .82rem;
  color: var(--ink-3);
  text-align: center;
}
.hint svg { width: 13px; height: 13px; flex: none; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 20px auto 0;
  width: fit-content;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 12px 24px -14px var(--accent);
  transition: background .16s, transform .16s;
}
.cta:hover { background: var(--accent-2); }
.cta:active { transform: translateY(1px); }
.cta svg { width: 15px; height: 15px; }

/* ---------- 6. Answer area ---------- */
.answer {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.answer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.answer h3 {
  font-size: 1.22rem;
  letter-spacing: -.012em;
}
.answer-sub {
  color: var(--ink-2);
  font-size: .92rem;
  max-width: 64ch;
  margin-bottom: 16px;
}

.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.form-shell iframe {
  display: block;
  width: 100%;
  height: 1200px;
  border: 0;
  background: #fff;
}

.form-placeholder {
  padding: 26px 24px;
  display: grid;
  gap: 12px;
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(127, 127, 127, .045) 12px 24px);
}
.form-placeholder .ph-title {
  font-weight: 700;
  font-size: 1rem;
}
.form-placeholder p { color: var(--ink-2); font-size: .93rem; }
.form-placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 5px;
}

.notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .92rem;
}
.notice strong { color: var(--ink); }

/* Loading skeleton */
.skeleton { display: grid; gap: 14px; }
.sk {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.sk-line { height: 15px; }
.sk-line.short { width: 42%; }
.sk-viewer { height: clamp(340px, 64svh, 680px); border-radius: var(--radius); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 20px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: .82rem;
  text-align: center;
}
.warn { color: #b3261e; margin-top: 8px; }

/* ---------- 7. Responsive ---------- */
@media (max-width: 720px) {
  .chrome-inner { height: 54px; padding: 0 14px; }
  .chrome-note { font-size: .64rem; letter-spacing: .08em; }
  .wrap { padding: 22px 14px 70px; }
  .intro { text-align: left; margin-bottom: 18px; }
  .stack { height: clamp(300px, 56svh, 520px); }
  .cta { width: 100%; }
  .form-shell iframe { height: 1560px; }
  .answer { margin-top: 34px; scroll-margin-top: 70px; }
  .hint { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .chrome, .cta, .hint, .viewer { display: none !important; }
  body { background: #fff; }
}

/* Contrast fixes (dark theme) */
.kicker { color: var(--gold); }
.kicker::before { opacity: .8; }
.cta { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 26px -16px rgba(200,16,46,.9); }

/* ---------- 8. Home: weeks and doors ---------- */
.weeks { display: grid; gap: 34px; }

.week-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.week-title { font-size: 1.02rem; letter-spacing: -.01em; }
.week-dates { font-size: .82rem; color: var(--ink-3); }
.week-state {
  margin-left: auto;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}
.week-state.is-open {
  color: var(--gold);
  border-color: var(--gold-soft);
  background: rgba(232, 195, 122, .06);
}

.doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
}

.thumb {
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}
.case-card:hover .thumb img { transform: scale(1.035); }
.thumb-empty { display: grid; place-items: center; height: 100%; color: #6b7684; }

.case-body {
  padding: 15px 17px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.case-kicker {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--accent);
  font-weight: 650;
}
.case-card.is-last .case-kicker::after {
  content: " · continue";
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.case-body h2 {
  font-size: 1.06rem;
  letter-spacing: -.012em;
}
.case-case-stem, .case-stem {
  color: var(--ink-2);
  font-size: .87rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.sk-card { height: 268px; border-radius: var(--radius); }

/* ---------- 9. Case page ---------- */
.case-head h1 {
  font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.3rem);
  letter-spacing: -.022em;
  text-wrap: balance;
}
.case-meta {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.serie-meta {
  margin: 10px 0 0;
  font-size: .8rem;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.serie-meta[hidden] { display: none; }

.answer-tag {
  font-size: .76rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.version { opacity: .6; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .doors { grid-template-columns: 1fr; gap: 14px; }
  .case-head h1 { font-size: 1.5rem; }
  .case-card.is-locked { min-height: 190px; }
  .week-state { margin-left: 0; }
}


/* ---------- 11. “Console” scrolling ----------
   Fine pointer (mouse/trackpad): no snapping, the wheel moves one slice
   with no transition. Touch screens keep the native snap. */
@media (hover: hover) and (pointer: fine) {
  .stack { scroll-snap-type: none; }
  .slice { scroll-snap-align: none; scroll-snap-stop: normal; }
}

/* Vertical scrubber, right of the viewer */
.scrub {
  position: absolute;
  top: 14px;
  bottom: 62px;
  right: 4px;
  width: 24px;
  z-index: 3;
  display: flex;
  justify-content: center;
  cursor: pointer;
  touch-action: none;
  border-radius: 999px;
}
.scrub:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.scrub.is-dragging { cursor: grabbing; }

.scrub-track {
  position: relative;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  transition: width .15s var(--ease), background .15s;
}
.scrub:hover .scrub-track,
.scrub.is-dragging .scrub-track {
  width: 6px;
  background: rgba(255, 255, 255, .3);
}

.scrub-thumb {
  position: absolute;
  left: 50%;
  width: 11px;
  height: var(--thumb, 24px);
  top: calc((100% - var(--thumb, 24px)) * var(--p, 0));
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(238, 242, 247, .85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  transition: background .15s;
}
.scrub:hover .scrub-thumb,
.scrub.is-dragging .scrub-thumb { background: #ffffff; }

@media (max-width: 720px) {
  .scrub { top: 10px; bottom: 58px; right: 2px; }
}

/* ---------- 12. Christmas decoration ----------
   Gold accents, ribbons and frames: festive enough for a LinkedIn post,
   sober enough not to get in the way of reading the slices. */

::selection { background: rgba(232, 195, 122, .28); color: var(--ink); }

/* the header garland casts a soft glow */
.chrome {
  box-shadow: 0 1px 0 rgba(232, 195, 122, .07),
              0 16px 34px -30px rgba(232, 195, 122, .55);
}

/* ornament under the intro text */
.intro::after {
  content: "❄ ✦ ❄";
  display: block;
  margin: 20px auto 0;
  padding-left: .55em;          /* compense le letter-spacing, pour centrer */
  font-size: .78rem;
  letter-spacing: .55em;
  text-align: center;           /* the intro is left-aligned on mobile */
  color: var(--gold);
  opacity: .5;
}

/* small star after the case meta line */
.case-meta::after {
  content: " ✦";
  color: var(--gold);
  opacity: .55;
}

/* tricolour ribbon at the top of every card */
.case-card { position: relative; }
.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg,
    var(--accent) 0 33.3%, var(--gold) 33.3% 66.6%, var(--green) 66.6% 100%);
  opacity: .7;
  transition: opacity .18s var(--ease);
}
.case-card:hover::before { opacity: 1; }
.case-card:hover { border-color: var(--gold-soft); }

/* gold frame around the viewer: four corner brackets inside */
.viewer { border-color: rgba(232, 195, 122, .2); }
.viewer::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 2;
  pointer-events: none;
  opacity: .45;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 1px 16px no-repeat;
}

/* festive rule above the answer area */
.answer { position: relative; }
.answer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--gold-soft) 22%, var(--accent) 50%, var(--gold-soft) 78%, transparent);
  opacity: .75;
}

/* case tag */
.answer-tag {
  color: var(--gold);
  background: rgba(232, 195, 122, .07);
  border-color: var(--gold-soft);
}

/* main button: gold ring on hover */
.cta:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4),
              0 0 0 3px var(--gold-soft),
              0 14px 26px -16px rgba(200, 16, 46, .9);
}

/* discreet snowflake in the footer */
.foot::before {
  content: "❄";
  display: block;
  margin-bottom: 8px;
  font-size: .9rem;
  color: var(--gold);
  opacity: .35;
}

@media (max-width: 560px) {
  .chrome-note-long { display: none; }
}

/* window number, as a badge on the thumbnail */
.thumb { position: relative; }
.door-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-variant-numeric: tabular-nums;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--gold);
  background: rgba(10, 12, 16, .72);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 3px 9px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* closed window: unopened wrapping paper */
.case-card.is-locked {
  display: grid;
  place-items: center;
  min-height: 300px;
  cursor: default;
  box-shadow: none;
  border: 1px dashed var(--line);
  background:
    repeating-linear-gradient(135deg,
      transparent 0 13px, rgba(232, 195, 122, .04) 13px 26px),
    var(--surface);
  color: var(--ink-3);
}
.case-card.is-locked:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}
.case-card.is-locked::before { opacity: .28; }

.locked-face {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 26px;
  text-align: center;
}
.locked-number {
  font-family: var(--font-display);
  font-size: 2.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  opacity: .4;
}
.locked-icon { width: 18px; height: 18px; opacity: .55; }
.locked-text {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* page of a case that is still closed */
.locked-window {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 72px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg,
      transparent 0 13px, rgba(232, 195, 122, .035) 13px 26px),
    var(--surface);
}
.locked-window .locked-icon { width: 34px; height: 34px; color: var(--gold); opacity: .8; }
.locked-message { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.locked-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.locked-back {
  margin-top: 6px;
  font-size: .88rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
}
.locked-back:hover { color: var(--ink); }

/* ---------- 13. Native answer form ----------
   The form is ours: it posts to Google's formResponse endpoint, so it can
   be dark and in English. The iframe is only a fallback. */
.answer-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.field { display: grid; gap: 6px; min-width: 0; }
.field > label,
.field > legend {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-2);
}
.field .req { color: var(--gold); }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(232, 195, 122, .13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .93rem;
}
.radio input { accent-color: var(--accent); width: 16px; height: 16px; }
.form-send { border: 0; cursor: pointer; margin-top: 2px; }
.form-send:disabled { opacity: .6; cursor: progress; }
.form-note { font-size: .76rem; color: var(--ink-3); }
.form-sink {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}
.form-thanks {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 34px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-thanks .thanks-icon { width: 34px; height: 34px; color: var(--gold); }
.form-thanks .ph-title { font-size: 1.05rem; font-weight: 600; }
.form-thanks .thanks-sub { color: var(--ink-3); font-size: .85rem; }

@media (max-width: 720px) {
  .field-row { grid-template-columns: 1fr; }
  .answer-form { padding: 16px; }
}
