/* Hebrew games */
.g-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .g-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .g-levels { grid-template-columns: 1fr; } }
.g-pick { font: inherit; text-align: left; cursor: pointer; background: var(--white); border: 2px solid var(--line); border-radius: 22px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
.g-pick:hover { border-color: #BFD0FF; transform: translateY(-2px); }
.g-pick[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 10px 26px rgba(31, 94, 255, .14); }
.g-pick .g-lv { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.g-pick .g-lv span[lang] { font-family: var(--he); letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--ink); font-weight: 600; }
.g-pick b { font-size: 19px; color: var(--navy); }
.g-pick small bdi, .g-tab bdi { font-family: var(--he); font-size: 15px; }
.g-pick small { font-size: 14px; color: var(--ink); line-height: 1.45; }
#g-stage { scroll-margin-top: 90px; }
.g-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .g-tabs { grid-template-columns: 1fr 1fr; } }
.g-pop { position: fixed; inset: 0; z-index: 100; background: rgba(11, 27, 63, .45); display: flex; align-items: center; justify-content: center; padding: 20px; animation: g-pop-in .25s ease-out; }
.g-pop-card { position: relative; background: var(--white); border-radius: 28px; padding: 32px 28px 26px; max-width: 440px; width: 100%; box-shadow: 0 30px 70px rgba(11, 27, 63, .3); display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.g-pop-card .h3 { margin: 4px 0 0; }
.g-pop-card p { margin: 0; }
.g-pop-ic { width: 64px; height: 64px; border-radius: 20px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }
.g-pop-x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 50%; }
.g-pop-x:hover { background: var(--mist); }
.g-pop-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 10px; }
.g-pop-actions .btn { width: 100%; justify-content: center; }
.g-pop-keep { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 10px; cursor: pointer; text-decoration: underline; }
@keyframes g-pop-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .g-pop { animation: none; } }
.g-tab { font: inherit; cursor: pointer; text-align: left; background: var(--mist); border: 2px solid transparent; border-radius: 16px; padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; color: var(--navy); font-weight: 700; font-size: 16px; min-width: 0; }
.g-tab span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.g-tab[aria-pressed="true"] { background: var(--white); border-color: var(--blue); }
.g-tab[aria-pressed="true"] span { color: var(--blue); }
.g-pic { width: 150px; height: 150px; display: block; margin: 0 auto 4px; }
.g-prompt--small { font-size: 20px !important; }
.g-fill { background: #E7F6EC; color: #0E5A2B; border-radius: 4px; padding: 0 1px; }
.g-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: 30px; box-shadow: 0 14px 40px rgba(11, 27, 63, .08); display: flex; flex-direction: column; gap: 18px; }
.g-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.g-level { color: var(--blue); }
.g-score { color: var(--navy); }
.g-dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.g-dots span { height: 7px; border-radius: 4px; background: var(--blue-soft); }
.g-dots span.cur { background: #9DB8FF; }
.g-dots span.ok { background: var(--green); }
.g-dots span.no { background: #F59E9E; }
.g-q { text-align: center; padding: 10px 0 4px; }
.g-sub { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.g-prompt { margin: 0; font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; color: var(--navy); line-height: 1.4; text-wrap: balance; }
.g-prompt[lang="he"] { font-family: var(--he); }
.g-prompt--big[lang="he"] { font-size: clamp(44px, 8vw, 64px); }
.g-hint { margin: 6px 0 0; font-family: var(--he); font-size: 18px; color: var(--ink); }
.g-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g-opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .g-opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-opt { font: inherit; font-size: 20px; font-weight: 700; color: var(--navy); background: var(--mist); border: 2px solid transparent; border-radius: 18px; padding: 16px 12px; min-height: 64px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.g-opt[lang="he"] { font-family: var(--he); font-size: 23px; font-weight: 600; }
.g-opt--big[lang="he"] { font-size: 34px; }
.g-opt:hover:not(:disabled) { border-color: var(--blue); background: var(--white); }
.g-opt:active:not(:disabled) { transform: scale(.98); }
.g-opt:disabled { cursor: default; }
.g-opt.is-right { background: #E7F6EC; border-color: var(--green); color: #0E5A2B; }
.g-opt.is-wrong { background: #FDECEC; border-color: #E5484D; color: #8F1D21; }
.g-feedback { min-height: 46px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; font-size: 17px; font-weight: 700; }
.g-yes { color: var(--green); }
.g-no { color: #8F1D21; }
.g-no b { font-family: var(--he); font-size: 20px; unicode-bidi: isolate; }
.g-end { align-items: center; text-align: center; }
.g-final { margin: 0; font-size: 72px; font-weight: 800; color: var(--navy); line-height: 1; }
.g-final small { font-size: 32px; color: var(--ink); }
.g-msg { margin: 0; font-size: 19px; color: var(--navy); font-weight: 600; }
.g-note { margin: 0; }
.g-lock { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; }
.g-lock .ic { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
@media (max-width: 720px) { .g-lock { grid-template-columns: 1fr; text-align: left; } }
@media (max-width: 640px) { .g-card { padding: 22px; } }
.g-opts--1 { grid-template-columns: 1fr; }
.g-opts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .g-opts--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-opt--long[lang="he"] { font-size: 19px; font-weight: 500; text-align: right; padding: 14px 18px; line-height: 1.5; }
.g-prompt--mid { font-size: clamp(20px, 2.6vw, 24px) !important; }
.g-passage { background: var(--mist); border-radius: 18px; padding: 14px 20px; }
.g-passage summary { cursor: pointer; font-weight: 800; color: var(--navy); font-family: var(--he); direction: rtl; text-align: right; font-size: 19px; }
.g-passage div { font-family: var(--he); font-size: 18px; line-height: 1.85; color: var(--navy); max-height: 340px; overflow-y: auto; padding-top: 6px; }
.g-passage p { margin: 0 0 10px; }
.s-levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.s-level { text-decoration: none; }
.s-level.is-soon { opacity: .55; cursor: default; }
.s-level.is-soon:hover { transform: none; border-color: var(--line); }
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.s-game { font: inherit; text-align: left; cursor: pointer; background: var(--white); border: 2px solid var(--line); border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; position: relative; min-width: 0; transition: border-color .15s, transform .15s; }
.s-game:hover { border-color: #BFD0FF; transform: translateY(-2px); }
.s-game[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 10px 26px rgba(31, 94, 255, .14); }
.s-game .s-num { font-size: 12px; font-weight: 800; color: var(--blue); letter-spacing: .06em; }
.s-game b { font-size: 16px; color: var(--navy); line-height: 1.3; }
.s-game small { font-family: var(--he); font-size: 15px; color: var(--ink); text-align: right; }
.s-best { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--green); background: #E7F6EC; border-radius: 999px; padding: 2px 8px; }

