@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;800&family=Noto+Naskh+Arabic:wght@500;700&family=Noto+Sans+Arabic:wght@500;700&family=Noto+Sans+Hebrew:wght@500;700&family=Suez+One&display=swap");

:root{
  --bg:#f4f2ea;
  --bg-alt:#e7f4f2;
  --surface:#fffdf9;
  --surface-soft:#f6f1e6;
  --surface-muted:#eef7f6;
  --text:#182239;
  --text-soft:#4f5f78;
  --border:#d9d2c0;
  --border-strong:#c5bda7;
  --accent:#10958f;
  --accent-strong:#0a7c76;
  --accent-soft:#d5f0ec;
  --translit:#415f8a;
  --translit-soft:#4f6d95;
  --good:#1d9f6f;
  --bad:#ca4747;
  --shadow-soft:0 8px 24px rgba(20, 35, 60, 0.08);
  --shadow-card:0 16px 40px rgba(20, 35, 60, 0.12);
  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:22px;
  --radius-xl:30px;
  --drawer-width:min(220px,66vw);
  --font-he:"Heebo","Assistant","Rubik",sans-serif;
  --font-translit:"Noto Sans Hebrew","Heebo","Assistant","Rubik",sans-serif;
  --font-display:"Suez One","Noto Serif Hebrew","Times New Roman",serif;
  --font-ar:"Noto Naskh Arabic","Amiri",serif;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-he);
  color:var(--text);
  background:
    radial-gradient(1400px 620px at -18% -12%, rgba(126, 201, 195, 0.24), rgba(126, 201, 195, 0.12) 38%, transparent 80%),
    radial-gradient(1200px 560px at 118% -6%, rgba(231, 198, 138, 0.14), rgba(231, 198, 138, 0.08) 34%, transparent 78%),
    linear-gradient(180deg, #e3f0ee 0%, #e8f1ed 22%, #edf1ea 48%, #f3f1ea 70%, #f8f5ee 100%);
  background-repeat:no-repeat,no-repeat,no-repeat;
  background-size:100% 100vh,100% 100vh,100% 100vh;
  background-attachment:fixed,fixed,fixed;
  direction:rtl;
}

.page-glow{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(900px 420px at 15% 16%, rgba(16,149,143,.06), transparent 76%),
    radial-gradient(960px 420px at 88% 10%, rgba(206,154,80,.05), transparent 74%);
}

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

.container{
  position:relative;
  z-index:1;
  width:min(1160px, 100%);
  margin:0 auto;
  padding:clamp(16px,2.2vw,28px);
}

.header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding:20px clamp(16px,2.4vw,26px);
  border-radius:var(--radius-xl);
  border:1px solid rgba(201, 191, 171, 0.8);
  background:linear-gradient(165deg, rgba(255,255,255,.9), rgba(248,242,232,.93));
  box-shadow:var(--shadow-card);
  backdrop-filter:blur(3px);
}

.hero-header{
  align-items:center;
  margin-bottom:20px;
}

.brand{
  min-width:0;
}

.brand h1{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(34px, 5.4vw, 58px);
  line-height:1.1;
  letter-spacing:0;
  color:#15213b;
}

.game-header .brand h1,
.page-space .brand h1,
.page-game .brand h1,
.page-test .brand h1,
.page-test-run .brand h1{
  font-size:clamp(28px, 4.3vw, 44px);
}

.brand p{
  margin:8px 0 0;
  font-size:clamp(15px, 2.15vw, 24px);
  line-height:1.5;
  color:var(--text-soft);
  max-width:62ch;
}

.page-test-run .header{
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  text-align:center;
}

.page-test .header{
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  text-align:center;
}

.page-test-run .brand{
  width:min(100%,760px);
  display:grid;
  gap:4px;
  justify-items:center;
  text-align:center;
}

.page-test .brand{
  width:min(100%,760px);
  display:grid;
  gap:4px;
  justify-items:center;
  text-align:center;
}

.page-test-run .brand p{
  margin:0;
  font-size:clamp(16px,2.1vw,24px);
  line-height:1.2;
  font-weight:700;
  color:#4d607b;
}

.page-test .brand p{
  margin:0;
  font-size:clamp(16px,2.1vw,24px);
  line-height:1.2;
  font-weight:700;
  color:#4d607b;
}

.page-test-run .brand h1{
  margin:0;
  max-width:22ch;
  line-height:1.16;
  text-wrap:balance;
  font-size:clamp(30px,5.2vw,54px);
}

.page-test .brand h1{
  margin:0;
  max-width:22ch;
  line-height:1.16;
  text-wrap:balance;
  font-size:clamp(30px,5.2vw,54px);
}

.section-head{
  margin:20px 0 12px;
  padding-inline:2px;
}

.section-head h2{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(26px, 3.8vw, 38px);
  line-height:1.2;
}

.section-head p{
  margin:6px 0 0;
  color:var(--text-soft);
  font-size:clamp(14px,1.8vw,18px);
}

.home-highlight{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px;
  margin-bottom:10px;
}

.home-highlight-item{
  border:1px solid rgba(16,149,143,.2);
  border-radius:18px;
  padding:14px 14px 12px;
  background:linear-gradient(180deg, rgba(228,248,244,.7), rgba(255,255,255,.8));
}

.home-highlight-item h3{
  margin:0;
  font-size:18px;
  line-height:1.25;
  color:#15505f;
}

.home-highlight-item p{
  margin:7px 0 0;
  font-size:14px;
  line-height:1.45;
  color:var(--text-soft);
}

.grid{display:grid;gap:12px}

.space-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:12px;
}

.card{
  border:1px solid rgba(201, 191, 171, 0.82);
  border-radius:var(--radius-lg);
  background:var(--surface);
  box-shadow:var(--shadow-soft);
  padding:16px;
}

