:root {
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --green: oklch(0.72 0.22 145);
  --blue: oklch(0.65 0.2 240);
  --gold: oklch(0.78 0.2 70);
  --ink: oklch(0.25 0.05 260);
  --parchment: oklch(0.96 0.04 85);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
  color: white;
  font-family: var(--font-body);
  background:
    linear-gradient(
      to bottom,
      oklch(0.82 0.09 235),
      oklch(0.72 0.13 245) 48%,
      oklch(0.55 0.18 260)
    );
}

body.modal-open {
  overflow: hidden;
}

button,
select,
a {
  font: inherit;
}

button,
select {
  color: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.language-switcher {
  position: relative;
  z-index: 110;
  flex: 0 0 auto;
}

.language-current {
  display: inline-flex;
  min-width: 4.6rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .5rem .85rem;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 999px;
  cursor: pointer;
  color: white;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .875rem;
  font-weight: 800;
  box-shadow: 0 4px 0 rgba(0,0,0,.12);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.language-current:hover,
.language-current:focus-visible {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.7);
  outline: none;
}

.language-current:active {
  transform: translateY(2px);
}

.language-chevron {
  display: inline-block;
  transform: translateY(-1px);
  transition: transform .18s ease;
}

.language-switcher.is-open .language-chevron {
  transform: translateY(1px) rotate(180deg);
}

.language-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + .55rem);
  left: 0;
  min-width: 5rem;
  overflow: hidden;
  padding: .35rem;
  border: 2px solid rgba(255,255,255,.48);
  border-radius: 1rem;
  background: rgba(37, 88, 180, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 0 rgba(0,0,0,.14), 0 18px 34px rgba(0,0,0,.2);
}

.language-menu[hidden] {
  display: none;
}

.language-option {
  position: relative;
  z-index: 1;
  display: block;
  pointer-events: auto;
  padding: .55rem .7rem;
  border-radius: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  transition: background .15s ease, transform .15s ease;
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(255,255,255,.18);
  outline: none;
}

.language-option.is-active {
  color: oklch(0.25 0.07 60);
  background: var(--gold);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 6px 0 rgba(0,0,0,.25);
  outline: 4px solid rgba(255,255,255,.9);
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 3px 0 rgba(0,0,0,.25);
}

.header-spacer {
  flex: 1 1 auto;
}

.open-game {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: .875rem;
  font-weight: 800;
  transition: background .2s ease;
}

.open-game:hover {
  background: rgba(255,255,255,.25);
}

.hero {
  position: relative;
  z-index: 10;
  padding-top: 3.5rem;
  padding-bottom: 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.ribbon {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .5rem 1.25rem;
  border-radius: .75rem;
  color: oklch(0.25 0.07 60);
  background: var(--gold);
  box-shadow: 0 4px 0 oklch(0.55 0.18 60), inset 0 2px 0 rgba(255,255,255,.5);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.2rem, 6.2vw, 5rem);
  line-height: .95;
  text-shadow: 0 6px 0 rgba(0,0,0,.25);
}

.hero-title-accent {
  color: oklch(0.8245 0.22 145);
}

.hero-copy {
  max-width: 39rem;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.92);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.48;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
}

.microcopy {
  margin-top: 1rem;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
}

.btn-candy-green,
.btn-candy-blue {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.5rem;
  border-radius: 1rem;
  cursor: pointer;
  color: white;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-transform: uppercase;
  box-shadow: 0 6px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.45);
  transition: transform .12s ease, filter .2s ease;
}

.btn-candy-green {
  background: var(--green);
}

.btn-candy-blue {
  background: var(--blue);
}

.btn-candy-green:hover,
.btn-candy-blue:hover {
  filter: brightness(1.05);
}

.btn-candy-green:active,
.btn-candy-blue:active {
  transform: translateY(4px);
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
}

.hero-glow {
  position: absolute;
  inset: -1.25rem;
  border-radius: 2rem;
  background: rgba(255,255,255,.2);
  filter: blur(28px);
}

.hero-shot {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 2rem;
  outline: 8px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 0 rgba(0,0,0,.2);
}

.sticker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 1rem;
  color: var(--ink);
  background: rgba(255,255,255,.95);
  outline: 4px solid white;
  box-shadow: 0 8px 0 rgba(0,0,0,.18), 0 16px 30px rgba(0,0,0,.25);
  font-family: var(--font-display);
  font-weight: 700;
}

.sticker-bottom {
  bottom: -1rem;
  left: -1rem;
}

.sticker-top {
  top: -1rem;
  right: -1rem;
}

.sticker .icon-gold {
  color: var(--gold);
}

.sticker .icon-blue {
  color: oklch(0.6 0.2 260);
}

