/* =====================================================================
   allez · Παιχνίδι Γαλλοφωνίας
   Χρώματα και τυπογραφία από το σύστημα σχεδίασης «allez».
   ===================================================================== */

:root {
  --navy: #13235B;      /* βασικό: φόντα κεφαλίδας, τίτλοι, κουμπιά */
  --navy-2: #22336E;    /* επιφάνειες πάνω σε navy */
  --navy-3: #3A4A85;    /* γραμμές πάνω σε navy */
  --yellow: #FFC93C;    /* τόνος: πύργος, κύριο κουμπί στον προβολέα */
  --blue: #3D6BFF;      /* γαλλικό μπλε: πρόοδος */
  --red: #E5384A;       /* γαλλικό κόκκινο: λάθος απάντηση */
  --red-ink: #B3283A;   /* κόκκινο για κείμενο σε λευκό */
  --green: #187F55;     /* σωστή απάντηση */
  --page: #F2F5FC;
  --card: #FFFFFF;
  --muted: #4A5578;
  --ondark: #E3E8F8;
  --ondark-muted: #C9D3F2;
  --line: #D5DBEC;
  --idle: #5A6488;      /* αναπάντητες περιοχές του χάρτη */
  --hidden: #B4BBD0;    /* κρυμμένες περιοχές στο τέλος */

  --display: "Bricolage Grotesque", system-ui, sans-serif;  /* μόνο λατινικά */
  --sans: "Commissioner", system-ui, sans-serif;            /* όλο το ελληνικό κείμενο */

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--navy);
  font: 400 16px/1.5 var(--sans);
}
img, svg, video { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: .875rem; font-weight: 400; margin: .3rem 0 0; }
.eyebrow { font-size: .875rem; color: var(--muted); margin: 0 0 .4rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.code { font-variant-numeric: tabular-nums; letter-spacing: .04em; }

/* ---------- Πλαίσιο δημόσιων σελίδων ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { padding-top: 32px; padding-bottom: 56px; }
.sitehead { background: var(--navy); color: #fff; }
.sitehead__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.sitehead__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.sitehead__sub { font-size: .875rem; font-weight: 600; color: var(--ondark-muted); padding-left: 14px; border-left: 1px solid var(--navy-3); }
.sitehead__nav { display: flex; gap: 18px; }
.sitehead__nav a { color: #fff; font-weight: 600; text-decoration: none; padding: 10px 0; }
.sitehead__nav a:hover { color: var(--yellow); }
.sitefoot { border-top: 1px solid var(--line); background: var(--card); padding: 28px 0; font-size: .875rem; color: var(--muted); }
.sitefoot__in { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-start; justify-content: space-between; }
.sitefoot strong { color: var(--navy); }
.sitefoot a { margin-right: 12px; }
.tricolor { display: flex; width: 120px; height: 6px; border-radius: 3px; overflow: hidden; flex-basis: 100%; }
.tricolor span { flex: 1; }
.footline { flex-basis: 100%; height: 6px; border-radius: 3px; background: var(--navy); }
.tricolor span:nth-child(1) { background: var(--blue); }
.tricolor span:nth-child(2) { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tricolor span:nth-child(3) { background: var(--red); }
@media (max-width: 640px) { .sitehead__sub { display: none; } }

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--card); color: var(--navy);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--primary:hover { background: #0C1940; color: #fff; }
.btn--accent { background: var(--yellow); border-color: var(--yellow); color: var(--navy); font-weight: 700; }
.btn--accent:hover { background: #FFB800; border-color: #FFB800; }
.btn--ghost { background: transparent; }
.btn--link { border-color: transparent; background: transparent; text-decoration: underline; padding: 0 8px; }
.btn--danger { border-color: var(--red-ink); color: var(--red-ink); background: #fff; }
.btn--sm { min-height: 44px; padding: 0 12px; font-size: .875rem; border-radius: var(--r-sm); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.125rem; }
.btn--onDark { background: transparent; border: 2px solid var(--idle); color: #fff; }
.btn--onDark:hover { border-color: #fff; color: #fff; }
.btn--outlineAccent { background: transparent; border: 2px solid var(--yellow); color: var(--yellow); }
.btn--outlineAccent:hover { color: var(--navy); background: var(--yellow); }
form.inline { display: inline; }

/* ---------- Φόρμες ---------- */
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field > label { font-weight: 600; font-size: .9375rem; }
input[type=text], input:not([type]), input[type=email], input[type=url], input[type=number],
input[type=search], input[type=password], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--navy); font: 400 1rem/1.4 var(--sans);
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid rgba(61,107,255,.25); }
input[type=file] { font: inherit; font-size: .875rem; }
.input--code { font-size: 1.4rem; letter-spacing: .08em; text-transform: uppercase; max-width: 260px; }
.checkbox, .radio { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 16px; cursor: pointer; }
.checkbox input, .radio input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid2--tight { gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- Κάρτες, ειδοποιήσεις, πίνακες ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; }
.card--warn { border: 2px solid var(--yellow); }
.notice { border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--line); background: var(--card); }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice--error { border-color: var(--red-ink); background: #FDECEE; color: #7A1222; }
.notice--ok { border-color: var(--green); background: #E7F4EE; color: #0F5238; }
.notice--warn { border-color: #C99200; background: #FFF6DC; color: #5A4300; }
.notice--info { background: #E8EEFF; border-color: #BCCBFF; }
.notice--code { background: var(--navy); color: #fff; border: 0; text-align: center; padding: 24px; }
.bigcode { font: 800 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); letter-spacing: .05em; color: var(--yellow); margin: .3em 0; }
.notice--code strong { color: var(--yellow); }
.tablewrap { overflow-x: auto; margin-bottom: 24px; }
table.data { width: 100%; border-collapse: collapse; background: var(--card); font-size: .9375rem; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data thead th { font-size: .8125rem; color: var(--muted); font-weight: 600; background: var(--page); }
table.data td.clip { max-width: 420px; }
/* Λίστα ερωτήσεων: εκφώνηση έως 3 γραμμές, κουτάκια ηλικιακών ομάδων */
table.data--questions td { vertical-align: top; }
table.data--questions td.qbody { min-width: 220px; max-width: 460px; }
table.data--questions td.qbody span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; line-height: 1.4; }
table.data--questions th.grp, table.data--questions td.grp { padding-left: 6px; padding-right: 6px; white-space: nowrap; }
.grp__head, .grp__boxes { display: grid; grid-template-columns: repeat(5, 48px); column-gap: 2px; }
.grp__head abbr { text-decoration: none; font-size: .6875rem; overflow-wrap: anywhere; line-height: 1.15; text-align: center; white-space: normal; cursor: help; }
.grp__box { display: flex; justify-content: center; padding: 2px 0; cursor: pointer; }
.grp__box input { width: 18px; height: 18px; accent-color: var(--navy); cursor: pointer; }
.grp__boxes { border-radius: 6px; transition: background-color .3s; }
.grp__boxes.is-saving { opacity: .55; }
.grp__boxes.is-saved { background: #E3F4E8; }
.grp__boxes.is-error { background: #FBE3E3; }
tr.is-nogroup td.grp { background: #FFF6DB; }
table.data--questions td.actions { white-space: nowrap; }
table.data--questions td.actions .btn--link { display: block; width: fit-content; padding: 4px 0 0; min-height: 0; }
table.data--questions th, table.data--questions td { padding-left: 8px; padding-right: 8px; }
.qlist.is-live .qlist__save { display: none; }
.qlist__save { margin-top: 14px; }
.grp-check { display: flex; flex-wrap: wrap; gap: 8px 16px; border: 0; padding: 0; margin: 0; }
.grp-check legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.grp-check label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.grp-check input { width: 18px; height: 18px; accent-color: var(--navy); }
table.data input[type=number] { max-width: 110px; }
.actions { white-space: nowrap; text-align: right; }
.actions > * { margin-left: 6px; vertical-align: middle; }
.badge { display: inline-block; font-size: .8125rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #E3E8F8; color: var(--navy); }
.badge--ok { background: #DDF0E7; color: #0F5238; }
.badge--accent { background: var(--yellow); color: var(--navy); }
.tag { font-size: .8125rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #E3E8F8; margin-left: 6px; }
.tag--ok { background: #DDF0E7; color: #0F5238; }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.pagehead h1 { margin: 0; }
.pagehead p { margin: 4px 0 0; }

/* ---------- Αρχική ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 16px 0 40px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero h1:has(+ .hero__tag) { margin-bottom: .2em; }
.hero__tag { font: 800 clamp(1.25rem, 2.4vw, 1.75rem)/1.25 var(--display); color: var(--red-ink, #C8102E); margin: 0 0 1.1rem; }
.lead { font-size: 1.15rem; line-height: 1.6; }
.hero__map svg { width: 100%; height: auto; }
.steps__list { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps h2, .rounds-info h2, .note h2 { text-align: center; }
.rounds-info h2 { margin-bottom: 16px; }
.steps__list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; counter-increment: s; }
.steps__list li::before { content: counter(s); font: 800 2rem/1 var(--display); color: var(--red); }
.steps__list span { color: var(--muted); }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 40px; }
.levelcard { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.levelcard__n { font: 800 3rem/1 var(--display); color: var(--yellow); }
.levelcard__l { color: var(--ondark-muted); margin-bottom: 8px; }
.note { max-width: 760px; margin-inline: auto; text-align: center; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__map { max-width: 360px; }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .steps__list, .levels { grid-template-columns: 1fr; } }

/* ---------- Εκπαιδευτικός ---------- */
.school__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.school__head h2 { margin: 0; }
.classes th[scope=row] { font-weight: 700; }
.dropdown { display: inline-block; position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(19,35,91,.12); min-width: 200px; text-align: left; }
.dropdown li a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; }
.dropdown li a:hover { background: var(--page); }

/* Αναζήτηση σχολείου */
.picklist { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.pick { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--navy); font: inherit; cursor: pointer; }
.pick:hover, .pick:focus-visible { border-color: var(--navy); background: var(--page); }
.pick span { font-size: .875rem; color: var(--muted); }
.schoolresults .muted { margin: 8px 0 16px; }
/* Νέο τμήμα: σχολείο → βαθμίδα → τμήμα */
.addsec h2 { margin-bottom: 4px; }
.addsec__form { max-width: 760px; display: flex; flex-direction: column; gap: 20px; margin-top: 12px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.step legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; color: var(--navy); margin-bottom: 10px; padding: 0; }
.step__n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9375rem; }
.step + .step { margin-top: 4px; }
.choices { display: flex; flex-direction: column; gap: 6px; }
.choices--results { max-height: 320px; overflow-y: auto; }
.choices--results:empty { display: none; }
.choices .muted { margin: 4px 0; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; cursor: pointer; }
.choice:hover { border-color: var(--navy-3); }
.choice.is-on { border: 2px solid var(--navy); background: var(--page); padding: 9px 13px; }
.choice__n { width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--page); border: 1px solid var(--line); color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.choice.is-on .choice__n { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input { width: 20px; height: 20px; flex: none; accent-color: var(--navy); margin: 0; }
.choice__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.choice small { color: var(--muted); font-size: .875rem; }
.choice--add strong { color: var(--blue-ink, var(--navy)); }
.choice--manual { border-style: dashed; }
.addsec__other { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--page); border-radius: var(--r-md); }
.addsec--mine .addsec__other { margin-left: 32px; }
.addsec__other .field { margin: 0; }
.searchrow { display: flex; gap: 8px; }
.searchrow input { flex: 1; }
.field--short { max-width: 460px; }
[hidden] { display: none !important; }
.school__n { display: inline-block; font-size: .8125rem; font-weight: 700; color: #fff; background: var(--navy); border-radius: 6px; padding: 3px 8px; margin-right: 6px; vertical-align: middle; }
.addsec__form > .btn--lg { align-self: flex-start; }
@media (max-width: 600px) { .addsec--mine .addsec__other { margin-left: 0; } }
.h2note { font-weight: 400; font-size: .9375rem; color: var(--muted); white-space: nowrap; }
.formnote { margin: -4px 0 14px; color: var(--navy); }
.input--caps { text-transform: uppercase; }
[hidden] { display: none !important; }

/* ---------- Ανασκόπηση γύρου, κείμενα ---------- */
.review { list-style: none; padding: 0; margin: 0; }
.review__q { font-weight: 600; font-size: 1.1rem; }
.review__n { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-size: .875rem; margin-right: 6px; }
.review__opts { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.review__opts li { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.review__opts li.is-correct { border: 2px solid var(--green); }
.review__opts li.is-wrong { border: 2px solid var(--red); }
.review__letter { font-weight: 700; margin-right: 6px; }
.review__exp { background: #FFF6DC; border-radius: var(--r-sm); padding: 10px 14px; margin: 0; }
.prose { max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.prose li { margin-bottom: .4em; }

/* ---------- Διαχείριση ---------- */
.is-admin { background: var(--page); }
.adminhead { background: var(--navy); color: #fff; }
.adminhead__in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; flex-wrap: wrap; }
.adminhead__brand { display: flex; align-items: center; gap: 14px; color: var(--ondark-muted); text-decoration: none; font-weight: 600; }
.adminhead__brand span { padding-left: 14px; border-left: 1px solid var(--navy-3); }
.adminhead__me { font-size: .875rem; color: var(--ondark); }
.adminhead__me a { color: #fff; }
.adminwrap { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px 24px 56px; max-width: 1440px; margin: 0 auto; }
.adminnav { flex: 1 1 190px; max-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.adminnav a { padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.adminnav a:hover { background: #E3E8F8; color: var(--navy); }
.adminnav a.is-active { background: var(--navy); color: #fff; }
.adminmain { flex: 999 1 560px; min-width: 0; }
@media (max-width: 720px) { .adminnav { max-width: none; flex-direction: row; flex-wrap: wrap; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tiles--small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
a.tile:hover { border-color: var(--navy); }
.tile__label { font-weight: 600; font-size: .9375rem; }
.tile__value { font: 800 2rem/1 var(--display); }
.tile__value small { font: 600 1rem var(--sans); color: var(--muted); }
.tile__note { font-size: .8125rem; color: var(--muted); }
.bar { display: block; height: 8px; border-radius: 4px; background: #E3E8F8; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); }
.bar--big { height: 14px; border-radius: 7px; margin: 8px 0 12px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8125rem; font-weight: 600; }
.filters select, .filters input { min-width: 150px; }
.qform .card h2 { margin-bottom: 12px; }
.optrow { display: flex; align-items: center; gap: 10px; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 10px; }
.optrow:has(input[type=radio]:checked) { border: 2px solid var(--green); padding: 7px 9px; }
.optrow input[type=radio] { width: 22px; height: 22px; accent-color: var(--green); flex: none; }
.optrow__letter { width: 36px; height: 36px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.mediabox { margin: 10px 0 4px; border: 1px dashed var(--muted); border-radius: var(--r-md); background: var(--page); }
.mediabox[open] { border-style: solid; border-color: var(--line); }
.mediabox summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: .9375rem; min-height: 44px; display: flex; align-items: center; }
.mediabox__in { padding: 4px 14px 14px; }
.mediabox__current { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 12px; }
.savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; position: sticky; bottom: 12px; box-shadow: 0 8px 24px rgba(19,35,91,.12); }
.savebar .hint { flex: 1 1 200px; margin: 0; }
.segmented { border: 0; padding: 0; margin: 0; display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; padding: 10px 16px; font-weight: 600; min-height: 44px; }
.segmented input:checked + span { background: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: -3px; }
.dangerzone { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.lead-sm { font-size: 1.05rem; max-width: 900px; }
.reveal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; margin-bottom: 12px; }
.reveal-card { margin-bottom: 0; }
.reveal-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.reveal-card__head h3 { margin: 0; font-size: 1.1rem; }
.reveal-card__body { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.reveal-card__preview { background: var(--navy); border-radius: var(--r-md); padding: 10px; max-width: 240px; justify-self: center; width: 100%; }
.reveal-card__preview .hint { color: var(--ondark-muted); font-size: .75rem; }
.reveal-card__remove { margin-top: -8px; }
.narrow { max-width: 420px; margin: 0 auto; padding: 12vh 20px 40px; }

/* ---------- Πολυμέσα ---------- */
.media { margin: 0; }
.media img { display: block; border-radius: var(--r-md); }
.media--stage img { max-height: 34vh; width: auto; }
.media--small img { max-height: 120px; width: auto; border-radius: var(--r-sm); }
.media video { display: block; max-height: 42vh; border-radius: var(--r-md); background: #000; }
.media--small video { max-height: 160px; }
.media .embed { position: relative; width: min(100%, 75vh); aspect-ratio: 16 / 9; }
.media .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--r-md); }
.media__credit { font-size: .75rem; margin: 6px 0 0; opacity: .8; }
.media--audio { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.audio-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--yellow); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.audio-btn svg { width: 40%; height: 40%; fill: var(--navy); }
.audio-btn .i-pause, .audio-btn.is-playing .i-play { display: none; }
.audio-btn.is-playing .i-pause { display: block; }
.audio-meta { display: flex; flex-direction: column; }
.audio-label { font-weight: 700; font-size: 1.1rem; }
.audio-count { font-size: .875rem; opacity: .8; }
.media--small.media--audio .audio-btn { width: 44px; height: 44px; }

/* ---------- Cartes postales de la Francophonie ---------- */
.carte { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; overflow: visible; filter: drop-shadow(0 2px 4px rgba(10, 20, 51, .28)); }
.carte__paper { fill: #FBF6EA; }
.carte__de { font: italic 700 13px/1 Georgia, "Times New Roman", serif; }
.carte__place { font-family: var(--display); font-weight: 800; letter-spacing: .01em; }
.carte.is-fresh { animation: carteland 1s cubic-bezier(.2, .9, .3, 1.2) both; transform-origin: 50% 100%; }
@keyframes carteland {
  0%   { transform: translateY(-70px) scale(2.6) rotate(-10deg); opacity: 0; }
  60%  { transform: translateY(3px) scale(1.08) rotate(3deg); opacity: 1; }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .carte.is-fresh { animation: none; } }
.cartes { display: grid; grid-template-columns: repeat(var(--n, 10), minmax(0, 1fr)); gap: clamp(4px, .5vw, 10px); width: 100%; }
.carte-slot { display: block; aspect-ratio: 3 / 2; border: 2px dashed rgba(255, 255, 255, .35); border-radius: 4px; }
.carte-slot.is-miss { border-color: rgba(255, 120, 120, .45); background: rgba(255, 90, 90, .08); }
.cartes--light .carte-slot { border-color: var(--line, #CCD3E0); }
.cardbox { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cardbox__count { margin: 0; font-size: clamp(16px, 1.3vw, 26px); color: var(--ondark); }
.cardbox__count strong { font: 800 clamp(26px, 2.2vw, 44px)/1 var(--display); color: var(--yellow); margin-right: 4px; }
.cardbox__count em { font-size: .85em; color: var(--ondark-muted); }
.cartes--end { max-width: 760px; gap: clamp(5px, .6vw, 10px); }

.cardcount { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; color: inherit; text-decoration: none; }
.cardcount .carte { width: 38px; }
.cardcount:hover span { text-decoration: underline; }
.cardtotal { display: flex; align-items: center; gap: 14px; margin: 0; background: var(--navy); color: #fff; border-radius: var(--r-md); padding: 10px 18px 10px 14px; }
.cardtotal strong { font: 800 1.8rem/1 var(--display); color: var(--yellow); }
.cardtotal small { color: var(--ondark-muted); }
.cardtotal__fan, .nation__cards { display: flex; flex: none; }
.cardtotal__fan .carte { width: 58px; }
.cardtotal__fan .carte + .carte { margin-left: -26px; transform: rotate(7deg) translateY(3px); }
.cardtotal__fan .carte:first-child { transform: rotate(-5deg); }
.nation { display: flex; align-items: center; justify-content: center; gap: 28px; background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 22px 28px; margin-bottom: 40px; }
.nation__cards .carte { width: 92px; }
.nation__cards .carte:nth-child(1) { transform: rotate(-8deg); }
.nation__cards .carte:nth-child(2) { margin-left: -46px; transform: translateY(-6px) rotate(2deg); }
.nation__cards .carte:nth-child(3) { margin-left: -46px; transform: rotate(9deg); }
.nation p { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; }
.nation__n { font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); color: var(--yellow); }
.nation__l { font-size: 1.1rem; color: var(--ondark); }

/* Άλμπουμ τμήματος */
.album { margin: 0 0 34px; }
.album__head { font-size: 1.25rem; margin: 0 0 12px; }
.album__head .muted { font-weight: 600; font-size: 1rem; }
.album__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.album__item { margin: 0; }
.album__item:nth-child(odd) .carte { transform: rotate(-1.2deg); }
.album__item:nth-child(even) .carte { transform: rotate(1deg); }
.album__credit { font-size: .75rem; color: var(--muted, #5A6378); margin-top: 6px; }
.album__slot { aspect-ratio: 3 / 2; border: 2px dashed var(--line, #CCD3E0); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center; color: var(--muted, #5A6378); font-size: .85rem; font-weight: 600; }
.album__slot small { font-weight: 400; font-size: .75rem; }
.album__no { font: 800 1.4rem/1 var(--display); color: var(--line, #CCD3E0); }
.is-miss .album__slot { border-color: #E8B4B4; background: #FDF4F4; }

/* Διαχείριση καρτών */
.cartes-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-bottom: 28px; }
.carte-card { display: flex; flex-direction: column; gap: 10px; }
.carte-card__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.carte-card__head h3 { margin: 0; font-size: 1rem; }
.carte-card .hint { margin: 0; }
.carte-card__form .field { margin-bottom: 10px; }
.carte-card__title { display: grid; grid-template-columns: 96px 1fr; gap: 8px; }
.carte-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cert__teacher { font-size: 12pt !important; }

/* ---------- Χάρτης ---------- */
/* Χάρτης της γαλλοφωνίας: επίπεδος, γκρι, με τη γαλλοφωνία σε μπλε */
.map { display: block; width: 100%; height: auto; border-radius: var(--r-md); }
.map__sea { fill: #EEF1F6; }
.map__land { fill: #C5CBD6; }
.map__zone, .map__dot { fill: var(--blue); stroke: #EEF1F6; stroke-width: .6; stroke-linejoin: round; }
.map__dot { stroke-width: 1.2; }
.map__home { fill: #6B7389; }
.map__start { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.map__homelabel { font: 700 16px/1 var(--sans); fill: var(--navy); paint-order: stroke; stroke: #EEF1F6; stroke-width: 4px; }
.map__lead { stroke: var(--navy); stroke-width: 1.4; stroke-opacity: .7; }
.map__route { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.map__route.is-new { stroke: #F2A900; stroke-width: 4.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: routedraw 1.2s .15s ease-out forwards; }
@keyframes routedraw { to { stroke-dashoffset: 0; } }
.map__pin circle { fill: #fff; stroke: #8E96AA; stroke-width: 2.5; }
.map__pin text { font: 700 15px/1 var(--sans); fill: #6B7389; text-anchor: middle; }
.map__pin.is-on circle { fill: var(--navy); stroke: #fff; }
.map__pin.is-on text { fill: #fff; }
.map__pin.is-miss circle { fill: #fff; stroke: var(--red); stroke-width: 3.5; }
.map__pin.is-miss text { fill: var(--red-ink); }
.map__pin.is-new circle { fill: var(--yellow); stroke: var(--navy); stroke-width: 2.5; }
.map__pin.is-new text { fill: var(--navy); }
@media (prefers-reduced-motion: reduce) { .map__route.is-new { animation: none; stroke-dashoffset: 0; } }
/* Τέλος: η κρυμμένη εικόνα μέσα από τον χάρτη */
.map__img--full { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.map.is-full .map__img--full { opacity: 1; }
.map--end, .map--cert { box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.map--cert { box-shadow: none; border: 1px solid var(--line); border-radius: 2mm; }
/* Στην αρχική σελίδα χωρίς πλαίσιο θάλασσας */
.hero__map .map__sea { fill: transparent; }
.hero__map .map__zone, .hero__map .map__dot, .hero__map .map__homelabel { stroke: #F2F5FC; }

/* =====================================================================
   Προβολέας: διαβάζεται από το τελευταίο θρανίο
   ===================================================================== */
body.is-stage { background: var(--navy); color: #fff; --band: linear-gradient(90deg, #3559D6, #5B83FF); --pad-x: clamp(16px, 3.4vw, 64px); }
/* Στις μπλε ζώνες: πιο φωτεινά περιγράμματα και γράμματα */
.stage__top .iconbtn, .stage__bar .btn--onDark { border-color: rgba(255,255,255,.75); }
.stage__top .phases li:not(.is-on), .stage__top .stage__count, .stage__bar .stage__hint { color: #fff; }
.stage { min-height: 100vh; display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 32px); padding: 0; }
/* Πάνω και κάτω ζώνη στο μπλε της Γαλλίας, με λεπτή λευκή γραμμή προς το κέντρο */
.stage__top, .stage__bar { background: var(--band); padding: clamp(10px, 1.8vh, 20px) var(--pad-x); position: relative; }
.stage__top::after, .stage__bar::before { content: ''; position: absolute; left: 0; right: 0; height: 4px;
  background: #fff; }
.stage__top::after { bottom: 0; }
.stage__bar::before { top: 0; }
.stage__main { padding: 0 var(--pad-x); }
.stage__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; height: clamp(60px, 8vh, 88px); padding-block: 0 !important; }
.stage__top .wordmark { height: clamp(32px, 4.6vh, 52px); width: auto; }
.phases { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; font-weight: 600; font-size: clamp(14px, 1.15vw, 22px); }
.phases li { padding: 8px 18px; border-radius: 999px; color: var(--ondark-muted); }
.phases li.is-on { background: var(--yellow); color: var(--navy); }
.stage__meta { display: flex; align-items: center; gap: 20px; }
.stage__count { font-weight: 600; font-size: clamp(16px, 1.45vw, 28px); color: var(--ondark-muted); }
.timer { display: inline-flex; align-items: center; gap: 10px; font: 800 clamp(24px, 2.4vw, 46px)/1 var(--display); font-variant-numeric: tabular-nums; }
.timer svg { width: .75em; height: .75em; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; }
.timer.is-low { color: var(--yellow); }
.timer.is-over .timer__val { font: 700 clamp(18px, 1.5vw, 28px)/1.1 var(--sans); color: var(--yellow); }
.iconbtn { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--idle); background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.iconbtn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.iconbtn:hover { border-color: #fff; }

.stage__main { flex: 1 1 auto; display: flex; gap: clamp(24px, 3.8vw, 72px); min-height: 0; }
.stage__q { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 28px); }
/* Ερώτηση και δεξιά στήλη ξεκινούν στην ίδια ευθεία, με άνετο περιθώριο από πάνω */
.stage:not(.stage--end) .stage__main { padding-top: clamp(8px, 6vh, 80px); }
.stage:not(.stage--end) .stage__map { justify-content: flex-start; }
/* Σε οθόνη υπολογιστή/προβολέα η μπάρα του εκπαιδευτικού μένει πάντα ορατή·
   ό,τι δεν χωρά κυλά μέσα στη στήλη της ερώτησης. */
@media (min-width: 901px) {
  .stage { height: 100vh; min-height: 0; }
  .stage__q { overflow-y: auto; scrollbar-width: thin; }
}
.q-body { margin: 0; font: 700 clamp(19px, 1.85vw, 36px)/1.2 var(--sans); }
.stage__map { flex: 0 0 clamp(300px, 50vw, 1100px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(10px, 1.6vh, 18px); }
.stage__world { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stage__station { margin: 0; font-size: clamp(14px, 1.05vw, 20px); color: var(--ondark-muted); text-align: center; }
.stage__station strong { color: #fff; }

/* Τέλος γύρου: η δεξιά στήλη στην ίδια θέση με το παιχνίδι (λεζάντα, κάρτες, χάρτης) */
.stage--end .stage__main { padding-top: clamp(8px, 6vh, 80px); }
.stage--end .stage__map--end { justify-content: flex-start; }
.stage--end .stage__q.end { justify-content: flex-start; }
.stage--end .end__title { line-height: .9; margin: -.08em 0 clamp(4px, 1.4vh, 18px); }
.stage__caption { margin: 0; text-align: center; font-weight: 700; font-size: clamp(16px, 1.35vw, 26px); }
.stage__caption span { font-weight: 400; color: var(--ondark-muted); }
.stage .media--stage { color: var(--ondark); }

.opts { display: flex; flex-direction: column; gap: clamp(10px, 1.5vh, 16px); }
.opt { display: flex; align-items: center; gap: clamp(14px, 1.5vw, 28px); width: 100%; text-align: left;
  background: #fff; color: var(--navy); border: 4px solid transparent; border-radius: var(--r-lg);
  padding: clamp(8px, 1.1vh, 14px) clamp(14px, 1.5vw, 28px); font: inherit; }
button.opt { cursor: pointer; }
button.opt:hover { border-color: var(--yellow); }
button.opt:focus-visible { outline: 0; border-color: var(--yellow); box-shadow: 0 0 0 6px rgba(255,201,60,.4); }
.opt__letter { width: clamp(38px, 2.8vw, 54px); height: clamp(38px, 2.8vw, 54px); flex: none; border-radius: var(--r-md);
  background: var(--navy); color: #fff; font: 700 clamp(20px, 1.7vw, 32px)/1 var(--sans); display: flex; align-items: center; justify-content: center; }
.opt__letter svg { width: 60%; height: 60%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.opt__text { flex: 1 1 auto; min-width: 0; font: 800 clamp(16px, 1.55vw, 31px)/1.15 var(--display); }
.opt .media--small img { max-height: clamp(70px, 12vh, 140px); }
.opt__tag { font-weight: 700; font-size: clamp(12px, .95vw, 19px); white-space: nowrap; flex: none; }
.opt--correct { background: var(--green); color: #fff; }
.opt--correct .opt__letter { background: #fff; color: var(--green); }
.opt--wrong { background: var(--navy-2); color: #fff; border-color: var(--red); }
.opt--wrong .opt__letter { background: var(--red); color: #fff; }
.opt--dim { background: var(--navy-2); color: var(--ondark-muted); }
.opt--dim .opt__letter { background: transparent; border: 2px solid var(--idle); color: var(--ondark-muted); }
form.is-sending .opt { opacity: .7; }

.saviez { background: var(--yellow); color: var(--navy); border-radius: var(--r-lg); padding: clamp(16px, 2.2vh, 26px) clamp(18px, 1.7vw, 32px); }
.saviez h2 { font: 800 clamp(24px, 2.1vw, 40px)/1.1 var(--display); margin: 0 0 8px; }
.saviez p { margin: 0; font: 600 clamp(15px, 1.2vw, 24px)/1.4 var(--sans); }
.saviez .media { margin-top: 12px; }
.saviez:has(.media) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38%); column-gap: 24px; align-items: start; }
.saviez:has(.media) h2 { grid-column: 1 / -1; }
.saviez .media { margin: 0; }
.saviez .media img, .saviez .media video { max-height: 26vh; max-width: 100%; }
/* Στην αποκάλυψη η εξήγηση χρειάζεται χώρο: μικραίνουν ερώτηση και επιλογές */
.stage--reveal .media--stage img { max-height: 20vh; }

.stage__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; height: clamp(68px, 9.5vh, 102px); padding-block: 0 !important; }
.stage__hint { margin: 0; font-size: clamp(15px, 1.15vw, 22px); color: var(--ondark-muted); }
.verdict { font: 800 clamp(22px, 1.9vw, 36px)/1 var(--display); color: #fff; }
.verdict--ok { color: var(--yellow); }
.stage__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stage__actions .btn { min-height: clamp(48px, 5.9vh, 64px); padding: 0 clamp(18px, 1.6vw, 32px); font-size: clamp(16px, 1.15vw, 22px); }

.end { justify-content: center; }
.stage--end .stage__q.end, .stage--end .stage__q.end:has(.saviez--image) { gap: clamp(14px, 2.6vh, 36px); }
.stage--end .end:has(.saviez--image) .end__title { font-size: clamp(46px, 4.6vw, 92px); }
.stage--end .end:has(.saviez--image) .end__n { font-size: clamp(64px, 5.8vw, 116px); }
.stage--end .end:has(.saviez--image) .end__msg { font-size: clamp(16px, 1.35vw, 26px); }
.stage--end .end:has(.saviez--image) .end__topics div { padding: 8px 18px; }
.end__title { font: 800 clamp(64px, 6.7vw, 128px)/.95 var(--display); letter-spacing: -.03em; color: var(--yellow); margin: 0; }
.end__who { font-weight: 700; font-size: clamp(20px, 1.9vw, 36px); margin: 0; }
.end__score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.end__lbl small { font-size: .75em; font-weight: 400; font-style: italic; color: var(--ondark-muted); }
.end__album { display: inline-block; margin-left: 6px; color: var(--yellow); font-weight: 700; white-space: nowrap; }
.end__n { font: 800 clamp(72px, 6.4vw, 124px)/.9 var(--display); }
.end__of { font: 800 clamp(40px, 3.3vw, 64px)/1 var(--display); color: var(--ondark-muted); }
.end__lbl { font-weight: 600; font-size: clamp(18px, 1.7vw, 32px); color: var(--ondark); }
.end__lbl--top { align-self: flex-start; margin-top: .35em; }
.end__msg { max-width: 820px; font-size: clamp(18px, 1.6vw, 30px); line-height: 1.4; color: var(--ondark); margin: 0; }
.end__topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 820px; }
.end__topics div { background: var(--navy-2); border-radius: var(--r-md); padding: 14px 20px; display: flex; flex-direction: column; }
.end__topics span { color: var(--ondark-muted); font-size: clamp(14px, 1.15vw, 22px); }
.saviez--image { padding: clamp(12px, 1.6vh, 20px) clamp(16px, 1.5vw, 28px); max-width: 820px; }
.saviez__kicker { margin: 0; font-weight: 700; font-size: clamp(13px, 1vw, 18px); text-transform: uppercase; letter-spacing: .06em; }
.saviez--image h2 { font: 800 clamp(22px, 1.9vw, 36px)/1.15 var(--display); margin: 2px 0 6px; }
.saviez--image p:not(.saviez__kicker) { font-size: clamp(16px, 1.3vw, 24px); }
.stage__map--end { gap: 12px; }
.stage__map--end .media__credit { color: var(--ondark-muted); margin: 0; text-align: center; }
.end__topics strong { font-size: clamp(22px, 1.9vw, 36px); }

@media (max-width: 900px) {
  .stage__top, .stage__bar { height: auto; padding-block: 10px !important; }
  .stage__main { flex-direction: column; }
  .stage__map { flex-basis: auto; max-width: 420px; align-self: center; }
  .end__topics { grid-template-columns: 1fr; }
}

/* =====================================================================
   Βεβαίωση συμμετοχής (A4 οριζόντια)
   ===================================================================== */
body.is-cert { background: #DDE2EE; }
.cert-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; max-width: 297mm; margin: 0 auto; }
.cert-tools .hint { margin: 0; }
.cert { width: 297mm; height: 210mm; margin: 0 auto 40px; background: #fff; color: var(--navy); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 40px rgba(19,35,91,.15); }
.tricolor--top { width: 100%; height: 4mm; border-radius: 0; flex: none; }
.cert__in { flex: 1; display: flex; flex-direction: column; padding: 12mm 17mm 13mm; gap: 7mm; }
.cert__head { display: flex; justify-content: space-between; align-items: center; }
.cert__brand { display: flex; align-items: center; gap: 5mm; }
.cert__brand .wordmark { height: 13mm; width: auto; }
.cert__sub { font-size: 10.5pt; line-height: 1.3; font-weight: 600; color: var(--muted); padding-left: 5mm; border-left: 2px solid var(--line); }
.cert__date { font-size: 11pt; font-weight: 700; color: var(--navy); }
.cert__body { flex: 1; display: flex; flex-direction: column; gap: 6mm; justify-content: center; min-height: 0; }
.cert__top { display: flex; gap: 10mm; align-items: center; }
.cert__text { flex: 1; display: flex; flex-direction: column; gap: 3mm; }
.cert__text h1 { font-size: 28pt; margin: 0; }
.cert__text p { margin: 0; font-size: 12.5pt; line-height: 1.5; max-width: 175mm; }
.cert__text em, .cert__cardslbl em { font-style: italic; font-weight: 600; }
.cert__class { font-size: 20pt !important; font-weight: 700; line-height: 1.25 !important; }
.cert__muted { color: var(--muted); }
.cert__side { flex: none; width: 76mm; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5mm; }
.cert__side p { margin: 0; }
.cert__cards { display: flex; align-items: baseline; gap: 2mm; }
.cert__cards strong { font: 800 40pt/1 var(--display); color: var(--red-ink); }
.cert__cards span { font: 800 18pt/1 var(--display); color: var(--muted); }
.cert__cardslbl { font-size: 11.5pt; font-weight: 600; line-height: 1.3; }
.cert__cardslbl em { color: var(--muted); }
.cert__felic { font: 800 24pt/1.1 var(--display) !important; color: var(--red-ink); margin-top: 2mm !important; }

/* Γύροι: λεζάντα, χάρτης με την εικόνα, οι 10 κάρτες */
.cert__rounds { display: flex; flex-direction: column; gap: 2.5mm; }
.cert__round { display: grid; grid-template-columns: 24mm 44mm 1fr; gap: 4mm; align-items: center; }
.cert__rlabel { margin: 0; display: flex; flex-direction: column; gap: .5mm; font-size: 10pt; line-height: 1.2; }
.cert__rlabel span { font: 800 13pt/1.1 var(--display); color: var(--red-ink); }
.cert__rlabel small { font-size: 8pt; color: var(--muted); }
.cert__map { margin: 0; }
.cert__rcards { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1.6mm; }
.cert__rcards .carte { filter: none; }
.cert__slot { display: block; aspect-ratio: 3 / 2; border: .3mm dashed #C3CADB; border-radius: 1mm; background: #F6F8FC; }
/* Ένας γύρος: περισσότερος χώρος, μεγαλύτερος χάρτης */
.cert--r1 .cert__round { grid-template-columns: 24mm 66mm 1fr; }
.cert--r1 .cert__rcards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5mm; }
/* Τρεις γύροι: λίγο πιο συμπαγές */
.cert--r3 .cert__in { gap: 5mm; padding-top: 10mm; padding-bottom: 10mm; }
.cert--r3 .cert__body { gap: 4mm; }
.cert--r3 .cert__text h1 { font-size: 24pt; }
.cert--r3 .cert__class { font-size: 17pt !important; }
.cert--r3 .cert__text p { font-size: 11.5pt; }
.cert--r3 .cert__line { height: 9mm; }
.cert__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12mm; font-size: 10.5pt; }
.cert__foot .cert__sign--teacher { min-width: 75mm; }
.cert__foot .cert__sign:not(.cert__sign--teacher) { min-width: 130mm; }
.cert__sign { min-width: 112mm; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5mm; }
.cert__line { width: 100%; height: 13mm; border-bottom: 1px solid var(--navy); margin-bottom: 1.5mm; }
.cert__sign .cert__muted { font-size: 9pt; line-height: 1.35; }

@page { size: A4 landscape; margin: 0; }
@media print {
  body.is-cert { background: #fff; }
  .cert-tools { display: none; }
  .cert { margin: 0; box-shadow: none; }
  .cert, .cert * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.nw { white-space: nowrap; }
