.evm-gameit-header {
  --evm-header-accent: var(--evm-accent, #a6ff1a);
  --evm-header-text: var(--evm-text, #f7fff0);
  --evm-header-muted: var(--evm-muted, #bdc7b8);
  position: fixed !important;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 14px) !important;
  left: 50%;
  z-index: 1000;
  width: min(1180px, calc(100% - 32px));
  margin: 0 !important;
  transform: translateX(-50%);
  color: var(--evm-header-text);
  font-family: var(--evm-font-body, Arial, sans-serif);
}

.evm-content-pages-canvas__main {
  padding-top: 104px !important;
}

 .evm-gameit-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 0 14px;
  border: 1px solid rgba(166, 255, 26, 0.2);
  border-radius: 22px;
  background: linear-gradient(110deg, rgba(166, 255, 26, 0.045), transparent 34%), rgba(10, 16, 10, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(112%);
}

.evm-gameit-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 72px;
  padding: 8px 10px;
  color: var(--evm-header-text);
  text-decoration: none;
}

.evm-gameit-header__logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.evm-gameit-header__brand-text {
  color: var(--evm-header-text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.evm-gameit-header__nav {
  min-width: 0;
  margin-inline: auto;
}

.evm-gameit-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 20px);
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evm-gameit-header__menu li {
  margin: 0;
}

.evm-gameit-header__nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  color: var(--evm-header-muted);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.evm-gameit-header__nav a:hover,
.evm-gameit-header__nav a:focus-visible,
.evm-gameit-header__nav .current-menu-item > a {
  color: var(--evm-header-accent);
}

.evm-gameit-header__booking,
.evm-gameit-header__mobile-booking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(166, 255, 26, 0.38);
  border-radius: 14px;
  background: rgba(166, 255, 26, 0.1);
  color: var(--evm-header-accent);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.evm-gameit-header__booking-icon,
.evm-gameit-header__booking-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.evm-gameit-header__menu-toggle,
.evm-gameit-header__mobile-panel {
  display: none;
}

.evm-gameit-header__menu-toggle {
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(166, 255, 26, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--evm-header-text);
  cursor: pointer;
}

.evm-gameit-header__menu-toggle-box {
  display: grid;
  gap: 5px;
  width: 20px;
}

.evm-gameit-header__menu-toggle-line {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.evm-gameit-header__menu-toggle[aria-expanded="true"] .evm-gameit-header__menu-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.evm-gameit-header__menu-toggle[aria-expanded="true"] .evm-gameit-header__menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.evm-gameit-header__menu-toggle[aria-expanded="true"] .evm-gameit-header__menu-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.evm-gameit-header__mobile-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(166, 255, 26, 0.3);
  border-radius: 22px;
  background: rgba(10, 16, 10, 0.97);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.32);
}

.evm-gameit-header__mobile-panel.is-open {
  display: grid;
}

.evm-gameit-header__nav--mobile .evm-gameit-header__menu {
  display: grid;
  width: 100%;
  gap: 8px;
}

.evm-gameit-header__nav--mobile a,
.evm-gameit-header__mobile-booking {
  width: 100%;
}

@media (max-width: 700px) {
  .evm-gameit-header {
    width: calc(100% - 20px);
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 10px) !important;
  }

  .evm-gameit-header__inner {
    min-height: 64px;
    padding: 0 10px;
  }

  .evm-gameit-header__brand {
    height: 64px;
    margin-inline-end: auto;
  }

  .evm-gameit-header__logo {
    width: 40px;
    height: 40px;
  }

  .evm-gameit-header__nav--desktop,
  .evm-gameit-header__booking {
    display: none;
  }

  .evm-gameit-header__menu-toggle {
    display: inline-flex;
  }
}

/*
 * The shared modifier keeps this component identical even when a page bundle
 * contains legacy header selectors.
 */
body.evm-content-pages-canvas .evm-gameit-header.evm-gameit-header--shared {
  position: fixed !important;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 14px) !important;
  right: auto !important;
  left: 50% !important;
  z-index: 1000 !important;
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateX(-50%) !important;
  background: transparent !important;
}

