/* Divine Memorial - Preview 01. Calm gold on night ink. System fonts only. */
:root {
  --ink: #14110B;
  --ink-2: #1F1A10;
  --panel: rgba(24, 19, 11, 0.86);
  --panel-soft: rgba(24, 19, 11, 0.72);
  --line: rgba(201, 162, 74, 0.40);
  --gold: #C9A24A;
  --gold-btn: #B9954C;
  --gold-btn-hover: #C7A35A;
  --gold-text: #E2C67E;
  --text: #F3E6C4;
  --text-soft: #D8CBA8;
  --focus: #F1D58C;
  --radius: 12px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
html[lang^="zh"] body { line-height: 1.7; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--gold-text); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink-2); color: var(--text); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--gold); }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-size: 15px; line-height: 1.25; text-align: center; transition: background-color .2s, border-color .2s; }
.btn-primary { background: var(--gold-btn); color: #1A140A; font-weight: 600; border-color: #D2B26A; }
.btn-primary:hover { background: var(--gold-btn-hover); }
.btn-outline { background: rgba(20, 16, 9, 0.35); color: var(--text); border-color: rgba(201, 162, 74, 0.65); }
.btn-outline:hover { border-color: var(--gold-text); background: rgba(201, 162, 74, 0.12); }
.btn-quiet { background: rgba(20, 16, 9, 0.55); color: var(--text); border-color: rgba(201, 162, 74, 0.35); }
.btn-quiet:hover { border-color: rgba(226, 198, 126, 0.8); }
.btn-wide { width: 100%; margin-top: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(201, 162, 74, 0.55); background: var(--panel); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.icon-btn:hover { border-color: var(--gold-text); }
.link-btn { background: none; border: 0; color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 8px 4px; font-size: 15px; }
.badge { display: inline-block; font-size: 12.5px; line-height: 1.3; padding: 4px 10px; border-radius: 999px; background: rgba(20, 16, 9, 0.78); border: 1px solid rgba(201, 162, 74, 0.45); color: var(--text); white-space: nowrap; }
.badge-art { color: var(--text-soft); border-color: rgba(201, 162, 74, 0.25); }

/* ============ Screens ============ */
.screen { position: fixed; inset: 0; overflow: hidden; }
.screen-hall { background: var(--ink); touch-action: none; }
.hall-canvas, .fade-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hall-canvas { cursor: grab; touch-action: none; }
.hall-canvas.dragging { cursor: grabbing; }
.hall-canvas:focus-visible { outline: 3px solid var(--focus); outline-offset: -6px; }
.fade-canvas { pointer-events: none; opacity: 0; transition: opacity .6s ease-in-out; }
.fade-canvas.show { opacity: 1; transition: none; }
.loading-veil { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: var(--panel); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 6; }

/* Top bar */
.topbar { position: absolute; left: 0; right: 0; top: 0; z-index: 10; padding: calc(10px + var(--safe-t)) calc(14px + var(--safe-r)) 8px calc(14px + var(--safe-l));
  background: linear-gradient(to bottom, rgba(16, 12, 6, 0.86) 0%, rgba(16, 12, 6, 0.62) 70%, rgba(16, 12, 6, 0) 100%); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.tb-row { display: flex; align-items: center; gap: 10px; }
.tb-main { justify-content: space-between; }
.tb-badges { gap: 8px; margin-top: 6px; flex-wrap: wrap; pointer-events: none; }
/* Divine Memorial top-left lockup (Iris, design/brand-divine-01/logo.css; same variable names as this file). Mark = /brand/logo-mark.svg */
.brand{display:inline-flex;align-items:center;gap:10px;background:none;border:0;border-radius:0;padding:4px 2px;text-decoration:none;text-shadow:0 1px 2px rgba(10,8,5,.75),0 0 10px rgba(10,8,5,.55);min-width:0;flex:none}
.brand-mark{width:30px;height:30px;flex:none;display:block;filter:drop-shadow(0 1px 2px rgba(10,8,5,.7))}
.brand-text{display:flex;flex-direction:column;align-items:flex-start;gap:1px;line-height:1.15}
.brand-en{font-family:"Iowan Old Style",Palatino,"Palatino Linotype","Noto Serif",Georgia,serif;font-size:18px;color:var(--gold-text,#E2C67E);letter-spacing:.02em;white-space:nowrap}
.brand-zh{font-family:"Noto Serif SC","Noto Serif CJK SC","Songti SC",serif;font-size:12px;color:var(--text-soft,#D8CBA8);letter-spacing:.18em;white-space:nowrap}
@media (max-width:600px){.brand{padding:3px 2px;gap:8px}.brand-mark{width:26px;height:26px}.brand-en{font-size:16px}.brand-zh{font-size:11px}}
.fh-link{white-space:nowrap;margin-left:auto}
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: .02em; color: var(--gold-text); white-space: nowrap; }
.brand-name.small { font-size: 18px; }
.hall-btn { min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(201, 162, 74, 0.6); background: var(--panel); color: var(--text); cursor: pointer; font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.hall-btn:hover { border-color: var(--gold-text); }
.caret { color: var(--gold-text); font-size: 14px; margin-left: 2px; }
.search { display: flex; gap: 6px; align-items: center; }
.search-input { width: 290px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(201, 162, 74, 0.55); background: rgba(14, 11, 6, 0.85); color: var(--text); font-variant-numeric: tabular-nums; }
.search-input::placeholder { color: #B5A784; }
.search-btn { min-width: 64px; }
.tb-actions { display: flex; gap: 8px; align-items: center; }
.lang-btn { min-width: 56px; }
.search-msg { position: absolute; right: calc(14px + var(--safe-r)); top: calc(100% - 4px); margin: 0; max-width: min(420px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; }

/* Edge arrows */
.edge { position: absolute; top: 50%; transform: translateY(-50%); z-index: 8; display: flex; align-items: center; gap: 8px; min-height: 64px; max-width: 230px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(201, 162, 74, 0.55); background: var(--panel); color: var(--text); cursor: pointer; opacity: 0; transition: opacity .35s ease; text-align: left; }
.edge-prev { left: calc(10px + var(--safe-l)); }
.edge-next { right: calc(10px + var(--safe-r)); text-align: right; }
.edge.near, .edge:hover, .edge:focus-visible { opacity: 1; }
.edge.at-end { opacity: .9; }
.chev { font-size: 34px; line-height: 1; color: var(--gold-text); font-family: var(--serif); }
.edge-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.edge-k { color: var(--text-soft); }
.edge-n { font-family: var(--serif); font-size: 16px; color: var(--text); }
.edge-s { display: none; font-family: var(--serif); font-size: 15px; color: var(--text); }
@media (hover: none), (pointer: coarse) {
  .edge { opacity: .62; }
  .edge.at-end { opacity: .95; }
}

/* Welcome / hero */
.welcome { position: absolute; z-index: 9; left: calc(18px + var(--safe-l)); top: 122px; width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); overflow: hidden; }
.welcome-frame { display: none; }
.welcome-body { padding: 18px 20px 12px; position: relative; }
.welcome-x { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; font-size: 22px; background: transparent; border-color: transparent; }
.welcome-title { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 40px 6px 0; color: var(--gold-text); }
.welcome-line { font-family: var(--serif); font-size: 18px; margin: 0 0 8px; }
.welcome-intro { font-size: 14.5px; color: var(--text-soft); margin: 0 0 14px; }
.welcome-actions { display: flex; flex-direction: column; gap: 8px; }
.note { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: rgba(201, 162, 74, 0.12); border: 1px solid var(--line); font-size: 14.5px; }
.special-intro { position: absolute; z-index: 7; left: 50%; transform: translateX(-50%); top: 118px; max-width: min(640px, 90vw); margin: 0; padding: 8px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; text-align: center; }

/* HUD */
.hud { position: absolute; left: 0; right: 0; bottom: calc(36px + var(--safe-b)); z-index: 8; display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 0 calc(14px + var(--safe-r)) 0 calc(14px + var(--safe-l)); pointer-events: none; }
.hud > * { pointer-events: auto; }
.minimap-wrap { position: absolute; z-index: 8; top: 112px; right: calc(14px + var(--safe-r)); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px; line-height: 0; }
.minimap { width: 200px; height: 85px; border-radius: 6px; cursor: pointer; display: block; touch-action: none; }
.hint { margin: 0 0 6px; padding: 6px 14px; border-radius: 999px; background: var(--panel-soft); border: 1px solid rgba(201, 162, 74, 0.25); font-size: 14px; color: var(--text); text-align: center; pointer-events: none; }
.hud-right { position: absolute; right: calc(14px + var(--safe-r)); bottom: 0; display: flex; align-items: center; gap: 10px; }
.section-select { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(201, 162, 74, 0.55); background: var(--panel); color: var(--text); max-width: 230px; }
.zoom { display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.zoom .icon-btn { border-color: rgba(201, 162, 74, 0.4); background: rgba(0,0,0,.15); }
.zoom-level { min-width: 64px; text-align: center; font-size: 13.5px; color: var(--text-soft); }
.legal-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; padding: 6px 14px calc(6px + var(--safe-b)); text-align: center; font-size: 12.5px; color: var(--text-soft); background: linear-gradient(to top, rgba(16, 12, 6, 0.9), rgba(16, 12, 6, 0.7)); }

/* Seat card */
.seat-card { position: absolute; z-index: 12; right: calc(16px + var(--safe-r)); top: 124px; width: 360px; max-height: calc(100% - 200px); overflow: auto; background: rgba(28, 22, 13, 0.95); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 44px rgba(0, 0, 0, .45); }
.seat-card-inner { padding: 18px 20px 16px; position: relative; }
.seat-card .icon-btn.close { position: absolute; top: 10px; right: 10px; background: transparent; }
.seat-eyebrow { margin: 0; font-size: 13px; color: var(--text-soft); letter-spacing: .02em; }
.seat-title { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 2px 50px 2px 0; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.seat-hall { margin: 0 0 4px; font-size: 15px; }
.seat-place { margin: 0 0 12px; font-size: 13.5px; color: var(--text-soft); }
.state-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 12px; }
.state-dot { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #FFF6D8 0%, #F1C66C 60%, rgba(241, 198, 108, 0) 100%); box-shadow: 0 0 8px rgba(255, 220, 140, .9); }
.state-dot.free { background: transparent; border: 1.5px solid #E7CF94; box-shadow: none; }
.memorial { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(243, 230, 196, 0.06); border: 1px solid rgba(201, 162, 74, 0.25); margin-bottom: 10px; }
.memorial svg { flex: none; width: 76px; height: 76px; border-radius: 10px; }
.mem-label { margin: 0; font-size: 12.5px; color: var(--text-soft); }
.mem-name { margin: 0; font-family: var(--serif); font-size: 20px; }
.mem-years { margin: 0; font-size: 14px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.mem-line { margin: 4px 0 0; font-size: 14px; font-family: var(--serif); }
.seat-small { font-size: 13px; color: var(--text-soft); margin: 6px 0; }
.seat-legal { font-size: 13px; color: var(--text-soft); border-top: 1px solid rgba(201, 162, 74, 0.25); padding-top: 10px; margin: 14px 0 0; }
.seat-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Halls dialog */
.dialog-backdrop { position: absolute; inset: 0; z-index: 20; background: rgba(8, 6, 3, 0.55); }
.halls-dialog { position: absolute; z-index: 21; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100% - 24px)); max-height: calc(100% - 40px); display: flex; flex-direction: column; background: rgba(28, 22, 13, 0.97); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 50px rgba(0, 0, 0, .5); }
.halls-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px 20px; border-bottom: 1px solid rgba(201, 162, 74, 0.2); }
.halls-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--gold-text); }
.halls-body { overflow: auto; padding: 8px 12px 14px; }
.halls-group { margin: 10px 8px 6px; font-size: 13px; color: var(--text-soft); letter-spacing: .03em; }
.halls-divider { display: flex; align-items: center; gap: 12px; margin: 16px 8px 6px; font-size: 13px; color: var(--text-soft); }
.halls-divider::before, .halls-divider::after { content: ""; flex: 1; height: 1px; background: rgba(201, 162, 74, 0.35); }
.halls-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hall-item { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 10px 6px 6px; border-radius: 10px; border: 1px solid rgba(201, 162, 74, 0.22); background: rgba(243, 230, 196, 0.04); cursor: pointer; text-align: left; }
.hall-item:hover { border-color: rgba(226, 198, 126, 0.7); }
.hall-item[aria-current="true"] { border-color: var(--gold); background: rgba(201, 162, 74, 0.14); }
.hall-thumb { width: 64px; height: 42px; border-radius: 6px; background-size: 300% auto; background-position: 50% 30%; background-color: #3a2f1c; flex: none; }
.hall-meta { display: flex; flex-direction: column; line-height: 1.3; }
.hall-name { font-family: var(--serif); font-size: 16px; }
.hall-zh { font-size: 13px; color: var(--text-soft); }
.hall-here { font-size: 12px; color: var(--gold-text); }

/* ============ Sign in and plain screens ============ */
.screen-signin { background: #17130C url("../art/signin-bg.webp") center / cover no-repeat; overflow: auto; display: flex; flex-direction: column; }
.screen-plain { background: #15120D; overflow: auto; display: flex; flex-direction: column; }
.plain-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: calc(12px + var(--safe-t)) calc(16px + var(--safe-r)) 10px calc(16px + var(--safe-l)); flex-wrap: wrap; }
.plain-top .badge { margin-right: auto; }
.plain-top .back { margin-right: 4px; }
.signin-main, .home-main, .plain-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 12px 16px 24px; }
.card { width: min(520px, 100%); background: rgba(31, 26, 16, 0.86); border: 1px solid rgba(201, 162, 74, 0.40); border-radius: 16px; color: #F3E6C4; padding: 24px 24px 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 27px; margin: 0 0 6px; color: #F3E6C4; }
.card-title:focus { outline: none; }
.card-sub { margin: 0 0 16px; color: var(--text-soft); font-size: 15px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(201, 162, 74, 0.25); margin-bottom: 18px; }
.tab { min-height: 48px; padding: 6px 8px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text-soft); cursor: pointer; font-size: 14.5px; line-height: 1.25; }
.tab[aria-selected="true"] { background: rgba(201, 162, 74, 0.18); border-color: rgba(201, 162, 74, 0.6); color: var(--text); }
.form-intro { margin: 0 0 14px; font-size: 15px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 15px; margin-bottom: 6px; }
.field input { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(201, 162, 74, 0.5); background: rgba(12, 9, 5, 0.6); color: var(--text); font-size: 16px; }
.field input::placeholder { color: #9C8F70; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; }
.field-row .btn { flex: none; }
.help { font-size: 13.5px; color: var(--text-soft); margin: 6px 0; }
.help-ok { color: var(--text); }
.form-error { margin: 8px 0; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(226, 198, 126, 0.6); background: rgba(201, 162, 74, 0.12); font-size: 14.5px; }
.form-note { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid rgba(201, 162, 74, 0.25); font-size: 13px; color: var(--text-soft); }
.legal-plain { text-align: center; font-size: 12.5px; color: var(--text-soft); padding: 8px 14px calc(10px + var(--safe-b)); background: rgba(16, 12, 6, 0.75); }

.plain-card { width: min(520px, 100%); padding: 32px 24px 22px; border-radius: 16px; background: #1D1912; border: 1px solid rgba(201, 162, 74, 0.25); text-align: center; margin-top: 4vh; }
.plain-card .steps-list { text-align: left; }
.wait-line { font-size: 17px; margin: 6px 0 4px; }
.small-head { font-size: 15px; font-weight: 600; margin: 22px 0 6px; color: var(--text-soft); text-align: left; }
.steps-list { margin: 0 0 18px; padding-left: 22px; font-size: 15px; color: var(--text); }
.steps-list li { margin: 4px 0; }
.breath { width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 16px; background: radial-gradient(circle, #FFF4D4 0%, #E8C36E 55%, rgba(232, 195, 110, 0) 100%); box-shadow: 0 0 18px rgba(240, 205, 130, .7); animation: breath 4.5s ease-in-out infinite; }
@keyframes breath { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.preview-link { margin: 18px 0 0; font-size: 13.5px; }

.eyebrow { margin: 0; font-size: 14px; color: var(--text-soft); }
.home-card-wide { width: min(720px, 100%); }
.home-sec { margin: 18px 0; }
.home-sec h2 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 0 8px; color: var(--gold-text); }
.seat-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: rgba(243, 230, 196, 0.05); border: 1px solid rgba(201, 162, 74, 0.25); }
.seat-row .seat-row-text { flex: 1 1 220px; }
.seat-row .seat-row-text p { margin: 0; }
.seat-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.visitors { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.visitor { padding: 12px; border-radius: 12px; background: rgba(243, 230, 196, 0.05); border: 1px solid rgba(201, 162, 74, 0.25); }
.visitor h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.visitor p { margin: 2px 0; font-size: 14px; color: var(--text-soft); }
.unverified { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(201, 162, 74, 0.5); color: var(--text); margin: 2px 0 4px; }
.visitor-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.visitor-done { font-size: 14px; color: var(--text); margin-top: 8px !important; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(201, 162, 74, 0.2); white-space: nowrap; }
.tbl th { font-weight: 600; color: var(--text-soft); font-size: 13px; }
.tbl td.num { font-variant-numeric: tabular-nums; }
.comm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.comm div { padding: 12px; border-radius: 12px; background: rgba(243, 230, 196, 0.05); border: 1px solid rgba(201, 162, 74, 0.25); }
.comm dt { font-size: 13.5px; color: var(--text-soft); }
.comm dd { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; }
.privacy-line { padding: 8px 12px; border-left: 3px solid var(--gold); background: rgba(201, 162, 74, 0.08); border-radius: 0 8px 8px 0; color: var(--text); }

/* ============ Responsive ============ */
@media (max-width: 1240px) {
  .search-input { width: 250px; }
  .brand-name { font-size: 19px; }
  .hall-btn { font-size: 16.5px; padding: 6px 12px; }
}
@media (max-width: 980px) {
  .tb-main { flex-wrap: wrap; row-gap: 8px; }
  .brand { order: 1; }
  .tb-actions { order: 2; margin-left: auto; }
  .hall-btn { order: 3; }
  .fh-link { order: 3; margin-left: 0; }
  .search { order: 4; flex: 1 1 260px; justify-content: flex-end; }
  .search-input { flex: 1; width: auto; max-width: 320px; }
  .welcome { top: 172px; }
  .special-intro, .seat-card { top: 172px; }
  .minimap-wrap { top: 166px; }
}
@media (max-width: 700px) {
  .topbar { padding: calc(8px + var(--safe-t)) calc(10px + var(--safe-r)) 6px calc(10px + var(--safe-l)); }
  .tb-main { gap: 6px 8px; }
  .brand-name { font-size: 18px; }
  .tb-actions .btn { padding: 6px 10px; font-size: 14px; }
  .hall-btn { order: 3; flex: 1 1 58%; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
  .fh-link { order: 3; flex: none; padding: 6px 12px; font-size: 14px; min-height: 44px; }
  .fh-zh, .fh-sep { display: none; }
  html[lang^="zh"] .fh-en { display: none; }
  html[lang^="zh"] .fh-zh { display: inline; }
  .search { order: 4; flex: 1 1 100%; }
  .search-input { max-width: none; }
  .tb-badges { margin-top: 5px; gap: 6px; }
  .badge { font-size: 11.5px; padding: 3px 8px; }
  .search-msg { left: 10px; right: 10px; max-width: none; }
  .edge { max-width: 96px; min-height: 56px; padding: 6px 8px; gap: 2px; background: rgba(24, 19, 11, 0.92); }
  .edge-prev { left: calc(4px + var(--safe-l)); }
  .edge-next { right: calc(4px + var(--safe-r)); }
  .edge-text { font-size: 11.5px; }
  .edge-n { display: none; }
  .edge-s { display: block; }
  .chev { font-size: 26px; }
  .hud { bottom: calc(40px + var(--safe-b)); align-items: flex-end; padding: 0 10px; gap: 8px; }
  .hint { display: none; }
  .minimap-wrap { top: auto; right: auto; left: calc(10px + var(--safe-l)); bottom: calc(40px + var(--safe-b)); }
  .minimap { width: 128px; height: 54px; }
  .hud-right { right: 10px; flex-direction: column; align-items: flex-end; gap: 6px; }
  .section-select { max-width: 190px; font-size: 14px; }
  .zoom-level { min-width: 50px; font-size: 12.5px; }
  .legal-bar { font-size: 11.5px; padding: 5px 10px calc(5px + var(--safe-b)); }
  .special-intro { top: 196px; font-size: 13.5px; }
  .seat-card { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 72%; border-radius: 18px 18px 0 0; background: rgb(28, 22, 13); padding-bottom: var(--safe-b); }
  .welcome { left: 10px; right: 10px; width: auto; top: auto; bottom: calc(44px + var(--safe-b)); max-height: calc(100% - 220px); overflow: auto; }
  .halls-list { grid-template-columns: 1fr; }
  .card { padding: 20px 16px 14px; }
  .card-title { font-size: 24px; }
  .tab { font-size: 13.5px; padding: 6px 4px; }
  .field-row { flex-direction: column; }
  .comm { grid-template-columns: 1fr; }
  .tbl td { white-space: normal; }
  .tbl th, .tbl td { padding: 8px 6px; }
  .plain-top { gap: 8px; }
  .plain-top .back, .plain-top .brand-name { order: 1; }
  .plain-top .lang-btn { order: 2; margin-left: auto; }
  .plain-top .badge { order: 3; margin-right: 0; }
}
/* Phone portrait: framed hero first screen */
@media (max-width: 700px) and (orientation: portrait) {
  .welcome.hero { top: 196px; bottom: auto; max-height: calc(100% - 210px); }
  .welcome.hero .welcome-frame { display: block; height: 150px; background-size: 260% auto; background-position: 50% 12%; background-repeat: no-repeat; border-bottom: 1px solid var(--line); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .tb-badges { display: none; }
  .welcome { top: 70px; max-height: calc(100% - 120px); overflow: auto; }
  .seat-card { top: 64px; max-height: calc(100% - 110px); }
  .hint { display: none; }
  .minimap-wrap { top: auto; bottom: calc(36px + var(--safe-b)); left: calc(10px + var(--safe-l)); right: auto; }
  .minimap { width: 150px; height: 64px; }
  .special-intro { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
/* Main hall music (01f) */
.hm-btn{width:40px;height:40px;color:var(--gold-text,#E2C67E)}
.hm-btn.is-playing{box-shadow:0 0 0 1px rgba(226,198,126,.7),0 0 14px rgba(226,198,126,.45)}
.hm-panel{position:absolute;z-index:30;right:calc(12px + env(safe-area-inset-right));bottom:calc(76px + env(safe-area-inset-bottom));width:280px;max-width:calc(100vw - 24px);background:var(--panel,rgba(24,19,11,.92));border:1px solid rgba(201,162,74,.45);border-radius:14px;padding:10px 12px 12px;box-shadow:0 10px 30px rgba(0,0,0,.45);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.hm-panel[hidden]{display:none}
.hm-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.hm-title{flex:1;font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;color:var(--gold-text,#E2C67E);font-size:15px}
.hm-tag{font-size:11px;padding:2px 8px;border-radius:999px;border:1px solid rgba(201,162,74,.45);opacity:.85;white-space:nowrap}
.hm-x{width:32px;height:32px;border-radius:50%;border:1px solid rgba(201,162,74,.45);background:transparent;color:inherit;font-size:18px;cursor:pointer}
.hm-player iframe{display:block;width:100%;height:auto;aspect-ratio:16/9;border:0;border-radius:8px}
.hm-title [lang]{white-space:nowrap}@media (max-width:600px){.hm-panel{width:230px;bottom:calc(132px + env(safe-area-inset-bottom));padding:8px 10px 10px}.hm-title{font-size:14px}}
.hm-head{flex-wrap:wrap;row-gap:4px}.hm-title{white-space:nowrap}@media (max-width:600px){.hm-tag{order:3;flex-basis:100%;flex-grow:0;max-width:max-content}}
