:root{
  --court:#E4EEF6; --line:#F26B1D; --deep:#173E7A; --ink:#10213D; --mute:#5F6E85;
  --paper:#FFFFFF; --panel:#F5F8FB; --win:#1E8E5A; --danger:#B3261E;
  --r-lg:18px; --r-sm:8px;
  --display:'Roboto Condensed','Arial Narrow',sans-serif; --body:'Roboto',system-ui,sans-serif; /* Roboto family: full Greek glyphs */
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--body);color:var(--ink);background:var(--court);
  background-image:linear-gradient(to right,rgba(23,62,122,.10) 1px,transparent 1px),linear-gradient(to bottom,rgba(23,62,122,.10) 1px,transparent 1px);
  background-size:64px 64px;display:flex;justify-content:center;align-items:flex-start;padding:24px 12px;min-height:100vh;
}
.app{width:100%;max-width:430px;background:var(--paper);border-radius:28px;box-shadow:0 30px 60px -20px rgba(16,33,61,.35),0 0 0 1px rgba(16,33,61,.06);overflow:hidden;position:relative;min-height:800px;display:flex;flex-direction:column}
header{background:var(--deep);color:#fff;padding:20px 20px 16px;position:relative;overflow:clip} /* clip, not hidden: focusing the language button must not scroll the header */
header::after{content:"";position:absolute;width:220px;height:220px;border:3px solid rgba(255,255,255,.14);border-radius:50%;right:-90px;top:-110px}
header .league{font-family:var(--display);font-weight:600;font-size:15px;letter-spacing:.02em;opacity:.8}
header h1{font-family:var(--display);font-weight:800;font-size:34px;line-height:1;margin-top:2px}
header .me{display:flex;align-items:center;justify-content:space-between;margin-top:14px;background:rgba(255,255,255,.10);border-radius:12px;padding:10px 12px;position:relative;z-index:1}
header .me .name{font-weight:600;font-size:14px}
header .me .name small{display:block;font-weight:400;opacity:.75;font-size:12px}
header .me .pts{font-family:var(--display);font-weight:800;font-size:28px;line-height:1;text-align:right}
header .me .pts small{display:block;font-family:var(--body);font-weight:400;font-size:11px;opacity:.75}
header .me.link{cursor:pointer}
/* Federation badge (ΕΠΣΣ) top right; the language button sits to its left. */
header .badge{position:absolute;top:12px;right:16px;width:44px;height:44px;border-radius:50%;z-index:2;display:block}
header .lang{all:unset;cursor:pointer;position:absolute;top:24px;right:70px;z-index:2;font-family:var(--display);font-weight:700;font-size:13px;letter-spacing:.04em;color:#fff;border:1.5px solid rgba(255,255,255,.55);border-radius:999px;padding:3px 9px;opacity:.9}
header .lang:hover,header .lang:focus-visible{opacity:1;background:rgba(255,255,255,.12);outline:none}
main{flex:1;padding:16px 16px 92px;overflow:auto}
.view{display:none}.view.active{display:block}
.md-head{display:flex;align-items:baseline;justify-content:space-between;margin:4px 2px 12px}
.md-head h2{font-family:var(--display);font-weight:700;font-size:24px}
.md-head span{font-size:13px;color:var(--mute)}
.notice{font-size:13px;color:var(--mute);margin:-6px 2px 12px;line-height:1.4}
.error{color:var(--danger);font-size:13px;margin:6px 2px}
.empty{text-align:center;color:var(--mute);padding:40px 20px;font-size:14px;line-height:1.5}
.empty b{display:block;font-family:var(--display);font-size:22px;color:var(--ink);margin-bottom:4px}

.fx{border:1px solid #DCE4EE;border-radius:var(--r-lg);padding:12px 12px 10px;margin-bottom:10px;background:var(--paper)}
.fx.locked{background:var(--panel)}
.meta{display:flex;justify-content:space-between;font-size:12px;color:var(--mute);margin-bottom:8px}
.meta b{color:var(--ink);font-weight:600}
.row{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}
.team{display:flex;align-items:center;gap:8px;min-width:0}
.team.away{flex-direction:row-reverse;text-align:right}
.crest{width:34px;height:34px;border-radius:10px;flex:none;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:13px;color:#fff}
/* Badge on its own: no box, no border. The image is contained so tall badges (AEL) never spill past the 34px slot. */
.crest.logo{background:transparent;border:none;padding:0;overflow:hidden}
.crest.logo img{width:34px;height:34px;object-fit:contain;display:block}
.team .tn{font-family:var(--display);font-weight:700;font-size:16px;letter-spacing:.02em;line-height:1.15;overflow:hidden;white-space:nowrap;text-overflow:ellipsis} /* short code; full name in title */
/* Crest + code is a link to the team's page wherever it appears (Picks, Results, league table). Looks like the plain text did. */
.tlink{display:flex;align-items:center;gap:inherit;min-width:0;color:inherit;text-decoration:none;border-radius:8px}
.tlink:focus-visible{outline:2px solid var(--deep);outline-offset:2px}
.team.away .tlink{flex-direction:row-reverse}
/* Team page: big crest and full name under the header, then Results | Fixtures tabs and the match cards. */
.team-head{display:flex;align-items:center;gap:14px;margin:4px 2px 14px}
.team-head .crest{width:56px;height:56px;border-radius:14px;font-size:18px}
.team-head .crest.logo img{width:56px;height:56px}
.team-head h2{font-family:var(--display);font-weight:700;font-size:24px;line-height:1.1;min-width:0;overflow-wrap:anywhere}
.team-head small{display:block;font-family:var(--body);font-weight:400;font-size:13px;color:var(--mute);margin-top:2px}
.tag.w{background:#E6F5EC;color:var(--win);border-color:#C3E6D0}
.tag.d{background:#E9F3FF;color:var(--deep);border-color:#C9DDF5}
.tag.l{background:#FBE9E7;color:var(--danger);border-color:#F2C7C2}
.res .meta .tag{margin-left:8px;vertical-align:1px}
.board{display:flex;align-items:center;gap:6px;background:var(--ink);border-radius:12px;padding:6px 8px}
.num{display:flex;flex-direction:column;align-items:center;gap:2px}
.num button{all:unset;cursor:pointer;width:28px;height:18px;display:grid;place-items:center;color:#fff;font-size:14px;line-height:1;border-radius:5px;opacity:.7}
.num button:hover,.num button:focus-visible{opacity:1;background:rgba(255,255,255,.12);outline:none}
.num button:focus-visible{box-shadow:0 0 0 2px var(--line)}
.num .d{font-family:var(--display);font-weight:800;font-size:34px;line-height:1;color:var(--line);min-width:34px;text-align:center;font-variant-numeric:tabular-nums}
.num .d.blank{color:rgba(255,255,255,.35)}
/* Typeable score: looks exactly like the digit, numeric keypad on phones. */
.num input.d{all:unset;box-sizing:border-box;font-family:var(--display);font-weight:800;font-size:34px;line-height:1;color:var(--line);width:44px;height:36px;text-align:center;font-variant-numeric:tabular-nums;background:transparent;caret-color:var(--line);border-radius:6px}
.num input.d::placeholder{color:rgba(255,255,255,.35)}
.num input.d:focus{box-shadow:0 0 0 2px var(--line)}
.board .dash{color:#fff;opacity:.5;font-family:var(--display);font-size:24px;line-height:1}
.locked .board,.res .board{background:var(--deep)}
.locked .num .d,.res .num .d{color:#fff}
.locked .num button{display:none}
/* Staff (admins and editors) fix a match's date, time and score from its card. Button sits in the meta line; panel unfolds below. */
.meta .edit{all:unset;cursor:pointer;font-weight:700;color:var(--deep);margin-left:8px}
.meta .edit:focus-visible{outline:2px solid var(--deep);outline-offset:2px;border-radius:4px}
.staff{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed #DCE4EE;font-size:13px}
.staff label span{display:block;font-size:12px;font-weight:600;margin-bottom:3px;color:var(--mute)}
.staff input,.staff select{width:100%;box-sizing:border-box;font:inherit;font-size:15px;padding:7px 8px;border:1.5px solid #D7DEE8;border-radius:10px;background:#fff;color:var(--ink)}
.staff input:focus,.staff select:focus{outline:none;border-color:var(--deep);box-shadow:0 0 0 3px rgba(23,62,122,.15)}
.staff .sc{grid-column:1/-1}
.staff .sc div{display:flex;align-items:center;gap:8px}
.staff .sc input{width:64px;text-align:center}
.staff .acts{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}
.staff .acts .btn{font-size:14px;padding:8px 14px}
.staff .hint{grid-column:1/-1;font-size:12px;color:var(--mute);margin:0;line-height:1.4}
/* Live broadcast: small broadcaster logos next to the kickoff, and their toggles in the staff panel. */
.meta .live{display:inline-flex;align-items:center;gap:4px;margin-left:6px;vertical-align:-3px}
.meta .live img{height:14px;width:auto;display:block}
.staff .tv{grid-column:1/-1}
.staff .tv>div{display:flex;flex-direction:column;gap:8px}
.staff .bcrow{display:flex;align-items:center;gap:8px}
.staff .bcrow .bc{flex:none;min-width:112px}
.staff .bcrow input[type=url]{flex:1;min-width:0;font-size:14px}
.staff .bcrow:not(:has(input[type=checkbox]:checked)) input[type=url]{display:none} /* link field only once the channel is ticked */
.meta .live a{display:block;padding:4px 2px;margin:-4px -2px} /* bigger tap target around the 14px logo */
.staff .bc{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1.5px solid #D7DEE8;border-radius:10px;background:#fff;cursor:pointer}
.staff .bc:has(input:checked){border-color:var(--deep);box-shadow:0 0 0 2px rgba(23,62,122,.12)}
.staff .bc input{width:auto;margin:0;padding:0;box-shadow:none}
.staff .bc img{height:16px;width:auto}
.staff .bc span{display:inline;margin:0;font-size:13px;font-weight:600;color:var(--ink)}
.foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:8px;flex-wrap:wrap}
.implied{display:flex;gap:6px;flex-wrap:wrap}
.chip{font-size:12px;padding:3px 8px;border-radius:999px;background:var(--panel);color:var(--mute);border:1px solid #E3EAF2}
.chip.on{background:#E9F3FF;color:var(--deep);border-color:#C9DDF5}
.banker{all:unset;cursor:pointer;font-size:12px;font-weight:600;padding:5px 10px;border-radius:999px;border:1.5px solid #D7DEE8;color:var(--mute);display:inline-flex;align-items:center;gap:5px}
.banker:focus-visible{outline:2px solid var(--deep);outline-offset:2px}
.banker.on{background:var(--line);border-color:var(--line);color:#fff}
.banker:disabled{opacity:.5;cursor:default}
.save-bar{position:sticky;bottom:0;margin:6px -4px 0;padding:10px 4px 4px;background:linear-gradient(to top,#fff 70%,rgba(255,255,255,0));display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 10px}
.save-bar .status{font-size:13px;color:var(--mute)}
.save-actions{display:flex;gap:8px;margin-left:auto}
.save-actions .btn{font-size:14px;padding:9px 14px}
.btn{all:unset;box-sizing:border-box;cursor:pointer;font-family:var(--display);font-weight:700;font-size:17px;letter-spacing:.01em;background:var(--deep);color:#fff;padding:11px 18px;border-radius:12px;text-align:center}
.btn:focus-visible{outline:2px solid var(--line);outline-offset:2px}
.btn.ghost{background:transparent;color:var(--deep);border:1.5px solid var(--deep)}
.btn.danger{background:transparent;color:var(--danger);border:1.5px solid var(--danger)}
.btn:disabled{opacity:.45;cursor:default}
.btn.wide{display:block;width:100%}

.total{background:var(--deep);color:#fff;border-radius:var(--r-lg);padding:14px 16px;margin-bottom:12px;display:flex;justify-content:space-between;align-items:center}
.total .t{font-family:var(--display);font-weight:800;font-size:44px;line-height:1}
.total .t small{font-family:var(--body);font-weight:400;font-size:12px;opacity:.75;display:block}
.total .sub{text-align:right;font-size:13px;line-height:1.5;opacity:.9}
.res{border:1px solid #DCE4EE;border-radius:var(--r-lg);padding:12px;margin-bottom:10px}
.res .pick{display:flex;justify-content:space-between;align-items:center;margin-top:8px;font-size:13px;color:var(--mute)}
.res .pick b{color:var(--ink);font-family:var(--display);font-size:18px;font-weight:700}
.res .pick .pp{font-family:var(--display);font-weight:800;font-size:26px;color:var(--ink);line-height:1}
.res .pick .pp.zero{color:#B7C1CF}
.breakdown{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.breakdown .chip{text-decoration:line-through;opacity:.6}
.breakdown .chip.on{text-decoration:none;opacity:1;background:#E6F5EC;color:var(--win);border-color:#C3E6D0}
.breakdown .chip.bk.on{background:#FFEBDD;color:#B84A08;border-color:#F7CDB3}
/* Results: matchday dropdown between older/newer arrows. */
.mdpick{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.mdpick .field{flex:1;margin:0;min-width:0}
.mdpick .btn{font-size:20px;padding:8px 14px;line-height:1}
.seg{display:flex;gap:2px;background:var(--panel);padding:4px;border-radius:12px;margin-bottom:12px;overflow-x:auto}
.seg button{all:unset;cursor:pointer;flex:1;text-align:center;font-size:13px;font-weight:600;padding:8px 6px;border-radius:9px;color:var(--mute);white-space:nowrap} /* 6px sides: four Greek table tabs fit a 375px phone */
.seg button:focus-visible{outline:2px solid var(--deep)}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(16,33,61,.12)}

table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-size:12px;color:var(--mute);font-weight:500;padding:6px 8px;border-bottom:1px solid #E3EAF2}
th.n,td.n{text-align:right;font-variant-numeric:tabular-nums}
td{padding:10px 8px;border-bottom:1px solid #EEF2F7}
tr.me td{background:#FFF4EC}
td .rk{font-family:var(--display);font-weight:800;font-size:18px;color:var(--mute);width:24px;display:inline-block}
tr:nth-child(-n+3) td .rk{color:var(--line)}
td .who{display:flex;align-items:center;gap:8px}
.tag{font-size:11px;padding:2px 6px;border-radius:5px;background:var(--panel);color:var(--mute);border:1px solid #E3EAF2}
.tag.coach{background:#E9F3FF;color:var(--deep);border-color:#C9DDF5}
.tag.player{background:#E6F5EC;color:var(--win);border-color:#C3E6D0}
td .pts{font-family:var(--display);font-weight:800;font-size:20px}
/* League table in Results: nine columns on a phone, so tighter cells and a small crest. */
.lt th,.lt td{padding-left:4px;padding-right:4px}
.lt td{padding-top:8px;padding-bottom:8px}
.lt .crest,.lt .crest.logo img{width:24px;height:24px;border-radius:7px;font-size:9px}
.lt .who{gap:6px;font-family:var(--display);font-weight:700}
.lt td .pts{font-size:18px}
/* Where each place leads after the regular season: 1-4 play-offs with home court, 5-8 play-offs, 9-12 play-outs. */
.lt td .rk.z{width:24px;height:24px;line-height:24px;border-radius:7px;text-align:center;font-size:14px}
.lt tr td .rk.z-home{background:var(--deep);color:#fff}
.lt tr td .rk.z-playoff{color:var(--deep);box-shadow:inset 0 0 0 1.5px var(--deep)}
.lt tr td .rk.z-playout{color:var(--danger);box-shadow:inset 0 0 0 1.5px var(--danger)}
/* Post-season line under a card's meta row: round and game, then where the series stands. */
.series{font-size:12px;color:var(--mute);margin:-4px 0 8px;line-height:1.35}
.series b{color:var(--deep);font-weight:600}
/* Play-off bracket (Results → Πλέι οφ): one box per series, two team rows with seed and series wins. */
.po-h{font-family:var(--display);font-weight:700;font-size:18px;margin:14px 2px 8px}
.po-h span{font-family:var(--body);font-weight:400;font-size:12px;color:var(--mute);margin-left:6px}
.bracket{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bracket:has(.sbox:only-child){grid-template-columns:1fr}
.sbox{border:1px solid #DCE4EE;border-radius:var(--r-sm);padding:6px 8px;background:var(--paper)}
.sbox.wait{border-style:dashed;color:var(--mute);font-size:13px}
.sbox.wait .srow{padding:6px 0}
.srow{display:flex;align-items:center;gap:6px;padding:3px 0;font-family:var(--display);font-weight:700}
.srow .sd{width:14px;font-size:12px;color:var(--mute);text-align:right}
.srow .tlink{display:flex;align-items:center;gap:6px;min-width:0}
.srow .crest,.srow .crest.logo img{width:22px;height:22px;border-radius:6px;font-size:8px}
.srow .w{margin-left:auto;font-size:17px;font-variant-numeric:tabular-nums}
.srow.won .w,.srow.won .tn{color:var(--win)}
.snote{font-size:11px;color:var(--mute);border-top:1px solid #EEF2F7;margin-top:4px;padding-top:4px;line-height:1.3}
.snote::first-letter{text-transform:uppercase}
.lt.pu tr td .rk{color:var(--mute)} /* play-out table: no medal colours for the top three */
.lt.pu tr td .rk.z-relegation{background:var(--danger);color:#fff} /* play-out table: bottom two relegated */
.zones .rk.z-relegation{background:var(--danger)}
.zones{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--mute);margin:10px 2px 0}
.zones span{display:inline-flex;align-items:center;gap:6px}
.zones .rk.z{width:14px;height:14px;border-radius:4px;display:inline-block}
.zones .rk.z-home{background:var(--deep)}
.zones .rk.z-playoff{box-shadow:inset 0 0 0 1.5px var(--deep)}
.zones .rk.z-playout{box-shadow:inset 0 0 0 1.5px var(--danger)}
.versus{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.side{border-radius:var(--r-lg);padding:14px;border:1px solid #DCE4EE}
.side.lead{border-color:var(--line);box-shadow:inset 0 0 0 1px var(--line)}
.side h3{font-family:var(--display);font-weight:700;font-size:16px;color:var(--mute)}
.side .big{font-family:var(--display);font-weight:800;font-size:40px;line-height:1;margin:6px 0 2px}
.side p{font-size:12px;color:var(--mute);line-height:1.4}
.callout{background:#FFF4EC;border:1px solid #F7CDB3;border-radius:var(--r-sm);padding:10px 12px;font-size:13px;line-height:1.4;margin-bottom:12px}

.rule{display:grid;grid-template-columns:88px 1fr;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid #EEF2F7}
.rule .v{font-family:var(--display);font-weight:800;font-size:30px;line-height:1;color:var(--deep)}
.rule .v small{font-size:13px;font-weight:600;display:block;color:var(--mute)}
.rule .v.word{font-size:16px;line-height:1.1;padding-top:3px;overflow-wrap:anywhere} /* Greek labels (Κλείδωμα, Ισοβαθμία) need the room */
.rule h4{font-weight:600;font-size:15px}
.rule p{font-size:13px;color:var(--mute);line-height:1.45;margin-top:2px}
.rule.max .v{color:var(--line)}

/* forms */
.field{display:block;margin-bottom:12px}
.field span{display:block;font-size:13px;font-weight:600;margin-bottom:4px}
.field .hint{font-size:12px;color:var(--mute);margin-top:5px;line-height:1.4}
.field input,.field select{width:100%;font:inherit;font-size:16px;padding:11px 12px;border:1.5px solid #D7DEE8;border-radius:12px;background:#fff;color:var(--ink)}
.field input:focus,.field select:focus{outline:none;border-color:var(--deep);box-shadow:0 0 0 3px rgba(23,62,122,.15)}
.login{padding:24px 4px}
.login h2{font-family:var(--display);font-weight:800;font-size:30px;line-height:1.05;margin-bottom:8px}
.login p{font-size:14px;color:var(--mute);line-height:1.5;margin-bottom:18px}
.login .sent{background:#E6F5EC;border:1px solid #C3E6D0;color:#155F3B;border-radius:var(--r-sm);padding:12px;font-size:14px;line-height:1.45}
.account .rowline{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #EEF2F7;font-size:14px}
.account .rowline span{color:var(--mute)}
.legal{font-size:13px;color:var(--mute);line-height:1.55;margin-top:16px}
.legal h4{color:var(--ink);font-size:14px;margin:14px 0 4px}

nav{position:absolute;left:0;right:0;bottom:0;display:flex;flex-wrap:wrap;background:#fff;border-top:1px solid #E3EAF2;padding:8px 8px 14px}
/* Sponsor strip: a full-width row above the nav buttons. Self-hosted image, plain link. Hidden unless the server enables the slot. */
.sponsor{flex:0 0 100%;display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;margin:-8px -8px 8px;padding:6px 16px;border-bottom:1px solid #E3EAF2;background:var(--panel);text-decoration:none;color:inherit}
.sponsor[hidden]{display:none}
.sponsor .tag{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);flex:none}
.sponsor img{max-height:32px;max-width:200px;object-fit:contain;display:block}
.sponsor .ph{flex:1;max-width:220px;border:1.5px dashed #C3CDDA;border-radius:8px;padding:6px 10px;text-align:center;font-size:12px;font-weight:600;color:var(--mute)}
.app.sponsored main{padding-bottom:140px}
.app.sponsored .toast{bottom:144px}
nav button{all:unset;cursor:pointer;flex:1;text-align:center;padding:8px 4px;border-radius:10px;color:var(--mute);font-size:12px;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:4px}
nav button:focus-visible{outline:2px solid var(--deep)}
nav button svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
nav button.on{color:var(--deep)}
nav button.on::after{content:"";width:18px;height:3px;border-radius:2px;background:var(--line);margin-top:-2px}
.toast{position:absolute;left:50%;bottom:96px;transform:translateX(-50%) translateY(8px);background:var(--ink);color:#fff;padding:10px 16px;border-radius:999px;font-size:13px;font-weight:600;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:5;
  width:max-content;max-width:calc(100% - 32px);text-align:center;line-height:1.35} /* long messages (Greek banker note) wrap inside the card */
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
@media (prefers-reduced-motion:reduce){.toast{transition:none}}
/* Phone: the card fills the screen, <main> scrolls inside it, so the tab bar stays pinned at the bottom. */
@media (max-width:440px){body{padding:0}.app{border-radius:0;height:100vh;height:100dvh;min-height:0;box-shadow:none}}
