@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin.woff2?v=0c53525055c6") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #10132b;
  --surface: #1b2545;
  --text: #f4f5ff;
  --muted: #b7c0db;
  --accent: #65e3e3;
  --coral: #ff858e;
  --purple: #b29aff;
  --green: #8befb3;
  --line: #334166;
  --width: 1184px;
  --gutter: 40px;
  font-family: Manrope, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; isolation: isolate; background: radial-gradient(ellipse at 12% 22%, #242856 0%, transparent 48%), radial-gradient(ellipse at 95% 70%, #163449 0%, transparent 42%), var(--background); color: var(--text); font-size: 15px; line-height: 1.75; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: radial-gradient(circle, #a5b7ef80 1px, transparent 1.5px), radial-gradient(circle, #65e3e355 1px, transparent 1.5px), linear-gradient(#6473be08 1px, transparent 1px), linear-gradient(90deg, #6473be08 1px, transparent 1px); background-size: 157px 139px, 239px 211px, 48px 48px, 48px 48px; background-position: 28px 20px, 94px 80px, center top, center top; mask-image: linear-gradient(black, #0006); }
body > main { flex: 1; min-height: calc(100svh - 68px); min-height: calc(100dvh - 68px); }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(42px, 5vw, 66px); }
h2 { font-size: clamp(28px, 3vw, 40px); }
h3 { font-size: 21px; letter-spacing: -.025em; }
p { color: var(--muted); }
svg { display: block; max-width: 100%; }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.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; }
.container, .page-heading, .page-layout { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.accent { color: var(--accent); }
.eyebrow { font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lead { max-width: 660px; font-size: 18px; line-height: 1.8; }
.small-text { font-size: 12px; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px #8befb34d; flex-shrink: 0; }
.skip-link { position: fixed; left: 18px; top: -100px; background: var(--accent); color: var(--background); padding: 12px 20px; z-index: 20; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--background); }
main:focus { outline: none; }

/* Shared navigation stays available even before JavaScript loads. */
.site-header { position: relative; z-index: 10; pointer-events: none; }
.header-inner { max-width: 1360px; padding: 12px var(--gutter); margin-inline: auto; min-height: 68px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.menu-toggle, .site-menu { pointer-events: auto; }
.menu-toggle, .menu-close, .menu-heading, .menu-footer { display: none; }
.site-menu { position: static; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.site-menu:not([open]) { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.site-nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); }
.nav-ready .header-inner { flex-wrap: nowrap; }
.nav-ready .menu-toggle { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid #45557e; border-radius: 10px; background: #1b2545; color: var(--text); font-size: 11px; font-weight: 700; transition: border-color .18s, background .18s; }
.menu-toggle:hover, .menu-close:hover { border-color: var(--accent); color: var(--accent); }
.menu-lines { position: relative; display: block; width: 18px; height: 12px; border-block: 1px solid var(--accent); }
.menu-lines::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--accent); transform: translateY(-50%); }
.nav-ready .site-menu { position: fixed; inset: 0 auto auto 0; width: min(340px, calc(100vw - 24px)); height: 100dvh; max-height: 100dvh; max-width: none; margin: 0; padding: 28px; border: 0; border-right: 1px solid #677cc066; background: linear-gradient(150deg, #202b4c, #12172e 65%); color: var(--text); overflow-y: auto; box-shadow: 18px 0 90px #070a2155; }
.nav-ready .site-menu[open] { display: flex; flex-direction: column; animation: menu-enter .22s ease-out both; }
.site-menu::backdrop { background: rgb(5 8 27 / .65); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.nav-ready .menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.menu-heading h2 { font-size: 24px; }
.nav-ready .menu-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #10132b80; color: var(--text); font-size: 28px; line-height: 1; }
.nav-ready .site-nav { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 8px; margin-block: 22px 32px; }
.nav-ready .site-nav a { min-height: 54px; padding: 12px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 17px; transition: background .18s, border-color .18s; }
.nav-ready .site-nav a:hover { background: #65e3e30c; border-color: #65e3e333; }
.nav-ready .site-nav a[aria-current] { background: #65e3e319; border-color: #65e3e34d; color: var(--accent); }
.nav-ready .site-nav .icon { width: 22px; height: 22px; }
.nav-ready .menu-footer { display: block; margin-top: auto; padding-top: 24px; font-size: 11px; }
body.menu-open { overflow: hidden; }
@keyframes menu-enter { from { transform: translateX(-24px); } to { transform: translateX(0); } }

/* Home: a compact welcome with two direct ways into the course. */
.home-page main { flex: 1; display: flex; }
.welcome-section { position: relative; width: 100%; display: flex; align-items: center; overflow: hidden; padding-block: 40px; }
.welcome-content { position: relative; z-index: 1; text-align: center; animation: enter .65s ease-out both; }
.welcome-content .eyebrow { margin-bottom: 20px; color: #b8c5eb; font-size: 11px; }
.welcome-title { max-width: 1050px; margin-inline: auto; font-size: clamp(36px, 5vw, 68px); line-height: 1.17; letter-spacing: -.045em; }
.welcome-title .accent { display: inline-block; padding-bottom: .06em; color: var(--accent); background: linear-gradient(100deg, #65e3e3 10%, #a8d9f5 41%, #c6a6ff 64%, #ff858e 93%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.welcome-subtitle { margin-top: 18px; font-size: 17px; }
.welcome-content .button-group { justify-content: center; gap: 16px; margin-top: 28px; }
.welcome-symbol { width: 92px; height: 60px; margin: 28px auto 14px; color: var(--purple); filter: drop-shadow(0 0 18px #b29aff40); }
.welcome-status { display: flex; justify-content: center; align-items: center; gap: 9px; font-size: 11px; }
.home-page .footer-inner { padding-block: 20px 16px; }
.home-page .footer-bottom { padding-block: 12px 16px; }
.button-group { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 12px; background: var(--accent); color: #101b31; font-size: 13px; font-weight: 800; text-decoration: none; line-height: 1.6; box-shadow: 0 4px 0 #2b838b66, 0 6px 24px #65e3e315; transition: background .18s, box-shadow .18s, transform .18s; }
.button:hover { background: #9bf6ed; border-color: #bbfff6; color: #101b31; transform: translateY(-3px); box-shadow: 0 7px 0 #2b838b55, 0 10px 28px #65e3e32b; }
.button:active { transform: translateY(1px); box-shadow: 0 1px 0 #2b838b55; }
.button-secondary { background: #1b2545; color: var(--text); border-color: #61709b; box-shadow: 0 4px 0 #090d2180; }
.button-secondary:hover { background: #27355b; border-color: var(--accent); color: var(--accent); box-shadow: 0 7px 0 #090d2180, 0 10px 25px #65e3e312; }
.button-repository { background: linear-gradient(105deg, #61e2e2, #8fc1f7); border-color: #a5f4f2; }
.button-dashboard { background: linear-gradient(105deg, #8befb3, #67d9b0); color: #102a29; border-color: #b0fbd0; box-shadow: 0 4px 0 #3d8b7166, 0 6px 24px #8befb318; }
.button-dashboard:hover { background: linear-gradient(105deg, #b0fbd0, #8befb3); color: #102a29; border-color: #d3ffe4; box-shadow: 0 7px 0 #3d8b7155, 0 10px 28px #8befb32b; }
.button > span { font-size: 18px; line-height: 1; }
.button > .icon, .link-arrow > .icon { width: 18px; height: 18px; }
.icon-link { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; }
.icon-link > span { min-width: 0; overflow-wrap: anywhere; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; }
.link-arrow { display: inline-flex; align-items: center; gap: 16px; color: var(--accent); font-size: 12px; font-weight: 700; text-decoration: none; min-height: 44px; }
.link-arrow span { transition: transform .18s; font-size: 17px; }
.link-arrow:hover span { transform: translate(2px, -2px); }
.link-arrow:hover { text-decoration: underline; }

/* The controller is both a playful invitation and a five-click discovery. */
.controller-trigger { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 24px auto 16px; padding: 10px 24px; border: 0; border-radius: 24px; background: transparent; color: var(--purple); touch-action: manipulation; }
.controller-art { display: block; filter: drop-shadow(0 8px 20px #a28aff48); animation: controller-float 3.6s ease-in-out infinite; transition: filter .2s; }
.controller-art svg { width: 100px; height: 68px; margin: 0; }
.controller-art svg path:first-child { fill: #9e83ee; stroke: #d6c8ff; }
.controller-art svg path + path { stroke: #332552; stroke-width: 3; }
.controller-art svg circle { fill: #332552; }
.controller-trigger:hover .controller-art { filter: drop-shadow(0 8px 26px #b29aff99); }
.controller-trigger.is-hit .controller-art { animation: controller-hit .25s ease-out; }
.controller-dots { display: flex; align-items: center; justify-content: center; gap: 7px; height: 7px; }
.controller-dots i { display: block; width: 5px; height: 5px; border: 1px solid #b29aff80; border-radius: 50%; transition: background .15s, box-shadow .15s, transform .15s; }
.controller-dots i.is-lit { background: var(--purple); box-shadow: 0 0 9px #b29aff99; transform: scale(1.35); }
.controller-trigger.is-unlocked .controller-art { color: var(--green); filter: drop-shadow(0 0 22px #8befb377); }
.ambient-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ambient-field span { position: absolute; width: 4px; height: 4px; border-radius: 50%; opacity: .38; background: var(--accent); box-shadow: 0 0 10px currentColor; animation: particle-drift 9s ease-in-out infinite alternate; }
.ambient-field span:nth-child(6n+1) { left: 8%; top: 25%; color: var(--accent); animation-delay: -2s; }
.ambient-field span:nth-child(6n+2) { left: 19%; top: 69%; color: var(--coral); background: var(--coral); animation-delay: -5s; }
.ambient-field span:nth-child(6n+3) { left: 43%; top: 13%; color: var(--purple); background: var(--purple); animation-delay: -1s; }
.ambient-field span:nth-child(6n+4) { left: 71%; top: 83%; color: var(--accent); animation-delay: -7s; }
.ambient-field span:nth-child(6n+5) { left: 86%; top: 36%; color: var(--purple); background: var(--purple); animation-delay: -3s; }
.ambient-field span:nth-child(6n) { left: 94%; top: 78%; color: var(--coral); background: var(--coral); animation-delay: -6s; }
.ambient-field span:nth-child(n+7) { margin-left: -6%; margin-top: 7%; width: 2px; height: 2px; animation-duration: 13s; }
.ambient-field span:nth-child(n+13) { margin-left: 7%; margin-top: -9%; width: 3px; height: 3px; animation-duration: 11s; }
.arcade-burst { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
@keyframes controller-float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-8px) rotate(5deg); } }
@keyframes controller-hit { 0%, 100% { transform: scale(1); } 40% { transform: scale(.82) rotate(-10deg); } 75% { transform: scale(1.12) rotate(5deg); } }
@keyframes particle-drift { from { transform: translateY(8px); opacity: .18; } to { transform: translateY(-18px); opacity: .6; } }

/* Course pages keep the playful accents around clear, readable information. */
.page-heading { padding-block: 48px 32px; border-bottom: 1px solid #6576b34d; }
.page-heading h1 { margin-block: 16px 20px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 100px; padding-block: 48px 88px; }
.prose { min-width: 0; }
.prose section + section { margin-top: 46px; }
.prose .section-heading { font-size: 23px; margin-bottom: 20px; }
.prose p + p { margin-top: 18px; }
.prose p { font-size: 14px; line-height: 1.9; }
.prose p a { color: var(--text); }
.prose p a:hover { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 700; }
.prose .button { margin-top: 24px; }
.rule-list { list-style: none; margin: 24px 0 0; padding: 0; }
.rule-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-block: 22px; border-top: 1px solid var(--line); }
.rule-number { color: var(--accent); font-size: 12px; padding-top: 3px; }
.rule-row h3 { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.rule-row p { font-size: 13px; }
.page-layout > aside { align-self: start; position: sticky; top: 125px; }
aside .section-heading { font-size: 14px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 22px; }
.resource-list { display: flex; flex-direction: column; }
.resource-list a { padding-block: 17px; text-decoration: none; border-bottom: 1px solid var(--line); }
.resource-list a:first-child { padding-top: 0; }
.resource-list span { display: block; }
.resource-list strong { font-size: 12px; font-weight: 600; }
.resource-list small { font-size: 11px; color: var(--muted); }
.note { border-left: 2px solid var(--accent); padding-left: 17px; font-size: 12px; line-height: 1.9; margin-block: 24px; }
.prose p.note { font-size: 12px; }
aside dl { margin: 0; }
aside dt { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 20px; }
aside dd { margin: 5px 0 0; font-size: 13px; }
.contact-heading, .syllabus-heading,
.contact-content, .syllabus-content { width: min(760px, calc(100% - var(--gutter) * 2)); }
.dashboard-heading, .contact-heading, .syllabus-heading { padding-block: 48px 28px; }
.dashboard-heading h1, .contact-heading h1, .syllabus-heading h1 { margin: 0; font-size: clamp(36px, 4vw, 50px); }
.contact-content { padding-block: 32px 48px; }
.contact-list { margin: 0 0 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.contact-list .contact-person { min-width: 0; margin: 0; padding: 24px; border: 1px solid #65e3e34d; border-top: 3px solid var(--accent); border-radius: 16px; background: linear-gradient(145deg, #1b3349, #1a2140); }
.contact-list .contact-person:nth-child(2) { border-color: #b29aff55; border-top-color: var(--purple); background: linear-gradient(145deg, #2b2b50, #1a2140); }
.person-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 18px; border: 1px solid #65e3e355; border-radius: 14px; background: #65e3e317; color: var(--accent); }
.person-icon .icon { width: 27px; height: 27px; }
.contact-person:nth-child(2) .person-icon { background: #b29aff19; border-color: #b29aff55; color: var(--purple); }
.contact-person h2 { font-size: 22px; line-height: 1.3; margin-block: 12px 18px; }
.contact-person p { font-size: 13px; }
.contact-person p + p { margin-top: 8px; }
.contact-person p a { display: inline-flex; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: 12px; }
.contact-person p a .icon { width: 16px; height: 16px; }
.contact-person .eyebrow { font-size: 9px; color: var(--accent); min-height: 30px; }
.contact-person:nth-child(2) .eyebrow { color: var(--purple); }
.contact-person .link-arrow { font-size: 11px; margin-top: 8px; }
.contact-group { padding: 26px; border: 1px solid #ff858e40; border-radius: 16px; background: linear-gradient(120deg, #ff858e0c, #1b2545aa); }
.contact-group h2 { font-size: 24px; margin-bottom: 12px; }
.contact-group p { max-width: 560px; font-size: 14px; }
.contact-group .button { margin-top: 20px; }
.syllabus-content { padding-block: 32px 48px; }
.syllabus-document { padding: 36px 26px; border: 1px solid #b29aff55; border-radius: 18px; background: linear-gradient(145deg, #272a50, #1a2541); text-align: center; box-shadow: 0 14px 50px #090d2126; }
.syllabus-icon { width: 58px; height: 68px; margin-inline: auto; color: var(--purple); filter: drop-shadow(0 0 16px #b29aff33); }
.syllabus-document h2 { margin-top: 20px; font-size: 26px; line-height: 1.3; }
.syllabus-document p { margin-top: 12px; font-size: 14px; }
.syllabus-document .button { margin-top: 24px; }
.syllabus-document p.small-text { max-width: 490px; margin: 24px auto 0; font-size: 12px; }
.disclosure { border-block: 1px solid var(--line); margin-top: 24px; }
.disclosure summary { padding-block: 18px; cursor: pointer; color: var(--text); font-weight: 600; }
.disclosure-body { padding-bottom: 24px; }

/* A visible welcome introduces three independently expandable sections. */
.page-layout.instructions-layout { display: block; width: min(900px, calc(100% - var(--gutter) * 2)); }
.instructions-heading { width: min(900px, calc(100% - var(--gutter) * 2)); }
.instructions-welcome { margin-bottom: 28px; padding: 26px; border: 1px solid #65e3e33b; border-radius: 16px; background: linear-gradient(120deg, #65e3e30a, #1b254580); scroll-margin-top: 120px; }
.instructions-welcome h2 { font-size: 28px; line-height: 1.25; margin-bottom: 16px; }
.instructions-welcome h2 .icon { width: 28px; height: 28px; margin-right: 7px; color: var(--accent); }
.prose ul, .prose ol:not(.rule-list) { color: var(--muted); font-size: 14px; }
.prose li + li { margin-top: 8px; }
.prose .instructions-welcome p + p { margin-top: 14px; }
.prose .instructions-welcome .previous-course { display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; margin-top: 20px; padding-top: 12px; border-top: 1px solid #65e3e32b; }
.previous-course > span { font-size: 11px; }
.prose .instruction-panel {
  --panel-accent: #b29aff;
  --panel-surface: linear-gradient(135deg, #302541, #211b34);
  --muted: #d0d6e6;
  --panel-line: #b29aff55;
  --panel-header: linear-gradient(110deg, #4a3b7e, #36345f);
  border: 1px solid var(--panel-line);
  border-radius: 14px;
  background: var(--panel-surface);
  scroll-margin-top: 120px;
}
.prose .instruction-panel + .instruction-panel { margin-top: 16px; }
.prose .instruction-panel--disclaimer { --panel-accent: #ffadb2; --panel-surface: linear-gradient(135deg, #3a2530, #291d29); --panel-line: #ff858e66; --panel-header: linear-gradient(110deg, #71384d, #4b2e49); }
.prose .instruction-panel--grading { --panel-accent: #8af4ed; --panel-surface: linear-gradient(135deg, #193b44, #152a35); --panel-line: #65e3e366; --panel-header: linear-gradient(110deg, #1e6370, #244658); }
.instruction-panel > summary { padding: 22px 24px; list-style: none; cursor: pointer; border-radius: 13px; background: var(--panel-header); transition: filter .18s; }
.instruction-panel > summary::-webkit-details-marker { display: none; }
.instruction-panel > summary::marker { content: ""; }
.instruction-panel > summary:hover, .instruction-panel > summary:focus-visible { filter: brightness(1.15); }
.prose .instruction-panel > summary h2 { display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: 16px; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; text-wrap: initial; }
.instruction-panel .panel-number { display: flex; align-self: start; align-items: center; padding-top: 4px; color: var(--panel-accent); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.instruction-panel .panel-number .icon { width: 22px; height: 22px; }
.instruction-panel .panel-label { min-width: 0; overflow-wrap: anywhere; }
.instruction-panel .panel-description { display: block; margin-top: 6px; color: #dee4f4; font-size: 11px; font-weight: 500; line-height: 1.7; letter-spacing: 0; }
.instruction-panel .panel-indicator { position: relative; width: 20px; height: 20px; color: var(--panel-accent); }
.instruction-panel .panel-indicator::before, .instruction-panel .panel-indicator::after { content: ""; position: absolute; left: 3px; top: 9px; width: 14px; height: 2px; background: currentColor; }
.instruction-panel .panel-indicator::after { transform: rotate(90deg); transition: transform .18s; }
.instruction-panel[open] .panel-indicator::after { transform: rotate(0); }
.instruction-panel[open] > summary { border-bottom: 1px solid var(--panel-line); border-radius: 13px 13px 0 0; }
.instruction-panel-body { padding: 24px; overflow-wrap: anywhere; }
.instruction-panel-body > h3 { margin-top: 20px; margin-bottom: 10px; font-size: 17px; line-height: 1.4; }
.instruction-panel-body h3, .prose .instruction-panel-body strong, .prose .instruction-panel-body a:not(.button) { color: var(--panel-accent); }
.prose .instruction-panel-body a:not(.button):hover { color: var(--text); }
.prose .instruction-panel-body .button { background: var(--panel-accent); color: #101b31; border-color: var(--panel-accent); box-shadow: 0 4px 0 #090d2180; }
.prose .instruction-panel-body .button:hover { filter: brightness(1.1); }
.instruction-panel-body li::marker { color: var(--panel-accent); }
.instruction-panel-body .rule-row { border-color: var(--panel-line); }
.instruction-panel-body .rule-number { color: var(--panel-accent); }
.instruction-summary { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); }
.instruction-summary h2, .instruction-summary h3 { margin-bottom: 10px; font-size: 20px; line-height: 1.4; }
.prose .instruction-summary p, .instruction-summary li { font-size: 13px; }
.instruction-summary ul { margin: 12px 0 0; padding-left: 18px; }
.instruction-summary li + li { margin-top: 6px; }
.instruction-panel .instruction-summary { border-color: var(--panel-line); border-left-color: var(--panel-accent); background: rgb(0 0 0 / .1); }
.instructions-help { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.instructions-help h2 { margin-bottom: 12px; font-size: 22px; }
.prose .instructions-help p { font-size: 13px; }
.instructions-help .link-arrow { margin-right: 24px; }
.instructions-help .button { margin-top: 0; }

/* The dashboard keeps the selected week and its current status together. */
.dashboard-layout { padding-block: 28px 54px; }
.week-workspace { min-width: 0; }
.dashboard-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.week-toolbar { display: flex; align-items: center; flex-shrink: 0; margin-left: auto; }
.week-toolbar > label { color: var(--muted); font-size: 12px; font-weight: 600; }
.week-select-wrap { position: relative; width: 160px; max-width: 100%; }
.week-select-wrap select { display: block; width: 100%; min-height: 48px; appearance: none; padding: 10px 42px 10px 16px; border: 1px solid #8c79c2; border-radius: 12px; background: #282b4c; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 #090d214d; }
.week-select-wrap select:hover { border-color: var(--accent); }
.week-select-wrap select:focus-visible { border-color: var(--accent); }
.week-select-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-60%); color: var(--purple); font-size: 20px; line-height: 1; pointer-events: none; }
.week-select-wrap.is-enhanced { width: 186px; }
.week-select-wrap.is-enhanced .week-select-arrow { display: none; }
.week-picker-button { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid #b29aff8c; border-radius: 14px; background: linear-gradient(125deg, #393256, #292d4f); color: var(--text); box-shadow: 0 4px 0 #10132b99, 0 5px 24px #b29aff14; font-size: 14px; font-weight: 800; line-height: 1.4; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; }
.week-picker-button:hover { border-color: #d3c3ff; background: linear-gradient(125deg, #473d69, #34395f); box-shadow: 0 5px 0 #10132b99, 0 8px 28px #b29aff26; transform: translateY(-1px); }
.week-picker-button:active { transform: translateY(2px); box-shadow: 0 1px 0 #10132b99; }
.week-picker-button[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 4px 0 #10132b99, 0 0 0 3px #65e3e314; }
.week-picker-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid #b29aff40; border-radius: 9px; background: #b29aff17; color: #c4b1ff; }
.week-picker-icon .icon { width: 19px; height: 19px; }
.week-picker-label { min-width: 0; white-space: nowrap; }
.week-picker-chevron { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; margin-left: auto; color: var(--purple); transition: transform .18s; }
.week-picker-chevron .icon { width: 18px; height: 18px; }
.week-picker-button[aria-expanded="true"] .week-picker-chevron { color: var(--accent); transform: rotate(180deg); }
.week-picker-list { position: absolute; z-index: 6; top: calc(100% + 12px); right: 0; width: 220px; max-width: calc(100vw - 44px); max-height: 300px; margin: 0; padding: 8px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #9e8bd373; border-radius: 15px; background: #1b2240; box-shadow: 0 14px 38px #070a2199, 0 0 25px #b29aff15; list-style: none; scrollbar-width: thin; scrollbar-color: #8c79c2 #1b2240; animation: week-picker-enter .16s ease-out; }
.week-picker-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.4; text-align: left; transition: background .15s, border-color .15s; }
.week-picker-option + .week-picker-option { margin-top: 4px; }
.week-picker-option[aria-selected="true"] { border-color: #b29aff4d; background: linear-gradient(110deg, #353455, #203d4b); color: var(--text); }
.week-picker-option:hover, .week-picker-option.is-active { border-color: #65e3e38c; background: #254456; color: var(--text); }
.week-option-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: #b29aff12; color: var(--purple); }
.week-option-icon .icon { width: 18px; height: 18px; }
.week-option-label { min-width: 0; }
.week-option-check { display: flex; align-items: center; margin-left: auto; color: var(--accent); opacity: 0; }
.week-option-check .icon { width: 18px; height: 18px; }
.week-picker-option[aria-selected="true"] .week-option-check { opacity: 1; }
@keyframes week-picker-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.week-panel { min-width: 0; }
.course-launch, .assignment-upload-notice { margin-top: 28px; padding: 34px 22px; border: 1px dashed #6576b355; border-radius: 16px; background: #1b254540; text-align: center; }
.course-launch-status h2 { margin-bottom: 8px; font-size: 18px; line-height: 1.4; letter-spacing: -.02em; }
.course-launch [data-launch-message], .assignment-upload-notice p { max-width: 490px; margin-inline: auto; font-size: 13px; }
.course-start-date { color: var(--muted); font-size: 12px; }
.course-start-date time { font-weight: 600; }
.course-launch > .course-start-date + .course-launch-status,
.course-launch > .course-launch-status + .course-start-date { margin-top: 16px; }
.course-countdown { display: flex; align-items: center; gap: 16px; width: 380px; min-width: 0; padding: 17px 20px; border: 1px solid #65e3e36b; border-radius: 16px; background: linear-gradient(120deg, #1c3e51, #1e2c4c); color: var(--accent); text-align: center; box-shadow: 0 4px 0 #0a152c88, 0 8px 30px #65e3e30c; transition: background .18s, border-color .18s, transform .12s, box-shadow .18s; touch-action: manipulation; }
.course-countdown:hover { background: linear-gradient(120deg, #255267, #29395f); border-color: var(--accent); box-shadow: 0 5px 0 #0a152c88, 0 8px 30px #65e3e326; }
.course-countdown:active { transform: scale(.975); }
.course-countdown.is-hit { animation: countdown-hit .2s ease-out; }
.course-countdown > .icon { width: 24px; height: 24px; }
.countdown-readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; flex: 1; min-width: 0; }
.countdown-content { flex: 1; min-width: 0; }
.countdown-target { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.countdown-unit { min-width: 0; }
.countdown-unit strong { display: block; color: var(--accent); font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.04em; text-shadow: 0 0 18px #65e3e333; }
.countdown-unit > span { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.course-launch.is-started .course-launch-status { margin-top: 24px; }
.course-launch.is-started .course-launch-status h2 { color: var(--accent); }
.timer-dialog { position: fixed; width: min(440px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 48px 32px 34px; border: 1px solid #b29aff80; border-radius: 22px; background: radial-gradient(ellipse at top left, #4c3666, transparent 75%), #1c2545; color: var(--text); overflow-y: auto; text-align: center; box-shadow: 0 24px 100px #070a21b3, 0 0 40px #b29aff1a; }
.timer-dialog[open] { animation: timer-dialog-enter .18s ease-out both; }
.timer-dialog::backdrop { background: rgb(5 8 27 / .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.timer-dialog-close { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #8493c366; border-radius: 10px; background: #10132b80; color: var(--text); }
.timer-dialog-close:hover { color: var(--accent); border-color: var(--accent); }
.timer-dialog-icon { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; margin-inline: auto; padding: 15px; border: 1px solid #ff858e66; border-radius: 20px; background: #ff858e1a; color: var(--coral); transform: rotate(-8deg); }
.timer-dialog-icon .icon { width: 100%; height: 100%; }
.timer-dialog h2 { margin-block: 24px 12px; font-size: 30px; line-height: 1.2; }
.timer-dialog-detail { font-size: 13px; line-height: 1.8; }
body.timer-dialog-open, body.checklist-confirm-open { overflow: hidden; }
.checklist-confirm-dialog { padding: 32px; }
.checklist-confirm-dialog h2 { margin-top: 0; }
.checklist-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.checklist-confirm-actions .button { min-width: 0; }
@keyframes timer-dialog-enter { from { transform: translateY(8px); } to { transform: translateY(0); } }
@keyframes countdown-hit { 0%, 100% { transform: scale(1); } 45% { transform: scale(.965); } 75% { transform: scale(1.015); } }

/* A short, replayable arcade round; the course itself stays front and center. */
.challenge-dialog { position: fixed; width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 32px; overflow-y: auto; border: 1px solid #b29aff99; border-radius: 24px; background: radial-gradient(ellipse at 50% 0, #4b3b70, transparent 65%), #1b2344; color: var(--text); text-align: center; box-shadow: 0 24px 100px #070a21b3, 0 0 50px #b29aff22; }
.challenge-dialog[open] { animation: timer-dialog-enter .2s ease-out both; }
.challenge-dialog::backdrop { background: #05081bc2; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.challenge-close { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #8493c366; border-radius: 10px; background: #10132b80; color: var(--text); }
.challenge-close:hover { border-color: var(--accent); color: var(--accent); }
.challenge-emblem { display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; margin: 6px auto 18px; border: 1px solid #b29aff80; border-radius: 20px; background: #b29aff22; color: var(--purple); transform: rotate(-7deg); }
.challenge-emblem .icon { width: 36px; height: 36px; }
.challenge-header .eyebrow { color: var(--green); font-size: 9px; }
.challenge-header h2 { margin-top: 8px; font-size: 32px; }
.challenge-instructions { margin-top: 18px; font-size: 14px; }
.challenge-start, .challenge-replay { min-width: 170px; margin-top: 24px; background: var(--green); border-color: #c2ffda; color: #112c2b; box-shadow: 0 4px 0 #3d8b7166, 0 6px 28px #8befb322; }
.challenge-start:hover, .challenge-replay:hover { background: #b0fbd0; color: #112c2b; border-color: #ddffeb; }
.challenge-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 20px; }
.challenge-time, .challenge-score { padding: 12px; border: 1px solid #65e3e34d; border-radius: 14px; background: #10132b66; }
.challenge-score { border-color: #b29aff4d; }
.challenge-time > span, .challenge-score > span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.challenge-time .challenge-time-value, .challenge-score .challenge-score-value { color: var(--accent); font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.challenge-score .challenge-score-value { color: var(--purple); }
.challenge-time.is-urgent { border-color: var(--coral); background: #ff858e14; }
.challenge-time.is-urgent .challenge-time-value { color: var(--coral); }
.challenge-target { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: min(190px, 100%); min-height: 164px; margin: 0 auto; padding: 24px; border: 2px solid #e2d9ff; border-radius: 32px; background: linear-gradient(135deg, #b29aff, #8a85f0); color: #20173e; box-shadow: 0 7px 0 #7150b5, 0 10px 40px #b29aff40; font-size: 24px; font-weight: 800; letter-spacing: .04em; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: background .12s, box-shadow .12s; }
.challenge-target .icon { width: 52px; height: 52px; }
.challenge-target:hover { background: linear-gradient(135deg, #c7b6ff, #a5a0ff); }
.challenge-target:active, .challenge-target.is-hit { transform: translateY(5px) scale(.97); box-shadow: 0 2px 0 #7150b5, 0 3px 24px #b29aff30; }
.challenge-key-hint { margin-top: 18px; font-size: 10px; }
.challenge-result { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 16px; }
.challenge-result .challenge-result-score { color: var(--green); font-size: 78px; font-weight: 800; line-height: 1.2; letter-spacing: -.06em; text-shadow: 0 0 26px #8befb333; }
.challenge-result > span { font-size: 16px; }
.challenge-result-rate { margin-top: 2px; font-size: 12px; }
.challenge-feedback { margin-top: 18px; color: var(--text); font-size: 16px; font-weight: 700; }
.challenge-best { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #8493c333; font-size: 11px; }
.challenge-best .icon { width: 17px; height: 17px; color: #ffd58b; }
.challenge-best strong { margin-left: 5px; color: #ffd58b; font-size: 14px; }
.challenge-session-note { margin-top: 14px; font-size: 11px; }
.challenge-dialog.is-playing .challenge-emblem { display: none; }
.challenge-dialog.is-playing .challenge-header { margin-top: 8px; }
.challenge-dialog.is-playing .challenge-header h2 { font-size: 25px; }
body.challenge-open { overflow: hidden; }

.empty-state { min-height: 280px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 22px; padding-block: 28px 36px; }
.empty-marker { font-size: 28px; color: var(--accent); letter-spacing: -.06em; line-height: 1.4; }
.empty-state h2 { font-size: 31px; margin-block: 18px; }
.empty-state p:not(.eyebrow) { font-size: 14px; max-width: 460px; }
.empty-state .link-arrow { margin-top: 15px; }
.assignment { padding-block: 26px 36px; border-bottom: 1px solid var(--line); }
.assignment:first-child { padding-top: 28px; }
.assignment-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 12px; }
.point-total { font-size: 11px; color: var(--accent); }
.assignment h2 { font-size: 23px; }
.assignment h2 a { text-decoration: none; }
.assignment-file { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid #65e3e35c; border-radius: 14px; background: #65e3e30a; transition: border-color .18s, background .18s; }
.assignment-file:hover { border-color: var(--accent); background: #65e3e314; }
.assignment-file > .icon:first-child { color: var(--accent); width: 26px; height: 26px; }
.assignment-file > .icon:last-child { margin-left: auto; width: 18px; height: 18px; color: var(--accent); }
.assignment-file span { line-height: 1.4; }
.assignment-deadline { margin-top: 12px; font-size: 12px; }
.assignment-parts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; padding: 0; list-style: none; }
.assignment-parts li { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.assignment-parts strong { white-space: nowrap; font-size: 12px; }
.past-week-notice { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px solid #65e3e380; border-radius: 12px; background: #173b44; color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.6; }
.past-week-notice > .icon { width: 22px; height: 22px; color: var(--accent); }
.past-week-notice > span { min-width: 0; overflow-wrap: anywhere; }
.assignment-checklist { position: relative; margin-block: 24px; }
.checklist-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.checklist-heading h3 { font-size: 18px; }
.checklist-progress { color: var(--purple); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.checklist-items, .checklist-children, .checklist-group-items { margin: 0; padding: 0; list-style: none; }
.checklist-item + .checklist-item { margin-top: 8px; }
.checklist-task { display: flex; align-items: center; border: 1px solid #b29aff40; border-radius: 12px; background: #1c2545; transition: border-color .18s, background .18s; }
.checklist-task:hover { border-color: var(--purple); background: #282d50; }
.checklist-row { display: grid; flex: 1; min-width: 0; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 16px; cursor: pointer; }
.checklist-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); cursor: pointer; }
.checklist-label { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.checklist-title { display: block; color: var(--text); font-weight: 600; }
.checklist-description { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.checklist-row:has(input:checked) .checklist-title { color: var(--green); }
.checklist-points { color: var(--purple); font-size: 12px; white-space: nowrap; }
.checklist-link { display: flex; align-items: center; justify-content: center; align-self: stretch; flex-shrink: 0; width: 52px; min-height: 44px; border-left: 1px solid #b29aff26; border-radius: 0 12px 12px 0; color: var(--accent); }
.checklist-link:hover { background: #65e3e314; }
.checklist-link .icon { width: 18px; height: 18px; }
.assignment-resources { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.assignment-resource { color: var(--text); text-decoration: none; }
.assignment-resource > .checklist-label { flex: 1; min-width: 0; padding: 15px 16px; }
.assignment-resource:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.checklist-children { margin: 8px 0 16px 26px; padding-left: 16px; border-left: 2px solid #b29aff40; }
.checklist-children .checklist-task { background: #10132b55; border-color: #8493c32e; }
.checklist-children .checklist-row { padding-block: 11px; }
.checklist-children .checklist-label { font-size: 13px; color: var(--muted); }
.checklist-reminder { display: grid; gap: 5px; margin: 14px 0 16px 26px; padding: 14px 18px; border: 1px solid #b29aff80; border-left: 4px solid var(--purple); border-radius: 10px; background: #292440; color: var(--text); font-size: 12px; line-height: 1.6; }
.checklist-reminder strong { color: var(--purple); font-size: 13px; }
.checklist-group + .checklist-group { margin-top: 20px; }
.checklist-group-title { margin: 0 0 9px; padding-block: 4px; color: var(--purple); font-size: 12px; font-weight: 700; line-height: 1.6; }
.checklist-resources { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 16px 4px 50px; }
.checklist-resources a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-size: 12px; text-underline-offset: 3px; }
.checklist-resources .icon { width: 14px; height: 14px; }
.checklist-task:has(input:checked) { background: #163a3a; border-color: #8befb35c; }
.checklist-row:has(input:checked) .checklist-label { color: var(--green); text-decoration: line-through; text-decoration-color: #8befb380; }
.assignment-checklist.is-complete .checklist-progress { color: var(--green); }
.checklist-completion { display: flex; align-items: center; gap: 18px; min-height: 100px; margin-top: 16px; padding: 24px; border: 1px solid #8befb380; border-radius: 14px; background: #173c38; }
.checklist-completion > .icon { width: 32px; height: 32px; color: var(--green); }
.checklist-completion strong { display: block; color: var(--green); font-size: 20px; line-height: 1.4; }
.checklist-completion span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.checklist-completion.is-hit { animation: timer-dialog-enter .22s ease-out; }

.site-footer { margin-top: auto; background: #0e1329d9; border-top: 1px solid #6576b32e; }
.footer-inner, .footer-bottom { width: min(var(--width), calc(100% - var(--gutter) * 2)); margin-inline: auto; display: flex; justify-content: space-between; gap: 30px; }
.footer-inner { padding-block: 22px 18px; align-items: center; }
.footer-brand { font-size: 18px; font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.footer-inner p { font-size: 11px; margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 25px; }
.footer-links a { font-size: 11px; text-decoration: none; padding-block: 10px; }
.footer-links span { color: var(--accent); margin-left: 7px; }
.footer-bottom { border-top: 1px solid #6576b326; padding-block: 12px 16px; font-size: 10px; color: var(--muted); }
.footer-bottom a { text-decoration: none; }
.not-found { min-height: 65vh; border: 0; }

@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  :root { --gutter: 30px; }
  .page-layout { gap: 50px; grid-template-columns: minmax(0, 1fr) 250px; }
  .empty-state { grid-template-columns: 1fr; gap: 16px; }
  .empty-marker { display: none; }
}
@media (max-width: 800px) {
  :root { --gutter: 24px; }
  .page-heading { padding-block: 46px 35px; }
  .lead { font-size: 16px; }
  .page-layout { grid-template-columns: 1fr; gap: 44px; padding-block: 35px 60px; }
  .page-layout > aside { position: static; border-top: 1px solid var(--line); padding-top: 30px; }
  .resource-list { max-width: 500px; }
  .dashboard-layout { padding-block: 26px 44px; }
  .empty-state { min-height: 0; padding-block: 20px 32px; }
  .footer-inner { align-items: start; }
  .footer-links { flex-direction: column; gap: 1px; }
}
@media (max-width: 580px) {
  :root { --gutter: 22px; }
  .welcome-section { padding-block: 36px; }
  .welcome-content .eyebrow { font-size: 9px; }
  .welcome-subtitle { font-size: 15px; }
  .welcome-content .button-group { gap: 10px; }
  .welcome-content .button { font-size: 12px; gap: 9px; padding: 12px 17px; }
  .welcome-symbol { margin-top: 27px; }
  .home-page .footer-inner { gap: 14px; }
  .page-heading h1 { font-size: clamp(36px, 9.5vw, 50px); overflow-wrap: break-word; }
  .page-heading { padding-block: 40px 32px; }
  .lead { font-size: 15px; }
  .prose .section-heading { font-size: 22px; }
  .instructions-welcome { margin-bottom: 24px; padding: 20px; }
  .instructions-welcome h2 { font-size: 24px; }
  .instruction-panel > summary, .instruction-panel-body { padding: 18px 16px; }
  .prose .instruction-panel > summary h2 { grid-template-columns: 20px minmax(0, 1fr) 18px; gap: 10px; font-size: 20px; }
  .instruction-panel .panel-number { padding-top: 4px; font-size: 10px; }
  .instruction-panel .panel-number .icon { width: 20px; height: 20px; }
  .instruction-summary { padding: 18px 16px; }
  .instructions-help .link-arrow { margin-right: 16px; }
  .rule-row { grid-template-columns: 25px minmax(0, 1fr); gap: 12px; }
  .dashboard-heading, .contact-heading, .syllabus-heading { padding-block: 36px 24px; }
  .contact-content, .syllabus-content { padding-block: 30px 44px; }
  .dashboard-toolbar { gap: 8px; }
  .week-select-wrap { width: 88px; }
  .week-select-wrap select { padding: 10px 26px 10px 10px; font-size: 11px; }
  .week-select-arrow { right: 10px; font-size: 17px; }
  .week-select-wrap.is-enhanced { width: 110px; }
  .week-picker-button { min-height: 52px; gap: 6px; padding: 10px 9px; border-radius: 12px; font-size: 11px; }
  .week-picker-icon { width: 22px; height: 24px; border: 0; background: transparent; }
  .week-picker-icon .icon { width: 17px; height: 17px; }
  .week-picker-chevron, .week-picker-chevron .icon { width: 14px; height: 14px; }
  .course-launch, .assignment-upload-notice { margin-top: 24px; padding: 28px 16px; }
  .course-countdown { flex: 1; gap: 6px; width: auto; max-width: 380px; padding: 12px 8px; border-radius: 12px; }
  .course-countdown > .icon { width: 14px; height: 14px; }
  .countdown-readout { gap: 3px; }
  .countdown-unit strong { font-size: 22px; }
  .countdown-unit > span { font-size: 7px; letter-spacing: 0; }
  .countdown-target { font-size: 8px; margin-top: 6px; }
  .timer-dialog { padding: 42px 24px 26px; }
  .timer-dialog h2 { font-size: 23px; }
  .empty-state h2 { font-size: 28px; }
  .contact-list { grid-template-columns: 1fr; gap: 20px; }
  .contact-person .eyebrow { min-height: 0; }
  .contact-list .contact-person, .contact-group { padding: 22px; }
  .syllabus-document h2 { font-size: 23px; }
  .footer-inner { flex-direction: column; gap: 16px; padding-block: 24px 18px; }
  .footer-links { flex-direction: row; gap: 8px 20px; }
  .footer-links a { font-size: 10px; }
  .footer-bottom { font-size: 9px; gap: 10px; flex-wrap: wrap; }
  .assignment-parts li { font-size: 12px; }
  .assignment-parts strong { font-size: 11px; }
  .assignment-file { padding: 16px 12px; gap: 10px; font-size: 18px; }
  .past-week-notice { align-items: flex-start; gap: 10px; padding: 12px; }
  .past-week-notice > .icon { margin-top: 1px; }
  .checklist-row { gap: 10px; padding: 13px 12px; }
  .checklist-link { width: 44px; }
  .assignment-resource > .checklist-label { padding: 13px 12px; }
  .checklist-children { margin-left: 21px; padding-left: 10px; }
  .checklist-reminder { margin-left: 21px; padding: 12px 14px; }
  .checklist-completion { padding: 18px; gap: 12px; }
  .checklist-label { font-size: 13px; }
  .checklist-points { font-size: 10px; }
  .challenge-dialog { padding: 28px 22px; }
  .challenge-header h2 { font-size: 28px; }
  .challenge-instructions { font-size: 13px; }
}
@media (max-width: 380px) {
  .week-select-wrap.is-enhanced { width: 100px; }
  .week-picker-button { gap: 9px; padding-inline: 12px; font-size: 12px; }
  .week-picker-icon { display: none; }
  .nav-ready .header-inner { gap: 18px; }
  .menu-toggle > span:last-child { display: none; }
  .countdown-unit strong { font-size: 18px; }
  .countdown-unit > span { font-size: 7px; }
  .welcome-title { font-size: 33px; }
  .welcome-content .button-group { gap: 9px; }
  .welcome-content .button { padding-inline: 12px; font-size: 11px; }
  .challenge-dialog { padding: 26px 18px; }
}
@media (max-height: 760px) and (min-width: 581px) {
  .welcome-section { padding-block: 26px; }
  .welcome-title { font-size: clamp(36px, 4.4vw, 58px); }
  .welcome-content .eyebrow { margin-bottom: 14px; }
  .controller-trigger { margin-block: 16px 10px; }
  .controller-art svg { width: 90px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; --text: #101d29; --muted: #333; --accent: #165c4b; --line: #ccc; --background: white; --surface: white; }
  .site-header, .site-menu, .site-footer, .welcome-symbol, .controller-trigger, .challenge-dialog, .ambient-field, .skip-link, .button-group, .arcade-burst { display: none !important; }
  body { font-size: 12px; background: white; }
  body::before { display: none; }
  body.home-page { min-height: 0; }
  body > main { min-height: 0; }
  .welcome-section { padding-block: 20px; }
  .page-layout, .dashboard-layout, .home-page main { display: block; }
  .page-heading { padding-block: 20px; }
  .page-layout > aside { position: static; margin-top: 30px; }
  .week-toolbar, .course-countdown, .timer-dialog { display: none !important; }
  .course-launch, .assignment-upload-notice { break-inside: avoid; }
  .course-launch-status { margin-top: 20px; }
  .contact-list .contact-person, .contact-group, .syllabus-document { background: white; border-color: #ccc; box-shadow: none; break-inside: avoid; }
  .instructions-welcome { background: white; border-color: #ccc; break-inside: avoid; margin-bottom: 20px; padding-bottom: 20px; }
  .instruction-summary { background: transparent; break-inside: avoid; }
  .prose .instruction-panel { --panel-accent: #333; --panel-line: #ccc; --muted: #333; background: white; break-inside: avoid; }
  .instruction-panel > summary { background: transparent; }
  .instruction-panel .panel-description { color: #333; }
  .prose .instruction-panel-body .button { color: var(--text); background: transparent; border-color: var(--line); box-shadow: none; }
  .checklist-task, .checklist-task:has(input:checked) { background: white; border-color: #ccc; break-inside: avoid; }
  .checklist-reminder { background: white; border-color: #777; color: #333; break-inside: avoid; }
  .checklist-reminder strong { color: #333; }
  .past-week-notice { background: white; border-color: #777; color: #333; break-inside: avoid; }
  .past-week-notice > .icon { color: #333; }
  .checklist-row:has(input:checked) .checklist-label, .checklist-row:has(input:checked) .checklist-title, .checklist-points, .checklist-progress { color: #333; }
  .welcome-title .accent { background: none; -webkit-text-fill-color: currentColor; }
}
