@import url('assets/fonts/fonts.css');
:root{--pack-color:#75d8d0;--ink:#edf2ff;--muted:#9caac1;--edge:#2d3a53;--panel:#101827;--blue:#253752}
body{font-family:Figtree,'Noto Sans JP',sans-serif;color:var(--ink);background:#090d17}
button,select,a{touch-action:manipulation}button,select{font:inherit}button:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--pack-color);outline-offset:5px}
#back-btn{top:24px;left:32px;z-index:110;background:transparent;border:1px solid var(--edge);border-radius:999px;padding:10px 18px;color:#c5d1e5;font-size:12px;backdrop-filter:blur(12px)}
#brand{z-index:110;bottom:20px;right:28px;background:transparent;border:0;color:#9caac1;font-size:10px;letter-spacing:.08em}#brand:before{content:''}
#ready-screen{background:radial-gradient(ellipse at 80% 20%,#27355b55,transparent 55%),radial-gradient(ellipse at 10% 90%,#45315b33,transparent 50%),#090d17;align-items:start;justify-content:center;text-align:left;gap:0;padding:110px max(6vw,30px) 70px;overflow-y:auto;isolation:isolate}
#ready-screen.visible{display:flex}#ready-pack{font-size:12px;letter-spacing:.14em;color:var(--pack-color);border:1px solid color-mix(in srgb,var(--pack-color) 40%,transparent);border-radius:999px;padding:7px 14px;margin-bottom:24px}
#ready-title{font-size:clamp(30px,4vw,60px);line-height:1.1;letter-spacing:-.04em;text-shadow:none;color:#edf2ff;font-weight:600;max-width:46%;margin:0 0 22px}
#ready-tagline{font-size:17px;line-height:1.9;color:#b1bfd3;max-width:44%;margin:0 0 28px}
#ready-instruction{font-size:13px;color:var(--pack-color);margin:0 0 18px;max-width:43%}
.ready-art{position:absolute;right:5vw;top:24%;width:44%;aspect-ratio:16/10;overflow:hidden;border:1px solid #35405c;border-radius:22px;transform:perspective(1200px) rotateY(-7deg) rotateZ(1deg);box-shadow:18px 25px 70px #0008;z-index:-1}
.ready-art:after{content:'';position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#090d17bb)}.ready-art>span{position:absolute;bottom:18px;left:22px;z-index:1;font-size:10px;letter-spacing:.14em;color:#d3dfed}
.ready-notes{display:flex;flex-direction:column;gap:10px;font-size:12px;color:#9caac1;margin-bottom:28px}
#ready-start,#btn-record,.btn-secondary{border:1px solid #617b9f;background:#253752;color:#edf2ff;box-shadow:none;border-radius:999px;font-size:14px;padding:14px 25px;letter-spacing:.02em;font-weight:500;min-width:0;animation:none}
#ready-start{display:flex;justify-content:space-between;gap:55px}#ready-start:hover,#btn-record:hover,.btn-secondary:hover{background:#344d70;box-shadow:none;transform:none}
.camera-note{font-size:11px;color:#8291a9;margin:15px 0 24px}.demo-switch{display:flex;align-items:center;gap:12px;font-size:11px;color:#8291a9}.demo-switch select{max-width:210px;padding:9px 12px;border:1px solid var(--edge);border-radius:10px;background:#121c2d;color:#dce5f4}
#hud{top:85px;left:24px;background:#101827e8;border:1px solid var(--edge);border-radius:16px;padding:18px;backdrop-filter:blur(20px);box-shadow:0 15px 40px #0003;max-width:min(350px,calc(100vw - 48px))}
#hud button{background:#17233a;border:1px solid #344563;border-radius:8px;color:#aebed5;box-shadow:none}#hud button.active{background:#293c58;border-color:var(--pack-color);color:#edf2ff}#status{font-weight:500;font-size:12px;color:var(--pack-color)}.ctrl-row{color:#a8b7cf}
#loading{background:#090d17ed;color:#bdcce0}#loading-text{font-size:14px;line-height:1.8;max-width:80vw;text-align:center}.spinner{border-top-color:var(--pack-color)}
#result-panel{background:#101827f5;border:1px solid #394661;border-radius:22px;box-shadow:0 30px 100px #0009;color:#edf2ff}#result-panel h2{font-weight:500}#result-panel video{border-radius:12px}#progress-fill{background:var(--pack-color)}
.exp-chip--score,.exp-state-pill,.exp-card{background:#101827dd;border:1px solid #36425b;box-shadow:0 12px 40px #0004;backdrop-filter:blur(16px)}.exp-chip__value{color:var(--pack-color);text-shadow:0 0 20px color-mix(in srgb,var(--pack-color) 25%,transparent)}.exp-card .title{font-weight:600;letter-spacing:-.02em;text-shadow:none}.exp-card[data-kind=instruction] .title{color:var(--pack-color);text-shadow:none}.exp-extra{top:150px}.exp-state-pill{top:28px}.game-ui-layer.experience{font-family:inherit}
#idle-overlay .lead{font-weight:500;text-shadow:none}#privacy{background:#101827ed;border:1px solid var(--edge);border-radius:12px}.https-warning{z-index:120}
.recovery-link{display:inline-block;margin-top:24px;padding:12px 22px;border:1px solid #617b9f;border-radius:999px;color:#dce8ff;text-decoration:none;font-size:13px}
@media(max-width:800px){#ready-screen{padding:95px 24px 65px;justify-content:flex-start}#ready-title,#ready-tagline,#ready-instruction{max-width:100%}#ready-title{font-size:36px}#ready-tagline{font-size:14px;margin-bottom:18px}.ready-art{position:relative;right:auto;top:auto;order:8;width:100%;max-width:540px;margin:30px auto 0;transform:none;aspect-ratio:16/9;flex-shrink:0}#back-btn{left:24px;top:20px}.ready-notes{gap:7px;margin-bottom:20px}#ready-pack{margin-bottom:18px}#brand{bottom:12px;right:20px}.exp-state-pill{top:76px}.exp-extra{top:auto;bottom:110px}.exp-chip--score{top:24px}}
#back-btn,#back-btn:hover{transform:none}#ready-title,#ready-tagline,#ready-instruction{text-align:left}#ready-title:before{content:none}.recovery-link[hidden]{display:none}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}



.camera-note{line-height:1.8}.camera-note strong{display:inline-block;font-size:13px;font-weight:500;color:#c6d6ed;margin-bottom:4px}
/* Keep the dropdown chevron comfortably inset from the right edge. */
.demo-switch select{appearance:none;-webkit-appearance:none;padding:9px 40px 9px 14px;background-color:#121c2d;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b6c7df' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px}
/* Reserve a separate lower action area for recording in every experience. */
:root{--record-clearance:142px}
#record-panel{bottom:calc(36px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);width:max-content}
#btn-record{max-width:100%;white-space:normal;line-height:1.5}
#progress-bar{max-width:100%}
#instruction-overlay,#idle-overlay{bottom:var(--record-clearance)}
#instruction-overlay{max-height:calc(100dvh - var(--record-clearance) - 90px);overflow-y:auto;box-sizing:border-box}
#idle-overlay{max-height:calc(100dvh - var(--record-clearance) - 90px);overflow:hidden;padding:0 20px;box-sizing:border-box}
.exp-card{top:calc((100% - var(--record-clearance))/2);max-height:calc(100dvh - var(--record-clearance) - 80px);overflow-y:auto;box-sizing:border-box}
.exp-lives{bottom:var(--record-clearance)}
@media(max-width:800px){.exp-extra{bottom:var(--record-clearance)}#instruction-overlay{padding:16px 22px}.idle-step-guide{margin-bottom:12px}}

/* Thumbnails now contain only the selected image. */
.ready-art img,body[data-experience="ambient"] .ready-art img{left:0;top:0;bottom:auto;width:100%;height:100%;object-fit:cover;object-position:center}