body.evm-content-pages-canvas .evm-gameit-header.evm-gameit-header--shared[data-evm-gameit-header] .evm-gameit-header__inner {
  min-height: 72px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(166, 255, 26, 0.2) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(110deg, rgba(166, 255, 26, 0.045), transparent 34%),
    rgba(10, 16, 10, 0.92) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(18px) saturate(112%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(112%) !important;
}

body.evm-content-pages-canvas .evm-gameit-header.evm-gameit-header--shared .evm-gameit-header__brand {
  width: auto !important;
  height: 72px !important;
  padding: 8px 10px !important;
}

body.evm-content-pages-canvas .evm-gameit-header.evm-gameit-header--shared .evm-gameit-header__logo {
  width: 46px !important;
  height: 46px !important;
}

@media (max-width: 700px) {
  body.evm-content-pages-canvas .evm-gameit-header.evm-gameit-header--shared {
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 10px) !important;
    width: calc(100% - 20px) !important;
  }

  body.evm-content-pages-canvas .evm-gameit-header.evm-gameit-header--shared[data-evm-gameit-header] .evm-gameit-header__inner {
    min-height: 64px !important;
    padding: 0 10px !important;
    border-radius: 22px !important;
    background:
      linear-gradient(110deg, rgba(166, 255, 26, 0.045), transparent 34%),
      rgba(10, 16, 10, 0.92) !important;
  }

  body.evm-content-pages-canvas .evm-gameit-header.evm-gameit-header--shared .evm-gameit-header__brand {
    height: 64px !important;
    padding: 8px 10px !important;
  }

  body.evm-content-pages-canvas .evm-gameit-header.evm-gameit-header--shared .evm-gameit-header__logo {
    width: 40px !important;
    height: 40px !important;
  }
}


/* Phase 1B: accessible events navigation. */
.evm-gameit-header__submenu-toggle:focus-visible,
.evm-gameit-header__submenu a:focus-visible {
  outline: 2px solid var(--evm-header-accent);
  outline-offset: 2px;
}

.evm-gameit-header__menu-item--has-children {
  position: relative;
}

.evm-gameit-header__submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--evm-header-muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.evm-gameit-header__submenu-toggle:hover,
.evm-gameit-header__submenu-toggle[aria-expanded="true"] {
  color: var(--evm-header-accent);
}

.evm-gameit-header__submenu-indicator {
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.evm-gameit-header__submenu-toggle[aria-expanded="true"] .evm-gameit-header__submenu-indicator {
  transform: translateY(2px) rotate(225deg);
}

.evm-gameit-header__nav--desktop .evm-gameit-header__submenu {
  position: absolute;
  top: calc(100% + 7px);
  inset-inline-start: 50%;
  z-index: 10;
  display: grid;
  gap: 4px;
  min-width: 250px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(37, 214, 217, 0.24);
  border-radius: 10px;
  background: rgba(11, 15, 13, 0.98);
  box-shadow: 0 18px 42px rgba(5, 12, 9, 0.34);
  list-style: none;
  transform: translateX(50%);
}

.evm-gameit-header__nav--desktop .evm-gameit-header__submenu[hidden] {
  display: none;
}

.evm-gameit-header__nav--desktop .evm-gameit-header__submenu a {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--evm-header-text);
  font-size: 0.88rem;
}

.evm-gameit-header__nav--desktop .evm-gameit-header__submenu a:hover,
.evm-gameit-header__nav--desktop .evm-gameit-header__submenu a:focus-visible {
  background: rgba(20, 255, 125, 0.08);
  color: var(--evm-header-accent);
}

.evm-gameit-header__mobile-submenu-label {
  display: block;
  padding: 9px 0 5px;
  color: var(--evm-header-text);
  font-size: 0.84rem;
  font-weight: 800;
}

