:root {
  color-scheme: light;
  --navy: #061d3d;
  --gold: #e7a21a;
  --aqua: #38d5cc;
  --sun: #ffdd58;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--navy);
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chooser {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  overflow: hidden;
  background: linear-gradient(90deg, #dffcf7 0%, #78e1d7 38%, #204e68 51%, #071d3e 67%, #03142d 100%);
}

.world {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 80px);
  overflow: hidden;
  text-decoration: none;
  transition: filter 280ms ease;
}

.world::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 300ms ease;
}

.world--kids::before {
  background:
    radial-gradient(circle at 48% 42%, rgba(67, 220, 255, .42), transparent 31%),
    radial-gradient(circle at 70% 72%, rgba(14, 214, 224, .25), transparent 38%),
    linear-gradient(135deg, #006eea 0%, #075bd8 45%, #033fba 100%);
}

.world--language::before {
  background: #001c40;
}

.world--language { padding: 24px; }

.world:hover::before,
.world:focus-visible::before { transform: scale(1.035); }

.world:focus-visible { outline: 4px solid #fff; outline-offset: -8px; }
.glow { position: absolute; inset: 0; pointer-events: none; }

.world img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(78%, 560px);
  max-height: 70svh;
  object-fit: contain;
  filter: drop-shadow(0 24px 45px rgba(0, 23, 48, .18));
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), filter 300ms ease;
}

.world:hover img,
.world:focus-visible img { transform: translateY(-7px) scale(1.015); }

.world:hover img { filter: drop-shadow(0 28px 60px rgba(0, 23, 48, .28)); }

.kids-lockup {
  position: relative;
  z-index: 1;
  width: min(88%, 620px);
  height: min(82svh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vh, 16px);
}

.kids-name {
  width: min(92%, 540px) !important;
  max-height: none !important;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,30,75,.18));
}

.kids-sam {
  width: auto;
  max-width: min(76%, 470px);
  height: min(57svh, 560px);
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0,30,75,.18));
}

.language-crop {
  position: relative;
  z-index: 1;
  display: block;
  width: min(96%, 980px);
  aspect-ratio: 3.4 / 1;
  overflow: hidden;
}

.language-crop img {
  position: absolute;
  z-index: 1;
  display: block;
  width: 145.81%;
  max-width: none;
  max-height: none;
  left: -22.06%;
  top: -45%;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transition: transform 500ms cubic-bezier(.2,.8,.2,1);
}

.seam {
  position: relative;
  z-index: 3;
  min-height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.6) 15%, rgba(255,255,255,.72) 85%, transparent);
  box-shadow: 0 0 40px rgba(255,255,255,.24);
}

.seam span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(7, 29, 61, .72);
  color: rgba(255,255,255,.9);
  font: 700 13px/1 Georgia, serif;
  backdrop-filter: blur(14px);
}

@media (max-width: 760px) {
  .chooser {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    grid-template-rows: 1fr;
    background: linear-gradient(90deg, #0667df 0%, #064dc2 42%, #173f5c 52%, #061a39 72%, #021229 100%);
  }

  .world {
    min-height: 100svh;
    padding: 18px 8px;
  }

  .kids-lockup { width: 100%; height: 90svh; gap: 8px; }
  .kids-name { width: 98% !important; }
  .kids-sam { width: 92%; max-width: 260px; height: auto; }
  .language-crop { width: 100%; }

  .seam {
    min-height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255,255,255,.7) 15%, rgba(255,255,255,.7) 85%, transparent);
  }

  .seam span { width: 32px; height: 32px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .world::before, .world img { transition: none; }
}