.features,
.learn-more,
.follow,
.cta-section {
  position: relative;
  z-index: 10;
}

.features {
  padding-bottom: 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 1.5rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 0 rgba(0,0,0,.15);
}

.feature-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: .75rem;
  place-items: center;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 1rem;
  background: rgba(255,255,255,.25);
}

.feature-card h3 {
  font-size: 1.5rem;
}

.feature-card p {
  margin-top: .25rem;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
  text-wrap: pretty;
}

.learn-more {
  padding-bottom: 4rem;
}

.section-heading {
  max-width: 46rem;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-shadow: 0 4px 0 rgba(0,0,0,.18);
}

.section-heading p {
  margin-top: .75rem;
  color: rgba(255,255,255,.9);
  font-size: 1.05rem;
  line-height: 1.55;
}

.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.learning-card {
  min-height: 100%;
  padding: 1.6rem;
  border-radius: 1.5rem;
  color: var(--ink);
  background: var(--parchment);
  outline: 4px solid rgba(255,255,255,.9);
  box-shadow: 0 12px 0 rgba(0,0,0,.18);
}

.learning-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .75rem;
  color: oklch(0.45 0.12 260);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.learning-card h3 {
  font-size: 1.65rem;
}

.learning-card p {
  margin-top: .65rem;
  color: oklch(0.35 0.05 260);
  line-height: 1.58;
}

.follow {
  padding-bottom: 4rem;
}

.follow-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 1.75rem;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 0 rgba(0,0,0,.14);
}

.follow-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.follow-copy p {
  max-width: 38rem;
  margin-top: .5rem;
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .72rem 1rem;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform .15s ease, background .2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.27);
}

.cta-section {
  padding-bottom: 5rem;
}

.cta-card {
  padding: 2rem;
  border-radius: 1.5rem;
  color: var(--ink);
  background: var(--parchment);
  outline: 4px solid white;
  box-shadow: 0 16px 0 rgba(0,0,0,.2);
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.cta-card p {
  max-width: 42rem;
  margin: .75rem auto 0;
  color: oklch(0.35 0.05 260);
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

.site-footer {
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
  color: rgba(255,255,255,.8);
  text-align: center;
  font-size: .875rem;
}

.cloud-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  opacity: .7;
}

.cloud svg {
  width: 100%;
  height: auto;
}

.cloud-1 {
  top: 8%;
  left: -5%;
  width: min(38vw, 28rem);
  animation: float-y 8s ease-in-out 0s infinite;
}

.cloud-2 {
  top: 22%;
  right: -6%;
  width: min(42vw, 32rem);
  animation: float-y 8s ease-in-out 1.5s infinite;
}

.cloud-3 {
  bottom: 12%;
  left: 8%;
  width: min(34vw, 28rem);
  animation: float-y 8s ease-in-out .8s infinite;
}

.cloud-4 {
  right: 6%;
  bottom: 28%;
  width: min(30vw, 24rem);
  animation: float-y 8s ease-in-out 2.2s infinite;
}

.anim-float {
  animation: float-y 3.5s ease-in-out infinite;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal[hidden] {
  display: none;
}

.modal-dialog {
  position: relative;
  width: min(100%, 42rem);
  height: min(85vh, 55rem);
  overflow: hidden;
  border-radius: 1.5rem;
  background: white;
  outline: 4px solid white;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}

.modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 2;
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  color: white;
  background: oklch(0.65 0.24 25);
  outline: 4px solid white;
  box-shadow: 0 4px 0 rgba(0,0,0,.3);
  font-weight: 800;
}

.modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 850px) {
  .container {
    width: min(100% - 2rem, 72rem);
  }

  .site-header {
    gap: .7rem;
  }

  .brand {
    gap: .55rem;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .hero {
    padding-top: 2rem;
    padding-bottom: 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-media {
    max-width: 38rem;
  }

  .feature-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .follow-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, 72rem);
  }

  .site-header {
    flex-wrap: wrap;
  }

  .language-switcher {
    order: 1;
  }

  .brand {
    order: 2;
  }

  .header-spacer {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.25rem);
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-shot {
    border-radius: 1.35rem;
    outline-width: 5px;
    box-shadow: 0 14px 0 rgba(0,0,0,.2);
  }

  .sticker {
    padding: .45rem .7rem;
    font-size: .88rem;
    outline-width: 3px;
  }

  .sticker-bottom {
    left: .25rem;
  }

  .sticker-top {
    right: .25rem;
  }

  .btn-candy-green,
  .btn-candy-blue {
    width: 100%;
  }

  .cloud {
    opacity: .48;
  }

  .follow-card,
  .cta-card {
    padding: 1.35rem;
  }

  .social-links {
    width: 100%;
  }

  .social-link {
    flex: 1 1 9rem;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}