/* ==========================================================
   Class 6 ICT · Section 5 · ইন্টারনেট পরিচিতি
   Theme: "তথ্যের মহাসড়ক" — the book's own phrase. A night-time
   highway / transit-map world: deep navy page, glowing route lines
   (cyan, lime, coral, amber), green highway exit signs as part tags,
   dark-glass cards with a coloured route stripe, travelling packets.
   The only dark page in the Class 6 ICT book. Band কৌতূহলী (11–12).
   ========================================================== */
:root {
  --bg: #0d1630;
  --bg-2: #13204a;
  --card: #18264f;
  --card-2: #1f3062;
  --ink: #eef3ff;
  --ink-2: #b5c2e4;
  --cyan: #3fd6ec;
  --lime: #a6e35a;
  --coral: #ff7a6b;
  --amber: #ffbf47;
  --violet: #b59bff;
  --sign: #0f7a45;
  --sign-d: #0a5531;
  --line: #2f4180;
  --ok: #7fe0a0;
  --no: #ff9a8c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { color: var(--ink); background: radial-gradient(1200px 600px at 80% -10%, #22336e 0, transparent 60%), linear-gradient(180deg, #0a1128 0, var(--bg) 500px); background-color: var(--bg); }
::selection { background: rgba(63, 214, 236, .35); }
a { color: var(--cyan); }
strong { color: var(--amber); }
.muted { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #111; padding: .5rem 1rem; z-index: 2000; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--content-w); margin-inline: auto; padding-inline: var(--gutter); }
main, .wrap, .lesson-part > *, .grid2 > *, .row-ctrl > *, .sp-grid > *, .gh-body > * { min-width: 0; }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; padding: .4rem var(--gutter); background: rgba(10, 17, 40, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber), var(--coral)) 1; font-size: var(--fs-sm); }
.crumbs { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--amber); font-weight: 700; }
.level { display: flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--lime); }
.level.pop { animation: bob .6s; }
@keyframes bob { 40% { transform: translateY(-5px) scale(1.06); } }

.hero { padding: clamp(2rem, 5vw, 4rem) 0 2rem; }
.hero-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { display: inline-block; color: #fff; background: var(--sign); font-weight: 700; padding: .1rem .9rem; border-radius: 6px; font-size: var(--fs-sm); border: 2px solid #e9fff2; }
h1 { font-size: var(--fs-3xl); line-height: 1.25; margin: .5rem 0 1rem; color: #fff; text-shadow: 0 0 24px rgba(63, 214, 236, .35); }
.lede { font-size: var(--fs-lg); line-height: 1.75; }
.hint { color: var(--ink-2); border-left: 4px solid var(--cyan); padding-left: .8rem; }
.hero-fig { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0, 0, 0, .45); }
.hero-fig > svg { display: block; width: 100%; height: auto; }

.block { padding-block: clamp(1.6rem, 4vw, 3rem); }
.sec-title, .lesson-part h2, #compare h2, #activity h2, #quiz h2 { font-size: var(--fs-2xl); line-height: 1.35; margin: .3rem 0 1rem; color: #fff; }
.sub-title { font-size: var(--fs-xl); margin: 2rem 0 .8rem; color: var(--cyan); }
.part-tag { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-weight: 800; color: #fff; background: var(--sign); padding: .1rem .9rem .1rem .7rem; border-radius: 6px; font-size: var(--fs-sm); border: 2px solid #e9fff2; box-shadow: 0 4px 0 var(--sign-d); }
.part-tag::after { content: "→"; font-weight: 900; }
.goals { display: grid; gap: .6rem; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr)); counter-reset: g; }
.goals li { position: relative; background: var(--card); border-radius: 10px; padding: .7rem 1rem .7rem 2.8rem; border: 1px solid var(--line); }
.goals li::before { counter-increment: g; content: counter(g, bengali); position: absolute; left: .8rem; top: .7rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--cyan); color: #0a1128; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }

