/* Kémia Érettségi Kaland — minden szabály a #kek-root alá zárva, hogy a WordPress-téma ne írja felül */
/* Layout: sticky XP-fejléc → játékoskártya → elméleti és számolási modul (témakörkártyák) → jelvények; a feladatok kockás füzetlapon futnak */
#kek-root{
  --bg:#0B1833; --surface:#12244A; --surface-2:#1A3161; --line:#2B467C;
  --gold:#C9A84C; --gold-hi:#E6CB7E; --text:#EEF2FA; --muted:#A5B4D2;
  --paper:#FBFAF6; --paper-line:#DFE7F3; --paper-edge:#C5D1E4; --ink:#16223D; --ink-muted:#56627D;
  --ok:#2FAE7E; --ok-soft:#E3F4EC; --bad:#D9545C; --bad-soft:#FBE8E9; --hint-soft:#FFF4D6; --warn:#F0A04B;
  --scrim:rgba(5,12,28,.72);
  --display:"Poppins","Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;
  --serif:Georgia,"Times New Roman",serif;
  color-scheme:dark;
  position:relative;
  min-height:80vh;
  background-color:var(--bg);
  background-image:radial-gradient(circle at 1px 1px,rgba(165,180,210,.10) 1px,transparent 0);
  background-size:24px 24px;
  color:var(--text);
  font-family:var(--display);
  font-size:15px;
  line-height:1.5;
  text-align:left;
  border-radius:20px;
  overflow:clip;
  -webkit-font-smoothing:antialiased;
}
/* reset a téma stílusai ellen */
#kek-root *,#kek-root *::before,#kek-root *::after{box-sizing:border-box}
#kek-root button{font:inherit;color:inherit;background:none;border:0;border-radius:0;padding:0;margin:0;box-shadow:none;text-transform:none;letter-spacing:normal;text-shadow:none;min-height:0;min-width:0;line-height:inherit;width:auto;height:auto}
#kek-root a{text-decoration:none;box-shadow:none;border:0}
#kek-root h2,#kek-root h3,#kek-root p{margin:0;padding:0;color:inherit;font-family:inherit;text-transform:none;letter-spacing:normal;line-height:1.3;border:0}
#kek-root input{margin:0;box-shadow:none;height:auto;line-height:normal;max-width:100%}
#kek-root svg{display:inline-block;vertical-align:middle;max-width:none}
#kek-root details,#kek-root summary{margin:0;padding:0;border:0;background:none}
#kek-root :focus-visible{outline:3px solid var(--gold-hi);outline-offset:3px;border-radius:8px}
#kek-root .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
#kek-root .eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}

/* fejléc */
#kek-root .top{position:sticky;top:calc(env(safe-area-inset-top,0px) + var(--wp-admin--admin-bar--height,0px));z-index:20;background:rgba(11,24,51,.92);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
#kek-root .top-in{max-width:760px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:12px}
#kek-root .brand{display:flex;flex-direction:column;min-width:0;flex:1;cursor:pointer;text-align:left}
#kek-root .brand small{font-size:10px;font-weight:700;letter-spacing:.16em;color:var(--gold);text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#kek-root .brand strong{font-size:16px;font-weight:800;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
#kek-root .sync{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:12px;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 10px;cursor:pointer;white-space:nowrap}
#kek-root .sync svg{width:15px;height:15px;fill:currentColor}
#kek-root .sync.saved{color:var(--ok);border-color:rgba(47,174,126,.45)}
#kek-root .sync.saving,#kek-root .sync.loading{color:var(--gold-hi)}
#kek-root .sync.saving svg,#kek-root .sync.loading svg{animation:kekBlink 1s ease-in-out infinite}
#kek-root .sync.offline,#kek-root .sync.auth{color:var(--warn);border-color:rgba(240,160,75,.5)}
#kek-root .sync.guest{color:var(--gold-hi);border-color:var(--gold)}
#kek-root .hud{display:flex;align-items:center;gap:10px;flex-shrink:0}
#kek-root .lvl-chip{background:var(--gold);color:var(--ink);font-weight:800;font-size:13px;padding:4px 10px;border-radius:999px;white-space:nowrap}
#kek-root .hud-xp{display:flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:12px;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
#kek-root .hud-bar{width:92px;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
#kek-root .hud-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold-hi));transition:width .6s ease}

