/* Floral invitation look. Colours come from the preset chosen in js/config.js (js/themes.js);
   the values below are the 'classic' (burgundy + gold) fallbacks. */
:root {
  --bg: #2b0a14;
  --bg-edge: #14040a;
  --glow-1: rgba(150, 30, 55, .45);
  --glow-2: rgba(217, 181, 110, .12);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 0L56 28L28 56L0 28Z' fill='none' stroke='%23d9b56e' stroke-opacity='.07'/%3E%3C/svg%3E");
  --surface: rgba(255, 236, 214, .06);
  --surface-strong: rgba(255, 236, 214, .08);
  --track: rgba(255, 236, 214, .16);
  --ink: #f6e9d7;
  --muted: #d8c3a6;
  --accent: #e2c07f;
  --accent-strong: #f0d9a6;
  --on-accent: #2b0a14;
  --button-bg: linear-gradient(180deg, #ecd08f, #c9a35c);
  --line: rgba(226, 192, 127, .38);
  --frame: #d9b56e;
  --shadow: rgba(0, 0, 0, .45);
  --stage-bg: radial-gradient(ellipse at 50% 40%, #3a0b19 0%, #12040a 75%);
  --ok-bg: rgba(110, 175, 125, .2);
  --ok-line: #8fc69c;
  --bad-bg: rgba(229, 100, 120, .16);
  --bad-line: #e58a98;
  --toast-bg: #f6e9d7;
  --toast-ink: #2b0a14;
  --flower: #c0334d;
  --flower-secondary: #f1e2cb;
  --flower-tertiary: #d9b56e;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Allura', 'Snell Roundhand', 'Apple Chancery', 'Brush Script MT', cursive;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --mono: var(--serif); /* the minimal preset (js/themes.js) sets this to a monospace font */
}
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif);
  font-size: clamp(1.1rem, 1.02rem + .3vw, 1.25rem); line-height: 1.55; -webkit-font-smoothing: antialiased; height: 100%; overflow: hidden; overscroll-behavior: none; touch-action: manipulation; font-variant-numeric: lining-nums;
  background:
    var(--pattern),
    radial-gradient(ellipse at 50% 32%, var(--glow-1) 0%, transparent 62%),
    radial-gradient(ellipse at 85% 95%, var(--glow-2) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-edge));
  background-color: var(--bg);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
:where(button, a, .question-heading, .reveal-heading, .rotating-bouquet):focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 4px; }
@media (forced-colors: active) {
  :where(button, a, .question-heading, .reveal-heading, .rotating-bouquet):focus-visible { outline-color: Highlight; }
}
[hidden] { display: none !important; }
.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; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }

/* THE CARD: the whole page is one framed invitation */
.site-shell {
  --frame-inset: clamp(8px, 2vw, 22px);
  /* size of the flower clusters in the corners; scales with the shorter side so short screens still fit */
  --corner: clamp(70px, min(26vw, 22vh), 250px);
  position: relative; isolation: isolate; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden;
  padding: calc(var(--corner) * .76) clamp(20px, 6vw, 96px) max(calc(var(--corner) * .7), env(safe-area-inset-bottom));
}
/* two thin gold lines, like the border of a printed invitation */
.site-shell::before, .site-shell::after { content: ''; position: absolute; pointer-events: none; z-index: 0; border: 1px solid var(--frame); }
.site-shell::before { inset: var(--frame-inset); opacity: .75; }
.site-shell::after { inset: calc(var(--frame-inset) + 7px); opacity: .35; }
.card-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.card-opening-trace {
  position: absolute;
  inset: var(--frame-inset);
  width: calc(100% - 2 * var(--frame-inset));
  height: calc(100% - 2 * var(--frame-inset));
  overflow: visible;
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: .24px;
}
.card-opening-trace path { opacity: 0; }
.corner { position: absolute; width: var(--corner); height: var(--corner); }
.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.corner--br { bottom: 0; right: 0; transform: scale(-1, -1); }

