:root {
  color-scheme: light;
  --paper: #fffaf4;
  --ink: #201840;
  --muted: #59516c;
  --blue: #3934df;
  --blue-dark: #2924b9;
  --lavender: #eeeaff;
  --yellow: #fce77a;
  --line: #ded6ee;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, fieldset { margin: 0; }
button, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #f26c4d; outline-offset: 4px; }
.wrap { width: min(100% - 88px, 1224px); margin-inline: auto; }
.visually-hidden, .language-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  transform: translateY(-150%);
  background: white;
  color: var(--ink);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid #e9dfd5; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header-inner { min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .48rem; text-decoration: none; font-size: 2rem; font-weight: 900; letter-spacing: -.09em; line-height: 1.05; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 26px;
  margin-bottom: .12rem;
  position: relative;
  background: var(--blue);
  border-radius: 52% 48% 49% 51%;
  transform: rotate(-12deg);
}
.brand-mark::before {
  content: "";
  width: 13px;
  height: 4px;
  border-radius: 4px;
  background: var(--paper);
}
.brand-mark::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 6px;
  border-top: 8px solid var(--blue);
  border-right: 7px solid transparent;
}
.main-nav, .footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1rem, 3.5vw, 3rem); }
.main-nav a, .footer-nav a { text-decoration: none; font-weight: 650; font-size: .94rem; }
.main-nav a:hover, .footer-nav a:hover { color: var(--blue); }
.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.15rem;
  padding: .88rem 1.2rem;
  min-height: 48px;
  border: 1.5px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.15;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button span { font-size: 1.18em; line-height: .85; }