.evm-gameit-header__nav--mobile .evm-gameit-header__submenu {
  position: static;
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 2px 12px 4px 0;
  border-inline-start: 1px solid rgba(37, 214, 217, 0.24);
  list-style: none;
}

.evm-gameit-header__nav--mobile .evm-gameit-header__submenu a {
  min-height: 44px;
  padding: 9px 12px;
}

@media (max-width: 980px) {
  .evm-gameit-header__nav--desktop,
  .evm-gameit-header__booking {
    display: none;
  }

  .evm-gameit-header__menu-toggle {
    display: inline-flex;
  }

  .evm-gameit-header__brand {
    margin-inline-end: auto;
  }
}

@media (max-width: 700px) {
  .evm-content-pages-canvas__main {
    padding-top: 96px !important;
  }

  .evm-gameit-header__mobile-panel {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evm-gameit-header__submenu-indicator {
    transition: none;
  }
}


/* Shared GameIt footer: an edge-to-edge closing section. */
.evm-gameit-footer,
.evm-gameit-footer * {
  box-sizing: border-box;
}

.evm-gameit-footer {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: clamp(48px, 6vw, 76px) 0 0;
  color: #f4f8f2;
  direction: rtl;
  font-family: var(--evm-font-body, "Assistant", Arial, sans-serif);
  background:
    radial-gradient(circle at 88% 4%, rgba(34, 211, 238, 0.1), transparent 28%),
    radial-gradient(circle at 14% 34%, rgba(166, 255, 26, 0.09), transparent 30%),
    linear-gradient(138deg, #07100b 0%, #08150e 50%, #050a07 100%);
  overflow: hidden;
}

.evm-gameit-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.42), rgba(166, 255, 26, 0.5), transparent);
  opacity: 0.78;
}

.evm-gameit-footer__inner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.evm-gameit-footer__main {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(280px, 1.1fr) minmax(180px, 0.72fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: 0 0 clamp(30px, 4vw, 46px);
}

.evm-gameit-footer__brand,
.evm-gameit-footer__group {
  min-width: 0;
}

.evm-gameit-footer__brand {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 2px;
}

.evm-gameit-footer__brand strong {
  color: #f7faf8;
  font-family: var(--evm-font-display, "Rubik", Arial, sans-serif);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
}

.evm-gameit-footer__brand span {
  color: rgba(222, 234, 225, 0.73);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.evm-gameit-footer__group {
  display: grid;
  gap: 13px;
}

.evm-gameit-footer__group-title {
  margin: 0;
  color: rgba(235, 245, 237, 0.94);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

.evm-gameit-footer__contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  min-width: 0;
}

.evm-gameit-footer__contact a:first-child {
  grid-column: 1 / -1;
}

.evm-gameit-footer__contact a,
.evm-gameit-footer__legal a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  min-height: 34px;
  padding: 2px 0;
  color: rgba(221, 234, 225, 0.76);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
  text-decoration: none;
  transition: color 170ms ease, transform 170ms ease;
}

.evm-gameit-footer__contact a:hover,
.evm-gameit-footer__legal a:hover {
  color: #f7faf8;
  transform: translateX(-2px);
}

.evm-gameit-footer__contact a:focus-visible,
.evm-gameit-footer__legal a:focus-visible,
.evm-gameit-footer__social-links a:focus-visible {
  outline: 2px solid #a6ff1a;
  outline-offset: 4px;
}

.evm-gameit-footer__contact a span:last-child,
.evm-gameit-footer__legal a span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.evm-gameit-footer__icon {
  display: inline-flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: rgba(126, 231, 216, 0.9);
}

.evm-gameit-footer__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.evm-gameit-footer__contact a[href^="https://wa.me"] .evm-gameit-footer__icon {
  color: #68df80;
}

.evm-gameit-footer__contact a[href^="mailto:"] .evm-gameit-footer__icon {
  color: #a6ff1a;
}

.evm-gameit-footer__legal {
  display: grid;
  gap: 8px;
}

.evm-gameit-footer__legal a .evm-gameit-footer__icon {
  color: rgba(184, 169, 255, 0.95);
}

.evm-gameit-footer__legal a + a .evm-gameit-footer__icon {
  color: rgba(126, 231, 216, 0.92);
}

.evm-gameit-footer__social-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 14px 0;
  border-top: 1px solid rgba(202, 230, 213, 0.12);
}