.main-content { position: relative; z-index: 1; width: min(100%, 1100px); margin: 0 auto; flex: 1; min-height: 0; display: flex; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.main-content::-webkit-scrollbar { display: none; }
/* margin-block:auto centres a screen and, if it is ever taller than the space (extreme zoom), scrolls inside the card, never the page */
.screen { width: 100%; margin-block: auto; animation: pageEnter .45s ease both; }

/* TYPE: script for the big greeting, spaced capitals for labels, a readable serif for everything else */
.eyebrow { color: var(--accent-strong); font-size: clamp(.66rem, min(.74rem + .2vw, 1.9vh), .92rem); font-weight: 600; letter-spacing: clamp(.16em, .1em + .3vw, .3em); text-transform: uppercase; margin: 0 0 clamp(4px, 1.3vh, 14px); }
/* Script text: a little extra letter-spacing, no ligatures and a faint glow keep the thin strokes readable */
.display-heading, .reveal-heading, .signature { letter-spacing: .012em; font-variant-ligatures: none; text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 28%, transparent), 0 0 1px currentColor; }
.display-heading { font-family: var(--script); font-weight: 400; font-size: clamp(2rem, min(9.5vw, 8.6vh), 5.8rem); line-height: 1.12; margin: 0 auto 4px; text-wrap: balance; }
.display-heading em, .reveal-heading em { font-style: normal; color: var(--accent); }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: clamp(4px, 1.4vh, 14px) auto clamp(6px, 1.8vh, 18px); color: var(--accent); max-width: 280px; }
.divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--frame)); }
.divider span:last-child { background: linear-gradient(270deg, transparent, var(--frame)); }
.lead { color: var(--muted); max-width: 30em; margin: 0 auto clamp(10px, 3vh, 30px); font-size: clamp(1rem, min(1.08rem + .3vw, 2.5vh), 1.35rem); font-style: italic; line-height: 1.4; }
.fine-print { margin: clamp(8px, 2.4vh, 26px) 0 0; color: var(--muted); font-size: clamp(.8rem, 1.9vh, .95rem); letter-spacing: .04em; }

.screen--welcome { text-align: center; padding: 0; }
.emblem { width: clamp(44px, min(14vw, 9.5vh), 96px); height: auto; color: var(--accent); margin-bottom: clamp(4px, 1.4vh, 14px); }

/* BUTTONS: thin-edged gold, not pills */
.primary-button, .secondary-button { border-radius: 3px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: clamp(42px, 6.6vh, 52px); padding: clamp(8px, 1.6vh, 12px) 32px; font-weight: 700; font-size: .95rem; letter-spacing: .16em; text-transform: uppercase; transition: transform .2s, box-shadow .2s, filter .2s; border: 1px solid transparent; text-decoration: none; }
.primary-button { background: var(--button-bg); color: var(--on-accent); border-color: rgba(255, 240, 200, .5); box-shadow: 0 10px 26px var(--shadow); }
.primary-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.secondary-button { color: var(--accent-strong); background: transparent; border-color: var(--frame); }
.secondary-button:hover { transform: translateY(-2px); background: var(--surface); }
.text-button { background: transparent; border: 0; text-decoration: underline; text-underline-offset: 5px; font-size: 1rem; color: var(--muted); padding: clamp(4px, 1.2vh, 10px) 0; }
.text-button:hover { color: var(--accent-strong); }

