:root { --cream: #f7f1e6; --lime: #d9ff68; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #07100c; }
body { color: var(--cream); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; overscroll-behavior: none; }
button { color: inherit; font: inherit; }
.viewer-shell { position: fixed; inset: 0; overflow: hidden; isolation: isolate; background: radial-gradient(circle at 50% 40%, #233d31, #06100b 70%); }
.panorama-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.panorama-canvas:active { cursor: grabbing; }
.panorama-canvas:focus-visible { outline: 2px solid var(--lime); outline-offset: -4px; }
.shade { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgb(4 10 7 / 70%) 0%, transparent 28%, transparent 52%, rgb(4 10 7 / 72%) 100%); }
.topbar { position: absolute; z-index: 2; top: max(22px, env(safe-area-inset-top)); left: clamp(20px, 4vw, 56px); display: flex; align-items: center; gap: 14px; }
.brand-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid rgb(255 255 255 / 34%); border-radius: 50%; background: rgb(8 20 14 / 38%); backdrop-filter: blur(18px); font-size: 14px; font-weight: 800; }
.eyebrow { margin: 0 0 4px; color: var(--lime); font-size: 10px; font-weight: 760; letter-spacing: .18em; }
.topbar h1 { margin: 0; font-size: clamp(17px, 2.5vw, 24px); font-weight: 620; letter-spacing: -.02em; }
.toolbox { position: absolute; z-index: 3; top: max(24px, env(safe-area-inset-top)); right: clamp(20px, 4vw, 56px); display: flex; gap: 8px; }
.tool { display: grid; place-items: center; gap: 2px; width: 54px; height: 54px; padding: 5px; border: 1px solid rgb(255 255 255 / 24%); border-radius: 17px; background: rgb(7 16 11 / 34%); backdrop-filter: blur(18px); cursor: pointer; transition: .25s ease; }
.tool:hover, .tool:focus-visible { transform: translateY(-2px); border-color: rgb(255 255 255 / 55%); outline: none; }
.tool.is-active { color: #102015; background: var(--lime); border-color: var(--lime); }
.tool > span { font-size: 18px; line-height: 1; }
.tool small { font-size: 9px; letter-spacing: .08em; }
.hero-copy { position: absolute; z-index: 2; left: clamp(20px, 4vw, 56px); bottom: clamp(152px, 21vh, 218px); }
.hero-copy.reveal { animation: reveal .7s both; }
.scene-tag { display: inline-flex; padding: 7px 12px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 999px; background: rgb(7 16 11 / 32%); backdrop-filter: blur(16px); font-size: 11px; letter-spacing: .08em; }
.hero-copy p { margin: 12px 0 0; max-width: 70vw; font-family: Georgia, "Songti SC", serif; font-size: clamp(29px, 5vw, 58px); line-height: 1.1; letter-spacing: -.04em; text-shadow: 0 3px 28px rgb(0 0 0 / 38%); }
.scene-dock { position: absolute; z-index: 3; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); width: min(720px, calc(100% - 220px)); transform: translateX(-50%); }
.scene-progress { display: flex; align-items: center; gap: 10px; width: 150px; margin: 0 auto 10px; color: rgb(255 255 255 / 60%); font-size: 9px; }
.scene-progress b { color: white; font-size: 11px; }.scene-progress span { flex: 1; height: 1px; background: linear-gradient(90deg, var(--lime), rgb(255 255 255 / 25%)); }.scene-progress em { font-style: normal; }
.scene-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; border: 1px solid rgb(255 255 255 / 18%); border-radius: 22px; background: rgb(5 13 9 / 42%); box-shadow: 0 18px 60px rgb(0 0 0 / 25%); backdrop-filter: blur(20px); }
.scene-card { position: relative; min-width: 0; height: 70px; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: 15px; background: #13251b; cursor: pointer; opacity: .7; transition: .25s ease; }
.scene-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgb(4 10 7 / 72%)); }
.scene-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.scene-card > span { position: absolute; z-index: 1; left: 10px; right: 8px; bottom: 8px; display: flex; align-items: baseline; gap: 6px; text-align: left; }
.scene-card b { font-size: 10px; color: var(--lime); }.scene-card small { overflow: hidden; font-size: 10px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.scene-card:hover, .scene-card:focus-visible, .scene-card.is-current { opacity: 1; border-color: var(--lime); outline: none; }.scene-card:hover img { transform: scale(1.06); }
.gesture-hint { position: absolute; z-index: 2; right: clamp(20px, 4vw, 56px); bottom: max(30px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 9px; color: rgb(255 255 255 / 82%); font-size: 11px; line-height: 1.35; letter-spacing: .06em; }
.gesture-hint small { color: rgb(255 255 255 / 52%); font-size: 9px; }.gesture-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 50%; }
.loading { position: absolute; z-index: 5; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; background: #0a1610; color: rgb(255 255 255 / 75%); font-size: 13px; letter-spacing: .12em; transition: opacity .7s ease, visibility .7s; }
.loading > span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 20px var(--lime); animation: pulse 1.2s infinite; }.loading.is-hidden { opacity: 0; visibility: hidden; }
.notice { position: absolute; z-index: 6; top: 95px; left: 50%; padding: 9px 14px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; background: rgb(5 13 9 / 76%); backdrop-filter: blur(16px); transform: translateX(-50%); font-size: 11px; white-space: nowrap; }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .5; } } @keyframes reveal { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 760px) {
  .topbar { top: max(16px, env(safe-area-inset-top)); left: 16px; }.brand-mark { width: 46px; height: 46px; }.eyebrow { font-size: 8px; }.topbar h1 { font-size: 16px; }
  .toolbox { top: 78px; right: 14px; flex-direction: column; gap: 6px; }.tool { width: 46px; height: 46px; border-radius: 14px; }.tool small { display: none; }
  .hero-copy { left: 18px; bottom: 150px; }.hero-copy p { max-width: calc(100vw - 36px); font-size: clamp(30px, 9vw, 44px); }.scene-tag { font-size: 10px; }
  .scene-dock { bottom: max(17px, env(safe-area-inset-bottom)); width: calc(100% - 24px); }.scene-progress { display: none; }.scene-list { gap: 5px; padding: 6px; border-radius: 18px; }.scene-card { height: 66px; border-radius: 12px; }.scene-card > span { left: 7px; bottom: 6px; }.scene-card small { display: none; }.scene-card b { font-size: 11px; }
  .gesture-hint { display: none; }.notice { top: 132px; }
}
@media (max-height: 610px) and (orientation: landscape) { .hero-copy { bottom: 115px; }.hero-copy p { font-size: 34px; }.scene-card { height: 56px; }.toolbox { top: 16px; }.scene-dock { bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; } }
