/* ================================================
   Alpha Youth Series - custom overrides & game UI
   Built on the Unio landing page template
   ================================================ */

:root {
  /* Alpha official palette (brand guide 2025) */
  --alpha-red: #e42312;
  --alpha-red-light: #ff6b52;
  --alpha-red-dark: #9d0000;
  --alpha-cream: #fffee;
  --alpha-wine: #7b2233;
  --alpha-blue: #1f3a6d;
  --alpha-ink: #061125;
  --alpha-grad: linear-gradient(135deg, #e42312 0%, #ff6b52 100%);
}

/* ------------------------------------------------
   Stacking: keep each full-screen section on its own
   layer so hero effects can't bleed into other sections
   ------------------------------------------------ */
.main {
  z-index: 1;
}
.inner {
  z-index: 2;
}
/* Hidden sections must not capture clicks (e.g. the game overlay keeps
   visibility:visible even when its section is closed). */
.inner:not(.animate-in) {
  pointer-events: none;
}
.main:not(.active) #particles-js,
.main:not(.active) .countdown {
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.4s ease-in-out;
  transition: opacity 0.4s ease-in-out;
}

/* ------------------------------------------------
   Brand mark (header + loader)
   ------------------------------------------------ */
.brand-mark {
  font: normal 600 3.4rem/1 "Oswald", sans-serif;
  color: #ffffff;
  line-height: 1;
}

.header__logo .brand-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.loader-logo .brand {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  text-align: center;
}
.loader-logo .brand-mark {
  font-size: 5.2rem;
  background: var(--alpha-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.loader-logo .brand-word {
  margin-top: 1.4rem;
  font: normal 400 1.1rem/1.4 "Roboto", sans-serif;
  letter-spacing: 0.55rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}
.loader-logo-img {
  display: block;
  width: 118px;
  height: auto;
}

/* Official Alpha logo in the header (red on cream, per brand guide) */
.header__logo {
  background: var(--alpha-cream);
}
.header__logo img {
  width: 60%;
}

/* Brand values strip under the hero buttons */
.brand-values {
  margin-top: 2.8rem;
  font: normal 400 1.2rem/1.4 "Roboto", sans-serif;
  letter-spacing: 0.32rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------------
   Backgrounds
   ------------------------------------------------ */
.media-image-3 {
  background-image:
    radial-gradient(circle at 18% 22%, rgba(228, 35, 18, 0.42), transparent 46%),
    radial-gradient(circle at 82% 78%, rgba(31, 58, 109, 0.7), transparent 52%),
    radial-gradient(circle at 62% 30%, rgba(123, 34, 51, 0.38), transparent 54%),
    linear-gradient(160deg, #0b1436 0%, #061125 58%, #02060e 100%);
}

.about-image {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 28% 26%, rgba(228, 35, 18, 0.4), transparent 52%),
    radial-gradient(circle at 76% 74%, rgba(31, 58, 109, 0.6), transparent 55%),
    linear-gradient(135deg, #081127 0%, #0b1a3a 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

/* One continuous two-tone blue gradient (dark -> light, left to right).
   Each tile holds its slice so the six tiles read as a single gradient. */
.menu-image-1 { background: linear-gradient(to right, #16244d, #1d2f5e); }
.menu-image-2 { background: linear-gradient(to right, #1d2f5e, #24396e); }
.menu-image-3 { background: linear-gradient(to right, #24396e, #2b447f); }
.menu-image-4 { background: linear-gradient(to right, #2b447f, #314e8f); }
.menu-image-5 { background: linear-gradient(to right, #314e8f, #3859a0); }
.menu-image-6 { background: linear-gradient(to right, #3859a0, #3f63b0); }

.menu-image {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
}
.menu-letter {
  font: normal 600 7rem/1 "Oswald", sans-serif;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------
   Hero
   ------------------------------------------------ */
.headline__title {
  margin-bottom: 0;
}
p.headline__text {
  max-width: 560px;
}
@media only screen and (min-width: 1400px) {
  p.headline__text {
    max-width: 640px;
  }
}

.event-meta {
  display: -webkit-box;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3.2rem;
}
.event-meta__pill {
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font: normal 400 1.2rem/1 "Roboto", sans-serif;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.event-meta__pill i {
  color: var(--alpha-red);
}

/* ------------------------------------------------
   Feature icons (About section)
   ------------------------------------------------ */
.feature-icon {
  position: absolute;
  top: 0;
  left: 15px;
  width: 4.6rem;
  height: 4.6rem;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(228, 35, 18, 0.24), rgba(31, 58, 109, 0.34));
  border: 1px solid rgba(228, 35, 18, 0.22);
  color: var(--alpha-red);
  font-size: 1.8rem;
}
@media only screen and (min-width: 1400px) {
  .feature-icon {
    width: 5.4rem;
    height: 5.4rem;
    font-size: 2.1rem;
  }
}

/* About graphic panel */
.about-graphic {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  text-align: center;
  padding: 2.4rem;
}
.about-graphic__logo {
  display: block;
  width: 210px;
  height: auto;
  opacity: 0.95;
}
.about-graphic__line {
  margin-top: 2.4rem;
  max-width: 320px;
  font: normal 400 1.3rem/1.7 "Roboto", sans-serif;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* About section: Alpha Youth trailer */
.about-video {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  gap: 2.2rem;
  padding: 3rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 28% 26%, rgba(228, 35, 18, 0.28), transparent 52%),
    radial-gradient(circle at 76% 74%, rgba(31, 58, 109, 0.6), transparent 55%),
    linear-gradient(135deg, #081127 0%, #0b1a3a 100%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}
.about-video__label {
  font: normal 400 1.3rem/1 "Roboto", sans-serif;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.about-video__frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  background: #000000;
}
.about-video__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-facade {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
  overflow: hidden;
}
.video-facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  -webkit-transition: opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.video-facade:hover img {
  opacity: 1;
}
.video-facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--alpha-red);
  color: #ffffff;
  font-size: 2.4rem;
  padding-left: 4px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  -webkit-transition: -webkit-transform 0.2s ease-in-out;
  transition: transform 0.2s ease-in-out;
}
.video-facade:hover .video-facade__play {
  -webkit-transform: translate(-50%, -50%) scale(1.08);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ------------------------------------------------
   Game section
   ------------------------------------------------ */
.game-section .inner__content {
  z-index: 2;
}
.game-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}
.game-hud__item {
  padding: 1.1rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}
.game-hud__label {
  display: block;
  margin-bottom: 0.5rem;
  font: normal 400 1rem/1 "Roboto", sans-serif;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.game-hud__value {
  display: block;
  font: normal 500 2rem/1 "Oswald", sans-serif;
  color: #ffffff;
}
.game-hud__value.is-lives {
  color: var(--alpha-wine);
  letter-spacing: 0.2rem;
}
.game-actions {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.game-icon-btn {
  -webkit-box-flex: 0;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.game-icon-btn:hover {
  border-color: var(--alpha-red);
  color: var(--alpha-red);
}
.game-icon-btn.is-muted {
  opacity: 0.5;
}

.game-stage {
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(228, 35, 18, 0.14), transparent 60%),
    radial-gradient(circle at 50% 120%, rgba(123, 34, 51, 0.2), transparent 55%),
    #03080f;
}
.game-stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  z-index: 2;
}
.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 2.6rem;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(6, 17, 37, 0.55), rgba(6, 17, 37, 0.94));
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.35s ease-in-out;
  transition: opacity 0.35s ease-in-out;
}
.game-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.game-overlay__content {
  max-width: 440px;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
}
.game-overlay .btn-l {
  margin-left: 0;
  margin-right: 0;
}
.game-overlay__kicker {
  display: block;
  font: normal 400 1.3rem/1 "Roboto", sans-serif;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--alpha-red);
}
.game-overlay__title {
  margin: 1.2rem 0 1.6rem;
  font: normal 500 4rem/1.05 "Oswald", sans-serif;
  text-transform: uppercase;
  color: #ffffff;
}
.game-overlay__text {
  margin-bottom: 2.4rem;
  color: rgba(255, 255, 255, 0.75);
}
.game-overlay__score {
  font: normal 500 5rem/1 "Oswald", sans-serif;
  background: var(--alpha-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------------------------
   Contact / map
   ------------------------------------------------ */
.map-frame {
  position: absolute;
  inset: 0;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 17, 37, 0.3), rgba(6, 17, 37, 0.04) 42%, rgba(6, 17, 37, 0.62));
}
.map-card {
  position: absolute;
  left: 2.4rem;
  right: 2.4rem;
  bottom: 2.4rem;
  z-index: 3;
  max-width: 380px;
  padding: 2.2rem 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(6, 17, 37, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.map-card h5 {
  margin-bottom: 0.4rem;
}
.map-card p {
  margin-bottom: 1.2rem;
}
@media only screen and (min-width: 1200px) {
  .map-card {
    left: 3.2rem;
    bottom: 3.2rem;
  }
}

.register-note {
  margin-top: 1.4rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.55);
}
.register-note a {
  color: var(--alpha-red);
}
.register-note a:hover {
  color: #ffffff;
}

/* ------------------------------------------------
   Responsive tweaks
   ------------------------------------------------ */
@media only screen and (max-width: 1199px) {
  .main .main__media {
    height: 66vh;
    min-height: 480px;
  }
  .about .media-container {
    height: 58vh;
    min-height: 360px;
  }
  .about .about-image {
    height: 100%;
    min-height: 0;
  }
  .contact .media-container {
    height: 54vh;
    min-height: 340px;
  }
  .contact .map {
    height: 100%;
    min-height: 0;
  }
  .menu__navigation .navigation-container {
    padding: 76px 0 32px;
  }
  .navigation li {
    margin-bottom: 2.2rem;
  }
  .menu__media {
    height: 34vh;
    min-height: 0;
  }
  .menu__media .fullheight-mobile,
  .menu__media .fullheight-mobile .fullheight-mobile {
    height: 100%;
    min-height: 0;
  }
  .game-section .game-stage {
    height: 64vh;
    min-height: 380px;
  }
}

@media only screen and (max-width: 575px) {
  .navigation__item .link {
    font-size: 3.8rem;
  }
  .game-hud {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-graphic__logo {
    width: 150px;
  }
  .game-overlay__title {
    font-size: 3rem;
  }
  .map-card {
    padding: 2rem;
  }
}

/* ------------------------------------------------
   Catholic accents
   ------------------------------------------------ */
.menu-letter i {
  font-size: 4.4rem;
  color: var(--alpha-red-light);
}

.verse {
  position: relative;
  margin-top: 3rem;
  padding: 1.8rem 0 0 4.6rem;
  border-top: 1px solid rgba(228, 35, 18, 0.3);
}
.verse__icon {
  position: absolute;
  left: 0;
  top: 2.1rem;
  color: var(--alpha-red);
  font-size: 2.2rem;
}
.verse p {
  font: normal 400 1.9rem/1.45 "Oswald", sans-serif;
  color: #ffffff;
  margin: 0;
}
.verse cite {
  display: block;
  margin-top: 0.7rem;
  font: normal 400 1.2rem/1.4 "Roboto", sans-serif;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

/* Six feature cards: restore even spacing on wide screens */
@media only screen and (min-width: 768px) {
  .about .features__item:nth-of-type(3) {
    margin-bottom: 2.4rem;
  }
}

/* Short desktop screens: let inner content scroll instead of clipping */
@media only screen and (min-width: 1200px) and (max-height: 800px) {
  .inner .blocks-container {
    position: relative;
    left: auto;
    top: auto;
    -webkit-transform: none;
    transform: none;
    width: auto;
    padding: 110px 0 110px 80px;
  }
}
@media only screen and (min-width: 1400px) and (max-height: 800px) {
  .inner .blocks-container {
    padding-left: 100px;
  }
}

/* ------------------------------------------------
   Game page artwork
   ------------------------------------------------ */
.game-art {
  margin: 0;
  max-width: 460px;
}
.game-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
}
.game-art figcaption {
  margin-top: 1.2rem;
  font: normal 400 1.3rem/1.5 "Roboto", sans-serif;
  color: rgba(255, 255, 255, 0.6);
}
