:root { --bg: #1d1510; --ink: #f3e6d4; --bubble: #fffaf0; --bubble-ink: #3a2a1c; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Yu Gothic", "Hiragino Sans", sans-serif; }
.room { position: relative; width: 100%; max-width: 1400px; aspect-ratio: 2528 / 1696; margin: 0 auto; overflow: hidden; cursor: pointer; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.person { transition: transform 1.2s ease-in-out; pointer-events: none; }
.person.move { transform: translateY(-0.4%); }
.pose { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.pose.on { opacity: 1; }
.person { opacity: 1; }
.person.hide { opacity: 0; }
.night { background: rgba(14, 16, 48, .5); mix-blend-mode: multiply; opacity: 0; transition: opacity 1.5s ease; pointer-events: none; }
.night.on { opacity: 1; }
/* 天窓の夜空: 天窓の形の mask（layer/sky-mask-*.png）で切り抜く */
.sky { opacity: 0; transition: opacity 1.5s ease; pointer-events: none; background: linear-gradient(180deg, #050a24 0%, #101a4a 60%, #24306a 100%);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; overflow: hidden; }
.sky.on { opacity: 1; }
.star { position: absolute; color: #fff7c8; text-shadow: 0 0 6px #fff3a0, 0 0 14px rgba(255, 240, 160, .8); transform: translate(-50%, -50%); animation: twinkle 2.4s ease-in-out infinite; line-height: 1; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.shooting { position: absolute; width: 18%; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); transform: rotate(-20deg); animation: shoot 1.2s ease-out forwards; }
@keyframes shoot { from { opacity: 0; translate: 0 0; } 20% { opacity: 1; } to { opacity: 0; translate: 60% 30%; } }
.bubble { position: absolute; max-width: 30%; padding: 0.6em 0.9em; border-radius: 1em; background: var(--bubble); color: var(--bubble-ink);
  font-size: clamp(12px, 1.4vw, 18px); box-shadow: 0 4px 12px rgba(0,0,0,.3); opacity: 0; transition: opacity .3s; pointer-events: none; }
.bubble.on { opacity: 1; }
.note { text-align: center; font-size: 13px; opacity: .7; padding: 0 16px; }
.people.away { display: none; }
/* 上の 1 行（薄く・上に固定） */
:root { --bar-h: 34px; }
body { padding-top: var(--bar-h); }
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--bar-h); z-index: 20; display: flex; align-items: center; gap: 8px; padding: 0 16px;
  background: rgba(29, 21, 16, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid rgba(196, 149, 106, .25); }
.topbar button { background: transparent; color: var(--ink); border: 1px solid rgba(196, 149, 106, .55); border-radius: 14px; padding: 2px 12px; font-size: 13px; line-height: 20px; cursor: pointer; }
.topbar button:hover { background: rgba(196, 149, 106, .25); }
.topbar .help { width: 24px; padding: 2px 0; border-radius: 50%; font-weight: bold; }
.topbar-gap { flex: 1; }
.label { min-width: 2em; text-align: center; font-size: 14px; letter-spacing: .1em; }
.toast { position: fixed; top: calc(var(--bar-h) + 10px); right: 16px; max-width: min(360px, calc(100vw - 32px)); z-index: 21; padding: 12px 16px;
  background: rgba(255, 250, 240, .96); color: var(--bubble-ink); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  font-size: 13px; line-height: 1.7; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.toast.on { opacity: 1; transform: none; pointer-events: auto; }
.toast ul { margin: 0; padding-left: 1.2em; }
.plan { position: fixed; inset: 0; background: rgba(20, 14, 10, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; z-index: 10; }
.plan[hidden] { display: none; }
.plan img { max-width: min(900px, 100%); max-height: 78vh; border-radius: 8px; }
.plan-now { margin: 0; font-size: 15px; }
.plan button { background: #c4956a; color: #1e1712; border: 0; border-radius: 20px; padding: 8px 22px; font-size: 16px; cursor: pointer; }
.spot-fx { position: absolute; pointer-events: none; border-radius: 12px; opacity: 0; transition: opacity .4s; box-shadow: 0 0 0 3px rgba(255, 220, 160, .8), 0 0 28px rgba(255, 200, 120, .7); }
.spot-fx.on { opacity: 1; }
.spot-fx.steam::after { content: ""; position: absolute; left: 30%; bottom: 80%; width: 40%; height: 120%;
  background: radial-gradient(closest-side, rgba(255,255,255,.55), transparent); filter: blur(6px); animation: steam 1.6s ease-out infinite; }
@keyframes steam { from { transform: translateY(0) scale(.6); opacity: .9; } to { transform: translateY(-60%) scale(1.3); opacity: 0; } }

/* 2026-10-28 夜中: 小道具の動き */
.lamp-off { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.lamp-off.on { opacity: 1; }
.prop-fx { opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.prop-fx.on { opacity: 1; }
.note-fx { position: absolute; color: #fff4d0; font-size: clamp(16px, 2.2vw, 30px); text-shadow: 0 0 8px rgba(255, 220, 150, .9); pointer-events: none; animation: note-up 2.6s ease-out forwards; }
@keyframes note-up { from { opacity: 0; transform: translateY(0) rotate(-8deg); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-260%) rotate(12deg); } }
.glow-fx { position: absolute; pointer-events: none; border-radius: 6px; background: radial-gradient(closest-side, rgba(190, 225, 255, .95), rgba(150, 200, 255, .35), transparent);
  box-shadow: 0 0 40px rgba(160, 210, 255, .8); animation: glow-in 6s ease forwards; }
@keyframes glow-in { 0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
.spin-fx { position: absolute; pointer-events: none; border-radius: 50%; overflow: hidden; }
.spin-fx-in { position: absolute; left: 50%; top: 50%; width: 300%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(rgba(255,255,255,0) 0deg, rgba(255,240,210,.45) 14deg, rgba(255,255,255,0) 34deg, rgba(255,255,255,0) 180deg, rgba(255,240,210,.3) 194deg, rgba(255,255,255,0) 214deg);
  animation: spin 1.8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
