:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #17352f;
  background: #edf5f1;
  --pine: #153b34;
  --green: #17634f;
  --ink: #17352f;
  --line: #c4d7d0;
  --muted: #405953;
  --berry: #a53129;
  --cream: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
#app { max-width: 720px; margin: auto; padding: 28px 16px 40px; }
header {
  border: 1px solid var(--line); border-top: 6px solid var(--pine);
  border-radius: 0 0 12px 12px; padding: 24px; background: white;
}
.wordmark {
  display: flex; align-items: center; gap: .35em; margin: 0;
  font-family: Georgia, serif; font-size: clamp(2rem, 8vw, 3.55rem);
  line-height: 1.08; font-weight: 700; letter-spacing: -.065em;
}
.brand-mark {
  display: grid; place-items: center; flex: none; width: 1.05em; height: 1.27em;
  border-radius: .12em; background: var(--pine); color: white; font: 700 .8em Georgia, serif;
  letter-spacing: 0; transform: rotate(-7deg); box-shadow: .12em .12em 0 #bc4437;
}
.brand-accent { color: var(--berry); font-style: italic; }
.eyebrow { color: var(--muted); font-size: 1rem; margin: 0 0 12px; font-weight: 750; overflow-wrap: anywhere; }
.card { margin-top: 16px; padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
h2, h3, p { margin: 0; }
h2 { font-family: Georgia, serif; font-weight: 700; font-size: clamp(1.65rem, 5vw, 2.25rem); line-height: 1.08; letter-spacing: -.035em; }
h3 { font-size: 1.12rem; }
.stack { display: grid; gap: 16px; }
.muted { color: var(--muted); }
label { display: grid; gap: 6px; font-weight: 650; }
input, select, button { font: inherit; }
input:not([type=checkbox]), select {
  padding: 12px; width: 100%; border-radius: 10px; border: 1px solid #527d71; background: white; color: var(--ink);
}
input[type=checkbox] { width: 21px; height: 21px; accent-color: var(--green); flex: none; }
button { cursor: pointer; border-radius: 11px; border: 1px solid transparent; min-height: 48px; padding: 11px 16px;
  font-weight: 730; background: var(--green); color: white; }
button.secondary { background: white; color: var(--pine); border-color: #527d71; }
button.danger { color: var(--berry); }
button:disabled { opacity: .58; cursor: default; }
:focus-visible { outline: 3px solid #b13428; outline-offset: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row > button { flex: 1 1 auto; }
.check { display: flex; gap: 9px; align-items: center; min-height: 40px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0; padding: 8px 12px; }
legend { font-weight: 700; padding: 0 5px; }
.error { margin-top: 12px; color: var(--berry); font-weight: 700; }
.error:empty { display: none; }
.status { padding: 12px 14px; background: #e6f2eb; border-radius: 11px; }
.code { display: inline-block; color: var(--pine); font-weight: 850; font-size: 1.75rem; letter-spacing: .12em; overflow-wrap: anywhere; }
.countdown { text-align: center; font-size: clamp(2.65rem, 11vw, 5rem); font-weight: 800; color: var(--berry); font-variant-numeric: tabular-nums; }
ol { margin: 0; padding-left: 28px; }
li { padding: 7px 4px; }
li + li { border-top: 1px solid var(--line); }
.score { display: flex; justify-content: space-between; gap: 12px; overflow-wrap: anywhere; }
.score strong { flex: none; font-variant-numeric: tabular-nums; }
.quiz-title { margin-top: 12px; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.quiz-progress { margin-top: 8px; color: var(--muted); }
.timed-notice, .timed-warning {
  padding: 9px 13px; border-radius: 10px; background: #f9e8a9; color: #4d330a;
}
.timed-notice { width: fit-content; font-weight: 750; }
.timed-warning { border-inline-start: 4px solid #977015; }
.timed-warning p { margin-top: 4px; }
.response-time { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.answers { display: grid; gap: 10px; }
button.answer-option {
  min-height: clamp(62px, 10dvh, 88px); padding: 14px 18px; width: 100%;
  text-align: left; font-size: clamp(1.06rem, 3.9vw, 1.28rem); overflow-wrap: anywhere;
  background: #f5faf7; border: 2px solid #4c786b; box-shadow: 0 2px 0 #4c786b;
}
button.answer-option:hover:not(:disabled) { background: #e3f1e9; }
button.answer-option:active:not(:disabled) { box-shadow: none; }
.media { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; width: 100%; border-radius: 12px; background: #e6f2eb; }
.media img { width: 100%; height: 100%; object-fit: contain; }
.tiles { position: absolute; inset: 0; display: grid; grid-template: repeat(6, 1fr) / repeat(9, 1fr); }
.tile { background: var(--pine); border: 1px solid #527d71; }
audio { display: block; width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 8px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
td:last-child { width: 1%; }
.edit-question { display: grid; place-items: center; width: 44px; padding: 0; }
.edit-question svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
footer { margin: 14px 4px 0; color: var(--muted); font-size: .95rem; }
footer a { color: var(--pine); }
@media (max-width: 450px) { #app { padding-top: 14px; } .card, header { padding: 18px; } }

@media (max-height: 560px) { button.answer-option { min-height: 54px; padding-block: 9px; } }

.answer-feedback { padding: 12px 15px; border-left: 4px solid var(--green); background: #e6f2eb; }
.answer-feedback.incorrect { border-color: var(--berry); background: #fbede9; }
.answer-feedback strong { font-size: 1.15rem; }
.answer-feedback p { margin-top: 5px; }
#quick-cue { min-width: min(100%, 14rem); }

/* v2.0 identity, based on the selected navy-and-gold quiz-card logo. */
:root { --pine:#102b42; --green:#153c5c; --ink:#102b42; --line:#d1c9bb; --muted:#4e5962; --berry:#aa5338; --cream:#fffdfa; background:#f6f1e9; }
#app { max-width:760px; }
.new-header { background:#fff9f0; border-top:4px solid #daa333; border-radius:13px; padding:6px 12px 8px; }
.header-top { display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(44px, 1fr); gap:8px; align-items:center; }
.header-logo { display:block; width:clamp(116px, 37vw, 190px); height:65px; object-fit:contain; }
.new-header .eyebrow { margin:0; font-size:.86rem; letter-spacing:.025em; }
.sound-toggle { justify-self:end; min-height:44px; width:44px; padding:9px; }
.sound-toggle svg { display:block; width:100%; height:auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; stroke-linecap:round; }
.header-quiz { display:flex; align-items:baseline; flex-wrap:wrap; gap:0 12px; border-top:1px solid var(--line); padding-top:5px; margin-top:4px; }
.header-quiz .quiz-title { margin:0; font-size:1.05rem; line-height:1.25; }
.header-quiz .quiz-progress { margin:0; font-size:.85rem; }
.mode-options { display:flex; flex-wrap:wrap; column-gap:18px; }
.mode-options input { accent-color:var(--green); width:1.15rem; height:1.15rem; margin:0; }
.pause-instructions { font-size:1.15rem; font-weight:650; overflow-wrap:anywhere; }
.card { border-radius:20px; box-shadow:0 5px 18px #102b420c; }
h2 { font-family:ui-rounded, system-ui, sans-serif; letter-spacing:-.04em; }
button { border-radius:13px; }
button.answer-option {background:#fff8e9; border:2px solid #b1a390; color:#132e45; box-shadow:none; }
button.answer-option:focus-visible,button.answer-option:active { background:#f5e3bb; }
.countdown {
  min-height:clamp(112px, 24dvh, 220px);
  display:grid; place-items:center; overflow:hidden; padding:12px; border-radius:14px;
  font-size:clamp(2.7rem, 13vw, 7rem); line-height:1.1; font-weight:900;
}
.countdown span { display:block; }
.countdown[data-stage="go"] span { font-size:1.13em; }
.countdown-marquee { background:#102b42; color:#ffdf8f; border:4px dotted #f0bd52; }
.countdown-marquee span { font-family:Georgia, serif; animation:marquee-in .42s ease-out both; }
.countdown-marquee[data-stage="go"] { background:#f6cd70; color:#102b42; }
.countdown-cards { background:#fcf1dc; color:#102b42; }
.countdown-cards span {
  background:white; padding:.08em .22em; border:2px solid #102b42; border-radius:8px;
  transform:rotate(-3deg); box-shadow:5px 5px 0 #102b42; animation:card-in .42s ease-out both;
}
.countdown-cards[data-stage="go"] span { background:#f6cd70; }
.countdown-orbit { background:#16434d; color:#fff; }
.countdown-orbit span {
  border:2px solid #9dd4cb; border-radius:50%; padding:.14em .22em;
  box-shadow:0 0 0 7px #16434d, 0 0 0 9px #9dd4cb; animation:orbit-in .5s ease-out both;
}
.countdown-orbit[data-stage="go"] { background:#0d3132; color:#cbf0e6; }
.countdown-ribbon { background:#f6e8e1; color:#762d22; }
.countdown-ribbon span {
  transform:skew(-7deg); font-family:Georgia, serif; font-style:italic;
  border-block:3px solid currentColor; padding:.06em .18em; animation:ribbon-in .4s ease-out both;
}
.countdown-ribbon[data-stage="go"] { background:#762d22; color:white; }
.countdown-burst {
  color:#102b42;
  background:repeating-conic-gradient(from 8deg at 50% 50%, #fff7e1 0 15deg, #f8dda0 15deg 30deg);
}
.countdown-burst span {
  background:#fff7e1; padding:.08em .23em; border-radius:20px; border:2px solid #102b42;
  animation:burst-in .46s cubic-bezier(.22,.73,.3,1.24) both;
}
.countdown-burst[data-stage="go"] span { background:#102b42; color:#fff7e1; }
@keyframes marquee-in { from { opacity:.35; transform:translateY(.22em); } }
@keyframes card-in { from { opacity:.4; transform:translateX(-.7em) rotate(9deg); } }
@keyframes orbit-in { from { opacity:.4; transform:scale(.8); } }
@keyframes ribbon-in { from { opacity:.4; transform:skew(-7deg) translateX(.6em); } }
@keyframes burst-in { from { opacity:.4; transform:scale(.69) rotate(-7deg); } }
.participant-row { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; align-items: center; gap: 10px; }
.participant-row > span { overflow-wrap: anywhere; }
.participant-action { width: 100%; }
.review-image { max-width:100%; max-height:300px; object-fit:contain; border-radius:12px; }
#splash { position:fixed; inset:0; background:#faf6ec; z-index:999; display:grid; place-items:center; }
.splash-art { position:relative; width:min(100vw,56.28vh); aspect-ratio:941 / 1672; }
.splash-art img { display:block; width:100%; height:100%; }
.splash-petals {
  position:absolute; width:12%; height:auto; left:50%; top:78.65%;
  background:#faf6ec; border-radius:50%; transform:translate(-50%,-50%);
  animation:splash-spin 1.1s steps(10,end) infinite;
}
@keyframes splash-spin { to { transform:translate(-50%,-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .splash-petals, .countdown span { animation:none; }
}
#app { padding-top:14px; }
.card { margin-top:10px; padding:16px 18px; }
.stack { gap:12px; }
@media (max-width:450px) {
  #app { padding-inline:10px; }
  .card { padding:13px 14px; }
}

.managed-quizzes { margin:0; padding:0; list-style:none; }
.managed-quiz { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.managed-quiz-summary { min-width:0; overflow-wrap:anywhere; }
.managed-quiz-summary p { margin-top:2px; }

button.header-home { min-height:44px; padding:0; border:0; background:transparent; }
