:root { color-scheme: dark; background: #080502; color: #e8d4b5; font-family: 'Avenir Next', 'Segoe UI', sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.space-preview { position: relative; height: 100vh; height: 100svh; min-height: 320px; overflow: hidden; isolation: isolate; background: #030405; }
.space-still, .space-view, .space-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.space-still { background: url('./assets/ark/ark-07-render.png?v=engines-3') center / 90% auto no-repeat, url('./assets/tlo.png') center / cover no-repeat; }
.space-view { opacity: 0; transition: opacity 1.4s ease; cursor: grab; touch-action: none; outline-offset: -4px; }
.space-ready .space-view { opacity: 1; }
.space-view:active { cursor: grabbing; }
.space-shade { pointer-events: none; background: linear-gradient(#03040599, transparent 18%, transparent 76%, #030405bb), radial-gradient(ellipse, transparent 45%, #02030544); }
header { position: absolute; top: max(30px, env(safe-area-inset-top)); left: 38px; right: 38px; display: flex; justify-content: space-between; align-items: center; gap: 18px; pointer-events: none; font-size: 14px; letter-spacing: .2em; }
.word-light { color: #987d58; margin-left: 8px; }
header nav { display: flex; gap: 12px; }
a { pointer-events: auto; text-decoration: none; color: #c2ac8a; font-size: 12px; letter-spacing: .13em; padding: 14px 0 14px 14px; }
a:hover { color: #fff0d2; }
.space-caption { position: absolute; bottom: 34px; left: 38px; pointer-events: none; }
.space-caption > span { font-size: 12px; letter-spacing: .32em; color: #edce98; }
.space-help { margin: 10px 0 0; color: #a59884; font-size: 13px; line-height: 1.6; }
.space-actions { position: absolute; right: 38px; bottom: 30px; display: flex; align-items: center; gap: 12px; }
button { appearance: none; color: #d9c4a1; font: inherit; font-size: 12px; letter-spacing: .13em; min-height: 46px; padding: 12px 18px; border: 1px solid #ac85523d; border-radius: 3px; background: #0b0a088c; cursor: pointer; touch-action: none; }
button:hover, button[aria-pressed="true"] { color: #ffe3b4; border-color: #d8ab6977; background: #2920169c; }
.space-move { display: flex; gap: 6px; }
.space-move button { width: 46px; padding: 0; font-size: 24px; letter-spacing: 0; }
button:focus-visible, a:focus-visible, .space-view:focus-visible { outline: 1px solid #e9c084; }
.space-status { position: absolute; top: 82px; left: 38px; right: 38px; color: #c6af8c; font-size: 14px; }
.space-status:empty { display: none; }
@media (max-width: 700px) {
  header { top: max(16px, env(safe-area-inset-top)); left: 20px; right: 20px; font-size: 12px; letter-spacing: .12em; }
  .word-light { display: block; margin: 5px 0 0; }
  a { font-size: 11px; }
  .space-caption { left: 20px; bottom: 92px; }
  .space-help { max-width: 280px; font-size: 12px; }
  .space-actions { bottom: max(20px, env(safe-area-inset-bottom)); left: 20px; right: 20px; justify-content: space-between; gap: 8px; }
  button { padding: 12px 10px; font-size: 12px; letter-spacing: .06em; }
  .space-status { left: 20px; right: 20px; }
}
@media (max-width: 359px) {
  .space-actions { gap: 5px; }
  button { padding: 12px 7px; font-size: 11px; letter-spacing: .03em; }
  .space-move { gap: 3px; }
  .space-move button { width: 42px; }
}
@media (prefers-reduced-motion: reduce) { .space-view { transition: none; } }