#kek-root .wrap{max-width:760px;margin:0 auto;padding-inline:16px;padding-block:22px 56px;display:flex;flex-direction:column;gap:26px}

/* vendég-banner */
#kek-root .account{display:grid;grid-template-columns:auto 1fr;gap:14px 16px;align-items:center;background:linear-gradient(120deg,var(--surface-2),var(--surface));border:1px dashed var(--gold);border-radius:18px;padding:16px 18px}
#kek-root .account .ai{width:48px;height:48px;border-radius:14px;background:var(--gold);display:grid;place-items:center}
#kek-root .account .ai svg{width:26px;height:26px;fill:var(--ink)}
#kek-root .account h3{font-size:17px;font-weight:700}
#kek-root .account p{font-family:var(--serif);color:var(--muted);font-size:14.5px;line-height:1.5;margin-top:2px}
#kek-root .account .acts{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}

/* játékos */
#kek-root .player{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px}
#kek-root .shield{width:92px;height:104px;clip-path:polygon(50% 0,100% 22%,100% 74%,50% 100%,0 74%,0 22%);background:linear-gradient(160deg,var(--gold-hi),var(--gold) 60%,#A8862F);color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
#kek-root .shield-lbl{font-size:10px;font-weight:800;letter-spacing:.18em}
#kek-root .shield-num{font-size:44px;font-weight:800;font-variant-numeric:tabular-nums;margin-top:2px}
#kek-root .pinfo{min-width:0;display:flex;flex-direction:column;gap:6px}
#kek-root .pname{font:800 22px var(--display);color:var(--text);background:transparent;border:0;border-bottom:1.5px dashed transparent;border-radius:0;padding:0 0 2px;width:100%;min-width:0}
#kek-root .pname:hover{border-bottom-color:var(--line)}
#kek-root .pname:focus{outline:none;border-bottom-color:var(--gold)}
#kek-root .rank{font-family:var(--serif);font-style:italic;color:var(--gold-hi);font-size:17px;margin-top:-4px}
#kek-root .xpbar{height:12px;border-radius:6px;background:var(--bg);border:1px solid var(--line);overflow:hidden}
#kek-root .xpbar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold),var(--gold-hi));border-radius:6px;transition:width .8s cubic-bezier(.2,.8,.2,1)}
#kek-root .xpmeta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
#kek-root .xpmeta b{color:var(--text)}
#kek-root .who{font-size:12.5px;color:var(--muted);display:flex;gap:6px;flex-wrap:wrap;align-items:center}
#kek-root .who b{color:var(--text);font-weight:600}
#kek-root .who a{color:var(--gold-hi);text-decoration:underline}

#kek-root .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
#kek-root .stat{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
#kek-root .stat b{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:6px;color:var(--text)}
#kek-root .stat b svg{width:18px;height:18px;fill:var(--gold)}
#kek-root .stat b small{font-size:14px;color:var(--muted);font-weight:600}
#kek-root .stat span{font-size:12px;color:var(--muted)}

#kek-root .next{display:flex;align-items:center;gap:16px;justify-content:space-between;flex-wrap:wrap;background:linear-gradient(120deg,var(--surface-2),var(--surface));border:1px solid var(--gold);border-radius:18px;padding:16px 18px}
#kek-root .next h3{margin-top:2px;font-size:19px;font-weight:700}
#kek-root .next p{margin-top:2px;color:var(--muted);font-size:13.5px}

#kek-root .sec{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 -10px;font-size:20px;font-weight:800;letter-spacing:-.01em}
#kek-root .sec span{font-size:13px;font-weight:500;color:var(--muted)}

