/* ====== Μαθηματικά Γ΄ Δημοτικού — εμφάνιση ====== */
:root {
  --bg: #fff8ec;
  --bg2: #fff1d6;
  --card: #ffffff;
  --ink: #2b2350;
  --muted: #6d6790;
  --line: #e9e1f7;
  --brand: #7b61ff;
  --brand-ink: #ffffff;
  --uc: var(--brand);
  --ok: #22a45d;
  --ok-bg: #e3f8ec;
  --bad: #e5484d;
  --bad-bg: #fde8e8;
  --warn: #c77700;
  --warn-bg: #fff4d6;
  --yellow: #f7b801;
  --red: #ef4444;
  --blue: #3b82f6;
  --green: #22a45d;
  --one: #ff9f45;
  --ten: #4d96ff;
  --hun: #6bcb77;
  --th: #c77dff;
  --shadow: 0 6px 0 rgba(43, 35, 80, .08), 0 10px 24px rgba(43, 35, 80, .08);
  --radius: 20px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Comfortaa', 'Manrope', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17142b; --bg2: #1f1b3a; --card: #241f44; --ink: #f1edff; --muted: #b3acd6; --line: #3a3366;
    --ok-bg: #133a28; --bad-bg: #44191c; --warn-bg: #3d2f0c; --warn: #ffc24d;
    --shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17142b; --bg2: #1f1b3a; --card: #241f44; --ink: #f1edff; --muted: #b3acd6; --line: #3a3366;
  --ok-bg: #133a28; --bad-bg: #44191c; --warn-bg: #3d2f0c; --warn: #ffc24d;
  --shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); font-size: 17px; line-height: 1.5;
  background: var(--bg);
  background-image: radial-gradient(circle at 10% 0%, var(--bg2) 0, transparent 40%), radial-gradient(circle at 100% 30%, var(--bg2) 0, transparent 35%);
  background-attachment: fixed;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1.05rem; color: var(--uc); }
a { color: var(--brand); }
p { margin: .4em 0 .7em; }
b { font-weight: 800; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden], .hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.big { font-size: 1.25rem; font-weight: 700; }

