/* =========================================================
   Knowledge City: 3D walkthrough (knowledge-city-tour.html, js/kc-tour.js)
   ========================================================= */

.page-tour .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;
}

/* ---------- tokens ---------- */
.tour-stage {
  --tc-panel: rgba(255, 255, 255, 0.9);
  --tc-panel-solid: #FFFFFF;
  --tc-ink: var(--ink);
  --tc-muted: var(--muted);
  --tc-line: rgba(14, 27, 43, 0.12);
  --tc-shadow: 0 18px 50px rgba(14, 27, 43, 0.18), 0 2px 6px rgba(14, 27, 43, 0.08);
  --tc-ease: cubic-bezier(.22, .61, .36, 1);
  --tc-safe-b: env(safe-area-inset-bottom, 0px);
  position: relative;
  isolation: isolate;
}
[data-theme="dark"] .tour-stage {
  --tc-panel: rgba(11, 19, 31, 0.86);
  --tc-panel-solid: #0F1928;
  --tc-line: rgba(232, 237, 244, 0.12);
  --tc-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* One screen tall under the sticky header (JS keeps --tour-top in sync with the header) */
.kc-js .tour-stage,
.tour-stage.is-3d {
  height: calc(100vh - var(--tour-top, var(--header-h)));
  height: calc(100svh - var(--tour-top, var(--header-h)));
  min-height: 460px;
  overflow: hidden;
  background: var(--bg);
}
.kc-js .tour-stage .tour-static { display: none; }
.kc-js .tour-stage.is-fallback,
.tour-stage.is-fallback { height: auto; min-height: 0; overflow: visible; }

/* ---------- no-JS / text version ---------- */
.tour-static { padding: clamp(40px, 6vw, 72px) 0; }
.tour-static-title { margin-top: 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.tour-static-lead { margin-top: 14px; max-width: 46rem; color: var(--muted); }
.tour-static-plan { margin: 28px 0 0; background: var(--img-bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.tour-static-plan img { width: 100%; height: auto; }
.tour-static-plan figcaption { padding: 10px 16px; font-size: .85rem; color: #4A5566; }
.tour-static-list { margin: 28px 0 0; padding-left: 1.4em; display: grid; gap: 10px; max-width: 52rem; }
.tour-static-list li::marker { color: var(--gold-text); font-weight: 700; }
.tour-static-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   3D stage
   ========================================================= */
.tc-sky {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #A8C4DC 0%, #CCDCE7 30%, #E6E8E4 52%, #EDEBE4 64%, #EDEBE4 100%);
  transition: opacity .8s;
}
.tc-sky::after {   /* dusk layer: fades in with the dark theme */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
  background:
    radial-gradient(120% 40% at 70% 58%, rgba(255, 150, 90, .22), transparent 70%),
    linear-gradient(180deg, #060C17 0%, #111C33 30%, #2A2A42 54%, #262A3C 64%, #262A3C 100%);
}
[data-theme="dark"] .tc-sky::after { opacity: 1; }

.tc-canvas {
  position: absolute; inset: 0; z-index: 1;
  display: block; width: 100%; height: 100%;
  touch-action: none;                /* one-finger drag looks around */
  cursor: grab;
  outline: none;
  opacity: 0; transition: opacity 1.2s var(--tc-ease);
}
.is-loaded .tc-canvas { opacity: 1; }
.is-intro .tc-canvas { cursor: default; }
.is-dragging .tc-canvas, .is-dragging { cursor: grabbing; }
.tour-stage:focus { outline: none; }

/* ---------- shared buttons ---------- */
.tc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--tc-line); border-radius: 999px;
  background: transparent; color: var(--tc-ink);
  font: 600 .88rem/1 var(--font-body); letter-spacing: .01em;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.tc-btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-btn svg .fill { fill: currentColor; stroke: none; }
.tc-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--tc-ink); background: rgba(201, 162, 39, .12); }
.tc-btn:disabled { opacity: .35; cursor: default; }

/* ---------- honesty note ---------- */
.tc-honest {
  position: absolute; z-index: 5; top: 14px; right: 16px;
  max-width: 300px; padding: 6px 12px; border-radius: 999px;
  background: var(--tc-panel); color: var(--tc-muted);
  font-size: .72rem; line-height: 1.35; letter-spacing: .01em;
  box-shadow: 0 2px 10px rgba(14, 27, 43, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ---------- floating pins ---------- */
.tc-pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.tc-pin {
  position: absolute; left: 0; top: 0;
  margin: -50px 0 0 -15px; padding: 0;
  display: flex; align-items: center; gap: 8px;
  border: 0; background: none; cursor: pointer; pointer-events: auto;
  transform-origin: 15px 50px;
  transition: opacity .3s;
  will-change: transform;
}
.tc-pin::after {   /* the stem down to the building */
  content: ""; position: absolute; left: 14px; top: 30px; width: 2px; height: 20px;
  background: linear-gradient(var(--gold), rgba(201, 162, 39, 0));
}
.tc-pin.is-hidden { opacity: 0; pointer-events: none; }
.tc-pin-dot {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #FFFFFF; border: 2px solid var(--gold);
  font: 700 .78rem/1 var(--font-body);
  box-shadow: 0 4px 14px rgba(14, 27, 43, .3);
  transition: transform .3s var(--tc-ease), background-color .3s, color .3s;
}
.tc-pin-label {
  padding: 6px 11px; border-radius: 999px;
  background: var(--tc-panel-solid); color: var(--tc-ink);
  font: 600 .8rem/1.1 var(--font-body); white-space: nowrap;
  box-shadow: 0 4px 16px rgba(14, 27, 43, .18);
  opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--tc-ease);
  pointer-events: none;
}
.tc-pin.is-active .tc-pin-dot { background: var(--gold); color: var(--navy); transform: scale(1.12); }
.tc-pin.is-active .tc-pin-label,
.tc-pin:hover .tc-pin-label,
.is-explore .tc-pin-label { opacity: 1; transform: none; }
.tc-pin:focus-visible { outline: none; }
.tc-pin:focus-visible .tc-pin-dot { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- stop card ---------- */
.tc-card {
  position: absolute; z-index: 6; left: clamp(16px, 2.4vw, 32px); top: clamp(16px, 3vh, 32px);
  width: min(390px, 36vw);
  padding: 22px 24px 20px;
  border-radius: 16px;
  background: var(--tc-panel); color: var(--tc-ink);
  border: 1px solid var(--tc-line);
  box-shadow: var(--tc-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: opacity .5s var(--tc-ease), transform .5s var(--tc-ease);
}
.tc-card::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 39, 0));
}
.is-intro .tc-card, .is-explore .tc-card, .is-revealed .tc-card { opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity .4s, transform .4s, visibility 0s .4s; }
.tc-card.is-in > :not(.tc-min) { animation: tcIn .6s var(--tc-ease) both; }
.tc-card.is-in .tc-title { animation-delay: .06s; }
.tc-card.is-in .tc-line { animation-delay: .12s; }
.tc-card.is-in .tc-actions, .tc-card.is-in .tc-cta { animation-delay: .18s; }
@keyframes tcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tc-kicker { display: flex; align-items: baseline; gap: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.tc-num { font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--tc-muted); }
.tc-title { margin-top: 8px; font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.12; color: var(--tc-ink); }
.tc-line { margin-top: 10px; font-size: .96rem; line-height: 1.55; color: var(--tc-muted); }
.tc-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.tc-reveal-btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1.5px solid var(--gold); background: transparent; color: var(--tc-ink);
  font: 600 .9rem/1 var(--font-body); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.tc-reveal-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }
.tc-reveal-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
.tc-reveal-btn:hover svg { stroke: var(--navy); }
.tc-card.is-travel .tc-reveal-btn { opacity: .55; }
.tc-cta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.tc-cta[hidden] { display: none; }
.tc-cta .btn { min-height: 44px; padding: 0 18px; font-size: .88rem; }
.tc-btn-ghost { background: transparent; color: var(--tc-ink); border-color: var(--tc-line); }
.tc-btn-ghost:hover { border-color: var(--gold); }
.tc-min { display: none; }

/* ---------- controls ---------- */
.tc-controls {
  position: absolute; z-index: 7; left: 50%; bottom: calc(18px + var(--tc-safe-b));
  transform: translateX(-50%);
  width: min(780px, calc(100% - 32px));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: opacity .5s var(--tc-ease), transform .5s var(--tc-ease);
}
.is-intro .tc-controls { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; visibility: hidden; }
.is-revealed .tc-controls { opacity: 0; pointer-events: none; }

.tc-rail-wrap { position: relative; width: 100%; padding: 6px 18px; border-radius: 999px; background: var(--tc-panel); border: 1px solid var(--tc-line); box-shadow: var(--tc-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tc-rail-line { position: absolute; left: 32px; right: 32px; top: 50%; height: 2px; margin-top: -1px; background: var(--tc-line); border-radius: 2px; overflow: hidden; }
.tc-rail-fill { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.tc-rail { position: relative; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.tc-rail li { position: relative; }
.tc-stop {
  position: relative; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; color: var(--tc-ink);
}
.tc-stop-dot {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tc-panel-solid); border: 1.5px solid rgba(14, 27, 43, .35);
  font: 700 .62rem/1 var(--font-body); color: var(--tc-muted);
  transition: transform .25s var(--tc-ease), background-color .25s, border-color .25s, color .25s;
}
[data-theme="dark"] .tc-stop-dot { border-color: rgba(232, 237, 244, .35); }
.tc-stop.is-done .tc-stop-dot { border-color: var(--gold); color: var(--gold-text); }
.tc-stop[aria-current="step"] .tc-stop-dot { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: scale(1.25); }
.tc-stop:hover .tc-stop-dot { border-color: var(--gold); }
.tc-stop-name {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translate(-50%, 4px);
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--navy); color: #FFFFFF; font: 600 .76rem/1 var(--font-body);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.tc-stop:hover .tc-stop-name, .tc-stop:focus-visible .tc-stop-name { opacity: 1; transform: translate(-50%, 0); }
.tc-rail li:first-child .tc-stop-name { left: 0; transform: translate(-6px, 4px); }
.tc-rail li:first-child .tc-stop:hover .tc-stop-name, .tc-rail li:first-child .tc-stop:focus-visible .tc-stop-name { transform: translate(-6px, 0); }
.tc-rail li:last-child .tc-stop-name { left: auto; right: 0; transform: translate(6px, 4px); }
.tc-rail li:last-child .tc-stop:hover .tc-stop-name, .tc-rail li:last-child .tc-stop:focus-visible .tc-stop-name { transform: translate(6px, 0); }

.tc-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px;
  border-radius: 999px; background: var(--tc-panel); border: 1px solid var(--tc-line);
  box-shadow: var(--tc-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.tc-bar .tc-btn { border-color: transparent; }
.tc-play { width: 52px; height: 52px; background: var(--gold) !important; color: var(--navy) !important; border-color: var(--gold) !important; }
.tc-play:hover { transform: scale(1.05); }
.tc-sep { width: 1px; height: 26px; background: var(--tc-line); margin: 0 4px; }
.tc-mode { padding: 0 16px 0 12px; }
.tc-mode[aria-pressed="true"] { background: var(--navy) !important; color: #FFFFFF !important; }
[data-theme="dark"] .tc-mode[aria-pressed="true"] { background: var(--gold) !important; color: var(--navy) !important; }
.is-explore .tc-rail-wrap, .is-explore .tc-prev, .is-explore .tc-next, .is-explore .tc-play, .is-explore .tc-sep { display: none; }
.tc-overview { display: none; padding: 0 16px 0 12px; }
.is-explore .tc-overview { display: inline-flex; }
.tc-stop.is-next .tc-stop-dot { border-color: var(--gold); border-style: dashed; color: var(--gold-text); }

/* ---------- on-screen movement pad (look-around mode) ---------- */
.tc-pad {
  position: absolute; z-index: 7; right: clamp(12px, 2vw, 28px); bottom: calc(18px + var(--tc-safe-b));
  display: none; grid-template-columns: repeat(3, 50px); gap: 6px; padding: 8px;
  border-radius: 18px; background: var(--tc-panel); border: 1px solid var(--tc-line); box-shadow: var(--tc-shadow);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.is-explore .tc-pad { display: grid; }
.tc-pad button {
  display: grid; place-items: center; width: 50px; height: 50px; padding: 0;
  border-radius: 12px; border: 1px solid var(--tc-line); background: var(--tc-panel-solid); color: var(--tc-ink);
  font: 700 .74rem/1 var(--font-body); letter-spacing: .02em; cursor: pointer;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, transform .15s;
}
.tc-pad button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tc-pad button:hover { border-color: var(--gold); }
.tc-pad button.is-held { background: var(--gold); color: var(--navy); transform: scale(.95); }

.tc-explore-hint {
  position: absolute; z-index: 6; left: 50%; top: 16px; transform: translate(-50%, -8px);
  max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 999px;
  background: var(--navy); color: #FFFFFF; font-size: .82rem; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--tc-ease);
}
.is-hint .tc-explore-hint { opacity: .94; transform: translate(-50%, 0); }
.is-intro .tc-explore-hint { opacity: 0; }
.is-explore .tc-honest { opacity: 0; }

/* ---------- render reveal ---------- */
.tc-reveal {
  position: absolute; inset: 0; z-index: 20;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(8, 14, 24, .78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .7s var(--tc-ease);
}
.tc-reveal[hidden] { display: none; }
.tc-reveal.is-open { opacity: 1; }
.tc-reveal-fig { margin: 0; width: min(1180px, 100%, calc((100svh - var(--tour-top, 80px) - 140px) * 16 / 9)); transform: scale(.97); transition: transform .9s var(--tc-ease); }
.tc-reveal.is-open .tc-reveal-fig { transform: none; }
.tc-reveal-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; border: 1px solid rgba(201, 162, 39, .55);
  background: #0E1B2B; box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.tc-reveal-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--tc-ease); }
.tc-reveal.is-loaded.is-open .tc-reveal-frame img { opacity: 1; animation: tcKen 16s linear both; }
@keyframes tcKen { from { transform: scale(1.08); } to { transform: scale(1); } }
.tc-reveal figcaption { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #E8EDF4; font-size: .9rem; }
.tc-reveal-cap { color: rgba(232, 237, 244, .86); }
.tc-reveal-close { color: #FFFFFF; border-color: rgba(201, 162, 39, .7); padding: 0 16px 0 12px; flex: none; }
.tc-reveal-close:hover:not(:disabled) { background: var(--gold); color: var(--navy); }

/* ---------- intro ---------- */
.tc-intro {
  position: absolute; inset: 0; z-index: 30;
  display: grid; place-items: center; padding: 20px;
  background: radial-gradient(80% 70% at 50% 50%, rgba(14, 27, 43, .5), rgba(14, 27, 43, .82));
  transition: opacity .7s var(--tc-ease), visibility 0s .7s;
}
.tc-intro.is-leaving { opacity: 0; visibility: hidden; }
.tc-intro-card {
  width: min(560px, 100%); text-align: center; color: #FFFFFF;
  padding: clamp(28px, 5vw, 44px) clamp(22px, 5vw, 48px);
  border-radius: 20px; border: 1px solid rgba(201, 162, 39, .35);
  background: rgba(11, 20, 33, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  transition: transform .7s var(--tc-ease);
}
.tc-intro.is-leaving .tc-intro-card { transform: scale(.96) translateY(-10px); }
.tc-intro .eyebrow { color: var(--gold); }
.tc-intro h2 { margin-top: 10px; font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: -.01em; }
.tc-intro h2 span { color: var(--gold); font-style: italic; }
.tc-intro-lead { margin: 14px auto 0; max-width: 30rem; color: rgba(255, 255, 255, .84); }
.tc-load { position: relative; margin: 26px auto 0; width: min(280px, 80%); height: 2px; background: rgba(255, 255, 255, .18); border-radius: 2px; overflow: hidden; }
.tc-load span { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.tc-load-text { margin-top: 10px; font-size: .78rem; letter-spacing: .08em; color: rgba(255, 255, 255, .72); min-height: 1.2em; }
.is-loaded .tc-load, .is-loaded .tc-load-text { opacity: .0; transition: opacity .6s .6s; }
.tc-enter { margin-top: 10px; min-height: 52px; padding: 0 30px; font-size: 1rem; }
.tc-enter:disabled { opacity: .45; cursor: progress; transform: none; }
.tc-hints { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .78rem; color: rgba(255, 255, 255, .72); }
.tc-hints kbd { display: inline-block; min-width: 22px; margin-right: 3px; padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .3); font: 600 .72rem/1.3 var(--font-body); color: #FFFFFF; }
.tc-simple { margin-top: 16px; padding: 8px; border: 0; background: none; color: rgba(255, 255, 255, .78); font: 500 .82rem/1.3 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tc-simple:hover { color: var(--gold); }
.tc-simple-2 { margin: 0 0 0 4px; padding: 0; color: inherit; font-size: inherit; font-weight: 600; }
.tc-simple-2:hover { color: var(--gold-text); }
@media (pointer: coarse) { .tc-hints span:not(:last-child) { display: none; } }

/* ---------- reduced motion inside the 3D tour (opened on purpose) ---------- */
.is-reduced .tc-card.is-in > *, .is-reduced .tc-reveal-frame img { animation: none !important; }

/* =========================================================
   Phones
   ========================================================= */
@media (max-width: 720px) {
  .tc-honest { top: 10px; left: 12px; right: auto; max-width: calc(100% - 24px); font-size: .68rem; padding: 5px 10px; }
  .tc-card {
    left: 10px; right: 10px; top: auto; width: auto;
    bottom: calc(126px + var(--tc-safe-b));
    padding: 14px 16px 14px; border-radius: 14px;
  }
  .tc-card::before { left: 16px; right: 16px; }
  .tc-min {
    display: grid; place-items: center; position: absolute; top: 4px; right: 4px;
    width: 44px; height: 44px; border: 0; background: none; color: var(--tc-muted); cursor: pointer; border-radius: 50%;
  }
  .tc-min svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .3s; }
  .tc-card.is-min .tc-min svg { transform: rotate(180deg); }
  .tc-card.is-min .tc-line, .tc-card.is-min .tc-actions { display: none; }
  .tc-kicker { padding-right: 40px; font-size: .66rem; }
  .tc-title { font-size: 1.22rem; margin-top: 5px; padding-right: 30px; }
  .tc-line { margin-top: 6px; font-size: .86rem; line-height: 1.45; }
  .tc-actions { margin-top: 10px; }
  .tc-reveal-btn { min-height: 40px; font-size: .84rem; }
  .tc-cta .btn { flex: 1 1 auto; font-size: .82rem; padding: 0 12px; }

  .tc-controls { width: calc(100% - 20px); gap: 8px; bottom: calc(10px + var(--tc-safe-b)); }
  .tc-rail-wrap { padding: 2px 4px; }
  .tc-rail-line { display: none; }
  .tc-rail { overflow-x: auto; justify-content: flex-start; gap: 2px; scrollbar-width: none; scroll-snap-type: x proximity; padding: 0 2px; }
  .tc-rail::-webkit-scrollbar { display: none; }
  .tc-rail li { scroll-snap-align: center; }
  .tc-stop { width: 40px; height: 40px; }
  .tc-stop-name { display: none; }
  .tc-bar { gap: 4px; padding: 4px; }
  .tc-btn { min-width: 44px; }
  .tc-mode span { font-size: .82rem; }

  .tc-reveal { padding: 12px; }
  .tc-reveal figcaption { flex-direction: column; align-items: stretch; gap: 10px; font-size: .84rem; }
  .tc-pin-label { font-size: .74rem; padding: 5px 9px; }
  .tc-explore-hint { top: 40px; font-size: .76rem; }
  .tc-pad { right: 10px; bottom: calc(74px + var(--tc-safe-b)); grid-template-columns: repeat(3, 46px); gap: 5px; padding: 6px; }
  .tc-pad button { width: 46px; height: 46px; }
  .is-explore .tc-controls { left: 10px; transform: none; width: auto; align-items: flex-start; }
}
@media (max-width: 720px) and (max-height: 640px) {
  .tc-line { display: none; }
}

/* =========================================================
   Simple guide (fallback)
   ========================================================= */
.tf { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.tf-head { text-align: center; }
.tf-title { margin-top: 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.tf-note { margin: 12px auto 0; max-width: 44rem; color: var(--muted); }
.tf-honest { display: block; margin-top: 4px; font-size: .88rem; }
.tf-try { margin-top: 16px; }
.tf-body { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
.tf-plan { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--img-bg); border: 1px solid var(--line); }
.tf-plan img { width: 100%; height: auto; }
.tf-hots { position: absolute; inset: 0; }
.tf-hot {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #FFFFFF; border: 2px solid var(--gold);
  font: 700 .8rem/1 var(--font-body); cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 27, 43, .35);
  transition: transform .2s, background-color .2s, color .2s;
}
.tf-hot:hover { transform: translate(-50%, -50%) scale(1.1); }
.tf-hot.is-on { background: var(--gold); color: var(--navy); transform: translate(-50%, -50%) scale(1.15); }
.tf-panel { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(14, 27, 43, .08); --tc-muted: var(--muted); --tc-ink: var(--ink); --tc-line: var(--line); }
.tf-figure { margin: 16px 0 0; }
.tf-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.tf-figure figcaption { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.tf-nav { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tf-nav .tc-btn { border-color: var(--line); }
.tf-count { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
.tf-cta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.tf-cta[hidden] { display: none; }
@media (max-width: 860px) {
  .tf-body { grid-template-columns: 1fr; }
  .tf-hot { width: 30px; height: 30px; font-size: .74rem; }
}
@media (max-width: 480px) {
  .tf-hot { width: 26px; height: 26px; font-size: .68rem; border-width: 1.5px; }
}
