@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700&display=swap");
@import "./tokens.css";
@import "./base.css";
@import "./header.css?v=20260711";
@import "./home.css?v=20260711-2";
@import "./cards.css";
@import "./age-page.css";
@import "./game-page.css";
@import "./info-page.css";
@import "./sections.css";
@import "./responsive.css";

[hidden] {
  display: none !important;
}

.site-header .brand::before,
.site-header .brand img,
.footer-brand::before {
  display: none !important;
}

.site-header .brand img.site-brand-logo {
  display: block !important;
  width: 160px;
  height: auto;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

@media (max-width: 640px) {
  .site-header .brand img.site-brand-logo {
    width: 142px;
  }
}

.home-page .home-footer {
  display: block;
  justify-items: initial;
  gap: 0;
  padding: clamp(44px, 7vw, 72px) clamp(22px, 5vw, 72px) 34px;
  background: #05b548;
  color: var(--white);
}

.home-page .home-footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 82px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.home-page .home-footer-brand-block {
  display: grid;
  align-content: start;
  gap: 12px;
}

.home-page .home-footer-brand-block strong {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 0.9;
  text-shadow: none;
}

.home-page .home-footer-brand-block p {
  max-width: 18rem;
  margin: 0;
  color: rgba(240, 255, 243, 0.84);
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.42;
}

.home-page .home-footer-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.home-page .home-footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.home-page .home-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-page .home-footer a,
.home-page .home-footer a:visited {
  display: inline;
  width: fit-content;
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(230, 255, 235, 0.82);
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  font-weight: 800;
  line-height: 1.25;
  padding: 0 !important;
  text-decoration: none;
}

.home-page .home-footer a:hover,
.home-page .home-footer a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.home-page .home-footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.home-page .home-footer a.home-footer-social-link,
.home-page .home-footer a.home-footer-social-link:visited {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

.home-page .home-footer a.home-footer-social-link:hover,
.home-page .home-footer a.home-footer-social-link:focus-visible {
  background: rgba(255, 255, 255, 0.26) !important;
  text-decoration: none;
  transform: translateY(-2px);
}

.home-footer-social-link span {
  text-decoration: none;
}

.home-footer-social-link:hover span,
.home-footer-social-link:focus-visible span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.home-footer-social-link .social-logo {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.home-footer-social-link .social-logo-youtube rect {
  fill: #ff2b2b;
}

.home-footer-social-link .social-logo-youtube path {
  fill: var(--white);
}

.home-footer-social-link .social-logo-instagram {
  fill: none;
  stroke: #ffd2ef;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.7;
}

.video-card-youtube .video-picture {
  background: #10182f;
}

.video-card-youtube img,
.video-library-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card-youtube .video-picture::after,
.video-library-thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(12, 15, 35, 0.28), transparent 55%);
  pointer-events: none;
}

.video-card-youtube .play-dot,
.video-library-thumb .play-dot {
  background: rgba(255, 122, 61, 0.95);
}

.videos-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(114, 211, 231, 0.22) 0 140px, transparent 142px),
    linear-gradient(180deg, #5dd3e8 0 270px, #a7e85b 271px 420px, #2b9844 421px 100%);
}

.videos-main {
  width: min(1120px, calc(100% - 32px));
}

.videos-hero {
  border-color: var(--orange);
}

.videos-hero h1 {
  color: var(--ink);
}

.video-library-card {
  border-color: var(--orange);
}

.video-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.video-library-head h2 {
  margin-top: 6px;
}

.video-back-link {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  border-radius: 999px;
  background: #72d3e7;
  color: #241a18;
  font-size: 0.9rem;
  font-weight: 950;
  padding: 9px 18px;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(21, 23, 43, 0.16);
}

.video-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-library-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 5px solid var(--yellow);
  border-radius: 18px;
  background: #fff7cf;
  color: var(--ink);
  padding: 12px;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(21, 23, 43, 0.14);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.video-library-item:nth-child(2) {
  border-color: #70d3e5;
  background: #e3f9ff;
}

.video-library-item:nth-child(3) {
  border-color: #8068d9;
  background: #f3ecff;
}

.video-library-item:nth-child(4) {
  border-color: #18b792;
  background: #e1fff3;
}

.video-library-item:hover,
.video-library-item:focus-visible {
  box-shadow: 0 10px 0 rgba(21, 23, 43, 0.16);
  transform: translateY(-2px);
}

.video-library-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #dff7ff;
}

.video-library-item strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 950;
  line-height: 1;
}

.video-library-item > span:last-child {
  color: rgba(21, 23, 43, 0.78);
  font-family: "Nunito", sans-serif;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.35;
}

