:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; color: #f0f1e9; background: #101310; --accent: #e7ed75; --muted: #a0a79c; }
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, #viewer:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { opacity: .35; cursor: default; }
[hidden] { display: none !important; }
#experience { height: 100svh; height: 100dvh; min-height: 420px; display: flex; flex-direction: column; overflow: hidden; background: #101310; }
.masthead { flex: 0 0 104px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ffffff12; z-index: 2; }
.identity { display: flex; align-items: center; gap: 26px; }
.wordmark { font-size: 28px; letter-spacing: -1px; font-weight: 700; line-height: 1.1; }
.title { border-left: 1px solid #ffffff26; padding-left: 26px; }
h1 { font-size: 15px; line-height: 1.4; font-weight: 500; margin: 0; }
.overview-heading, .footnote { font-size: 10px; letter-spacing: 1.6px; }
.workspace { flex: 1; position: relative; min-height: 0; overflow: hidden; }
#viewer { width: 100%; height: 100%; cursor: grab; touch-action: none; }
#viewer:active { cursor: grabbing; }
.loading, .error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #101310; z-index: 5; transition: opacity .3s; }
.loading p, .error p { font-size: 14px; margin: 0; }
.loading-line { width: 70px; height: 2px; background: #e7ed7530; position: relative; overflow: hidden; }
.loading-line::after { content: ''; width: 35px; height: 2px; position: absolute; background: var(--accent); animation: loading 1.2s ease-in-out infinite alternate; }
@keyframes loading { from { transform: translateX(-35px); } to { transform: translateX(70px); } }
.error span { color: var(--muted); font-size: 12px; }
.error button { background: var(--accent); color: #101310; padding: 12px 22px; border: 0; border-radius: 6px; }
.hint { position: absolute; bottom: 91px; left: 50%; transform: translateX(-50%); color: #e6e9df; font-size: 12px; white-space: nowrap; background: #101310d9; border-radius: 40px; padding: 9px 16px; pointer-events: none; transition: opacity .45s, translate .45s; }
.hint.is-hidden { opacity: 0; translate: 0 6px; }
.hint span span { padding: 0 8px; color: #8c9387; }
.touch-hint { display: none; }
.toolbar { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; display: flex; align-items: center; padding: 5px; background: #191e18f2; border: 1px solid #ffffff22; border-radius: 10px; box-shadow: 0 4px 30px #0003; }
.toolbar button { border: 0; background: transparent; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 6px; transition: background .15s, color .15s; }
.toolbar button:hover { background: #ffffff10; color: var(--accent); }
.toolbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.toolbar output { width: 45px; text-align: center; font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.toolbar .fit { width: auto; gap: 9px; padding: 0 16px; font-size: 12px; white-space: nowrap; }
.divider { height: 22px; width: 1px; background: #ffffff20; margin: 0 5px; }
.overview-panel { flex: 0 0 auto; padding: 19px 36px 16px; border-top: 1px solid #ffffff12; }
.overview-heading { max-width: 860px; margin: 0 auto 12px; display: flex; justify-content: space-between; color: #c4cabc; }
#overview-tip { color: var(--muted); letter-spacing: 0; font-size: 11px; text-transform: none; }
#overview-tip span { color: var(--accent); padding-left: 6px; }
#overview-slot { width: min(860px, 100%); aspect-ratio: 29480 / 4875; margin: 0 auto; }
#overview { width: 100%; height: 100%; display: block !important; background: #171c16; overflow: hidden; border: 1px solid #ffffff15; cursor: crosshair; }
#overview .displayregion { border: 1px solid var(--accent) !important; background: #e7ed7515; }
.footnote { display: flex; justify-content: space-between; margin-top: 16px; color: #9aa18f; font-size: 9px; letter-spacing: 1.2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-script { position: absolute; top: 40%; left: 15%; right: 15%; padding: 24px; background: #252d20; text-align: center; z-index: 20; }
#experience.is-ready .toolbar { animation: enter .4s ease-out both; }
@keyframes enter { from { opacity: 0; margin-bottom: -6px; } to { opacity: 1; margin-bottom: 0; } }
#experience.immersive { position: fixed; inset: 0; z-index: 100; }
@media (hover: none) and (pointer: coarse) { .desktop-hint { display: none; } .touch-hint { display: inline; } }
@media (max-width: 640px) {
  .masthead { flex-basis: 82px; padding: 0 20px; }
  .wordmark { font-size: 23px; letter-spacing: -.7px; }
  .identity { flex-direction: column; align-items: flex-start; gap: 7px; }
  .title { border-left: 0; padding-left: 0; }
  h1 { font-size: 12px; color: var(--muted); }
  .overview-panel { padding: 15px 20px max(16px, env(safe-area-inset-bottom)); }
  .overview-heading { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 10px; }
  #overview-tip { font-size: 10px; }
  .toolbar { bottom: 19px; }
  .toolbar button { width: 44px; height: 44px; }
  .toolbar .fit { padding: 0 11px; font-size: 11px; gap: 7px; }
  .toolbar output { width: 33px; }
  .divider { margin: 0 3px; }
  .hint { bottom: 84px; font-size: 11px; }
  .footnote { font-size: 8px; letter-spacing: .8px; margin-top: 12px; }
}
@media (max-height: 520px) { .masthead { flex-basis: 64px; } .overview-panel { padding-top: 9px; padding-bottom: 9px; } #overview-slot { max-width: 410px; } .overview-heading, .footnote { display: none; } .toolbar { bottom: 12px; } .hint { bottom: 77px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
