:root {
  --navy: #1d2a3a; --ink: #18202a; --muted: #6b7684; --line: #e3e7ec; --bg: #eef1f5;
  --gold: #e8a33a; --card: #ffffff; --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; font: 15px/1.35 var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif); color: var(--ink); background: var(--bg); -webkit-tap-highlight-color: transparent; }
body { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr); height: 100dvh; }
#top { grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--hdr-bg, var(--navy)); color: var(--hdr-fg, #fff); border-bottom: var(--hdr-line, 0); }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.title { font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepinfo { text-align: right; min-width: 0; flex: 1; }
.steplabel { font-weight: 700; font-size: 17px; white-space: nowrap; }
.crumb { font-size: 12px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; }
#stage { grid-row: 2; position: relative; min-height: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--bg); color: var(--muted); z-index: 3; }
.loading.hidden { display: none; }
.spinner { width: 34px; height: 34px; border: 4px solid #cfd6de; border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { position: absolute; left: 12px; top: 12px; background: var(--tool-bg, rgba(255,255,255,.92)); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.08); max-width: calc(100% - 80px); }
.badge.hidden, .stats.hidden { display: none; }
.badge b { color: var(--accent-ink, #b5721a); }
.viewtools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 8px; }
.viewtools button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--tool-bg, rgba(255,255,255,.92)); font-size: 20px; color: var(--tool-ink, var(--navy)); }
.viewtools button.on { background: var(--tool-on, var(--navy)); color: var(--tool-on-ink, #fff); }
.stats { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.65); color: #fff; font: 11px/1.4 ui-monospace, Menlo, monospace; padding: 6px 8px; border-radius: 6px; white-space: pre; }
.panel { grid-row: 3; background: var(--card); border-top: 1px solid var(--line); max-height: 42dvh; display: flex; flex-direction: column; }
.panel-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 0; background: none; font: inherit; font-weight: 700; padding: 10px 14px; color: var(--panel-head, var(--navy)); }
.panel .chev { transition: transform .2s; }
.panel.open .chev { transform: rotate(180deg); }
.panel-body { overflow-y: auto; display: none; padding: 0 12px 8px; }
.panel.open .panel-body { display: block; }
.parts .grp-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 2px 4px; }
.parts .grp-h b { color: var(--accent-ink, #b5721a); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.tiles.mini { background: var(--mini-bg, #fff7e8); border: 2px solid var(--mini-line, #f0d3a0); border-radius: 12px; padding: 6px; }
.tile { position: relative; background: var(--tile-bg, #f5f7fa); border: 1px solid var(--line); border-radius: 10px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tile img { width: 86%; height: 86%; object-fit: contain; pointer-events: none; }
.tile b { position: absolute; left: 6px; bottom: 3px; font-size: 15px; font-weight: 800; color: var(--ink); text-shadow: var(--qty-halo, 0 0 3px #fff, 0 0 3px #fff); }
.tile.sub { cursor: pointer; border-color: var(--gold); }
.parts .empty { color: var(--muted); display: block; padding: 10px 2px; }
#controls { grid-row: 4; display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px + var(--safe-b)); background: var(--card); border-top: 1px solid var(--line); }
#controls .nav { width: 56px; height: 48px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--nav-bg, var(--tile-bg, #f5f7fa)); font-size: 30px; line-height: 1; color: var(--nav-ink, var(--navy)); }
#controls .nav.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold, #fff); }
#controls .nav:disabled { opacity: .35; }
#slider { flex: 1; min-width: 0; width: 100%; accent-color: var(--gold); height: 32px; }
.sliderwrap { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.bagticks { position: absolute; left: 8px; right: 8px; bottom: -3px; height: 7px; pointer-events: none; }
body.prog-star .bagticks { left: 15px; right: 15px; }
.bagticks i { position: absolute; top: 0; width: 2px; height: 7px; margin-left: -1px; border-radius: 1px; background: var(--accent-ink, #b5721a); opacity: .75; }
.resume { position: absolute; left: 50%; top: 12px; z-index: 3; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--tool-bg, rgba(255,255,255,.95)); color: var(--tool-ink, var(--navy)); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.18); white-space: nowrap; }
.resume button { border: 0; border-radius: 9px; padding: 7px 11px; font: inherit; font-size: 13px; background: var(--gold); color: var(--on-gold, #fff); }
.resume.hidden { display: none; }
@media (max-width: 599px) {
  .title { display: none; }
  .badge { font-size: 12px; }
}
@media (min-width: 900px) {
  body { grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr) auto; }
  #top { grid-column: 1 / 3; }
  #stage { grid-column: 1; grid-row: 2; }
  .panel { grid-column: 2; grid-row: 2 / 4; max-height: none; border-top: 0; border-left: 1px solid var(--line); }
  .panel .panel-body { display: block; }
  .panel .chev { display: none; }
  #controls { grid-column: 1; grid-row: 3; }
}
.booklabel { font-size: 11px; opacity: .8; white-space: nowrap; }
.booklabel.newbag { opacity: 1; font-weight: 800; color: var(--accent-ink, #b5721a); } 
.tip { position: fixed; z-index: 9; background: var(--navy); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 8px; max-width: 220px; pointer-events: none; }
.tip.hidden, .tray.hidden, .verse.hidden { display: none; }
.tray { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 20px); pointer-events: none; }
.tcard { width: 84px; height: 84px; background: var(--tray-bg, rgba(255,255,255,.95)); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.1); position: relative; display: flex; align-items: center; justify-content: center; transition: opacity .35s, transform .35s; }
.tcard img { width: 88%; height: 88%; object-fit: contain; }
.tcard.gone { opacity: 0; transform: scale(.6); }
.tray.many .tcard:not(.mini) { width: 58px; height: 58px; border-radius: 10px; } 
.tcard.mini { width: 104px; height: 112px; flex-direction: column; background: var(--mini-bg, #fff7e8); border: 2px solid var(--mini-line, #f0d3a0); }
.tcard.mini img { height: 70%; }
.tcard em { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--accent-ink, #b5721a); letter-spacing: .04em; }
.tcard b { position: absolute; right: 7px; bottom: 4px; font-size: 16px; font-weight: 800; }
.verse { position: absolute; right: 64px; top: 12px; max-width: min(360px, calc(100% - 90px)); background: var(--warm-bg, #fffaf0); border: 1px solid var(--warm-line, #ecd9b4); border-left: 5px solid var(--gold); border-radius: 12px; padding: 10px 30px 10px 14px; box-shadow: 0 4px 16px rgba(80,50,0,.12); color: var(--warm-ink, #3d2f1c); z-index: 2; }
.verse .vitem + .vitem { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--warm-line, #ecd9b4); }
.verse .vref { font-weight: 800; font-size: 13px; color: var(--warm-ref, #9a5f12); }
.verse .vtext { font: 15px/1.4 var(--font-verse, Georgia, "Times New Roman", serif); margin-top: 2px; }
.verse .vtr { font-size: 10px; color: var(--warm-muted, #a08a66); margin-top: 3px; }
.verse .vclose { position: absolute; right: 6px; top: 4px; border: 0; background: none; font-size: 20px; color: var(--warm-muted, #a08a66); cursor: pointer; }
@media (max-width: 599px) {
  .verse { left: 10px; right: 10px; top: auto; bottom: 10px; max-width: none; }
  .verse .vtext { font-size: 14px; }
  .tcard { width: 64px; height: 64px; } .tcard.mini { width: 80px; height: 88px; }
  .panel .panel-body { display: block; }
  .panel:not(.open) .grp-h { display: none; }
  .panel:not(.open) .parts { display: flex; gap: 6px; overflow-x: auto; }
  .panel:not(.open) .tiles { display: flex; gap: 6px; }
  .panel:not(.open) .tiles.mini { padding: 3px; }
  .panel:not(.open) .tile { width: 58px; flex: none; }
  .panel:not(.open) }
.verse { position: relative; right: auto; top: auto; left: auto; bottom: auto; max-width: none; margin: 4px 0 10px; padding: 10px 12px; box-shadow: none; z-index: auto; }
.verse .vbadge { display: none; position: absolute; right: 8px; top: -9px; background: var(--gold); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 8px; }
.verse.new .vbadge { display: inline-block; }
.verse.new { animation: vnew 1.8s ease-out; }
@keyframes vnew { 0% { transform: translateY(-8px); opacity: .3; box-shadow: 0 0 0 5px var(--glow, rgba(232,163,58,.6)); } 30% { transform: none; opacity: 1; } 100% { box-shadow: 0 0 0 0 rgba(232,163,58,0); } }
@media (max-width: 599px) {
  .verse { margin: 0 0 6px; padding: 6px 10px; }
  .panel:not(.open) .verse .vtext { font-size: 13.5px; line-height: 1.35; max-height: 7.2em; overflow-y: auto; } 
  .panel:not(.open) .verse .vtr, .panel:not(.open) .verse .vitem + .vitem { display: none; }
}
.tile.hot { outline: 3px solid var(--gold); outline-offset: -1px; background: var(--hot-bg, #fff3dc); }
.verse .vbadge { top: 7px; right: 8px; }
.verse.new .vitem:first-of-type .vref { padding-right: 86px; }
.tcard.wait { border: 2px dashed var(--mini-line, #f0d3a0); }
.tile.subm { border-color: var(--mini-line, #f0d3a0); background: var(--mini-bg, #fff7e8); }
.finale { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--warm-bg, #fffaf0); border: 1px solid var(--warm-line, #ecd9b4); border-top: 5px solid var(--gold); border-radius: 16px; padding: 14px 22px; text-align: center; box-shadow: 0 8px 28px rgba(80,50,0,.18); z-index: 5; animation: fin .6s ease-out; }
.finale.hidden { display: none; }
.finale .fstar { color: var(--gold); font-size: 22px; line-height: 1; }
.finale .ftitle { font: 700 22px/1.25 var(--font-verse, Georgia, "Times New Roman", serif); color: var(--warm-ink, #3d2f1c); margin: 4px 0 10px; }
.finale button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 8px 18px; background: var(--gold); color: #fff; margin: 0 4px; }
.finale button.ghost { background: none; color: var(--warm-ref, #9a5f12); }
@keyframes fin { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fact { position: relative; margin: 4px 0 10px; padding: 10px 12px; background: var(--fact-bg, #eef6fb); border: 1px solid var(--fact-line, #cfe3ef); border-left: 5px solid var(--fact-accent, #3b8cc4); border-radius: 12px; color: var(--fact-ink, #1d3242); }
.fact.hidden { display: none; }
.fact .khead { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; color: var(--fact-head, #1f6194); }
.fact .khead svg { flex: none; color: var(--fact-accent, #3b8cc4); }
.fact .ktext { font-size: 14px; line-height: 1.4; margin-top: 3px; }
.fact .kbadge { display: none; position: absolute; right: 8px; top: 7px; background: var(--fact-accent, #3b8cc4); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 8px; }
.fact.new .kbadge { display: inline-block; }
.fact.new { animation: knew 2s ease-out; }
.fact.new .khead svg { animation: kbulb 2s ease-out; }
@keyframes knew { 0% { transform: translateY(-8px); opacity: .3; box-shadow: 0 0 0 5px var(--fact-glow, rgba(59,140,196,.5)); } 30% { transform: none; opacity: 1; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes kbulb { 0%, 100% { filter: none; } 25%, 55% { filter: drop-shadow(0 0 5px var(--gold)); color: var(--gold); } }
@media (max-width: 599px) {
  .fact { margin: 0 0 6px; padding: 6px 10px; }
  .panel:not(.open) .fact { cursor: pointer; display: flex; align-items: center; gap: 6px; }
  .panel:not(.open) .fact.hidden { display: none; }
  .panel:not(.open) .fact .khead { flex: none; }
  .panel:not(.open) .fact .ktext { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .panel:not(.open) .fact .kbadge { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fact.new, .fact.new .khead svg, .verse.new { animation: none; } }
.wordmark { height: 40px; width: auto; display: block; flex: none; }
.wordmark.hidden { display: none; }
body.has-wordmark .title { display: none; }
@media (max-width: 599px) { .wordmark { height: 32px; } }
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; } 
.ambient .star { position: absolute; border-radius: 50%; background: var(--star, #fff); opacity: .25; animation: twinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite alternate; }
.ambient .mote { position: absolute; bottom: -12px; border-radius: 50%; background: radial-gradient(circle, var(--mote, rgba(255,214,140,.9)), transparent 70%); opacity: 0; animation: drift var(--d, 14s) linear var(--dl, 0s) infinite; will-change: transform, opacity; }
.ambient .glow { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, var(--glow-c, rgba(255,226,150,.55)), transparent 68%); animation: pulse 5s ease-in-out infinite alternate; }
.ambient .glow::before, .ambient .glow::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 62%; transform: translate(-50%, -50%); background: linear-gradient(transparent, var(--glow-ray, rgba(255,240,200,.8)), transparent); }
.ambient .glow::after { width: 62%; height: 2px; background: linear-gradient(90deg, transparent, var(--glow-ray, rgba(255,240,200,.8)), transparent); }
@keyframes twinkle { from { opacity: .15; } to { opacity: var(--o, .9); } }
@keyframes drift { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: var(--o, .6); } 85% { opacity: var(--o, .6); } 100% { transform: translate(var(--dx, 20px), -105vh); opacity: 0; } }
@keyframes pulse { from { opacity: .75; transform: translate(-50%, -50%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .ambient * { animation: none !important; } .ambient .mote { display: none; } }
body.prog-star #slider { -webkit-appearance: none; appearance: none; background: transparent; height: 32px; }
body.prog-star #slider::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--prog-fill, var(--gold)) var(--pct, 0%), var(--prog-track, var(--line)) var(--pct, 0%)); }
body.prog-star #slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border: 0; background: var(--prog-thumb) center / contain no-repeat; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
body.prog-star #slider::-moz-range-track { height: 8px; border-radius: 4px; background: var(--prog-track, var(--line)); }
body.prog-star #slider::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--prog-fill, var(--gold)); }
body.prog-star #slider::-moz-range-thumb { width: 30px; height: 30px; border: 0; background: var(--prog-thumb) center / contain no-repeat; }
:root { --prog-thumb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .5l2.6 8.9 8.9 2.6-8.9 2.6L12 23.5l-2.6-8.9L.5 12l8.9-2.6z' fill='%23f4c430' stroke='%23553a00' stroke-width='.9'/%3E%3C/svg%3E"); }
body.themed .steplabel, body.themed .panel-toggle, body.themed .finale .ftitle { font-family: var(--font-title, inherit); }
body.themed .panel { background: var(--panel-bg, var(--card)); }
body.themed #controls { background: var(--ctrl-bg, var(--card)); }
body.title-big .title { font: 600 19px/1.2 var(--font-title, Georgia, serif); opacity: 1; color: var(--hdr-fg, #fff); letter-spacing: .02em; }
.sheet-head { display: flex; align-items: center; }
.sheet-head .panel-toggle { flex: 1; min-width: 0; }
.sheet-hide, .steppill, .grab, .newdot { display: none; }
@media (max-width: 599px), (max-height: 520px) and (max-width: 950px) {
  .sheet-head { position: relative; }
  .panel-toggle { padding: 12px 14px 4px; font-size: 13px; gap: 8px; justify-content: flex-start; }
  .panel-toggle .chev { margin-left: auto; }
  .grab { display: block; position: absolute; left: 50%; top: 4px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
  .sheet-hide { display: block; flex: none; width: 44px; height: 34px; border: 0; background: none; font-size: 18px; color: var(--muted); }
  .panel.open .sheet-hide { display: none; }
  .panel.tucked .sheet-hide { display: none; }
  .panel.tucked .panel-body { display: none !important; }
  .panel.tucked .panel-toggle { padding-bottom: 8px; }
  .panel.tucked .chev { transform: none; }
  .panel.tucked .newdot.on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(232,163,58,.3); }
  .panel:not(.open) .verse:not(.full) { cursor: pointer; display: flex; align-items: baseline; gap: 6px; padding: 5px 10px; margin-bottom: 6px; }
  .panel:not(.open) .verse:not(.full) .vitem { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex: 1; }
  .panel:not(.open) .verse:not(.full) .vitem + .vitem, .panel:not(.open) .verse:not(.full) .vtr { display: none; }
  .panel:not(.open) .verse:not(.full) .vref { flex: none; font-size: 12px; padding-right: 0 !important; }
  .panel:not(.open) .verse:not(.full) .vtext { margin: 0; min-width: 0; max-height: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; }
  .panel:not(.open) .verse:not(.full) .vbadge { position: static; flex: none; order: 2; }
  .panel:not(.open) .verse.full { cursor: pointer; }
  #controls { gap: 8px; padding: 6px 10px calc(6px + var(--safe-b)); position: relative; }
  #controls::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: var(--pct, 0%); background: var(--prog-fill, var(--gold)); }
  #controls .nav { width: 64px; height: 42px; font-size: 28px; }
  .steppill { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--nav-ink, var(--navy)); }
  .steppill .pillicon { font-size: 15px; opacity: .55; }
  #controls:not(.seek) .sliderwrap { display: none; }
  #controls.seek .steppill { display: none; }
}
.buildtip { margin: 4px 0 10px; padding: 10px 12px; background: var(--tip-bg, #fff4dd); border: 2px solid var(--gold); border-radius: 12px; color: var(--warm-ink, #3d2f1c); animation: tipin .5s ease-out; }
.buildtip.hidden { display: none !important; }
.buildtip .thead { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: var(--warm-ref, #9a5f12); }
.buildtip .thead svg { flex: none; color: var(--gold); }
.buildtip .ttext { font-size: 13.5px; line-height: 1.4; margin-top: 4px; }
.buildtip ol { margin: 6px 0 0; padding-left: 22px; font-size: 13.5px; line-height: 1.4; }
.buildtip li + li { margin-top: 3px; }
.buildtip li::marker { font-weight: 800; color: var(--warm-ref, #9a5f12); }
@keyframes tipin { from { transform: translateY(-6px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .buildtip { animation: none; } }
@media (max-width: 599px), (max-height: 520px) and (max-width: 950px) {
  .buildtip { margin: 0 0 6px; padding: 8px 10px; }
  .panel:not(.open) .panel-body:has(.buildtip:not(.hidden)) { max-height: 46dvh; overflow-y: auto; }
}
@media (max-width: 599px), (max-height: 520px) and (max-width: 950px) {
  .panel:not(.open) .panel-body:has(.buildtip:not(.hidden)) .verse { display: none; } 
}
.buildtip .twatch { display: block; width: 100%; margin-top: 8px; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--gold); color: var(--on-gold, #fff); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.tvideo { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(10,14,20,.78); padding: 16px; }
.tvideo.hidden { display: none; }
.tvbox { position: relative; width: min(92vw, 560px); }
.tvbox video { display: block; width: 100%; aspect-ratio: 1; border-radius: 14px; background: #000; }
.tvclose { position: absolute; right: -6px; top: -42px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); font-size: 18px; cursor: pointer; }
.tour { position: fixed; inset: 0; z-index: 30; cursor: pointer; }
.tour.hidden { display: none; }
.tourspot { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8,12,20,.66); outline: 3px solid var(--gold); outline-offset: 0; transition: all .3s ease; pointer-events: none; }
.tourcard { position: absolute; max-width: calc(100vw - 24px); background: var(--warm-bg, #fffaf0); color: var(--warm-ink, #3d2f1c); border-top: 5px solid var(--gold); border-radius: 14px; padding: 12px 14px 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: top .3s ease, left .3s ease; }
.tourtitle { font: 700 18px/1.25 var(--font-title, Georgia, serif); margin-bottom: 4px; }
.tourtitle.hidden { display: none; }
.tourtext { font-size: 15px; line-height: 1.4; }
.tourfoot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.tourdots { flex: 1; font-size: 12px; color: var(--warm-muted, #a08a66); }
.tourskip { border: 0; background: none; font: inherit; font-size: 13px; color: var(--warm-ref, #9a5f12); padding: 6px 4px; }
.tourskip.hidden { display: none; }
.tournext { border: 0; border-radius: 10px; padding: 8px 16px; font: inherit; font-weight: 800; background: var(--gold); color: var(--on-gold, #fff); }
@media (prefers-reduced-motion: reduce) { .tourspot, .tourcard { transition: none; } }
