/* 规范 v2：轻。只在 html.v2 下生效，便于和现状同屏对比；定稿后合回 style.css。
   取值全部来自下面的 token：字号走 12/14/16/18/20/24/30，间距走 4/8/12/16/24/32，
   圆角走 8/12/16/24/full，嵌套圆角 = 外圆角 − 间隙。一条缓动曲线，一个强调色。 */
html.v2 {
  --t-ink: #1c1b1f;
  --t-ink-2: rgba(28, 27, 31, .62);
  --t-ink-3: rgba(28, 27, 31, .40);
  --t-fill: rgba(28, 27, 31, .05);
  --t-line: rgba(28, 27, 31, .08);
  --t-accent: #d2452e;            /* 座位红：只给「我的位置」和主操作 */
  --t-surface: rgba(255, 253, 250, .74);
  --t-sheet: rgba(255, 253, 250, .90);
  --t-shadow: 0 8px 24px -12px rgba(90, 60, 30, .28);
  --t-num: 'Geist', -apple-system, 'PingFang SC', sans-serif;
  --t-curve: cubic-bezier(.22, 1, .36, 1);
  --t-move: .5s; --t-fade: .3s;
  --t-h: 56px;                    /* 底栏统一高度 */

  --ink: var(--t-ink); --ink-2: var(--t-ink-2); --ink-3: var(--t-ink-3); --line: var(--t-line);
  --red: var(--t-accent); --gold: var(--t-accent); --ease: var(--t-curve);
  --mono: var(--t-num);
}
html.v2 body { font-weight: 400; }
html.v2 :focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
html.v2 svg.ph { fill: currentColor; stroke: none; }

