@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');
:root {
  color-scheme:dark;
  --black:#111;
  --panel:#1a1a1a;
  --line:#444;
  --muted:#c3c3c3;
  --yellow:#ffd84d;
  --display:'Barlow Condensed','Arial Narrow',Arial,sans-serif;
  font:100%/1.5 'DM Sans',Arial,sans-serif;
  background:var(--black);
  color:white;
}
* {
  box-sizing:border-box;
}
body,p,dl,dd,h1,h2,h3,fieldset {
  margin:0;
}
button,input,a {
  font:inherit;
}
button,a,input {
  touch-action:manipulation;
}
a {
  color:inherit;
  text-underline-offset:.22em;
}
button {
  cursor:pointer;
}
button:disabled {
  opacity:.65;
  cursor:wait;
}
button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid var(--yellow);
  outline-offset:3px;
}
[hidden] {
  display:none!important;
}
.sr-only,.skip:not(:focus) {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.skip:focus {
  display:block;
  padding:1rem;
}
.wrap {
  width:min(1120px,calc(100% - 48px));
  margin-inline:auto;
}
.mast {
  border-bottom:1px solid var(--line);
}
.mast-inner {
  min-height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.logo {
  display:block;
  width:154px;
  height:52px;
  object-fit:contain;
}
.back {
  font-weight:700;
}
.hero {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:clamp(28px,5vw,64px) 0 30px;
}
.hero .round {
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-weight:700;
  color:var(--yellow);
}
.round span {
  padding-inline:.35em;
}
.hero h1 {
  font:800 clamp(3.75rem,8vw,6rem)/1 var(--display);
  letter-spacing:-.035em;
  margin:.22em 0;
}
.hero h1 span {
  color:var(--yellow);
}
.hero p:last-child {
  max-width:550px;
  font-size:1.07rem;
  color:var(--muted);
}
.ticket {
  display:flex;
  align-items:center;
  gap:1.2rem;
  border-left:1px dashed #777;
  padding-left:clamp(20px,4vw,48px);
}
.ticket img {
  object-fit:contain;
}
.ticket strong {
  display:block;
  font:700 2.7rem/1 var(--display);
}
.ticket span {
  display:block;
  color:var(--muted);
  white-space:nowrap;
  font-size:.88rem;
  margin-top:.35rem;
}
.layout {
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);
  align-items:start;
  gap:18px;
}
.box {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  padding:clamp(18px,3vw,30px);
}
.picks {
  border-top:4px solid var(--yellow);
}
aside {
  display:grid;
  gap:18px;
}
.section-head {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
h2 {
  font:700 clamp(1.75rem,3vw,2.2rem)/1.15 var(--display);
}
h3 {
  font:700 1.65rem/1.12 var(--display);
}
.section-head a,.rules p,.ranking p,.picks p {
  font-size:.94rem;
}
.section-head a {
  color:var(--yellow);
  font-weight:700;
}
.picks p,.rules p,.ranking p {
  color:var(--muted);
  margin:.65rem 0 1rem;
}
.name-field {
  display:grid;
  gap:.45rem;
  font-weight:700;
  margin:1.4rem 0;
}
.name-field input {
  width:100%;
  padding:.65rem .9rem;
}
.name-field input,.goals {
  background:#101010;
  color:white;
  border:1px solid #777;
  border-radius:6px;
}
fieldset {
  padding:0;
  border:0;
  min-width:0;
}
legend {
  padding:0 0 .45rem;
  font-weight:700;
}
.game {
  display:grid;
  grid-template-columns:minmax(0,1fr) 1em minmax(0,1fr);
  grid-template-areas:"home . away" "home-score times away-score";
  gap:8px 4px;
  padding:12px 0;
  justify-items:center;
  align-items:center;
  min-height:68px;
  border-top:1px solid var(--line);
}
.club {
  display:flex;
  align-items:center;
  gap:.5rem;
  line-height:1.2;
  overflow-wrap:anywhere;
  font-weight:600;
}
.club { grid-area:home; justify-content:center; text-align:center; }
.club.away { grid-area:away; }
.score-stepper {
  grid-area:home-score;
  display:grid;
  grid-template-columns:44px minmax(30px,48px) 44px;
  align-items:center;
  gap:2px;
  width:min(100%,140px);
}
.times + .score-stepper { grid-area:away-score; }
.game .times { grid-area:times; font-weight:700; }
.step-goal {
  border:1px solid #777;
  border-radius:6px;
  height:44px;
  padding:0;
  background:#111;
  color:white;
  font-size:1.45rem;
  line-height:1;
  font-weight:700;
}
.step-goal:enabled:hover,.step-goal:enabled:active { border-color:var(--yellow); color:var(--yellow); }
.step-goal:disabled { opacity:.45; cursor:default; }
.club img {
  width:22px;
  height:27px;
  object-fit:contain;
  flex-shrink:0;
}
.game.vasco {
  border-top:2px solid var(--yellow);
}
.game.vasco .club:first-child {
  color:var(--yellow);
}
.goals {
  width:100%;
  min-height:44px;
  padding:3px;
  text-align:center;
  appearance:textfield;
  -moz-appearance:textfield;
  font-size:1.15rem;
  font-weight:700;
}
.goals::-webkit-inner-spin-button,.goals::-webkit-outer-spin-button {
  -webkit-appearance:none;
}
.goals:read-only,.name-field input:read-only {
  border-color:#444;
  background:#242424;
}
.times {
  text-align:center;
  color:var(--muted);
}
.entry-actions {
  display:flex;
  align-items:stretch;
  gap:.6rem;
  flex-wrap:wrap;
  margin-top:1.1rem;
}
.primary,.secondary {
  min-height:44px;
  border-radius:7px;
  border:1px solid #777;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:.64rem 1.05rem;
  font-weight:700;
  color:white;
  background:transparent;
  text-decoration:none;
}
.primary {
  color:#111;
  border-color:var(--yellow);
  background:var(--yellow);
}
.rules dl {
  margin-top:.9rem;
}
.rules dl div {
  display:flex;
  gap:.75rem;
  align-items:baseline;
  border-top:1px solid var(--line);
  padding:.6rem 0;
}
.rules dt {
  font-weight:700;
  color:var(--yellow);
  white-space:nowrap;
}
.ranking table {
  border-collapse:collapse;
  width:100%;
  font-size:.9rem;
}
.ranking th,.ranking td {
  border-top:1px solid var(--line);
  text-align:left;
  padding:.55rem .25rem;
  overflow-wrap:anywhere;
}
.ranking td:last-child,.ranking th:last-child {
  text-align:right;
  font-weight:700;
}
.ranking tr:first-child td:last-child {
  color:var(--yellow);
}
#tally {
  font-weight:700;
  color:white;
}
#receipt img {
  max-width:100%;
  width:315px;
  height:auto;
  border:1px solid var(--line);
  border-radius:8px;
}
#receipt ol {
  font-size:.95rem;
  margin:0 0 1rem;
  padding-left:1.4rem;
}
#receipt a:not(.primary) {
  color:var(--yellow);
}
footer {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:.8rem;
  border-top:1px solid var(--line);
  margin:2rem 0 0;
  padding:1.4rem 0 3rem;
  font-size:.95rem;
}
@media(max-width:780px) {
  .layout {
    grid-template-columns:1fr;
  }
  .hero {
    align-items:flex-start;
  }
  .ticket {
    display:none;
  }
}
@media(max-width:480px) {
  .wrap {
    width:calc(100% - 24px);
  }
  .mast-inner {
    min-height:62px;
  }
  .logo {
    width:125px;
    height:42px;
  }
  .back,.section-head a {
    font-size:.88rem;
  }
  .box {
    padding:16px 12px;
  }
  .hero {
    padding:25px 1px 20px;
  }
  .hero h1 {
    font-size:3.55rem;
  }
  .hero p:last-child {
    font-size:1rem;
  }
  .game { column-gap:2px; }
  .club {
    gap:.25rem;
    font-size:.875rem;
  }
  .club img {
    width:17px;
    height:23px;
  }
  .entry-actions .primary {
    flex-grow:1;
  }
}
@media(max-width:360px) {

  .hero h1 {
    font-size:3rem;
  }
}
