/* Négyzethálós füzet: papír, kék toll, piros tanári toll. Elrendezés: egy oszlop telefonon, kétoszlopos gyakorlónézet tableten és asztali gépen. */
:root {
  --bg: #f3f6fb; --grid: #dbe5f3; --paper: #ffffff; --ink: #172447; --muted: #52638a; --line: #c7d4ea;
  --blue: #2a64d0; --blue-soft: #e2ecff; --on-blue: #ffffff;
  --red: #cf3a47; --red-soft: #fde6e8; --green: #16805a; --green-soft: #def4e9;
  --amber: #a86a00; --amber-soft: #fff0cf; --gold: #f1b62e; --shape: #bdd3fb;
  --brand-bg: #1b2a5e; --brand-ink: #d3dcf7;
  --f-display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1526; --grid: #18233b; --paper: #172138; --ink: #e9eefb; --muted: #a3b1cf; --line: #2d3b5e;
  --blue: #7aa5ff; --blue-soft: #1d2f5c; --on-blue: #0e1526;
  --red: #ff8590; --red-soft: #41202a; --green: #55d49b; --green-soft: #12382b;
  --amber: #f3c15a; --amber-soft: #3a2f12; --gold: #f1b62e; --shape: #2d4f8f; --brand-bg: #0a1122; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0e1526; --grid: #18233b; --paper: #172138; --ink: #e9eefb; --muted: #a3b1cf; --line: #2d3b5e;
  --blue: #7aa5ff; --blue-soft: #1d2f5c; --on-blue: #0e1526;
  --red: #ff8590; --red-soft: #41202a; --green: #55d49b; --green-soft: #12382b;
  --amber: #f3c15a; --amber-soft: #3a2f12; --gold: #f1b62e; --shape: #2d4f8f; --brand-bg: #0a1122; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--f-body);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; min-height: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.2; margin: 0; text-wrap: balance; }
a { color: var(--blue); }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 980px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* fejléc, lábléc */
header.site { padding-block: 10px; background: var(--brand-bg); margin-bottom: 8px; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 46px; width: auto; max-width: 100%; }
header.site nav a { margin-left: 14px; font-weight: 700; text-decoration: none; color: var(--brand-ink); }
header.site nav a:hover { color: #fff; }
footer.site { padding-block: 28px 40px; color: var(--muted); font-size: .95rem; }
footer.site p { margin: .3rem 0; max-width: 62ch; }
main { padding-block: 8px 24px; }

/* főoldal */
.hero { padding-block: 18px 8px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.hero p { max-width: 56ch; font-size: 1.15rem; color: var(--muted); margin: .6rem 0 0; }
.grp { margin-top: 28px; }
.grp h2 { font-size: 1.35rem; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 14px; text-decoration: none; color: var(--ink); min-height: 168px; transition: transform .15s, border-color .15s; }
.card:hover { border-color: var(--c); transform: translateY(-3px); }
.card .tile { height: 78px; border-radius: 12px; background: var(--cs); color: var(--c); display: grid; place-items: center; font: 600 1.9rem var(--f-display); overflow: hidden; }
.card .tile svg { height: 56px; width: auto; }
.card h3 { font-size: 1.1rem; }
.card .meta { color: var(--muted); font-size: .9rem; margin-top: auto; display: flex; justify-content: space-between; gap: 8px; }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line); }
[data-h="1"] { --c: var(--blue); --cs: var(--blue-soft); }
[data-h="2"] { --c: var(--red); --cs: var(--red-soft); }
[data-h="3"] { --c: var(--green); --cs: var(--green-soft); }
[data-h="4"] { --c: var(--amber); --cs: var(--amber-soft); }

/* gyakorló kezdőlap */
.crumb { display: inline-block; margin: 6px 0 14px; font-weight: 700; text-decoration: none; }
.setup h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.setup .lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; margin: .5rem 0 20px; }
.levels { display: grid; gap: 10px; }
.lv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.lv .nm { font-weight: 800; }
.lv .st { font-size: .92rem; color: var(--muted); }
.lv .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn { background: var(--blue); color: var(--on-blue); border: 2px solid var(--blue); border-radius: 14px; padding: 10px 18px; font-weight: 800; min-height: 48px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { filter: brightness(1.06); }
.btn.sec { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.sec:hover { border-color: var(--ink); }
.btn.sm { min-height: 42px; padding: 6px 14px; }
.about { margin-top: 36px; max-width: 66ch; }
.about h2 { font-size: 1.25rem; margin-bottom: 8px; }
.rel { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.rel a { padding: 6px 12px; border: 2px solid var(--line); border-radius: 99px; background: var(--paper); text-decoration: none; font-weight: 700; color: var(--ink); }
.roller { margin: 0 0 22px; background: var(--paper); border: 2px dashed var(--line); border-radius: 16px; padding: 14px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.roller .dice { min-height: 64px; }

/* gyakorlás */
.qbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 800; }
.qbar button { background: none; border: 0; padding: 8px 4px; color: var(--muted); font-weight: 700; min-height: 44px; }
.prog { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.prog i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; }
.qwrap { display: grid; gap: 16px; }
.qcard { background: var(--paper); border: 2px solid var(--ink); border-radius: 22px; padding: 22px 16px; text-align: center; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 5px 0 var(--line); }
.big { font: 600 clamp(1.8rem, 7vw, 2.8rem)/1.25 var(--f-display); }
.big.txt { font: 700 clamp(1.15rem, 4.6vw, 1.55rem)/1.5 var(--f-body); }
.sub { color: var(--muted); font-size: 1.08rem; font-weight: 600; }
.slot { display: inline-block; min-width: 1.5em; border-bottom: 4px solid var(--blue); color: var(--blue); text-align: center; margin: 0 .1em; }
.fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; font-size: .82em; margin: 0 .12em; }
.fr span:first-child { border-bottom: .09em solid currentColor; padding: 0 .25em .05em; }
.fr span:last-child { padding-top: .05em; }
.abox { background: var(--paper); border: 3px solid var(--blue); border-radius: 16px; min-height: 66px; padding: 6px 14px; display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 2.2rem var(--f-display); margin: 0 auto 12px; max-width: 360px; }
.abox .ph { color: var(--line); }
.abox .unit { font-size: 1.1rem; color: var(--muted); }
.abox.ok { border-color: var(--green); background: var(--green-soft); }
.abox.bad { border-color: var(--red); background: var(--red-soft); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 360px; margin: 0 auto; }
.key { min-height: 62px; border-radius: 16px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 600 1.7rem var(--f-display); box-shadow: 0 3px 0 var(--line); }
.key:active { transform: translateY(2px); box-shadow: none; }
.key.go { background: var(--blue); border-color: var(--blue); color: var(--on-blue); font-size: 1.15rem; font-family: var(--f-body); font-weight: 800; }
.key svg { width: 28px; height: 28px; }
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 520px; margin: 0 auto; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opt { min-height: 72px; border-radius: 16px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); padding: 10px; font: 600 1.5rem var(--f-display); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 3px 0 var(--line); }
.opt small { font: 700 .85rem var(--f-body); color: var(--muted); }
.opt:active { transform: translateY(2px); box-shadow: none; }
.opt.ok { background: var(--green-soft); border-color: var(--green); }
.opt.bad { background: var(--red-soft); border-color: var(--red); }
.opt:disabled { cursor: default; }
.opts.pics .opt { padding: 6px; }
.fb { border-radius: 16px; padding: 14px 16px; margin-top: 14px; border: 2px solid; max-width: 520px; margin-inline: auto; }
.fb.ok { background: var(--green-soft); border-color: var(--green); }
.fb.bad { background: var(--red-soft); border-color: var(--red); }
.fb strong { font: 600 1.25rem var(--f-display); display: block; }
.fb p { margin: .3rem 0 .8rem; }
.fb .btn { width: 100%; }

/* eredmény */
.result { text-align: center; max-width: 620px; margin-inline: auto; }
.result .bigstars { font-size: 3.4rem; letter-spacing: 6px; color: var(--gold); line-height: 1; margin: 8px 0; }
.result .bigstars .off { color: var(--line); }
.result h1 { font-size: 2rem; }
.score { font: 600 1.4rem var(--f-display); margin: 8px 0 18px; }
.ractions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 24px; }
.wrongs { text-align: left; display: grid; gap: 10px; }
.wrongs > div { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.wrongs .big { font-size: 1.3rem; }
.wrongs .big.txt { font-size: 1rem; }
.wrongs .vert { font-size: 1.3rem; }
.wrongs svg { max-height: 90px; width: auto; }
.wrongs .ans { color: var(--green); font-weight: 800; margin-top: 6px; }

/* munkalap */
.stool { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sheet { background: #fff; color: #111; border: 2px solid var(--line); border-radius: 12px; padding: 22px; }
.sheet h1 { font-size: 1.5rem; }
.shead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 14px; }
.shead .lvn { color: #444; width: 100%; }
.slist { margin: 0; padding-left: 2em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.slist li { break-inside: avoid; padding-bottom: 6px; border-bottom: 1px dotted #999; }
.slist .big { font-size: 1.25rem; text-align: left; font-family: var(--f-display); color: #111; }
.slist .big.txt { font-size: 1rem; }
.slist .sub { color: #444; font-size: .95rem; }
.slist .vert { font-size: 1.25rem; }
.slist svg { max-height: 120px; width: auto; max-width: 100%; }
.slist .slot { color: #111; border-color: #111; }
.slist .chip { color: #111; border-color: #111; background: #fff; }
.sline { margin-top: 6px; }
.blank { display: inline-block; width: 7em; border-bottom: 2px solid #111; height: 1em; vertical-align: bottom; }
.sopts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.sopts svg { max-height: 60px; }

/* SVG ábrák */
.fvis { width: 190px; max-width: 100%; }
.fvis .on { fill: var(--blue); stroke: var(--paper); stroke-width: 2; }
.fvis .off { fill: var(--shape); stroke: var(--paper); stroke-width: 2; }
.clock { display: block; margin: 0 auto; }
.clock .cf { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.clock .tb { stroke: var(--ink); stroke-width: 3; } .clock .ts { stroke: var(--muted); stroke-width: 1.2; }
.clock .tn { fill: var(--ink); font: 600 14px var(--f-display); }
.clock .hh { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.clock .mh { stroke: var(--red); stroke-width: 4; stroke-linecap: round; }
.clock .cc { fill: var(--ink); }
.opts.pics .clock { width: 100% !important; max-width: 150px; }
.digital { font: 600 3.2rem var(--f-display); letter-spacing: .03em; }
.shape { width: 190px; max-width: 100%; height: auto; }
.shape.wide { width: 300px; }
.shape polygon, .shape rect, .shape circle { fill: var(--shape); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.shape .dim { fill: var(--ink); font: 800 15px var(--f-body); }
.grid { height: auto; }
.grid .cell { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.grid .cell.on { fill: var(--shape); stroke: var(--blue); }
.dice { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.die { width: 66px; height: 66px; }
.dbody { fill: var(--paper); stroke: var(--ink); stroke-width: 3; } .dpip { fill: var(--ink); }
.tray { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.mny .c1 { fill: #d3dae6; stroke: #7b88a1; stroke-width: 2; } .mny .c2 { fill: #f0c75a; stroke: #b0841a; stroke-width: 2; }
.mny .cin { fill: none; stroke: rgba(0,0,0,.22); stroke-width: 1.5; } .mny .ct { font: 700 17px var(--f-display); fill: #2b2f3a; }
.note .nb { stroke: #5b6784; stroke-width: 2; fill: #cfd8ea; } .note .nbi { fill: rgba(255,255,255,.4); }
.note .nt { font: 700 21px var(--f-display); fill: #232838; } .note .nf { font: 700 11px var(--f-body); fill: #232838; }
.n0 .nb { fill: #f2b886; } .n1 .nb { fill: #bba8e3; } .n2 .nb { fill: #93cfaa; } .n3 .nb { fill: #e8a8a8; } .n4 .nb { fill: #8fc3e6; } .n5 .nb { fill: #e8d78a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { min-width: 2.4em; padding: .3em .55em; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); font: 600 1.35rem var(--f-display); }
.chip.hole { border: 3px dashed var(--blue); color: var(--blue); }
.vert { display: inline-block; font: 600 clamp(1.9rem, 8vw, 2.7rem) var(--f-display); }
.vr { display: flex; justify-content: flex-end; align-items: center; }
.dg { width: .72em; text-align: center; } .dg.q { color: var(--blue); }
.vo { width: 1em; text-align: center; color: var(--red); }
.vl { height: 3px; background: var(--ink); margin: .08em 0; }

@media (min-width: 860px) {
  .qwrap { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .qcard { min-height: 330px; }
  .big { font-size: 3rem; } .big.txt { font-size: 1.7rem; }
}
@media (max-width: 520px) {
  header.site nav { display: none; }
  .lv { grid-template-columns: 1fr; } .lv .acts { justify-content: flex-start; }
  .slist { grid-template-columns: 1fr; }
  }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  body { background: #fff !important; color: #000; font-size: 12pt; }
  .noprint, header.site, footer.site, .crumb { display: none !important; }
  .sheet { border: 0; padding: 0; }
    .wrap { max-width: none; padding: 0; }
}

/* ---- Profil, pontok, jelvények ---- */
.pstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; padding: 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); }
.pstrip:hover { border-color: var(--blue); }
.pcell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pcell b { font: 600 1.15rem var(--f-display); } .pcell small { color: var(--muted); font-size: .8rem; line-height: 1.25; }
.lab { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.pbar { height: 10px; border-radius: 6px; background: var(--blue-soft); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.hot { color: var(--amber); } .flame { width: 1em; height: 1em; vertical-align: -.12em; margin-right: 3px; fill: currentColor; }
.gpick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 14px; }
.gl { font: 600 1.15rem var(--f-display); }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; }
.gchip { min-width: 46px; min-height: 46px; padding: 4px 12px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); font: 600 1.1rem var(--f-display); }
.gchip:hover { border-color: var(--blue); }
.gchip[aria-pressed="true"], .gchip.on { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.gr { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: .8rem; font-weight: 800; }
.grline { color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.medal { width: 56px; height: 56px; } .medal .mrib { fill: var(--line); } .medal .mcir { fill: var(--line); stroke: var(--muted); stroke-width: 2; } .medal .mtxt { fill: var(--muted); font-family: var(--f-display); font-weight: 600; }
.medal.on .mrib { fill: var(--red); } .medal.on .mcir { fill: var(--gold); stroke: #b0841a; } .medal.on .mtxt { fill: #3a2a00; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bdg { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; opacity: .6; }
.bdg.got { opacity: 1; border-color: var(--gold); } .bdg small { color: var(--muted); font-size: .8rem; line-height: 1.25; } .bdg em { font-size: .75rem; color: var(--muted); font-style: normal; }
.pbig { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; margin: 12px 0; }
.pbig b { font: 600 1.5rem var(--f-display); margin-left: 8px; } .pbig small { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 8px; }
.stat { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 10px; text-align: center; }
.stat b { display: block; font: 600 1.6rem var(--f-display); color: var(--blue); } .stat span { color: var(--muted); font-size: .85rem; }
.sech { margin: 24px 0 10px; }
.award { background: var(--amber-soft); border: 2px solid var(--gold); border-radius: 18px; padding: 14px; margin: 14px 0; text-align: left; }
.apts { font: 600 2rem var(--f-display); color: var(--amber); text-align: center; }
.award ul { list-style: none; padding: 0; margin: 8px 0; } .award li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.lvup { margin: 8px 0; padding: 8px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 800; text-align: center; }
.astat { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.nbh { margin: 12px 0 8px; } .nbadges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 12px; }
.nb { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 170px; padding: 10px; background: var(--paper); border: 2px solid var(--gold); border-radius: 16px; } .nb small { color: var(--muted); font-size: .8rem; }
.code { width: 100%; font: 500 .85rem/1.3 ui-monospace, Menlo, Consolas, monospace; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); resize: vertical; word-break: break-all; }
.ractions.left { justify-content: flex-start; margin-block: 10px; }
.bmsg { min-height: 1.5em; color: var(--green); font-weight: 700; } .warn { color: var(--red); font-weight: 700; }
.resetbox { margin-top: 28px; padding: 14px; border: 2px dashed var(--line); border-radius: 14px; }
.pad-extra { display: flex; gap: 10px; justify-content: center; max-width: 360px; margin: 10px auto 0; }
.key.sm { min-height: 52px; flex: 1; font-size: 1.5rem; }
.vx { font-style: italic; color: var(--blue); font-family: var(--f-display); }
.mix { display: inline-flex; align-items: center; gap: 4px; }
.nline { display: block; margin: 0 auto; width: 100%; max-width: 440px; height: auto; }
.nline .nax { stroke: var(--ink); stroke-width: 3; } .nline .nt { stroke: var(--ink); stroke-width: 2; } .nline .nz { stroke: var(--ink); stroke-width: 3; }
.nline .nl { fill: var(--ink); font: 700 13px var(--f-body); } .nline .narr { fill: var(--ink); }
.angle { display: block; margin: 0 auto; width: 220px; max-width: 100%; height: auto; }
.angle .aray { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; } .angle .aarc { fill: none; stroke: var(--red); stroke-width: 3; } .angle .asq { fill: none; stroke: var(--red); stroke-width: 3; }
@media (max-width: 700px) { .pstrip { grid-template-columns: 1fr 1fr; } }

/* Készítői sáv */
.kds { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 14px 18px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.kds:hover { border-color: var(--blue); }
.kds img { flex: none; width: 52px; height: 52px; padding: 6px; background: var(--brand-bg); border-radius: 14px; }
.kt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.kt small { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kt b { font: 600 1.3rem/1.2 var(--f-display); color: var(--ink); }
.kt span { color: var(--muted); font-size: .92rem; }
.kc { color: var(--blue); font-weight: 800; white-space: nowrap; }
@media (max-width: 640px) { .kds { flex-wrap: wrap; } .kc { width: 100%; padding-left: 68px; } }
@media print { .kds { display: none; } }

.wd { font: 600 clamp(2rem, 9vw, 3.2rem) var(--f-display); letter-spacing: .02em; }
.stool { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 14px; }
.stool .cnt { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.mixrow { border-style: dashed; }
.mixrow { margin-top: 10px; }
.slist .wd, .wrongs .wd { font-size: 1.5rem; color: inherit; }
.gnote { color: var(--muted); margin: 0 0 6px; } .linkbtn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font-weight: 700; }

.missbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 12px 14px; background: var(--amber-soft); border: 2px solid var(--gold); border-radius: 16px; }
.missbox .st { color: var(--muted); font-size: .92rem; }
.result { position: relative; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.confetti i { position: absolute; top: -14px; left: var(--x); width: var(--w); height: calc(var(--w) * 1.5); background: var(--c); border-radius: 2px; opacity: 0; transform: rotate(var(--r)); animation: cfall var(--t) var(--d) ease-in forwards; }
@keyframes cfall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: .9; transform: translate3d(calc(var(--r) / 6), 105vh, 0) rotate(var(--r)); } }
.perfect .bigstars span { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) both; display: inline-block; }
.perfect .bigstars span:nth-child(2) { animation-delay: .15s; } .perfect .bigstars span:nth-child(3) { animation-delay: .3s; }
.perfect h1 { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pop { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .perfect .bigstars span, .perfect h1 { animation: none !important; } }
@media print { .confetti { display: none; } }