/* térkép */
#kek-root .map{position:relative;display:grid;grid-template-columns:repeat(3,1fr);row-gap:22px;padding-block:8px}
#kek-root .map-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
#kek-root .map-svg path{fill:none;stroke-width:4;stroke-linecap:round}
#kek-root .map-svg path.lit{stroke:var(--gold)}
#kek-root .map-svg path.dim{stroke:var(--line);stroke-dasharray:2 10}
#kek-root .node{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
#kek-root .node-btn{width:78px;height:78px;border-radius:50%;border:3px solid var(--line);background:var(--surface);color:var(--muted);font-weight:800;font-size:26px;display:grid;place-items:center;cursor:pointer;transition:transform .15s ease}
#kek-root .node-btn:hover{transform:scale(1.06)}
#kek-root .node-btn svg{width:26px;height:26px;fill:currentColor}
#kek-root .node.open .node-btn{border-color:var(--gold);color:var(--gold-hi);background:var(--surface-2);animation:kekPulse 2.2s ease-in-out infinite}
#kek-root .node.done .node-btn{background:linear-gradient(150deg,var(--gold-hi),var(--gold));border-color:var(--gold-hi);color:var(--ink)}
#kek-root .node.locked .node-btn{background:var(--bg);color:var(--muted)}
#kek-root .node-name{font-size:13px;font-weight:600;line-height:1.3;max-width:132px;text-wrap:balance}
#kek-root .node.locked .node-name{color:var(--muted)}
#kek-root .stars{display:inline-flex;gap:2px}
#kek-root .stars svg{width:15px;height:15px;fill:var(--line)}
#kek-root .stars svg.on{fill:var(--gold)}

/* jelvények */
#kek-root .badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
#kek-root .badge{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
#kek-root .bi{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--gold)}
#kek-root .bi svg{width:20px;height:20px;fill:var(--ink)}
#kek-root .badge b{display:block;font-size:13.5px;font-weight:700;line-height:1.25}
#kek-root .badge span{display:block;font-size:12px;color:var(--muted);line-height:1.35}
#kek-root .badge.off{opacity:.5}
#kek-root .badge.off .bi{background:var(--line)}
#kek-root .badge.off .bi svg{fill:var(--muted)}

/* tanári */
#kek-root .teacher{border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:13px}
#kek-root .teacher summary{cursor:pointer;font-weight:600;color:var(--muted)}
#kek-root .teacher-body{display:flex;flex-direction:column;gap:12px;margin-top:12px}
#kek-root .switch{display:flex;align-items:center;gap:10px;cursor:pointer;color:var(--text)}
#kek-root .switch input{width:18px;height:18px;accent-color:var(--gold)}
#kek-root .linkbtn{color:var(--gold-hi);text-decoration:underline;cursor:pointer;font-size:13px}
#kek-root .confirm{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--text)}

/* gombok */
#kek-root .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font:700 15px var(--display);border-radius:12px;padding:12px 20px;border:0;cursor:pointer;text-decoration:none;transition:transform .12s ease,filter .12s ease;white-space:nowrap;line-height:1.2}
#kek-root .btn:active{transform:translateY(1px)}
#kek-root .btn-gold{background:var(--gold);color:var(--ink)}
#kek-root .btn-gold:hover{filter:brightness(1.08);background:var(--gold);color:var(--ink)}
#kek-root .btn-ghost{background:transparent;color:var(--text);border:1.5px solid var(--line)}
#kek-root .btn-ghost:hover{border-color:var(--muted);color:var(--text);background:transparent}
#kek-root .btn-soft{background:var(--surface-2);color:var(--text);border:1.5px solid var(--line)}
#kek-root .btn.sm{font-size:13px;padding:8px 12px;border-radius:10px}
#kek-root .btn.block{width:100%}
#kek-root .btn[disabled],#kek-root .btn.is-off{opacity:.5;cursor:not-allowed}
#kek-root .btn small{font-weight:500;opacity:.75}

