.lt-scene {
  --lt-panel: #242321;
  --lt-cream: #f3e1c5;
  --lt-gold: #ebc17c;
  --lt-muted: #c1ae94;
  color: var(--lt-cream);
  font: 13px/1.55 system-ui, sans-serif;
}

.lt-scene *, .lt-scene *::before, .lt-scene *::after { box-sizing: border-box; }
.lt-scene-layout { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 11px; }
.lt-viewport {
  isolation: isolate;
  position: relative;
  min-width: 0;
  min-height: clamp(350px, 54vh, 585px);
  overflow: hidden;
  border-radius: 12px;
  outline: none;
  background: linear-gradient(180deg, #6f8795 0%, #aeb7b5 33%, #e4c8a6 56%, #c8aa87 100%);
  cursor: grab;
  touch-action: none;
}
.lt-viewport:active { cursor: grabbing; }
.lt-viewport:focus-visible { outline: 2px solid var(--lt-gold); outline-offset: 2px; }
.lt-landscape {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 20%;
  pointer-events: none;
}
.lt-scene-canvas, .lt-vignette { position: absolute; width: 100%; height: 100%; inset: 0; }
.lt-vignette {
  background: linear-gradient(0deg, #221910e8, #22191000 50%), linear-gradient(180deg, #211c1d65, #211c1d00 24%);
  pointer-events: none;
}
.lt-view-top, .lt-view-bottom { position: absolute; display: flex; gap: 12px; inset-inline: 17px; justify-content: space-between; pointer-events: none; }
.lt-view-top { top: 15px; align-items: start; }
.lt-view-bottom { bottom: 16px; align-items: end; }
.lt-view-label, .lt-compass {
  padding: 5px 9px;
  border: 1px solid #eec58652;
  border-radius: 6px;
  color: #f9e5c6;
  background: #282323ad;
  font-size: 11px;
  letter-spacing: .055em;
}
.lt-view-label { display: flex; align-items: center; gap: 7px; }
.lt-view-label i { width: 6px; height: 6px; border-radius: 50%; background: #e7b571; box-shadow: 0 0 12px #e7b571a8; }
.lt-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border: 1px solid #fff6d4bb;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 3px #342b26;
}
.lt-view-caption { display: grid; align-content: end; justify-items: start; gap: 4px; min-width: 0; }
.lt-view-index { color: #f0cb91; font-size: 10px; letter-spacing: .14em; }
.lt-view-name { color: #fff1db; font: 600 clamp(19px, 3.5vw, 28px)/1.24 "Songti SC", "Noto Serif SC", serif; letter-spacing: .1em; }
.lt-view-description { color: #f1dec1; font-size: 11px; }
.lt-scene .lt-scene-action {
  pointer-events: auto;
  border: 1px solid #d8a36d;
  border-radius: 5px;
  background: #eac088;
  color: #3f291d;
  cursor: pointer;
  margin-top: 3px;
  padding: 6px 11px;
  font: 600 11px system-ui, sans-serif;
}
.lt-scene .lt-scene-action[hidden] { display: none; }
.lt-scene .lt-scene-action:hover { background: #f9d49f; }
.lt-direction-pad {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-template-rows: repeat(2, 29px);
  gap: 3px;
}
.lt-scene .lt-direction-pad button {
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  display: grid;
  place-items: center;
  border: 1px solid #f1c88e74;
  border-radius: 6px;
  padding: 0;
  background: #27231fbf;
  color: #fae4bd;
  font: 500 15px/1 system-ui, sans-serif;
}
.lt-scene .lt-direction-pad button:first-child { grid-column: 2; }
.lt-scene .lt-direction-pad button:nth-child(2) { grid-row: 2; grid-column: 1; }
.lt-scene .lt-direction-pad button:nth-child(3) { grid-row: 2; grid-column: 2; }
.lt-scene .lt-direction-pad button:nth-child(4) { grid-row: 2; grid-column: 3; }
.lt-scene .lt-direction-pad button:hover, .lt-scene .lt-direction-pad button:active { background: #805a38; }
.lt-route-panel {
  padding: 11px;
  border: 1px solid #a47a454a;
  border-radius: 12px;
  min-width: 0;
  background: var(--lt-panel);
}
.lt-route-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 8px; font-size: 12px; letter-spacing: .08em; }
.lt-route-count { color: var(--lt-gold); font-size: 10px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lt-minimap { width: 100%; display: block; margin-bottom: 9px; border: 1px solid #af8c5b3b; border-radius: 8px; }
.lt-map-path, .lt-map-guide { stroke: #c7a677; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lt-map-path { stroke-width: 1; stroke-opacity: .45; stroke-dasharray: 2 4; }
.lt-map-guide { stroke-width: 1.3; stroke-opacity: .64; }
.lt-map-kora { fill: none; stroke: #b7935e; stroke-width: 1; stroke-dasharray: 2 2; stroke-opacity: .62; }
.lt-map-kora.is-active { stroke: #f5d398; stroke-width: 1.45; stroke-opacity: .97; }
.lt-map-stop { fill: #6e5441; stroke: #d7b382; stroke-width: 1; }
.lt-map-stop.is-active { fill: #bb844c; stroke: #ffd69b; }
.lt-route-buttons { display: grid; gap: 4px; }
.lt-scene .lt-stop {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  text-align: left;
  gap: 5px;
  padding: 7px 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--lt-muted);
  font: 500 11px/1.25 system-ui, sans-serif;
  cursor: pointer;
}
.lt-scene .lt-stop:hover, .lt-scene .lt-stop.is-active { color: var(--lt-cream); border-color: #b0825260; background: #4a382b; }
.lt-stop-number { font: 600 9px/1 system-ui, sans-serif; color: #cfab7b; font-variant-numeric: tabular-nums; }
.lt-stop.is-visited .lt-stop-number { color: var(--lt-gold); }
.lt-scene-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--lt-muted); margin: 8px 1px 0; font-size: 11px; }
.lt-scene-error { position: absolute; inset: 20% 10% auto; padding: 10px; background: #362a23; border-radius: 5px; }
.lt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 640px) {
  .lt-scene-layout { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .lt-viewport { min-height: 0; height: clamp(285px, 51vh, 450px); }
  .lt-route-panel { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 9px; padding: 8px; }
  .lt-route-title { grid-column: 2; margin-bottom: 0; }
  .lt-minimap { grid-column: 1; grid-row: 1 / 3; margin-bottom: 0; }
  .lt-route-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lt-scene .lt-stop { padding: 6px 4px; grid-template-columns: 13px 1fr; gap: 3px; }
  .lt-stop > :last-child { display: none; }
  .lt-view-top, .lt-view-bottom { inset-inline: 11px; }
  .lt-view-top { top: 11px; }
  .lt-view-bottom { bottom: 11px; }
  .lt-direction-pad { grid-template-columns: repeat(3, 32px); grid-template-rows: repeat(2, 32px); }
}

.lt-view-tools { display:flex; gap:6px; padding-right:42px; }
.lt-edit-avatar { pointer-events:auto; color:#fff1dc; background:#29221cdd; border:1px solid #eec58674; border-radius:6px; padding:5px 9px; font-size:11px; line-height:1.45; }
.lt-edit-avatar:hover { background:#5b3b26; }
.lt-view-caption { display:flex; flex-wrap:wrap; gap:4px 7px; align-items:center; }
.lt-view-index,.lt-view-name,.lt-view-description { flex-basis:100%; }
.lt-scene .lt-kora-free { color:#fce8c9; background:#30271fdb; }
.lt-scene .lt-kora-free:hover { background:#59402d; }
.lt-target { position:absolute; pointer-events:none; width:25px; height:25px; transform:translate(-50%,-50%) scaleY(.5); border:2px solid #f8d588; border-radius:50%; box-shadow:0 0 12px #e7b571; }
@media(max-width:640px) {
  .lt-view-tools { padding-right:34px; }
  .lt-compass { display:none; }
  .lt-view-description { max-width:100%; }
  .lt-view-top { align-items:start; }
}

.lt-scene .lt-inspect-statue { background:#38291fe6; color:#f8e3bb; border-color:#d6a877a1; }
.lt-scene .lt-inspect-statue:hover { background:#593c27; }
.lt-inspecting .lt-direction-pad { visibility:hidden; }
.lt-inspecting .lt-vignette { background:linear-gradient(0deg,#231810e8,transparent 32%),linear-gradient(180deg,#1a131164,transparent 18%); }

.lt-audio { position:absolute; z-index:3; inset-inline-start:15px; top:51px; max-width:calc(100% - 30px); color:#ffebcb; }
.lt-audio summary {
  width:max-content; max-width:100%; cursor:pointer; user-select:none;
  background:#282323e6; border:1px solid #eec58652; border-radius:6px;
  padding:4px 8px; font-size:11px;
}
.lt-audio-playing summary { border-color:#ebc17c; color:#ffdc95; }
.lt-audio-panel {
  background:#26201cf5; border:1px solid #a78252; border-radius:8px; margin-top:5px;
  width:min(286px, 100%); padding:10px; box-shadow:0 7px 24px #100d0aaa; font-size:12px;
}
.lt-audio-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:8px; }
.lt-audio-heading button { background:#e9bd77; color:#372416; border:none; border-radius:4px; padding:4px 7px; font-weight:650; }
.lt-audio-volume { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.lt-audio-volume input { flex:1; min-width:0; accent-color:#e9bd77; }
.lt-audio-tracks { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin:6px 0 9px; }
.lt-audio-tracks label { display:flex; gap:4px; align-items:start; cursor:pointer; }
.lt-audio-tracks input { margin:3px 0 0; accent-color:#e9bd77; }
.lt-audio-panel a { color:#eac386; text-decoration:underline; }
.lt-audio-panel p { margin:5px 0 0; color:#ffe1a3; }
.lt-scene .lt-direction-pad button[data-lt-turn=left] {grid-column:1;grid-row:1}
.lt-scene .lt-direction-pad button[data-lt-move=forward] {grid-column:2;grid-row:1}
.lt-scene .lt-direction-pad button[data-lt-turn=right] {grid-column:3;grid-row:1}
.lt-scene .lt-direction-pad button[data-lt-move=left] {grid-column:1;grid-row:2}
.lt-scene .lt-direction-pad button[data-lt-move=back] {grid-column:2;grid-row:2}
.lt-scene .lt-direction-pad button[data-lt-move=right] {grid-column:3;grid-row:2}
.lt-scene button:focus-visible {outline:2px solid #f8d49b;outline-offset:3px}