.home-page .home-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: clamp(36px, 8vw, 92px);
  color: rgba(240, 255, 243, 0.86);
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.home-page .home-footer-bottom p,
.home-page .home-footer-bottom small {
  margin: 0;
  font: inherit;
}

@media (max-width: 980px) {
  .home-page .home-footer-inner {
    grid-template-columns: 1fr;
  }

  .home-page .home-footer-columns {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .video-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-page .home-footer {
    padding: 32px 18px 26px;
  }

  .home-page .home-footer-inner {
    gap: 28px;
  }

  .home-page .home-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .home-page .home-footer-brand-block strong {
    font-size: 2.15rem;
  }

  .home-page .home-footer a,
  .home-page .home-footer a:visited {
    font-size: 0.9rem;
  }

  .home-page .home-footer-bottom {
    display: grid;
    margin-top: 18px;
    font-size: 0.78rem;
  }

  .video-library-head {
    display: grid;
  }

  .video-back-link {
    width: fit-content;
  }

  .video-library-card {
    padding: 16px;
  }
}

.brand-footer {
  display: block;
  justify-items: initial;
  gap: 0;
  padding: clamp(44px, 7vw, 72px) clamp(22px, 5vw, 72px) 34px;
  background: #05b548;
  color: var(--white);
}

.brand-footer .home-footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 82px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brand-footer .home-footer-brand-block {
  display: grid;
  align-content: start;
  gap: 12px;
}

.brand-footer .home-footer-brand-block strong {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 0.9;
  text-shadow: none;
}

.brand-footer .home-footer-brand-block p {
  max-width: 18rem;
  margin: 0;
  color: rgba(240, 255, 243, 0.84);
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.42;
}

.brand-footer .home-footer-columns {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.brand-footer .home-footer-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.brand-footer h2 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.brand-footer a,
.brand-footer a:visited {
  display: inline;
  width: fit-content;
  min-height: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(230, 255, 235, 0.82);
  font-family: "Nunito", sans-serif;
  font-size: clamp(0.95rem, 1.35vw, 1.08rem);
  font-weight: 800;
  line-height: 1.25;
  padding: 0 !important;
  text-decoration: none;
}

.brand-footer a:hover,
.brand-footer a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.brand-footer .home-footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.brand-footer a.home-footer-social-link,
.brand-footer a.home-footer-social-link:visited {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

.brand-footer a.home-footer-social-link:hover,
.brand-footer a.home-footer-social-link:focus-visible {
  background: rgba(255, 255, 255, 0.26) !important;
  text-decoration: none;
  transform: translateY(-2px);
}

.brand-footer .home-footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: clamp(36px, 8vw, 92px);
  color: rgba(240, 255, 243, 0.86);
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.brand-footer .home-footer-bottom p,
.brand-footer .home-footer-bottom small {
  margin: 0;
  font: inherit;
}

body.videos-page {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 26%, rgba(221, 248, 255, 0.74) 0 92px, transparent 94px),
    radial-gradient(circle at 90% 35%, rgba(221, 248, 255, 0.62) 0 112px, transparent 114px),
    linear-gradient(180deg, #5bd3e8 0 42%, #a7e85b 42% 58%, #2b9844 58% 100%);
}

body.videos-page::before,
body.videos-page::after {
  position: fixed;
  content: "";
  pointer-events: none;
  z-index: 0;
}

body.videos-page::before {
  left: -8%;
  right: -8%;
  bottom: 34%;
  height: clamp(110px, 18vw, 190px);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #86df29;
  box-shadow: inset 0 28px 0 rgba(200, 255, 89, 0.62);
}

body.videos-page::after {
  left: 10%;
  top: 132px;
  width: 210px;
  height: 74px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 28% 48%, var(--white) 0 45px, transparent 46px),
    radial-gradient(circle at 52% 28%, var(--white) 0 50px, transparent 51px),
    radial-gradient(circle at 76% 54%, var(--white) 0 42px, transparent 43px);
  filter: drop-shadow(0 10px 0 rgba(32, 154, 183, 0.2));
}

body.videos-page .site-header,
body.videos-page .videos-main,
body.videos-page .brand-footer {
  position: relative;
  z-index: 1;
}

body.videos-page .videos-main {
  width: min(1120px, calc(100% - 32px));
  padding: clamp(32px, 6vw, 64px) 0 clamp(42px, 7vw, 72px);
}

body.videos-page .info-hero,
body.videos-page .video-library-card {
  border: 5px solid var(--orange);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 0 rgba(21, 23, 43, 0.14);
}

body.videos-page .info-hero h1 {
  color: var(--ink);
}

@media (max-width: 980px) {
  .brand-footer .home-footer-inner {
    grid-template-columns: 1fr;
  }

  .brand-footer .home-footer-columns {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-footer {
    padding: 32px 18px 26px;
  }

  .brand-footer .home-footer-inner {
    gap: 28px;
  }

  .brand-footer .home-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .brand-footer .home-footer-brand-block strong {
    font-size: 2.15rem;
  }

  .brand-footer a,
  .brand-footer a:visited {
    font-size: 0.9rem;
  }

  .brand-footer .home-footer-bottom {
    display: grid;
    margin-top: 18px;
    font-size: 0.78rem;
  }

  body.videos-page::after {
    display: none;
  }

  body.videos-page .videos-main {
    width: min(100% - 24px, 560px);
    padding-top: 26px;
  }

  body.videos-page .info-hero,
  body.videos-page .video-library-card {
    border-width: 4px;
    border-radius: 22px;
  }
}

/* Keep every homepage section on the same responsive content grid. */
.home-page .brand-footer .home-footer-inner {
  width: min(var(--home-content-width), 100%);
}

.home-page .brand-footer .home-footer-columns {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

@media (max-width: 1120px) {
  .home-page .brand-footer .home-footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-page .brand-footer .home-footer-columns {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 640px) {
  .home-page .brand-footer .home-footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.videos-page {
  background: #2c9444;
}

body.videos-page::before,
body.videos-page::after {
  display: none;
}

body.videos-page .videos-main {
  width: auto;
  padding: 0 14px 42px;
}

body.videos-page .nav-pill.is-current {
  background: var(--yellow);
  color: #583b00;
}

.age-games-page.videos-page .video-summary {
  min-height: 230px;
  padding: 60px 0 24px;
}

.age-games-page.videos-page .video-summary h1 {
  max-width: none;
  color: var(--white);
  font-size: clamp(3.25rem, 5.6vw, 5rem);
  line-height: 0.92;
  text-shadow: 0 5px 0 rgba(0, 91, 142, 0.26);
}

.age-games-page.videos-page .video-summary p:not(.screen-label) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.94);
}

.age-games-page.videos-page .video-library-card {
  margin-top: 4px;
  border: 6px solid var(--orange);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
  box-shadow: 0 9px 0 rgba(21, 23, 43, 0.2);
}

.age-games-page.videos-page .video-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.age-games-page.videos-page .video-library-item {
  grid-template-rows: auto auto auto;
  gap: 0;
  min-height: 0;
  overflow: hidden;
  border: 5px solid var(--card-accent, var(--yellow));
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 8px 0 rgba(21, 23, 43, 0.18);
}

.age-games-page.videos-page .video-letter-card {
  --card-accent: var(--yellow);
  --caption-bg: #ffd232;
}

.age-games-page.videos-page .video-number-card {
  --card-accent: #72d3e7;
  --caption-bg: #72d3e7;
}

.age-games-page.videos-page .video-shape-card {
  --card-accent: #8070d9;
  --caption-bg: #2f6fec;
  color: var(--white);
}

.age-games-page.videos-page .video-color-card {
  --card-accent: #26b8ae;
  --caption-bg: #12b886;
  color: #063d2f;
}

.age-games-page.videos-page .video-library-thumb {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 5px solid var(--white);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #dff7ff;
}

.age-games-page.videos-page .video-library-thumb::after {
  background: linear-gradient(to top, rgba(12, 15, 35, 0.28), transparent 55%);
}

.age-games-page.videos-page .video-library-item .picture-caption {
  min-height: 112px;
  border-left: 5px solid var(--white);
  border-right: 5px solid var(--white);
  background: var(--caption-bg, #ffd232);
  color: currentColor;
}

.age-games-page.videos-page .video-library-item .game-tags {
  border: 5px solid var(--white);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--caption-bg, #ffd232);
  color: currentColor;
  font: inherit;
  padding: 0 16px 16px;
}

.age-games-page.videos-page .video-library-item .game-tags span {
  border-color: rgba(21, 23, 43, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.age-games-page.videos-page .video-library-item:hover,
.age-games-page.videos-page .video-library-item:focus-visible {
  box-shadow: 0 4px 0 rgba(21, 23, 43, 0.2);
  transform: translateY(4px);
}

@media (max-width: 980px) {
  .age-games-page.videos-page .video-library-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.videos-page .videos-main {
    width: auto;
    padding: 0 12px 28px;
  }

  .age-games-page.videos-page .video-summary {
    min-height: 226px;
    padding: 28px 0 18px;
  }

  .age-games-page.videos-page .video-summary h1 {
    max-width: 360px;
    font-size: 2.55rem;
    white-space: normal;
  }

  .age-games-page.videos-page .video-library-card {
    border-width: 4px;
    border-radius: 8px;
    padding: 14px;
  }

  .age-games-page.videos-page .video-library-thumb {
    min-height: 174px;
  }
}
