/* v0.8.3: a shared exhibition frame, without waveform decoration or option pages. */
body.kiosk {--screen-safe:72px;--screen-side:80px}
body.kiosk #kiosk-stage {display:block}
body.kiosk #kiosk-stage>header {position:absolute;inset:72px 80px auto;width:auto;height:98px;padding:0;border:0;align-items:flex-start;z-index:10}
body.kiosk #kiosk-stage .brand-new {align-items:flex-start;gap:10px;line-height:1}
body.kiosk #kiosk-stage .brand-new .brand-en {font-size:54px;font-weight:300;letter-spacing:.08em}
body.kiosk #kiosk-stage .brand-new .brand-zh {font-size:24px;line-height:1.4;letter-spacing:.25em;margin:0;padding:0}
body.kiosk #kiosk-stage>footer {position:absolute;inset:auto 80px 72px;height:64px;min-height:64px;width:auto;padding:0;margin:0;border:0;z-index:10}
body.kiosk #kiosk-stage>footer .text-button {min-height:64px;font-size:23px;line-height:1.4;margin:0;padding:12px 24px;border:1px solid #60809b;background:#071b33ed;color:#e8f6ff}
body.kiosk:not([data-home=true]) #kiosk-stage>main {position:absolute;inset:232px 80px 160px;width:auto;height:auto;padding:0;max-width:none;gap:0}
body.kiosk #kiosk-stage .header-actions {align-items:flex-start}
body.kiosk #kiosk-stage .languages {background:#08263edb}
body.kiosk #kiosk-stage .flow {gap:14px}
body.kiosk #kiosk-stage .flow-heading {height:48px;min-height:48px;flex:0 0 48px;font-size:23px}
body.kiosk #kiosk-stage .flow-heading>a,body.kiosk #kiosk-stage .flow-heading button {min-height:48px;padding:8px 18px;font-size:23px}
body.kiosk #kiosk-stage .flow>h1 {font-size:52px;line-height:1.3;margin:0}

/* The title, subtitle and CTA share one vertical center line. */
body[data-home=true] #kiosk-stage .hero-copy {width:fit-content;max-width:760px;align-items:center;justify-self:start;text-align:center}
body[data-home=true] #kiosk-stage .hero-copy h1 {text-align:center;max-width:760px}
body[data-home=true] #kiosk-stage .hero-copy p {text-align:center;max-width:100%}
body[data-home=true] #kiosk-stage .start-exploration {align-self:center;gap:56px}

/* Four doorway-like choices, framed like exhibition entrance signs. */
body.kiosk #kiosk-stage .age-screen>.card {padding:22px 0 0;justify-content:center;border:0;flex:1}
body.kiosk #kiosk-stage .age-screen .options {grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;height:100%;max-height:440px;align-content:stretch}
body.kiosk #kiosk-stage .age-screen .options button {position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;min-width:0;min-height:360px;padding:36px 24px 24px;border:1px solid #718d9b;border-radius:14px;background:#0a273ce8;color:#f4f6ed;text-align:center;box-shadow:0 12px 30px #000b172b;transition:background .18s,border-color .18s,transform .18s}
body.kiosk #kiosk-stage .age-screen .options button:nth-child(2) {background:#143246eb}
body.kiosk #kiosk-stage .age-screen .options button:nth-child(3) {background:#183b46eb}
body.kiosk #kiosk-stage .age-screen .options button:nth-child(4) {background:#293b43eb}
body.kiosk #kiosk-stage .age-screen .options button:hover {background:#254c5c;border-color:#edce8e;transform:translateY(-4px)}
body.kiosk #kiosk-stage .stage-frame {position:absolute;inset:18px 18px auto;height:46px;border-top:1px solid #edce8e94;border-left:1px solid #edce8e94;border-right:1px solid #edce8e94;border-radius:4px 4px 0 0;pointer-events:none}
body.kiosk #kiosk-stage .age-screen .group-icon {border:0;background:none;color:#edce8e;width:80px;height:80px;flex:0 0 80px;border-radius:0}
body.kiosk #kiosk-stage .age-screen .group-icon svg {width:72px;height:72px;stroke-width:1.35}
body.kiosk #kiosk-stage .age-screen .group-label {flex:0 0 auto;max-width:100%;font-size:56px;font-weight:500;line-height:1.15;letter-spacing:.04em;overflow-wrap:normal}
body.kiosk #kiosk-stage .age-screen .group-caption {font-size:19px;font-weight:400;line-height:1.4;letter-spacing:.08em;color:#c3d7dd;min-height:28px}
body.kiosk #kiosk-stage .stage-action {display:flex;align-items:center;gap:18px;width:78%;margin-top:12px;color:#edce8e}
body.kiosk #kiosk-stage .stage-rule {height:1px;flex:1;background:#edce8e80}
body.kiosk #kiosk-stage .stage-action .ui-icon {width:32px;height:32px}
html[lang=en] body.kiosk #kiosk-stage .age-screen .group-label {font-size:39px;letter-spacing:0}