.space-card{
  position:relative;
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  border-color:rgba(16,149,143,.25);
  background:
    radial-gradient(500px 180px at 50% -66px, rgba(95,188,181,.22), transparent 70%),
    linear-gradient(165deg, #ffffff 0%, #f2f8f7 55%, #f2ede2 100%);
  transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.space-card::before{
  content:"";
  position:absolute;
  inset-inline-start:0;
  inset-block:0;
  width:6px;
  background:linear-gradient(180deg, #28a19b, #0d837d);
  opacity:.65;
}

.space-card:hover{
  transform:translateY(-2px);
  border-color:rgba(16,149,143,.45);
  box-shadow:0 16px 32px rgba(18, 57, 82, .16);
}

.space-card h3{
  margin:0;
  font-size:30px;
  line-height:1.15;
  font-family:var(--font-display);
  color:#18304b;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(150, 176, 198, .45);
  font-size:13px;
  font-weight:600;
}

.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.btn{
  appearance:none;
  border:1px solid rgba(173, 163, 142, .9);
  background:linear-gradient(180deg, rgba(255,255,255,.9), rgba(244,238,228,.95));
  color:var(--text);
  min-height:42px;
  border-radius:12px;
  padding:10px 14px;
  font-family:var(--font-he);
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(16,149,143,.5);
  box-shadow:0 7px 16px rgba(18,57,82,.12);
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible{
  outline:3px solid rgba(16,149,143,.26);
  outline-offset:2px;
}

.btn:disabled{
  opacity:.58;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

.btn.primary{
  border-color:transparent;
  background:linear-gradient(145deg, var(--accent), var(--accent-strong));
  color:#f5fffd;
  font-weight:700;
}

.btn.primary:hover{
  border-color:transparent;
  box-shadow:0 10px 18px rgba(16,149,143,.27);
}

.btn.good{
  border-color:rgba(29,159,111,.4);
  background:rgba(29,159,111,.12);
}

.btn.bad{
  border-color:rgba(202,71,71,.45);
  background:rgba(202,71,71,.1);
}

.kbd{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(175,163,138,.7);
  border-radius:8px;
  padding:2px 6px;
  background:#fff;
  color:#33435f;
}

hr{border:0;border-top:1px solid var(--border);margin:18px 0}

.game-header{
  display:grid;
  grid-template-columns:1fr;
  justify-items:center;
  text-align:center;
  align-items:center;
  gap:16px;
  margin-bottom:12px;
}

.game-header .brand{
  width:100%;
  display:grid;
  gap:4px;
  justify-items:center;
  text-align:center;
}

.game-nav{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  width:min(680px,100%);
  gap:2px;
  padding:3px;
  border-radius:16px;
  border:1px solid rgba(16,149,143,.46);
  background:rgba(16,149,143,.38);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.85);
}

.game-nav .btn{
  position:relative;
  width:100%;
  min-width:0;
  border:1px solid rgba(16,149,143,.16);
  background:rgba(236,250,247,.96);
  color:#244862;
  padding:11px 10px;
  border-radius:11px;
  font-weight:700;
  box-shadow:none;
}

.game-nav .btn:hover{
  border-color:rgba(16,149,143,.3);
  background:rgba(223,246,241,.98);
  box-shadow:none;
}

.game-nav .btn.primary{
  border-color:rgba(255,255,255,.22);
  color:#fff;
  background:linear-gradient(145deg, var(--accent), var(--accent-strong));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);
}

.game-side-toolbar{
  position:fixed;
  top:0;
  bottom:0;
  right:0;
  left:auto;
  z-index:1200;
  width:var(--drawer-width);
  transform:translateX(105%);
  opacity:0;
  pointer-events:none;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px 8px 8px;
  border-radius:0;
  border:0;
  border-left:1px solid rgba(16,149,143,.24);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,249,247,.96));
  box-shadow:-14px 0 34px rgba(18,57,82,.2);
  transition:transform .28s ease, opacity .22s ease;
}

body.drawer-open .game-side-toolbar{
  transform:translateX(0);
  opacity:1;
  pointer-events:auto;
}

body.drawer-open{
  overflow:hidden;
}

.side-drawer-overlay{
  position:fixed;
  top:0;
  bottom:0;
  left:0;
  right:var(--drawer-width);
  z-index:1100;
  border:0;
  margin:0;
  padding:0;
  background:rgba(14, 28, 46, .24);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}

body.drawer-open .side-drawer-overlay{
  opacity:1;
  pointer-events:auto;
}

.side-drawer-toggle{
  position:fixed;
  right:16px;
  left:auto;
  bottom:16px;
  z-index:1150;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 14px;
  border-radius:999px;
  box-shadow:0 14px 26px rgba(18,57,82,.2);
}

.side-drawer-toggle-icon{
  font-size:16px;
  line-height:1;
}

body.drawer-open .side-drawer-toggle{
  opacity:0;
  pointer-events:none;
  transform:translateY(6px);
}

.side-drawer-head{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-bottom:2px;
  padding:0 34px 6px;
  border-bottom:1px solid rgba(16,149,143,.23);
}

.side-drawer-title{
  display:block;
  width:100%;
  text-align:center;
  font-size:14px;
  line-height:1.2;
  font-weight:700;
  color:#31516d;
}

.game-side-toolbar .btn:not(.side-drawer-close){
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
  min-height:36px;
  padding:6px 8px;
  border-radius:12px;
  font-size:13px;
}

.game-side-toolbar .btn.side-drawer-close{
  position:absolute;
  right:0;
  left:auto;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  min-width:34px;
  min-height:34px;
  height:34px;
  padding:0;
  border-radius:999px;
  font-size:22px;
  line-height:1;
  justify-content:center;
  display:inline-flex;
  align-items:center;
}

.game-side-toggle{
  white-space:normal;
  line-height:1.1;
  margin-top:2px;
  border-style:dashed;
  border-color:rgba(47,109,143,.52);
  background:linear-gradient(180deg, rgba(233,247,252,.95), rgba(224,241,249,.98));
  color:#224d6b;
  font-weight:700;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
}

.game-side-toggle.primary{
  border-style:solid;
  border-color:transparent;
  background:linear-gradient(145deg, #2d6088, #234f73);
  color:#f2fbff;
}

.game-side-actions{
  width:100%;
  display:grid;
  gap:7px;
}

.game-side-nav-btn{
  white-space:normal;
  line-height:1.1;
}

.notice{
  border:1px solid rgba(16,149,143,.35);
  border-radius:16px;
  background:var(--surface-muted);
  color:#175361;
  padding:12px 14px;
  font-size:17px;
  line-height:1.45;
}

.ar{
  font-family:var(--font-ar);
  font-size:24px;
  line-height:1.25;
}

.rtl{direction:rtl;unicode-bidi:isolate}
.ltr{direction:ltr;unicode-bidi:isolate;text-align:left}
.muted{color:var(--text-soft)}
.hide-arabic .ar{display:none!important}
.hide-arabic .space-word-card{gap:6px}
.hide-arabic .choice-stack{gap:0}

.space-words-wrap{
  display:grid;
  gap:12px;
}

.space-supplement{display:grid;gap:12px}

.space-word-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.space-word-grid.space-word-grid-greetings{
  grid-template-columns:1fr;
  gap:10px;
  width:100%;
  max-width:980px;
  margin-inline:auto;
}

@media (min-width:1280px){
  .space-word-grid.space-word-grid-greetings{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

.space-search-wrap{
  display:grid;
  gap:8px;
  margin-bottom:4px;
}

.space-search-controls{
  width:min(100%, 640px);
  margin-inline:auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(120px,auto);
  gap:8px;
  align-items:center;
}

.space-search-no-filter .space-search-controls{
  grid-template-columns:minmax(0,1fr);
}

.space-search-no-filter .space-search-filter,
.space-search-no-filter .space-search-filter-label{
  display:none;
}

.space-search-label{
  text-align:center;
  font-size:14px;
  line-height:1.25;
  font-weight:700;
  color:#31506d;
}

.space-search-filter-label{
  position:absolute;
  inline-size:1px;
  block-size:1px;
  margin:-1px;
  padding:0;
  border:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.space-search-input{
  width:100%;
  margin:0;
  min-height:44px;
  border-radius:999px;
  border:1px solid rgba(16,149,143,.34);
  background:rgba(255,255,255,.92);
  color:#1f3a57;
  padding:10px 16px;
  font-family:var(--font-he);
  font-size:16px;
  line-height:1.2;
}

.space-search-input::placeholder{
  color:#6c7f97;
}

.space-search-filter{
  width:100%;
  min-height:44px;
  border-radius:14px;
  border:1px solid rgba(16,149,143,.34);
  background:rgba(255,255,255,.92);
  color:#1f3a57;
  padding:10px 12px;
  font-family:var(--font-he);
  font-size:15px;
  line-height:1.2;
  text-align:center;
}

.space-search-meta{
  text-align:center;
  font-size:13px;
  line-height:1.2;
}

.space-word-grid-grouped{
  display:block;
}

.space-search-group{
  display:grid;
  gap:10px;
  margin:2px 0 10px;
}

.space-search-group-title{
  margin:0;
  text-align:center;
  font-size:19px;
  line-height:1.2;
  color:#2f4d69;
  font-weight:800;
}

.space-search-group-grid{
  margin:0;
}

.space-search-empty{
  text-align:center;
  font-size:15px;
  line-height:1.3;
  padding:10px 8px;
}

.space-word-card{
  min-height:188px;
  border-radius:20px;
  border-color:rgba(16,149,143,.28);
  background:
    radial-gradient(640px 220px at 50% -100px, rgba(95,188,181,.24), transparent 66%),
    linear-gradient(165deg, #fff, #eff7f5 60%, #f3ede2);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:10px;
}

.space-word-card-greetings{
  min-height:0;
  justify-content:flex-start;
  align-items:stretch;
  padding:14px 16px;
  gap:10px;
  border-radius:18px;
}

.space-word-card-greetings .space-word-he,
.space-word-card-greetings .space-word-ar,
.space-word-card-greetings .space-word-tr{
  width:100%;
  margin:0;
  white-space:normal;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
  line-break:auto;
  text-wrap:wrap;
  max-inline-size:100%;
}

.space-word-card-greetings .space-word-he{
  font-size:clamp(21px,1.9vw,30px);
  line-height:1.34;
}

.space-word-card-greetings .space-word-ar{
  font-size:clamp(26px,2.6vw,36px);
  line-height:1.28;
}

.space-word-card-greetings .space-word-tr{
  font-size:clamp(20px,1.8vw,27px);
  line-height:1.42;
  padding-top:8px;
  border-top:1px dashed rgba(16,149,143,.28);
}

.space-word-he{
  font-size:clamp(30px,4vw,42px);
  line-height:1.2;
  font-weight:700;
  color:#203652;
}

.space-word-ar{
  font-size:clamp(38px,5vw,54px);
  line-height:1.2;
  color:#188c71;
}

.space-word-tr{
  font-size:clamp(21px,2.9vw,31px);
  line-height:1.2;
  color:var(--translit);
  font-weight:700;
}

.space-word-tr,
.choice-sub,
.quiz-prompt-sub,
.match-item-ar-tr{
  font-family:var(--font-translit);
  font-feature-settings:"mark" 1, "mkmk" 1;
  text-rendering:optimizeLegibility;
}

.space-word-tr.muted{
  color:var(--translit);
}

.alphabet-card{
  border-color:rgba(16,149,143,.28);
  background:
    radial-gradient(780px 220px at 50% -120px, rgba(95,188,181,.26), transparent 62%),
    linear-gradient(160deg, #fff 0%, #eff8f6 55%, #f6efe1 100%);
}

.alphabet-title{
  margin:0 0 10px;
  text-align:center;
  font-family:var(--font-display);
  font-size:30px;
  line-height:1.2;
  color:#153b51;
}

.alphabet-table{
  width:100%;
  border-collapse:separate;
  border-spacing:8px;
  table-layout:fixed;
}

.alphabet-table td{
  border:1px solid rgba(16,149,143,.25);
  border-radius:14px;
  background:rgba(255,255,255,.82);
  text-align:center;
  vertical-align:middle;
  padding:10px 8px;
}

.alphabet-letter{
  display:block;
  font-size:clamp(34px,4.5vw,50px);
  line-height:1.1;
  color:#16966f;
  margin-bottom:4px;
}

.alphabet-name{
  display:block;
  margin-top:4px;
  font-size:15px;
  line-height:1.2;
  color:#2e4863;
}

.alphabet-translit{
  display:block;
  margin-top:2px;
  font-size:13px;
  line-height:1.15;
  color:var(--translit-soft);
  font-weight:600;
}

.quiz-card,
.match-card{
  border-radius:24px;
  border-color:rgba(16,149,143,.3);
  background:
    radial-gradient(900px 260px at 50% -130px, rgba(95,188,181,.25), transparent 63%),
    linear-gradient(160deg, #fff 0%, #eef8f6 52%, #f4eee1 100%);
  box-shadow:0 16px 34px rgba(18,57,82,.15);
}

.quiz-top,
.match-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.quiz-top{
  margin-bottom:8px;
}

.quiz-edge-stat,
.match-edge-stat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:4px 12px;
  border:1px solid rgba(16,149,143,.28);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  font-size:clamp(16px,2.1vw,22px);
  color:#25445f;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.quiz-stats{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.quiz-pill{
  justify-content:center;
  background:rgba(234,248,245,.95);
  border-color:rgba(16,149,143,.28);
  min-width:88px;
  color:#1f4861;
}

.quiz-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

.quiz-card-head{
  text-align:center;
  margin-bottom:10px;
  padding-top:2px;
}

.quiz-prompt{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  margin:0;
}

.quiz-prompt-main{
  font-family:var(--font-he);
  font-size:clamp(34px,6vw,54px);
  line-height:1.1;
  color:#1a3352;
  font-weight:700;
}

.quiz-prompt-main-ar{
  font-family:var(--font-ar);
  font-size:clamp(42px,7.6vw,64px);
  line-height:1.05;
}

.quiz-prompt-main-ar.quiz-prompt-main-ar-tr{
  font-family:var(--font-translit);
  font-feature-settings:"mark" 1, "mkmk" 1;
  text-rendering:optimizeLegibility;
}

.quiz-prompt-main-ar-diacritic{
  display:inline-block;
  line-height:1.2;
  padding-top:.12em;
  margin-top:.03em;
}

.quiz-prompt-main-sentence{
  font-size:clamp(21px,2.9vw,29px);
  line-height:1.24;
}

.quiz-prompt-sub{
  font-size:clamp(23px,3.2vw,34px);
  line-height:1.2;
  color:var(--translit);
  font-weight:600;
}

.quiz-prompt-split{
  display:block;
  width:100%;
  margin:0 0 10px;
}

.quiz-split{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.quiz-split-side{
  border:1px solid rgba(16,149,143,.26);
  border-radius:14px;
  background:rgba(255,255,255,.8);
  padding:8px 10px 10px;
}

.quiz-split-title{
  margin:0;
  text-align:center;
  font-size:16px;
  line-height:1.2;
  color:#35536e;
}

.quiz-split-body{
  min-height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:8px 6px 4px;
}

.quiz-split-text{
  display:block;
  width:100%;
  font-size:clamp(20px,3.2vw,30px);
  line-height:1.2;
  font-weight:600;
  color:#1e3552;
}

.quiz-split-missing{
  display:block;
  width:100%;
  font-size:clamp(18px,2.6vw,24px);
  line-height:1.2;
  font-weight:600;
  color:#6a7d99;
}

.choicegrid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
  margin-top:12px;
}

.quiz-choicegrid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.quiz-choicegrid-single{grid-template-columns:1fr}

.choice{
  position:relative;
  border:1px solid rgba(16,149,143,.3);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(238,246,244,.95));
  color:var(--text);
  padding:12px;
  font-family:var(--font-he);
  transition:border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease;
  cursor:pointer;
}

.choice:hover{
  border-color:rgba(16,149,143,.52);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(226,245,241,.95));
  transform:translateY(-1px);
  box-shadow:0 10px 18px rgba(18,57,82,.12);
}

.choice.correct{
  border-color:rgba(29,159,111,.54);
  background:rgba(29,159,111,.11);
}

.choice.wrong{
  border-color:rgba(202,71,71,.56);
  background:rgba(202,71,71,.09);
}

.quiz-choice{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  width:100%;
  gap:0;
  padding-inline:58px;
}

.quiz-choicegrid-single .quiz-choice{
  padding-inline:44px;
}

.page-game[data-space-code="greetings"][data-game-mode="quiz"] .quiz-choice{
  min-height:102px;
  padding-inline:56px;
  padding-block:18px;
}

.page-game[data-space-code="greetings"][data-game-mode="quiz"] .quiz-choice .choice-text{
  line-height:1.32;
}

.page-test-run[data-test-mode="he_to_tr_niqqud"] .quiz-choice{
  min-height:112px;
  padding-inline:72px;
  padding-block:24px;
}

.page-test-run[data-test-mode="he_to_tr_niqqud"] .quiz-choice .choice-text,
.page-test-run[data-test-mode="he_to_tr_niqqud"] .quiz-choice .choice-text-sentence{
  line-height:1.52;
}

.quiz-choice.quiz-choice-part2{
  min-height:108px;
  padding-inline:72px;
  padding-block:22px;
}

.quiz-choice.quiz-choice-part2 .choice-text-sentence{
  line-height:1.4;
}

.quiz-choice:disabled{cursor:not-allowed;opacity:.96}

.choice-index{
  position:absolute;
  top:50%;
  inset-inline-end:14px;
  transform:translateY(-50%);
  width:31px;
  height:31px;
  border-radius:999px;
  border:1px solid rgba(95,124,153,.5);
  background:rgba(255,255,255,.9);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
  color:#38556f;
}

.choice-text{
  display:block;
  width:100%;
  text-align:center;
  font-size:31px;
  line-height:1.2;
  letter-spacing:.1px;
  font-weight:700;
  color:#1c3350;
}

.choice-text-sentence{
  font-size:clamp(17px,2.1vw,23px);
  line-height:1.5;
}

.page-test-run .quiz-choice .choice-text-sentence{
  line-height:1.58;
}

.page-test-run[data-test-mode="he_to_tr_niqqud"] .quiz-choice .choice-text-sentence{
  font-size:clamp(19px,2.5vw,25px);
  line-height:1.72;
}

.quiz-choicegrid-single .choice-text-sentence{
  text-wrap:balance;
}

.choice-stack{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:3px;
  width:100%;
  min-width:0;
  text-align:center;
}

.choice-sub{
  font-size:clamp(19px,2.4vw,27px);
  line-height:1.15;
  color:var(--translit);
  font-weight:600;
  text-align:center;
}

.choice-sub-disambiguator{
  font-size:clamp(14px,1.8vw,18px);
  line-height:1.2;
}

.raised-shadda{
  display:inline;
  position:relative;
  top:-0.12em;
  font-family:"Noto Sans Arabic","Noto Naskh Arabic",sans-serif;
  font-size:1em;
  line-height:1;
  margin-inline:0 0.01em;
  vertical-align:baseline;
  white-space:nowrap;
}

.raised-shadda-lamed{
  top:-0.24em;
  margin-inline:0 0.01em;
}

.choice-ar{
  font-size:clamp(30px,4.1vw,40px);
  line-height:1.1;
  color:#1a7f62;
}

.choice-ar:not(.ar),
.match-item-ar-main:not(.ar){
  font-family:var(--font-translit);
  font-feature-settings:"mark" 1, "mkmk" 1;
  text-rendering:optimizeLegibility;
  color:var(--translit);
  font-weight:700;
}

.quiz-choice.correct .choice-index{
  border-color:rgba(29,159,111,.55);
  color:#1d7f5a;
}

.quiz-choice.wrong .choice-index{
  border-color:rgba(202,71,71,.6);
  color:#b03737;
}

.quiz-feedback{
  text-align:center;
  margin-top:8px;
  min-height:0;
  font-size:17px;
}

.quiz-feedback:empty{display:none}
.quiz-feedback.good{color:var(--good)}
.quiz-feedback.bad{color:var(--bad)}

.quiz-typing-wrap{
  display:grid;
  gap:7px;
  margin-top:10px;
}

.quiz-typing-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  width:min(100%, 760px);
  margin-inline:auto;
  align-items:center;
}

.quiz-typing-input{
  width:100%;
  min-height:44px;
  border-radius:14px;
  border:1px solid rgba(16,149,143,.34);
  background:rgba(255,255,255,.95);
  color:#1f3a57;
  padding:10px 12px;
  font-family:var(--font-he);
  font-size:19px;
  line-height:1.2;
}

.quiz-typing-hint{
  text-align:center;
  font-size:13px;
  line-height:1.2;
}

.quiz-next-row,
.match-next-row{
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.quiz-auto-row{
  margin-top:7px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.quiz-next-row #nextq,
.match-next-row #new-round{
  min-width:198px;
  padding:10px 24px;
  border-radius:14px;
  font-size:clamp(20px,3vw,28px);
  line-height:1;
}

.quiz-auto-toggle{
  display:grid;
  grid-template-columns:18px minmax(0,1fr) 18px;
  align-items:center;
  column-gap:10px;
  direction:ltr;
  width:min(100%, 640px);
  border:1px solid rgba(16,149,143,.26);
  border-radius:999px;
  background:rgba(255,255,255,.88);
  padding:8px 12px;
  color:#3f5874;
  font-size:14px;
}

.quiz-auto-toggle::before{
  content:"";
  grid-column:1;
  grid-row:1;
  width:18px;
  height:18px;
}

.quiz-auto-toggle span{
  grid-column:2;
  grid-row:1;
  justify-self:center;
  width:100%;
  min-width:0;
  direction:rtl;
  text-align:center;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:clamp(10px,2.1vw,14px);
  line-height:1.15;
}

.quiz-auto-toggle input{
  grid-column:3;
  grid-row:1;
  justify-self:end;
  -webkit-appearance:none;
  appearance:none;
  width:18px;
  height:18px;
  margin:0;
  border:1px solid rgba(16,149,143,.52);
  border-radius:5px;
  background:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:all .14s ease;
}

.quiz-auto-toggle input::after{
  content:"";
  width:9px;
  height:5px;
  border:2px solid #0b4d4b;
  border-top:0;
  border-right:0;
  transform:rotate(-45deg) scale(0);
  transform-origin:center;
  transition:transform .14s ease;
}

.quiz-auto-toggle input:checked{
  background:rgba(16,149,143,.25);
  border-color:transparent;
}

.quiz-auto-toggle input:checked::after{transform:rotate(-45deg) scale(1)}

.quiz-keyboard{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin-top:7px;
  font-size:13px;
}

.match-top-strip{margin-bottom:8px}

.match-head{text-align:center;margin-bottom:10px}

.match-prompt{
  font-size:18px;
  color:#365676;
}

.match-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-width:900px;
  margin-inline:auto;
  align-items:stretch;
  gap:14px;
}

.match-col{
  display:flex;
  flex-direction:column;
  padding:0;
  background:transparent;
  border:0;
}

.match-col-title{
  margin:2px 0 8px;
  text-align:center;
  font-size:15px;
  color:#345470;
}

.match-list{
  display:grid;
  grid-template-columns:1fr;
  grid-auto-rows:1fr;
  gap:6px;
  flex:1;
}

.match-item{
  width:100%;
  min-height:100%;
  border:1px solid rgba(16,149,143,.3);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(236,246,244,.94));
  color:#1c3350;
  font-size:clamp(19px,2.8vw,27px);
  line-height:1.15;
  padding:8px 10px;
  cursor:pointer;
  transition:all .14s ease;
}

.match-item:hover{
  border-color:rgba(16,149,143,.5);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(225,245,241,.94));
}

.match-item-he{
  font-family:var(--font-he);
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  white-space:normal;
  text-wrap:balance;
  min-height:0;
  height:100%;
}

.match-item-ar{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:4px;
  min-height:0;
  height:100%;
}

.match-item-ar-main{
  display:block;
  max-width:100%;
  white-space:normal;
  font-size:clamp(22px,3.2vw,31px);
  line-height:1.15;
  color:#188c71;
  text-wrap:balance;
}

.match-item-ar-tr{
  display:block;
  max-width:100%;
  white-space:normal;
  font-size:clamp(15px,2vw,20px);
  line-height:1.15;
  color:var(--translit);
  font-weight:600;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
  text-wrap:balance;
}

.match-item.selected{
  border-color:#159089;
  background:rgba(209,241,236,.7);
  box-shadow:0 0 0 2px rgba(21,144,137,.3);
}

.match-item.matched{
  border-color:rgba(29,159,111,.56);
  background:rgba(29,159,111,.16);
}

.match-item.wrong{
  border-color:rgba(202,71,71,.56);
  background:rgba(202,71,71,.12);
}

.match-item:disabled{cursor:not-allowed}

.test-tips-toggle{
  margin:0 auto 12px;
  display:block;
  font-size:15px;
  color:var(--accent-strong);
  text-decoration:underline;
  text-underline-offset:3px;
  background:none;
  border:none;
  cursor:pointer;
  font-family:var(--font-he);
  font-weight:600;
}

.test-tips-box{
  display:none;
  margin-bottom:16px;
}

.test-tips-box.open{
  display:block;
  animation:fadeUp 0.3s ease both;
}

.test-tips-list{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(130px, 1fr));
  gap:10px;
  margin-top:8px;
}

.test-tip-item{
  background:rgba(255,255,255,0.7);
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(16,149,143,0.18);
  text-align:center;
}

.test-tip-he{
  display:block;
  font-weight:700;
  font-size:18px;
  color:var(--text);
}

.test-tip-tr{
  display:block;
  font-family:var(--font-translit);
  font-size:15px;
  color:var(--translit);
  margin-top:2px;
}

.test-card{padding:18px}

.test-mode-heading{
  margin:0 0 12px;
  text-align:center;
  font-size:25px;
  color:#22415e;
}

.test-mode-subtitle{
  margin:0 0 12px;
  text-align:center;
  font-size:15px;
  color:#5a7291;
}

.test-mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.test-mode-option{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:64px;
  padding:11px 46px 11px 12px;
  border:1px solid rgba(16,149,143,.28);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(236,247,244,.9));
  cursor:pointer;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.test-mode-option:hover{
  border-color:rgba(16,149,143,.48);
  box-shadow:0 9px 16px rgba(18,57,82,.12);
  transform:translateY(-1px);
}

.test-mode-option input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.test-mode-index{
  position:absolute;
  top:50%;
  right:9px;
  left:auto;
  transform:translateY(-50%);
  width:27px;
  height:27px;
  border-radius:999px;
  border:1px solid rgba(95,124,153,.52);
  background:#fff;
  color:#345470;
  font-size:14px;
  line-height:25px;
  font-weight:700;
  text-align:center;
}

.test-mode-title{
  display:block;
  width:100%;
  text-align:start;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:clamp(13px,2.1vw,16px);
  line-height:1.2;
  color:#1f3a57;
  font-weight:700;
}

.test-mode-option:has(input:checked){
  border-color:rgba(16,149,143,.62);
  box-shadow:0 0 0 2px rgba(16,149,143,.2) inset;
  background:linear-gradient(180deg, rgba(231,248,244,.96), rgba(217,242,237,.86));
}

.test-mode-option:has(input:checked) .test-mode-index{
  border-color:rgba(16,149,143,.7);
  background:rgba(16,149,143,.16);
  color:#19545d;
}

.test-run-mode-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:0 0 12px;
}