/* ---------- 主操作色（决策 1） ---------- */
html.v2 { --p-bg: var(--t-accent); --p-fg: #fff; }
html.v2[data-primary=b] { --p-bg: var(--t-ink); --p-fg: #fff; }
html.v2[data-primary=c] { --p-bg: #fff; --p-fg: var(--t-ink); }

/* ---------- 玻璃：暖白、无描边高光、阴影带一点暖色 ---------- */
html.v2 .glass {
  --g-bg: var(--t-surface); --g-sub: var(--t-ink-2); --g-edge: rgba(28, 27, 31, .06);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 0 0 .5px var(--g-edge) inset, var(--t-shadow);
}
html.v2 body.dark .glass { --g-bg: rgba(24, 24, 24, .56); --g-sub: rgba(255, 255, 255, .6); --g-edge: rgba(255, 255, 255, .08); }

/* ---------- 加载：纯色蜜桃底 ---------- */
html.v2 #loading { --ld-bg: #f4a688; }
html.v2 .ld-sub { font-size: 12px; letter-spacing: .04em; gap: 8px; }
html.v2 .ld-sub b { font-family: var(--t-num); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- 顶栏与小弹窗 ---------- */
html.v2 #topbar { padding: calc(var(--safe-t) + 12px) 16px 0; }
html.v2 .tb-title { height: 40px; border-radius: 20px; padding: 0 4px; font-size: 14px; }
html.v2 .tb-title button { gap: 4px; padding: 0 8px 0 12px; border-radius: 16px; }
html.v2 .tb-title b { font: 600 14px var(--sans); letter-spacing: 0; }
html.v2 .tb-title span { color: var(--g-sub); }
html.v2 .tb-title svg { width: 12px; height: 12px; opacity: .5; }
html.v2 .tb-div { height: 16px; opacity: .12; }
html.v2 .pop { top: calc(var(--safe-t) + 60px); padding: 8px; border-radius: 24px; --g-bg: rgba(255, 253, 250, .86);
  transition: transform var(--t-move) var(--t-curve), opacity var(--t-fade) var(--t-curve); }
html.v2 button.pv { height: 48px; border-radius: 16px; padding: 0 12px; gap: 8px; }
html.v2 button.pv b { font-size: 16px; }
html.v2 button.pv small { font-size: 12px; color: var(--t-ink-3); }
html.v2 button.pv.on { background: var(--t-fill); }

/* 顶栏第二格（决策 5）：a 氛围，b 无。舞台只在选座面板里选 */
html.v2 #tb-stage, html.v2 #pop-stage, html.v2 #tb-atmo-btn, html.v2 #pop-atmo { display: none; }
html.v2[data-top=a] #tb-atmo-btn { display: inline-flex; }
html.v2[data-top=a] #pop-atmo { display: block; }
html.v2[data-top=a] #r-atmo { display: none; }
html.v2[data-top=b] .tb-div { display: none; }
html.v2 #tb-atmo-btn svg.ph:first-child { width: 16px; height: 16px; opacity: 1; margin-right: 2px; }
html.v2 #tb-atmo-btn span { color: inherit; font-weight: 500; }
html.v2 #pop-atmo { width: 200px; }
html.v2 #pop-atmo .pv { width: 100%; }
html.v2 #pop-atmo .pv svg.ph:first-child { width: 20px; height: 20px; }
html.v2 #pop-atmo .pv svg.ph:last-child { width: 16px; height: 16px; margin-left: auto; opacity: 0; color: var(--t-accent); }
html.v2 #pop-atmo .pv.on svg.ph:last-child { opacity: 1; }
html.v2 body.dark .pop { --g-bg: rgba(24, 24, 24, .8); color: #fff; }
html.v2 body.dark button.pv small { color: rgba(255, 255, 255, .42); }
html.v2 body.dark button.pv.on { background: rgba(255, 255, 255, .08); }

/* 舞台四选一：分段控件，选中是白色实底而不是墨色块 */
html.v2 .presets { gap: 4px; padding: 4px; border-radius: 16px; background: var(--t-fill); }
html.v2 .pop .presets { background: transparent; padding: 0; }
html.v2 .presets button { padding: 8px 0; gap: 4px; border-radius: 12px; font-size: 12px; color: var(--t-ink-2);
  transition: background var(--t-fade) var(--t-curve), color var(--t-fade) var(--t-curve), box-shadow var(--t-fade) var(--t-curve); }
html.v2 .presets button svg { width: 32px; height: 32px; stroke-width: 1.5; }
html.v2 .presets button.on { background: #fff; color: var(--t-ink); font-weight: 500; box-shadow: 0 1px 2px rgba(28, 27, 31, .08), 0 2px 8px -2px rgba(90, 60, 30, .16); }
html.v2 .pop .presets button.on { background: var(--t-fill); box-shadow: none; }
html.v2 .presets svg .fd { fill: none; stroke: currentColor; stroke-width: 1.75; opacity: .5; }
html.v2 .presets svg .st { fill: currentColor; stroke: none; transition: fill var(--t-fade) var(--t-curve); }
html.v2 .presets button.on svg .fd { opacity: .7; }
html.v2 .presets button.on svg .st { fill: var(--t-accent); }

/* 舞台朝向：舞台按钮下面一行「舞台在 [北端|南端]」；外 12、内 8（嵌套圆角 = 外 − 间隙 4）。四面台、中心台不显示 */
html.v2 .stage-dir { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-top: 8px; }
html.v2 body.dir-fixed .stage-dir { display: none; }
html.v2 .stage-dir span { color: var(--t-ink-2); font: 400 14px/20px var(--sans); }
html.v2 .stage-dir .seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--t-fill); }
html.v2 .stage-dir .seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--t-ink-2); font: 500 14px/20px var(--sans); cursor: pointer;
  transition: background var(--t-fade) var(--t-curve), color var(--t-fade) var(--t-curve); }
html.v2 .stage-dir .seg button.on { background: #fff; color: var(--t-ink); box-shadow: 0 1px 2px rgba(28, 27, 31, .08); }
html.v2 body.dark .stage-dir .seg button.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }

/* 漫游时的分区提示 */
html.v2 #tip { padding: 0 12px; height: 32px; display: flex; align-items: center; border-radius: 16px; font-size: 12px;
  background: var(--t-surface); color: var(--t-ink); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 0 0 .5px rgba(28, 27, 31, .06) inset, var(--t-shadow); }
html.v2 #tip b { font: 600 14px var(--t-num); color: var(--t-accent); margin-right: 8px; }
html.v2 #tip[data-kind=roof] { font-weight: 600; }
body[data-roof-state=opening] #open-left:disabled, body[data-roof-state=closing] #open-left:disabled { cursor: progress; opacity: .75; }

/* ---------- 底栏（决策 3）：三件同高 56，同圆角 ---------- */
html.v2 #dock { padding: 0 16px calc(var(--safe-b) + 16px); gap: 8px; align-items: center; }
html.v2 .dock-btn { width: 64px; height: var(--t-h); border-radius: 20px; gap: 4px; font-size: 12px; font-weight: 500;
  transition: transform var(--t-fade) var(--t-curve), background var(--t-fade) var(--t-curve), color var(--t-fade) var(--t-curve); }
html.v2 .dock-btn svg { width: 22px; height: 22px; }
html.v2 .dock-btn.on { --g-bg: #fff; --g-fg: var(--t-ink); box-shadow: 0 0 0 1.5px var(--t-ink) inset, var(--t-shadow); }
html.v2 body.dark .dock-btn.on { --g-bg: rgba(255, 255, 255, .92); --g-fg: var(--t-ink); box-shadow: none; }
html.v2 .dock-mid { height: var(--t-h); }

/* 视角胶囊（决策 2） */
html.v2 #capsule { height: var(--t-h); border-radius: 20px; padding: 0 20px; gap: 8px;
  background: var(--t-surface); color: var(--t-ink); box-shadow: 0 0 0 .5px rgba(28, 27, 31, .06) inset, var(--t-shadow);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: transform var(--t-move) var(--t-curve), opacity var(--t-fade) var(--t-curve); }
html.v2 #capsule::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--t-accent); box-shadow: 0 0 0 3px rgba(210, 69, 46, .18); }
html.v2 #capsule b { font: 600 18px var(--t-num); letter-spacing: 0; }
html.v2 #capsule span { font: 500 14px var(--t-num); color: var(--t-ink-2); font-variant-numeric: tabular-nums; }
html.v2[data-cap=b] #capsule { background: rgba(44, 42, 46, .78); color: #fff; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .08) inset, 0 8px 24px -12px rgba(0, 0, 0, .4); }
html.v2[data-cap=b] #capsule span { color: rgba(255, 255, 255, .6); }
html.v2[data-cap=b] #capsule::before { display: none; }
html.v2 body.dark #capsule { background: rgba(24, 24, 24, .56); color: #fff; }
html.v2 body.dark #capsule span { color: rgba(255, 255, 255, .6); }

/* 底栏 B：一整条玻璃条。没落座时收成两个按钮，落座后从中间撑开放区号 */
html.v2[data-dock=b] #dock { left: 50%; right: auto; transform: translateX(-50%); width: auto; padding: 0; bottom: calc(var(--safe-b) + 16px);
  gap: 0; border-radius: 28px; background: var(--t-surface); box-shadow: 0 0 0 .5px rgba(28, 27, 31, .06) inset, var(--t-shadow);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }
