:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: #1d1d1f;
  background: #f5f5f7;
  --page: #f5f5f7;
  --panel: #fff;
  --panel-soft: #f5f5f7;
  --blue: #0066dc;
  --green: #0066dc;
  --muted: #6e6e73;
  --line: #e9e9ed;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, select, input { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #75aaff; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 14px 20px; border-radius: 12px; background: var(--blue); color: white; }
.skip-link:focus { top: 12px; }
.header { max-width: 1184px; min-height: 88px; margin: auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e4e4e9; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 720; letter-spacing: -1.2px; }
.brand-icon { width: 36px; height: 36px; display: grid; place-content: center; grid-auto-flow: column; background: #0071e3; border-radius: 11px; color: #fff; font-size: 29px; font-weight: 650; line-height: 1; letter-spacing: -2px; padding: 0 2px 4px 0; box-shadow: inset 0 1px 1px #ffffff40, 0 2px 4px #0071e310; }
.brand-icon span { color: #b7d9ff; }
.header-note { display: flex; align-items: center; gap: 10px; color: #65656b; font-size: 11px; font-weight: 600; }
.header-note > span:not(.header-caption) { background: #ebebef; border-radius: 6px; padding: 5px 7px; }
.header-note svg { width: 14px; height: 14px; color: #8e8e93; }
.header-caption { margin-left: 5px; font-size: 12px; font-weight: 400; }
.save-status { display: flex; align-items: center; gap: 7px; color: #707076; font-size: 11px; }
.save-status svg { width: 16px; height: 16px; color: #5d8a6c; }
main { max-width: 1184px; margin: auto; padding: 0 40px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0 32px; }
.eyebrow, .section-label { font-size: 10px; font-weight: 650; letter-spacing: 1.5px; color: var(--muted); }
.eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: 1.6px; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.13; letter-spacing: -1.9px; font-weight: 700; }
h1 > span { color: #0071e3; }
.intro p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 12px 0 0; }
.lesson-badge { display: flex; align-items: center; gap: 12px; padding: 14px 0 0; color: #7a7a80; }
.lesson-badge > svg { width: 38px; height: 38px; padding: 7px; border-radius: 11px; background: #e8edf5; color: #5277a2; }
.lesson-badge div { display: grid; gap: 5px; }
.lesson-badge strong { color: #4f4f55; font-size: 12px; font-weight: 600; }
.lesson-badge span { font-size: 11px; }
.workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.panel, .game, .word-column, .field, .exercise, .settings-content { min-width: 0; }
.collection-card, .game, .stat-card { background: var(--panel); border: 1px solid #e9e9ed; border-radius: 22px; }
.collection-card { padding: 24px 20px 22px; }
.settings-content h2 { margin: 8px 0 26px; font-size: 20px; line-height: 1.25; letter-spacing: -.65px; }
summary { min-height: 48px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.field + .field, .exercise-settings { margin-top: 18px; }
label { display: block; font-size: 12px; font-weight: 550; color: #515157; margin: 0 0 9px; }
select { appearance: none; width: 100%; min-height: 48px; padding: 12px 34px 12px 13px; border: 1px solid transparent; border-radius: 11px; background: #f3f3f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2374747b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 6 3-3 3 3M5 10l3 3 3-3'/%3E%3C/svg%3E") no-repeat right 11px center; font-size: 13px; cursor: pointer; text-overflow: ellipsis; }
select:focus-visible { border-color: #80aff1; }
.field-note { color: var(--muted); font-size: 11px; margin: 7px 0 0; line-height: 1.5; }
.collection-info { color: var(--muted); font-size: 11px; padding: 15px 0 20px; }
#collection-description { margin: 8px 0 0; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 12px 16px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 550; transition: background .18s, transform .18s, box-shadow .18s; }
.primary { color: #fff; background: #0071e3; }
.primary:disabled { color: #9c9ca3; background: #eeeef2; }
.secondary { background: #eef4fe; color: var(--blue); }
.primary svg, .secondary svg { width: 17px; height: 17px; }
.hint { margin: 11px 0 0; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.7; }
.collection-progress { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.progress-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; color: var(--muted); font-size: 10px; }
.progress-heading strong { color: #4c4c53; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
progress { appearance: none; display: block; width: 100%; height: 5px; border: 0; border-radius: 20px; overflow: hidden; background: #eeeef2; }
progress::-webkit-progress-bar { background: #eeeef2; border-radius: 20px; }
progress::-webkit-progress-value { background: #0071e3; border-radius: 20px; transition: width .3s ease; }
progress::-moz-progress-bar { background: #0071e3; border-radius: 20px; }
.collection-progress progress { margin-top: 10px; height: 4px; }
.learning-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.stat-card { padding: 17px 16px; border-radius: 18px; display: grid; justify-items: start; gap: 6px; }
.stat-icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 5px; border-radius: 9px; }
.stat-icon svg { width: 17px; height: 17px; stroke-width: 1.7; }
.learned-icon { background: #edf3ff; color: #3478d6; }
.streak-icon { background: #fff1e6; color: #d27b34; }
.stat-card strong { font-size: 25px; line-height: 1.1; font-weight: 650; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stat-card > span:last-child { font-size: 11px; color: var(--muted); }
.sidebar-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 19px 0 0; color: #7b7b82; font-size: 10px; line-height: 1.7; }
.sidebar-note svg { width: 21px; height: 21px; color: #929299; }
.game { position: relative; padding: 26px 28px 20px; border-radius: 26px; box-shadow: 0 4px 24px #20203803; scroll-margin-top: 16px; }
.game:focus { outline: none; }
.game-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.game-header .section-label { font-size: 9px; letter-spacing: 1.4px; }
.game-header h2 { font-size: 25px; line-height: 1.2; font-weight: 650; letter-spacing: -.8px; margin: 7px 0 0; }
.game-actions { display: flex; align-items: center; gap: 10px; }
.session-score { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #6d6d74; font-size: 11px; white-space: nowrap; }
.session-score > svg { color: #53956a; width: 17px; height: 17px; }
.session-score #session-count { color: #3d684c; font-weight: 650; }
.sound-toggle { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; color: #727278; background: #f5f5f7; }
.sound-toggle svg { width: 19px; height: 19px; }
.sound-toggle[aria-pressed="true"] .sound-off, .sound-toggle[aria-pressed="false"] .sound-on { display: none; }
.lesson-tracker { display: flex; flex-direction: column; gap: 11px; margin: 16px 0 22px; }
#lesson-progress { color: var(--muted); font-size: 11px; line-height: 1.3; margin: 0; font-variant-numeric: tabular-nums; }
.lesson-tracker progress { height: 4px; }
.game[data-view="columns"] .lesson-tracker { display: none; }
.game[data-view="columns"] .view-switch { margin-top: 22px; }
.view-switch { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 4px; border-radius: 13px; background: #f0f0f3; }
.view-switch button { min-height: 44px; padding: 8px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 12px; color: #717178; white-space: nowrap; transition: color .2s, background .2s, box-shadow .2s; }
.view-switch button svg { width: 17px; height: 17px; stroke-width: 1.6; }
.view-switch button[aria-pressed="true"] { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 5px #1c1c2814, 0 0 0 1px #00000003; }
.view-switch button[aria-pressed="true"] svg { color: #0071e3; }
.game-instructions { margin: 22px 0 19px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.column-labels, .board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.column-labels { margin-bottom: 10px; color: #77777e; font-size: 11px; }
.column-labels > span { display: flex; align-items: center; gap: 7px; padding: 0 4px; }
.language-code { font-size: 9px; font-weight: 650; background: #f0f0f4; color: #7d7d85; border-radius: 4px; padding: 3px 4px; }
.word-column { display: flex; flex-direction: column; gap: 10px; }
.word { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 62px; height: auto; padding: 13px 15px; border: 1px solid #e2e4e9; border-radius: 13px; background: #fff; color: #303038; text-align: center; font-size: 15px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.word.selected { background: #edf5ff; border-color: #0071e3; color: #005ecb; box-shadow: inset 0 0 0 .5px #0071e3; }
.word.selected::after { content: ''; position: absolute; top: 7px; right: 7px; width: 5px; height: 5px; border-radius: 50%; background: #0071e3; }
.word.correct, .choices .word.choice-correct { color: #247144; background: #ecf8ef; border-color: #68b183; }
.word.correct { animation: pair-found 420ms ease-in forwards; pointer-events: none; }
.word.wrong, .choices .word.choice-wrong { color: #af3e35; background: #fff1ef; border-color: #e59e96; }
.word.wrong { animation: pair-wrong 300ms ease-out; }
.word.empty { visibility: hidden; }
.status { min-height: 43px; padding: 15px 0 11px; font-size: 12px; line-height: 1.5; color: #62705f; }
.status[data-state="ready"] { color: var(--muted); }
.status[data-state="error"] { color: #b34a35; }
.status[data-state="loading"] { color: var(--blue); }
.game[data-view="choice"] .status[data-state="ready"], .game[data-view="typing"] .status[data-state="ready"] { display: none; }
.game-footer { display: flex; align-items: center; gap: 7px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.6; color: #7b7b82; }
.game-footer svg { width: 16px; height: 16px; color: #93939a; }
.celebration { position: absolute; top: 93px; left: 50%; transform: translateX(-50%); z-index: 6; width: max-content; max-width: calc(100% - 32px); padding: 11px 18px; border: 1px solid #d1e9d9; border-radius: 14px; background: #f0faf3; box-shadow: 0 4px 18px #214a2d0d; color: #257044; font-size: 13px; line-height: 1.5; text-align: center; pointer-events: none; animation: celebrate-in .25s ease-out; }
.prompt-card { text-align: center; background: #f7f8fb; border: 1px solid #f0f1f5; border-radius: 18px; padding: 28px 20px; margin: 0 0 20px; }
.exercise-direction { display: block; font-size: 10px; color: #707b8c; line-height: 1.4; }
.prompt-word { margin: 14px 0 10px; font-size: clamp(25px, 3vw, 34px); line-height: 1.25; font-weight: 600; letter-spacing: -.9px; overflow-wrap: anywhere; }
.prompt-word[lang="ru"] { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -.5px; }
.prompt-caption { color: #86868d; font-size: 11px; }
.choices { display: grid; gap: 9px; }
.choices .word { justify-content: flex-start; text-align: left; padding: 14px 18px; min-height: 52px; font-size: 14px; font-weight: 450; }
.choices .word::after { content: ''; margin-left: auto; flex-shrink: 0; height: 16px; width: 16px; border: 1px solid #d5d7de; border-radius: 50%; }
.choices .word.choice-correct::after { content: '✓'; display: grid; place-items: center; color: #fff; background: #339c5e; border-color: #339c5e; font-size: 11px; }
.choices .word.choice-wrong::after { content: '×'; display: grid; place-items: center; color: #fff; background: #cb655d; border-color: #cb655d; font-size: 14px; }
#answer-form > label { font-size: 12px; margin: 4px 0 10px; }
.answer-field { display: flex; gap: 10px; }
#answer-input { width: 100%; min-width: 0; min-height: 54px; border: 1px solid #dcdfe6; border-radius: 12px; padding: 14px 16px; background: #fff; font-size: 16px; line-height: 1.5; transition: background .2s, border-color .2s; }
#answer-input::placeholder { color: #8c8c94; opacity: 1; }
#answer-input:focus { outline: 3px solid #d6e8ff; border-color: #0071e3; outline-offset: 1px; }
#answer-input[aria-invalid="true"] { border-color: #d68278; background: #fff8f6; }
#answer-input[aria-invalid="true"]:focus { outline-color: #f9e1dc; }
#answer-input:disabled { background: #f5f5f7; color: #707077; }
#check-answer { width: auto; flex-shrink: 0; min-height: 54px; padding-inline: 18px; }
#answer-feedback { min-height: 22px; margin: 14px 0 0; font-size: 13px; line-height: 1.6; color: #4c647b; }
#answer-feedback:empty { margin: 0; min-height: 12px; }
#answer-feedback[data-state="success"] { color: #247144; }
#answer-feedback[data-state="error"] { color: #b44437; }
#answer-feedback[data-state="hint"] { color: #6f603d; }
.text-button { display: block; min-height: 44px; margin: 4px auto 0; border: 0; padding: 10px 8px; background: transparent; color: var(--blue); font-size: 12px; }
#next-question { margin-top: 12px; }
.exercise { padding-bottom: 16px; }
.game[data-view="typing"] .game-footer, .game[data-view="choice"] .game-footer { margin-top: 5px; }
.lesson-summary { padding: 14px 0 20px; text-align: center; }
.completion-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 23px; background: #ecf7ef; color: #2c9957; border-radius: 50%; }
.completion-icon svg { width: 44px; height: 44px; stroke-width: 2.5; }
.lesson-summary .section-label { font-size: 9px; color: #64846d; }
.lesson-summary h3 { margin: 9px 0; font-size: 28px; font-weight: 650; letter-spacing: -.8px; }
.completion-caption { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.completion-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f7f8fa; border-radius: 16px; margin: 24px 0; padding: 22px 8px; }
.completion-stats div { display: grid; gap: 8px; padding: 0 8px; }
.completion-stats div + div { border-left: 1px solid #e5e6ec; }
.completion-stats strong { font-size: 27px; font-weight: 600; letter-spacing: -.8px; }
.completion-stats span { color: var(--muted); font-size: 10px; line-height: 1.5; }
#continue-lesson { max-width: 320px; font-size: 14px; min-height: 50px; }
.completion-footnote { color: var(--muted); font-size: 11px; margin: 13px 0 0; }
.game:has(.lesson-summary:not([hidden])) .game-instructions, .game:has(.lesson-summary:not([hidden])) .status { display: none; }
.dictionary-note { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 30px 0; margin: 10px 0 0; }
.note-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eaeaf0; color: #85858e; }
.note-icon svg { width: 20px; height: 20px; }
.dictionary-note h3 { font-size: 12px; margin: 0 0 6px; font-weight: 550; color: #62626a; }
.dictionary-note p { font-size: 10px; color: #81818a; line-height: 1.7; margin: 0; }
.dictionary-note a { color: #636f84; margin-left: 4px; }
footer { max-width: 1104px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto; padding: 21px 0 28px; border-top: 1px solid #e4e4e9; font-size: 10px; color: #818189; }
.author-links { display: flex; gap: 18px; }
.author-links a { min-height: 24px; display: inline-flex; align-items: center; }
.sources-page { max-width: 880px; padding-top: 40px; padding-bottom: 36px; }
.sources-page h1 { font-size: 36px; margin-bottom: 28px; }
.sources-page h2 { font-size: 22px; letter-spacing: -.6px; margin: 32px 0 12px; }
.sources-page p { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; color: #515158; }
.sources-page a { text-decoration: underline; text-underline-offset: 3px; color: var(--blue); }
@keyframes pair-found { 0% { opacity: 1; transform: scale(1); } 45% { opacity: 1; transform: scale(1.025); } 100% { opacity: 0; transform: scale(.94); } }
@keyframes pair-wrong { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
@keyframes celebrate-in { from { opacity: 0; margin-top: -5px; } to { opacity: 1; margin-top: 0; } }
@media (min-width: 761px) { #collection-settings > summary { display: none; } }
@media (hover: hover) {
  .word:not(:disabled):not(.selected):not(.wrong):not(.choice-wrong):hover { background: #f8faff; border-color: #a9c7ef; box-shadow: 0 2px 6px #1d4d7c05; }
  .primary:not(:disabled):hover { background: #0077ed; }
  .secondary:hover { background: #e3edfd; }
  .sound-toggle:hover { background: #eeeef2; }
  .view-switch button[aria-pressed="false"]:hover { color: #33333a; }
  a:hover { color: var(--blue); }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .header, main { padding-inline: 28px; }
  .workspace { grid-template-columns: 232px minmax(0, 1fr); gap: 20px; }
  .collection-card { padding-inline: 17px; }
  .game { padding-inline: 22px; }
  .header-caption { display: none; }
  .view-switch button { font-size: 11px; gap: 5px; }
  .view-switch button svg { width: 15px; height: 15px; }
  footer { margin-inline: 28px; }
}
@media (max-width: 760px) {
  html { scroll-padding-block: 16px calc(100px + env(safe-area-inset-bottom)); }
  .header { min-height: 64px; padding: env(safe-area-inset-top) 20px 0; gap: 12px; border-bottom: 0; }
  .brand { font-size: 23px; gap: 8px; }
  .brand-icon { width: 32px; height: 32px; font-size: 26px; border-radius: 10px; }
  .header-note { display: none; }
  .save-status { gap: 5px; font-size: 10px; }
  .save-status svg { width: 14px; height: 14px; }
  main { padding: 0 16px; }
  .intro { display: none; }
  .eyebrow, .lesson-badge { display: none; }
  h1 { font-size: 29px; letter-spacing: -1.1px; }
  .intro p { margin-top: 7px; font-size: 13px; }
  .workspace { display: flex; flex-direction: column; gap: 12px; }
  .panel, .game { width: 100%; }
  .collection-card { border-radius: 17px; padding: 0 15px 12px; border-color: #e8e8ed; }
  #collection-settings > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 0; }
  .collection-symbol { width: 33px; height: 33px; background: #eef3fc; color: #5082c1; display: grid; place-items: center; border-radius: 9px; }
  .collection-symbol svg { width: 19px; height: 19px; }
  .summary-copy { display: grid; gap: 4px; min-width: 0; }
  .summary-title { font-size: 12px; font-weight: 600; }
  #selection-summary { font-size: 10px; line-height: 1.4; color: var(--muted); }
  .summary-chevron { width: 14px; height: 14px; margin-left: auto; color: #8a8a91; transition: transform .2s; }
  details[open] > summary .summary-chevron { transform: rotate(90deg); }
  .settings-content { padding: 12px 0 18px; border-top: 1px solid var(--line); }
  .settings-content > .section-label, .settings-content h2 { display: none; }
  .filter-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .filter-fields > .field + .field { margin-top: 0; }
  label { font-size: 12px; }
  select { min-height: 48px; font-size: 14px; }
  .exercise-settings { margin-top: 15px; }
  .collection-info { padding: 13px 0; font-size: 12px; }
  .restart-button { font-size: 13px; }
  .hint { font-size: 11px; }
  .hint br { display: none; }
  .collection-progress { margin: 0; padding-top: 0; border: 0; }
  details[open] + .collection-progress { padding-top: 16px; border-top: 1px solid var(--line); }
  .progress-heading { font-size: 10px; }
  .progress-heading strong { font-size: 10px; }
  .collection-progress progress { margin-top: 7px; height: 3px; }
  .learning-stats, .sidebar-note { display: none; }
  .panel:has(#collection-settings[open]) .learning-stats { display: grid; }
  .panel:has(#collection-settings[open]) .stat-card { grid-template-columns: auto 1fr; align-items: center; gap: 5px 10px; padding: 13px; }
  .panel:has(#collection-settings[open]) .stat-icon { grid-row: span 2; margin: 0; }
  .panel:has(#collection-settings[open]) .stat-card strong { font-size: 20px; }
  .game { border-radius: 22px; padding: 20px 17px 16px; scroll-margin-top: 12px; }
  .game-header { gap: 8px; }
  .game-header .section-label { display: none; }
  .game-header h2 { margin: 0; font-size: 22px; letter-spacing: -.7px; }
  .game-actions { gap: 7px; }
  .session-score { gap: 4px; font-size: 12px; }
  .session-score > svg { width: 16px; height: 16px; }
  .score-caption { display: none; }
  .sound-toggle { width: 44px; height: 44px; margin-right: -5px; }
  .lesson-tracker { margin: 8px 0 0; gap: 9px; }
  #lesson-progress { font-size: 11px; }
  .lesson-tracker progress { height: 4px; }
  .view-switch { position: fixed; z-index: 20; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(400px, calc(100% - 32px)); padding: 5px; gap: 3px; border: 1px solid #ffffffd9; border-radius: 23px; background: #f8f8fbd9; box-shadow: 0 4px 30px #17172c15, 0 0 0 1px #2c2c4508; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
  .game[data-view="columns"] .view-switch { margin-top: 0; }
  .view-switch button { flex-direction: column; gap: 5px; min-height: 56px; padding: 7px 3px; border-radius: 18px; font-size: 10px; color: #75757d; }
  .view-switch button svg { width: 21px; height: 21px; stroke-width: 1.7; }
  .view-switch button[aria-pressed="true"] { background: #e8f1ff; color: #0061cf; box-shadow: none; }
  .game-instructions { margin: 18px 0 16px; font-size: 12px; line-height: 1.6; }
  .column-labels, .board { gap: 10px; }
  .column-labels { margin-bottom: 9px; font-size: 10px; }
  .column-labels > span { gap: 6px; padding-inline: 3px; }
  .language-code { font-size: 8px; padding: 3px 4px; }
  .word-column { gap: 9px; }
  .word { min-height: clamp(48px, calc((100svh - 430px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / 5), 66px); padding: 11px 9px; border-radius: 12px; font-size: 16px; line-height: 1.35; }
  .word.long { font-size: 14px; line-height: 1.4; }
  .status { min-height: 40px; padding: 13px 2px 10px; font-size: 11px; }
  .game-footer { font-size: 10px; line-height: 1.6; align-items: flex-start; padding-top: 13px; }
  .game-footer svg { margin-top: 1px; }
  .celebration { top: 64px; font-size: 12px; padding: 9px 12px; }
  .prompt-card { padding: 20px 16px; margin-bottom: 16px; border-radius: 16px; }
  .exercise-direction { font-size: 10px; }
  .prompt-word { font-size: 30px; margin: 13px 0 9px; }
  .prompt-caption { display: none; }
  .choices { gap: 8px; }
  .choices .word { min-height: 50px; padding: 12px 15px; gap: 12px; font-size: 15px; line-height: 1.4; }
  #answer-form > label { font-size: 12px; }
  .answer-field { flex-direction: column; gap: 10px; }
  #answer-input { min-height: 54px; font-size: 17px; padding-inline: 14px; }
  #check-answer { min-height: 48px; width: 100%; font-size: 14px; }
  #answer-feedback { font-size: 13px; }
  .text-button { font-size: 13px; margin-top: 6px; }
  .exercise { padding-bottom: 12px; }
  .lesson-summary { padding: 25px 0 15px; }
  .lesson-summary h3 { font-size: 27px; }
  .completion-caption { font-size: 12px; }
  .completion-stats { margin-block: 22px; padding: 20px 4px; }
  .completion-stats span { font-size: 10px; }
  .completion-stats strong { font-size: 25px; }
  .completion-icon { width: 64px; height: 64px; }
  .dictionary-note { align-items: flex-start; justify-content: flex-start; gap: 11px; padding: 24px 5px; margin: 0; }
  .note-icon { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
  .note-icon svg { width: 18px; height: 18px; }
  .dictionary-note h3 { font-size: 11px; line-height: 1.5; margin: 0 0 4px; }
  .dictionary-note p { font-size: 10px; line-height: 1.7; }
  .dictionary-note a { display: inline-block; margin-left: 0; }
  footer { margin: 0 21px; padding-top: 16px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); font-size: 10px; }
  .footer-message { display: none; }
  .author-links { gap: 14px; }
  .author-links a { min-height: 44px; }
  .sources-page { padding-top: 20px; padding-bottom: 24px; }
  .sources-page h1 { font-size: 29px; }
  .sources-page p { font-size: 15px; }
  body:has(#answer-input:focus) .view-switch { visibility: hidden; pointer-events: none; }
}
@media (max-width: 360px) {
  .header { padding-inline: 16px; }
  .save-status { max-width: 145px; text-align: right; font-size: 9px; line-height: 1.4; }
  .save-status svg { display: none; }
  main { padding-inline: 12px; }
  h1 { font-size: 27px; }
  .game { padding-inline: 13px; }
  .game-header h2 { font-size: 20px; }
  .word { padding-inline: 8px; font-size: 15px; }
  .column-labels > span { gap: 4px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .intro { padding-block: 9px 15px; }
  h1 { font-size: 25px; }
  .intro p { font-size: 12px; }
  .game { padding-top: 13px; }
  .game-instructions { margin-block: 12px; }
  .word { min-height: 48px; }
}
@media (max-width: 760px) and (max-height: 620px) {
  .header { min-height: 52px; }
  .workspace { gap: 10px; }
  .collection-card { padding-bottom: 10px; }
  #collection-settings > summary { min-height: 52px; padding-block: 8px; }
  .game { padding-top: 10px; }
  .game[data-view="columns"] .game-instructions { display: none; }
  .game[data-view="columns"] .column-labels { margin-top: 8px; }
  .game[data-view="columns"] .word { min-height: 44px; padding-block: 9px; }
  .game[data-view="columns"] .word-column { gap: 6px; }
}
@media (max-width: 760px) and (max-height: 520px) and (orientation: landscape) {
  .intro { display: none; }
  .workspace { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; }
  .view-switch { position: static; transform: none; width: 100%; margin-top: 16px; border-radius: 13px; background: #f0f0f3; box-shadow: none; backdrop-filter: none; }
  .view-switch button { min-height: 40px; border-radius: 9px; padding: 5px 2px; font-size: 9px; flex-direction: row; }
  .view-switch button svg { width: 14px; height: 14px; }
  .filter-fields { display: block; }
  .filter-fields > .field + .field { margin-top: 14px; }
  footer { padding-bottom: 24px; }
  body:has(#answer-input:focus) .view-switch { visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
