/* Load after experience.css. Keep the home screen's existing visibility rule. */
body[data-screen="game"] .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f4f1fff5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: normal;
  gap: 20px;
  height: auto;
  min-height: 104px;
  padding: 18px 40px 22px;
}

/* Both elements occupy layout space, so a larger call button cannot cover the logo. */
body[data-screen="game"] .site-header .brand {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
}

body[data-screen="game"] .site-header .header-actions {
  position: static;
  justify-self: end;
  min-width: 0;
}

body[data-screen="game"] .header-call {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  min-height: 62px;
  padding: 15px 24px;
  border: 2px solid #30334f;
  border-radius: 2px;
  background: #ffcf86;
  color: #30334f;
  box-shadow: 0 5px 0 #30334f;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

body[data-screen="game"] .header-call svg {
  width: 22px;
  height: 22px;
}

@media (hover: hover) {
  body[data-screen="game"] .header-call:hover {
    background: #ffdda8;
    transform: translateY(-2px);
    box-shadow: 0 7px 0 #30334f;
  }
}

body[data-screen="game"] .header-call:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #30334f;
}

body[data-screen="game"] .header-call:focus-visible {
  outline: 3px solid #30334f;
  outline-offset: 5px;
}

@media (max-width: 760px) {
  body[data-screen="game"] .site-header {
    gap: 12px;
    min-height: 88px;
    padding: 12px 16px 16px;
  }

  body[data-screen="game"] .site-header .brand {
    gap: 8px;
  }

  body[data-screen="game"] .site-header .brand img {
    flex: none;
    width: 65px;
  }

  body[data-screen="game"] .header-call {
    gap: 9px;
    min-width: 148px;
    min-height: 56px;
    padding: 12px 16px;
    font-size: 16px;
    letter-spacing: .025em;
  }

  body[data-screen="game"] .header-call svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 360px) {
  body[data-screen="game"] .site-header .brand > span {
    display: none;
  }
}

/* Sticky keeps direct booking visible; the header retains its place in layout. */
@media (prefers-reduced-motion: reduce) {
  body[data-screen="game"] .header-call {
    transition: none;
  }
}

html[data-motion="paused"] body[data-screen="game"] .header-call {
  transition: none;
}
