/**
 * Arcade / Muzyka — layout strony i embed [lider_arcade].
 * Wersjonowane przez functions.php ($lider_asset_ver).
 */

/* Arcade / Muzyka: ogranicz wielkość tytułu, by nie dominował ekranu. */
body.page.page-slug-arcade h1.entry-title,
body.page.page-slug-muzyka-treningowa h1.entry-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
  line-height: 1.1 !important;
}

body.page.page-slug-arcade .entry-content h1.wp-block-heading,
body.page.page-slug-muzyka-treningowa .entry-content h1.wp-block-heading {
  font-size: clamp(1.6rem, 3.8vw, 2.5rem) !important;
  line-height: 1.1 !important;
}

/* Arcade page: only game viewport, no text blocks/header noise. */
body.page.page-slug-arcade .entry-header,
body.page.page-slug-arcade .entry-title,
body.page.page-slug-arcade .entry-content > .wp-block-heading,
body.page.page-slug-arcade .entry-content > .wp-block-paragraph {
  display: none !important;
}

/* Fallback niezależny od klasy body: jeśli w treści jest embed arcade, ukryj nagłówek/intro. */
body.page article:has(.entry-content [data-lider-arcade-shell]) > .entry-header,
body.page article:has(.entry-content [data-lider-arcade-shell]) .entry-content > .wp-block-heading,
body.page article:has(.entry-content [data-lider-arcade-shell]) .entry-content > .wp-block-paragraph {
  display: none !important;
}

body.page.page-slug-arcade .entry-content,
body.page.page-slug-arcade .entry-content > .wp-block-group {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page.page-slug-arcade .entry-content > * {
  margin: 0 !important;
}

.lider-arcade-shell {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 72px);
  background: #000;
}

.lider-arcade-shell iframe {
  width: 100% !important;
  height: calc(100dvh - 72px) !important;
  max-width: none !important;
  border-radius: 0 !important;
}

.lider-arcade-shell__controls {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.lider-arcade-shell__btn {
  border: 1px solid rgba(255, 75, 75, 0.65);
  background: rgba(135, 0, 0, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.lider-arcade-shell__btn--exit {
  display: none;
}

.lider-arcade-shell.is-fullscreen .lider-arcade-shell__btn--exit {
  display: inline-flex;
}

body.page.page-slug-muzyka-treningowa .entry-content h1.wp-block-heading {
  font-size: clamp(1.25rem, 2.6vw, 1.8rem) !important;
}
