/* ===== Full-width layout (fix "half screen" on MBA / laptop) ===== */
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  align-items: stretch !important;
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Kill original max-width traps on shell (left-aligned half page) */
.header_and_main,
main.main,
footer,
header,
header.beam {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}
.header_and_main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
header,
header.beam {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}
header .header_box,
header .beam_block {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
main.main {
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important; /* was center - shrinks children */
  padding-top: 96px;
}
.vav-hero,
.beam-categories,
.layer_games,
.seo-panel {
  width: 100%;
  max-width: none;
  align-self: stretch;
}

/* Inner content stays readable, centered */
.beam-categories .nav-categories,
.game-catalog,
.block.game-catalog,
.beam .beam_block {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Header logo */
header .main_logo img {
  width: auto;
  max-width: 168px;
  height: 28px;
  object-fit: contain;
  display: block;
}
@media (min-width: 669px) {
  header .main_logo img {
    height: 32px;
    max-width: 200px;
  }
}

/* ===== Hero: one full-width slide, caption centered ===== */
.vav-hero,
.vav-hero .carousel_inner_wrapper,
.vav-hero__track {
  width: 100%;
  position: relative;
}
.vav-hero.carousel_outer_wrapper {
  padding-top: 0 !important;
}
.vav-hero .carousel_inner_wrapper {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  height: auto !important;
  width: 100% !important;
}
.vav-hero__track {
  overflow: hidden;
  width: 100%;
}
.vav-hero__slide {
  display: none;
  width: 100%;
}
.vav-hero__slide.is-active {
  display: block;
}
.vav-hero .carousel_img {
  position: relative;
  width: 100%;
  height: clamp(160px, 24vw, 380px);
  overflow: hidden;
}
.vav-hero .banner_wrapper,
.vav-hero .banner {
  display: block;
  width: 100%;
  height: 100%;
}
.vav-hero .banner {
  object-fit: cover;
  object-position: center center;
}
.vav-hero .carousel_megawin-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #32125800 0%, #321258e6 12%, #321258e6 88%, #32125800 100%);
  pointer-events: none;
}
.vav-hero .carousel_megawin-text {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  white-space: normal;
  font-size: clamp(14px, 2.4vw, 32px);
  line-height: 1.25;
  text-transform: uppercase;
  color: #ffe47a;
  -webkit-text-fill-color: #ffe47a;
  background: none;
}

/* Hero primary CTA → ref */
.vav-hero__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 18px 16px 10px;
}
.vav-hero__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(340px, 90vw);
  padding: 18px 40px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff4d6d 0%, #e0183a 55%, #c41030 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 12px 32px rgba(224, 24, 58, 0.42);
  color: #fff !important;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none !important;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.vav-hero__cta-btn:hover {
  color: #fff !important;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 16px 36px rgba(224, 24, 58, 0.5);
}
.vav-hero__cta-btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