.card { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border-radius: 14px; padding: clamp(1rem, 3vw, 1.6rem); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--cyan), var(--lime)); }
.card h3 { margin: 0 0 .5rem; font-size: var(--fs-lg); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; color: #fff; }
.widget { margin: 1.6rem 0; }
.def { margin: 1rem 0; background: rgba(63, 214, 236, .1); border-left: 6px solid var(--cyan); border-radius: 8px; padding: .8rem 1rem; }
.def b:first-child { color: var(--cyan); }
.remember { margin: 1.4rem 0 .4rem; background: rgba(255, 191, 71, .1); border-radius: 10px; padding: .9rem 1rem; border: 2px dashed var(--amber); }
.remember > b:first-child { display: inline-block; background: var(--amber); color: #1a1405; padding: 0 .6rem; border-radius: 4px; margin-right: .4rem; }

.tight { margin: .4rem 0; padding-left: 1.4rem; }
.tight li { margin: .35rem 0; }
.steps { padding-left: 1.6rem; }
.steps li { margin: .35rem 0; animation: rise .4s both; }
.steps li.final { font-weight: 800; color: var(--lime); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.fig { display: block; width: 100%; height: auto; }

.row-ctrl { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin: .7rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.chips button, .seg button { border: 2px solid var(--cyan); background: transparent; color: var(--cyan); border-radius: 999px; padding: .05rem .8rem; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.chips button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--cyan); color: #0a1128; }
.chips button.done::after { content: " ✓"; }
.seg { display: flex; flex-wrap: wrap; gap: .35rem; margin: .4rem 0 .8rem; }
.inp { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; flex-wrap: wrap; }
.inp input, .inp select { font: inherit; width: 12rem; max-width: 100%; padding: .15rem .55rem; border: 2px solid var(--line); border-radius: 8px; background: #0d1838; color: var(--ink); }
.inp select { width: auto; }
.slider { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; flex-wrap: wrap; }
.slider b { min-width: 2.2em; display: inline-block; text-align: center; color: var(--amber); }
.slider input { accent-color: var(--cyan); width: 12rem; max-width: 100%; }
.btn { font: inherit; font-weight: 800; border: 0; background: var(--cyan); color: #06202a; padding: .3rem 1.05rem; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 0 #1b8796; }
.btn.cyan { background: var(--cyan); }
.btn.lime { background: var(--lime); color: #1a2a06; box-shadow: 0 4px 0 #6b9a2e; }
.btn.coral { background: var(--coral); color: #2a0b06; box-shadow: 0 4px 0 #b84c40; }
.btn.amber { background: var(--amber); color: #2a1c02; box-shadow: 0 4px 0 #b9852a; }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink-2); box-shadow: none; }
.btn.ghost[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #1a2a06; }
.btn[disabled] { opacity: .45; cursor: default; }
.msg { min-height: 1.8em; font-weight: 700; margin: .5rem 0; }
.msg.big { font-size: var(--fs-lg); text-align: center; }
.msg.ok { color: var(--ok); } .msg.no { color: var(--no); }

/* story */
.gh-body { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 720px) { .gh-body { grid-template-columns: minmax(0, 300px) 1fr; } }
.gh-svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; border-radius: 12px; background: #0b1430; }
.gh-use { font-weight: 800; color: var(--lime); }
.gh-use .ic { margin-right: .2rem; }

/* sort */
.so-card { min-height: 3.6rem; display: flex; align-items: center; justify-content: center; text-align: center; font-size: var(--fs-lg); font-weight: 800; padding: .7rem 1rem; border-radius: 12px; background: #0d1838; border: 2px dashed var(--line); margin: .6rem 0; }
.so-card.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.04); } }
.so-card.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.so-bins { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); margin: .6rem 0; }
.so-bins > div { background: #0d1838; border-radius: 10px; padding: .5rem .8rem; border-top: 4px solid var(--cyan); }
.so-bins > div:nth-child(2) { border-top-color: var(--coral); }
.so-bins > div:nth-child(3) { border-top-color: var(--lime); }
.so-bins ul { margin: .3rem 0 0; padding-left: 1.1rem; font-size: var(--fs-sm); }

/* word merge */
.wd-stage { display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: center; font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 800; font-family: Georgia, 'Noto Serif Bengali', serif; padding: 1rem 0; min-height: 4.5rem; }
.wd-w { display: inline-flex; transition: gap .6s; }
.wd-keep { color: var(--cyan); }
.wd-w + .wd-w .wd-keep { color: var(--lime); }
.wd-drop { font-style: normal; color: var(--ink-2); display: inline-block; max-width: 12ch; overflow: hidden; transition: max-width .8s, opacity .8s; white-space: nowrap; }
.wd-stage.merged { gap: 0; }
.wd-stage.merged .wd-drop { max-width: 0; opacity: 0; }

.chart-box { position: relative; height: 270px; margin: .6rem 0; }

/* website gallery */
.ws-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); }
.ws-card { font: inherit; text-align: left; color: var(--ink); cursor: pointer; border: 1px solid var(--line); border-radius: 12px; padding: 0; background: #0d1838; overflow: hidden; min-height: 8.5rem; display: flex; flex-direction: column; }
.ws-card .ws-head { height: 2.2rem; display: flex; align-items: center; gap: .3rem; padding: 0 .6rem; }
.ws-card .ws-head i { width: .55rem; height: .55rem; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.ws-card .ws-body { padding: .5rem .8rem .7rem; flex: 1; }
.ws-card b { display: block; font-size: var(--fs-lg); }
.ws-card .ws-addr { display: block; font-family: ui-monospace, Menlo, monospace; color: var(--amber); font-size: .95rem; overflow-wrap: anywhere; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.ws-card.open .ws-addr { opacity: 1; transform: none; }
.ws-card .ws-tip { font-size: var(--fs-sm); color: var(--ink-2); }

/* site planner */
.sp-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .sp-grid { grid-template-columns: 1fr 1.1fr; } }
.sp-opts { display: grid; gap: .3rem; margin: .7rem 0; }
.sp-opts label { display: flex; gap: .5rem; align-items: center; cursor: pointer; padding: .15rem .3rem; border-radius: 6px; }
.sp-opts label:hover { background: rgba(255, 255, 255, .05); }
.sp-opts input { accent-color: var(--lime); width: 1.1rem; height: 1.1rem; }
.mock-site { background: #f7f9ff; color: #1b2340; border-radius: 12px; overflow: hidden; border: 3px solid #0a1128; align-self: start; }
.ms-bar { background: #dfe5f5; padding: .3rem .6rem; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; color: #3b4566; overflow-wrap: anywhere; }
.ms-head { background: var(--sign); color: #fff; padding: .6rem .9rem; font-weight: 800; font-size: var(--fs-lg); display: flex; gap: .5rem; align-items: center; }
.ms-nav { display: flex; flex-wrap: wrap; gap: .2rem .8rem; background: #e9f6ee; padding: .3rem .9rem; font-size: var(--fs-sm); font-weight: 700; color: var(--sign-d); }
.ms-body { display: grid; gap: .5rem; padding: .7rem .9rem .9rem; grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr)); }
.ms-box { background: #fff; border: 1px solid #d5dcef; border-radius: 8px; padding: .4rem .6rem; font-size: var(--fs-sm); animation: rise .35s both; }
.ms-box b { display: block; color: var(--sign-d); }
.ms-empty { padding: 1rem; color: #66708f; font-size: var(--fs-sm); }

/* browser */
.browser { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0a1128; }
.br-top { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; background: #1b2a57; }
.br-dots { display: inline-flex; gap: .3rem; flex: none; }
.br-dots i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--coral); }
.br-dots i:nth-child(2) { background: var(--amber); } .br-dots i:nth-child(3) { background: var(--lime); }
.br-bar { flex: 1; display: flex; min-width: 0; background: #0a1128; border-radius: 999px; border: 2px solid var(--line); overflow: hidden; }
.br-bar:focus-within { border-color: var(--cyan); }
.br-bar input { flex: 1; min-width: 0; font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: .95rem; background: transparent; color: var(--ink); border: 0; padding: .25rem .8rem; outline: none; }
.br-go { font: inherit; font-size: var(--fs-sm); font-weight: 800; border: 0; background: var(--cyan); color: #06202a; padding: 0 .8rem; cursor: pointer; }
.br-star { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; padding: 0; }
.br-star svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.br-star[aria-pressed="true"] { color: var(--amber); border-color: var(--amber); }
.br-star[aria-pressed="true"] svg { fill: var(--amber); }
.br-favs { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; padding: .3rem .7rem; background: #13204a; font-size: var(--fs-sm); min-height: 2.2rem; }
.br-favs button { font: inherit; font-size: .85rem; background: rgba(255, 191, 71, .14); border: 1px solid var(--amber); color: var(--amber); border-radius: 6px; padding: 0 .5rem; cursor: pointer; font-family: ui-monospace, Menlo, monospace; }
.br-page { min-height: 15rem; background: #f7f9ff; color: #1b2340; position: relative; }
.br-page .ld { position: absolute; left: 0; top: 0; height: 4px; background: var(--cyan); animation: load .6s ease-out forwards; }
@keyframes load { from { width: 0; } to { width: 100%; } }
.pg { padding: 1rem 1.1rem; animation: rise .4s both; }
.pg-head { display: flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; color: #fff; font-weight: 800; font-size: var(--fs-lg); }
.pg-head .ic { width: 1.8rem; height: 1.8rem; }
.pg-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr)); margin-top: .6rem; }
.pg-tile { background: #fff; border: 1px solid #d5dcef; border-radius: 8px; padding: .5rem .6rem; font-size: var(--fs-sm); font-weight: 700; display: flex; gap: .4rem; align-items: center; }
.pg-note { font-size: var(--fs-sm); color: #5b6585; margin: .7rem 0 0; }
.pg-404 { text-align: center; padding: 2.4rem 1rem; color: #5b6585; }
.pg-404 b { display: block; font-size: var(--fs-xl); color: #b03a2e; }
.planets { display: block; width: 100%; height: auto; max-height: 160px; }
.task-list { list-style: none; padding: 0; margin: .4rem 0; }
.task-list li { padding: .35rem .5rem .35rem 2.1rem; position: relative; border-radius: 8px; }
.task-list li::before { content: ""; position: absolute; left: .5rem; top: .6rem; width: 1.1rem; height: 1.1rem; border: 2px solid var(--ink-2); border-radius: 4px; }
.task-list li.done { background: rgba(166, 227, 90, .12); }
.task-list li.done::before { background: var(--lime); border-color: var(--lime); }
.task-list li.done::after { content: "✓"; position: absolute; left: .68rem; top: .3rem; color: #1a2a06; font-weight: 900; }

/* order cards */
.st-cards { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.st-cards button { font: inherit; font-size: var(--fs-sm); font-weight: 700; text-align: left; padding: .4rem .8rem; border-radius: 10px; border: 2px solid var(--line); background: #0d1838; color: var(--ink); cursor: pointer; max-width: 100%; }
.st-cards button:hover { border-color: var(--cyan); }
.st-cards button.used { display: none; }
.st-cards button.wrong { animation: shake .4s; border-color: var(--coral); }

/* search */
.search-box { background: #f7f9ff; color: #1b2340; border-radius: 12px; padding: 1rem; }
.se-logo { text-align: center; font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 900; margin: .2rem 0 .6rem; letter-spacing: .02em; }
.se-logo span:nth-child(1) { color: #1f6fd1; } .se-logo span:nth-child(2) { color: #d8423a; } .se-logo span:nth-child(3) { color: #e0a000; } .se-logo span:nth-child(4) { color: #1f9a52; }
.se-form { display: flex; gap: .5rem; max-width: 34rem; margin: 0 auto; }
.se-form input { flex: 1; min-width: 0; font: inherit; border: 2px solid #c7d0ea; border-radius: 999px; padding: .25rem 1rem; background: #fff; color: #1b2340; }
.se-form input:focus { border-color: #1f6fd1; outline: none; }
.search-box .chips { justify-content: center; }
.search-box .chips button { border-color: #1f6fd1; color: #1f6fd1; }
.search-box .chips button[aria-pressed="true"] { background: #1f6fd1; color: #fff; }
.se-out { margin-top: .6rem; }
.se-meta { font-size: var(--fs-sm); color: #5b6585; }
.se-res { padding: .5rem 0; border-bottom: 1px solid #e1e6f4; animation: rise .35s both; }
.se-res .u { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; color: #1f7a45; overflow-wrap: anywhere; }
.se-res b { display: block; color: #1f4fb0; font-size: var(--fs-lg); }
.se-res p { margin: .1rem 0 0; font-size: var(--fs-sm); color: #3b4566; }
.se-res button { font: inherit; font-size: .85rem; margin-top: .2rem; border: 1px solid #1f6fd1; color: #1f6fd1; background: #fff; border-radius: 6px; padding: 0 .5rem; cursor: pointer; }
.se-res.seen { opacity: .7; }
.se-res.seen button { border-color: #1f9a52; color: #1f9a52; }

/* report */
.rp-paper { background: #fbf7ea; color: #2a2412; border-radius: 6px; padding: .8rem 1rem; min-height: 6rem; box-shadow: inset 0 0 0 1px #e6dcbe; background-image: repeating-linear-gradient(180deg, transparent 0 1.9rem, #e9dfbf 1.9rem 2rem); }
.rp-paper .rp-sec { animation: rise .35s both; padding: .2rem 0; }
.rp-paper .rp-sec b { color: #8a3a14; }
.rp-paper .rp-empty { color: #8a7f5e; font-size: var(--fs-sm); }

/* scenario */
.sc-q { font-size: var(--fs-lg); font-weight: 800; min-height: 3.2em; }
#sc-btns .btn.right { background: var(--lime); color: #1a2a06; border-color: var(--lime); }
#sc-btns .btn.wrong { border-color: var(--coral); color: var(--coral); }

/* player */
.player { border-radius: 16px; background: #070d22; padding: clamp(.5rem, 2vw, 1rem); color: #fff; border: 1px solid var(--line); }
.stage { position: relative; border-radius: 10px; overflow: hidden; }
.stage svg:not(.ic) { width: 100%; height: auto; display: block; }
.big-play { position: absolute; inset: 0; margin: auto; width: 5.5rem; height: 5.5rem; border-radius: 50%; border: 4px solid #fff; background: var(--coral); color: #fff; display: grid; place-items: center; cursor: pointer; }
.big-play .ic { width: 2.4rem; height: 2.4rem; }
.big-play.hide { display: none; }
.caption { min-height: 3.6em; margin: .75rem .25rem; font-size: var(--fs-lg); line-height: 1.6; }
.controls { display: flex; align-items: center; gap: .6rem; }
.ctrl { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--amber); color: #1a1405; display: grid; place-items: center; cursor: pointer; flex: none; }
.controls input { flex: 1; min-width: 0; accent-color: var(--cyan); }
.time { font-variant-numeric: tabular-nums; font-size: var(--fs-sm); white-space: nowrap; }
.chapters { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .75rem 0 0; list-style: none; }
.chapters button { border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #dce6ff; border-radius: 999px; padding: .1rem .7rem; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.chapters button.on { background: var(--cyan); border-color: var(--cyan); color: #06202a; }

.table-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; background: var(--card); min-width: 36rem; border-radius: 10px; overflow: hidden; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.cmp thead th { background: var(--sign); color: #fff; }
.cmp td:first-child { font-weight: 800; color: var(--cyan); white-space: nowrap; }

.score-pill { display: inline-block; background: var(--sign); color: #fff; padding: .1rem .9rem; border-radius: 999px; font-weight: 700; }
.lk-q { background: var(--card); border-radius: 12px; padding: 1rem; margin: .8rem 0; border: 1px solid var(--line); border-left: 5px solid var(--cyan); }
.lk-q-stem { font-weight: 700; margin-bottom: .6rem; }
.lk-opts { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); }
.lk-opt { display: flex; gap: .6rem; align-items: center; text-align: left; font: inherit; padding: .45rem .7rem; border: 2px solid var(--line); border-radius: 10px; background: #0d1838; color: var(--ink); cursor: pointer; }
.lk-opt:hover { border-color: var(--cyan); }
.lk-opt-key { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--cyan); color: #06202a; flex: none; font-size: .95rem; font-weight: 800; }
.lk-opt.is-right { border-color: var(--ok); background: rgba(127, 224, 160, .15); }
.lk-opt.is-wrong { border-color: var(--no); background: rgba(255, 154, 140, .14); }
.lk-explain { margin: .6rem 0 0; }
.lk-explain.ok { color: var(--ok); } .lk-explain.no { color: var(--no); }
.qa details, .cq-parts details { background: var(--card); border-radius: 10px; padding: .6rem .9rem; margin: .5rem 0; border-left: 5px solid var(--amber); }
.cq .cq-parts details { background: #0d1838; }
.qa summary, .cq-parts summary { cursor: pointer; font-weight: 700; }
.qa details p, .cq-parts details p { margin: .6rem 0 .2rem; }
.cq { margin: 1rem 0; }
.cq-stem { font-weight: 700; }
.cq-parts { list-style: none; padding: 0; }
.summary ul { padding-left: 1.3rem; }
.summary li { margin: .4rem 0; }
.summary h2 { margin-top: 0; }

.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem 1rem; }
.pager-btn { display: inline-block; padding: .5rem 1.1rem; border-radius: 8px; background: var(--sign); color: #fff; text-decoration: none; font-weight: 700; border: 2px solid #e9fff2; }
.pager-btn.disabled { background: #22305c; color: #aab6d8; border-color: var(--line); }
.credit { color: var(--ink-2); font-size: var(--fs-sm); padding-bottom: 2rem; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
[data-reveal].is-in { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.fig-scroll { overflow-x: auto; margin: .4rem 0; -webkit-overflow-scrolling: touch; }
.fig-scroll > svg { min-width: 640px; }