html.v2[data-dock=b] body.dark #dock { background: rgba(24, 24, 24, .56); }
html.v2[data-dock=b] .dock-btn { width: 72px; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 28px; }
html.v2[data-dock=b] .dock-btn.on { background: var(--t-fill); box-shadow: none; }
html.v2[data-dock=b] .dock-mid { flex: 0 0 auto; width: 0; overflow: hidden; transition: width var(--t-move) var(--t-curve); }
html.v2[data-dock=b] body.seated .dock-mid { width: min(max(176px, var(--cap-w, 176px)), calc(100vw - 32px - 144px)); }
html.v2[data-dock=b] #capsule { position: static; height: 40px; padding: 0 16px; border-radius: 20px; background: var(--t-fill); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.v2[data-dock=b][data-cap=b] #capsule { background: rgba(44, 42, 46, .86); }
html.v2[data-dock=b] body.dark #capsule { background: rgba(255, 255, 255, .1); }

/* ---------- 起身 / 返回：和右侧按钮同一列、同尺寸 ---------- */
html.v2 #standup { width: 64px; height: var(--t-h); border-radius: 20px; right: 16px; gap: 4px; font-size: 12px; font-weight: 500;
  bottom: calc(var(--safe-b) + 16px + var(--t-h) + 8px);
  transition: transform var(--t-move) var(--t-curve), opacity var(--t-fade) var(--t-curve); }
