:root{color-scheme:light;--ink:#252138;--purple:#29213d;--peach:#ffceaa;--muted:#544b67;--page:#faf8ff;--line:#d1c8e0;--deep:#533775}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:var(--page);font:1rem/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
h1,h2,h3,p,ol,ul{margin:0}
h1,h2,h3{line-height:1.12;letter-spacing:-.035em}
h1{font-size:clamp(2.4rem,6.7vw,4.65rem)}
h2{font-size:clamp(1.45rem,3vw,2rem)}
a{color:inherit;text-underline-offset:.2em}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.65}
:focus-visible{outline:3px solid #9061c5;outline-offset:3px}
.frame{width:min(1090px,calc(100% - 2.4rem));margin-inline:auto}
.mast,.hero{background:var(--purple);color:#fff}
.head,.foot{display:flex;justify-content:space-between;align-items:center;gap:.8rem}
.head{min-height:4.15rem;border-bottom:1px solid #675775}
.brand{display:inline-flex;align-items:center;gap:.55rem;font-weight:750;font-size:1.14rem;white-space:nowrap;text-decoration:none}
nav,.foot div{display:flex;flex-wrap:wrap;gap:.95rem;font-size:.9rem}
nav a{text-decoration:none}
nav a:hover{text-decoration:underline}
.hero-inner{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:3rem;align-items:center;padding-block:3.25rem 3.5rem}
.eyebrow{font-size:.81rem;letter-spacing:.14em;text-transform:uppercase;font-weight:760;color:var(--deep);margin-bottom:.6rem}
.hero .eyebrow{color:var(--peach)}
.intro{max-width:37rem;margin-top:.8rem;color:#ebdef2;font-size:1.14rem}
.actions,.controls{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}
.button{display:inline-block;border:1px solid #806d97;border-radius:8px;background:transparent;color:inherit;padding:.55rem .8rem;font-size:.94rem;text-decoration:none;font-weight:680;white-space:normal}
.button.strong{color:#2b2237;background:var(--peach);border-color:var(--peach)}
.button.secondary:hover,.button.quiet:hover{background:#ece3fc;color:var(--purple)}
.button.strong:hover{background:#fff0e3}
.hero-photo{margin:0;overflow:hidden;border:1px solid #755e87;border-radius:15px;background:#342944}
.hero-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:50% 62%}
.hero-photo figcaption{padding:.7rem .9rem;color:#ebdef2;font-size:.9rem}
.section{padding-block:1.6rem}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:.75rem}
.tiles a{padding:1rem;background:#fff;border:1px solid var(--line);border-radius:13px;display:grid;align-content:start;gap:.2rem;text-decoration:none}
.tiles a:hover strong{text-decoration:underline}
.tiles span{font-size:.91rem;color:var(--muted)}
.pack{display:flex;gap:1.15rem;align-items:center;justify-content:space-between;background:#ede6fa;border:1px solid var(--line);border-radius:15px;padding:1.25rem;margin-bottom:1.25rem}
.pack p:not(.eyebrow){margin-top:.5rem;max-width:43rem}
.pack a{flex:none}
.foot{border-top:1px solid var(--line);padding-block:1.05rem;font-size:.88rem}
.article{padding-block:2rem;width:min(850px,calc(100% - 2.4rem));min-height:65dvh}
.article h1{font-size:clamp(2.25rem,6vw,3.75rem);margin-bottom:.65rem}
.article h2{margin:1.2rem 0 .5rem}
.article p+p,.article ul,.article ol{margin-top:.65rem}
.article ul,.article ol{padding-inline-start:1.25rem}
.fine{color:var(--muted);font-size:.9rem;margin:.55rem 0}
.scores{width:min(1090px,calc(100% - 2.4rem))}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:11px;background:#fff;margin-top:.85rem}
table{border-collapse:collapse;width:100%;min-width:37rem}
th,td{padding:.47rem;text-align:left;border-bottom:1px solid var(--line)}
th{white-space:nowrap}
#team-table tr>:first-child{position:sticky;left:0;z-index:1;background:#f4eff9;box-shadow:1px 0 var(--line)}
td input,th input{width:4.35rem;max-width:100%;padding:.25rem .35rem;border:1px solid #9281a5;border-radius:5px;color:var(--ink);background:white}
td:first-child input{width:9rem}
.host-pack .tiles{grid-template-columns:repeat(2,minmax(0,1fr));margin-block:1.4rem}
.host-pack .tiles section{border:1px solid var(--line);border-radius:13px;padding:1rem;background:#fff}
.host-pack .tiles h2{margin-top:0}
.host-pack .tiles a{display:inline-block;padding:0;border:0;border-radius:0;text-decoration:underline}
.host-pack .tiles .button{padding:.55rem .8rem;border:1px solid #806d97;border-radius:8px;text-decoration:none}
.purchase-kit{margin-top:1.5rem}
.purchase-kit h2,.purchase-kit .actions{margin-top:0}
.purchase-kit .actions{flex:none;flex-direction:column}
.purchase-kit .checkout-action a{min-height:44px}
.leaderboard{list-style:none;padding:0!important}
.leaderboard li{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;overflow-wrap:anywhere;border-bottom:1px solid var(--line);padding:.45rem .25rem}
.tiebreak{margin-top:1.15rem;padding:1rem;background:white;border:1px solid var(--line);border-radius:.65rem}
.tiebreak-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.65rem;margin-top:.75rem}
.tiebreak-fields label{display:grid;gap:.25rem;font-weight:650;overflow-wrap:anywhere}
.tiebreak-fields input{width:100%;min-width:0;padding:.45rem .55rem;border:1px solid #9281a5;border-radius:5px;color:var(--ink);background:white}
#tiebreak-error:empty{margin:0}
#tiebreak-error{color:#99293d}
#tiebreak-result{font-weight:700;overflow-wrap:anywhere}
#leaderboard-outcome:empty{display:none}
#view-results{margin-top:.45rem}
.tie-decision{display:grid;justify-items:start;gap:.25rem;margin-top:1rem}
.tie-decision label{font-weight:650}
.tie-decision select{max-width:100%;min-height:44px;padding:.35rem .55rem;border:1px solid #9281a5;border-radius:5px;color:var(--ink);background:#fff;font:inherit}
.tie-decision .fine{margin:0}
.scoreboard-page.showing-results>.mast,.scoreboard-page.showing-results>.foot{display:none}
.results-sheet{width:min(44rem,calc(100% - 1.2rem));margin-block:clamp(1rem,4vw,2.5rem);padding:clamp(1rem,4vw,2rem);background:#fff;border:1px solid var(--line);border-radius:13px;overflow-wrap:anywhere}
.results-sheet h1{font-size:clamp(2rem,6vw,3.45rem)}
.results-quiz{margin-top:.35rem;color:var(--muted);font-weight:650}
.results-summary{margin-block:1.15rem;padding-block:.75rem;border-block:1px solid var(--line)}
.results-summary h2{color:var(--deep)}
#results-detail:not(:empty){margin-top:.35rem;color:var(--muted)}
.results-standings{min-width:0;table-layout:fixed}
.results-standings th,.results-standings td{white-space:normal;vertical-align:baseline}
.results-standings tr>:last-child{width:5.5rem;text-align:right;font-variant-numeric:tabular-nums}
.results-standings thead th{border-bottom-color:#9281a5}
.results-standings tbody th{font-weight:600}
.results-standings .winner-tag{display:inline-block;margin-inline-start:.45rem;color:var(--deep);font-size:.83em;font-weight:700}
.results-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1.25rem}
.results-actions button{min-height:44px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
@media(max-width:780px){.hero-inner{grid-template-columns:1fr;gap:1.25rem;padding-block:2rem}.hero-photo img{aspect-ratio:16/9}.tiles{grid-template-columns:1fr}.pack{align-items:start}.table-wrap{max-width:100%}}
@media(max-width:620px){.host-pack .tiles{grid-template-columns:1fr}}
@media(max-width:440px){.frame,.article,.scores{width:calc(100% - 1.2rem)}.head{min-height:3.6rem;gap:.35rem}.head nav{font-size:.79rem;justify-content:flex-end;gap:.35rem .6rem}.head nav a:first-child{display:none}.brand{font-size:.99rem}.foot,.pack{flex-direction:column;align-items:flex-start}.pack a{flex:none}}
@page quiz-results{size:A4;margin:14mm}
@media print{
  .scoreboard-page{color:#000;background:#fff}
  .scoreboard-page>:not(#results-view),.scoreboard-page .results-actions{display:none!important}
  .scoreboard-page #results-view{display:block!important;page:quiz-results;width:100%;margin:0;padding:0;border:0;border-radius:0;font:11pt/1.35 system-ui,sans-serif}
  .results-sheet h1{font-size:24pt}
  .results-sheet h2{font-size:15pt}
  .results-sheet .results-quiz,.results-summary h2,#results-detail:not(:empty),.results-standings .winner-tag{color:#000}
  .results-summary{margin-block:3mm;padding-block:2mm;break-after:avoid}
  .results-standings th,.results-standings td{padding:1.8mm 1mm;border-color:#777}
  .results-standings tr{break-inside:avoid}
}
