/* OrynthSprint — splash removal + boot loader */

#orynth-boot {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f2ed;
  font-family: Space, Helvetica, sans-serif;
  color: #343c3e;
  transition: opacity 0.35s ease;
}

#orynth-boot.orynth-boot--hide {
  opacity: 0;
  pointer-events: none;
}

#orynth-boot .orynth-boot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 10rem;
}

#orynth-boot .orynth-boot__title {
  font-family: Sono, monospace;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#orynth-boot .orynth-boot__bar {
  width: 100%;
  height: 1px;
  background: #343c3e40;
}

#orynth-boot .orynth-boot__bar-fill {
  height: 100%;
  width: 0%;
  background: #343c3e;
  transition: width 0.2s ease;
}

#orynth-boot .orynth-boot__stage {
  font-family: Sono, monospace;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7e7c76;
}

/* Hide original Slow Roads landing menu — keep splash-canvas alive for WebGL warmup */
#splash-fixed,
#splash-title,
#splash-main,
.splash-main-buttons,
.splash-smallprint,
#about,
.splash-logo,
.splash-subtitle,
#splash-bg,
#splash-bg-overlay,
#splash-dynamic,
.splash-new-version,
.splash-changelog,
#splash-error {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#splash-begin {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* In-game promo strip */
.ui-mb.svelte-bgj4yc {
  display: none !important;
}

/* Remove Steam / itch promo from bottom bar */
#ui-settings-steam,
a[href*="steampowered.com"],
a[href*="itch.io/slow-roads"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Orynth X / Twitter link */
.orynth-twitter-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding-right: 1rem;
  color: var(--sr-white, #f4f2ed);
  font-family: Sono, monospace;
  font-size: 0.8rem;
  font-weight: 200;
  opacity: 0.5;
  transition: opacity 0.1s;
  text-decoration: none;
  line-height: 1rem;
  text-align: right;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.orynth-twitter-link:hover {
  opacity: 1;
  cursor: pointer;
}

.orynth-twitter-icon {
  width: 1.5rem;
  height: 1.5rem;
  opacity: 1;
  filter: drop-shadow(0 0 0.25rem rgba(244, 242, 237, 0.75));
}

.orynth-twitter-label {
  text-shadow: 0 0 0.25rem rgba(244, 242, 237, 0.5);
}

/* Documentation HUD button */
.orynth-docs-hud-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--sr-white, #f4f2ed);
  opacity: 0.5;
  transition: opacity 0.1s;
  font-family: Sono, monospace;
  line-height: 1rem;
}

.orynth-docs-hud-btn:hover {
  opacity: 1;
}

.orynth-docs-hud-label {
  font-size: 0.8rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  text-shadow: 0 0 0.25rem rgba(244, 242, 237, 0.5);
}

.orynth-docs-hud-icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 1.2rem;
  filter: drop-shadow(0 0 0.25rem rgba(244, 242, 237, 0.75));
}

.orynth-docs-settings-tab {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.1s;
}

.orynth-docs-settings-tab:hover {
  opacity: 1 !important;
}

.orynth-docs-conf-tab {
  cursor: pointer;
  opacity: 0.75;
}

.orynth-docs-conf-tab:hover {
  opacity: 1;
}

/* Documentation overlay */
body.orynth-docs-open {
  overflow: hidden;
}

#orynth-docs-panel {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  align-items: stretch;
  justify-content: center;
  font-family: Sono, monospace;
  letter-spacing: 0.06em;
  font-weight: 100;
}

body.orynth-docs-open #orynth-docs-panel {
  display: flex;
}

.orynth-docs-panel__backdrop {
  position: absolute;
  inset: 0;
  background: var(--sr-white-50, rgba(244, 242, 237, 0.5));
  -webkit-backdrop-filter: blur(4rem);
  backdrop-filter: blur(4rem);
}

.orynth-docs-panel__sheet {
  position: relative;
  z-index: 1;
  width: min(42rem, 92vw);
  max-height: min(88vh, 52rem);
  margin: auto;
  display: flex;
  flex-direction: column;
  background: var(--sr-white, #f4f2ed);
  color: var(--sr-primary, #343c3e);
  border: 1px solid var(--sr-primary-25, rgba(52, 60, 62, 0.25));
  box-shadow: 0 1rem 3rem rgba(52, 60, 62, 0.12);
}

.orynth-docs-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--sr-primary-25, rgba(52, 60, 62, 0.25));
}

.orynth-docs-panel__header h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orynth-docs-panel__close {
  border: 1px solid var(--sr-primary-50, rgba(52, 60, 62, 0.5));
  background: transparent;
  color: var(--sr-primary, #343c3e);
  width: 2rem;
  height: 2rem;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.orynth-docs-panel__close:hover {
  background: var(--sr-primary-25, rgba(52, 60, 62, 0.25));
}

.orynth-docs-panel__body {
  overflow: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  font-family: Space, Helvetica, sans-serif;
  letter-spacing: normal;
  font-weight: 300;
  line-height: 1.55;
}

.orynth-docs-panel__body section {
  margin-bottom: 1.5rem;
}

.orynth-docs-panel__body section:last-child {
  margin-bottom: 0;
}

.orynth-docs-panel__body h2 {
  margin: 0 0 0.5rem;
  font-family: Sono, monospace;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sr-primary, #343c3e);
}

.orynth-docs-panel__body p,
.orynth-docs-panel__body ul {
  margin: 0;
  color: var(--sr-primary-75, rgba(52, 60, 62, 0.75));
}

.orynth-docs-panel__body ul {
  padding-left: 1.2rem;
}

.orynth-docs-panel__body li + li {
  margin-top: 0.35rem;
}

.orynth-docs-panel__body a {
  color: var(--sr-primary, #343c3e);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.orynth-docs-panel__body a:hover {
  opacity: 0.75;
}

.orynth-docs-panel__body code {
  font-family: Sono, monospace;
  font-size: 0.9em;
  background: var(--sr-primary-25, rgba(52, 60, 62, 0.25));
  padding: 0.1em 0.35em;
}

.orynth-docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.25rem 0 0.75rem;
}

.orynth-docs-table th,
.orynth-docs-table td {
  text-align: left;
  padding: 0.35rem 0.5rem 0.35rem 0;
  border-bottom: 1px solid var(--sr-primary-25, rgba(52, 60, 62, 0.25));
  vertical-align: top;
}

.orynth-docs-table th {
  width: 7rem;
  font-family: Sono, monospace;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.orynth-docs-note {
  font-size: 0.9rem;
  opacity: 0.85;
}

.orynth-docs-links {
  list-style: none;
  padding-left: 0 !important;
}

.orynth-docs-links li + li {
  margin-top: 0.5rem;
}