html.v2 #standup svg { width: 20px; height: 20px; }
/* 整条底栏时，起身放在胶囊正上方（从座位上站起来），起身后底栏收窄，「返回」仍和底栏居中对齐 */
html.v2[data-dock=b] #standup { right: auto; left: calc(50% - 44px); width: 88px; height: 40px; border-radius: 20px; flex-direction: row; gap: 4px; font-size: 14px;
  bottom: calc(var(--safe-b) + 16px + var(--t-h) + 12px); }
html.v2[data-dock=b] #standup svg.ph { width: 16px; height: 16px; }
/* 起身后原地变成「返回」：一圈细线倒计时 5 秒，走完淡出 */
html.v2 #standup .ring { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); pointer-events: none; overflow: visible; }
html.v2 #standup .ring rect { fill: none; stroke: var(--t-accent); stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 0; opacity: 0; }
html.v2 #standup.back .ring rect { opacity: 1; animation: ring-out 5s linear forwards; }
html.v2 #standup.back.gone { opacity: 0; transform: scale(.9); pointer-events: none; transition-duration: .8s; }
@keyframes ring-out { to { stroke-dashoffset: 100; } }

/* ---------- 底部面板 ---------- */
html.v2 .drawer { background: var(--t-sheet); backdrop-filter: blur(32px) saturate(1.4); -webkit-backdrop-filter: blur(32px) saturate(1.4); }
html.v2 .dr-head { padding: 8px 24px 0; min-height: 48px; }
html.v2 .dr-head h2 { font: 600 20px/1.4 var(--sans); letter-spacing: 0; }
html.v2 .dr-close { width: 32px; height: 32px; border-radius: 16px; background: var(--t-fill); color: var(--t-ink-2); }
html.v2 .dr-close svg { width: 14px; height: 14px; }
html.v2 .dr-body { padding: 0 24px calc(var(--safe-b) + 32px); }
/* 分组：标题 16/600 墨色，标题到内容 12，分组之间 24；面板标题到第一组 16 */
html.v2 .dr-body section { padding: 0; margin-top: 24px; border-bottom: 0; }
html.v2 .dr-body section:first-child, html.v2 .dr-body .empty + section { margin-top: 16px; }
html.v2 .dr-body h3 { margin: 0 0 12px; font: 600 16px/24px var(--sans); letter-spacing: 0; color: var(--t-ink); }
html.v2 .note, html.v2 .calib { font-size: 12px; color: var(--t-ink-3); line-height: 1.5; }
html.v2 .calib { margin: 8px 0 0; }

/* 分段：选中白色实底 */
html.v2 .chips { gap: 4px; padding: 4px; border-radius: 16px; background: var(--t-fill); flex-wrap: nowrap; }
html.v2 .chips button { flex: 1; height: 40px; padding: 0 8px; border: 0; border-radius: 12px; background: none; font-size: 14px; color: var(--t-ink-2); white-space: nowrap;
  transition: background var(--t-fade) var(--t-curve), color var(--t-fade) var(--t-curve), box-shadow var(--t-fade) var(--t-curve); }