/* ===== SEO panel ===== */
.seo-panel {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto 48px;
}
.seo-panel h3 {
  color: #f0f2fa;
  font-size: clamp(17px, 2vw, 22px);
  margin: 18px 0 10px;
  font-weight: 700;
}
.seo-panel .faq details {
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
}
.seo-panel .faq summary {
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  list-style: none;
}
.seo-panel .faq summary::-webkit-details-marker { display: none; }
.seo-panel .faq p { margin: 10px 0 0; }
.seo-panel__inner {
  background: #1c2238;
  border-radius: 16px;
  padding: 28px 26px 32px;
  color: #c8cddc;
  line-height: 1.65;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.seo-panel h1,
.seo-panel h2 {
  color: #fff;
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 14px;
  font-weight: 800;
  text-transform: none;
}
.seo-panel h2 { margin-top: 28px; }
.seo-panel h1 + p,
.seo-panel h2 + p { margin-top: 0; }
.seo-panel p { margin: 0 0 14px; font-size: 15px; }
.seo-panel a { color: #c4a0ff; text-decoration: underline; }
.seo-panel a:hover { color: #e3d2ff; }
.seo-list {
  margin: 0 0 14px;
  padding-left: 1.2em;
  font-size: 15px;
}
.seo-list li { margin: 0 0 8px; }
.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14px;
}
.seo-table th,
.seo-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.08);
  vertical-align: top;
}
.seo-table th {
  width: 36%;
  color: #fff;
  background: rgba(0,0,0,0.22);
  font-weight: 700;
}
.seo-panel__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 28px 0 32px;
  padding: 4px 0;
  text-align: center;
}
.seo-panel__cta a,
.seo-panel__cta .show_more,
.seo-panel__cta .btn_small {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: min(320px, 88vw);
  padding: 16px 36px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ff4d6d 0%, #e0183a 55%, #c41030 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 28px rgba(224, 24, 58, 0.38) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-transform: none !important;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.seo-panel__cta a:hover,
.seo-panel__cta .show_more:hover,
.seo-panel__cta .btn_small:hover {
  color: #fff !important;
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 14px 32px rgba(224, 24, 58, 0.48) !important;
}
.seo-panel__cta a:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.footer-legal {
  display: grid !important;
  gap: 8px;
  padding: 18px 0 8px;
  color: #9aa0b5;
  font-size: 13px;
  line-height: 1.5;
}
.footer-legal p { margin: 0; }
.footer-legal__warn {
  color: #e8eaf2;
  margin-bottom: 6px !important;
}
.footer-legal__warn strong {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fe284a;
  color: #fff;
  font-size: 12px;
}

/* ===== Tablet ===== */
@media (max-width: 1024px) {
  main.main { padding-top: 90px; }
  .vav-hero .carousel_img { height: clamp(150px, 28vw, 300px); }
  .game-catalog { padding: 0 12px; }
}

/* ===== Mobile ===== */
@media (max-width: 668px) {
  main.main {
    padding-top: 100px;
  }
  .seo-panel__cta {
    margin: 24px 0 28px;
  }
  .seo-panel__cta a,
  .seo-panel__cta .show_more,
  .seo-panel__cta .btn_small {
    min-width: min(280px, 92vw);
    padding: 15px 28px !important;
    font-size: 15px !important;
    border-radius: 10px !important;
  }
  .vav-hero__cta {
    padding: 14px 12px 6px;
  }
  .vav-hero__cta-btn {
    min-width: min(280px, 92vw);
    padding: 16px 28px;
    font-size: 16px;
  }
  header .header_box,
  header .beam_block {
    padding: 0 10px;
  }
  header .main_logo img {
    height: 24px;
    max-width: 140px;
  }
  .vav-hero.carousel_outer_wrapper {
    padding-top: 0 !important;
  }
  .vav-hero .carousel_img {
    height: 150px;
  }
  .vav-hero .carousel_megawin-wrapper {
    min-height: 40px;
    padding: 8px 10px;
  }
  .vav-hero .carousel_megawin-text {
    font-size: 12px;
    line-height: 16px;
  }
  .beam-categories .nav-categories_text {
    font-size: 11px !important;
  }
  .layer_games {
    padding-top: 16px !important;
  }
  .game-catalog {
    padding: 0 8px;
  }
  /* denser cards on phone */
  .gamecard {
    max-width: 100%;
  }
  .seo-panel {
    width: calc(100% - 20px);
    margin: 20px auto 32px;
  }
  .seo-panel__inner {
    padding: 18px 14px 22px;
    border-radius: 12px;
  }
  .seo-panel h1,
  .seo-panel h2 {
    font-size: 20px;
  }
  .seo-panel p,
  .seo-list,
  .seo-table {
    font-size: 14px;
  }
  .seo-table th,
  .seo-table td {
    padding: 8px;
    display: block;
    width: 100% !important;
  }
  .seo-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }
  .seo-table td {
    padding-top: 0;
    margin-bottom: 8px;
  }
  .footer-legal {
    padding: 14px 12px;
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .vav-hero .carousel_img { height: 130px; }
  .vav-hero .carousel_megawin-text { font-size: 11px; }
}

/* Author byline */
.seo-panel .seo-author {
  margin: 0 0 1rem;
  font-size: 13px;
  opacity: 0.85;
}
.seo-panel .seo-author a.author-name {
  color: #c4a0ff;
  text-decoration: none;
}
.seo-panel .seo-author a.author-name:hover {
  text-decoration: underline;
}
