[hidden] { display: none !important; }

#cover, #cover img { position: fixed; inset: 0; width: 100%; height: 100%; }
#cover img { object-fit: cover; object-position: 70% center; }
#world { opacity: 0; transition: opacity 350ms ease; }
#world.ready { opacity: 1; }
#intro { z-index: 2; }
#intro.gone { visibility: hidden; }
#intro .atlas-link { order: 3; margin-top: 8px; color: #c8d2e2; font-size: 13px; }
#intro .atlas-link:hover, #travel-loading a:hover { color: white; }
#intro #chapter-select { color: #d4dfed; font-size: 13px; }
#intro #load-status:empty { display: none; }
.intro-controls .touch-hint { display: none; }
#no-script { position: fixed; z-index: 5; bottom: 0; padding: 12px; background: #0a1523; }
#travel-loading {
  position: fixed;
  z-index: 16;
  right: max(5vw, 20px);
  bottom: 130px;
  width: min(320px, calc(100vw - 40px));
  padding: 18px 20px;
  border: 1px solid #a8b8cf55;
  background: #080f19ed;
  box-shadow: 0 18px 56px #0008;
}
#travel-loading > div { display: flex; align-items: center; gap: 12px; }
#travel-loading strong { font-size: 17px; font-weight: 400; color: #f2f5fc; }
#travel-loading p { margin: 6px 0 11px; color: #aebcd2; font-size: 13px; }
#travel-loading a, #travel-loading button { color: #ccd9eb; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
#travel-loading button { padding: 0; margin-right: 14px; }
.loading-mark { width: 14px; height: 14px; border: 1px solid #7188a8; border-top-color: #f2f7ff; border-radius: 50%; }
[aria-busy="true"] .loading-mark { animation: load-turn 1.2s linear infinite; }
#touch-controls { display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; touch-action: none; }
#touch-controls button { width: 44px; height: 44px; touch-action: none; font: 16px var(--data-font); }
#touch-controls:not(.is-free) .free-only { display: none; }
@keyframes load-turn { to { rotate: 360deg; } }

@media (max-width: 760px) {
  #cover img { object-position: 68% center; }
  #intro { background: linear-gradient(90deg,#050911e6,#0509119e 68%,#05091177); }
  #intro .intro-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  #intro #chapter-select { min-height: 43px; }
  #travel-loading { bottom: max(28px, env(safe-area-inset-bottom)); }
  .in-flight #travel-loading { bottom: 122px; }
  #touch-controls { bottom: 306px; }
}
@media (pointer: coarse) {
  .intro-controls .desktop-hint { display: none; }
  .intro-controls .touch-hint { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  #world { transition: none; }
  [aria-busy="true"] .loading-mark { animation: none; }
}
