/* Orb Rush — strona gry (mobile-first). HUD gry: /css/orb-rush-hud.css */
:root {
  /* wysokość sticky site-headera; dokładną wartość nadpisuje mały skrypt na stronie */
  --or-header: 4.4rem;
}

/* Strona gry: gra jest pierwszym elementem <main>, bez hero nad nią */
body[data-page="orb-rush"] main { display: block; }

.or-app {
  position: relative;
  z-index: 1;
  width: 100%;
  /* fallback vh, potem svh (stabilny przy chowaniu paska adresu) */
  height: calc(100vh - var(--or-header));
  height: calc(100svh - var(--or-header));
  min-height: 420px;
  background: #05070c;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid var(--line);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.or-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #05070c;
}

.or-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  /* w menu / pauzie / na mecie palec przewija stronę; w trakcie gry steruje kulą */
  touch-action: pan-y;
  outline: none;
}
.or-stage.is-playing canvas { touch-action: none; }

/* Duży ekran: gra nie rozciąga się w nieskończoność */
@media (min-width: 1024px) {
  .or-app {
    max-height: 900px;
  }
}

/* Telefon w poziomie: gra na cały ekran, nagłówek ukryty (reszta strony pod grą) */
@media (orientation: landscape) and (max-height: 520px) {
  body[data-page="orb-rush"] .site-header { display: none; }
  .or-app {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    max-height: none;
    border-bottom: 0;
  }
}

/* Sekcje treści pod grą */
.or-intro .section__title { max-width: 28ch; }
.or-intro__tags { margin-bottom: 1.1rem; }

.or-steps {
  display: grid;
  gap: 0.65rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: or-step;
}
.or-steps li {
  position: relative;
  padding: 1rem 1.1rem 1rem 3.1rem;
  counter-increment: or-step;
}
.or-steps li::before {
  content: counter(or-step);
  position: absolute;
  left: 0.95rem;
  top: 1rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.78rem;
  color: #041018;
  background: var(--neon);
}
.or-steps h3 {
  margin: 0 0 0.3rem;
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--text);
}
.or-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
@media (min-width: 900px) {
  .or-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.or-controls {
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.or-controls .controls-table { margin-top: 0; min-width: 34rem; }
.or-kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.45em;
  margin: 0 0.1em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.88em;
  text-align: center;
  white-space: nowrap;
}

.or-note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--neon);
  border-radius: 0 12px 12px 0;
  background: rgba(61, 255, 240, 0.05);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 46rem;
}
.or-note strong { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