/* ---------- Κεφαλίδα ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 8px max(12px, env(safe-area-inset-left)) 8px max(12px, env(safe-area-inset-right));
  padding-top: max(8px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--uc) 92%, #000 0%); color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
}
.topbar .logo { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; min-width: 0; flex: 1; }
.topbar .logo .owl { width: 36px; height: 36px; flex: none; }
#topTitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.05rem; }
.icon-btn { background: rgba(255, 255, 255, .22); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 14px; font-size: 1.2rem; flex: none; display: grid; place-items: center; }
.icon-btn:active { transform: scale(.94); }
main { max-width: 780px; margin: 0 auto; padding: 16px 16px 60px; outline: none; }

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  border: 0; border-radius: 16px; padding: 11px 18px; min-height: 46px; font-weight: 800; font-size: 1rem;
  background: var(--uc); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--uc) 70%, #000);
  transition: transform .08s, box-shadow .08s; text-align: center; line-height: 1.2;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--uc) 70%, #000); }
.btn.secondary { background: #ff9f45; box-shadow: 0 4px 0 #c46a15; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 3px 0 var(--line); border: 2px solid var(--line); }
.btn.small { padding: 7px 12px; min-height: 38px; font-size: .9rem; border-radius: 12px; }
.btn.big { font-size: 1.1rem; padding: 14px 22px; min-height: 54px; }
.btn.yellow { background: #f7b801; color: #3a2a00; box-shadow: 0 4px 0 #b88900; }
.btn.red { background: #ef4444; box-shadow: 0 4px 0 #a92a2a; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-round { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--uc); color: #fff; font-size: 1.4rem; font-weight: 800; line-height: 1; box-shadow: 0 3px 0 color-mix(in srgb, var(--uc) 70%, #000); flex: none; }
.btn-round:active { transform: translateY(2px); box-shadow: none; }
.row { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.row.wrap { flex-wrap: wrap; }
.row.center { justify-content: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; flex-wrap: wrap; }
.row.gap { gap: 18px; }
.yellow { color: #c48f00; } .red { color: var(--red); } .blue { color: var(--blue); } .green { color: var(--green); }
.btn.yellow, .btn.red { color: #fff; } .btn.yellow { color: #3a2a00; }

/* ---------- Κάρτες & ενότητες ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 16px 0; border: 2px solid var(--line); }
.sec-title { margin: 26px 4px 6px; }
.sec h2 { display: flex; align-items: center; gap: 8px; }

/* ---------- Αρχική ---------- */
.hero { display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #7b61ff, #c77dff); color: #fff; border-radius: 26px; padding: 18px; box-shadow: var(--shadow); }
.hero h1 { font-size: 1.6rem; margin-bottom: 4px; }
.hero p { margin: 0 0 10px; }
.hero-owl { flex: none; width: 96px; }
.hero-owl .owl { width: 96px; height: 96px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.progress-pill { position: relative; background: rgba(255, 255, 255, .25); border-radius: 99px; overflow: hidden; height: 30px; display: flex; align-items: center; padding: 0 12px; font-weight: 800; }
.progress-pill span { position: relative; z-index: 1; }
.progress-pill i { position: absolute; left: 0; top: 0; bottom: 0; background: #ffd93d; opacity: .75; border-radius: 99px; }
.search { width: 100%; margin: 14px 0 4px; padding: 13px 16px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); font-size: 1rem; }
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.unit-card {
  position: relative; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 2px solid var(--line);
  border-top: 8px solid var(--uc); transition: transform .12s;
}
.unit-card:active { transform: scale(.97); }
.unit-icon { font-size: 2rem; }
.unit-icon.big { font-size: 3rem; }
.unit-num { font-size: .8rem; color: var(--uc); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; filter: brightness(.85); }
.unit-card b { font-family: var(--display); font-size: 1.05rem; }
.unit-card small { color: var(--muted); }
.unit-bar { display: block; height: 8px; background: var(--line); border-radius: 9px; overflow: hidden; margin-top: 8px; }
.unit-bar i { display: block; height: 100%; background: var(--uc); border-radius: 9px; }
.unit-head { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); border-left: 10px solid var(--uc); }
.unit-head h1 { font-size: 1.25rem; margin: 0; }
.lesson-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.lesson-row {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); border: 2px solid var(--line);
}
.lesson-row:active { transform: scale(.98); }
.lr-num { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--uc); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.lr-icon { font-size: 1.5rem; flex: none; }
.lr-title { flex: 1; font-weight: 700; line-height: 1.3; }
.lr-title small { color: var(--muted); font-weight: 600; }
.stars { color: #d8cfee; font-size: 1.15rem; letter-spacing: 1px; white-space: nowrap; }
.stars b { color: #f7b801; }

/* ---------- Σελίδα μαθήματος ---------- */
.lesson-head { background: linear-gradient(135deg, var(--uc), color-mix(in srgb, var(--uc) 60%, #fff)); color: #fff; border-radius: 26px; padding: 18px; box-shadow: var(--shadow); }
.lh-top { display: flex; gap: 12px; align-items: center; }
.lh-top h1 { margin: 2px 0 0; font-size: 1.4rem; }
.lh-top small { opacity: .9; font-weight: 700; }
.lh-icon { font-size: 2.6rem; background: rgba(255, 255, 255, .25); border-radius: 18px; width: 64px; height: 64px; display: grid; place-items: center; flex: none; }
.goal { background: rgba(255, 255, 255, .2); border-radius: 14px; padding: 10px 12px; margin: 12px 0 8px; }
.book-link { color: #fff; font-weight: 700; font-size: .92rem; }
.sec-nav {
  position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 10; display: flex; justify-content: space-between; gap: 4px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 8px 0; margin: 8px -4px 0;
}
.sec-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--muted); border-radius: 14px; padding: 6px 2px; font-weight: 700; }
.sec-nav a span { font-size: 1.35rem; }
.sec-nav a small { font-size: .72rem; }
.sec-nav a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.story-html ul, .learn-box ul { padding-left: 1.2em; }
.kids { list-style: none; padding: 0 !important; }
.kids li { background: var(--bg2); border-radius: 12px; padding: 8px 12px; margin: 6px 0; }
.fact { background: var(--bg2); border-radius: 14px; padding: 10px 12px; border-left: 5px solid var(--uc); }
.story-q { margin-top: 14px; border-top: 2px dashed var(--line); padding-top: 12px; }
.owl-say { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--uc); filter: brightness(.9); }
.owl-say .owl { width: 44px; height: 44px; }
.learn-box { background: color-mix(in srgb, var(--uc) 9%, var(--card)); border: 2px solid color-mix(in srgb, var(--uc) 30%, transparent); border-radius: 18px; padding: 14px 16px; margin: 12px 0; }
.learn-box h4 { filter: brightness(.85); }
.formula { font-family: var(--display); font-weight: 700; font-size: 1.12rem; background: var(--card); border-radius: 12px; padding: 8px 12px; display: block; text-align: center; margin: 8px 0; }
.steps { padding-left: 1.3em; }
.steps li { margin: 6px 0; }
.c-one { color: var(--one); } .c-ten { color: var(--ten); } .c-hun { color: var(--hun); filter: brightness(.85); } .c-th { color: var(--th); } .c-red { color: var(--bad); }
.shape-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.shape-cards > div { background: var(--card); border-radius: 14px; padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.shape-cards small { color: var(--muted); line-height: 1.25; }
.roman-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.roman-row span { background: var(--card); border-radius: 10px; padding: 4px 10px; font-weight: 800; font-size: 1.3rem; color: #b3261e; display: flex; flex-direction: column; align-items: center; font-family: Georgia, serif; }
.roman-row small { font-size: .75rem; color: var(--muted); font-family: var(--font); }
.frac-explain { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lab h3 { display: flex; gap: 8px; align-items: center; }
.lab h3::before { content: '🧪'; }
.flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.flip { text-align: left; background: var(--bg2); border: 2px dashed color-mix(in srgb, var(--uc) 45%, transparent); border-radius: 16px; padding: 12px 14px; min-height: 64px; display: flex; flex-direction: column; gap: 6px; }
.flip .fq { font-weight: 700; }
.flip .fa { display: none; color: var(--ok); font-weight: 800; }
.flip.open { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.flip.open .fa { display: block; animation: pop .3s; }
.flip:not(.open)::after { content: '👆 πάτα για την απάντηση'; font-size: .78rem; color: var(--muted); }
.quiz-cta { text-align: center; background: linear-gradient(160deg, var(--card), color-mix(in srgb, var(--uc) 12%, var(--card))); }
.cta-owl .owl { width: 90px; height: 90px; animation: bob 3s ease-in-out infinite; }
.big-stars .stars { font-size: 2.4rem; letter-spacing: 4px; }
.lesson-nav .btn { max-width: 48%; font-size: .85rem; }

/* ---------- Φούσκες μηνυμάτων ---------- */
.bubble { background: var(--bg2); border-radius: 16px; padding: 10px 14px; margin: 10px 0; border: 2px solid var(--line); min-height: 1em; }
.bubble:empty { display: none; }
.bubble.good { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.bubble.warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

/* ---------- Κουίζ ---------- */
.quiz-title { font-size: 1.2rem; }
.qcount { font-weight: 800; color: var(--muted); }
.qbar { height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.qbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--uc), #ffd93d); border-radius: 99px; transition: width .4s; }
.qcard { animation: slideIn .35s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.q-text { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.q-picwrap { display: flex; justify-content: center; margin: 8px 0; }
.q-picwrap:empty { display: none; }
.choices { display: grid; gap: 10px; margin: 12px 0; }
.choices.short { grid-template-columns: 1fr 1fr; }
.choice { text-align: left; background: var(--card); border: 3px solid var(--line); border-radius: 16px; padding: 13px 16px; font-size: 1.08rem; font-weight: 700; min-height: 54px; transition: transform .1s; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.choices.short .choice { justify-content: center; text-align: center; }
.choice:not(:disabled):active { transform: scale(.97); }
.choice.ok { background: var(--ok-bg); border-color: var(--ok); animation: pop .35s; }
.choice.bad { background: var(--bad-bg); border-color: var(--bad); animation: shake .35s; }
.choice:disabled { cursor: default; }
.choice.tf { font-size: 1.15rem; }
.answer-row { gap: 8px; }
.num-in { width: 7.5em; font-size: 1.3rem; font-weight: 800; text-align: center; padding: 9px 10px; border-radius: 14px; border: 3px solid var(--line); background: var(--card); }
.num-in.small { width: 4.2em; font-size: 1.1rem; padding: 6px; }
.num-in.ok { border-color: var(--ok); background: var(--ok-bg); }
.num-in.bad { border-color: var(--bad); background: var(--bad-bg); animation: shake .35s; }
.num-in:focus { border-color: var(--uc); outline: none; }
.unit { font-weight: 700; color: var(--muted); }
.feedback { display: none; border-radius: 16px; padding: 12px 14px; margin-top: 12px; }
.feedback.show { display: block; animation: pop .3s; }
.feedback.good { background: var(--ok-bg); border: 2px solid var(--ok); }
.feedback.bad { background: var(--bad-bg); border: 2px solid var(--bad); }
.feedback.warn { background: var(--warn-bg); border: 2px solid var(--warn); }
.feedback p { margin: 6px 0 0; }
.next-btn { width: 100%; margin-top: 14px; }
.qend { text-align: center; animation: pop .4s; }
@keyframes pop { 0% { transform: scale(.9); opacity: .4; } 60% { transform: scale(1.04); } 100% { transform: none; opacity: 1; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---------- Εικόνες σε ερωτήσεις ---------- */
.q-pic { width: 130px; height: auto; max-width: 100%; }
.q-pic.wide { width: 260px; }
.q-pic.shape polygon, .q-pic.shape rect, .q-pic.shape circle { fill: color-mix(in srgb, var(--uc) 60%, #fff); stroke: var(--ink); stroke-width: 3; }
.q-pic.net rect { fill: #ffd93d; stroke: var(--ink); stroke-width: 2; }
.q-pic.lines line { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.q-pic.lines .rm { fill: none; stroke: var(--bad); stroke-width: 2.5; }
.q-emoji { font-size: 1.9rem; text-align: center; letter-spacing: 2px; line-height: 1.4; }
.q-groups { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.q-groups span { background: var(--bg2); border-radius: 14px; padding: 4px 8px; font-size: 1.3rem; border: 2px dashed var(--line); }
.q-table { border-collapse: collapse; margin: 8px auto; font-size: .92rem; background: var(--card); border-radius: 12px; overflow: hidden; }
.q-table th, .q-table td { border: 1.5px solid var(--line); padding: 5px 8px; text-align: center; }
.q-table th { background: color-mix(in srgb, var(--uc) 15%, var(--card)); }
.q-table td:first-child { font-weight: 700; }
.story-html { overflow-x: auto; }
.gs-on { fill: #4d96ff; stroke: #fff; stroke-width: 1.5; }
.gs-off { fill: var(--bg2); stroke: var(--line); stroke-width: 1; }

/* ---------- Κλάσματα (σύμβολο) ---------- */
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 .15em; font-weight: 800; }
.frac > span:first-child { border-bottom: 2.5px solid currentColor; padding: 0 .2em; }
.frac > span { padding: 0 .15em; }
.frac.lg { font-size: 1.45rem; } .frac.xl { font-size: 2.4rem; }
.frac-big { text-align: center; font-size: 1.3rem; margin: 6px 0; }
.frac-legend { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: .92rem; }
.frac-legend > div { background: var(--bg2); border-radius: 12px; padding: 6px 10px; }
.frac-lab .words, .expand .words { font-style: italic; color: var(--muted); }
.expand { text-align: center; font-size: 1.1rem; margin: 10px 0; line-height: 1.7; }
.expand .ca { color: #e0532a; font-weight: 800; } .expand .cb { color: #2f76e0; font-weight: 800; } .expand .cc { color: #1f9a57; font-weight: 800; } .expand .cd { color: #a34de0; font-weight: 800; }
.big-num { font-family: var(--display); font-size: 2.6rem; font-weight: 700; text-align: center; color: var(--uc); filter: brightness(.9); }

/* ---------- Χειριστήρια ---------- */
.stepper { display: inline-flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: 99px; padding: 4px 6px 4px 12px; }
.stepper-label { font-weight: 700; font-size: .9rem; }
.stepper-val { min-width: 2.2em; text-align: center; font-size: 1.2rem; }
.slider { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; margin: 8px 0; font-weight: 700; font-size: .95rem; }
.slider b { color: var(--uc); filter: brightness(.9); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 9px; background: var(--line); }
input[type=range]::-moz-range-track { height: 12px; border-radius: 9px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--uc); border: 4px solid #fff; margin-top: -9px; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--uc); border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.tabs { gap: 6px; }
.palette { gap: 10px; justify-content: center; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--line); }
.swatch.on { box-shadow: 0 0 0 4px var(--ink); transform: scale(1.1); }
.chip-btn { background: var(--card); border: 3px solid var(--line); border-radius: 99px; padding: 10px 18px; font-weight: 800; font-size: 1.1rem; }
.chip-btn.ok { border-color: var(--ok); background: var(--ok-bg); } .chip-btn.bad { border-color: var(--bad); background: var(--bad-bg); }

/* ---------- Κυβάκια αξίας θέσης ---------- */
.pv-board { display: grid; gap: 8px; margin: 10px 0; }
.pv-board.cols-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.pv-board.cols-4 { grid-template-columns: 1.1fr 1.3fr 1fr 1fr; }
.pv-col { background: var(--bg2); border-radius: 16px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; border-top: 6px solid var(--c); }
.pv-one { --c: var(--one); } .pv-ten { --c: var(--ten); } .pv-hun { --c: var(--hun); } .pv-th { --c: var(--th); }
.pv-head { text-align: center; line-height: 1.1; }
.pv-head b { font-size: 1.3rem; color: var(--c); filter: brightness(.85); display: block; }
.pv-head small { font-size: .68rem; color: var(--muted); }
.pv-blocks { min-height: 120px; display: flex; align-items: flex-end; justify-content: center; width: 100%; }
.pile { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; align-items: flex-end; }
.pile-one { width: 50px; }
.pile-ten { max-width: 100%; flex-wrap: nowrap; gap: 2px; }
.pile-hun { flex-direction: column-reverse; flex-wrap: nowrap; }
.pile-hun .blk-hun + .blk-hun { margin-bottom: -50px; }
.pile-th { flex-direction: column-reverse; flex-wrap: nowrap; }
.pile-th .blk-th + .blk-th { margin-bottom: -38px; }
.blk { display: block; animation: drop .3s ease-out; }
@keyframes drop { from { transform: translateY(-18px); opacity: 0; } }
.blk-one { width: 13px; height: 13px; background: var(--one); border-radius: 3px; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .15); }
.blk-ten { width: 11px; height: 112px; border-radius: 3px; background: repeating-linear-gradient(to bottom, var(--ten) 0 10px, rgba(0, 0, 0, .18) 10px 11.2px); }
.blk-hun { width: 62px; height: 62px; border-radius: 4px; background-color: var(--hun); background-image: linear-gradient(rgba(0, 0, 0, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .14) 1px, transparent 1px); background-size: 6.2px 6.2px; transform: skewX(-12deg); box-shadow: 2px 2px 0 rgba(0, 0, 0, .15); }
.blk-th { width: 54px; height: 50px; background: var(--th); border-radius: 5px; position: relative; box-shadow: inset -12px 0 0 rgba(0, 0, 0, .15), inset 0 10px 0 rgba(255, 255, 255, .25); background-image: linear-gradient(rgba(0, 0, 0, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .12) 1px, transparent 1px); background-size: 5.4px 5px; }
.pv-count { font-size: 1.6rem; font-weight: 800; font-family: var(--display); }
.pv-btns { display: flex; gap: 6px; }
.q-blocks { display: flex; gap: 6px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.q-blocks .blk-ten { height: 80px; width: 9px; background: repeating-linear-gradient(to bottom, var(--ten) 0 7px, rgba(0, 0, 0, .18) 7px 8px); }
.q-ones { display: flex; flex-wrap: wrap; width: 50px; gap: 3px; }

/* ---------- Μετρητής ---------- */
.odo { display: flex; gap: 6px; justify-content: center; background: #1d1b2e; padding: 10px; border-radius: 14px; width: max-content; margin: 8px auto 0; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .6); }
.odo-wheel { width: 44px; height: 60px; overflow: hidden; border-radius: 8px; background: linear-gradient(#ddd, #fff 30%, #fff 70%, #ccc); position: relative; }
.odo-wheel.moved { box-shadow: 0 0 0 3px #ffd93d; }
.odo-strip { display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); height: 1000%; }
.odo-strip span { height: 10%; display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #1d1b2e; font-family: var(--display); }
.odo-labels { display: flex; gap: 6px; justify-content: center; margin: 4px 0; }
.odo-labels span { width: 44px; text-align: center; font-weight: 800; color: var(--muted); }

/* ---------- Ρωμαϊκοί / Αρχαίοι ---------- */
.roman-disp { font-family: Georgia, 'Times New Roman', serif; font-size: 2.4rem; text-align: center; letter-spacing: 3px; color: #b3261e; word-break: break-all; min-height: 1.4em; }
.roman-disp.greek, .gk { font-family: 'Comfortaa', Georgia, serif; color: #7b3fbf; font-weight: 700; letter-spacing: 1px; }
.sym-btn { width: 56px; height: 62px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--line); }
.sym-btn b { font-family: Georgia, serif; font-size: 1.5rem; color: #b3261e; }
.sym-btn small { font-size: .7rem; color: var(--muted); }
.gk-table { display: flex; flex-direction: column; gap: 6px; }
.gk-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.gk-row > small { width: 100%; font-weight: 800; color: var(--muted); }
.gk-cell { width: 50px; height: 50px; border-radius: 10px; border: 2px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.gk-cell b { font-size: 1.15rem; color: #7b3fbf; }
.gk-cell small { font-size: .65rem; color: var(--muted); }

/* ---------- Μαγικό ραβδί ---------- */
.witch { font-size: 3rem; transition: transform .3s; }
.witch.zap { animation: zap .6s; }
@keyframes zap { 30% { transform: rotate(-20deg) scale(1.2); filter: drop-shadow(0 0 12px #ffd93d); } }
.pv-table { display: flex; flex-direction: column; gap: 4px; }
.pv-tr { display: grid; grid-template-columns: repeat(5, 42px); gap: 4px; }
.pv-tr span { height: 46px; display: grid; place-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 10px; font-size: 1.5rem; font-weight: 800; font-family: var(--display); }
.pv-tr.head span { height: 26px; font-size: .8rem; background: transparent; border: 0; color: var(--muted); }
.pv-tr span.empty { background: transparent; border-style: dashed; }
.pv-tr.left span:not(.empty) { animation: slideL .5s; }
.pv-tr.right span:not(.empty) { animation: slideR .5s; }
@keyframes slideL { from { transform: translateX(46px); opacity: .3; } }
@keyframes slideR { from { transform: translateX(-46px); opacity: .3; } }

/* ---------- Κάρτες αριθμών ---------- */
.cg-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.cg-row > b { width: 80px; }
.cg-cards { display: flex; gap: 4px; }
.card-mini { width: 34px; height: 46px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.card-mini.red { background: #ef4444; } .card-mini.blue { background: #3b82f6; } .card-mini.yellow { background: #f7b801; color: #3a2a00; } .card-mini.green { background: #22a45d; }
.cg-val { font-weight: 800; font-size: 1.1rem; }

/* ---------- Κάθετες πράξεις ---------- */
.colop { display: flex; flex-direction: column; align-items: center; margin: 10px auto; font-family: var(--display); }
.co-row { display: grid; grid-template-columns: repeat(var(--cols), 44px); }
.co-cell { height: 48px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; position: relative; border-radius: 10px; }
.co-cell.sign { color: var(--uc); filter: brightness(.9); }
.co-cell.comma { width: 16px; font-size: 1.8rem; }
.co-row .co-cell.comma { justify-self: center; }
.co-cell.hl { background: color-mix(in srgb, #ffd93d 40%, transparent); }
.co-row.carries .co-cell { height: 30px; font-size: 1rem; }
.co-row.small .co-cell { font-size: 1rem; height: 26px; color: var(--bad); }
.carry-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bad); color: var(--bad); font-style: normal; font-size: .95rem; font-weight: 800; animation: pop .3s; }
.carry-dot.sub { position: absolute; left: -4px; top: 0; width: 20px; height: 20px; font-size: .8rem; }
.plus10 { color: var(--bad); font-size: .9rem; margin-right: 1px; vertical-align: top; }
.co-line { height: 3px; background: var(--ink); width: calc(var(--cols) * 44px); border-radius: 2px; margin: 2px 0; }
.colop .co-line { width: 100%; max-width: calc(var(--cols, 4) * 44px); }
.co-cell.res { color: var(--ok); animation: pop .3s; }
.co-row.total .co-cell { color: var(--brand); }
.co-in { width: 40px; height: 44px; text-align: center; font-size: 1.6rem; font-weight: 800; border-radius: 10px; border: 3px solid var(--line); background: var(--card); padding: 0; font-family: var(--display); }
.co-in.ok { border-color: var(--ok); background: var(--ok-bg); } .co-in.bad { border-color: var(--bad); background: var(--bad-bg); }
.lm .co-row { grid-template-columns: repeat(var(--cols), 40px); }
@media (max-width: 380px) { .co-row { grid-template-columns: repeat(var(--cols), 36px); } .co-cell { font-size: 1.5rem; } .co-in { width: 34px; } }

/* ---------- Αριθμογραμμή ---------- */
.jumpline { width: 100%; max-width: 520px; display: block; margin: 6px auto; overflow: visible; }
.nl-axis { stroke: var(--ink); stroke-width: 2.5; }
.nl-tick { stroke: var(--ink); stroke-width: 2; }
.nl-tick.hl { stroke: var(--uc); stroke-width: 3.5; }
.nl-num { font-size: 11px; text-anchor: middle; fill: var(--muted); font-weight: 700; font-family: var(--font); }
.nl-num.end { fill: var(--ink); font-size: 13px; font-weight: 800; }
.nl-jump { fill: none; stroke-width: 3; stroke-linecap: round; animation: dash .6s ease-out; stroke-dasharray: 400; }
.nl-jump.up { stroke: #22a45d; } .nl-jump.down { stroke: #e5484d; }
@keyframes dash { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.nl-lbl { font-size: 13px; font-weight: 800; text-anchor: middle; fill: var(--ink); font-family: var(--font); }
.nl-band { fill: #ffd93d; opacity: .6; }
.nl-marker { fill: var(--bad); }
.pop { animation: pop .4s; color: var(--ok); }

/* ---------- Ομάδες & προπαίδεια ---------- */
.groups { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.group-box { background: var(--bg2); border: 2px dashed color-mix(in srgb, var(--uc) 45%, transparent); border-radius: 14px; padding: 5px 7px; font-size: 1.25rem; display: flex; flex-wrap: wrap; max-width: 150px; justify-content: center; animation: pop .35s both; }
.group-box.page { flex-direction: row; align-items: flex-start; min-width: 90px; min-height: 60px; position: relative; padding-top: 18px; }
.group-box.page small { position: absolute; top: 2px; left: 8px; font-size: .7rem; color: var(--muted); }
.tt { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin: 10px 0; }
.tt-h { display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--muted); aspect-ratio: 1; }
.tt-h.focus { color: var(--uc); filter: brightness(.85); }
.tt-c { aspect-ratio: 1; border: 0; border-radius: 7px; background: var(--bg2); font-weight: 700; font-size: clamp(.6rem, 2.6vw, .95rem); padding: 0; color: var(--ink); }
.tt-c.focus { background: color-mix(in srgb, var(--uc) 22%, var(--card)); }
.tt-c.line { background: color-mix(in srgb, #ffd93d 55%, var(--card)); }
.tt-c.sel { background: var(--uc); color: #fff; transform: scale(1.15); box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
.tt-c.hid { color: var(--muted); }
.tt-detail { text-align: center; }
.dots { display: inline-grid; gap: 4px; margin: 8px auto; padding: 8px; background: var(--bg2); border-radius: 12px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--uc); animation: pop .3s both; }
.dots i.alt { background: #ff9f45; }

/* ---------- Ορθογώνιο με τετραγωνάκια ---------- */
.agrid { display: grid; gap: 2px; margin: 12px auto; width: 100%; }
.agrid i { aspect-ratio: 1; border-radius: 3px; background: #ff9f45; transition: margin .3s; }
.agrid i.a { background: #ff8a5b; } .agrid i.b { background: #6fa8ff; } .agrid i.c { background: #58c98a; } .agrid i.d { background: #c08bf0; }
.agrid i.edge { margin-right: 4px; } .agrid i.edge-b { margin-bottom: 4px; }
.agrid.cut-rows i.gap-b { margin-bottom: 6px; } .agrid.cut-cols i.gap-r { margin-right: 6px; }
.agrid:not(.cut-rows):not(.cut-cols) i.a:only-child { background: #ff8a5b; }

/* ---------- Ελληνικός πολλαπλασιασμός ---------- */
.gm-table { display: grid; gap: 4px; margin: 12px auto; max-width: 480px; }
.gm-h { display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; color: var(--uc); filter: brightness(.85); }
.gm-cell { background: color-mix(in srgb, var(--uc) 14%, var(--card)); border: 2px solid color-mix(in srgb, var(--uc) 40%, transparent); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; gap: 3px; }
.gm-cell small { font-weight: 700; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.gm-in { width: 100%; max-width: 4.6em; text-align: center; font-weight: 800; font-size: 1.1rem; border-radius: 10px; border: 2px solid var(--line); background: var(--card); padding: 4px; }
.gm-in.ok { border-color: var(--ok); background: var(--ok-bg); } .gm-in.bad { border-color: var(--bad); background: var(--bad-bg); }

/* ---------- Διαίρεση ---------- */
.divlay { display: inline-grid; grid-template-columns: auto auto; font-family: var(--display); font-size: 1.6rem; font-weight: 700; margin: 8px; }
.dl-a { padding: 2px 12px 2px 6px; text-align: right; }
.dl-b { padding: 2px 12px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.dl-r { padding: 4px 12px 2px 6px; text-align: right; }
.dl-q { padding: 4px 12px; border-left: 3px solid var(--ink); }
.circ { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; border: 3px solid var(--ok); border-radius: 50%; font-style: normal; padding: 0 3px; }
.circ.red { border-color: var(--bad); }
.legend { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.legend .circ { width: 1.2em; min-width: 0; height: 1.2em; }
.share-stage { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; min-height: 80px; }
.kid { background: var(--bg2); border-radius: 16px; padding: 6px; min-width: 64px; display: flex; flex-direction: column; align-items: center; }
.kid-face { font-size: 1.8rem; }
.kid-pile { display: flex; flex-wrap: wrap; max-width: 76px; justify-content: center; font-size: 1rem; line-height: 1.05; }
.center-pile { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; font-size: 1.1rem; background: color-mix(in srgb, #ffd93d 25%, transparent); border-radius: 14px; padding: 6px; min-height: 36px; }
.center-pile:empty { display: none; }
.itm { animation: pop .25s; display: inline-block; }
.bar { position: relative; height: 30px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #6fa8ff; transition: width .3s; border-radius: 99px; }
.bar i.full { background: var(--ok); } .bar i.over { background: var(--bad); }
.bar span { position: relative; display: block; text-align: center; font-weight: 800; line-height: 30px; }
.fam { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fam-tri { position: relative; width: 170px; height: 140px; background: color-mix(in srgb, var(--uc) 16%, var(--card)); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.fam-tri b { position: absolute; font-size: 1.5rem; font-family: var(--display); }
.fam-tri .top { left: 50%; top: 34px; transform: translateX(-50%); color: var(--bad); }
.fam-tri .l { left: 36px; bottom: 12px; } .fam-tri .r { right: 36px; bottom: 12px; }
.fam-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fam-facts span { background: var(--bg2); border-radius: 12px; padding: 6px 12px; font-weight: 800; font-size: 1.1rem; text-align: center; animation: pop .4s both; }

/* ---------- Προβλήματα ---------- */
.prob-head { display: flex; align-items: center; gap: 10px; }
.prob-emoji { font-size: 2rem; }
.prob-text { font-size: 1.08rem; background: var(--bg2); border-radius: 14px; padding: 10px 14px; }
.prob-text mark { background: #ffd93d; color: #2b2350; border-radius: 6px; padding: 0 3px; font-weight: 800; }
.prob-part { border-top: 2px dashed var(--line); padding-top: 10px; margin-top: 10px; animation: pop .35s; }
.prob-q { font-weight: 800; margin-bottom: 6px; }
.op-btn { width: 56px; height: 56px; border-radius: 16px; border: 3px solid var(--line); background: var(--card); font-size: 1.7rem; font-weight: 800; }
.op-btn.ok { border-color: var(--ok); background: var(--ok-bg); } .op-btn.bad { border-color: var(--bad); background: var(--bad-bg); }
.expr { font-weight: 800; font-size: 1.15rem; }

/* ---------- Γεωμετρία ---------- */
.geo-svg { width: 100%; max-width: 420px; display: block; margin: 8px auto; }
.frame-fill { fill: color-mix(in srgb, var(--uc) 14%, transparent); }
.frame-strip { stroke-width: 12; stroke-linecap: round; }
.frame-strip.s1 { stroke: #ff9f45; } .frame-strip.s2 { stroke: #4d96ff; }
.bolt { fill: #9aa0a6; stroke: #555; stroke-width: 2; }
.right-mark { fill: none; stroke: var(--bad); stroke-width: 2.5; }
.shape-name { color: var(--uc); filter: brightness(.85); font-size: 1.15rem; }
.hunt { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.hunt-btn { aspect-ratio: 1; background: var(--bg2); border: 3px solid transparent; border-radius: 16px; padding: 6px; }
.hunt-btn.ok { border-color: var(--ok); background: var(--ok-bg); } .hunt-btn.bad { border-color: var(--bad); animation: shake .35s; }
.hunt-item { width: 100%; height: 100%; }
.stage3d { height: 250px; perspective: 800px; display: grid; place-items: center; touch-action: none; cursor: grab; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--uc) 16%, transparent), transparent 60%); border-radius: 18px; }
.obj3d { position: relative; width: 0; height: 0; transform-style: preserve-3d; }
.face { position: absolute; left: 0; top: 0; border: 2px solid rgba(0, 0, 0, .35); backface-visibility: visible; }
.face.c { background: rgba(255, 159, 69, .85); } .face.p { background: rgba(77, 150, 255, .82); }
.face.front { filter: brightness(1.05); } .face.top { filter: brightness(1.15); } .face.right { filter: brightness(.9); }
.face.tri { background: rgba(247, 184, 1, .85); clip-path: polygon(50% 0, 100% 100%, 0 100%); border: 0; }
.face.bottom:not(.c):not(.p) { background: rgba(214, 150, 0, .9); }
.solid-svg { width: 180px; height: 180px; animation: bob 4s ease-in-out infinite; }
.net-scene { height: 300px; perspective: 900px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--uc) 14%, transparent), transparent 65%); border-radius: 18px; }
.net-wrap { position: relative; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(52deg) rotateZ(-28deg); }
.nface { position: absolute; transform-style: preserve-3d; border: 2px solid rgba(0, 0, 0, .4); transition: transform .08s linear; }
.nface.tri { border: 0; }
.compass-paper { background: var(--card); border-radius: 16px; }
.grid-paper { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; border-radius: 14px; }
.c-line { fill: none; stroke: var(--brand); stroke-width: 3; }
.c-line.drawing, .c-petal.drawing, .c-ring.drawing { transition: stroke-dashoffset 1.2s ease-in-out; }
.c-petal { fill: rgba(255, 217, 61, .35); stroke: #e09a00; stroke-width: 2.5; }
.c-ring { fill: none; stroke-width: 6; }
.c-radius { stroke: var(--bad); stroke-width: 2.5; stroke-dasharray: 5 4; }
.c-center { fill: var(--ink); }
.c-lbl { font-size: 13px; font-weight: 800; fill: var(--ink); text-anchor: middle; font-family: var(--font); }
.ra-line { stroke-width: 5; stroke-linecap: round; }
.ra-line.a { stroke: var(--blue); } .ra-line.b { stroke: var(--bad); }
.set-square { fill: rgba(247, 184, 1, .28); stroke: #c48f00; stroke-width: 2; }
.angle-arc { fill: none; stroke: var(--muted); stroke-width: 2; }
.tangram { width: 100%; max-width: 420px; display: block; margin: 0 auto; touch-action: none; background: var(--bg2); border-radius: 18px; }
.tg-target { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 8 6; }
.tg-piece { stroke: #fff; stroke-width: 2; cursor: grab; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .2)); }
.mirror-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; max-width: 400px; margin: 10px auto; }
.mg-cell { aspect-ratio: 1; border: 0; border-radius: 4px; background: var(--bg2); padding: 0; }
.mg-cell.axis-r { box-shadow: 3px 0 0 var(--bad); }
.axes-svg { max-width: 260px; }
.ax-shape > * { fill: color-mix(in srgb, #4d96ff 30%, transparent); stroke: var(--ink); stroke-width: 3; }
.ax-line { stroke: var(--muted); stroke-width: 3; stroke-dasharray: 6 5; }
.ax-hit { stroke: transparent; stroke-width: 22; cursor: pointer; }
.ax-cand.ok .ax-line { stroke: var(--ok); stroke-dasharray: none; stroke-width: 4; }
.ax-cand.bad .ax-line { stroke: var(--bad); opacity: .45; }
.tile-bg { fill: #fff; }
.tile { stroke: #fff; stroke-width: 2; cursor: pointer; }
.area-grid { display: grid; gap: 2px; max-width: 460px; margin: 10px auto; touch-action: none; user-select: none; }
.ag-cell { aspect-ratio: 1; background: var(--bg2); border-radius: 3px; border: 1px solid var(--line); }
.ag-cell.on { background: #58c98a; border-color: #2f9a5f; }
.beads { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 14px; background: linear-gradient(transparent 46%, #a88 46%, #a88 54%, transparent 54%); margin: 8px 0; }
.bead { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .15); box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .12), inset 3px 3px 0 rgba(255, 255, 255, .4); padding: 0; }
.bead.empty { background: var(--card); border: 3px dashed var(--muted); }
.bead.bad { outline: 3px solid var(--bad); animation: shake .35s; }
.pascal { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pas-row { display: flex; gap: 4px; }
.pas-cell, .pas-in { width: 44px; height: 40px; display: grid; place-items: center; background: var(--bg2); border-radius: 10px; font-weight: 800; font-size: 1.1rem; }
.pas-in { border: 3px dashed var(--uc); text-align: center; background: var(--card); padding: 0; }
.pas-in.ok { border: 3px solid var(--ok); background: var(--ok-bg); } .pas-in.bad { border: 3px solid var(--bad); background: var(--bad-bg); }

/* ---------- Κλάσματα ---------- */
.frac-svg { width: 190px; height: auto; display: block; margin: 6px auto; }
.frac-svg.bar { width: 100%; max-width: 340px; }
.pz-crust { fill: #e8b56a; }
.part { fill: #fff6df; stroke: #c98a3a; stroke-width: 1.5; cursor: pointer; transition: fill .2s; }
.part.choc { fill: #f3e1cf; stroke: #7a4a22; stroke-width: 2; }
.four-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fw-card { background: var(--bg2); border-radius: 16px; padding: 10px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.fw-card h4 { margin: 0 0 4px; font-size: .95rem; }
.fw-card p { font-size: .9rem; margin: 0; }
.fw-card .frac-svg { width: 110px; }
.fw-card .frac-svg.bar { width: 100%; }
.big-emoji { font-size: 2.4rem; }
.cut-anim { display: flex; gap: 3px; margin-top: 4px; }
.cut-anim span { width: 16px; height: 22px; background: #fff6df; border: 2px solid #c98a3a; border-radius: 4px; }
.cut-anim span.on { background: #ff6b6b; }
.candies { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 1.8rem; margin: 8px 0; }
.candy { background: color-mix(in srgb, var(--c) 30%, transparent); border-radius: 50%; padding: 2px; }
.kid-tag { color: #fff; font-weight: 800; border-radius: 99px; padding: 4px 12px; }
.eq-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; background: var(--bg2); border-radius: 16px; padding: 8px; margin: 8px 0; }
.eq-row .frac-svg { flex: 1 1 200px; margin: 0; }
.eq-row.pz .frac-svg { flex: 0 0 120px; width: 120px; }
.eq-frac { font-size: 1.1rem; min-width: 3em; text-align: center; }
.clock-svg { width: 220px; max-width: 100%; display: block; margin: 0 auto; }
.clock-svg.small { width: 120px; }
.clk-face { fill: var(--card); stroke: var(--ink); stroke-width: 5; }
.clk-sec { fill: transparent; stroke: var(--line); stroke-width: 1; }
.clk-sec.on { fill: rgba(255, 107, 107, .45); }
.clk-num { font-size: 16px; font-weight: 800; text-anchor: middle; fill: var(--ink); font-family: var(--font); }
.clk-tick { stroke: var(--muted); stroke-width: 1.5; }
.clk-hour { stroke: var(--ink); stroke-width: 8; stroke-linecap: round; }
.clk-min { stroke: var(--bad); stroke-width: 5; stroke-linecap: round; }
.clk-knob { fill: rgba(229, 72, 77, .25); }
.clk-pin { fill: var(--ink); }
.clock-drag { touch-action: none; cursor: pointer; }
.digital { font-family: 'Courier New', monospace; font-size: 2.2rem; font-weight: 800; text-align: center; background: #1d1b2e; color: #7dff9a; border-radius: 12px; width: max-content; margin: 8px auto; padding: 2px 16px; letter-spacing: 2px; }
.dgrid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; max-width: 320px; margin: 10px auto; touch-action: none; user-select: none; border: 3px solid var(--ink); padding: 2px; border-radius: 6px; }
.dg-cell { aspect-ratio: 1; background: var(--bg2); border-radius: 2px; }
.dg-cell.on { background: #ffd93d; }
.dec-table { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin: 12px 0; }
.dt-col { background: var(--bg2); border-radius: 10px; text-align: center; padding: 4px 2px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dt-col.dec { background: color-mix(in srgb, #4d96ff 16%, var(--card)); }
.dt-col:nth-child(3) { border-right: 5px solid var(--bad); }
.dt-col small { font-size: .62rem; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; }
.dt-v { font-size: .78rem; color: var(--muted); }
.dt-v .frac { font-size: .7rem; }
.dt-col b { font-size: 1.7rem; font-family: var(--display); min-height: 1.3em; }
.calc-screen { background: #1d1b2e; color: #eaffea; border-radius: 16px; padding: 12px 16px; text-align: right; margin: 10px 0; font-family: var(--display); }
.calc-q { font-size: 1.1rem; opacity: .85; }
.calc-a { font-size: 2.4rem; font-weight: 700; letter-spacing: 2px; }
.calc-a span { display: inline-block; animation: pop .3s both; }
.comma-pop { color: #ffd93d; transform: scale(1.4); }
.money-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 10px 0; }
.coin { border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 0; padding: 0; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .2), 0 2px 3px rgba(0, 0, 0, .25); color: #3b2a10; font-size: .78rem; }
.coin.c { width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, #f4b58a, #b86a3c); }
.coin.g { width: 46px; height: 46px; background: radial-gradient(circle at 35% 30%, #fff0a8, #d1a52c); }
.coin.e1 { width: 50px; height: 50px; background: radial-gradient(circle, #f2f2f2 0 42%, #d1a52c 44%); }
.coin.e2 { width: 54px; height: 54px; background: radial-gradient(circle, #f3cf55 0 42%, #cfd3d6 44%); }
.note { height: 42px; border-radius: 6px; border: 0; font-weight: 800; color: #fff; padding: 0 10px; box-shadow: 0 2px 3px rgba(0, 0, 0, .25); font-size: .9rem; }
.note.n5 { background: linear-gradient(135deg, #9aa3ab, #6f7880); width: 62px; }
.note.n10 { background: linear-gradient(135deg, #e5877a, #b85045); width: 66px; }
.note.n20 { background: linear-gradient(135deg, #7ea5e0, #3f6fb8); width: 70px; }
.purse { min-height: 70px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; background: color-mix(in srgb, #c98a3a 16%, var(--card)); border: 3px dashed #c98a3a; border-radius: 18px; padding: 10px; }

/* ---------- Μετρήσεις ---------- */
.height-svg { max-width: 260px; }
.meter-stick { fill: #fff3c4; stroke: #c48f00; }
.meter-one { fill: rgba(77, 150, 255, .35); }
.ms-tick { stroke: #7a5a00; stroke-width: 1.5; }
.ms-num { font-size: 10px; fill: var(--ink); font-weight: 700; }
.ms-mark { stroke: var(--bad); stroke-width: 2.5; stroke-dasharray: 5 3; }
.kid-emoji { text-anchor: middle; }
.ground { stroke: var(--muted); stroke-width: 3; }
.ruler-svg { width: 100%; display: block; margin: 6px auto; }
.rl-obj { fill: #a6e3a1; stroke: #3d8b37; stroke-width: 2; }
.rl-emoji { font-size: 16px; text-anchor: middle; }
.rl-body { fill: #ffe082; stroke: #c48f00; stroke-width: 2; }
.rl-tick { stroke: #3a2a00; stroke-width: 1.2; }
.rl-num { font-size: 12px; font-weight: 800; text-anchor: middle; fill: #3a2a00; }
.rl-end { stroke: var(--bad); stroke-width: 1.8; stroke-dasharray: 3 3; }
.rl-unit { font-size: 11px; fill: #3a2a00; font-weight: 700; }
.scale-svg { max-width: 360px; }
.sc-base { fill: #8b6b4a; } .sc-post { fill: #a0845c; } .sc-beam { fill: #6b5b95; } .sc-pin { fill: #ffd93d; stroke: #6b5b95; stroke-width: 3; }
.sc-str { stroke: var(--muted); stroke-width: 1.5; }
.sc-pan { fill: #cfd3d6; stroke: #7a8288; stroke-width: 2; }
.sc-item { font-size: 30px; text-anchor: middle; }
.sc-w { font-size: 14px; }
.elapsed .timeline { position: relative; height: 28px; background: var(--bg2); border-radius: 99px; margin: 26px 0 10px; }
.timeline i { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #6fa8ff, #58c98a); border-radius: 99px; }
.timeline span { position: absolute; top: -20px; transform: translateX(-50%); font-size: .75rem; color: var(--muted); font-weight: 700; }

/* ---------- Owl & κομφετί ---------- */
.owl { display: block; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

@media (max-width: 480px) {
  body { font-size: 16px; }
  main { padding: 12px 16px 60px; }
  .hero { flex-direction: column; text-align: center; }
  .hero-owl { width: 80px; } .hero-owl .owl { width: 80px; height: 80px; }
  .lh-top h1 { font-size: 1.2rem; }
  .lh-icon { width: 52px; height: 52px; font-size: 2rem; }
  .card { padding: 14px; }
  .unit-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .unit-card { padding: 12px; }
  .pv-blocks { min-height: 100px; }
  .blk-hun { width: 48px; height: 48px; background-size: 4.8px 4.8px; }
  .pile-hun .blk-hun + .blk-hun { margin-bottom: -38px; }
  .blk-ten { height: 90px; width: 8px; background: repeating-linear-gradient(to bottom, var(--ten) 0 8px, rgba(0, 0, 0, .18) 8px 9px); }
  .pile-one { width: 44px; }
  .blk-th { width: 42px; height: 40px; }
  .pile-th .blk-th + .blk-th { margin-bottom: -31px; }
  .four-ways { grid-template-columns: 1fr 1fr; }
  .lesson-nav .btn { max-width: 100%; width: 100%; }
  .choices.short .choice { font-size: 1rem; padding: 12px 8px; }
  .big-num { font-size: 2.1rem; }
  .hunt { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.q-table.tight { font-size: .8rem; }
.q-table.tight th, .q-table.tight td { padding: 4px 5px; }
main:focus, main:focus-visible { outline: none; }
.cta-owl .owl { margin: 0 auto; }
