/* v0.8 homepage only. Kiosk uses a 1920x1080 stage and one shared safe inset. */
body[data-home=true] {--home-safe:72px;--home-side:80px}
body[data-home=true] #kiosk-stage>header {position:absolute;inset:var(--home-safe) var(--home-side) auto;width:auto;height:auto;padding:0;border:0;align-items:flex-start;z-index:10}
body[data-home=true] #kiosk-stage .brand-new {align-items:flex-start;gap:10px;line-height:1}
body[data-home=true] #kiosk-stage .brand-new .brand-en {font-size:54px}
body[data-home=true] #kiosk-stage .brand-new .brand-zh {font-size:24px;line-height:1.4;letter-spacing:.25em;margin:0;padding:0}
body[data-home=true] #kiosk-stage>main {grid-row:1/-1;height:1080px;display:block;padding:0;position:relative}
body[data-home=true] #kiosk-stage .visual-v07 {position:absolute;inset:188px var(--home-side);width:auto;min-height:0;margin:0;padding:0;display:grid;grid-template-columns:760px 1000px;grid-template-rows:minmax(0,1fr);gap:0;align-items:center}
body[data-home=true] #kiosk-stage .hero-copy {padding:0;display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0}
body[data-home=true] #kiosk-stage .hero-copy h1 {font-size:76px;line-height:1.3;max-width:100%;margin:0 0 26px;text-wrap:balance}
body[data-home=true] #kiosk-stage .hero-copy p {font-size:30px;line-height:1.6;max-width:23em;margin:0 0 44px}
body[data-home=true] #kiosk-stage .start-exploration {margin:0;min-width:500px;min-height:112px;font-size:38px;padding:24px 36px;justify-content:space-between}
body[data-home=true] #kiosk-stage .sound-art-v07 {width:1000px;height:760px;min-height:0;max-height:none;align-self:center}
body[data-home=true] #kiosk-stage>footer {position:absolute;inset:auto var(--home-side) var(--home-safe);height:64px;min-height:64px;width:auto;padding:0;border:0;z-index:10}
body[data-home=true] #kiosk-stage>footer .text-button {min-height:64px;margin:0;font-size:23px;padding:12px 24px}
.wave-touch {position:relative;overflow:hidden}
.wave-media {position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:none;mix-blend-mode:normal}
.wave-video {visibility:hidden}
.has-video .wave-video {visibility:visible}
.has-video .wave-poster {visibility:hidden}
body[data-home=true] #kiosk-stage .wave-touch {background:transparent;border-radius:0;box-shadow:none}
body[data-home=true] #kiosk-stage .wave-word {top:39%;left:50%;font-size:64px}
body[data-home=true] #kiosk-stage .motion-toggle {bottom:20px;right:20px;min-height:64px;height:64px;width:64px;padding:18px;border-radius:50%}
body[data-home=true] #kiosk-stage :focus-visible {outline-color:#fff;outline-offset:6px}
body[data-home=true]:not(.kiosk)>header {height:auto;padding:40px 4vw 20px;align-items:flex-start}
body[data-home=true]:not(.kiosk)>footer {display:flex;margin:0 4vw 40px;width:auto;border:0;min-height:64px}
body[data-home=true]:not(.kiosk)>main {min-height:0}
body[data-home=true]:not(.kiosk) .hero-copy {align-self:center}
body[data-home=true]:not(.kiosk) .visual-v07 {min-height:0}
body[data-home=true]:not(.kiosk) .wave-touch {background:transparent;box-shadow:none}
@media(max-width:760px){
 body[data-home=true]:not(.kiosk)>header {padding:28px 20px 0;flex-wrap:wrap;gap:24px}
 body[data-home=true]:not(.kiosk)>footer {margin:0 20px 28px;gap:12px}
 body[data-home=true]:not(.kiosk) .header-actions {margin-left:auto}
 body[data-home=true]:not(.kiosk) .visual-v07 {padding-bottom:20px}
 body[data-home=true]:not(.kiosk) .hero-copy h1 {font-size:42px;line-height:1.3}
 body[data-home=true]:not(.kiosk) .sound-art-v07 {margin:0}
 body[data-home=true]:not(.kiosk)>footer>span {font-size:10px}
 body[data-home=true]:not(.kiosk)>footer button {font-size:14px;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.wave-video {visibility:hidden!important}.wave-poster {visibility:visible!important}}

/* ARCHECO-inspired continuity, adapted to the existing Hakka exhibition palette. */
#kiosk-stage,#kiosk-viewport {overflow:clip}
#page-veil {position:fixed;inset:0;z-index:1000;visibility:hidden;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 80% 40%,#086489 0,transparent 65%),#09294d}
#kiosk-stage>#page-veil {position:absolute;width:1920px;height:1080px}
.view-transitioning #page-veil {visibility:visible;pointer-events:auto}
body[data-home=true] #kiosk-stage {background:radial-gradient(ellipse at 76% 48%,#124c76 0,transparent 54%),linear-gradient(120deg,#031630,#0c2c51 64%,#082345)}
body[data-home=true] .sound-art-v07::before {display:none}
body[data-home=true] .wave-touch {isolation:isolate}
body[data-home=true] #kiosk-stage .wave-media {filter:brightness(1.12)}
body[data-home=true] .wave-word {font-weight:500;text-shadow:0 3px 20px #001328;letter-spacing:.16em}
body[data-home=true] #kiosk-stage .start-exploration {border:1px solid #68b5e3;box-shadow:0 12px 34px #00003233}
.result-screen .wave-bars i {animation:none}
.result-screen .wave-ribbon {opacity:.42}
@media(prefers-reduced-motion:reduce){#page-veil {display:none!important}}

/* Spacious display composition, retaining the original type and touch scale. */
body[data-home=true] #kiosk-stage .hero-copy h1 {font-weight:500;line-height:1.3;letter-spacing:.01em}
body[data-home=true] #kiosk-stage .hero-copy p {font-weight:400;font-size:28px;color:#c3ddeb;letter-spacing:.025em;line-height:1.65}
body[data-home=true] #kiosk-stage .start-exploration {background:#edce8e;color:#09294d;border-color:#f8e4b9;box-shadow:none;font-weight:600}
body[data-home=true] #kiosk-stage .start-exploration:hover {background:#f5ddad}
body[data-home=true] #kiosk-stage .brand-new .brand-en {font-weight:300;letter-spacing:.08em}
#kiosk-stage .age-screen>.card,#kiosk-stage .quiz-screen>.card {background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none}
#kiosk-stage .result-screen .result-visual {background:transparent;backdrop-filter:none;border-color:#48708d}
#kiosk-stage .result-screen .result-copy p {color:#d0e5ef}
#kiosk-stage .result-screen .result-qr {background:#0a2441;border-color:#48708d;box-shadow:none}

#setting-background {position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:clip;opacity:.2}
#setting-background img,#setting-background video {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#setting-background video {opacity:0}
#setting-background.ready video {opacity:1}
body[data-home=true] #setting-background {opacity:.84}
body[data-home=true] #kiosk-stage>footer .text-button {background:#071b33ed;border-color:#60809b;color:#e8f6ff}
body[data-home=true] #kiosk-stage {background:#031630}
body:not(.kiosk) {background:linear-gradient(90deg,#031630ed,#03163088),url('/media/hakka-setting-poster.png') center/cover fixed}
body:not(.kiosk)::before,body:not(.kiosk)::after {display:none}
@media(prefers-reduced-motion:reduce){#setting-background video {display:none}}
