* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; background: #0b1f32; overflow: hidden; color: #ecf6ff; font-family: system-ui, "Noto Sans TC", sans-serif; }
#page-heading { position: absolute; top: 12px; left: max(24px,calc((100vw - 1280px)/2)); right: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; z-index: 1; pointer-events: none; }
.page-title { font-weight: 800; letter-spacing: .02em; font-size: clamp(15px,1.8vw,25px); white-space: nowrap; }
.title-en { font-size: .54em; color: #9db8cc; letter-spacing: .14em; padding-left: 8px; }
.route-mark { background: #dc2834; color: #fff; border-radius: 7px; padding: 3px 9px; margin-right: 8px; }
.route-label { color: #b4cadb; font-size: 14px; white-space: nowrap; }
.route-label span { color: #ed555d; padding: 0 3px; }
#unity-container.unity-desktop { width: min(calc(100vw - 48px), calc((100vh - 112px)*16/9)); max-width: 1380px; top: calc(50% + 16px); box-shadow: 0 18px 50px rgba(0,0,0,.5); border: 1px solid #38516a; border-radius: 11px; overflow: hidden; background: #1e3348; }
#unity-fullscreen-container { width: 100% !important; height: auto !important; aspect-ratio: 16/9; }
#unity-canvas { display: block; }
#unity-loading-container { background: rgba(6,20,32,.9); z-index: 5; }
#unity-loading-bar { width: 190px; text-align: center; }
#unity-logo { width: 190px; height: auto; background: none; font-weight: bold; font-size: 25px; letter-spacing: .12em; color: white; }
.loading-caption { color: #c5d7e7; font-size: 14px; margin-top: 13px; }
#unity-progress-bar-empty { margin: 14px auto 0; background: #31506e; width: 170px; height: 10px; overflow: hidden; border-radius: 8px; }
#unity-progress-bar-full { background: #ed3d49; height: 10px; border-radius: 8px; }
#unity-footer { height: 44px; background: #112b43; padding: 0 14px; }
#unity-logo-title-footer { width: auto; background: none; font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 44px; color: #a4bfd4; }
#unity-build-title { float: left; color: #d6e7f5; font-size: 14px; line-height: 44px; margin: 0 0 0 24px; }
#unity-fullscreen-button { margin: 3px 4px 0; width: 38px; height: 38px; border-radius: 6px; background-color: #284563; }
#unity-warning { z-index: 30; color: #141414; }
#rotate-notice { display: none; }
@media (max-width: 900px) {
  #page-heading, #unity-footer { display: none !important; }
  #unity-container.unity-mobile { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; transform: none; }
  .unity-mobile #unity-fullscreen-container { width: 100% !important; height: 100% !important; aspect-ratio: auto; }
  #unity-canvas { touch-action: none; }
}
@media (max-width: 900px) and (orientation: portrait) {
  #rotate-notice { display: grid; place-items: center; position: fixed; inset: 0; padding: 40px; font-size: 22px; font-weight: 700; text-align: center; background: #0b1f32; color: white; z-index: 50; }
}
