@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #f6f5fa;
  --muted: #a8b2cc;
  --sky: #111a34;
  --surface: #19243f;
  --surface-raised: #23304c;
  --line: rgba(198, 208, 244, .14);
  --gold: #f8d992;
  --gold-deep: #d5ac65;
  --mint: #a9edce;
  --coral: #ffb4b9;
  --panel: #f8f8f4;
  --panel-ink: #253048;
  --panel-muted: #6a7281;
  --panel-line: #e4e7e8;
  --easing: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; background: var(--sky); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; border: 0; }
button:disabled { cursor: default; opacity: .52; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #c8ac69; outline-offset: 4px;
}
[hidden] { display: none !important; }
svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; pointer-events: none; overflow: hidden; }
#experience { width: 100%; height: 100%; height: 100dvh; position: relative; isolation: isolate; overflow: hidden; }
#world { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.sky-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 66% 44%, #3d4c76 0%, #242f52 26%, #17213d 55%, #10182f 92%); transition: background .7s; }
.sky-glow::before { content: ""; position: absolute; width: 45vw; height: 34vw; right: 4%; top: 12%; border-radius: 50%; background: radial-gradient(ellipse, rgba(168, 135, 224, .10), transparent 68%); filter: blur(26px); }
.sky-stars { position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .58; background-image: radial-gradient(circle, #c3d0f1 1px, transparent 1.5px), radial-gradient(circle, #b4b0da .8px, transparent 1.4px); background-size: 163px 149px, 229px 193px; background-position: 73px 30px, 120px 120px; -webkit-mask-image: linear-gradient(#000, rgba(0,0,0,.35) 72%, transparent); mask-image: linear-gradient(#000, rgba(0,0,0,.35) 72%, transparent); }

.topbar { position: absolute; z-index: 20; top: max(26px, env(safe-area-inset-top)); left: 38px; right: 38px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand-image { width: 62px; height: 62px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 5px 20px #060c1a1a; display: grid; place-items: center; }
.brand-image img { width: 100%; height: 100%; object-fit: contain; }
.brand strong { font-size: 21px; font-weight: 750; letter-spacing: .075em; display: block; line-height: 1.3; }
.brand-divider { margin: 0 .31em; color: var(--gold); }
.brand small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.preview-tag { padding: 7px 11px; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; font-size: 12px; letter-spacing: .04em; }
.top-actions { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.icon-btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; background: rgba(31, 43, 70, .55); border: 1px solid var(--line); border-radius: 13px; color: var(--ink); backdrop-filter: blur(18px); transition: background .2s, border-color .2s; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn span { font-size: 14px; }
.icon-btn:hover, .round-button:hover { background: #35415e; border-color: #a2b1d14d; }
.booking-button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--gold); color: #3b3430; padding: 0 19px; border-radius: 13px; font-size: 14px; font-weight: 650; box-shadow: 0 5px 20px #0b10202b; transition: background .2s, translate .2s; }
.booking-button svg { width: 20px; height: 20px; }
.booking-button:hover { background: #ffe5ac; translate: 0 -2px; }

.intro { position: absolute; z-index: 9; top: clamp(145px, 25vh, 250px); left: 4.2%; width: min(27vw, 380px); pointer-events: none; transition: opacity .35s, translate .45s var(--easing); }
.intro > * { pointer-events: auto; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .21em; display: flex; gap: 10px; align-items: center; margin-bottom: 22px; }
.eyebrow > span { display: block; width: 22px; height: 1px; background: currentColor; }
h1 { font-size: clamp(40px, 4.6vw, 68px); font-weight: 800; letter-spacing: -.055em; line-height: 1.18; margin: 0; text-shadow: 0 3px 16px #0d16341a; }
.title-accent { color: var(--gold); }
.title-period { color: var(--gold); }
.intro > p { color: #b7bfd3; font-size: 15px; line-height: 1.9; font-weight: 400; margin: 24px 0 27px; letter-spacing: .025em; }
.explore-button { min-height: 50px; display: inline-flex; align-items: center; gap: 11px; padding: 0 22px; font-size: 15px; font-weight: 650; border-radius: 15px; background: #f5f2e9; color: #263048; box-shadow: 0 6px 25px #050a1b26; transition: translate .2s, background .2s; }
.explore-button:hover { background: #fff; translate: 0 -3px; }
.explore-button svg { width: 21px; height: 21px; }
.journey { max-width: 230px; margin-top: 38px; }
.journey-heading { display: flex; align-items: center; justify-content: space-between; color: #a4aec7; font-size: 12px; }
.journey-heading b { font-weight: 500; font-size: 12px; color: var(--gold); letter-spacing: .08em; }
.journey-dots { display: flex; gap: 11px; margin-top: 12px; }
.journey-dots > * { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: rgba(186, 201, 242, .06); border: 1px solid rgba(186, 201, 242, .18); color: #68738f; transition: background .4s, color .4s, border-color .4s; }
.journey-dots svg { width: 15px; height: 15px; stroke-width: 1.4; }
.journey-dots .visited, .journey-dots .done, .journey-dots .active { color: var(--gold); background: rgba(249, 219, 154, .12); border-color: rgba(249, 219, 154, .55); }
.journey-dots .visited svg, .journey-dots .done svg, .journey-dots .active svg { fill: currentColor; stroke: currentColor; }
.journey > p { font-size: 12px; color: #8e9ab6; margin: 11px 0 0; line-height: 1.7; }

#hotspots { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.hotspot { position: absolute; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 41px; padding: 9px 14px; transform: translate(-50%, -100%); white-space: nowrap; border: 1px solid #fff6; border-radius: 13px; background: #f9f6ebf0; color: #303a53; box-shadow: 0 5px 18px #0d153940, inset 0 1px 0 #fff; font-size: 14px; font-weight: 650; transition: opacity .25s, scale .2s, background .2s, border-color .2s; backdrop-filter: blur(10px); }
.hotspot::after { content: ""; position: absolute; height: 7px; width: 7px; left: calc(50% - 3.5px); bottom: -4px; rotate: 45deg; background: #f9f6eb; border-radius: 0 0 2px 0; }
.hotspot:hover { scale: 1.06; background: #fffdf7; border-color: #fff; }
.hotspot svg { width: 17px; height: 17px; color: #6b7288; }
.hotspot small { font-size: 11px; color: #8a8f9e; }
.hotspot .hotspot-icon { display: flex; align-items: center; }
.hotspot.visited { border-color: #b5e8ca; background: #f5fff7; }
.hotspot.visited::after { background: #f5fff7; }
.hotspot.visited svg { color: #3b9a76; }
.hotspot[data-id="rhythm"], .hotspot[data-destination="rhythm"] { background: #ffe6c0; }
.hotspot[data-id="rhythm"]::after, .hotspot[data-destination="rhythm"]::after { background: #ffe6c0; }
.scene-tip { position: absolute; z-index: 9; bottom: 141px; left: 58%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; color: #a9b7ce; white-space: nowrap; font-size: 12px; letter-spacing: .04em; pointer-events: none; }
.drag-illustration { font-size: 21px; line-height: 1; color: var(--gold); }
.world-controls { position: absolute; z-index: 15; right: 35px; bottom: 147px; display: flex; flex-direction: column; gap: 10px; }
.round-button { width: 44px; height: 44px; background: rgba(34, 47, 75, .7); color: #d1d8e8; border: 1px solid var(--line); border-radius: 50%; backdrop-filter: blur(18px); display: grid; place-items: center; transition: background .2s; }
.round-button svg { width: 20px; height: 20px; }
#motion-label { font-size: 19px; font-weight: 500; letter-spacing: 2px; }
.destination-dock { position: absolute; z-index: 20; bottom: max(39px, calc(env(safe-area-inset-bottom) + 20px)); left: 50%; translate: -50% 0; width: min(624px, calc(100% - 100px)); padding: 11px 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #202c47da; border: 1px solid #bac9ee29; border-radius: 23px; backdrop-filter: blur(22px); box-shadow: 0 18px 44px #050c2033, inset 0 1px 0 #e7f0ff0a; }
.dock-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 62px; padding: 5px 2px; color: #b6c0d6; font-size: 13px; border-radius: 14px; background: transparent; position: relative; transition: background .2s, color .2s; }
.dock-item + .dock-item::before { content: ""; position: absolute; left: -1px; top: 17px; bottom: 17px; width: 1px; background: #d3ddff0b; }
.dock-item svg { width: 25px; height: 25px; }
.dock-item:hover, .dock-item.active, .dock-item[aria-current="page"], .dock-item[aria-pressed="true"] { color: var(--gold); background: #e7d19910; }
.dock-item.visited::after { content: ""; width: 4px; height: 4px; background: var(--gold); position: absolute; top: 5px; right: 18px; border-radius: 50%; }
.rhythm-dock { color: #f0c790; }
.scene-footer { position: absolute; z-index: 8; bottom: 13px; left: 38px; right: 38px; display: flex; justify-content: space-between; color: #7886a4; font-size: 11px; letter-spacing: .035em; pointer-events: none; }

.panel-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(7, 13, 32, .22); animation: veil-in .25s both; }
.detail-panel { position: fixed; z-index: 40; top: 105px; right: 30px; bottom: 132px; width: min(440px, calc(100vw - 60px)); display: flex; flex-direction: column; background: var(--panel); color: var(--panel-ink); border: 1px solid #ffffffb3; border-radius: 27px; box-shadow: 0 25px 95px #03091f66, 0 2px 8px #03091f1a; overflow: hidden; animation: panel-in .4s var(--easing) both; }
.panel-top { flex: 0 0 auto; min-height: 69px; padding: 16px 20px 9px 27px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #2c374409; background: var(--panel); }
#panel-kicker { font-size: 12px; letter-spacing: .1em; font-weight: 650; color: #8b826d; }
.close-button { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #eaeced; color: #5d6572; transition: background .2s; }
.close-button:hover { background: #dde1e4; }
.close-button svg { width: 19px; height: 19px; }
.panel-content { padding: 15px 27px 28px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c8cccf transparent; }
.panel-content h2 { font-size: 28px; line-height: 1.3; letter-spacing: -.035em; margin: 4px 0 16px; font-weight: 750; }
.panel-content h3 { font-size: 18px; line-height: 1.5; margin: 21px 0 10px; font-weight: 700; }
.panel-content p { font-size: 14px; line-height: 1.85; }
.panel-content .lead { color: #626b7b; font-size: 15px; line-height: 1.9; margin: 0 0 20px; }
.panel-content .note { color: #8a9099; font-size: 12px; line-height: 1.75; margin: 16px 0; }
.panel-content .note.box { padding: 13px 15px; border-radius: 13px; background: #eeeee7; color: #7f7c6d; }
.panel-cover { width: 100%; aspect-ratio: 1.65; object-fit: cover; border-radius: 17px; background: #e5e7e6; margin: 17px 0; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.pills span { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 7px; background: #eaece7; color: #5e6a65; font-size: 12px; line-height: 1.4; }
.primary-action, .secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 19px; border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1.4; text-align: center; transition: background .2s, translate .2s; }
.primary-action { background: #26344c; color: #fff9ea; box-shadow: 0 4px 12px #26344c13; }
.primary-action:hover { background: #3a4a65; }
.secondary-action { background: #eaede9; color: #536158; border: 1px solid #dee3dd; }
.secondary-action:hover { background: #dde5dc; }
.primary-action svg, .secondary-action svg { width: 18px; height: 18px; }
.small-link { display: inline-flex; gap: 5px; align-items: center; color: #746749; font-size: 13px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; margin: 10px 0; background: transparent; }
.about-footer { border-top: 1px solid var(--panel-line); margin-top: 25px; padding-top: 17px; color: #8b9098; font-size: 12px; line-height: 1.8; }

.course-tabs, .gallery-filter { display: flex; gap: 6px; padding: 5px; background: #e9ece9; border-radius: 12px; margin: 18px 0; }
.course-tabs button, .gallery-filter button { flex: 1; min-height: 37px; padding: 8px 10px; border-radius: 9px; font-size: 14px; color: #778079; background: transparent; }
.course-tabs .active, .gallery-filter .active { background: #fff; color: #31493b; box-shadow: 0 2px 7px #182b1c0c; }
.course-card { padding: 21px; background: #e7efe5; border: 1px solid #d8e5d5; border-radius: 19px; margin: 15px 0; }
.course-card.adult { background: #ece8f3; border-color: #e0d9eb; }
.course-card h3 { margin: 12px 0 8px; font-size: 21px; color: #334b3c; }
.course-card.adult h3 { color: #5a4e73; }
.course-card p { color: #68776a; margin: 8px 0; }
.course-card.adult p { color: #786e87; }
.course-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #f7fbf4; color: #6c9f76; font-size: 26px; box-shadow: 0 3px 6px #435e3508; }
.adult .course-symbol { background: #f7f3fd; color: #9e81ba; }
.course-symbol svg { width: 27px; height: 27px; }
.course-steps { display: grid; gap: 11px; margin: 20px 0; padding: 0; list-style: none; counter-reset: steps; }
.course-steps > * { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.7; color: #707986; }
.course-steps > *::before { counter-increment: steps; content: counter(steps); flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e7ebe6; color: #5d7563; font-size: 12px; margin-top: 1px; }
.teacher-card { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 16px; padding: 16px 0 22px; border-bottom: 1px solid var(--panel-line); }
.teacher-card:last-child { border-bottom: 0; }
.teacher-card > img { width: 115px; height: 150px; border-radius: 15px; object-fit: cover; background: #e2e2df; }
.teacher-card h3 { margin: 3px 0 5px; font-size: 21px; }
.teacher-card .role { font-size: 12px; color: #9a8965; line-height: 1.65; margin: 0 0 9px; }
.teacher-card p { font-size: 13px; line-height: 1.8; color: #7b818b; margin: 8px 0; }
.teacher-card .pills { gap: 5px; margin: 10px 0 0; }
.teacher-card .pills span { font-size: 11px; padding: 4px 6px; }
.gallery-item { margin: 0 0 22px; }
.gallery-item img { width: 100%; max-height: 260px; aspect-ratio: 1.55; object-fit: cover; border-radius: 15px; background: #e3e6e2; }
.gallery-item h3 { font-size: 16px; margin: 11px 0 3px; }
.gallery-item p, .gallery-item figcaption { color: #8b9299; font-size: 12px; line-height: 1.75; margin: 5px 0 0; }

.form-field { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.form-field label, label.form-field { color: #5b6675; font-size: 14px; font-weight: 550; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 47px; padding: 11px 13px; background: #fff; color: #374252; border: 1px solid #dce0e0; border-radius: 11px; font-size: 16px; outline-offset: 2px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #a2a9ad; font-size: 14px; font-weight: 400; }
.form-field select { appearance: none; -webkit-appearance: none; padding-right: 39px; 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='%23777f8a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.form-field textarea { min-height: 95px; resize: vertical; }
.form-field small { color: #969ba2; font-size: 12px; font-weight: 400; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.choice-row label, .choice-row button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; background: #ecefea; color: #6c756b; font-size: 14px; border-radius: 10px; border: 1px solid transparent; }
.choice-row .active, .choice-row label:has(input:checked) { background: #e5eddc; border-color: #b8cda8; color: #4f6b40; }
.choice-row input { accent-color: #789063; width: 15px; height: 15px; }
.plan-result { background: #edf1e8; color: #53654c; border: 1px solid #d7e3cf; border-radius: 18px; padding: 21px; margin: 17px 0; }
.plan-result h3 { margin: 0 0 12px; color: #455b3d; }
.plan-result p { margin: 8px 0; }
.plan-result > svg { color: #7e9d63; margin-bottom: 9px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 17px 0; }
.success-actions > * { flex: 1 1 auto; }

.rhythm-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 15px; background: #eeeae2; border-radius: 12px; margin-top: 18px; font-size: 13px; color: #8d7d5e; }
.rhythm-header button { background: transparent; color: #89795d; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.rhythm-header svg { width: 18px; height: 18px; }
.rhythm-arena { position: relative; height: 220px; display: grid; place-items: center; margin: 15px 0 0; overflow: hidden; border-radius: 21px; background: radial-gradient(circle at 50% 50%, #fff9e8 0, #f5efdf 57%, #ebe6db 100%); user-select: none; touch-action: manipulation; }
.beat-button { z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 120px; height: 120px; padding: 15px; background: linear-gradient(145deg, #f7d99b, #edc780); color: #705227; font-size: 17px; font-weight: 700; border-radius: 50%; border: 1px solid #ffecb2; box-shadow: 0 9px 0 #c99e5c, 0 15px 25px #89632e25, inset 0 2px 0 #fff4d0; transition: translate .1s, box-shadow .1s; }
.beat-button:active { translate: 0 5px; box-shadow: 0 4px 0 #c99e5c, 0 8px 16px #89632e2a; }
.beat-button svg { width: 29px; height: 29px; }
.beat-button small { font-size: 12px; font-weight: 500; }
.beat-ring { position: absolute; z-index: 1; width: 120px; height: 120px; top: calc(50% - 60px); left: calc(50% - 60px); border: 3px solid #bb9961; border-radius: 50%; transform: scale(var(--scale, 1.6)); opacity: var(--ring-opacity, .3); pointer-events: none; }
.beat-status { text-align: center; color: #8b7859; min-height: 27px; font-size: 15px; font-weight: 600; margin: 15px 0 8px; }
.beat-progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 20px; }
.beat-progress span { width: 21px; height: 7px; border-radius: 10px; background: #e0e2dc; transition: background .2s, transform .2s; }
.beat-progress span.hit { background: #85b88c; }
.beat-progress span.miss { background: #d4c0a8; }
.beat-progress span.active { background: #e3bc77; transform: scaleY(1.4); }
.rhythm-score { text-align: center; border-radius: 15px; background: #f0eee5; color: #97805a; padding: 20px; margin: 18px 0; }
.rhythm-score b, .rhythm-score strong { display: block; color: #ae8542; font-size: 36px; font-weight: 750; line-height: 1.3; }
.rhythm-score p { margin: 6px 0 0; }
.help-grid { display: grid; gap: 12px; margin: 22px 0; }
.help-grid > * { padding: 16px; border-radius: 14px; background: #ebeee8; }
.help-grid h3 { margin: 0 0 6px; font-size: 16px; }
.help-grid p { color: #7a8478; margin: 0; font-size: 14px; }
.help-grid svg { margin-bottom: 8px; color: #829175; }

.toast { position: fixed; z-index: 100; bottom: 145px; left: 50%; translate: -50% 12px; max-width: min(410px, calc(100vw - 40px)); padding: 13px 20px; color: #343e52; background: #fff9ed; border: 1px solid #ffffff80; box-shadow: 0 8px 30px #040a2240; border-radius: 14px; font-size: 14px; text-align: center; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.toast.visible { opacity: 1; translate: -50% 0; }
#loading { position: absolute; z-index: 10; top: 50%; left: 58%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 25px; color: #e8dfce; pointer-events: none; }
#loading span { font-size: 16px; font-weight: 550; letter-spacing: .12em; }
#loading small { color: #9aa6c1; font-size: 12px; }
.loading-orbit { width: 66px; height: 66px; display: grid; place-items: center; border: 1px solid #d5bf8f29; border-top-color: #dcc692; border-radius: 50%; animation: orbit 2.6s linear infinite; }
.loading-orbit svg { width: 25px; height: 25px; fill: var(--gold); stroke: var(--gold); animation: orbit 2.6s linear infinite reverse; }
.fallback-map { position: absolute; z-index: 12; left: 38%; right: 10%; top: 25%; padding: 30px; border-radius: 25px; background: #263452db; border: 1px solid #c6cfee24; backdrop-filter: blur(20px); }
.fallback-map h2 { font-size: 22px; }
.fallback-map p { color: #b4bfd4; font-size: 14px; line-height: 1.8; }
#fallback-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
#fallback-links button { background: #ffffff0d; color: #e6dfce; padding: 15px 10px; border-radius: 12px; border: 1px solid #ffffff13; font-size: 14px; }
body.panel-open .intro { opacity: 0; translate: -15px 0; pointer-events: none; }
body.panel-open .intro > * { pointer-events: none; }
body.panel-open .hotspot { opacity: .2 !important; pointer-events: none; }
body.panel-open .scene-tip { opacity: 0; }

body[data-theme="day"] { color-scheme: light; --ink: #273b55; --muted: #71849c; --sky: #d4e5ed; --line: #657e9a29; --gold: #947443; }
body[data-theme="day"] .sky-glow { background: radial-gradient(ellipse at 67% 40%, #f2e9ec 0, #d5e5ec 43%, #b9d5e2 100%); }
body[data-theme="day"] .sky-stars { opacity: 0; }
body[data-theme="day"] .intro > p { color: #657990; }
body[data-theme="day"] .title-accent, body[data-theme="day"] .title-period { color: #876b47; }
body[data-theme="day"] .icon-btn, body[data-theme="day"] .round-button { background: #f0f7f9a6; color: #557086; border-color: #ffffff80; }
body[data-theme="day"] .icon-btn:hover, body[data-theme="day"] .round-button:hover { background: #fff; }
body[data-theme="day"] .booking-button { background: #263b54; color: #fff4db; }
body[data-theme="day"] .explore-button { background: #fffaf0; }
body[data-theme="day"] .destination-dock { background: #f7faf6d9; border-color: #ffffffc7; box-shadow: 0 18px 40px #294d6c13; }
body[data-theme="day"] .dock-item { color: #788ca0; }
body[data-theme="day"] .dock-item:hover, body[data-theme="day"] .dock-item.active, body[data-theme="day"] .dock-item[aria-pressed="true"] { color: #587856; background: #6a926011; }
body[data-theme="day"] .journey-heading, body[data-theme="day"] .journey > p, body[data-theme="day"] .scene-tip { color: #72879b; }
body[data-theme="day"] .journey-dots > * { color: #a5b9bf; background: #ffffff22; border-color: #6b829324; }
body[data-theme="day"] .journey-dots .visited, body[data-theme="day"] .journey-dots .done { color: #b58f51; background: #fff8e699; border-color: #c8aa6f80; }
body[data-theme="day"] .scene-footer { color: #8095a5; }
body[data-theme="day"] #loading { color: #4e667a; }
body[data-theme="day"] #loading small { color: #8296a5; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes panel-in { from { opacity: 0; translate: 25px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 1700px) {
  .topbar { left: 3%; right: 3%; top: 35px; }
  .intro { left: 5%; top: 27%; }
  .detail-panel { right: 4%; width: 470px; }
}
@media (max-width: 1100px) {
  .topbar { left: 25px; right: 25px; gap: 15px; }
  .preview-tag { display: none; }
  .intro { left: 3.4%; width: 29%; top: 25%; }
  h1 { font-size: clamp(37px, 4.9vw, 52px); }
  .intro > p { font-size: 14px; margin: 18px 0 22px; }
  .journey { margin-top: 26px; }
  .scene-footer { left: 25px; right: 25px; }
  .detail-panel { right: 22px; width: 420px; }
}
@media (max-width: 760px) {
  .topbar { top: max(17px, env(safe-area-inset-top)); left: 18px; right: 18px; gap: 10px; }
  .brand { gap: 9px; }
  .brand-image { width: 45px; height: 45px; border-radius: 13px; }
  .brand strong { font-size: 17px; letter-spacing: .02em; }
  .brand-divider { margin: 0 .2em; }
  .brand small { display: none; }
  .top-actions { gap: 8px; }
  .icon-btn { width: 38px; min-width: 38px; height: 38px; padding: 0; border-radius: 11px; }
  .icon-btn span, .help-button { display: none; }
  .booking-button { min-height: 39px; font-size: 13px; padding: 0 12px; border-radius: 11px; gap: 6px; }
  .booking-button svg { display: none; }
  .intro { top: 105px; left: 23px; right: 23px; width: auto; }
  .eyebrow { margin-bottom: 13px; font-size: 10px; letter-spacing: .17em; }
  .eyebrow > span { width: 18px; }
  h1 { font-size: clamp(31px, 6.5vw, 43px); letter-spacing: -.055em; line-height: 1.3; }
  h1 br { display: none; }
  .intro > p { font-size: 13px; line-height: 1.8; margin: 13px 0 18px; }
  .intro > p br { display: none; }
  .explore-button { min-height: 41px; padding: 0 15px; gap: 8px; border-radius: 12px; font-size: 13px; }
  .explore-button svg { width: 18px; height: 18px; }
  .journey { display: none; }
  .scene-tip { bottom: 126px; left: 50%; font-size: 11px; gap: 5px; }
  .drag-illustration { font-size: 17px; }
  .world-controls { right: 18px; bottom: 158px; gap: 8px; }
  .round-button { width: 38px; height: 38px; }
  .round-button svg { width: 18px; height: 18px; }
  .destination-dock { width: calc(100% - 32px); max-width: 580px; padding: 7px; bottom: max(33px, calc(env(safe-area-inset-bottom) + 14px)); border-radius: 20px; }
  .dock-item { min-height: 61px; font-size: 11px; gap: 8px; border-radius: 13px; }
  .dock-item svg { width: 23px; height: 23px; }
  .dock-item + .dock-item::before { display: none; }
  .dock-item.visited::after { right: 10px; top: 4px; }
  .scene-footer { left: 18px; right: 18px; bottom: max(10px, env(safe-area-inset-bottom)); font-size: 10px; justify-content: center; }
  .scene-footer span:first-child { display: none; }
  .hotspot { min-height: 34px; padding: 7px 10px; gap: 5px; border-radius: 11px; font-size: 12px; }
  .hotspot svg { width: 14px; height: 14px; }
  .hotspot small { display: none; }
  .detail-panel { inset: auto 12px max(112px, calc(env(safe-area-inset-bottom) + 93px)); width: auto; max-height: calc(100dvh - 195px); border-radius: 24px; animation-name: sheet-in; }
  .panel-top { padding: 13px 17px 10px 22px; min-height: 61px; }
  .panel-content { padding: 12px 22px 24px; }
  .panel-content h2 { font-size: 26px; }
  .panel-content .lead { font-size: 14px; }
  .toast { bottom: 132px; font-size: 13px; padding: 11px 16px; }
  #loading { top: 49%; left: 50%; width: 100%; }
  .fallback-map { left: 20px; right: 20px; top: 285px; max-height: calc(100dvh - 435px); overflow-y: auto; padding: 19px; }
  .fallback-map h2 { font-size: 18px; margin-top: 0; }
  .fallback-map p { font-size: 13px; }
  #fallback-links { gap: 8px; margin-top: 14px; }
  #fallback-links button { font-size: 13px; padding: 12px 8px; }
  body.panel-open .intro { translate: 0 -10px; }
}
@media (max-width: 360px) {
  .topbar { left: 13px; right: 13px; }
  .brand-image { width: 41px; height: 41px; border-radius: 12px; }
  .brand strong { font-size: 16px; }
  .booking-button { padding: 0 11px; }
  .booking-button span { font-size: 0; }
  .booking-button span::after { content: "试听"; font-size: 14px; }
  .intro { top: 96px; left: 20px; right: 20px; }
  h1 { font-size: 30px; }
  .intro > p { font-size: 12px; margin: 11px 0 14px; }
  .destination-dock { width: calc(100% - 22px); padding: 6px 3px; }
  .dock-item { font-size: 10.5px; }
  .teacher-card { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
  .teacher-card > img { width: 90px; height: 132px; }
  .teacher-card h3 { font-size: 19px; }
  .teacher-card p { font-size: 12px; }
  .panel-content { padding-left: 18px; padding-right: 18px; }
  .course-card { padding: 17px; }
  .scene-tip { font-size: 10px; }
}
@media (max-height: 740px) and (min-width: 761px) {
  .topbar { top: 18px; }
  .brand-image { width: 52px; height: 52px; border-radius: 15px; }
  .intro { top: 145px; }
  h1 { font-size: 43px; }
  .eyebrow { margin-bottom: 15px; }
  .intro > p { margin: 15px 0 20px; }
  .journey { margin-top: 24px; }
  .journey > p { display: none; }
  .detail-panel { top: 90px; bottom: 120px; }
  .destination-dock { bottom: 30px; padding: 7px 12px; }
  .scene-tip { bottom: 125px; }
}
@media (max-height: 700px) and (max-width: 760px) {
  .intro { top: 87px; }
  .eyebrow { margin-bottom: 8px; }
  .intro > p { margin: 8px 0 12px; }
  .explore-button { min-height: 36px; }
  .scene-tip { bottom: 117px; }
  .world-controls { bottom: 143px; }
  .detail-panel { max-height: calc(100dvh - 170px); bottom: 103px; }
  .destination-dock { bottom: 27px; }
  .dock-item { min-height: 57px; }
}
@media (max-height: 510px) and (orientation: landscape) {
  .topbar { top: 12px; left: 20px; right: 20px; }
  .brand-image { width: 40px; height: 40px; }
  .brand strong { font-size: 16px; }
  .brand small, .preview-tag { display: none; }
  .intro { top: 101px; left: 30px; width: 30%; }
  h1 { font-size: 30px; }
  h1 br { display: block; }
  .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .intro > p, .journey { display: none; }
  .explore-button { margin-top: 18px; min-height: 36px; font-size: 12px; }
  .destination-dock { bottom: 23px; width: 430px; padding: 5px 10px; }
  .dock-item { min-height: 46px; gap: 4px; font-size: 11px; }
  .dock-item svg { width: 20px; height: 20px; }
  .scene-tip { display: none; }
  .scene-footer { font-size: 9px; bottom: 7px; }
  .world-controls { right: 20px; bottom: 100px; }
  .round-button { width: 36px; height: 36px; }
  .detail-panel { top: 67px; bottom: 94px; left: auto; right: 16px; width: min(395px, 58vw); max-height: none; }
  .panel-top { min-height: 49px; padding-top: 8px; padding-bottom: 5px; }
  .panel-content h2 { font-size: 24px; }
  .hotspot { font-size: 11px; min-height: 29px; padding: 6px 9px; }
  .hotspot svg { width: 13px; height: 13px; }
  .toast { bottom: 99px; }
}
@keyframes sheet-in { from { opacity: 0; translate: 0 25px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Content components share readable sizes at every viewport. */
.brand small, .eyebrow, .journey-heading, .journey > p, .scene-footer, .scene-tip { font-size: 12px; }
.booking-button, .dock-item, .hotspot, .small-link { font-size: 14px; }
.panel-content .lead { font-size: 16px; }
.teacher-card p { font-size: 14px; }
.teacher-card .pills span, .pills span { font-size: 12px; }
.hotspot { left: 0; top: 0; }
.hotspot-star { display: none; }
.hotspot.visited .hotspot-star { display: block; width: 12px; height: 12px; color: #8cad79; fill: currentColor; stroke: currentColor; }
.journey-dots svg.visited { color: var(--gold); fill: currentColor; }
.course-steps { display: flex; gap: 9px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 9px 0; }
.course-steps > * { display: inline; font-size: 13px; font-weight: 550; }
.course-steps > *::before { display: none; }
.course-steps > span { color: #b0b6b8; }
.field-label { display: block; margin-top: 20px; font-size: 14px; font-weight: 550; color: #5b6675; }
.sound-toggle { border-radius: 9px; padding: 5px 7px; }
.sound-toggle:hover, .sound-toggle[aria-pressed="true"] { background: #d7ceb93d; }
.copy-text { display: block; width: 100%; min-height: 180px; margin: 15px 0; resize: vertical; padding: 13px; border: 1px solid #dce0db; border-radius: 12px; background: #fff; color: #4e5e4b; font-size: 15px; line-height: 1.8; }
.beat-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.rhythm-arena .beat-status { position: absolute; left: 10px; right: 10px; bottom: 6px; margin: 0; font-size: 12px; }
.panel-content .rhythm-score { background: transparent; margin: 6px 0 0; padding: 0; font-size: 35px; line-height: 1.4; font-weight: 750; color: #ac8444; }
.help-grid { grid-template-columns: 27px minmax(0, 1fr); gap: 22px 13px; }
.help-grid > * { padding: 0; background: none; border-radius: 0; }
.help-grid > svg { margin: 4px 0 0; width: 24px; height: 24px; color: #93a181; }
#fallback-links button { display: flex; align-items: center; justify-content: center; gap: 8px; }
#fallback-links button svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .intro > p { font-size: 14px; }
  .explore-button { font-size: 14px; }
  .dock-item { font-size: 12px; }
  .scene-footer { font-size: 11px; }
  .hotspot { font-size: 13px; }
  .detail-panel .lead { font-size: 16px; }
  .teacher-card p { font-size: 14px; }
}
@media (max-width: 360px) {
  .booking-button span { font-size: 0; }
  .booking-button span::after { font-size: 14px; }
  .dock-item { font-size: 12px; }
  .eyebrow { font-size: 11px; }
}

/* Institution shop and discovery share the existing accessible detail drawer. */
.hotspot[data-id="shop"] { background: #f9edcf; border-color: #e4c982; }
.hotspot[data-id="shop"]::after { background: #f9edcf; }
.hotspot[data-id="shop"] svg { color: #9a7a3e; }
.hotspot[data-id="shop"].visited { background: #f5fff7; border-color: #b5e8ca; }
.hotspot[data-id="shop"].visited::after { background: #f5fff7; }
.section-back { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 4px; margin: -2px 0 12px; background: transparent; color: #71664d; font-size: 13px; }
.section-back svg { width: 17px; height: 17px; rotate: 180deg; }
.service-eyebrow { display: block; font-size: 11px; font-weight: 650; color: #92764a; letter-spacing: .07em; }
.shop-welcome { padding: 21px 22px; margin: 22px 0; border: 1px solid #635641; border-radius: 19px; color: #f8e8c6; background: radial-gradient(ellipse at 100% 0, #5c4b38, transparent 68%), #252a38; }
.shop-welcome > span { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .16em; color: #d6bb83; }
.shop-welcome > span svg { width: 17px; height: 17px; }
.shop-welcome h3 { margin: 14px 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -.04em; }
.shop-welcome p { margin: 0; color: #cebfa6; font-size: 12px; }
.shop-filters { display: grid; grid-template-columns: .7fr .8fr .8fr 1.2fr; gap: 5px; padding: 5px; margin: 20px 0 17px; border: 1px solid #e8e2d6; border-radius: 13px; background: #eeeae1; }
.shop-filters button { min-height: 36px; padding: 6px 4px; border-radius: 9px; font-size: 13px; background: transparent; color: #817866; white-space: nowrap; }
.shop-filters button[aria-pressed="true"] { background: #fffdf7; color: #3b352b; box-shadow: 0 2px 6px #4f422812; font-weight: 650; }
.shop-category-list { display: grid; gap: 13px; }
.shop-category-card { width: 100%; display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: stretch; overflow: hidden; padding: 0; border: 1px solid #e8e3d8; border-radius: 17px; background: #fffdf8; text-align: left; color: #303449; transition: border-color .2s, box-shadow .2s; }
.shop-category-card:hover { border-color: #c3a56a; box-shadow: 0 6px 16px #88734f12; }
.shop-art { position: relative; display: grid; place-items: center; min-width: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #fffdf5 0%, #e8dfcc 100%); }
.shop-art img { width: 100%; height: 100%; max-height: 210px; min-height: 148px; object-fit: contain; padding: 10px 5px 21px; }
.shop-art > span { position: absolute; bottom: 7px; left: 0; right: 0; text-align: center; font-size: 10px; color: #9a8a70; }
.shop-card-copy { display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-width: 0; padding: 15px 13px; }
.shop-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.shop-card-heading strong { font-size: 18px; font-weight: 700; }
.shop-card-heading svg { width: 17px; height: 17px; color: #ae8c51; }
.shop-card-description { margin: 8px 0 10px; font-size: 12px; line-height: 1.8; color: #737887; }
.shop-card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.shop-card-tags > span { font-size: 10px; color: #897454; background: #f1eadc; border-radius: 5px; padding: 3px 5px; }
.shop-card-action { margin-top: 11px; color: #836838; font-size: 12px; font-weight: 650; }
.shop-directory-note { margin: 17px 2px 24px; }
.shop-feature { overflow: hidden; border: 1px solid #e5ddcf; border-radius: 18px; background: #f1ede4; }
.shop-feature > img { width: 100%; height: 245px; object-fit: cover; object-position: center 63%; }
.shop-feature > div { padding: 20px 21px 17px; }
.shop-feature h3 { margin: 8px 0; font-size: 20px; }
.shop-feature p { margin: 9px 0 8px; color: #74705f; }
.shop-feature .small-link { margin-bottom: 0; }
.shop-feature .small-link svg, .discover-footer .small-link svg, .competition-card .small-link svg { width: 16px; height: 16px; }
.service-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 17px 15px; text-align: left; border: 1px solid #e4e1d8; border-radius: 14px; background: #fffdf7; }
.service-row > svg:first-child { width: 25px; height: 25px; color: #a58b59; }
.service-row > span { flex: 1; min-width: 0; }
.service-row strong { display: block; font-size: 14px; line-height: 1.5; font-weight: 650; color: #384151; }
.service-row small { display: block; margin-top: 5px; color: #818174; font-size: 12px; line-height: 1.65; }
.service-row > svg:last-child { width: 17px; height: 17px; color: #9e9b91; }
.service-row:hover { border-color: #c6b385; background: #fffcf3; }
.shop-rewards { margin-top: 18px; background: #f2eee6; }
.shop-art-large { border: 1px solid #e7dfce; border-radius: 19px; height: 256px; }
.shop-art-large img { max-height: 256px; width: 100%; padding: 13px 28px 26px; }
.shop-detail-tags { margin-top: 18px; }
.shop-consultation { margin-top: 28px; }
.shop-consultation h3 { margin-top: 9px; font-size: 23px; }
.shop-guide { margin: 18px 0 23px; }
.shop-guide > div { padding: 15px 0; border-bottom: 1px solid #e4e3da; }
.shop-guide dt { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 650; }
.shop-guide dt span { font-size: 11px; color: #ae8b50; letter-spacing: .05em; }
.shop-guide dd { font-size: 13px; line-height: 1.85; margin: 7px 0 0 27px; color: #777e87; }
.shop-primary { background: #30313d; color: #f2dcb0; width: 100%; }
.shop-primary:hover { background: #494237; }
.shop-copy { width: 100%; margin-top: 10px; }
.discover-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 24px 0; }
.discover-card { display: flex; align-items: flex-start; flex-direction: column; text-align: left; min-width: 0; padding: 18px 15px 14px; border: 1px solid #e3e6dc; border-radius: 18px; background: #f0f3e9; color: #3c4550; transition: translate .2s, border-color .2s; }
.discover-card:hover { translate: 0 -2px; border-color: #b6c5aa; }
.discover-gold { background: #f4ede0; border-color: #e6ddcb; }
.discover-lilac { background: #efedf7; border-color: #dfdbe9; }
.discover-coral { background: #f8ede5; border-color: #ecddd2; }
.discover-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 17px; border-radius: 12px; background: #fff9; color: #8d916e; }
.discover-gold .discover-icon { color: #ad8b4e; }
.discover-lilac .discover-icon { color: #9380ab; }
.discover-coral .discover-icon { color: #bc8b67; }
.discover-icon svg { width: 23px; height: 23px; }
.discover-card > strong { font-size: 16px; font-weight: 650; }
.discover-card > span:not(.discover-icon) { display: block; margin-top: 8px; font-size: 12px; color: #7e8282; line-height: 1.8; }
.discover-card > small { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: #777a71; font-size: 11px; }
.discover-card > small svg { width: 14px; height: 14px; }
.discover-footer { display: flex; flex-wrap: wrap; column-gap: 24px; border-top: 1px solid #e3e4dc; padding-top: 9px; }
.discover-footer .small-link { font-size: 12px; }
.service-info-card { padding: 22px; margin: 24px 0 18px; border: 1px solid #e0e7da; border-radius: 18px; background: #eef2e8; }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff9; color: #88a17b; }
.service-info-card h3 { margin-top: 14px; }
.service-info-card p { color: #737d71; }
.competition-card { padding: 24px 21px 14px; border: 1px solid #e6decd; border-radius: 18px; background: #fffaf0; }
.competition-card h3 { margin-top: 11px; font-size: 20px; }
.competition-card dl { display: grid; gap: 13px; margin: 23px 0; }
.competition-card dl > div { display: grid; grid-template-columns: 62px minmax(0,1fr); align-items: baseline; gap: 10px; }
.competition-card dt { color: #9a8b71; font-size: 12px; }
.competition-card dd { margin: 0; font-size: 14px; line-height: 1.7; color: #596172; }
.competition-card > p { color: #7f7e75; }
.competition-card .primary-action { width: 100%; margin: 3px 0 8px; }
.service-link-list { display: grid; gap: 12px; margin: 23px 0; }
.rewards-photo { overflow: hidden; margin: 25px 0 22px; border-radius: 18px; border: 1px solid #e3ddcf; background: #f0e7d7; }
.rewards-photo > img { width: 100%; max-height: 360px; object-fit: cover; object-position: center 61%; }
.rewards-photo figcaption { padding: 11px 15px; font-size: 12px; color: #8e8068; }
.rewards-note { margin: 22px 0; padding: 20px; border: 1px solid #e4deee; border-radius: 16px; background: #f0edf6; }
.rewards-note > svg { color: #9f8cb3; }
.rewards-note h3 { margin: 12px 0 6px; font-size: 18px; }
.rewards-note p { margin-bottom: 0; color: #7f7a8d; }
.rewards-note ~ .primary-action, .rewards-note ~ .secondary-action { width: 100%; margin-bottom: 10px; }
@media (max-width: 360px) {
  .shop-category-card { grid-template-columns: 94px minmax(0,1fr); }
  .shop-card-copy { padding: 14px 11px; }
  .shop-card-description { font-size: 12px; }
  .shop-welcome { padding: 19px 17px; }
  .shop-welcome h3 { font-size: 20px; }
  .discover-grid { gap: 10px; }
  .discover-card { padding: 16px 12px 12px; }
  .discover-card > strong { font-size: 15px; }
}
