/* IDL Learn – platform screens: main menu with panels, school sign-in, catalogue, analytics, account, games, help. */

/* ---------- Header and main menu ---------- */
.header { background: var(--brand); border-bottom: 0; box-shadow: 0 2px 0 rgba(0, 0, 0, .06); }
.header__in { min-height: 60px; gap: 18px; }
.header .brand { color: #fff; }
.header .brand__mark { background: #fff; color: var(--brand); box-shadow: none; }
.header .brand__name { font-size: 16.5px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header .user__btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); color: #fff; }
.header .save-state { color: rgba(255, 255, 255, .85); }
.burger { display: none; width: 42px; height: 42px; padding: 9px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.burger svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mnav { display: flex; align-items: stretch; flex: 1; justify-content: center; align-self: stretch; }
.mnav__item { position: relative; display: flex; }
.mnav__link { display: inline-flex; align-items: center; gap: 4px; padding: 0 16px; border: 0; background: none; color: rgba(255, 255, 255, .92); font: 600 17px/1 var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.mnav__link:hover, .mnav__item.is-open > .mnav__link { color: #fff; background: rgba(0, 0, 0, .12); }
.mnav__link.is-on { color: #fff; background: rgba(0, 0, 0, .2); box-shadow: inset 0 -3px 0 #FFD27A; }
.mnav__chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; opacity: .7; transition: transform .2s ease; }
.mnav__item.is-open .mnav__chev { transform: rotate(180deg); }
.mpanel { position: absolute; top: 100%; left: 50%; z-index: 60; min-width: 300px; width: max-content; max-width: min(1040px, calc(100vw - 32px)); transform: translateX(-50%); padding: 26px 30px 22px; border-radius: 0 0 14px 14px; background: #fff; box-shadow: 0 24px 50px -20px rgba(23, 32, 54, .45); opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility 0s linear .15s; }
.mnav__item.is-open > .mpanel { opacity: 1; visibility: visible; transition-delay: 0s; }
.mpanel::before { content: ''; position: absolute; top: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #fff; }
.mpanel__cols { display: grid; grid-template-columns: repeat(var(--n), minmax(170px, 230px)); gap: 10px 34px; }
.mgroup { margin-bottom: 18px; }
.mgroup__h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13.5px; font-weight: 900; color: #0E7490; }
.mi { width: 22px; height: 22px; flex: none; fill: none; stroke: #0EA5E9; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mgroup ul { margin: 0; padding: 0; list-style: none; }
.mgroup li a, .mgroup__inline a { display: inline-block; padding: 5px 0; color: #0369A1; font-size: 14.5px; font-weight: 700; }
.mgroup li a:hover, .mgroup__inline a:hover { color: var(--brand); }
.mgroup__inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.mgroup__inline span { color: #94A3B8; }
.mtag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #0EA5E9; color: #fff; font-size: 11px; font-weight: 800; vertical-align: 1px; }
@media (max-width: 1100px) { .mnav__link { padding: 0 11px; font-size: 15.5px; } .header .brand__name { max-width: 160px; } }
@media (max-width: 900px) {
    .burger { display: inline-flex; }
    .header__in { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
    .mnav { position: fixed; top: 58px; left: 0; right: 0; bottom: 0; z-index: 70; display: none; flex-direction: column; justify-content: flex-start; overflow-y: auto; padding: 8px 0 40px; background: #fff; }
    body.nav-open .mnav { display: flex; }
    .mnav__item { flex-direction: column; border-bottom: 1px solid var(--line); }
    .mnav__link { justify-content: space-between; width: 100%; min-height: 54px; padding: 0 20px; color: var(--ink); font-size: 17px; }
    .mnav__link:hover, .mnav__item.is-open > .mnav__link, .mnav__link.is-on { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
    .mpanel { position: static; display: none; transform: none; width: auto; max-width: none; padding: 6px 20px 10px; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; }
    .mpanel::before { display: none; }
    .mnav__item.is-open > .mpanel { display: block; }
    .mpanel__cols { grid-template-columns: 1fr 1fr; gap: 0 18px; }
    .user__name { display: none; }
}
@media (max-width: 480px) { .mpanel__cols { grid-template-columns: 1fr; } .header .brand__name { display: none; } }

/* ---------- Sign in (general and each school's own page) ---------- */
.auth__school-kicker { margin: 4px 0 2px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.auth__school { margin-bottom: 8px; }
.auth__choices { display: grid; gap: 12px; margin: 22px 0 14px; }
.auth__email { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.auth__email svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.auth__or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.auth__or::before, .auth__or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth__back { display: block; margin: 12px auto 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- Catalogue: subject landing, year cards, topics ---------- */
.cat-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 6px 0 26px; padding: 26px 30px; border-radius: 22px; background: linear-gradient(120deg, #E0F2FE, #F0FDF4 60%, #FEF9C3); }
.cat-hero__icon { flex: none; width: 76px; height: 76px; padding: 14px; border-radius: 20px; background: var(--c); color: var(--c); box-shadow: 0 10px 22px -12px var(--c); }
.cat-hero__icon svg { color: var(--c); }
.cat-hero > div { flex: 1; min-width: 240px; }
.cat-hero h1 { color: #0369A1; margin-bottom: 6px; }
.cat-hero p { margin: 0; }
.cat-hero__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pillbtn { padding: 10px 18px; border-radius: 999px; background: #fff; border: 2px solid #BAE6FD; color: #0369A1; font-weight: 800; text-decoration: none !important; }
.pillbtn.is-on, .pillbtn:hover { background: #0EA5E9; border-color: #0EA5E9; color: #fff; }
.ycards { display: grid; gap: 14px; max-width: 920px; }
.ycard { position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; min-height: 86px; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px -4px rgba(23, 32, 54, .25); color: var(--ink); text-decoration: none !important; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.ycard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(23, 32, 54, .45); }
.ycard.is-mine { box-shadow: 0 0 0 3px var(--c), 0 2px 10px -4px rgba(23, 32, 54, .25); }
.ycard__badge { align-self: stretch; display: flex; align-items: center; justify-content: center; background: var(--c); color: #fff; font-size: 28px; font-weight: 900; }
.ycard--topic { grid-template-columns: 1fr auto; border-left: 14px solid var(--c); }
.ycard__body { padding: 12px 18px; min-width: 0; }
.ycard__body b { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.ycard--topic .ycard__body b { color: var(--c); }
.ycard__body b small { font-size: 13px; font-weight: 700; color: var(--muted); }
.ycard__body b em { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: 11.5px; font-style: normal; vertical-align: 2px; }
.ycard__inc { margin: 4px 0 0; font-size: 13.5px; color: var(--text); line-height: 1.5; }
.ycard__inc span { color: var(--muted); }
.ycard__inc i { margin: 0 6px; color: var(--c); font-style: normal; }
.ycard__go { margin-right: 18px; padding: 10px 16px; border-radius: 6px; background: var(--c); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.cat-title { margin: 6px 0 18px; } .cat-title small { color: var(--muted); font-size: 15px; font-weight: 700; }
@media (max-width: 680px) { .ycard { grid-template-columns: 52px 1fr; } .ycard--topic { grid-template-columns: 1fr; } .ycard__go { grid-column: 1 / -1; justify-self: start; margin: 0 0 12px 18px; } .ycard--topic .ycard__go { margin-left: 18px; } }
/* level rail on a level's skill page */
.lrail { position: fixed; left: max(8px, calc(50vw - 640px)); top: 140px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.lrail a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 900; text-decoration: none !important; box-shadow: 0 3px 8px -3px rgba(0, 0, 0, .35); opacity: .78; transition: transform .15s ease, opacity .15s ease; }
.lrail a:hover { opacity: 1; transform: scale(1.08); }
.lrail a.is-on { opacity: 1; width: 48px; height: 48px; margin-left: -4px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--c); }
@media (max-width: 1320px) { .lrail { display: none; } }

/* ---------- Analytics ---------- */
.analytics { padding-top: 14px; }
.ascope { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 10px; padding: 6px; border-radius: 12px; background: #F0FDF4; border: 1px solid #DCFCE7; }
.ascope__a { padding: 8px 16px; border-radius: 9px; color: #374151; font-weight: 800; font-size: 14px; text-decoration: none !important; }
.ascope__a.is-on { background: #fff; color: #0284C7; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.ascope__pick { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.ascope__pick select { padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; }
.atabs { display: flex; gap: 2px; overflow-x: auto; margin-bottom: 14px; border-bottom: 2px solid var(--line); scrollbar-width: none; }
.atabs::-webkit-scrollbar { display: none; }
.atab { padding: 10px 14px; color: var(--muted); font-weight: 800; font-size: 14px; white-space: nowrap; text-decoration: none !important; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.atab.is-on { color: #0284C7; border-bottom-color: #0EA5E9; }
.afilters { display: grid; gap: 8px; margin-bottom: 18px; padding: 14px 18px; border-radius: 12px; background: #F0F9FF; border: 1px solid #E0F2FE; font-size: 14px; }
.afilters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.afilters__h { min-width: 70px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #475569; }
.afilters label { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.afilters input[type=date], .afilters select { padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; }
.afilters .btn { justify-self: start; }
.ahead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.ahead h1 { margin: 0; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; font-size: clamp(24px, 3vw, 32px); color: #374151; }
.abanner { position: relative; overflow: hidden; padding: 20px 20px 34px; border-radius: 12px 12px 0 0; background: #2EB2F0; color: #fff; text-align: center; font-size: 19px; font-weight: 700; }
.abanner::after { content: ''; position: absolute; left: -5%; right: -5%; bottom: -18px; height: 36px; border-radius: 50%; background: #fff; opacity: .9; }
.abanner p { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.acount { display: inline-flex; gap: 3px; }
.acount b { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 34px; padding: 0 4px; border-radius: 4px; background: #0B74C4; font-size: 20px; }
.acount em { font-style: normal; align-self: flex-end; }
.awho { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; margin-bottom: 26px; padding: 18px; border-radius: 0 0 12px 12px; background: #fff; box-shadow: var(--shadow); color: #4B5563; font-size: 16px; }
.awho b { margin-right: 4px; color: #374151; font-size: 18px; }
.asec { margin: 8px 0 12px; font-weight: 500; color: #374151; }
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 22px; }
.agrid--2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.acard { margin-bottom: 16px; padding: 16px 18px 18px; border-radius: 6px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.agrid .acard { margin-bottom: 0; }
.acard > header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.acard h3 { margin: 0; font-weight: 500; font-size: 18px; color: #374151; }
.acard .link { font-size: 13px; color: #0284C7; font-weight: 700; }
.aflex { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.acenter { text-align: center; } .acenter p { margin: 4px 0 0; }
.ach { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.alegend { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.alegend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; }
.alegend i { width: 12px; height: 12px; border-radius: 3px; }
.alegend small { color: var(--muted); } .alegend b { color: #374151; }
.alegend--row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; } .alegend--row li { display: inline-flex; }
.abig { margin: 6px 0; font-size: 30px; font-weight: 800; color: #374151; } .abig small { font-size: 15px; color: var(--muted); font-weight: 700; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; font-size: 14px; }
.hbar__l { font-weight: 700; color: #374151; } .hbar__l small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.hbar__t { display: flex; height: 18px; border-radius: 3px; background: #F1F5F9; overflow: hidden; }
.hbar__t i { display: block; height: 100%; }
.hbar b { font-size: 14px; color: #374151; }
.acols { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; border-bottom: 2px solid #E5E7EB; overflow-x: auto; }
.acols span { display: flex; align-items: flex-end; height: 100%; }
.acols i { display: block; border-radius: 3px 3px 0 0; background: #2EB2F0; }
.acols__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 700; }
.accbar { display: inline-block; width: 60px; height: 8px; border-radius: 99px; background: #F1F5F9; overflow: hidden; vertical-align: middle; } .accbar i { display: block; height: 100%; }
.aleaders { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.aleaders li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #F8FAFC; }
.aleaders li:nth-child(1) { background: #FEF9C3; } .aleaders li:nth-child(2) { background: #F1F5F9; } .aleaders li:nth-child(3) { background: #FFEDD5; }
.arank { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; font-weight: 900; color: #0369A1; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 640px) { .hbar { grid-template-columns: 1fr 70px; } .hbar__t { grid-column: 1 / -1; grid-row: 2; } .agrid--2 { grid-template-columns: 1fr; } }

/* ---------- Account ---------- */
.acct-bar { background: #fff; border-bottom: 1px solid var(--line); }
.acct-bar__in { display: flex; overflow-x: auto; }
.acct-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; padding: 13px 10px; color: #4B5563; font-weight: 700; font-size: 14.5px; text-decoration: none !important; border-bottom: 3px solid transparent; }
.acct-tab + .acct-tab { border-left: 1px solid var(--line); }
.acct-tab.is-on { color: #0284C7; border-bottom-color: #0EA5E9; }
.acct-tab .mi { width: 20px; height: 20px; }
.acct-school { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 800; }
.acct-school select { padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; font-weight: 700; }
.acct-sub { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.acct-sub a { padding: 7px 14px; border-radius: 999px; color: var(--text); font-weight: 800; font-size: 14px; text-decoration: none !important; }
.acct-sub a.is-on { background: var(--brand-soft); color: var(--brand-dark); }
.reg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.reg-head h1 { margin: 0; color: #0EA5E9; font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); }
.btn--green { background: #65A30D; } .btn--green:hover { background: #4D7C0F; }
.btn--amber { background: #F59E0B; color: #fff; } .btn--amber:hover { background: #D97706; }
.btn .mi { width: 18px; height: 18px; stroke: currentColor; margin-right: 4px; vertical-align: -3px; }
.more { position: relative; }
.more__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 270px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.more__menu button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; background: none; text-align: left; font-weight: 700; cursor: pointer; }
.more__menu button:hover { background: var(--bg); }
.reg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.reg-search { flex: 1 1 340px; min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 8px; }
.reg-tools select { min-height: 42px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 8px; }
.reg-count { font-size: 14px; font-weight: 700; color: var(--muted); }
.reg-pager { display: inline-flex; gap: 4px; }
.reg-table td { font-size: 14px; }
.reg-table tr.is-off td { opacity: .5; }
.lic { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 20px; }
.lic__card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.lic__card > span { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lic__card b { font-size: 19px; color: var(--ink); } .lic__card small { color: var(--muted); font-weight: 600; }
.lic-warn { background: #FEF3C7; border-top: 1px solid #FCD34D; color: #92400E; font-size: 14px; font-weight: 700; padding: 7px 0; }
.lic-warn.is-expired { background: #FEE2E2; border-top-color: #FCA5A5; color: #991B1B; }
.lic-warn a { color: inherit; text-decoration: underline; margin-left: 6px; }
.warn { color: #B45309; font-weight: 800; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
.small-break { font-size: 15px !important; word-break: break-all; }
.lic__bar { display: block; height: 10px; margin: 6px 0 2px; border-radius: 99px; background: var(--line); overflow: hidden; } .lic__bar i { display: block; height: 100%; background: #22C55E; }
.signin-card { text-align: center; }
.signin-card__url { margin: 6px 0 16px; font-size: clamp(18px, 2.6vw, 26px); font-weight: 900; color: var(--brand); word-break: break-all; }
.signin-card .row-actions { justify-content: center; }
.steps-big { margin: 0; padding-left: 22px; display: grid; gap: 14px; } .steps-big li { padding-left: 4px; }
.steps-big .seg { margin: 8px 0 0; }
.up-in { display: grid; gap: 8px; margin: 8px 0 10px; } .up-in textarea { width: 100%; padding: 10px; border: 1.5px solid var(--line); border-radius: 10px; font: 14px/1.5 ui-monospace, Consolas, monospace; }
tr.is-bad td { background: #FEF2F2; } .bad { color: var(--no); } .ok { color: var(--ok); font-weight: 800; }
.checks__scroll { max-height: 200px; overflow-y: auto; padding-right: 6px; }

/* ---------- Games ---------- */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; border-radius: 12px; background: #fff; border: 2px solid #E0F2FE; box-shadow: 0 2px 6px rgba(14, 165, 233, .15); color: var(--ink); text-decoration: none !important; transition: transform .15s ease, box-shadow .15s ease; }
.gcard:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 12px 24px -12px rgba(14, 165, 233, .6); }
.gthumb { width: 100%; height: auto; border-radius: 8px; display: block; }
.gcard b { margin-top: 6px; color: #0E7490; font-size: 16px; } .gcard span { color: var(--muted); font-size: 13.5px; } .gcard em { color: #B45309; font-style: normal; font-weight: 800; font-size: 13px; }
.game { position: relative; overflow: hidden; min-height: 460px; border-radius: 22px; background: linear-gradient(180deg, #E0F2FE, #F0FDF4); box-shadow: var(--shadow); }
.game.is-shake { animation: shake .45s ease; }
.game__hud { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; background: rgba(255, 255, 255, .8); font-weight: 800; color: #334155; }
.game__hud b { font-size: 20px; color: var(--c, var(--brand)); } #g-time.is-low b { color: var(--no); }
.game__stage { position: relative; min-height: 400px; padding: 20px; }
.gstart, .gend { max-width: 460px; margin: 10px auto; text-align: center; }
.gstart .gthumb { max-width: 260px; margin: 0 auto 12px; }
.btn--big { padding: 14px 40px; font-size: 20px; border-radius: 999px; }
.gend__medal { font-size: 70px; animation: popIn .5s ease both; } .gend__score { font-size: 20px; } .gend .row-actions { justify-content: center; }
.gq { margin-bottom: 14px; padding: 14px 18px; border-radius: 14px; background: #fff; text-align: center; font-size: 20px; font-weight: 800; color: var(--ink); }
.gq .q-text { margin: 0; font-size: 18px; } .gq .q-big { margin: 6px 0 0; font-size: 30px; }
.balloons { position: relative; height: 300px; }
.balloon { position: absolute; left: var(--x); bottom: -120px; width: 22%; max-width: 130px; aspect-ratio: 4 / 5; border: 0; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .55), transparent 30%), var(--b); color: #fff; font-size: 20px; font-weight: 900; cursor: pointer; animation: balloonRise var(--dur, 9s) linear var(--d) forwards; box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .12); }
.balloons--easy { height: 340px; }
.balloons--easy .balloon { width: 24%; max-width: 150px; font-size: 24px; }
.balloon:hover { filter: brightness(1.06); }.balloon::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 2px; height: 26px; background: #64748B; }
.balloon span { display: block; padding: 0 6px; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.balloon.is-pop { animation: pop2 .3s ease forwards; } .balloon.is-wrong { opacity: .35; }
@keyframes balloonRise { from { bottom: -120px; } to { bottom: 110%; } }
@keyframes pop2 { to { transform: scale(1.6); opacity: 0; } }
.gsprint { justify-content: center; }
.mgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 640px; margin: 0 auto; perspective: 800px; }
.mcard { aspect-ratio: 5 / 4; padding: 0; border: 0; background: none; cursor: pointer; }
.mcard__in { position: relative; display: block; width: 100%; height: 100%; transition: transform .4s ease; transform-style: preserve-3d; }
.mcard.is-open .mcard__in { transform: rotateY(180deg); }
.mcard__back, .mcard__front { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 12px; backface-visibility: hidden; font-weight: 900; }
.mcard__back { background: #10B981; color: #fff; font-size: 28px; }
.mcard__front { background: #fff; color: var(--ink); font-size: 17px; transform: rotateY(180deg); border: 3px solid #A7F3D0; }
.mcard.is-done .mcard__front { background: #DCFCE7; border-color: #22C55E; }
.climb { display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
.climb__sky { position: relative; min-height: 360px; border-radius: 16px; background: linear-gradient(#0B1842, #0E2CA0); overflow: hidden; }
.climb__moon { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-size: 40px; }
.climb__rocket { position: absolute; left: 50%; transform: translateX(-50%); font-size: 40px; transition: bottom .5s ease; }
@media (max-width: 640px) { .climb { grid-template-columns: 1fr; } .climb__sky { min-height: 160px; } .mgrid { grid-template-columns: repeat(3, 1fr); } }
.tf { max-width: 560px; margin: 30px auto; text-align: center; }
.tf__eq { padding: 26px; border-radius: 18px; background: #fff; font-size: clamp(26px, 5vw, 40px); font-weight: 900; color: var(--ink); }
.tf__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tf__b { min-height: 80px; border: 0; border-radius: 18px; color: #fff; font-size: 24px; font-weight: 900; cursor: pointer; }
.tf__b--yes { background: #22C55E; } .tf__b--no { background: #EF4444; } .tf__b:active { transform: scale(.97); }
.scr { max-width: 600px; margin: 0 auto; text-align: center; }
.scr__word { min-height: 60px; margin: 10px 0 18px; padding: 10px; border-radius: 14px; background: #fff; font-size: 36px; font-weight: 900; letter-spacing: .25em; color: #7C2D12; }
.scr__tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.scr__t { width: 56px; height: 62px; border: 0; border-radius: 12px; background: #FDBA74; color: #7C2D12; font-size: 28px; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 #EA580C; }
.scr__t:disabled { opacity: .3; box-shadow: none; transform: translateY(5px); }
.scr .row-actions { justify-content: center; }
.srt { max-width: 640px; margin: 20px auto; text-align: center; }
.srt__card { display: inline-block; min-width: 220px; margin-bottom: 30px; padding: 18px 26px; border-radius: 16px; background: #fff; border: 3px solid #0B1842; font-size: 24px; font-weight: 900; color: #0B1842; animation: slideIn .3s ease; }
.srt__bins { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 12px; }
.srt__bin { min-height: 90px; padding: 10px; border: 0; border-radius: 16px; background: #163EC4; color: #fff; font-size: 18px; font-weight: 900; cursor: pointer; }
.srt__bin:nth-child(2) { background: #0EA5E9; } .srt__bin:nth-child(3) { background: #10B981; } .srt__bin:nth-child(4) { background: #F59E0B; }

/* Easy games (Grade/Year 1–4): big targets, pictures, no timer */
.gsec { margin: 8px 0 14px; font-size: 20px; } .gsec small { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; color: var(--muted); }
.ggrid + .gsec { margin-top: 30px; }
.gtag { padding: 2px 8px; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: 11.5px; font-weight: 900; vertical-align: 2px; }
.gcard--easy { border-color: #BBF7D0; }
.kq { max-width: 760px; margin: 0 auto; text-align: center; }
.kq__prompt { position: relative; margin-bottom: 22px; padding: 22px 54px 18px; border-radius: 24px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 30px -22px rgba(23, 32, 54, .45); }
.kq__again, .kq__sound { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--brand-soft); font-size: 20px; cursor: pointer; }
.kq__sound { position: static; width: 36px; height: 36px; font-size: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.kq__text { margin: 10px 0 0; font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--ink); }
.kq__text--big { font-size: clamp(24px, 4vw, 34px); }
.kq__text b { color: var(--brand); }
.kq__big { font-size: clamp(84px, 14vw, 120px); line-height: 1.1; }
.kq__pics { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 8px; max-width: 520px; font-size: clamp(32px, 5vw, 44px); line-height: 1.15; }
.kq__pics i { flex-basis: 100%; height: 0; }
.kq__pics .is-gone { opacity: .25; filter: grayscale(1); position: relative; }
.kq__pics .is-gone::after { content: '✕'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #DC2626; font-size: .8em; font-weight: 900; }
.kq__pics--sm { font-size: 30px; max-width: 220px; }
.kq__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; } .kq__sum > b { font-size: 44px; color: var(--brand); }
.kq__train { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 8px; padding-bottom: 6px; }
.kq__engine { font-size: 56px; }
.kq__car { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; height: 64px; padding: 0 10px; border-radius: 12px 12px 6px 6px; background: hsl(calc(var(--k) * 52 + 10), 85%, 56%); color: #fff; font-size: 26px; font-weight: 900; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14); }
.kq__car.is-gap { background: #fff; color: #0EA5E9; box-shadow: inset 0 0 0 3px #0EA5E9; border-style: dashed; animation: kqPulse 1.4s ease-in-out infinite; }
.kq__opts { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; max-width: 640px; margin: 0 auto; }
.kq__opts--wide { max-width: 560px; }
.kq__opt { display: flex; align-items: center; justify-content: center; min-height: 104px; padding: 12px; border: 0; border-radius: 26px; background: #fff; color: var(--ink); font: 900 clamp(32px, 6vw, 46px)/1 var(--font); cursor: pointer; box-shadow: 0 6px 0 hsl(calc(var(--i) * 70 + 230), 70%, 80%), 0 14px 26px -18px rgba(23, 32, 54, .5); transition: transform .12s ease, box-shadow .12s ease; animation: kqIn .35s ease both; animation-delay: calc(var(--i) * 60ms); }
.kq__opt:hover:not(:disabled) { transform: translateY(-3px); }
.kq__opt:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 hsl(calc(var(--i) * 70 + 230), 70%, 80%); }
.kq__opt.is-right { background: #22C55E; color: #fff; box-shadow: 0 6px 0 #15803D; animation: kqPop .4s ease; }
.kq__opt.is-wrong { opacity: .35; animation: shake .4s ease; }
.kq__opt:disabled { cursor: default; }
.kq__opts--letters .kq__opt { font-size: clamp(44px, 8vw, 60px); }
.kq__opts--shapes .kq__opt { min-height: 130px; }
.kq__shape { width: 96px; height: 96px; }
.kq__emoji { font-size: clamp(50px, 9vw, 68px); line-height: 1; }
.kq__hint { min-height: 28px; margin: 16px 0 0; font-size: 20px; font-weight: 800; color: #B45309; }
.kq__stars { display: inline-flex; gap: 2px; font-size: 20px; letter-spacing: 0; }
.kq__stars i { color: #CBD5E1; font-style: normal; } .kq__stars i.is-on { color: #F59E0B; } .kq__stars i.is-now { color: var(--brand); }
@keyframes kqIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes kqPop { 50% { transform: scale(1.08); } }
@keyframes kqPulse { 50% { transform: translateY(-4px); } }
@media (max-width: 560px) { .kq__opts { gap: 10px; } .kq__opt { min-height: 88px; border-radius: 20px; } .kq__prompt { padding: 18px 46px 14px; } .kq__car { min-width: 56px; height: 52px; font-size: 20px; } .kq__shape { width: 72px; height: 72px; } }
@media (prefers-reduced-motion: reduce) { .kq__opt, .kq__car.is-gap { animation: none; } .balloon { animation-duration: calc(var(--dur, 9s) * 1.5); } }

/* ---------- Help ---------- */
.faq { padding: 12px 0; border-bottom: 1px solid var(--line); } .faq summary { font-weight: 800; cursor: pointer; color: var(--ink); } .faq p { margin: 8px 0 0; }

/* ---------- Shared visual refresh ---------- */
.header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(23, 32, 54, .045); }
.header__in { min-height: 68px; gap: 22px; }
.header .brand { color: var(--ink); }
.header .brand__mark { background: linear-gradient(145deg, #163EC4, #0E2CA0); color: #fff; box-shadow: 0 6px 14px -8px rgba(22, 62, 196, .8); }
.header .brand__name { font-size: 16px; }
.header .user__btn { background: #fff; border-color: var(--line); color: var(--ink); }
.header .save-state { color: var(--muted); }
.header .save-state.is-off { color: var(--no); }
.mnav { justify-content: flex-start; }
.mnav__link { padding: 0 14px; color: var(--text); font-size: 15px; font-weight: 800; }
.mnav__link:hover, .mnav__item.is-open > .mnav__link { color: var(--brand-dark); background: var(--brand-soft); }
.mnav__link.is-on { color: var(--brand-dark); background: var(--brand-soft); box-shadow: inset 0 -2px 0 var(--brand); }
.mpanel { top: calc(100% - 1px); padding: 24px 28px 18px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 24px 55px -24px rgba(23, 32, 54, .35); }
.mpanel::before { display: none; }
.mgroup__h { color: var(--brand-dark); }
.mi { stroke: var(--brand); }
.mgroup li a, .mgroup__inline a { color: var(--text); }
.mgroup li a:hover, .mgroup__inline a:hover { color: var(--brand); }
.mtag { background: var(--brand-soft); color: var(--brand-dark); }
.burger { background: var(--brand-soft); color: var(--brand-dark); }

.auth { background: radial-gradient(56% 54% at 88% 12%, #F3F6FF 0, transparent 70%), radial-gradient(48% 48% at 8% 92%, #FFF0D9 0, transparent 70%), var(--bg); }
.auth__card { max-width: 440px; padding: 40px; border: 1px solid rgba(229, 233, 242, .9); border-radius: 24px; box-shadow: 0 22px 60px -32px rgba(23, 32, 54, .32); }

.btn { border-radius: 12px; box-shadow: 0 5px 12px -8px rgba(22, 62, 196, .75); transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { box-shadow: 0 8px 18px -10px rgba(22, 62, 196, .85); }
.btn--ghost, .btn--danger { box-shadow: inset 0 0 0 1.5px var(--line); }
.field input, .field select, .field textarea, .search, .reg-search, .reg-tools select { border-color: #DDE3EE; border-radius: 12px; }
.field input:hover, .field select:hover, .field textarea:hover, .search:hover { border-color: #B8C2D6; }

.panel, .empty, .topic, .mock__side, .kpis > div, .award-stats > div, .lic__card {
    border: 1px solid var(--line);
    box-shadow: 0 2px 5px rgba(23, 32, 54, .025), 0 14px 34px -26px rgba(23, 32, 54, .3);
}
.panel { padding: 26px; }
.panel__head { margin-bottom: 18px; }
.page-head { margin-bottom: 26px; }
.hello { border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(120deg, #0E2CA0 0%, #0E2CA0 58%, #163EC4 100%); box-shadow: 0 18px 38px -26px rgba(11, 24, 66, .8); }
.hello__stats div { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .12); }
.rec-card, .subject-card, .exam-card, .gcard {
    border-color: var(--line);
    box-shadow: 0 2px 5px rgba(23, 32, 54, .025), 0 14px 30px -24px rgba(23, 32, 54, .3);
}
.rec-card:hover, .subject-card:hover, .exam-card:hover, .gcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -20px rgba(23, 32, 54, .36);
}
.skill-link { border: 1px solid transparent; }
.skill-link:hover { border-color: #DCE5FF; }
.table tbody tr:hover td { background: #F8F9FD; }
.table td { border-bottom-color: #EDF0F5; }
.qcard { border: 1px solid var(--line); box-shadow: 0 10px 35px -28px rgba(23, 32, 54, .36); }
.practice__side .side-box { border: 1px solid var(--line); box-shadow: 0 8px 24px -22px rgba(23, 32, 54, .4); }
.choice { border-color: #E2E7F0; }
.choice:hover:not(:disabled) { box-shadow: 0 4px 14px -10px rgba(22, 62, 196, .7); }
.exam-card { border-top-color: #E8590C; }
.modal__box { border: 1px solid rgba(255, 255, 255, .6); }

@media (max-width: 900px) {
    .header__in { min-height: 60px; }
    .mnav { box-shadow: 0 20px 30px -24px rgba(23, 32, 54, .4); }
}
@media (max-width: 560px) {
    .page { padding-top: 22px; padding-bottom: 48px; }
    .panel { padding: 19px; }
    .auth__card { padding: 30px 22px; }
}
.kq__opts--words .kq__opt { font-size: clamp(22px, 4vw, 32px); overflow-wrap: anywhere; }
@media (max-width: 560px) { .kq__opts[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