/* All answers are laid out together. Labels wrap without truncation. */
body.kiosk #kiosk-stage .quiz-screen>.card,body.kiosk #kiosk-stage .worksheet-screen>.card {padding:4px 0 0;border:0;background:transparent;backdrop-filter:none}
body.kiosk #kiosk-stage .quiz-screen .card>h2 {font-size:40px;line-height:1.3;margin:0 0 8px}
body.kiosk #kiosk-stage .quiz-screen .card>p:not(.micro) {font-size:23px;line-height:1.35;margin:0 0 8px}
body.kiosk #kiosk-stage .progress {height:5px;flex-basis:5px}
body.kiosk #kiosk-stage .quiz-screen .options,body.kiosk #kiosk-stage .worksheet-screen .options {grid-template-columns:repeat(var(--option-columns,2),minmax(0,1fr));grid-template-rows:repeat(var(--option-rows,3),minmax(80px,1fr));grid-auto-rows:minmax(80px,1fr);gap:12px;align-content:stretch;margin:6px 0 12px;flex:1 1 0}
body.kiosk #kiosk-stage .quiz-screen .options button,body.kiosk #kiosk-stage .worksheet-screen .options button {font-size:var(--option-font,27px);line-height:1.35;min-height:80px;height:100%;padding:12px 18px;gap:16px;overflow:visible;white-space:normal;background:#0b2b50ed;border-color:#547b94;border-radius:12px}
body.kiosk #kiosk-stage .quiz-screen .options button.selected,body.kiosk #kiosk-stage .worksheet-screen .options button.selected {background:#edf4e5;color:#082b42;border-color:#edce8e;padding:12px 18px;box-shadow:inset 0 0 0 1px #edce8e}
body.kiosk #kiosk-stage .quiz-screen .check,body.kiosk #kiosk-stage .worksheet-screen .check {width:32px;height:32px;flex-shrink:0}
body.kiosk #kiosk-stage .quiz-screen .controls,body.kiosk #kiosk-stage .worksheet-screen .controls {margin:6px 0 0;gap:16px}
body.kiosk #kiosk-stage .quiz-screen .controls>button,body.kiosk #kiosk-stage .worksheet-screen .controls>button {min-height:64px;min-width:360px;padding:12px 30px;font-size:27px}
body.kiosk #kiosk-stage .feedback {padding:8px 16px;font-size:22px;line-height:1.35;margin:0 0 4px;background:#123748eb}
body.kiosk #kiosk-stage .worksheet-screen .card>h2 {font-size:38px;margin-bottom:10px}
body.kiosk #kiosk-stage .worksheet-screen .card>p {font-size:26px;line-height:1.4}
body.kiosk #kiosk-stage .worksheet-screen .card>.micro {font-size:22px!important;margin:0 0 4px}

body.kiosk #kiosk-stage .result-screen {gap:20px}
body.kiosk #kiosk-stage .result-kicker {font-size:22px;line-height:1.5;margin:0;flex:0 0 34px}
body.kiosk #kiosk-stage .result-visual {flex:1;min-height:0;grid-template-columns:1.2fr .8fr;gap:64px;padding:0 46px;border:0}
body.kiosk #kiosk-stage .result-copy h1 {font-size:84px;line-height:1.25;margin:18px 0 22px}
body.kiosk #kiosk-stage .result-copy p {font-size:27px;line-height:1.6}
body.kiosk #kiosk-stage .result-qr {max-width:560px;justify-self:end;width:100%;padding:26px 30px}
body.kiosk #kiosk-stage .result-label {font-size:38px}
body.kiosk #kiosk-stage main[data-screen=record]>.flow>.card {flex-basis:112px}
body.kiosk #kiosk-stage .zone {gap:18px;padding:22px 20px}
body.kiosk #kiosk-stage .zone h3 {font-size:29px}

/* The same footer remains available on phones. */
body:not(.kiosk)>footer {display:none}
body:not(.kiosk)>header {
  height:auto;
  min-height:unset;
  flex-wrap:wrap;
  gap:12px;
  padding:16px;
}
body:not(.kiosk) .zone-list .zone { min-height: 70px; padding-block: 10px; }
body:not(.kiosk) .hero-copy {text-align:center;align-items:center}
body:not(.kiosk) .age-screen .options button {position:relative;display:flex;flex-direction:column;gap:14px;padding:30px 18px;background:#0a273ced;color:#f4f6ed;border:1px solid #718d9b;border-radius:14px;text-align:center}
body:not(.kiosk) .age-screen .group-icon {width:56px;height:56px;color:#edce8e}
body:not(.kiosk) .age-screen .group-icon svg {width:100%;height:100%}
body:not(.kiosk) .age-screen .group-label {font-size:30px}
body:not(.kiosk) .group-caption {font-size:14px;color:#c3d7dd}
body:not(.kiosk) .stage-action {color:#edce8e}
body:not(.kiosk) .stage-frame {display:none}
@media(prefers-reduced-motion:reduce){body.kiosk #kiosk-stage .age-screen .options button:hover {transform:none}}
