/* ---------- Γραμματοσειρές (τοπικά, για ίδιο αποτέλεσμα σε κάθε κατάστημα) ---------- */
/* Γραμματοσειρές αριθμών (μόνο λατινικό υποσύνολο, αρκεί για ψηφία) */
@font-face { font-family: 'TZNumAnton'; font-weight: 400; font-display: block; src: url(fonts/anton-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'TZNumBaloo'; font-weight: 800; font-display: block; src: url(fonts/baloo-2-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'TZNumMont'; font-weight: 900; font-display: block; src: url(fonts/montserrat-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'TZInter'; font-weight: 500; font-display: block;
  src: url(fonts/inter-greek-500-normal.woff2) format('woff2'); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: 'TZInter'; font-weight: 500; font-display: block;
  src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'TZInter'; font-weight: 700; font-display: block;
  src: url(fonts/inter-greek-700-normal.woff2) format('woff2'); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: 'TZInter'; font-weight: 700; font-display: block;
  src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'TZInter'; font-weight: 800; font-display: block;
  src: url(fonts/inter-greek-800-normal.woff2) format('woff2'); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: 'TZInter'; font-weight: 800; font-display: block;
  src: url(fonts/inter-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'TZInter'; font-weight: 900; font-display: block;
  src: url(fonts/inter-greek-900-normal.woff2) format('woff2'); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: 'TZInter'; font-weight: 900; font-display: block;
  src: url(fonts/inter-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }

:root {
  --ink: #000;
  --blue: #0a3a78;
  --accent: #009fe1;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'TZInter', 'Segoe UI', Roboto, Arial, sans-serif;
  background: #eef2f7; color: #14213d;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}

/* ---------------------------- Οθόνη: UI ---------------------------- */
.topbar { background: linear-gradient(90deg, #00539f, #009fe1); color: #fff; padding: 12px 20px; }
.brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.logo { font-weight: 900; font-size: 26px; letter-spacing: 1px; color: #ffd200; text-shadow: 0 2px 0 #0a3a78; }
.subtitle { font-weight: 700; opacity: .95; }
.layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 18px; padding: 18px; align-items: start; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }
.panel { background: #fff; border-radius: 12px; box-shadow: 0 2px 10px rgba(10,58,120,.08); padding: 16px; }
.controls { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.btn { font: inherit; font-weight: 700; border: 1px solid #c8d3e1; background: #f6f9fc; color: #0a3a78;
  padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.btn:hover:not(:disabled) { background: #e8f0f9; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: #0a3a78; color: #fff; border-color: #0a3a78; }
.btn.primary:hover:not(:disabled) { background: #00539f; }
.btn.big { font-size: 18px; padding: 16px; }
.btn.ghost { background: transparent; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
input[type=number] { font: inherit; padding: 8px; border: 1px solid #c8d3e1; border-radius: 8px; width: 100%; }
.row input[type=number] { width: 130px; }
.switch { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.switch input { width: 20px; height: 20px; }
.hint { font-size: 13px; color: #4a5a70; margin: 0; line-height: 1.45; }
ul.hint { padding-left: 18px; }
.box { border: 1px solid #e1e8f0; border-radius: 8px; padding: 8px 12px; }
.box summary { font-weight: 700; cursor: pointer; color: #0a3a78; }
.box[open] > *:not(summary) { margin-top: 10px; }
.status { font-size: 14px; padding: 10px 12px; border-radius: 8px; background: #f1f5fa; border-left: 4px solid #9fb3cc; }
.status.ok { background: #ecf8f0; border-left-color: #2c9a52; }
.status.err { background: #fdeeee; border-left-color: #d33; color: #8a1010; }
.status.warn { background: #fff7e0; border-left-color: #e0a800; }
.status.busy { background: #eef6ff; border-left-color: #009fe1; }
.summary { font-size: 14px; border-top: 1px solid #e1e8f0; padding-top: 10px; }
.summary h3 { margin: 0 0 6px; font-size: 16px; color: #0a3a78; }
.summary .balls { display: flex; gap: 6px; margin: 6px 0 10px; flex-wrap: wrap; }
.summary .ball { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #0a3a78; color: #fff; font-weight: 800; }
.summary .ball.tz { background: #ffd200; color: #0a3a78; }
.summary table { width: 100%; border-collapse: collapse; font-size: 13px; }
.summary td, .summary th { padding: 3px 4px; border-bottom: 1px solid #eef2f7; text-align: right; }
.summary td:first-child, .summary th:first-child { text-align: left; }
.summary .warnline { color: #8a5a00; font-size: 13px; margin-top: 8px; }

/* ---- σελίδα εκτύπωσης: πλοήγηση/προειδοποιήσεις ---- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand .home { color: #fff; text-decoration: none; font-weight: 700; padding: 6px 10px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; }
.brand .home:hover { background: rgba(255,255,255,.12); }
.gameLogo { height: 34px; width: auto; border-radius: 4px; display: block; }
.brand { align-items: center; }
.gameNav { display: flex; gap: 6px; flex-wrap: wrap; }
.gameNav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.gameNav a:hover { background: rgba(255,255,255,.15); }
.gameNav a[aria-current] { background: #fff; color: #0a3a78; }
.incomplete { background: #fff4d6; border: 2px solid #e0a800; border-radius: 10px; padding: 10px 12px; color: #5a3d00; }
.incomplete b { font-size: 16px; }
.incomplete p { margin: 6px 0 10px; font-size: 14px; line-height: 1.45; }
.simBadge { background: #6b2fb3; color: #fff; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 8px; }

/* ------------------------- Αρχική σελίδα (επιλογή παιχνιδιού) ------------------------- */
.landing .topbar { padding: 16px 24px; }
.allwynMark { height: 30px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; display: block; }
.landing .subtitle { font-size: 20px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding: 26px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none; color: #14213d;
  box-shadow: 0 3px 14px rgba(10,58,120,.12); border: 2px solid transparent; transition: transform .12s, box-shadow .12s, border-color .12s; }
.card:hover, .card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,58,120,.2); border-color: #009fe1; outline: none; }
.cardLogo { display: block; background: #fff; border-bottom: 1px solid #e1e8f0; }
.cardLogo img { display: block; width: 100%; height: auto; aspect-ratio: 160.6 / 29.1; object-fit: cover; }
.cardBody { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.cardName { font-weight: 900; font-size: 30px; color: #0a3a78; letter-spacing: .5px; }
.cardSched, .cardLast { font-size: 15px; color: #4a5a70; font-weight: 500; }
.cardGo { margin-top: 8px; align-self: flex-start; background: #0a3a78; color: #fff; font-weight: 800; font-size: 18px; padding: 12px 18px; border-radius: 10px; }
.card:hover .cardGo { background: #00539f; }
.landingHint { text-align: center; color: #4a5a70; font-size: 14px; margin: 0 20px 30px; }

.previewHead { font-weight: 700; color: #0a3a78; margin-bottom: 10px; }
.previewWrap { overflow: hidden; }
.previewScaler { transform-origin: top left; }

/* ------------------------- Η σελίδα A4 ------------------------- */
.page {
  box-shadow: 0 1px 8px rgba(0,0,0,.18);
  position: relative; width: 210mm; height: 296.5mm; overflow: hidden;
  background: #fff; color: var(--ink);
  font-family: 'TZInter', Arial, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
}
.page .bg { position: absolute; left: 0; top: 0; width: 210mm; height: 296.68mm; display: block; }
.brand .b-logo { position: absolute; display: flex; align-items: center; justify-content: center; }
.brand .b-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand .b-stack { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.brand .b-stack img { display: block; }
.brand .b-stack img:first-child { width: auto; }
.brand .b-stack img:last-child { height: auto; }
.brand .b-footer { position: absolute; left: 10mm; width: 190mm; display: flex; align-items: center;
  justify-content: center; gap: 2.2mm; white-space: nowrap; color: #003a78; font-weight: 500; font-size: 2.75mm; line-height: 1; }
.brand .b-footer img { display: block; width: auto; }
.brandSel { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; }
.brandSel select { font: inherit; font-weight: 700; padding: 8px; border: 1px solid #c8d3e1; border-radius: 8px; }
.layer { position: absolute; left: 0; top: 0; width: 210mm; height: 296.68mm; }
.f { position: absolute; display: flex; align-items: center; justify-content: center;
  white-space: nowrap; line-height: 1; font-weight: 800; color: #000; }
.f.right { justify-content: flex-end; padding-right: 0.8mm; }
.f.left { justify-content: flex-start; }
.f > span { display: block; }
.f.num   { font-weight: 900; font-size: 13mm; letter-spacing: -0.3mm; }
.f[data-nf] > span { line-height: 1; }
.f.tz.blue { color: #003a78; }
.f.tz    { font-weight: 900; font-size: 13mm; letter-spacing: -0.3mm; }
.f.num[data-nf], .f.tz[data-nf] { letter-spacing: 0; font-variant-numeric: normal; font-feature-settings: normal; }
.f.digit { font-weight: 800; font-size: 9mm; }
.f.date  { font-weight: 800; font-size: 7.5mm; }
.f.mark  { font-weight: 900; font-size: 9mm; }
.f.win   { font-weight: 800; font-size: 10mm; }
.f.prize { font-weight: 800; font-size: 9.5mm; letter-spacing: -0.2mm; }
.f.jp    { font-weight: 900; font-size: 9.5mm; letter-spacing: 0.2mm; }
.f.next  { font-weight: 900; font-size: 13mm; letter-spacing: -0.3mm; }
.f.cover { background: #fff; }
.f.pending { font-weight: 800; font-size: 3.6mm; letter-spacing: 0.1mm; align-items: flex-end; color: #000; }
/* Σημείωση «δεν έχουν ανακοινωθεί» (όταν λείπουν όλα τα αποτελέσματα διαλογής) */
.f.pending.two { white-space: pre-line; text-align: center; align-items: center; line-height: 1.05; font-size: 3.4mm; }
.notice { position: absolute; background: #fff; border: 0.5mm solid #000; border-radius: 1.5mm;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1em;
  padding: 3mm 2.5mm; text-align: center; color: #000; line-height: 1.2; white-space: normal; overflow: hidden;
  font-size: 4.6mm; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.notice > * { display: block; max-width: 100%; }
.notice b { font-weight: 900; font-size: 1.3em; }
.notice span { font-weight: 700; font-size: 0.9em; }
.notice small { font-weight: 500; font-size: 0.75em; }
.f.win, .f.prize, .f.jp, .f.next { align-items: flex-end; }
.f.next { padding-right: 1.5mm; }

/* ------------------------------ Εκτύπωση ------------------------------ */
@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { width: 210mm; height: 296.5mm; background: #fff !important; overflow: hidden; }
  .ui > *:not(.previewPanel), .topbar, .previewHead { display: none !important; }
  .layout { display: block; padding: 0; }
  .panel.previewPanel { box-shadow: none; padding: 0; border-radius: 0; margin: 0; }
  .previewWrap { overflow: visible; width: auto !important; height: auto !important; }
  .previewScaler { transform: none !important; width: auto !important; height: auto !important; }
  .page { box-shadow: none; break-after: avoid; page-break-after: avoid; break-inside: avoid; }
}
