/* Meleti: Ktima's clear panel hierarchy, with a distinct cobalt/orange palette. */
:root {
  color-scheme: light;
  --canvas: #eef1f4;
  --paper: #ffffff;
  --ink: #172132;
  --muted: #505e70;
  --rule: #b4bcc7;
  --header: #161d2d;
  --brand: #244fd6;
  --brand-hover: #193ca8;
  --accent: #f57922;
  --radius: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 18px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
header {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px max(24px, calc((100vw - 1056px) / 2));
  background: var(--header); color: white; border-bottom: 4px solid var(--brand);
}
.brand { display: flex; align-items: center; gap: 16px; font-size: 28px; font-weight: 750; text-decoration: none; color: inherit; }
.brand::before { content: 'μ'; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: var(--brand); color: white; font-size: 28px; }
.brand span { border-left: 1px solid #6c788d; padding-left: 16px; font-size: 16px; font-weight: 500; color: #c8d2e2; }
header button { background: transparent; border-color: #8190a7; color: white; }
main { max-width: 1056px; margin: 38px auto; padding: 0 24px; }
h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 24px; line-height: 1.3; margin-top: 0; }
p { line-height: 1.6; }
.eyebrow { font-size: 13px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
main > .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
main > .eyebrow::before { content: ''; width: 24px; height: 4px; background: var(--accent); }
main > .quiet { max-width: 740px; margin-bottom: 30px; }
section, .card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: 0 3px 10px #17213206; }
main > section:first-of-type { border-top: 4px solid var(--brand); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; margin-bottom: 24px; }
.grid .card { margin: 0; border-top: 4px solid var(--accent); }
button { font: inherit; font-weight: 600; min-height: 48px; border: 1px solid #7a889b; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 12px 20px; cursor: pointer; touch-action: manipulation; }
button.primary { background: var(--brand); color: white; border-color: var(--brand); }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid #a74600; outline-offset: 4px; }
header :focus-visible { outline-color: #ff9c53; }
@media (hover: hover) {
  button:not(:disabled):hover { border-color: var(--brand); background: #f0f3f9; }
  button.primary:not(:disabled):hover { background: var(--brand-hover); color: white; }
  header button:not(:disabled):hover { background: #29364d; border-color: #c8d2e2; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
label { display: block; line-height: 1.5; margin: 16px 0 6px; font-weight: 600; }
input, textarea { font: inherit; width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #7a889b; background: white; color: var(--ink); }
input[type=checkbox] { width: 22px; height: 22px; vertical-align: middle; margin-right: 10px; accent-color: var(--brand); }
textarea { min-height: 140px; line-height: 1.6; }
.login { max-width: 480px; margin: 6vh auto; }
.login form > button { width: 100%; margin-top: 24px; }
.badge { display: inline-block; background: var(--header); color: white; border-radius: 5px; padding: 6px 12px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.quiet { color: var(--muted); font-size: 16px; }
.word { font-size: 36px; letter-spacing: .04em; line-height: 1.6; }
.bank, .answer { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; min-height: 72px; }
.bank button, .answer button { font-size: 28px; min-width: 65px; min-height: 65px; font-weight: 500; }
.answer { padding: 14px; background: #f4f6f8; border: 2px dashed #7a889b; border-radius: 8px; }
.choice { font-size: 30px; flex: 1; min-width: 100px; }
button.selected { border: 3px solid var(--brand); background: var(--brand); color: white; }
@media (hover: hover) { button.selected:not(:disabled):hover { background: var(--brand-hover); color: white; } }
.feedback { background: white; border: 1px solid var(--rule); border-left: 5px solid var(--brand); border-radius: 8px; padding: 16px; margin-top: 20px; }
.passage { font-size: 28px; line-height: 1.8; max-width: 65ch; }
.review-item { border-top: 1px solid var(--rule); padding: 24px 0; }
.statusline { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
#message { max-width: 1056px; margin: 18px auto; padding: 0 24px; color: #933c11; }
#message:empty { display: none; }
footer { text-align: center; padding: 28px 20px; font-size: 13px; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--rule); }
small { display: block; line-height: 1.6; color: var(--muted); }
.progress-row { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.progress-row:last-child { border-bottom: 0; padding-bottom: 0; }
.progress-row p { margin: 8px 0; }
@media (max-width: 600px) {
  section, .card { padding: 20px; }
  header { padding: 16px; gap: 12px; }
  .brand { gap: 8px; font-size: 24px; }
  .brand span { display: none; }
  .brand::before { width: 36px; height: 36px; font-size: 24px; }
  main { margin: 28px auto; padding: 0 16px; }
  .actions button { flex: 1 1 140px; }
  .word { font-size: 30px; }
  .passage { font-size: 25px; }
}

/* Prototype: official Radix light scales; original Resurrect 64 scenery. */
:root {
  --canvas: #fefbe9; /* amber2 */
  --paper: #fefdfb; /* amber1 */
  --ink: #3e332e; /* brown12 */
  --muted: #815e46; /* brown11 */
  --rule: #dcbc9f; /* brown7 */
  --header: #1d3b31; /* jade12 */
  --brand: #208368; /* jade11: white labels, unlike jade9 */
  --brand-hover: #1d3b31;
  --accent: #ffc53d; /* amber9 */
}
body { background: var(--canvas); }
header { background: var(--canvas); color: var(--ink); border-bottom: 1px solid var(--rule); padding-top: 18px; padding-bottom: 18px; }
.brand::before { background: var(--brand); border-radius: 50% 50% 42% 42%; }
.brand span { color: var(--muted); border-color: var(--rule); }
header button { color: var(--ink); border-color: var(--rule); background: var(--paper); }
.presentation-switch { margin-left: auto; font-size: 15px; }
header :focus-visible { outline-color: var(--brand); }
main > .eyebrow::before { background: var(--accent); height: 10px; width: 10px; border-radius: 50%; }
h1 { font-weight: 750; }
section, .card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 24px 0; }
main > section:first-of-type { border-top: 0; }
main[data-view=parent] > section { border-bottom: 1px solid var(--rule); }
.lesson-register { margin: 24px 0; border-top: 1px solid var(--rule); }
.lesson-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.lesson-row h2 { margin: 0; font-size: 21px; }
.lesson-row .quiet { margin: 0; }
.lesson-row button { margin-left: auto; }
.badge { background: #f0e4d9; color: var(--ink); margin-bottom: 0; border-radius: 30px; }
button { border-radius: 12px; border-color: #ad7f58; }
button.primary { box-shadow: 0 4px 0 #1d3b31; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline-color: #1d3b31; }
@media (hover:hover) {
  button:not(:disabled):hover { background: #fff7c2; border-color: var(--brand); }
  header button:not(:disabled):hover { background: #fff7c2; border-color: var(--brand); }
}
.clubhouse { position: relative; padding: 0; overflow: hidden; margin-top: 32px; border-bottom: 6px solid #676633; border-radius: 36px 36px 8px 8px; background: var(--paper); }
.garden-scene { display: block; width: 100%; height: auto; }
.invitation { padding: 26px 32px 32px; background: #fff7c2; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px; }
.invitation .eyebrow, .invitation h2, .invitation p { grid-column: 1; margin: 0 0 10px; }
.invitation .lesson-row { grid-column: 2; grid-row: 1 / span 4; border: 0; padding: 0; flex-direction: column; }
.invitation > button { grid-column: 1; justify-self: start; }
.itinerary { display: flex; justify-content: space-between; gap: 24px; list-style: none; padding: 18px 0; counter-reset: stop; }
.itinerary li { display: flex; align-items: center; gap: 12px; font-weight: 650; counter-increment: stop; }
.itinerary li::before { content: counter(stop); display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: #ffc53d; border-radius: 50%; }
.activity { padding: 32px; background: #fefdfb; border: 2px solid #ad7f58; border-bottom: 12px solid #815e46; border-radius: 16px; }
.workbench { background: linear-gradient(#fefdfb 0 180px, #f0e4d9 180px); }
.activity > h1 { letter-spacing: 0; }
.answer { border: 2px dashed #815e46; min-height: 100px; background: #fefbe9; }
.bank { min-height: 80px; }
.bank button, .answer button { min-width: 72px; min-height: 72px; background: #fefbe9; border: 2px solid #ad7f58; box-shadow: 0 4px 0 #ad7f58; }
button.selected { background: #208368; color: white; border-color: #1d3b31; }
.feedback { background: #fefbe9; color: var(--ink); border-color: #ad7f58; border-left-color: #208368; }
.story-stage .passage { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.login { padding: 32px; border-top: 8px solid #ffc53d !important; background: #fefdfb; border-bottom: 2px solid var(--rule); }
main[data-view=login] { max-width: 600px; }
body[data-presentation=workshop] .clubhouse { display: flex; flex-direction: row-reverse; border-radius: 8px; border-color: #815e46; }
body[data-presentation=workshop] .garden-scene { width: 44%; object-fit: cover; }
body[data-presentation=workshop] .invitation { display: block; flex: 1; padding: 32px; background: #f0e4d9; }
body[data-presentation=workshop] .invitation .lesson-row { flex-direction: row; margin-top: 24px; }
body[data-presentation=workshop] .activity { border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 700px) {
  header { flex-wrap: wrap; gap: 10px; }
  .presentation-switch { order: 3; width: 100%; }
  .invitation { display: block; padding: 24px; }
  .invitation .lesson-row { flex-direction: row; margin-top: 20px; }
  .itinerary { gap: 12px; flex-direction: column; }
  .activity { padding: 22px 18px; }
  .bank, .answer { gap: 10px; }
  .lesson-row button { margin-left: 0; }
  body[data-presentation=workshop] .clubhouse { flex-direction: column; }
  body[data-presentation=workshop] .garden-scene { width: 100%; }
}
.garden-scene { max-height: 260px; object-fit: contain; }
.invitation button.primary { background: #ffc53d; border-color: #ad7f58; color: #3e332e; box-shadow: 0 4px 0 #ad7f58; }
@media (hover:hover) { .invitation button.primary:hover { background: #ffba18; color: #3e332e; } }
@media (max-width:700px) { .garden-scene { max-height: none; } }
.bank button:disabled, .answer button:disabled { opacity: 1; box-shadow: none; border-style: dashed; }
.flight-area { margin-top:28px; border-top:1px solid var(--rule); padding-top:24px; }
.target-stage { width:100%; aspect-ratio:800/340; max-height:340px; overflow:hidden; background:#fefbe9; border-radius:16px; }
.target-stage:empty { display:none; }
.target-stage canvas { display:block; max-width:100%; }
.quiet-control { font-size:16px; }
input[type=range] { min-height:48px; accent-color:#208368; border:0; padding:0; }
.invitation .lesson-row { grid-row:auto; }
.flight-area > button { margin:8px 12px 8px 0; }

.target-holder {width:100%;height:100%;} .quiet-airfield {display:block;width:100%;max-height:340px;object-fit:cover;}

.choice img {display:block;width:92px;height:58px;object-fit:contain;margin:0 auto 10px;} .delivery-target {font-weight:700;color:var(--brown-12,#3e332e);}