.test-run-mode-nav .btn{
  min-width:0;
  padding:9px 14px;
  font-size:15px;
}

.test-space-options,
#space-checks{
  display:flex;
  flex-wrap:wrap;
  gap:8px 14px;
}

#test-spaces-wrap{
  transition:opacity .14s ease, filter .14s ease;
}

#test-spaces-wrap.disabled{
  opacity:.55;
  filter:saturate(.8);
}

#test-spaces-wrap.disabled .test-space-option{cursor:not-allowed}
#test-spaces-wrap.disabled input{pointer-events:none}

.test-space-option{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#2f4e6b;
  font-size:15px;
  font-weight:500;
}

.test-space-option input{
  width:16px;
  height:16px;
  accent-color:var(--accent);
}

.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th{color:var(--text-soft);font-weight:700;font-size:12px;text-align:right;padding:0 10px}
.table td{background:rgba(255,255,255,.85);border:1px solid var(--border);padding:12px 10px;text-align:right}
.table td:first-child{border-top-right-radius:14px;border-bottom-right-radius:14px}
.table td:last-child{border-top-left-radius:14px;border-bottom-left-radius:14px}

.bigcard{min-height:220px;display:flex;flex-direction:column;justify-content:center;gap:10px;text-align:center}
.bigcard .front{font-size:34px}
.bigcard .back{font-size:20px}

