/* ===== Government Booster look: dark + tricolour accents, phone first ===== */
@font-face { font-family: "KalamH"; src: url("/fonts/kalam4-dev.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "KalamH"; src: url("/fonts/kalam4-lat.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "KalamH"; src: url("/fonts/kalam7-dev.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "KalamH"; src: url("/fonts/kalam7-lat.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
:root { --saf: #ff9933; --grn: #22c55e; --nav: #3b5bdb; }
.glogo { font-size: 1.02rem; white-space: nowrap; }
.glogo .g { background: linear-gradient(90deg, var(--saf), #fff 55%, var(--grn)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g { background: linear-gradient(90deg, var(--saf), #ffd27a 45%, var(--grn)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* welcome */
.gwel { text-align: center; padding: 22px 6px 10px; }
.gw-flag { display: flex; height: 6px; border-radius: 6px; overflow: hidden; margin: 0 auto 18px; width: 120px; }
.gw-flag i { flex: 1; } .gw-flag i:nth-child(1) { background: var(--saf); } .gw-flag i:nth-child(2) { background: #fff; } .gw-flag i:nth-child(3) { background: var(--grn); }
.gw-ic { font-size: 3.6rem; filter: drop-shadow(0 8px 24px rgba(255, 153, 51, .45)); }
.gwel h1 { font-size: 2.1rem; line-height: 1.15; margin: 8px 0; }
.gwel > p { color: #cbd5e1; font-size: .92rem; margin: 0 0 14px; }
.gw-pts { display: grid; gap: 8px; margin: 14px 0 18px; text-align: left; }
.gw-pts span { background: linear-gradient(90deg, rgba(255, 153, 51, .12), rgba(34, 197, 94, .08)); border: 1px solid #2a2a2a; border-radius: 14px; padding: 10px 12px; font-weight: 700; font-size: .95rem; }
.gw-go { font-size: 1.15rem; padding: 15px; }

/* exam picker */
.ggrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gcard { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 12px 12px; border-radius: 20px; text-align: left; border: 1.5px solid color-mix(in srgb, var(--gc) 55%, transparent); background: linear-gradient(155deg, color-mix(in srgb, var(--gc) 32%, #0b0f19), #0b0f19 75%); min-height: 132px; transition: transform .15s; }
.gcard:active { transform: scale(.97); }
.gcard::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: color-mix(in srgb, var(--gc) 35%, transparent); filter: blur(18px); }
.gc-ic { font-size: 2rem; }
.gcard b { font-size: 1.1rem; font-weight: 900; color: #fff; }
.gcard small { color: #cbd5e1; font-size: .72rem; line-height: 1.3; }
.gcard em { margin-top: auto; font-style: normal; font-size: .72rem; font-weight: 800; color: color-mix(in srgb, var(--gc) 70%, #fff); }
.gcard .tag { position: absolute; top: 10px; right: 10px; }
.ghead, .xhead { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; margin: 4px 0 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--gc) 35%, #0b0f19), #0b0f19 80%); border: 1px solid color-mix(in srgb, var(--gc) 45%, transparent); }
.ghead > span, .xh-ic { font-size: 2.2rem; }
.ghead h1, .xhead h1 { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.ghead small, .xhead small { color: #cbd5e1; font-size: .78rem; }
.xhead > div { flex: 1; min-width: 0; }
.xhead .linkbtn { flex: none; font-size: .75rem; }
.excard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 8px 0; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ex-b { flex: none; width: 74px; overflow-wrap: anywhere; padding: 10px 6px; border-radius: 14px; text-align: center; font-weight: 900; font-size: .8rem; line-height: 1.15; color: #fff; background: linear-gradient(135deg, var(--gc), color-mix(in srgb, var(--gc) 55%, #000)); }
.ex-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-t b { font-size: 1rem; } .ex-t small { color: #94a3b8; font-size: .75rem; }
.ex-ch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ex-ch i { font-style: normal; font-size: .68rem; background: #1f2937; border-radius: 999px; padding: 2px 8px; color: #e2e8f0; }

/* mission card on exam home */
.mscard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 22px; margin-bottom: 10px; border: 1.5px solid rgba(255, 153, 51, .55); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 153, 51, .35), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(34, 197, 94, .3), transparent 55%), #0b0f19; box-shadow: 0 10px 30px rgba(255, 153, 51, .15); }
.mscard.new { animation: mspulse 2.4s ease-in-out infinite; }
@keyframes mspulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 153, 51, .35); } 50% { box-shadow: 0 0 0 8px rgba(255, 153, 51, 0); } }
.ms-ic { font-size: 2.4rem; }
.ms-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ms-t small { font-size: .72rem; color: #fcd34d; font-weight: 800; letter-spacing: .02em; }
.ms-t b { font-size: 1.15rem; font-weight: 900; color: #fff; }
.ms-t em { font-style: normal; font-size: .74rem; color: #cbd5e1; }
.ms-go { flex: none; background: linear-gradient(135deg, var(--saf), #f97316); color: #111; font-weight: 900; border-radius: 999px; padding: 8px 12px; font-size: .85rem; }
.ms-ring { --p: 0; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; text-align: center; line-height: 1; background: radial-gradient(closest-side, #0b0f19 78%, transparent 80% 100%), conic-gradient(var(--saf) calc(var(--p) * 1%), #1f2937 0); }
.ms-ring b { font-size: 1.2rem; font-weight: 900; display: block; } .ms-ring small { font-size: .62rem; color: #94a3b8; }
.ms-ring.big { width: 86px; height: 86px; } .ms-ring.big b { font-size: 1.7rem; }

/* daily + tiles */
.gdaily { background: linear-gradient(135deg, #16a34a, #0f766e) !important; }
.gtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 6px; }
.gt { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 2px 8px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--h) 28%, #0b0f19), #0b0f19); border: 1px solid color-mix(in srgb, var(--h) 45%, transparent); min-width: 0; }
.gt i { font-style: normal; font-size: 1.45rem; }
.gt b { font-size: .74rem; font-weight: 900; line-height: 1.1; text-align: center; }
.gt small { font-size: .6rem; color: #94a3b8; text-align: center; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* mission page */
.mshero { text-align: center; padding: 10px 4px; } .mshero h1 { font-size: 1.9rem; margin: 6px 0; } .mshero p { color: #cbd5e1; font-size: .9rem; }
.msopts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0; }
.msopt { position: relative; display: flex; flex-direction: column; align-items: center; padding: 12px 2px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); }
.msopt b { font-size: 1.5rem; font-weight: 900; color: var(--saf); line-height: 1; } .msopt span { font-size: .7rem; color: #cbd5e1; }
.msopt small { font-size: .62rem; font-weight: 800; margin-top: 4px; text-align: center; } .msopt em { font-style: normal; font-size: .55rem; color: #94a3b8; text-align: center; line-height: 1.15; }
.msopt.pop { border-color: var(--saf); background: rgba(255, 153, 51, .12); } .msopt.pop::before { content: "⭐"; position: absolute; top: -9px; font-size: .8rem; }
.mstop { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(255, 153, 51, .2), rgba(34, 197, 94, .14)); border: 1px solid #2a2a2a; }
.mstop h1 { margin: 0; font-size: 1.3rem; } .mstop p { margin: 2px 0 4px; color: #cbd5e1; font-size: .85rem; }
.mday { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; margin: 8px 0; }
.mday.today { border: 1.5px solid var(--saf); background: linear-gradient(160deg, rgba(255, 153, 51, .12), var(--card) 60%); }
.mday.full { border-color: rgba(34, 197, 94, .6); } .mday.past:not(.full) { opacity: .75; }
.md-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; } .md-h b { font-size: 1rem; } .md-h span { flex: 1; font-size: .72rem; color: #94a3b8; } .md-h em { font-style: normal; font-weight: 900; font-size: .8rem; color: var(--grn); }
.mtask { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px dashed #262626; }
.mt-c { background: none; border: 0; font-size: 1.1rem; padding: 0; }
.mt-t { flex: 1; font-size: .86rem; line-height: 1.3; } .mt-t small { color: #94a3b8; font-size: .68rem; }
.mtask.ok .mt-t { color: #94a3b8; text-decoration: line-through; text-decoration-color: rgba(34, 197, 94, .7); }
.mt-go { flex: none; background: #1f2937; border: 1px solid #334155; border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 800; color: #fff; }

/* mock */
.ptab { width: 100%; border-collapse: collapse; font-size: .82rem; margin: 6px 0; }
.ptab th, .ptab td { border-bottom: 1px solid #262626; padding: 6px 4px; text-align: left; } .ptab th { color: #94a3b8; font-weight: 700; } .ptab td:not(:first-child), .ptab th:not(:first-child) { text-align: center; width: 54px; }
.ptab tr.dim td { opacity: .45; }
.mkbig { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border-radius: 18px; margin: 8px 0; background: linear-gradient(135deg, #f59e0b, #ea580c); color: #111; border: 0; }
.mkbig > span:first-child { font-size: 2rem; } .mkbig b { font-size: 1.15rem; font-weight: 900; display: block; } .mkbig small { font-size: .78rem; font-weight: 700; } .mkbig em { margin-left: auto; font-style: normal; font-weight: 900; }
.mkgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mkn { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 0 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.mkn b { font-size: 1.25rem; font-weight: 900; } .mkn small { font-size: .62rem; color: #94a3b8; } .mkn i { position: absolute; top: 2px; right: 4px; font-style: normal; font-size: .62rem; }
.mkn.done { border-color: var(--grn); background: rgba(34, 197, 94, .12); }
.gscore { text-align: center; } .gs-big b { font-size: 2.6rem; font-weight: 900; color: var(--saf); } .gs-big span { font-size: 1.1rem; color: #94a3b8; }

/* handwritten notes + formula sheet */
.notebook.hw, .hwbook .fsheet { font-family: "KalamH", "Baloo", cursive; background-color: #fffdf4; color: #1e293b; background-image: linear-gradient(90deg, transparent 34px, rgba(239, 68, 68, .45) 35px, transparent 36px), repeating-linear-gradient(transparent 0 29px, rgba(59, 130, 246, .22) 29px 30px); border-radius: 14px; padding: 16px 14px 16px 44px; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); line-height: 30px; }
.notebook.hw h2, .notebook.hw h3, .hwbook h3, .hwbook h4 { color: #b91c1c; font-family: "KalamH", cursive; line-height: 1.3; margin: 10px 0 4px; }
.notebook.hw h3 { color: #1d4ed8; text-decoration: underline wavy rgba(29, 78, 216, .35); text-underline-offset: 5px; }
.notebook.hw .intro { color: #334155; font-size: 1.05rem; }
.notebook.hw li, .hwbook li { font-size: 1.04rem; } .notebook.hw ul, .hwbook ul { padding-left: 18px; margin: 4px 0; }
.notebook.hw .hl { background: linear-gradient(transparent 55%, rgba(250, 204, 21, .7) 55%); color: #0f172a; font-weight: 700; }
.notebook.hw .toc a { color: #1d4ed8; background: rgba(59, 130, 246, .1); }
.notebook.hw .fbox, .hwbook .fl { border: 2px dashed #f59e0b; background: rgba(254, 243, 199, .7); border-radius: 10px; padding: 4px 10px; color: #7c2d12; }
.notebook.hw .exam li, .notebook.hw .hard li { color: #7f1d1d; }
.hwbook .fsheet { margin: 12px 0; } .hwbook .fsheet h3 small { font-size: .7rem; color: #64748b; } .hwbook .fsheet h4 { color: #1d4ed8; font-size: 1rem; }
.hwbook .fsheet.lk { opacity: .9; }

/* exam info + news */
.steps { display: flex; flex-wrap: wrap; gap: 6px; } .steps span { display: flex; align-items: center; gap: 6px; background: #111827; border: 1px solid #334155; border-radius: 999px; padding: 4px 10px 4px 4px; font-size: .8rem; }
.steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--saf); color: #111; font-size: .75rem; }
.nbox { border-color: rgba(255, 153, 51, .5); background: linear-gradient(160deg, rgba(255, 153, 51, .1), var(--card) 60%); }
.syl .chips { margin-bottom: 8px; } .syl .chip { font-size: .74rem; padding: 3px 9px; }
.nitem { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 8px 0; }
.nitem b { display: block; font-size: .98rem; line-height: 1.3; } .nitem p { margin: 4px 0; color: #cbd5e1; font-size: .85rem; }
.ni-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .ni-d { font-size: .72rem; color: #94a3b8; }
.ni-l { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 800; color: #60a5fa; }
@media (max-width: 360px) { .gtiles { gap: 6px; } .gt b { font-size: .68rem; } .msopt small { font-size: .56rem; } }
