@font-face {
  font-family: 'Board Korean';
  src: url('./bus-demo/assets/board-korean.otf') format('opentype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.service-scene { color: var(--text); background: white; border-radius: 20px; overflow: hidden; border: 1px solid #a9c4df; }
.scene-stage { position: relative; background: #eceee7; }
#city-scene { position: relative; width: 100%; height: clamp(480px, 51vw, 690px); overflow: hidden; }
.scene-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 47%; }
.scene-ready .scene-poster { display: none; }
.city-webgl-canvas { position: relative; z-index: 1; visibility: hidden; }
.scene-ready .city-webgl-canvas { visibility: visible; }
.scene-unavailable .city-webgl-canvas { display: none; }
.scene-loading { position: absolute; z-index: 2; inset: 45% auto auto 50%; transform: translateX(-50%); color: var(--brand); padding: 10px 18px; border: 1px solid #d6e2ef; border-radius: 99px; background: white; font-size: 13px; white-space: nowrap; }
.scene-brand { position: absolute; z-index: 3; top: 26px; left: 30px; display: flex; flex-direction: column; gap: 3px; pointer-events: none; }
.scene-brand strong { color: #334957; font-size: 16px; font-weight: 800; letter-spacing: -.03em; }
.scene-brand span { color: #4d635f; font-size: 11px; }
.scene-board-open { position: absolute; z-index: 3; top: 26px; right: 30px; display: flex; align-items: center; gap: 24px; min-height: 46px; padding: 10px 18px; background: white; color: var(--brand); border: 1px solid #d1dce5; border-radius: 10px; font-size: 13px; font-weight: 600; }
.scene-board-open:hover { background: #eaf4ff; }
.scene-tracking { position: absolute; z-index: 3; bottom: 24px; left: 30px; display: flex; align-items: baseline; gap: 14px; min-width: 140px; padding: 9px 20px; border-radius: 10px; background: rgba(255,255,255,.96); border: 1px solid #d1dce5; pointer-events: none; }
.scene-tracking span { color: var(--muted); font-size: 11px; }
.scene-tracking strong { color: var(--brand); font-size: 24px; line-height: 1.6; }
.scene-toolbar { display: flex; gap: 20px; align-items: center; padding: 20px 28px 14px; }
.scene-toolbar button,.scene-toolbar select { min-height: 44px; border: 1px solid #c8d7e5; border-radius: 8px; background: white; color: #425568; font-size: 13px; }
.scene-view-switch { display: flex; gap: 5px; padding: 4px; border-radius: 11px; background: #eef4fa; }
.scene-view-switch button { padding: 7px 18px; background: transparent; border-color: transparent; min-height: 40px; }
.scene-view-switch button[aria-pressed='true'] { background: white; color: var(--brand); box-shadow: 0 2px 6px rgba(10,77,155,.08); }
.scene-route-picker select { min-width: 112px; padding: 8px 30px 8px 14px; }
.scene-actions { display: flex; gap: 9px; margin-left: auto; }
.scene-actions button { display: grid; place-items: center; min-width: 44px; padding: 8px; }
.scene-toolbar button:hover,.scene-toolbar select:hover { border-color: var(--brand); }
.scene-actions button[aria-pressed='true'] { color: var(--brand); background: #eaf4ff; }
.scene-toolbar button:disabled,.scene-toolbar select:disabled,.scene-board-open:disabled { opacity: .55; cursor: default; }
.scene-caption { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 0 30px 22px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.scene-caption .scene-help-mobile { display: none; }
.service-scene[data-scene-state='fallback'] .scene-view-switch,
.service-scene[data-scene-state='fallback'] .scene-actions,
.service-scene[data-scene-state='fallback'] .scene-caption .scene-help-desktop,
.service-scene[data-scene-state='fallback'] .scene-caption .scene-help-mobile { display: none; }
.service-scene[data-scene-state='fallback'] .scene-route-picker { margin-left: 0; }
.scene-nojs { padding: 0 30px 22px; color: var(--muted); font-size: 12px; }
.scene-unavailable::after { content: '3D 대신 전광판 보기로 체험하세요'; position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); max-width: calc(100% - 32px); width: max-content; padding: 12px 18px; border-radius: 10px; background: white; color: #344f69; font-size: 13px; }
.lesson-flow { list-style: none; display: grid; gap: 16px; padding: 0; margin: 32px 0; }
.lesson-flow li { display: flex; align-items: baseline; gap: 15px; color: #42566a; font-size: 14px; line-height: 1.7; }
.lesson-flow li > span { color: #6b8197; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .04em; flex: 0 0 18px; }
.lesson-result { padding-top: 20px; }
.curriculum-heading h2 { font-size: clamp(36px,4vw,58px); }
.curriculum-heading > p { font-variant-numeric: tabular-nums; }
.bus-board-dialog { width: min(1150px,calc(100% - 48px)); max-width: none; max-height: 90dvh; padding: 28px; background: #f5f9fc; border: 1px solid #bdcddd; border-radius: 16px; color: var(--text); }
.bus-board-dialog::backdrop { background: rgba(13,26,44,.76); backdrop-filter: blur(8px); }
.bus-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.bus-dialog-header > div > span { font-size: 10px; letter-spacing: .12em; color: var(--brand); font-weight: 700; }
.bus-dialog-header h2 { font-size: 23px; font-weight: 700; letter-spacing: -.03em; margin-top: 3px; }
.bus-dialog-header button { min-height: 44px; background: white; border: 1px solid #bccedf; border-radius: 8px; padding: 8px 16px; font-size: 13px; color: var(--brand); white-space: nowrap; }
.bus-dialog-header button > span { margin-left: 12px; }
.bus-dialog-stage { background: #e9edea; border-radius: 8px; padding: 18px; }
#board-canvas { display: block; width: 100%; height: auto; }
.bus-dialog-note { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; font-size: 13px; margin-top: 22px; font-weight: 600; }
.bus-dialog-note span { font-size: 11px; font-weight: 400; color: var(--muted); }
@media (max-width: 980px) {
  #city-scene { height: 520px; }
  .lesson-flow { gap: 15px; }
  .lesson-flow li { gap: 10px; font-size: 13px; }
}
@media (max-width: 760px) {
  .service-scene { border-radius: 12px; }
  #city-scene { height: 450px; }
  .scene-brand { top: 18px; left: 18px; }
  .scene-brand strong { font-size: 13px; }
  .scene-brand span { font-size: 10px; }
  .scene-board-open { top: 18px; right: 18px; min-height: 44px; padding: 9px 12px; gap: 10px; font-size: 12px; }
  .scene-tracking { bottom: 18px; left: 18px; padding: 6px 14px; min-width: 112px; }
  .scene-tracking strong { font-size: 22px; }
  .scene-toolbar { flex-wrap: wrap; gap: 10px; padding: 16px 16px 12px; }
  .scene-view-switch button { padding-inline: 12px; font-size: 12px; }
  .scene-route-picker select { min-width: 94px; font-size: 12px; padding-left: 10px; }
  .scene-actions { gap: 6px; }
  .scene-caption { display: block; padding: 0 18px 18px; font-size: 10px; }
  .scene-caption span { display: block; }
  .scene-caption .scene-help-desktop { display: none; }
  .scene-caption .scene-help-mobile { display: block; }
  .scene-caption span + span { margin-top: 4px; }
  .lesson-flow { gap: 16px; margin: 28px 0; }
  .lesson-flow li { font-size: 15px; }
  .bus-board-dialog { width: calc(100% - 24px); padding: 18px 14px; border-radius: 12px; }
  .bus-dialog-header { margin-bottom: 18px; gap: 12px; }
  .bus-dialog-header h2 { font-size: 19px; }
  .bus-dialog-stage { padding: 8px; }
  .bus-dialog-note { font-size: 12px; margin-top: 18px; }
  .bus-dialog-note span { font-size: 10px; }
}
@media (max-width: 430px) {
  .scene-route-picker { margin-left: auto; }
  .scene-actions { width: 100%; justify-content: flex-end; }
  #city-scene { height: 400px; }
}