/* világ-lap */
#kek-root .overlay{position:fixed;inset:0;z-index:99990;background:var(--scrim);display:flex;align-items:flex-end;justify-content:center;animation:kekFade .2s ease}
#kek-root .sheet{position:relative;width:100%;max-width:540px;max-height:92%;overflow:auto;background:var(--surface);border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:16px;animation:kekRise .28s cubic-bezier(.2,.8,.2,1)}
@media (min-width:640px){#kek-root .overlay{align-items:center}#kek-root .sheet{border-radius:22px;border-bottom:1px solid var(--line)}}
#kek-root .sheet h3{margin:4px 0 6px;font-size:24px;font-weight:800;letter-spacing:-.01em}
#kek-root .sheet p{color:var(--muted);font-family:var(--serif);font-size:15.5px;line-height:1.5}
#kek-root .sheet-close{position:absolute;right:0;top:0;color:var(--muted);font-size:26px;line-height:1;cursor:pointer;padding:4px 8px}
#kek-root .sheet-head{position:relative;padding-right:32px}
#kek-root .chips{display:flex;flex-wrap:wrap;gap:8px}
#kek-root .chip{background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
#kek-root .video{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:14px}
#kek-root .vthumb{width:58px;height:58px;border-radius:14px;background:linear-gradient(150deg,var(--gold-hi),var(--gold));display:grid;place-items:center}
#kek-root .vthumb svg{width:26px;height:26px;fill:var(--ink)}
#kek-root .vtitle{font-weight:700;font-size:15px;line-height:1.3}
#kek-root .vmeta{font-size:12.5px;color:var(--muted)}
#kek-root .vbtns{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
#kek-root .vbtns svg{width:14px;height:14px;fill:currentColor}

/* feladat */
#kek-root .quiz{display:flex;flex-direction:column;gap:16px}
#kek-root .quiz-top{display:flex;align-items:center;gap:12px}
#kek-root .btn-x{border:1.5px solid var(--line);border-radius:10px;color:var(--muted);padding:6px 10px;font-size:13px;font-weight:600;cursor:pointer}
#kek-root .segs{display:flex;gap:4px;flex:1;min-width:0}
#kek-root .seg{height:8px;flex:1;border-radius:4px;background:var(--line);transition:background .3s}
#kek-root .seg.ok{background:var(--ok)}
#kek-root .seg.bad{background:var(--bad)}
#kek-root .seg.cur{background:var(--gold)}
#kek-root .combo{display:inline-flex;align-items:center;gap:4px;font-weight:800;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:44px;justify-content:flex-end}
#kek-root .combo svg{width:18px;height:18px;fill:currentColor}
#kek-root .combo.on{color:var(--gold-hi)}
#kek-root .combo.pop{animation:kekPop .35s ease}
#kek-root .qworld{font-size:13px;color:var(--muted);font-weight:600;margin-bottom:-6px}
#kek-root .paper{position:relative;background-color:var(--paper);color:var(--ink);border-radius:8px;padding:26px 22px 22px;background-image:linear-gradient(var(--paper-line) 1px,transparent 1px),linear-gradient(90deg,var(--paper-line) 1px,transparent 1px);background-size:20px 20px;box-shadow:0 20px 44px rgba(0,0,0,.38)}
#kek-root .q-no{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-muted)}
#kek-root .q-text{font-family:var(--serif);font-size:clamp(19px,4.6vw,23px);line-height:1.5;margin:8px 0 20px;text-wrap:pretty;color:var(--ink)}
#kek-root .opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:460px){#kek-root .opts{grid-template-columns:1fr}}
#kek-root .opt{display:flex;align-items:center;gap:12px;text-align:left;background:var(--paper);border:2px solid var(--paper-edge);border-radius:12px;padding:12px 14px;font:18px var(--serif);color:var(--ink);cursor:pointer;min-height:56px;transition:border-color .15s,background .15s}
#kek-root .opt:hover:not([disabled]){border-color:var(--gold);background:var(--paper);color:var(--ink)}
#kek-root .opt .k{flex-shrink:0;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font:700 12px var(--display);background:var(--paper-line);color:var(--ink-muted)}
#kek-root .opt[disabled]{cursor:default}
#kek-root .opt.correct{border-color:var(--ok);background:var(--ok-soft)}
#kek-root .opt.correct .k{background:var(--ok);color:var(--paper)}
#kek-root .opt.wrong{border-color:var(--bad);background:var(--bad-soft)}
#kek-root .opt.wrong .k{background:var(--bad);color:var(--paper)}
#kek-root .num-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#kek-root .num{font:600 22px var(--serif);color:var(--ink);background:var(--paper);border:2px solid var(--paper-edge);border-radius:12px;padding:10px 14px;width:min(220px,100%);min-width:0}
#kek-root .num:focus{outline:none;border-color:var(--gold)}
#kek-root .num.correct{border-color:var(--ok);background:var(--ok-soft)}
#kek-root .num.wrong{border-color:var(--bad);background:var(--bad-soft)}
#kek-root .pm{width:48px;height:50px;border-radius:12px;border:2px solid var(--paper-edge);background:var(--paper);color:var(--ink);font:700 20px var(--display);cursor:pointer}
#kek-root .unit{font:600 18px var(--serif);color:var(--ink-muted)}
#kek-root .inline-err{font-size:13px;color:var(--bad);font-weight:600;width:100%}
#kek-root .hint,#kek-root .fb{margin-top:16px;border-radius:12px;padding:12px 14px;font-family:var(--serif);font-size:16px;line-height:1.5;color:var(--ink)}
#kek-root .hint{background:var(--hint-soft);border:1px solid var(--gold)}
#kek-root .hint b,#kek-root .fb b{font-family:var(--display);font-size:14px;display:block;margin-bottom:2px}
#kek-root .fb.ok{background:var(--ok-soft);border:1px solid var(--ok)}
#kek-root .fb.ok b{color:var(--ok)}
#kek-root .fb.bad{background:var(--bad-soft);border:1px solid var(--bad)}
#kek-root .fb.bad b{color:var(--bad)}
#kek-root .fb a{color:var(--ink);font-family:var(--display);font-weight:700;font-size:14px;text-decoration:underline}
#kek-root .fb .vlink{display:inline-flex;margin-top:8px}
#kek-root .q-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
#kek-root .q-actions .btn-gold{margin-left:auto;min-width:150px}
#kek-root .xpfloat{position:absolute;right:18px;top:14px;background:var(--gold);color:var(--ink);font:800 16px var(--display);padding:4px 12px;border-radius:999px;pointer-events:none;animation:kekFloat 1.2s ease forwards}
#kek-root .frac{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.78em;line-height:1.12;margin:0 .12em}
#kek-root .frac>span:first-child{border-bottom:1.5px solid currentColor;padding:0 .18em}

/* eredmény */
#kek-root .result{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:28px 18px}
#kek-root .bigstars{display:flex;gap:10px;align-items:flex-end}
#kek-root .bs svg{width:58px;height:58px;fill:var(--line)}
#kek-root .bs:nth-child(2) svg{width:74px;height:74px}
#kek-root .bs.on svg{fill:var(--gold);animation:kekStar .5s cubic-bezier(.2,1.6,.4,1) both;animation-delay:var(--d)}
#kek-root .result h2{font-size:24px;font-weight:800;letter-spacing:-.01em;text-wrap:balance}
#kek-root .result p{color:var(--muted);font-family:var(--serif);font-size:16px;max-width:46ch;line-height:1.5}
#kek-root .rstats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;max-width:480px}
#kek-root .rstats div{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:12px 8px;display:flex;flex-direction:column}
#kek-root .rstats b{font-size:22px;font-weight:800;font-variant-numeric:tabular-nums}
#kek-root .rstats span{font-size:12px;color:var(--muted)}
#kek-root .rlist{display:flex;flex-direction:column;gap:6px;width:100%;max-width:480px}
#kek-root .rline{display:flex;justify-content:space-between;gap:10px;background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px 14px;font-size:14px;font-weight:600;text-align:left}
#kek-root .rline em{font-style:normal;color:var(--gold-hi);white-space:nowrap}
#kek-root .ractions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}

/* szintlépés */
#kek-root .overlay.center{align-items:center}
#kek-root .lvl{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;background:var(--surface);border:1px solid var(--gold);border-radius:24px;padding:34px 24px 24px;margin:auto 16px;max-width:380px;width:100%;overflow:hidden;animation:kekRise .35s cubic-bezier(.2,1.4,.4,1)}
#kek-root .lvl::before{content:"";position:absolute;left:50%;top:92px;width:520px;height:520px;margin:-260px 0 0 -260px;background:repeating-conic-gradient(rgba(201,168,76,.16) 0 10deg,transparent 10deg 20deg);animation:kekSpin 18s linear infinite;pointer-events:none}
#kek-root .lvl>*{position:relative}
#kek-root .lvl .shield{width:110px;height:124px}
#kek-root .lvl .shield-num{font-size:54px}
#kek-root .lvl h2{margin-top:4px;font-size:26px;font-weight:800}
#kek-root .lvl p{color:var(--muted);font-family:var(--serif);font-size:16px}

/* értesítések */
#kek-root .toasts{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:99995;display:flex;flex-direction:column;gap:8px;width:min(420px,calc(100% - 32px));pointer-events:none}
#kek-root .toast{display:flex;align-items:center;gap:12px;background:var(--surface-2);border:1px solid var(--gold);border-radius:14px;padding:10px 14px;box-shadow:0 10px 30px rgba(0,0,0,.4);animation:kekRise .3s ease;font-size:14px;color:var(--text)}
#kek-root .toast .bi{width:34px;height:34px;flex-shrink:0}
#kek-root .toast .bi svg{width:18px;height:18px}
#kek-root .toast b{display:block;font-size:13.5px}
#kek-root .toast span{color:var(--muted);font-size:12.5px}
#kek-root .toast.out{opacity:0;transform:translateY(8px);transition:all .3s}

@keyframes kekPulse{0%,100%{box-shadow:0 0 0 0 rgba(201,168,76,.45)}50%{box-shadow:0 0 0 10px rgba(201,168,76,0)}}
@keyframes kekFloat{0%{opacity:0;transform:translateY(10px) scale(.8)}20%{opacity:1;transform:translateY(0) scale(1.1)}70%{opacity:1;transform:translateY(-14px) scale(1)}100%{opacity:0;transform:translateY(-30px)}}
@keyframes kekPop{0%{transform:scale(1)}50%{transform:scale(1.35)}100%{transform:scale(1)}}
@keyframes kekStar{0%{transform:scale(0) rotate(-40deg)}100%{transform:scale(1) rotate(0)}}
@keyframes kekSpin{to{transform:rotate(360deg)}}
@keyframes kekRise{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
@keyframes kekFade{from{opacity:0}to{opacity:1}}
@keyframes kekBlink{0%,100%{opacity:1}50%{opacity:.35}}

@media (max-width:560px){
  #kek-root .stats{grid-template-columns:repeat(2,1fr)}
  #kek-root .hud-bar{width:64px}
  #kek-root .sync .sync-t{display:none}
  #kek-root .player{gap:14px;padding:16px}
  #kek-root .shield{width:76px;height:86px}
  #kek-root .shield-num{font-size:36px}
  #kek-root .node-btn{width:66px;height:66px;font-size:22px}
  #kek-root .node-name{font-size:12px;max-width:110px}
  #kek-root .rstats b{font-size:19px}
  #kek-root .bs svg{width:46px;height:46px}
  #kek-root .bs:nth-child(2) svg{width:60px;height:60px}
}
@media (prefers-reduced-motion:reduce){#kek-root *,#kek-root *::before{animation:none!important;transition:none!important}}

/* belépés / kurzus-kapu */
#kek-root.kek-gate-root{min-height:0}
#kek-root .gate{display:flex;flex-direction:column;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--gold);border-radius:20px;padding:28px 22px}
#kek-root .gate h2{font-size:24px;font-weight:800;letter-spacing:-.01em;text-wrap:balance}
#kek-root .gate p{font-family:var(--serif);color:var(--muted);font-size:16px;max-width:52ch;line-height:1.5}
#kek-root .gate .acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}

/* hozzáférés: fizetős világ, hosszabbítás, lejárat */
#kek-root .node.paid .node-btn{background:var(--bg);color:var(--gold);border-style:dashed;border-color:var(--gold)}
#kek-root .node.paid .node-name{color:var(--muted)}
#kek-root .tag{font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);border:1px solid rgba(201,168,76,.5);border-radius:999px;padding:1px 8px}
#kek-root .account.soon{border-style:solid;border-color:var(--warn)}
#kek-root .account.soon .ai{background:var(--warn)}
#kek-root .demo-note{grid-column:1/-1;font-size:12.5px;color:var(--muted);font-family:var(--display)}
#kek-root .demo-note a,#kek-root .chooser-note a{color:var(--gold-hi);text-decoration:underline}
#kek-root .renew{display:flex;flex-direction:column;gap:12px;align-items:flex-start;background:linear-gradient(135deg,var(--surface-2),var(--surface));border:1.5px solid var(--gold);border-radius:22px;padding:24px 20px}
#kek-root .renew h2{font-size:24px;font-weight:800;letter-spacing:-.01em;text-wrap:balance}
#kek-root .renew>p{font-family:var(--serif);color:var(--muted);font-size:15.5px;line-height:1.5;max-width:56ch}
#kek-root .renew-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%;max-width:520px}
#kek-root .renew-stats div{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column}
#kek-root .renew-stats b{font-size:20px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--gold-hi)}
#kek-root .renew-stats span{font-size:12px;color:var(--muted)}
#kek-root .renew .acts{display:flex;gap:8px;flex-wrap:wrap}
#kek-root .perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
#kek-root .perks li{display:flex;align-items:center;gap:12px;font-size:14.5px;line-height:1.35;margin:0}
#kek-root .perks svg{width:20px;height:20px;fill:var(--gold);flex-shrink:0}
#kek-root .sheet-acts{display:flex;flex-direction:column;gap:8px}

/* diákprofilok */
#kek-root .chooser{display:flex;flex-direction:column;gap:14px;align-items:center;text-align:center;padding-block:12px}
#kek-root .chooser h2{font-size:clamp(26px,6vw,34px);font-weight:800;letter-spacing:-.02em}
#kek-root .chooser>p{font-family:var(--serif);color:var(--muted);font-size:16px;max-width:46ch;line-height:1.5}
#kek-root .profiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;width:100%;margin-top:6px}
#kek-root .pcard{position:relative;display:flex;align-items:center;gap:14px;text-align:left;background:var(--surface);border:1.5px solid var(--line);border-radius:18px;padding:16px;transition:border-color .15s,transform .15s;color:var(--text)}
#kek-root .pcard:hover{border-color:var(--gold)}
#kek-root .pc-main{display:flex;align-items:center;gap:14px;flex:1;min-width:0;text-align:left;cursor:pointer;color:var(--text)}
#kek-root .pc-edit{position:absolute;top:8px;right:10px;color:var(--muted);font-size:16px;cursor:pointer;padding:4px 6px;border-radius:8px}
#kek-root .pc-edit:hover{color:var(--gold-hi)}
#kek-root .pc-rename{flex:1}
#kek-root .pcard.current{border-color:var(--gold)}
#kek-root .pc-body{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#kek-root .pc-body b{font-size:17px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#kek-root .pc-body span{font-size:12.5px;color:var(--muted)}
#kek-root .shield.mini{width:52px;height:59px;flex-shrink:0}
#kek-root .shield.mini .shield-num{font-size:24px;margin:0}
#kek-root .pcard.add{border-style:dashed;cursor:default;align-items:flex-start}
#kek-root .pcard.add .ai{width:52px;height:52px;border-radius:14px;background:var(--surface-2);display:grid;place-items:center;flex-shrink:0}
#kek-root .pcard.add .ai svg{width:24px;height:24px;fill:var(--gold)}
#kek-root .add-row{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}
#kek-root .add-row input{flex:1;min-width:0;font:600 15px var(--display);color:var(--text);background:var(--bg);border:1.5px solid var(--line);border-radius:10px;padding:8px 10px}
#kek-root .add-row input:focus{outline:none;border-color:var(--gold)}
#kek-root .add-err{font-size:12.5px;color:var(--bad)}
#kek-root .chooser-note{font-size:13.5px;color:var(--muted)}
#kek-root .who.center{justify-content:center;margin-top:6px}
@media (max-width:560px){#kek-root .renew-stats{grid-template-columns:repeat(2,1fr)}}

/* 1.3: Felvételi feladattípusok – modulkártyák, egységlista, közös szöveg és ábra */
#kek-root .mods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#kek-root .mod{display:flex;align-items:center;gap:12px;text-align:left;background:var(--surface);border:1.5px solid var(--line);border-radius:16px;padding:12px 14px;cursor:pointer;color:var(--text);transition:border-color .15s,transform .15s}
#kek-root .mod:hover{border-color:var(--gold);transform:translateY(-1px)}
#kek-root .mod-no{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:18px;background:var(--surface-2);border:2px solid var(--gold);color:var(--gold-hi);flex-shrink:0}
#kek-root .mod-no svg{width:20px;height:20px;fill:currentColor}
#kek-root .mod.done .mod-no{background:linear-gradient(150deg,var(--gold-hi),var(--gold));border-color:var(--gold-hi);color:var(--ink)}
#kek-root .mod.paid{border-style:dashed}
#kek-root .mod.paid .mod-no{background:var(--bg);border-style:dashed;color:var(--gold)}
#kek-root .mod.paid b{color:var(--muted)}
#kek-root .mod-body{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1;align-items:flex-start}
#kek-root .mod-body b{font-size:14.5px;font-weight:700;line-height:1.25}
#kek-root .mod-meta{font-size:12px;color:var(--muted)}
#kek-root .udots{display:flex;gap:4px}
#kek-root .udots i{width:16px;height:5px;border-radius:3px;background:var(--line)}
#kek-root .udots i.d1{background:#8C7536}
#kek-root .udots i.d2{background:var(--gold)}
#kek-root .udots i.d3{background:var(--gold-hi)}
#kek-root .mod .stars svg{width:13px;height:13px}
#kek-root .units{display:flex;flex-direction:column;gap:8px}
#kek-root .urow{display:flex;align-items:center;gap:12px;text-align:left;background:var(--bg);border:1.5px solid var(--line);border-radius:14px;padding:10px 12px;cursor:pointer;color:var(--text);width:100%}
#kek-root .urow:hover{border-color:var(--gold)}
#kek-root .urow.next{border-color:var(--gold)}
#kek-root .u-no{width:34px;height:34px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;font-weight:800;color:var(--gold-hi);flex-shrink:0}
#kek-root .urow.done .u-no{background:var(--gold);color:var(--ink)}
#kek-root .u-body{display:flex;flex-direction:column;min-width:0;flex:1;gap:1px}
#kek-root .u-body b{font-size:14px;font-weight:700}
#kek-root .u-body span{font-size:13px;color:var(--muted);line-height:1.35;font-family:var(--serif)}
#kek-root .u-body em{font-style:normal;font-size:11.5px;font-weight:600;color:var(--gold)}
#kek-root .urow .stars svg{width:13px;height:13px}
#kek-root .ctx{margin:10px 0 6px;padding:12px 14px;background:rgba(255,255,255,.82);border-left:4px solid var(--gold);border-radius:8px}
#kek-root .ctx p{font-family:var(--serif);font-size:16px;line-height:1.55;color:var(--ink);margin:0}
#kek-root .fig{display:block;max-width:100%;width:auto;max-height:46vh;height:auto;margin:10px auto 2px;border-radius:6px;background:#fff;mix-blend-mode:multiply}
#kek-root .ctx+.q-text{margin-top:14px}
#kek-root .opts.few{grid-template-columns:1fr}
@media (max-width:460px){#kek-root .mods{grid-template-columns:1fr}}

/* Kémia Érettségi Kaland: csoportok, alcsoportok, önellenőrzős feladat, normálalak */
#kek-root .grp{display:flex;flex-direction:column;gap:8px}
#kek-root .subsec{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin:8px 0 0}
#kek-root .mod-no.long{font-size:14px;letter-spacing:-.02em}
#kek-root .opts.few .opt{font-size:16.5px;min-height:48px}
#kek-root .openin{width:100%;font:17px/1.5 var(--serif);color:var(--ink);background:var(--paper);border:2px solid var(--paper-edge);border-radius:12px;padding:10px 14px;resize:vertical;min-height:84px;margin:0}
#kek-root .openin:focus{outline:none;border-color:var(--gold)}
#kek-root .openin[readonly]{background:#F1F3F8}
#kek-root .model{margin-top:16px;border-radius:12px;padding:12px 14px;background:#EEF3FB;border:1px solid var(--paper-edge);color:var(--ink);font-family:var(--serif);font-size:16.5px;line-height:1.55}
#kek-root .model b{font-family:var(--display);font-size:14px;display:block;margin-bottom:4px;color:var(--ink)}
#kek-root .selfrate{margin-top:12px;display:flex;flex-direction:column;gap:8px;color:var(--ink)}
#kek-root .selfrate>span{font-weight:700;font-size:14px}
#kek-root .sr-btns{display:flex;gap:8px;flex-wrap:wrap}
#kek-root .btn-ghost.dark{color:var(--ink);border-color:var(--paper-edge);background:var(--paper)}
#kek-root .btn-ghost.dark:hover{border-color:var(--gold);color:var(--ink)}
#kek-root .pm.pow{width:auto;padding:0 12px;font-size:16px}
#kek-root .ctx p{white-space:pre-line}
#kek-root .q-text{white-space:pre-line}
#kek-root [hidden]{display:none!important}
#kek-root sub,#kek-root sup{font-size:.68em;line-height:0;position:relative;vertical-align:baseline}
#kek-root sup{top:-.5em}
#kek-root sub{bottom:-.25em}