.evm-gameit-footer__social-strip > span {
  color: rgba(218, 231, 222, 0.7);
  font-size: 0.9rem;
  font-weight: 800;
}

.evm-gameit-footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.evm-gameit-footer__social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(158, 220, 192, 0.22);
  border-radius: 50%;
  color: rgba(235, 245, 237, 0.92);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
  transition: color 170ms ease, border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.evm-gameit-footer__social-links a:hover {
  color: #a6ff1a;
  border-color: rgba(166, 255, 26, 0.65);
  background: rgba(166, 255, 26, 0.08);
  transform: translateY(-2px);
}

.evm-gameit-footer__social-links .evm-gameit-footer__icon {
  width: 18px;
  height: 18px;
  color: currentColor;
}

@media (max-width: 980px) {
  .evm-gameit-footer__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .evm-gameit-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .evm-gameit-footer {
    padding-top: 42px;
  }

  .evm-gameit-footer__inner {
    width: min(100% - 32px, 560px);
  }

  .evm-gameit-footer__main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 26px;
  }

  .evm-gameit-footer__brand {
    gap: 7px;
  }

  .evm-gameit-footer__group {
    gap: 11px;
  }

  .evm-gameit-footer__contact {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .evm-gameit-footer__contact a:first-child {
    grid-column: auto;
  }

  .evm-gameit-footer__contact a,
  .evm-gameit-footer__legal a {
    min-height: 38px;
  }

  .evm-gameit-footer__social-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 18px 0 24px;
  }
}

@media (max-width: 360px) {
  .evm-gameit-footer__inner {
    width: min(100% - 24px, 560px);
  }

  .evm-gameit-footer__social-links a {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evm-gameit-footer__contact a,
  .evm-gameit-footer__legal a,
  .evm-gameit-footer__social-links a {
    transition: none;
  }

  .evm-gameit-footer__contact a:hover,
  .evm-gameit-footer__legal a:hover,
  .evm-gameit-footer__social-links a:hover {
    transform: none;
  }
}


/* Phase 3 shared compact booking contacts */
.evm-gameit-cta-contacts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.evm-gameit-cta-contacts__link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(247, 250, 248, 0.24);
  border-radius: 8px;
  color: #f7faf8;
  background: rgba(21, 26, 24, 0.72);
  font-family: "Varela Round", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.evm-gameit-cta-contacts__link:visited { color: #f7faf8; }
.evm-gameit-cta-contacts__link:hover {
  border-color: rgba(20, 255, 125, 0.62);
  color: #f7faf8;
  background: rgba(20, 255, 125, 0.1);
  transform: translateY(-1px);
}
.evm-gameit-cta-contacts__link:focus-visible {
  outline: 3px solid #25d6d9;
  outline-offset: 3px;
}
.evm-gameit-cta-contacts__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #14ff7d;
}
.evm-gameit-cta-contacts__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}
@media (max-width: 620px) {
  .evm-gameit-cta-contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .evm-gameit-cta-contacts__link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .evm-gameit-cta-contacts__link { transition: none; }
  .evm-gameit-cta-contacts__link:hover { transform: none; }
}

/* Shared WhatsApp glyph sizing: square, non-shrinking, and readable at small sizes. */
.evm-gameit-cta-contacts__icon {
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.evm-gameit-cta-contacts__icon svg {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  fill: currentColor;
}

.evm-gameit-footer__contact a[href^="https://wa.me"] .evm-gameit-footer__icon {
  display: inline-flex;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.evm-gameit-footer__contact a[href^="https://wa.me"] .evm-gameit-footer__icon svg {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  fill: currentColor;
}