/* QUIZ */
.screen--quiz { display: grid; place-items: center; padding: 0; }
.quiz-card { width: min(100%, 620px); padding: clamp(14px, min(5vw, 3.6vh), 54px) clamp(18px, 5vw, 54px); border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -10px; background: var(--surface); border-radius: 4px; box-shadow: 0 24px 60px var(--shadow); backdrop-filter: blur(6px); text-align: center; }
.quiz-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(6px, 1.4vh, 14px); }
.quiz-topline .eyebrow { margin: 0; }
.progress-label { color: var(--muted); font-size: .95rem; font-weight: 600; letter-spacing: .08em; }
.progress-track { height: 3px; width: 100%; overflow: hidden; background: var(--track); }
.progress-fill { background: var(--accent); height: 100%; width: 50%; transition: width .35s ease; }
.quiz-icon { font-size: clamp(1.3rem, 3.6vh, 2rem); color: var(--accent); line-height: 1; margin: clamp(8px, 2.6vh, 30px) 0 clamp(2px, 1vh, 10px); }
.question-heading { font: 500 clamp(1.45rem, min(4.4vw, 4.4vh), 2.6rem)/1.2 var(--serif); margin: 0 0 clamp(2px, 1vh, 10px); overflow-wrap: anywhere; }
.question-heading:focus { outline: none; }
.question-subheading { margin: 0 0 clamp(8px, 2.4vh, 28px); color: var(--muted); font-style: italic; font-size: clamp(.95rem, 2.4vh, 1.1rem); }
.answer-list { display: grid; gap: clamp(8px, 1.4vh, 12px); text-align: left; }
.answer-button { text-align: center; border: 1px solid var(--line); background: var(--surface-strong); border-radius: 3px; padding: clamp(8px, 1.6vh, 16px) 19px; min-height: clamp(46px, 7.2vh, 58px); color: var(--ink); font-size: clamp(1.1rem, 2.8vh, 1.25rem); font-weight: 600; transition: transform .18s, border .18s, background .18s; }
.answer-button:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-1px); }
.answer-button.correct { border-color: var(--ok-line); background: var(--ok-bg); }
.answer-button.incorrect { border-color: var(--bad-line); background: var(--bad-bg); }
.answer-feedback { min-height: clamp(22px, 3.6vh, 30px); font-size: clamp(.95rem, 2.4vh, 1.05rem); color: var(--accent-strong); margin: clamp(6px, 1.6vh, 16px) 0 2px; font-style: italic; }
/* Runaway wrong answer (js/runawayButton.js). Moves with the `translate` property so the hover `transform` still works. */
.runaway-arena { position: relative; }
.answer-placeholder { border: 1px dashed var(--line); border-radius: 3px; opacity: .6; }
.answer-button.is-runaway { position: absolute; left: 0; top: 0; z-index: 2; width: max-content; max-width: calc(100% - 16px); box-shadow: 0 10px 24px var(--shadow); transition: translate .34s cubic-bezier(.2,.9,.3,1.15), transform .18s, border .18s, background .18s, opacity .2s; }
.answer-button.is-tired { opacity: .85; border-style: dashed; }
.answer-button.is-hinted { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

/* REVEAL: a small card with pages (bouquet and greeting, her wish, the song). Nothing on the page scrolls. */
.screen--reveal { height: 100%; margin-block: 0; display: flex; flex-direction: column; }
.card-pages { position: relative; flex: 1; min-height: 0; display: grid; }
.card-page {
  grid-area: 1 / 1; min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; /* only ever scrolls inside the page, as a last resort */
  opacity: 0; visibility: hidden; transform: translateX(28px);
  transition: opacity .45s ease, transform .5s var(--ease-out), visibility 0s linear .5s;
}
.card-page::-webkit-scrollbar { display: none; }
.card-page:focus { outline: none; }
.card-page.is-current { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.card-page.is-before { transform: translateX(-28px); }

/* page 1: bouquet (fills the space it is given) with the greeting below it, or beside it on wide screens */
.front-grid { flex: 1; min-height: 0; width: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: clamp(2px, 1vh, 12px); }
.bouquet-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.bouquet-kicker { font-size: clamp(.6rem, 1.5vh, .8rem); font-weight: 700; letter-spacing: .18em; color: var(--accent-strong); margin: 0 0 clamp(2px, .8vh, 10px); }
.stage-fit { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.flower-stage { width: 100%; max-width: 540px; margin: 0 auto; }
.flower-stage.is-ascii { padding: clamp(6px, 2vw, 14px); border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: -7px; border-radius: 4px; background: var(--stage-bg); box-shadow: 0 24px 60px var(--shadow); }
.ascii-bouquet { display: block; margin: 0 auto; width: 100%; height: auto; }
.rotating-bouquet { aspect-ratio: 100 / 115; touch-action: pan-y pinch-zoom; }
.rotating-bouquet.is-turnable { cursor: grab; }
.rotating-bouquet.is-dragging { cursor: grabbing; }
.bouquet-svg { width: 100%; height: auto; display: block; overflow: visible; }
.greeting-panel { min-width: 0; text-align: center; align-self: center; }
.graduate-icon { color: var(--accent); font-size: clamp(1rem, 2.6vh, 1.6rem); display: block; line-height: 1; margin-bottom: clamp(0px, .6vh, 6px); }
.reveal-heading { font: 400 clamp(2rem, min(8vw, 6.4vh), 4.8rem)/1.1 var(--script); margin: 0 0 clamp(2px, .8vh, 10px); }
.reveal-heading:focus { outline: none; } /* focus moves here after the reveal; it is not a control */
#graduateName { display: inline-block; white-space: nowrap; }
.signature { margin: 0; font-family: var(--script); color: var(--accent); font-size: clamp(1.4rem, min(5vw, 4.2vh), 2.3rem); word-spacing: .06em; line-height: 1.2; }

/* page 2: her wish. The invisible copy of the text reserves the space, so typing never moves anything. */
/* centred with auto margins (not justify-content:center), so if a page is ever too tall its top stays reachable */
.card-page--wish { justify-content: flex-start; gap: clamp(2px, 1vh, 12px); }
.card-page--wish > :first-child { margin-top: auto; }
/* "Show full message" keeps its space even when hidden, so the text never gets pushed */
.card-page--wish #skipTypingButton[hidden] { display: block !important; visibility: hidden; }
.wish-area { flex: 0 1 auto; min-height: 0; width: min(100%, 34em); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.wish { display: grid; width: 100%; margin-block: auto; text-align: left; line-height: 1.5; }
.wish > * { grid-area: 1 / 1; }
.wish-ghost { visibility: hidden; pointer-events: none; }
.graduation-message { color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.wish.is-fresh { animation: fadeIn .5s ease both; }
.type-cursor { color: var(--accent); display: inline; font-weight: bold; animation: blink .8s steps(2) infinite; }

/* last page: just the end. The bouquet takes the free space, then her note and "the end". */
.card-page--end { justify-content: flex-start; gap: 0; }
/* extra bouquets (wish and end pages): they only get the space the page has left over */
.mini-fit { flex: 1 1 0; min-height: 0; width: 100%; display: grid; place-items: center; overflow: hidden; }
.mini-bouquet { width: 100%; height: auto; max-width: 100%; }
.mini-bouquet:focus-visible { border-radius: 4px; }
.end-text { flex: none; width: min(100%, 30em); margin-block: auto; display: flex; flex-direction: column; align-items: center; gap: clamp(8px, 2vh, 18px); opacity: 0; }
.card-page--end.is-current .end-text { animation: fadeIn 1.6s ease-out 1.8s both; } /* appears once the bouquet has bloomed */
.end-note { margin: 0; color: var(--muted); line-height: 1.5; font-size: clamp(.95rem, 2.3vh, 1.15rem); text-wrap: balance; }
.the-end { margin: 0; color: var(--accent); font-family: var(--mono); letter-spacing: .32em; font-size: .85rem; }

/* page turning: Back, dots, Next. Skip animation takes the same place while the bouquet blooms. */
.page-nav { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 48px; }
.page-nav > #pageBack { grid-column: 1; justify-self: start; }
.page-nav > .page-dots { grid-column: 2; }
.page-nav > #pageNext { grid-column: 3; justify-self: end; }
.nav-button { min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid var(--frame); border-radius: 3px; background: transparent; color: var(--accent-strong); font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; transition: background .2s, transform .2s; }
.nav-button:hover { background: var(--surface); transform: translateY(-1px); }
.page-dots { display: flex; gap: 2px; }
.page-nav.is-end .page-dots { display: none; }
.page-nav.is-end #pageBack { opacity: .5; }
.page-dot { width: 24px; height: 44px; padding: 0; border: 0; background: transparent; position: relative; }
.page-dot::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; translate: -50% -50%; border-radius: 50%; border: 1px solid var(--frame); background: transparent; transition: background .25s, scale .25s; }
.page-dot[aria-current="page"]::after { background: var(--accent); scale: 1.2; }
/* one fixed slot at the bottom: Skip animation first, then the page buttons, so nothing above ever moves */
.reveal-footer { flex: none; display: grid; align-items: center; min-height: 48px; }
.reveal-footer > * { grid-area: 1 / 1; }
.page-nav[hidden] { display: grid !important; visibility: hidden; }
.skip-bloom { justify-self: center; min-height: 44px; }

/* the small music button that stays on screen once the song has started */
.music-control { position: absolute; top: clamp(10px, 2.4vh, 26px); left: 50%; translate: -50% 0; z-index: 3; display: flex; align-items: center; gap: 8px; }
.music-control[hidden] { display: none; }
.volume-panel { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: color-mix(in srgb, var(--bg) 94%, transparent); opacity: 0; visibility: hidden; translate: 10px 0; pointer-events: none; transition: opacity .28s var(--ease-out), translate .28s var(--ease-out), visibility 0s .28s; }
.volume-panel.is-open { opacity: 1; visibility: visible; translate: 0 0; pointer-events: auto; transition-delay: 0s; }
.volume-readout { min-width: 3.6ch; text-align: right; font: 500 .8rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.volume-slider { --fill: 15%; -webkit-appearance: none; appearance: none; width: clamp(90px, 28vw, 140px); height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: none; }
.volume-slider::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) var(--fill), var(--line) var(--fill)); }
.volume-slider::-moz-range-track { height: 2px; background: var(--line); }
.volume-slider::-moz-range-progress { height: 2px; background: var(--accent); }
.volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border: 0; border-radius: 50%; background: var(--accent); }
.volume-slider::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); }
.volume-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.float-music { position: relative; flex: none; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 1px solid var(--frame); border-radius: 50%; background: var(--surface-strong); color: var(--accent); font-size: 1.3rem; line-height: 1; backdrop-filter: blur(4px); }
.float-music:hover { background: var(--surface); }
.float-music[data-sound="off"] { opacity: .75; }
.float-music[data-sound="off"]::after { content: ''; position: absolute; width: 24px; height: 1.5px; background: currentColor; rotate: -45deg; }

