@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;600;700;800&display=swap");
:root {
  color-scheme: light;
  --ink: #252821;
  --muted: #61645e;
  --paper: #f6f5f0;
  --line: #dcded5;
  --accent: #4d48bd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 "DM Sans",
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 0;
  border-radius: 10px;
  padding: 13px 21px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  min-height: 48px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover {
  filter: brightness(0.92);
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
.secondary {
  background: #eceee7;
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
header,
main,
footer {
  max-width: 1180px;
  margin: auto;
  padding: 24px 36px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}
.brand {
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 23px;
  text-decoration: none;
  letter-spacing: -1px;
}
.brand b {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
}
nav a {
  text-decoration: none;
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.hero {
  padding: 50px 0 38px;
  max-width: 820px;
}
h1,
h2,
h3 {
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -1.5px;
}
h1 {
  font-size: clamp(38px, 5.8vw, 68px);
  margin: 18px 0 22px;
  font-weight: 800;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 650px;
}
.workspace {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
}
.panel h2 {
  font-size: 23px;
  margin-top: 0;
}
.controls label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 6px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #a6aca1;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  min-height: 48px;
}
textarea {
  min-height: 135px;
  resize: vertical;
}
small,
.muted {
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.tabs button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.preview {
  background: #e9ece3;
  padding: 28px;
  border-radius: 18px;
  min-height: 450px;
}
.sheet {
  background: white;
  padding: 28px;
  box-shadow: 0 8px 24px #2028200b;
  margin-bottom: 24px;
  break-after: page;
  overflow: hidden;
}
.sheet h2 {
  font-size: 26px;
  text-align: center;
  letter-spacing: -0.5px;
}
.sheet small {
  display: block;
  text-align: center;
}
.bingo {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid #333;
  margin: 24px 0;
}
.bingo span {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 70px;
  padding: 4px;
  border: 1px solid #333;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.bingo .free {
  background: #f1efdf;
  font-weight: 800;
}
.sheet svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 32px 0;
}
.card {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.card .number {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 800;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}
.info {
  max-width: 760px;
  margin: 48px 0;
}
.info p {
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
  margin-top: 50px;
  padding-bottom: 40px;
}
footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.status {
  min-height: 26px;
  color: var(--accent);
  font-weight: 600;
}
.quiz {
  max-width: 730px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.flag {
  font-size: 110px;
  text-align: center;
  line-height: 1.7;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.answers button {
  background: white;
  border: 1px solid #a6aca1;
  color: var(--ink);
  text-align: left;
}
.answers button.correct {
  border: 2px solid #167466;
  background: #e4f4eb;
}
.answers button.wrong {
  border: 2px solid #b2412d;
  background: #fff0eb;
}
.progress {
  height: 5px;
  background: #ecece6;
  border-radius: 9px;
  margin: 20px 0;
  overflow: hidden;
}
.progress span {
  display: block;
  background: var(--accent);
  height: 100%;
  transition: width 0.2s;
}
.stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin: 24px 0;
}
.stats strong {
  display: block;
  font-size: 28px;
}
.stats span {
  font-size: 13px;
  color: var(--muted);
}
.wordgrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  font: 700 clamp(12px, 2vw, 22px)/1.8 monospace;
  text-align: center;
  margin: 20px 0;
}
.wordlist {
  font-size: 13px;
  text-align: center;
  word-spacing: 10px;
}
.compare-stage {
  min-height: 400px;
  position: relative;
  background: linear-gradient(#e2ede8, #f4f5eb);
  border-radius: 14px;
  padding: 24px;
  overflow: hidden;
}
.compare-stage svg {
  width: 100%;
  height: auto;
  display: block;
}
.metric {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
}
.legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.legend b {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border-radius: 3px;
}
.source-list {
  font-size: 14px;
}
.skip {
  position: absolute;
  top: -80px;
}
.skip:focus {
  top: 4px;
  background: white;
  padding: 10px;
  z-index: 10;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  header,
  main,
  footer {
    padding: 20px;
  }
  header {
    align-items: start;
  }
  nav {
    gap: 12px;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: end;
  }
  .hero {
    padding: 30px 0;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .preview {
    padding: 12px;
  }
  .sheet {
    padding: 16px;
  }
  .bingo span {
    font-size: 10px;
    min-height: 55px;
  }
  .quiz {
    padding: 22px;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  .flag {
    font-size: 85px;
  }
  footer {
    flex-direction: column;
  }
  .stats {
    gap: 22px;
  }
  .metric {
    font-size: 30px;
  }
}
@media print {
  @page {
    size: auto;
    margin: 12mm;
  }
  body {
    background: white;
  }
  header,
  footer,
  .hero,
  .controls,
  .tabs,
  .cards,
  .info,
  .actions,
  .status,
  .no-print {
    display: none !important;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .workspace {
    display: block;
  }
  .preview {
    padding: 0;
    background: white;
  }
  .sheet {
    box-shadow: none;
    margin: 0;
    padding: 8mm;
    min-height: 230mm;
    break-inside: avoid;
  }
  .sheet:last-child {
    break-after: auto;
  }
  .bingo span {
    min-height: 28mm;
    font-size: 14px;
  }
  .sheet svg {
    max-height: 190mm;
  }
  .wordgrid {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.ad-placement {
  text-align: center;
  min-height: 280px;
  margin: 40px auto;
  max-width: 970px;
}
.ad-placement small {
  display: block;
}
.info a {
  overflow-wrap: anywhere;
}
.info h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 740px;
  margin: auto;
  z-index: 20;
  background: white;
  border: 1px solid #a6aca1;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 32px #0002;
}
.consent p {
  margin: 0;
  font-size: 14px;
}
.consent .actions {
  margin: 12px 0 0;
}
.ad-placement iframe {
  display: block;
  margin: auto;
  max-width: 100%;
}
footer button {
  font-size: 13px;
  padding: 7px 10px;
}
@media print {
  .consent {
    display: none !important;
  }
}
/* Language navigation and visible, stable advertising placement. */
header {
  flex-wrap: wrap;
  gap: 16px;
}
.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}
.languages a[aria-current] {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.page-content {
  min-width: 0;
}
.page-layout .hero {
  padding-top: 44px;
}
.page-layout .hero h1 {
  font-size: clamp(34px, 5vw, 66px);
  overflow-wrap: anywhere;
}
.page-layout .workspace {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}
.page-layout .ad-placement {
  position: sticky;
  top: 20px;
  width: 300px;
  min-height: 285px;
  margin-top: 44px;
  padding: 12px 0;
  background: #eeeee8;
  border-radius: 12px;
}
.ad-empty {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 13px;
}
.ad-empty[hidden] {
  display: none;
}
.ad-placement small {
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
}
.catalog-grid .card {
  min-width: 0;
}
.catalog-grid h3 {
  font-size: 20px;
}
.catalog-grid p {
  font-size: 15px;
}
.word-catalog,
.flag-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
}
.flag-catalog span {
  font-size: 30px;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
}
.data-table th,
.data-table td {
  text-align: start;
  padding: 12px;
  border-bottom: 1px solid #d4d7ce;
}
.data-table th {
  font-weight: 600;
}
.info {
  overflow-wrap: anywhere;
}
.consent {
  max-height: 80vh;
  overflow: auto;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #236ab9;
  outline-offset: 3px;
}
@media (max-width: 1150px) {
  .page-layout .workspace {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .page-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .page-content {
    display: contents;
  }
  .page-content > .hero {
    order: -3;
    width: 100%;
  }
  .page-layout .ad-placement {
    position: static;
    order: -2;
    align-self: center;
    margin: 0 auto;
    width: 300px;
  }
  .page-content > section,
  .page-content > article,
  .page-content > .catalog-grid {
    width: 100%;
  }
  .page-layout .workspace {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }
}
@media (max-width: 650px) {
  .page-layout .workspace {
    grid-template-columns: 1fr;
  }
  .languages {
    width: 100%;
    justify-content: flex-start;
  }
  .page-layout .hero {
    padding-top: 20px;
  }
  .page-layout .hero h1 {
    font-size: 36px;
  }
  .consent {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 14px;
  }
  .page-layout .ad-placement {
    max-width: 100%;
  }
}
@media print {
  .page-layout {
    display: block;
  }
  .page-content {
    display: block;
  }
  .ad-placement,
  .languages,
  .catalog-grid {
    display: none !important;
  }
}