.footer{margin-top:24px;color:var(--text-soft);font-size:12px}

.site-credit{
  text-align:center;
  font-size:13px;
  color:#51647f;
}

.site-credit a{
  color:#1d6178;
  text-decoration:underline;
  text-underline-offset:2px;
}

.site-credit a:hover{color:#0a6078}

@keyframes fadeUp{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

.header,
.card,
.notice{
  animation:fadeUp .46s ease both;
}

.space-card{animation:fadeUp .42s ease both}
.space-card:nth-child(2){animation-delay:.04s}
.space-card:nth-child(3){animation-delay:.07s}
.space-card:nth-child(4){animation-delay:.1s}
.space-card:nth-child(5){animation-delay:.13s}
.space-card:nth-child(6){animation-delay:.16s}

@media (max-width:1180px){
  .game-nav{
    width:min(640px,100%);
  }
}

@media (max-width:1024px){
  .header{
    border-radius:24px;
  }

  .home-highlight{
    grid-template-columns:1fr;
  }

  .space-word-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .quiz-choicegrid{grid-template-columns:1fr}
}

@media (max-width:900px){
  .container{padding:16px}

  .header{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    padding:16px;
  }

  .page-test .header,
  .page-test-run .header{
    align-items:center;
    justify-items:center;
    text-align:center;
  }

  .hero-actions{justify-content:flex-start}

  .space-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  .space-card{min-height:78px}
  .space-card h3{font-size:26px}

  .game-nav{
    width:100%;
  }

  .game-nav .btn{
    min-width:0;
    padding:10px 8px;
    font-size:15px;
  }

  .quiz-top,
  .match-top{
    flex-wrap:wrap;
    justify-content:center;
  }

  .quiz-edge-stat,
  .match-edge-stat{
    font-size:18px;
  }

  .quiz-split{grid-template-columns:1fr}

  .space-word-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .space-word-grid.space-word-grid-greetings{grid-template-columns:1fr}
  .space-word-card-greetings{
    padding:14px 12px;
  }
  .space-word-card-greetings .space-word-he{
    font-size:clamp(22px,6vw,30px);
  }
  .space-word-card-greetings .space-word-tr{
    font-size:clamp(20px,5.4vw,28px);
  }
  .space-search-input{
    min-height:40px;
    font-size:15px;
  }
  .space-search-filter{
    min-height:40px;
    font-size:14px;
    padding:8px 10px;
  }
  .space-search-label{font-size:13px}
  .space-search-group-title{font-size:17px}

  .test-mode-grid{grid-template-columns:1fr}
  .test-run-mode-nav .btn{
    font-size:14px;
    padding:8px 12px;
  }

  .quiz-typing-row{
    grid-template-columns:1fr;
  }

  .quiz-typing-input{
    min-height:40px;
    font-size:17px;
  }

  .match-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .match-list{grid-auto-rows:1fr}

  .choice-text{font-size:27px}
  .choice-text-sentence{
    font-size:clamp(20px,3.8vw,24px);
    line-height:1.3;
  }
  .choice-sub{font-size:21px}
  .choice-ar{font-size:32px}
}

@media (max-width:640px){
  :root{
    --drawer-width:min(190px,58vw);
  }

  body{
    background:#eef4f1;
    background-image:linear-gradient(180deg, #e3f0ee 0%, #e9f1ec 42%, #f1f2ec 74%, #f8f5ee 100%);
    background-repeat:no-repeat;
    background-size:100% 100%;
    background-attachment:scroll;
  }

  .page-glow{
    display:none;
  }

  .brand h1{font-size:clamp(30px,9vw,44px)}
  .game-header .brand h1,
  .page-space .brand h1,
  .page-game .brand h1,
  .page-test .brand h1,
  .page-test-run .brand h1{
    font-size:clamp(25px,8vw,34px);
  }

  .page-test-run .brand{
    gap:2px;
  }

  .page-test .brand{
    gap:2px;
  }

  .page-test-run .brand p{
    font-size:14px;
  }

  .page-test .brand p{
    font-size:14px;
  }

  .page-test-run .brand h1{
    max-width:18ch;
    font-size:clamp(26px,7.2vw,34px);
  }

  .page-test .brand h1{
    max-width:18ch;
    font-size:clamp(26px,7.2vw,34px);
  }

  .game-nav{
    padding:4px;
    border-radius:14px;
  }

  .game-nav .btn{
    padding:9px 6px;
    font-size:14px;
  }

  .brand p{font-size:15px}

  .space-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .space-card{
    min-height:64px;
    border-radius:16px;
    padding:8px 6px;
  }

  .space-card h3{
    font-size:clamp(20px,6.2vw,24px);
  }

  .game-side-toolbar{
    gap:7px;
    padding:10px 7px 7px;
  }

  .game-side-toolbar .btn:not(.side-drawer-close),
  .game-side-actions .btn{
    width:100%;
    min-width:0;
    min-height:36px;
    height:36px;
    font-size:13px;
  }

  .side-drawer-head{
    padding:0 32px 6px;
  }

  .side-drawer-title{
    font-size:13px;
  }

  .game-side-toolbar .btn.side-drawer-close{
    width:30px;
    min-width:30px;
    min-height:30px;
    height:30px;
    font-size:20px;
  }

  .side-drawer-toggle{
    right:10px;
    left:auto;
    bottom:10px;
  }

  .quiz-card,
  .match-card{padding:14px}

  .quiz-top{
    gap:6px;
    margin-bottom:8px;
  }

  .quiz-card-head{
    margin-bottom:12px;
    padding-top:4px;
  }

  .quiz-edge-stat{
    min-height:30px;
    padding:3px 10px;
    font-size:16px;
  }

  .quiz-prompt-split{
    margin:0 0 6px;
  }

  .quiz-split{
    gap:8px;
  }

  .quiz-split-side{
    padding:6px 8px 7px;
    border-radius:12px;
  }

  .quiz-split-title{
    font-size:14px;
  }

  .quiz-split-body{
    min-height:72px;
    padding:4px 4px 2px;
  }

  .quiz-split-text{
    font-size:clamp(20px,5.4vw,28px);
    line-height:1.2;
  }

  .quiz-split-missing{
    font-size:clamp(16px,4.2vw,20px);
  }

  .match-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .match-list{grid-auto-rows:1fr}

  .quiz-prompt-main{font-size:clamp(30px,9vw,40px)}
  .quiz-prompt-main-sentence{
    font-size:clamp(19px,5.9vw,25px);
    line-height:1.24;
  }
  .quiz-prompt-main-ar{
    font-size:clamp(36px,11vw,48px);
    line-height:1.12;
  }
  .quiz-prompt-main-ar-diacritic{
    line-height:1.24;
    padding-top:.14em;
    margin-top:.05em;
  }
  .quiz-prompt-sub{font-size:22px}

  .quiz-choice{
    min-height:74px;
    padding-inline:46px;
  }

  .page-game[data-space-code="greetings"][data-game-mode="quiz"] .quiz-choice{
    min-height:88px;
    padding-inline:50px;
    padding-block:14px;
  }

  .page-game[data-space-code="greetings"][data-game-mode="quiz"] .quiz-choice .choice-text{
    line-height:1.26;
  }

  .page-test-run[data-test-mode="he_to_tr_niqqud"] .quiz-choice{
    min-height:92px;
    padding-inline:58px;
    padding-block:16px;
  }

  .page-test-run[data-test-mode="he_to_tr_niqqud"] .quiz-choice .choice-text,
  .page-test-run[data-test-mode="he_to_tr_niqqud"] .quiz-choice .choice-text-sentence{
    line-height:1.42;
  }

  .quiz-choice.quiz-choice-part2{
    min-height:90px;
    padding-inline:60px;
    padding-block:16px;
  }

  .quiz-choice.quiz-choice-part2 .choice-text-sentence{
    line-height:1.35;
  }

  .choice-text{font-size:24px}
  .choice-text-sentence{
    font-size:clamp(16px,4vw,20px);
    line-height:1.46;
  }

  .page-test-run .quiz-choice .choice-text-sentence{
    line-height:1.48;
  }

  .page-test-run[data-test-mode="he_to_tr_niqqud"] .quiz-choice .choice-text-sentence{
    font-size:clamp(17px,4.5vw,22px);
    line-height:1.6;
  }
  .choice-sub{font-size:18px}
  .choice-ar{font-size:30px}

  .quiz-next-row #nextq,
  .match-next-row #new-round{
    min-width:176px;
    padding:9px 16px;
    font-size:20px;
  }

  .quiz-next-row{
    margin-top:6px;
  }

  .quiz-auto-row{
    margin-top:4px;
  }

  .quiz-typing-hint{
    font-size:12px;
  }

  .quiz-keyboard{display:none}

  .alphabet-table{border-spacing:5px}
  .alphabet-table td{padding:8px 6px}
  .alphabet-letter{font-size:34px}
  .alphabet-name{font-size:13px}
  .alphabet-translit{font-size:11px}
  .space-search-controls{
    grid-template-columns:1fr;
  }
  .space-search-group-title{font-size:16px}

}

@media (max-width:380px){
  .space-grid{gap:7px}
  .space-card{
    min-height:58px;
    padding:7px 5px;
  }
  .space-card h3{font-size:clamp(18px,6.4vw,21px)}
  .space-word-grid{grid-template-columns:1fr}
  .quiz-auto-toggle span{font-size:10px}
  .quiz-edge-stat{
    min-height:28px;
    font-size:15px;
    padding:2px 9px;
  }
  .quiz-split{
    gap:6px;
  }
  .quiz-split-body{
    min-height:62px;
    padding:3px 3px 2px;
  }
  .quiz-split-title{font-size:13px}
  .quiz-split-text{
    font-size:clamp(18px,5.8vw,24px);
  }
  .match-grid{gap:6px}
  .match-list{grid-auto-rows:1fr}
  .match-item-he{font-size:clamp(17px,5vw,22px)}
  .match-item-ar-main{font-size:clamp(18px,5.6vw,24px)}
  .match-item-ar-tr{font-size:clamp(13px,3.7vw,16px)}
}
