@charset "UTF-8";
:root { color-scheme:dark; --text:#f0e4cd; --muted:#c1b49c; --amber:#e9c48a; font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; height:100vh; height:100svh; min-height:340px; overflow:hidden; background:#171711; color:var(--text); }
a { color:inherit; text-decoration:none; } button,input { font:inherit; } button { color:inherit; cursor:pointer; }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation; } button:disabled { visibility:hidden; }
button:focus-visible,a:focus-visible,input:focus-visible { outline:2px solid var(--amber); outline-offset:4px; }
.icon { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
p,h1,h2 { margin:0; } [hidden] { display:none!important; }
.scene-stage,.scene-fallback,#space,.scene-vignette { position:absolute; inset:0; width:100%; height:100%; }
.scene-fallback { object-fit:contain; opacity:.85; }
#space { display:block; opacity:0; transition:opacity 1.8s ease; touch-action:none; cursor:grab; }
#space:active { cursor:grabbing; } #space:focus-visible { outline:2px solid var(--amber); outline-offset:-7px; }
body[data-ready="true"] #space { opacity:1; }
.scene-vignette { pointer-events:none; background:linear-gradient(#0e100f80,transparent 22%,transparent 70%,#11110caa),radial-gradient(ellipse at 50% 48%,transparent 40%,#0e100e25); }
.space-header { position:absolute; z-index:2; top:0; left:0; right:0; padding:max(20px,env(safe-area-inset-top)) clamp(16px,3vw,45px) 0; display:flex; justify-content:space-between; align-items:flex-start; pointer-events:none; }
.space-header>* { pointer-events:auto; }
.space-title { text-align:right; text-shadow:0 2px 12px #000a; font-family:"Yu Mincho","Hiragino Mincho ProN",serif; }
.space-title p { font-size:11px; letter-spacing:.3em; margin-bottom:8px; color:#d3c2a1; }
.space-title h1 { font-size:clamp(21px,2.4vw,30px); font-weight:400; letter-spacing:.19em; }
.space-title>span { display:block; font-size:10px; letter-spacing:.2em; margin-top:8px; color:var(--muted); }
.quiet-button { min-width:44px; min-height:48px; padding:8px 12px; display:inline-flex; align-items:center; gap:8px; background:#1b1a1440; border:1px solid #e5cfa016; border-radius:24px; font-size:12px; line-height:1.6; backdrop-filter:blur(12px); transition:transform .45s cubic-bezier(.25,1.6,.45,1),background .3s; text-shadow:0 1px 4px #000; }
.quiet-button:hover { background:#39312599; } .quiet-button:active { transform:scale(.95); transition:transform .12s; }
.quiet-button small { font-size:10px; color:var(--muted); }
.first-whisper { position:absolute; left:0; right:0; top:21%; text-align:center; font-family:"Yu Mincho","Hiragino Mincho ProN",serif; font-size:15px; letter-spacing:.18em; pointer-events:none; text-shadow:0 2px 12px #000; opacity:0; transition:opacity 2s; }
body[data-ready="true"] .first-whisper { opacity:1; } body.settled .first-whisper { opacity:0; }
.object-actions { position:absolute; left:50%; bottom:100px; transform:translateX(-50%); display:flex; gap:24px; }
.object-button { display:flex; align-items:center; justify-content:center; gap:8px; min-width:125px; min-height:48px; padding:7px 13px; color:#f0ddba; background:#17140f65; border:1px solid #d4b78545; border-radius:24px; backdrop-filter:blur(8px); font-size:11px; letter-spacing:.05em; transition:transform .45s cubic-bezier(.25,1.6,.45,1),background .3s; }
.object-button:hover { background:#6b4b2b65; } .object-button:active { transform:scale(.95); }
.view-hint { position:absolute; bottom:75px; left:0; right:0; font-size:10px; letter-spacing:.12em; color:#cfbea1; text-align:center; text-shadow:0 1px 6px #000; pointer-events:none; }
.space-footer { position:absolute; z-index:3; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px clamp(16px,3vw,45px) max(16px,env(safe-area-inset-bottom)); }
.space-settings { display:flex; gap:10px; align-items:center; }
.sound-settings { position:relative; }
.sound-panel { position:absolute; right:0; bottom:calc(100% + 16px); width:245px; padding:22px; border-radius:8px; border:1px solid #8c77524d; background:#211f19f5; box-shadow:0 12px 40px #0006; }
.sound-panel h2 { font:400 18px "Yu Mincho",serif; letter-spacing:.16em; margin-bottom:20px; }
.sound-choices { display:flex; gap:8px; margin-bottom:20px; }
.sound-choices button { color:inherit; background:transparent; border:1px solid #827254; border-radius:5px; min-width:60px; min-height:44px; font-size:12px; }
.sound-choices button[aria-pressed="true"] { background:#dec08d; color:#262119; }
.sound-panel label { display:block; font-size:12px; } .sound-panel input { accent-color:#dec08d; width:100%; min-height:32px; }
.sound-panel p { color:var(--muted); font-size:10px; line-height:1.8; margin-top:12px; }
.fallback-message { position:absolute; z-index:4; left:20px; right:20px; top:45%; font-size:14px; text-align:center; line-height:2; background:#17150ed9; padding:20px; }
.fallback-message a { display:block; text-decoration:underline; margin-top:12px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body[data-motion="off"] *,body[data-motion="off"] *::before { transition:none!important; }
body[data-motion="off"] button:active { transform:none; }
@media(max-width:600px) {
  .space-header { padding-top:max(15px,env(safe-area-inset-top)); } .space-title h1 { font-size:20px; }
  .space-title p { font-size:9px; } .space-title>span { font-size:9px; }
  .quiet-button { gap:6px; padding:7px 10px; font-size:10px; } .quiet-button .icon { width:17px; height:17px; }
  .space-footer { flex-wrap:wrap; padding-left:12px; padding-right:12px; gap:8px; }
  .space-settings { gap:5px; margin-left:auto; } .photo-return { position:absolute; bottom:80px; left:13px; font-size:10px; }
  .object-actions { width:100%; gap:12px; justify-content:center; bottom:140px; }
  .object-button { min-width:128px; font-size:11px; } .view-hint { bottom:118px; font-size:9px; }
  .first-whisper { font-size:13px; top:23%; }
}
@media(max-width:360px) { .space-settings .quiet-button { padding:7px 8px; gap:4px; } }
@media(prefers-reduced-motion:reduce) { *,*::before { transition:none!important; } button:active { transform:none!important; } }
