/* Approved 16:9 Orbis landscape: one master image, crop-only responsive UI.
   Phone: crop sides; laptop/desktop: reveal surrounding scenery.
   The small central crest remains in view at every supported aspect ratio.
   3840x2160 AVIF first, 4K WebP fallback, legacy JPEG last. */
.game-splash picture,
.game-splash picture img {
  display: block;
  width: 100%;
  height: 100%;
}
.game-splash picture img {
  object-fit: cover;
  object-position: 50% 48%;
}
.startup-screen {
  background-color: #0b1b2e;
  background-image: url("../assets/ui/branding/orbis-startup-landscape-4k.webp");
  background-size: cover;
  background-position: 50% 48%;
  background-repeat: no-repeat;
}
@supports (background-image: image-set(url("../assets/ui/branding/orbis-startup-landscape.avif") type("image/avif"))) {
  .startup-screen {
    background-image: image-set(
      url("../assets/ui/branding/orbis-startup-landscape.avif") type("image/avif"),
      url("../assets/ui/branding/orbis-startup-landscape-4k.webp") type("image/webp"),
      url("../assets/ui/branding/orbis-splash.jpg") type("image/jpeg")
    );
  }
}
.startup-screen::after {
  /* Keep the valley visible; only shade the bottom for readable menu buttons. */
  background: linear-gradient(180deg,
    rgba(2, 13, 28, .04) 0%,
    rgba(2, 13, 28, .02) 35%,
    rgba(2, 13, 28, .10) 63%,
    rgba(2, 13, 28, .66) 100%);
}
@media (max-width: 767px) {
  .startup-screen { background-position: 50% 50%; }
  .game-splash picture img { object-position: 50% 50%; }
}

/* Owner 15.11.2026: loading screen — stage, real percent, game-styled bar, tip. */
.game-splash { position: fixed; }
.game-loading {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  padding: 12px 14px 10px;
  box-sizing: border-box;
  border: 1px solid rgba(214, 170, 92, .75);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20, 13, 8, .82), rgba(10, 7, 4, .9));
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 228, 170, .12);
  color: #f2dfb7;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 2px #000;
}
.game-loading-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 7px;
  font-size: 15px;
  font-weight: 700;
}
.game-loading-percent { color: #ffd76a; font-variant-numeric: tabular-nums; }
.game-loading-bar {
  height: 14px;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid #8a6a36;
  border-radius: 8px;
  background: #1b120b;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7);
  overflow: hidden;
}
.game-loading-fill {
  width: 0%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffe39a 0%, #e0a83f 55%, #a86a1c 100%);
  box-shadow: 0 0 8px rgba(255, 200, 90, .65);
  transition: width .2s ease-out;
}
.game-loading-tip {
  min-height: 1.3em;
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.3;
  color: #d9c69f;
  text-align: center;
  font-style: italic;
}

/* Main menu: big continue for the last hero + "What's new". */
.startup-button.startup-continue-hero {
  min-height: 54px;
  font-size: 17px;
  font-weight: 800;
}
.startup-whats-new {
  max-height: 52vh;
  overflow-y: auto;
  text-align: left;
  margin: 4px 0 8px;
}
.startup-whats-new h3 {
  margin: 8px 0 4px;
  font-size: 15px;
}
.startup-whats-new ul {
  margin: 0 0 6px;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.35;
}
.startup-whats-new li { margin: 2px 0; }

/* Owner 15.11.2026 (v2): compact menu — continue + small switch, small row. */
.startup-continue-row { display: flex; gap: 8px; }
.startup-continue-row .startup-continue-hero { flex: 1 1 auto; }
.startup-continue-row .startup-switch-hero {
  flex: 0 0 54px;
  width: 54px;
  padding: 0;
  font-size: 22px;
}
.startup-small-row {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 6px;
}
.startup-small-row .startup-button {
  min-height: 38px;
  padding: 6px 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  line-height: 1.1;
}
.startup-apk-link {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #ffe8a9;
  text-align: center;
  text-decoration: underline;
  text-shadow: 0 1px 3px #000, 0 0 6px #000;
}
.startup-apk-link[hidden] { display: none; }
/* "What's new" readable on any background: dark parchment-like panel. */
.startup-whats-new {
  padding: 10px 12px 6px;
  border: 1px solid rgba(224, 178, 77, .7);
  border-radius: 8px;
  background: rgba(8, 14, 26, .86);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 222, 135, .08);
  color: #f3e7cc;
  text-shadow: none;
}
.startup-whats-new h3 { color: #ffd76a; margin-top: 4px; }
.startup-whats-new ul { color: #f3e7cc; }
.startup-privacy p { margin: 0 0 9px; font-size: 14px; line-height: 1.35; }
.startup-privacy p:last-child { margin-bottom: 4px; }

/* One-time statistics notice over the main menu. */
.startup-stats-notice {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 8, 18, .62);
}
.startup-stats-notice-panel {
  width: min(420px, 100%);
  box-sizing: border-box;
  padding: 16px 16px 14px;
  border: 1px solid rgba(224, 178, 77, .8);
  border-radius: 10px;
  background: rgba(8, 14, 26, .96);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
  color: #f3e7cc;
  text-align: center;
}
.startup-stats-notice-panel h2 { margin: 0 0 8px; color: #ffd76a; font-size: 19px; }
.startup-stats-notice-panel p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.4; text-align: left; }

/* Owner 16.11.2026: tidy settings — one panel, sections, compact switches. */
.startup-settings-panel {
  padding: 4px 14px 10px;
  border: 1px solid rgba(224, 178, 77, .7);
  border-radius: 10px;
  background: rgba(8, 14, 26, .88);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .5);
  color: #f3e7cc;
  text-align: left;
}
.startup-settings-section {
  margin: 12px 0 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffd76a;
}
.startup-settings-panel .startup-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid rgba(224, 178, 77, .18);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.startup-setting-label { display: flex; flex-direction: column; font-size: 16px; line-height: 1.2; }
.startup-setting-label small { margin-top: 2px; font-size: 12px; color: #b8a987; }
.startup-setting-value { color: #ffd76a; font-size: 15px; }
.startup-switch {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 30px;
  padding: 0;
  border: 1px solid #8a6a36;
  border-radius: 15px;
  background: #241a12;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6);
  cursor: pointer;
  transition: background .15s ease;
}
.startup-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d9cbb0, #9c8a6a);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .6);
  transition: transform .15s ease, background .15s ease;
}
.startup-switch.is-on { background: linear-gradient(180deg, #2f6b3a, #1d4a26); border-color: #c99845; }
.startup-switch.is-on::after { transform: translateX(22px); background: linear-gradient(180deg, #ffe39a, #e0a83f); }
.startup-setting-link {
  display: block;
  width: 100%;
  margin: 4px 0 0;
  padding: 10px 0 4px;
  border: 0;
  background: none;
  color: #ffd76a;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