.button-outline { background: transparent; border-color: currentColor; }
.button-outline:hover { background: var(--ink); color: #fff; }
.button-blue { background: var(--blue); color: white; }
.button-blue:hover { background: var(--blue-dark); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #382c67; }
.header-action { min-height: 43px; padding: .69rem .95rem; font-size: .88rem; }

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  gap: clamp(2.2rem, 6vw, 5.1rem);
  align-items: center;
  padding-block: 52px 65px;
}
.eyebrow { display: flex; align-items: center; gap: .55rem; font-weight: 750; font-size: .9rem; line-height: 1.3; }
.eyebrow > span, .language-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #f26c4d; flex: none; }
.hero h1 { margin-top: 19px; font-size: clamp(3.55rem, 6.95vw, 6.8rem); letter-spacing: -.064em; word-spacing: .035em; line-height: .95; font-weight: 900; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-description { margin-top: 26px; max-width: 420px; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.17rem); line-height: 1.56; }
.hero-action { margin-top: 28px; min-height: 53px; padding-inline: 1.25rem; }
.hero-media {
  aspect-ratio: 1.09;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: #efe0b5;
  box-shadow: 9px 10px 0 #dcd4ff;
}
.hero-media img { object-position: 53% center; }

.language-section { background: var(--lavender); padding-block: 53px 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px 28px; margin-bottom: 27px; }
.section-heading h2, .club-copy h2 { font-size: clamp(2.4rem, 5.4vw, 4.35rem); line-height: 1.02; letter-spacing: -.062em; word-spacing: .03em; font-weight: 900; }
.section-heading p { color: var(--muted); font-weight: 550; max-width: 320px; line-height: 1.5; }
.section-heading p a { color: var(--blue-dark); font-weight: 750; text-underline-offset: .25em; }
.language-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; min-inline-size: 0; }
.language-option { position: relative; min-width: 0; cursor: pointer; }
.language-card {
  min-height: 114px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  padding: 12px 12px 15px;
  border: 2px solid transparent;
  background: #fffdfc;
  border-radius: 15px;
  position: relative;
  font-weight: 750;
  font-size: clamp(.875rem, 1.35vw, 1.125rem);
  transition: border-color .16s, transform .16s;
}
.language-card:hover { border-color: #9e91df; transform: translateY(-2px); }
.language-option input:checked + .language-card { border-color: var(--blue); }
.language-option input:focus-visible + .language-card { outline: 3px solid #f26c4d; outline-offset: 3px; }
.language-code { display: inline-flex; align-items: center; justify-content: center; min-width: 47px; height: 38px; padding-inline: 8px; border-radius: 9px; background: var(--code-color); font-size: 1.12rem; font-weight: 900; letter-spacing: -.05em; }
.language-en { --code-color: #dcd4ff; }
.language-de { --code-color: #fce77a; }
.language-fr { --code-color: #fbd3e1; }
.language-zh { --code-color: #d6efbe; }
.language-es { --code-color: #ffd5bc; }
.option-check { position: absolute; top: 13px; right: 13px; width: 17px; height: 17px; border: 1.5px solid #c4bed8; border-radius: 50%; }
.language-option input:checked + .language-card .option-check { border: 5px solid var(--blue); }

.club-section { background: var(--blue); color: white; padding-block: 75px; }
.club-layout { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.club-media { aspect-ratio: 1.31; overflow: hidden; border-radius: 23px; background: #efd7bd; border: 2px solid #fffdf9; box-shadow: -8px 9px 0 #a39bff; }
.club-media img { object-position: center 53%; }
.club-eyebrow { color: #f4efff; }
.club-eyebrow > span { background: var(--yellow); }
.club-copy h2 { margin-top: 15px; }
.club-copy > p:not(.eyebrow) { font-size: clamp(1rem, 1.55vw, 1.14rem); max-width: 440px; margin-top: 22px; line-height: 1.56; color: #f4f0ff; }
.club-copy > p.club-game-intro { margin-top: 20px; font-size: .92rem; font-weight: 700; }
.club-activities { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 10px 0 0; list-style: none; }
.club-game-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 43px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fffaf4;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 750;
  transition: transform .16s, border-color .16s;
}
.club-activities li:nth-child(2) .club-game-button { background: #fbd3e1; }
.club-activities li:nth-child(3) .club-game-button { background: var(--yellow); }
.club-game-button:hover { transform: translateY(-2px); border-color: var(--ink); }

.plans-section { padding-block: 72px 80px; }
.plans-heading { align-items: center; margin-bottom: 29px; }
.language-summary { display: flex; align-items: center; gap: .6rem; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; font-size: .93rem; text-decoration: none; }
.language-summary:hover { border-color: var(--blue); }
.language-dot { background: var(--blue); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: clamp(23px, 2.45vw, 34px); border: 1.5px solid var(--ink); border-radius: 22px; }
.plan-start { background: #f1eaff; }
.plan-practice { background: #dbefd2; }
.plan-pro { background: var(--yellow); }
.plan h3 { font-size: clamp(1.85rem, 3.5vw, 3rem); line-height: 1; letter-spacing: -.075em; font-weight: 900; }
.plan-for { margin-top: .48rem; font-size: .96rem; line-height: 1.42; color: #514761; }
.price { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-top: 25px; margin-bottom: 22px; }
.price strong { white-space: nowrap; font-size: clamp(2.45rem, 4.3vw, 4.2rem); line-height: 1; letter-spacing: -.065em; word-spacing: .03em; font-weight: 900; }
.price > span { white-space: nowrap; color: #514761; font-weight: 600; }
.features { padding: 19px 0 24px; margin: 0 0 9px; border-top: 1px solid #20184033; list-style: none; }
.features li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; margin-bottom: 12px; font-weight: 650; }
.features li::before { content: "✓"; font-weight: 900; color: var(--blue-dark); }
.button-plan { width: 100%; margin-top: auto; }
.choice-status { margin-top: 18px; padding: 13px 15px; background: var(--lavender); border-radius: 11px; font-size: .94rem; }
.site-footer { background: var(--lavender); border-top: 1px solid var(--line); }
.footer-inner { min-height: 104px; }
.footer-up { text-decoration: none; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--ink); border-radius: 50%; font-size: 1.15rem; }
.footer-up:hover { background: var(--ink); color: white; }

dialog { width: min(calc(100% - 32px), 440px); max-height: calc(100% - 32px); padding: 24px; border: 1.5px solid var(--ink); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 75px #18112b55; }
dialog::backdrop { background: #1b134c91; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 2.2rem; letter-spacing: -.07em; }
.close-dialog { border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); width: 38px; height: 38px; font-size: 1.5rem; }
.dialog-field { display: grid; gap: 8px; font-weight: 650; }
.dialog-field select { width: 100%; padding: .7rem; border: 1px solid #9b91b1; border-radius: 9px; background: white; color: var(--ink); }
.dialog-plan { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem; padding: 13px; margin: 17px 0; background: var(--lavender); border-radius: 9px; }

.game-dialog { width: min(calc(100% - 28px), 590px); padding: clamp(16px, 4vw, 29px); }
.game-heading { align-items: flex-start; margin-bottom: 14px; }
.game-heading h2 { font-size: clamp(1.65rem, 5.6vw, 2.35rem); line-height: 1.06; }
.game-heading .close-dialog { flex: none; }
.game-language, .game-progress { color: var(--blue-dark); font-size: .83rem; font-weight: 750; }
.game-language { margin-bottom: .35rem; }
.game-instructions { margin-bottom: 12px; color: var(--muted); line-height: 1.5; }
.game-scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }
.game-score { display: flex; justify-content: space-between; gap: 5px; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; background: var(--lavender); font-size: .86rem; }
.game-score:nth-child(2) { background: #dbefd2; }
.game-score[data-turn] { border-color: var(--blue); }
.game-prompt { display: flex; align-items: center; gap: 10px; padding: 13px; margin: 10px 0; border: 1px solid var(--line); border-radius: 13px; background: var(--lavender); font-size: 1.35rem; font-weight: 850; }
.game-prompt .game-symbol { font-size: 1.75rem; line-height: 1; }
.game-options { display: grid; gap: 7px; }
.game-choice {
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-align: left;
  font-weight: 650;
}
.game-choice:hover:enabled { border-color: var(--blue); }
.game-choice[data-tone="correct"] { background: #dbefd2; border-color: #538255; }
.game-choice[data-tone="retry"] { background: #ffe6d9; border-color: #b34b3e; }
.game-choice[data-tone="hint"] { background: var(--yellow); border-color: var(--blue); }
.game-dialog button:disabled { cursor: default; }
.game-choice:disabled:not([data-tone]) { opacity: .65; }
.game-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.game-controls .button { min-height: 42px; padding: 8px 13px; border-radius: 10px; font-size: .88rem; }
.game-feedback { margin-top: 10px; font-size: .9rem; font-weight: 650; line-height: 1.45; }
.game-feedback:empty { margin-top: 0; }
.memory-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.memory-card {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  min-height: clamp(70px, 16vw, 100px);
  padding: 6px;
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  background: var(--blue);
  color: white;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  overflow-wrap: anywhere;
}
.memory-card:hover:enabled { box-shadow: inset 0 0 0 2px var(--yellow); }
.memory-card[data-state="open"] { background: var(--lavender); color: var(--ink); }
.memory-card[data-state="found"] { background: #dbefd2; color: var(--ink); border-color: #538255; }
.memory-card .game-symbol { font-size: 1.38rem; line-height: 1; }
.game-translation { margin: 11px 0; font-size: 1.1rem; font-weight: 800; }
.game-assembled { min-height: 47px; padding: 11px; margin-bottom: 10px; border: 1px dashed #9b91b1; border-radius: 10px; background: var(--lavender); font-weight: 800; }
.phrase-options { display: flex; flex-wrap: wrap; gap: 7px; }
.phrase-options .game-choice { font-size: .91rem; }
.game-result { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--lavender); }
.game-result h3 { margin-bottom: 6px; font-size: 1.4rem; letter-spacing: -.04em; }
.game-result p { line-height: 1.5; }

@media (max-width: 1000px) {
  .wrap { width: min(100% - 56px, 1224px); }
  .hero { min-height: auto; padding-block: 48px 58px; }
  .hero-media { aspect-ratio: .95; }
  .language-card { padding-inline: 10px; }
}

@media (max-width: 850px) {
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 750px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 70px; }
  .main-nav { display: none; }
  .brand { font-size: 1.75rem; }
  .brand-mark { width: 26px; height: 24px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 36px 47px; }
  .hero h1 { font-size: clamp(3.5rem, 10.5vw, 5.3rem); }
  .hero-description { margin-top: 19px; }
  .hero-action { margin-top: 20px; }
  .hero-media { aspect-ratio: 1.22; border-radius: 22px; box-shadow: 6px 7px 0 #dcd4ff; }
  .language-section, .club-section { padding-block: 45px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .language-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .language-card { min-height: 97px; padding: 9px; border-radius: 12px; }
  .option-check { top: 10px; right: 10px; }
  .club-layout { grid-template-columns: 1fr; gap: 28px; }
  .club-media { aspect-ratio: 1.35; border-radius: 18px; box-shadow: -5px 6px 0 #a39bff; }
  .club-copy > p:not(.eyebrow) { margin-top: 14px; }
  .club-activities { margin-top: 15px; }
  .plans-section { padding-block: 46px; }
  .plan-grid { gap: 13px; }
  .footer-inner { min-height: 90px; flex-wrap: wrap; gap: 15px; padding-block: 17px; }
  .footer-nav { order: 3; width: 100%; gap: 9px 20px; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: clamp(3.07rem, 11vw, 4.5rem); }
  .language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { padding: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
