/* topographic-relief — scoped extras */
#stage .tr-pane { position: absolute; overflow: hidden; }
#stage[data-view="3d"] .tr-3d, #stage[data-view="map"] .tr-2d { inset: 0; }
#stage[data-view="3d"] .tr-2d, #stage[data-view="map"] .tr-3d { display: none; }
#stage[data-view="split"][data-orient="row"] .tr-3d { top: 0; bottom: 0; left: 0; width: 50%; }
#stage[data-view="split"][data-orient="row"] .tr-2d { top: 0; bottom: 0; right: 0; width: 50%; }
#stage[data-view="split"][data-orient="col"] .tr-3d { left: 0; right: 0; top: 0; height: 52%; }
#stage[data-view="split"][data-orient="col"] .tr-2d { left: 0; right: 0; bottom: 0; height: 48%; }
#stage .tr-2d { background: #e9edf3; }
#stage .tr-2d > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#stage .label-3d.tr-relief { font-size: 12px; background: rgba(20, 26, 46, .72); border: 1px solid rgba(255,255,255,.35); }
#stage .label-3d.tr-river, #stage .label-3d.tr-sea { background: rgba(30, 90, 170, .85); }
#stage .label-3d.tr-handle { background: #2f86d6; font-size: 12.5px; }
#stage .label-3d.tr-tick { background: transparent; color: #cfd6e6; font-size: 10.5px; padding: 0; transform-origin: 0 50%; }
#stage .label-3d.tr-ab { background: #e11d48; padding: 1px 7px; border-radius: 999px; }
#stage .label-3d.tr-pin { background: rgba(124, 74, 0, .9); }
#stage .label-3d.tr-quiz { font-size: 13px; padding: 2px 9px; border-radius: 999px; }
#stage .label-3d.tr-qA { background: #7c3aed; }
#stage .label-3d.tr-qB { background: #0891b2; }
#stage .label-3d.tr-qform { background: #ff3d7f; }
#panel .tr-legend-title { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
#panel .tr-legend-bar { display: flex; height: 12px; border-radius: 4px; overflow: hidden; direction: ltr; }
#panel .tr-legend-bar i { flex: 1; }
#panel .tr-legend-lbls { display: flex; direction: ltr; font-size: 10px; color: var(--muted); font-family: var(--mono); }
#panel .tr-legend-lbls span { flex: 1; transform: translateX(-50%); text-align: center; white-space: nowrap; }
#panel .tr-legend-lbls span:first-child { visibility: hidden; }
#panel .tr-chart { margin-top: 10px; }
#panel .tr-chart canvas { display: block; width: 100%; height: 170px; background: var(--surface-2); border-radius: 8px; }
#panel .tr-small { font-size: 12px; color: var(--muted); }
#panel .tr-quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#panel .tr-quiz-grid .btn { width: 100%; }
#panel .tr-quiz-grid .btn[disabled] { opacity: .8; cursor: default; }
#panel .tr-quiz-grid .btn.tr-wrong { border-color: var(--bad) !important; color: var(--bad); }
#panel [hidden] { display: none !important; }