/* Original SVG bouquet (the 'svg' style); petal colours come from the theme preset */
.stem { stroke: url(#stemGradient); fill: none; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 480; stroke-dashoffset: 480; }
.leaf { fill: #86ad8f; opacity: 0; }
.flower-group .bloom { opacity: 0; transform-box: fill-box; transform-origin: center; }
.flower-group--one .petal { fill: var(--flower); }
.flower-group--two .petal { fill: var(--flower-secondary); }
.flower-group--three .petal { fill: var(--flower-tertiary); }
.flower-group--four .petal { fill: var(--flower-secondary); }
.flower-group--five .petal { fill: var(--flower); }
.flower-center { fill: #f5d48f; }
.flower-dot { fill: #dca45f; opacity: .85; }
.ribbon { opacity: 0; }
.tiny-stars { opacity: 0; }

/* Short on-page message (js/toast.js) */
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 20; width: max-content; max-width: min(92vw, 520px); margin: 0; padding: 12px 18px; border-radius: 3px; background: var(--toast-bg); color: var(--toast-ink); font-size: 1.05rem; line-height: 1.4; box-shadow: 0 12px 32px var(--shadow); overflow-wrap: anywhere; text-align: center; }

/* Wide or landscape screens: the bouquet on the left, the greeting on the right */
@media (min-aspect-ratio: 5/4) and (min-width: 560px) {
  .front-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: minmax(0, 1fr); gap: clamp(20px, 4vw, 68px); align-items: stretch; }
  .reveal-heading { font-size: clamp(2.2rem, min(5vw, 9vh), 4.8rem); }
  .signature { font-size: clamp(1.6rem, min(3vw, 5.4vh), 2.4rem); margin-top: clamp(4px, 1.4vh, 12px); }
  .graduate-icon { font-size: clamp(1.2rem, 3vh, 1.8rem); margin-bottom: clamp(2px, 1vh, 10px); }
}

/* The cover heading types itself in (js/app.js). An invisible full copy reserves the space. */
.type-stack { display: grid; }
.type-stack > * { grid-area: 1 / 1; }
.type-ghost { visibility: hidden; }
.type-live .cursor { display: inline-block; width: .55ch; height: 1em; margin-left: .1ch; vertical-align: -.12em; background: var(--accent); animation: blink .9s steps(2) infinite; }

/* ================== MINIMAL: near-black with red, monospace, no decoration ================== */
html[data-theme="minimal"] .card-decor,
html[data-theme="minimal"] .site-shell::before,
html[data-theme="minimal"] .site-shell::after,
html[data-theme="minimal"] .emblem,
html[data-theme="minimal"] .divider,
html[data-theme="minimal"] .graduate-icon { display: none; }
html[data-theme="minimal"] body { font-size: clamp(1rem, .95rem + .22vw, 1.12rem); line-height: 1.55; }
html[data-theme="minimal"] .site-shell { --corner: 0px; padding: max(18px, env(safe-area-inset-top)) clamp(18px, 5vw, 72px) max(14px, env(safe-area-inset-bottom)); }
html[data-theme="minimal"] :is(.eyebrow, .progress-label, .bouquet-kicker, .nav-button, .primary-button, .secondary-button, .text-button, .answer-button, .question-heading, .the-end, .signature, .display-heading, .reveal-heading, .fine-print, .answer-feedback, .toast) { font-family: var(--mono); }
html[data-theme="minimal"] :is(.display-heading, .reveal-heading, .signature) { text-shadow: none; word-spacing: 0; font-variant-ligatures: none; }
html[data-theme="minimal"] .display-heading { font-weight: 600; letter-spacing: -.02em; line-height: 1.3; font-size: clamp(1.2rem, min(5.6vw, 6.2vh), 3.2rem); margin-bottom: clamp(4px, 1vh, 10px); }
html[data-theme="minimal"] .reveal-heading { font: 600 clamp(1.3rem, min(6.2vw, 5.4vh), 3rem)/1.25 var(--mono); letter-spacing: -.02em; }
html[data-theme="minimal"] .signature { font-size: clamp(.95rem, min(3.6vw, 3.6vh), 1.35rem); letter-spacing: 0; line-height: 1.3; }
html[data-theme="minimal"] .eyebrow { font-weight: 500; letter-spacing: .14em; color: var(--muted); }
html[data-theme="minimal"] .bouquet-kicker { font-weight: 500; letter-spacing: .12em; color: var(--muted); }
html[data-theme="minimal"] .lead { font-style: normal; font-size: clamp(.95rem, min(1rem + .2vw, 2.4vh), 1.1rem); }
html[data-theme="minimal"] .fine-print { letter-spacing: 0; font-size: clamp(.78rem, 1.8vh, .88rem); }
html[data-theme="minimal"] .primary-button { background: var(--button-bg); border-color: transparent; box-shadow: none; border-radius: 2px; text-transform: none; letter-spacing: .01em; font-weight: 600; }
html[data-theme="minimal"] :is(.secondary-button, .nav-button) { border-color: var(--line); color: var(--ink); border-radius: 2px; text-transform: none; letter-spacing: .01em; font-weight: 500; }
html[data-theme="minimal"] :is(.secondary-button, .nav-button):hover { border-color: var(--accent); background: transparent; }
html[data-theme="minimal"] .text-button { text-transform: none; }
html[data-theme="minimal"] .quiz-card { border: 1px solid var(--line); outline: none; background: transparent; box-shadow: none; backdrop-filter: none; border-radius: 2px; }
html[data-theme="minimal"] .question-heading { font: 500 clamp(1.05rem, min(3.8vw, 4vh), 1.6rem)/1.35 var(--mono); margin-top: clamp(12px, 2.8vh, 26px); }
html[data-theme="minimal"] .question-subheading { font-style: normal; }
html[data-theme="minimal"] .answer-button { border-radius: 2px; font-weight: 500; font-size: clamp(.95rem, 2.4vh, 1.1rem); }
html[data-theme="minimal"] .answer-feedback { font-style: normal; font-size: clamp(.8rem, 2vh, .95rem); }
html[data-theme="minimal"] .flower-stage.is-ascii { border: 1px solid var(--line); outline: none; box-shadow: none; border-radius: 2px; }
html[data-theme="minimal"] .graduation-message { font-family: var(--serif); }
html[data-theme="minimal"] .end-note { font-family: var(--serif); }
html[data-theme="minimal"] .page-dot::after { border-color: var(--muted); }
html[data-theme="minimal"] .page-dot[aria-current="page"]::after { background: var(--accent); border-color: var(--accent); }
html[data-theme="minimal"] .music-control { left: auto; right: clamp(12px, 3vw, 24px); top: clamp(10px, 2vh, 20px); translate: none; }
html[data-theme="minimal"] .float-music { width: 40px; height: 40px; border-radius: 2px; border-color: var(--line); background: transparent; color: var(--ink); }
html[data-theme="minimal"] .float-music[data-sound="off"] { color: var(--muted); }
html[data-theme="minimal"] .float-music[aria-expanded="true"] { border-color: var(--accent); }
html[data-theme="minimal"] .toast { border-radius: 2px; font-size: .9rem; }
html[data-theme="minimal"] .cover-art > :nth-child(3) { animation: none; } /* the heading types itself instead */
/* the corner sound icon must never sit on top of the small label above the bouquet */
@media (max-width: 480px) { html[data-theme="minimal"] .bouquet-kicker { display: none; } }