html.v2 .chips button b { font: 500 14px var(--t-num); }
html.v2 .chips button.on { background: #fff; color: var(--t-ink); border: 0; box-shadow: 0 1px 2px rgba(28, 27, 31, .08), 0 2px 8px -2px rgba(90, 60, 30, .16); }

/* 选座 */
html.v2 .seatpick { margin-top: 12px; padding: 16px; border-radius: 24px; background: #fff; border: 0; box-shadow: 0 0 0 .5px var(--t-line) inset, 0 4px 16px -8px rgba(90, 60, 30, .2); }
html.v2 .sp-title { gap: 8px; margin-bottom: 8px; }
html.v2 .sp-title b { font: 600 24px var(--t-num); }
html.v2 .sp-title span { font-size: 14px; color: var(--t-ink-3); }
html.v2 .seatpick label { grid-template-columns: 16px 32px 1fr; gap: 8px; font-size: 14px; margin: 4px 0; }
html.v2 .seatpick output { font: 500 16px var(--t-num); font-variant-numeric: tabular-nums; }
html.v2 input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--t-fill); }
html.v2 input[type=range]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; background: #fff; box-shadow: 0 0 0 .5px rgba(28, 27, 31, .12), 0 2px 6px rgba(90, 60, 30, .25); }
html.v2 .sp-actions { gap: 8px; margin-top: 12px; }
/* 内圆角 = 24 − 16 = 8，太方；按钮单独走 full 圆角，和胶囊同族 */
html.v2 .sp-actions button { height: 48px; border-radius: 24px; font-size: 16px; font-weight: 600; background: var(--t-fill); display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
html.v2 .sp-actions button svg { width: 18px; height: 18px; }
html.v2 .sp-actions .primary { background: var(--p-bg); color: var(--p-fg); }
html.v2[data-primary=c] .sp-actions .primary { box-shadow: 0 0 0 1.5px var(--t-ink) inset; }
html.v2 .favs { gap: 8px; margin-top: 12px; }
html.v2 .favs button { height: 32px; padding: 0 12px; border-radius: 16px; font: 500 12px var(--t-num); background: var(--t-fill); }
html.v2 .favs button.active { background: #fff; box-shadow: 0 0 0 1.5px var(--t-accent) inset; color: var(--t-accent); }

/* 视角：「他有多大」改浅底，数字做主角 */
html.v2 .size-card { gap: 12px; padding: 16px; border-radius: 24px; background: #fff; color: var(--t-ink); box-shadow: 0 0 0 .5px var(--t-line) inset, 0 4px 16px -8px rgba(90, 60, 30, .2); }
html.v2 .size-text .big { font-size: 14px; color: var(--t-ink-2); }
html.v2 .size-text .big b { font: 600 24px/1.3 var(--sans); color: var(--t-ink); margin-top: 4px; }
html.v2 .size-text .small { font-size: 12px; color: var(--t-ink-3); margin-top: 8px; }
html.v2 #size-svg line[stroke^="rgba(255"] { stroke: rgba(28, 27, 31, .2); }
html.v2 #size-svg text { fill: var(--t-ink-2); font-family: var(--t-num); }
html.v2 #size-svg line[stroke="#f2b234"], html.v2 #size-svg circle[fill="#f2b234"] { stroke: var(--t-accent); }
html.v2 #size-svg circle[fill="#f2b234"] { fill: var(--t-accent); }
/* 三个数：去掉卡片框，只留数字和标签 */
html.v2 .facts { gap: 8px; margin-top: 16px; }
html.v2 .facts div { padding: 0; border: 0; background: none; gap: 4px; }
html.v2 .facts b { font: 600 20px var(--t-num); font-variant-numeric: tabular-nums; }
html.v2 .facts small { font-size: 12px; color: var(--t-ink-3); }

html.v2 .empty { font-size: 14px; }

/* 夜间：面板跟着暗 */
html.v2 body.dark .drawer { --t-ink: #fff; --t-ink-2: rgba(255, 255, 255, .66); --t-ink-3: rgba(255, 255, 255, .42); --t-fill: rgba(255, 255, 255, .08); --t-line: rgba(255, 255, 255, .1);
  background: rgba(24, 24, 24, .88); color: #fff; }
html.v2 body.dark .chips button.on, html.v2 body.dark .presets button.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
html.v2 body.dark .seatpick, html.v2 body.dark .size-card { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: none; }

/* 取景框标签 */
html.v2 .vf-label { font: 500 12px var(--t-num); }
html.v2 .vf-label span:first-child { padding: 2px 8px; border-radius: 8px; background: #fff; color: var(--t-ink); }

/* 一条曲线：去掉回弹 */
html.v2 .pop, html.v2 #capsule, html.v2 .drawer { transition-timing-function: var(--t-curve); }
@media (prefers-reduced-motion: reduce) {
  html.v2 * { transition-duration: .01s !important; animation-duration: .01s !important; }
}

/* 深色可读性：底栏选中态、选座面板的排/座 */
html.v2 body.dark .dock-btn.on { --g-fg: #fff; }
html.v2[data-dock=b] body.dark .dock-btn.on { background: rgba(255, 255, 255, .14); color: #fff; }
html.v2 body.dark .seatpick label { color: rgba(255, 255, 255, .62); }
html.v2 body.dark .seatpick output { color: #fff; }

/* 选座：区号看起来还是原来的粗体大字，点一下就能改 */
html.v2 .sp-key { display: inline-flex; align-items: baseline; font: 600 24px var(--t-num); }
html.v2 .sp-key i { font-style: normal; }
html.v2 .sp-key input { font: inherit; color: inherit; font-variant-numeric: tabular-nums; border: 0; outline: 0; margin: 0 0 0 -4px; padding: 0 4px;
  width: calc(3ch + 8px); background: transparent; border-radius: 6px; caret-color: var(--t-accent); -webkit-appearance: none; appearance: none;
  transition: background var(--t-fade) var(--t-curve); }
html.v2 .sp-key input:focus { background: var(--t-fill); }
html.v2 .seatpick.bad #sp-meta { color: var(--t-accent); }
/* 歌手视角：视角面板第一项入口 + 进入后的顶部返回、底部「找到你」开关 */
/* Keep the native startup gate effective even after the flex layout loads. */
#sg-go[hidden] { display: none !important; }
body.home #sg-go { visibility: hidden; }
html.v2 #sg-go { position: fixed; z-index: 9; left: 16px; bottom: calc(var(--safe-b) + 16px + var(--t-h) + 8px); width: 64px; height: var(--t-h); border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--t-ink); font-size: 12px; font-weight: 500;
  opacity: 0; transform: scale(.6); pointer-events: none; transition: transform var(--t-move) var(--t-curve), opacity var(--t-fade) var(--t-curve); }
html.v2 #sg-go.on { opacity: 1; transform: none; pointer-events: auto; }
html.v2 #sg-go svg { width: 20px; height: 20px; }
/* 整条底栏时：「上台」「起身」并排在胶囊正上方，88 × 40、间隔 8，一起居中；起身后只剩「返回」，回到正中 */
html.v2[data-dock=b] #sg-go { left: calc(50% - 92px); width: 88px; height: 40px; flex-direction: row; font-size: 14px; bottom: calc(var(--safe-b) + 16px + var(--t-h) + 12px); }
html.v2[data-dock=b] #sg-go svg { width: 16px; height: 16px; }
html.v2[data-dock=b] body.pair #standup { left: calc(50% + 4px); }
html.v2 body.dark #sg-go { color: #fff; }
body.singer #sg-go { opacity: 0 !important; pointer-events: none !important; }
#singer-ui { display: none; }
body.singer #singer-ui { display: contents; }
body.singer #topbar, body.singer #dock, body.singer #standup, body.singer #tip, body.singer #capsule { opacity: 0 !important; pointer-events: none !important; }
html.v2 #sg-back, html.v2 #sg-find { position: fixed; left: 50%; transform: translateX(-50%); z-index: 30; display: inline-flex; align-items: center; color: var(--t-ink); animation: sg-in .6s var(--t-curve) both; }
html.v2 #sg-back { top: calc(var(--safe-t) + 12px); height: 40px; padding: 0 16px 0 12px; gap: 6px; border: 0; border-radius: 20px; font: 500 14px var(--sans); cursor: pointer; }
html.v2 #sg-back svg { width: 16px; height: 16px; fill: currentColor; }
html.v2 #sg-find { bottom: calc(var(--safe-b) + 16px); height: 48px; padding: 0 8px 0 20px; gap: 12px; border-radius: 24px; font: 600 16px var(--sans); cursor: pointer; animation-delay: .15s; }
html.v2 #sg-find input { position: absolute; opacity: 0; pointer-events: none; }
html.v2 #sg-find .sw { position: relative; width: 52px; height: 32px; border-radius: 16px; background: rgba(28, 27, 31, .14); transition: background var(--t-fade) var(--t-curve); }
html.v2 #sg-find .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform var(--t-fade) var(--t-curve); }
html.v2 #sg-find input:checked + .sw { background: var(--t-accent); }
html.v2 #sg-find input:checked + .sw::after { transform: translateX(20px); }
html.v2 #sg-find.off { color: var(--t-ink-3); }
html.v2 body.dark #sg-back, html.v2 body.dark #sg-find { color: #fff; }
html.v2 body.dark #sg-find .sw { background: rgba(255, 255, 255, .2); }
html.v2 body.dark #sg-find input:checked + .sw { background: var(--t-accent); }
/* 找到你：座位不在画面里时，屏幕边缘的座位红箭头指过去，点一下转过去 */
html.v2 #sg-arrow { position: fixed; left: 0; top: 0; z-index: 30; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: var(--t-accent); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: opacity var(--t-fade) var(--t-curve); }
html.v2 #sg-arrow.on { opacity: 1; pointer-events: auto; }
html.v2 #sg-arrow svg { width: 20px; height: 20px; fill: currentColor; }
@keyframes sg-in { from { opacity: 0; transform: translate(-50%, 8px); } }
/* 区号旁的 ⌄：展开分层 + 左右拨区 */
html.v2 .sp-caret { align-self: center; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -4px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--t-ink-3); cursor: pointer;
  transition: background var(--t-fade) var(--t-curve); }
html.v2 .sp-caret svg { width: 14px; height: 14px; fill: currentColor; transition: transform .3s var(--t-curve); }
html.v2 .sp-caret.open { background: var(--t-fill); }
html.v2 .sp-caret.open svg { transform: rotate(180deg); }
html.v2 .sp-ex { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--t-curve); }
html.v2 .sp-ex > div { overflow: hidden; }
html.v2 .sp-ex.open { grid-template-rows: 1fr; }
html.v2 .sp-ex.open > div { padding: 4px 0 8px; }
html.v2 .sp-tiers { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--t-fill); margin-bottom: 8px; }
html.v2 .sp-tiers button { flex: 1; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--t-ink-2); font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
html.v2 .sp-tiers button.on { background: #fff; color: var(--t-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
html.v2 .sp-ruler { position: relative; }
html.v2 .sp-ruler::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 52px; margin-left: -26px; border-radius: 10px; box-shadow: 0 0 0 1.5px var(--t-ink) inset; pointer-events: none; }
html.v2 .sp-track { display: flex; align-items: center; height: 44px; padding: 0 calc(50% - 26px); overflow-x: scroll; scroll-snap-type: x mandatory; scrollbar-width: none; }
html.v2 .sp-track::-webkit-scrollbar { display: none; }
html.v2 .sp-track button { flex: 0 0 52px; height: 44px; padding: 0; border: 0; background: none; scroll-snap-align: center; color: var(--t-ink-2); font: 500 16px var(--t-num); font-variant-numeric: tabular-nums; cursor: pointer; }
html.v2 .sp-track button.on { color: var(--t-ink); font-weight: 600; }
html.v2 body.dark .sp-caret { color: rgba(255, 255, 255, .62); }
html.v2 body.dark .sp-caret.open, html.v2 body.dark .sp-tiers { background: rgba(255, 255, 255, .08); }
html.v2 body.dark .sp-tiers button { color: rgba(255, 255, 255, .62); }
html.v2 body.dark .sp-tiers button.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
html.v2 body.dark .sp-track button { color: rgba(255, 255, 255, .62); }
html.v2 body.dark .sp-track button.on { color: #fff; }
html.v2 body.dark .sp-ruler::after { box-shadow: 0 0 0 1.5px #fff inset; }
/* 飞入途中：胶囊已经显示座位，红点空心呼吸，落座后变实心 */
html.v2 #capsule::before { transition: background var(--t-fade) var(--t-curve), box-shadow var(--t-fade) var(--t-curve); }
html.v2 #capsule.fly::before { background: transparent; box-shadow: 0 0 0 1.5px var(--t-accent) inset; animation: cap-breathe 1.2s ease-in-out infinite; }
@keyframes cap-breathe { 50% { opacity: .35; } }

/* 分区图：不吃全局 svg 描边；色块之间用暖白细缝隔开 */
html.v2 #minimap { margin: 0; }
html.v2 #minimap svg { stroke: none; }
html.v2 #minimap [data-sec] { stroke: #fbf6f1; stroke-width: .8; }
html.v2 body.dark #minimap [data-sec] { stroke: #232323; }

/* 收藏：你正坐着的那颗带一个小 ×（24 圆，胶囊 32 高，右侧贴边留 4） */
html.v2 .favs button.active { display: inline-flex; align-items: center; gap: 4px; padding-right: 4px; }
html.v2 .fav-del { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 12px; opacity: .7; }
html.v2 .fav-del:hover { opacity: 1; background: rgba(210, 69, 46, .1); }
html.v2 .fav-del svg { width: 12px; height: 12px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 16px); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 16px; height: 40px; padding: 0 4px 0 16px;
  border-radius: 20px; background: rgba(28, 27, 31, .88); color: #fff; font: 500 14px var(--sans); white-space: nowrap; animation: sg-in .3s var(--t-curve) both; }
#toast button { height: 32px; padding: 0 12px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .14); color: #fff; font: 500 14px var(--sans); cursor: pointer; }

/* 拍摄预览：「上台」「起身」和顶栏收起；底部一条和面板里一样的焦段条，顶部「× 退出预览」（和歌手视角的「回到座位」同位置同样式） */
#lensbar, #pv-exit { display: none; }
html.v2 #lensbar { position: fixed; z-index: 20; left: 50%; width: min(calc(100% - 32px), 440px); margin-left: max(calc(-50% + 16px), -220px); bottom: calc(var(--safe-b) + 16px + var(--t-h) + 12px); display: block;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--t-fade) var(--t-curve), transform var(--t-fade) var(--t-curve); }
html.v2 #lensbar .chips { background: var(--g-bg); }
html.v2 #lensbar .chips button { height: 40px; }
/* Focal lengths keep their type size and touch width on narrow phones. */
html.v2 #lens, html.v2 #lens-bar { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
html.v2 #lens::-webkit-scrollbar, html.v2 #lens-bar::-webkit-scrollbar { display: none; }
html.v2 #lens button, html.v2 #lens-bar button { flex: 1 0 auto; min-width: 44px; }
html.v2 #lens button:focus-visible, html.v2 #lens-bar button:focus-visible { outline-offset: -2px; }
html.v2 #pv-exit { position: fixed; z-index: 30; left: 50%; top: calc(var(--safe-t) + 12px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px 0 12px;
  border: 0; border-radius: 20px; color: var(--t-ink); font: 500 14px var(--sans); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity var(--t-fade) var(--t-curve); }
html.v2 #pv-exit svg { width: 16px; height: 16px; fill: currentColor; }
html.v2 body.pv:not(.singer) #lensbar { opacity: 1; transform: none; pointer-events: auto; }
html.v2 body.pv:not(.singer) #pv-exit { opacity: 1; pointer-events: auto; }
body.pv #standup, body.pv #sg-go, body.pv #topbar, body.pv #tip { opacity: 0 !important; pointer-events: none !important; }
html.v2 body.dark #pv-exit { color: #fff; }
html.v2 body.dark #lensbar .chips button { color: rgba(255, 255, 255, .66); }
html.v2 body.dark #lensbar .chips button.on { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
/* 取景框四角：原来 #viewfinder .c 的整圈边盖掉了去边，画成了整框；改回角标，下面两个角让到焦段条上方 */
#viewfinder .c.tl { border-right: 0; border-bottom: 0; }
#viewfinder .c.tr { border-left: 0; border-bottom: 0; }
#viewfinder .c.bl { border-right: 0; border-top: 0; }
#viewfinder .c.br { border-left: 0; border-top: 0; }
html.v2 #viewfinder .c.bl, html.v2 #viewfinder .c.br { bottom: calc(var(--safe-b) + 16px + var(--t-h) + 12px + 64px); }

/* 夜间：当前那颗收藏不用白底，改深色底 + 浅一点的红框 */
html.v2 body.dark .favs button.active { background: rgba(255, 255, 255, .06); color: #ff8b74; box-shadow: 0 0 0 1.5px #ff8b74 inset; }
html.v2 body.dark .fav-del:hover { background: rgba(255, 139, 116, .14); }
