/* TallyPuck front page.
   One loud thing: the live draft board in the hero. Everything else is quiet:
   ice white, TallyPuck navy, the rink's blue and red lines, and TallyPuck orange used
   only where something just happened. One type family (Archivo), using its width
   axis: condensed and heavy for headlines, wide for the clock and numbers. */

.front {
  --ice: #F4F6F8;
  --ice-2: #F2F5F8;
  --ink: #101D32;
  --ink-muted: #4D5B69;
  --line: #D5DDE5;
  --blue-line: #1E4FB4;
  --goal-red: #CE2131;
  --kick: #F47721;
  --primary: #101D32;
  --on-primary: #FFFFFF;
  --link: #1E4FB4;
  --focus: #1E4FB4;
  /* team colors for the examples */
  --t-black: #1E2328;
  --t-blue: #1F5FD0;
  --t-gold: #D99A0B;
  --t-red: #C8282E;
  background: var(--ice);
}
.t-black { --tc: var(--t-black); }
.t-blue { --tc: var(--t-blue); }
.t-gold { --tc: var(--t-gold); }
.t-red { --tc: var(--t-red); }

.front h1, .front h2 { font-weight: 900; font-variation-settings: 'wdth' 66; line-height: 0.95; }
.front h3 { font-variation-settings: 'wdth' 80; }

.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 50; padding: var(--s-2) var(--s-4); background: var(--ink); color: #FFFFFF; border-radius: var(--radius-m); font-weight: 700; }
.skip:focus { top: var(--s-2); }

/* ---------- header ---------- */
.site-head { padding-block: var(--s-4); border-bottom: 1px solid var(--line); background: var(--ice); }
.site-head .wrap { display: flex; align-items: center; gap: var(--s-4); }
.wordmark { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); text-decoration: none;
  font-weight: 900; font-variation-settings: 'wdth' 62; font-size: var(--step-2); line-height: 1; }
.wordmark .puck { width: 30px; height: auto; fill: var(--ink); }
.wordmark .puck .top { fill: #F47721; }
.wordmark.small { font-size: var(--step-1); }
.wordmark.small .puck { width: 24px; }
.head-links { margin-left: auto; display: flex; align-items: center; gap: var(--s-5); }
.head-links a:not(.btn) { font-weight: 700; color: var(--ink); text-decoration: none; }
.head-links a:not(.btn):hover { text-decoration: underline; }
.head-links .btn { min-height: 40px; padding: var(--s-1) var(--s-4); }
@media (max-width: 40rem) { .head-links a:not(.btn) { display: none; } }

.front .btn-primary { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.front .btn-primary:hover { filter: none; background: #22364C; }

/* ---------- your leagues (signed in) ---------- */
.mine { padding-block: var(--s-5); background: var(--ice-2); border-bottom: 1px solid var(--line); }
.mine h2 { font-size: var(--step-2); margin-bottom: var(--s-3); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); } }
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 5.5rem); max-width: 11ch; letter-spacing: -0.005em; }
.hero .lede { margin-top: var(--s-5); font-size: var(--step-1); line-height: 1.55; max-width: 34rem; color: var(--ink-muted); }

/* Find your league */
.find { margin-top: var(--s-6); max-width: 30rem; scroll-margin-top: var(--s-6); }
.find label { font-size: var(--step-0); margin-bottom: var(--s-2); }
.find-box { position: relative; }
.find-icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink-muted); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.find-box input {
  width: 100%; min-height: 56px; padding: var(--s-2) var(--s-4) var(--s-2) 44px;
  border: 2px solid var(--ink); border-radius: var(--radius-m); background: var(--ice); color: var(--ink); font-size: var(--step-1);
}
.find-box input::placeholder { color: #7A8794; }
.find-box input:focus { outline: 3px solid color-mix(in oklab, var(--blue-line) 35%, transparent); outline-offset: 1px; border-color: var(--blue-line); }
.find-help { margin-top: var(--s-2); font-size: var(--step--1); color: var(--ink-muted); }
.league-list { list-style: none; padding: 0; margin-top: var(--s-3); }
.league-list:empty { display: none; }
.league-list li + li { margin-top: var(--s-2); }
.league-list a { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); background: var(--ice); border: 1.5px solid var(--line); border-radius: var(--radius-m); color: var(--ink); text-decoration: none; }
.league-list a:hover, .league-list a:focus-visible { border-color: var(--ink); }
.league-list .nm { display: flex; flex-direction: column; min-width: 0; }
.league-list .nm .muted { font-size: var(--step--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.league-list .go { margin-left: auto; font-weight: 800; color: var(--blue-line); font-size: var(--step--1); }
.league-list .none { padding: var(--s-2) 0; color: var(--ink-muted); }
.lg-logo { flex: none; width: 44px; height: 44px; border-radius: var(--radius-m); object-fit: contain; background: #FFFFFF; border: 1px solid var(--line); }
.lg-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--ice-2); color: var(--ink-muted); font-weight: 900; font-size: var(--step--1); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); }
.hero-actions .btn { min-height: 52px; padding-inline: var(--s-6); font-size: var(--step-1); }
.hero-actions .free { font-weight: 700; color: var(--ink-muted); }

/* ---------- the draft board ---------- */
.board-wrap { position: relative; margin: 0; }
/* a center-ice faceoff circle behind the board, when there's room beside the words */
.board-wrap::before, .board-wrap::after { display: none; }
@media (min-width: 60rem) { .board-wrap::before, .board-wrap::after { display: block; } }
.board-wrap::before {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 46%; width: min(118%, 640px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid color-mix(in oklab, var(--blue-line) 22%, transparent);
}
.board-wrap::after {
  content: ''; position: absolute; z-index: 0; left: 50%; top: 46%; width: 18px; height: 18px; transform: translate(-50%, -50%);
  border-radius: 50%; background: color-mix(in oklab, var(--blue-line) 28%, transparent);
}
.board {
  position: relative; z-index: 1; background: var(--ink); color: #FFFFFF; border-radius: 16px; padding: var(--s-4);
  box-shadow: 0 2px 4px rgba(15, 29, 44, 0.12), 0 24px 48px -12px rgba(15, 29, 44, 0.35);
}
@media (min-width: 30rem) { .board { padding: var(--s-5); } }
.db-top { display: flex; align-items: stretch; justify-content: space-between; gap: var(--s-3); }
.db-title { display: flex; flex-direction: column; justify-content: center; }
.db-title b { font-size: var(--step-2); font-weight: 900; font-variation-settings: 'wdth' 66; line-height: 1; }
.db-title > span { margin-top: var(--s-1); color: #A9B6C3; font-size: var(--step--1); font-weight: 600; }
.db-clock {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: var(--s-3); align-items: center;
  padding: var(--s-2) var(--s-3); border-radius: var(--radius-m); background: #18293B; border: 1px solid #2A3D52;
}
.db-on { grid-column: 1; font-size: 12px; font-weight: 700; color: #A9B6C3; }
.db-team { grid-column: 1; grid-row: 2; font-size: var(--step-1); font-weight: 900; font-variation-settings: 'wdth' 75; line-height: 1.1; }
.db-time {
  grid-column: 2; grid-row: 1 / span 2; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; font-variation-settings: 'wdth' 125;
  font-variant-numeric: tabular-nums; line-height: 1; color: var(--kick);
}
.db-time.low { color: #FF6B6B; }

.db-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-4); }
.db-head {
  padding: var(--s-1) var(--s-2) var(--s-2); font-weight: 800; font-size: var(--step--1); font-variation-settings: 'wdth' 80;
  border-top: 4px solid var(--tc); color: #FFFFFF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t-black .db-head { border-top-color: #8C98A4; }   /* black on navy needs a lighter edge */
.db-col ol { list-style: none; padding: 0; display: grid; gap: 6px; align-content: start; min-height: calc(3 * 40px + 2 * 6px); }
.db-col li {
  display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 40px;
  padding: 6px 8px; border-radius: 6px; background: #FFFFFF; color: var(--ink); font-size: var(--step--1);
  border-left: 4px solid var(--tc);
}
.t-black li { border-left-color: var(--t-black); }
.db-col li b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.db-col li span { flex: none; font-size: 12px; font-weight: 800; color: var(--ink-muted); }
.db-col li.cap { background: #DCE3EA; }
.db-col li.next { background: transparent; border: 1.5px dashed #5B7189; color: #A9B6C3; justify-content: center; }
.db-col li.next b { font-weight: 600; }
.db-col li.landed { animation: land 1.4s ease-out; }
@keyframes land {
  0% { transform: translateY(-10px) scale(1.04); box-shadow: 0 0 0 3px var(--kick); }
  35% { transform: none; box-shadow: 0 0 0 3px var(--kick); }
  100% { box-shadow: 0 0 0 3px transparent; }
}
.db-last { margin-top: var(--s-4); max-width: none; padding-top: var(--s-3); border-top: 1px solid #2A3D52; color: #C9D3DD; font-size: var(--step--1); font-weight: 600; min-height: 2.6em; }
.db-last b { color: #FFFFFF; }
.board-wrap figcaption { position: relative; z-index: 1; margin-top: var(--s-4); font-size: var(--step--1); color: var(--ink-muted); max-width: 30rem; }
@media (max-width: 26rem) { .db-col li { padding-inline: 6px; } .db-col li span { display: none; } }

/* ---------- a whole season ---------- */
.season { padding-block: clamp(3rem, 7vw, 6rem); background: var(--ice-2); border-block: 1px solid var(--line); scroll-margin-top: 0; }
.season h2, .site-band h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 16ch; }
.season .sub { margin-top: var(--s-4); font-size: var(--step-1); color: var(--ink-muted); max-width: 38rem; }

/* The steps hang off a red goal line, one puck per step */
.steps { list-style: none; padding: 0 0 0 var(--s-6); margin-top: clamp(2rem, 5vw, 3.5rem); position: relative; }
/* the line runs from each puck to the next, and stops at the last one */
.step:not(:last-child)::after { content: ''; position: absolute; left: calc(-1 * var(--s-6) + 7px); top: 12px; bottom: -12px; width: 3px; background: var(--goal-red); }
.step { position: relative; display: grid; gap: var(--s-3) var(--s-6); padding-bottom: clamp(2rem, 4vw, 3rem); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; z-index: 1; left: calc(-1 * var(--s-6)); top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--ice-2); }
.when { font-weight: 800; color: var(--goal-red); font-size: var(--step--1); }
.what h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 900; font-variation-settings: 'wdth' 70; }
.what p { margin-top: var(--s-2); color: var(--ink-muted); max-width: 34rem; }
@media (min-width: 56rem) {
  .step { grid-template-columns: 9.5rem minmax(0, 1fr) 19rem; align-items: start; }
  .when { padding-top: 0.45rem; }
}

/* Little pieces of the real screens */
.pk-card {
  display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--ice); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 29, 44, 0.05); max-width: 22rem;
}
.pk-label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-muted); }
.pk-chips, .pk-scale, .pk-keys { display: flex; gap: 6px; flex-wrap: wrap; }
.pk-chip { padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 700; font-size: var(--step--1); color: var(--ink-muted); }
.pk-chip.on { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.pk-scale span, .pk-keys span { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1.5px solid var(--line); border-radius: var(--radius-m); font-weight: 800; font-variation-settings: 'wdth' 110; }
.pk-scale .on, .pk-keys .on { background: var(--blue-line); border-color: var(--blue-line); color: #FFFFFF; }
.pk-bib { grid-template-columns: auto 1fr; align-items: center; column-gap: var(--s-4); }
.pk-bibnum { grid-row: span 2; font-size: 3.5rem; font-weight: 900; font-variation-settings: 'wdth' 62; line-height: 0.9; color: var(--ink); }
.pk-bibskill b { font-size: var(--step-1); }
.pk-keys { grid-column: 2; }
.pk-keys span { width: 36px; height: 36px; }
.bal { display: grid; grid-template-columns: 3.25rem 1fr 2rem; align-items: center; gap: var(--s-2); font-size: var(--step--1); }
.bal b { font-weight: 700; }
.bal em { font-style: normal; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bar { display: block; height: 10px; border-radius: 5px; background: var(--tc); }
.bar.w32 { width: 80%; } .bar.w33 { width: 82.5%; } .bar.w34 { width: 85%; } .bar.w35 { width: 87.5%; }
.pk-sched { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: var(--s-3); }
.slot { display: grid; gap: 4px; align-content: start; min-height: 6rem; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--ice-2); }
.slot.open { border-style: dashed; }
.gm { padding: 6px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--ice); font-size: 12px; font-weight: 700; line-height: 1.6; }
.gm.lifted { transform: rotate(-4deg) translate(6px, -4px); border-color: var(--ink); box-shadow: 0 8px 16px rgba(15, 29, 44, 0.18); }
.drop { margin: auto; font-size: 12px; color: var(--ink-muted); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--tc); margin-right: 5px; vertical-align: -1px; }
.rsvp { display: flex; gap: 6px; }
.rsvp span { flex: 1; text-align: center; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--radius-m); font-weight: 800; font-size: var(--step--1); color: var(--ink-muted); }
.rsvp .in { background: #1D7A46; border-color: #1D7A46; color: #FFFFFF; }
.pair { display: grid; gap: 4px; }
.pair span { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; font-size: var(--step--1); }
.pos { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 5px; border: 1px solid var(--line); background: var(--ice-2); font-style: normal; font-size: 12px; font-weight: 800; }
.pk-stand { gap: 0; padding-block: var(--s-2); }
.pk-stand .row { display: grid; grid-template-columns: 1fr repeat(4, 2.1rem); align-items: center; padding: 7px 0; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.pk-stand .row + .row { border-top: 1px solid var(--line); }
.pk-stand .row.head { color: var(--ink-muted); font-size: 12px; }
.pk-stand b { font-weight: 700; }
.pk-stand .row.head b { font-weight: 700; }
.pk-stand em { font-style: normal; text-align: right; }
.pk-stand .row:not(.head) em:last-child { font-weight: 900; }

/* scorekeeping peek: a tiny scoring screen */
.pk-score { gap: var(--s-2); }
.ps-board { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); font-size: var(--step--1); }
.ps-board b { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; }
.ps-board b .dot { margin: 0; }
.ps-board em { font-style: normal; font-weight: 900; font-size: var(--step-2); font-variation-settings: 'wdth' 110; font-variant-numeric: tabular-nums; }
.ps-acts { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 4px; }
.ps-acts span { text-align: center; padding: 6px 2px; border: 1.5px solid var(--ink); border-radius: 6px; font-size: 11px; font-weight: 800; }
.ps-acts .ps-goal { background: var(--ink); color: #FFFFFF; }
.ps-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ps-tiles span { display: flex; flex-direction: column; align-items: center; padding: 4px 2px 6px; border: 1.5px solid var(--line); border-top: 5px solid var(--tc); border-radius: 6px; font-size: 11px; font-weight: 700; }
.ps-tiles b { font-size: var(--step-1); font-weight: 900; line-height: 1.1; }
.ps-tiles .on { background: var(--ink); border-color: var(--ink); border-top-color: var(--tc); color: #FFFFFF; }

/* ---------- the league's own site ---------- */
.site-band { padding-block: clamp(3rem, 7vw, 6rem); }
.site-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .site-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.site-copy > p { margin-top: var(--s-4); font-size: var(--step-1); color: var(--ink-muted); line-height: 1.55; }
.ticks { list-style: none; padding: 0; margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.ticks li { position: relative; padding-left: 30px; font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.3em; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--blue-line); }

.mini-site { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #FFFFFF; box-shadow: 0 2px 4px rgba(15, 29, 44, 0.06), 0 20px 40px -16px rgba(15, 29, 44, 0.25); }
.ms-head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); background: #0B5D3B; color: #FFFFFF; border-bottom: 5px solid #E8B92E; }
.ms-logo { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #E8B92E; color: #0B5D3B; font-weight: 900; font-variation-settings: 'wdth' 70; }
.ms-name { font-weight: 900; font-variation-settings: 'wdth' 70; font-size: var(--step-1); line-height: 1.1; }
.ms-nav { display: flex; gap: var(--s-4); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); font-size: var(--step--1); font-weight: 700; color: var(--ink-muted); overflow: hidden; }
.ms-nav .on { color: var(--ink); box-shadow: inset 0 -3px 0 #E8B92E; padding-bottom: 4px; }
.ms-body { display: grid; gap: var(--s-2); padding: var(--s-4); }
.ms-game { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border: 1px solid var(--line); border-radius: var(--radius-m); font-size: var(--step--1); font-weight: 700; }
.ms-game b { font-variation-settings: 'wdth' 110; font-variant-numeric: tabular-nums; min-width: 3.2rem; }
/* Dasher boards: sponsor panels above a yellow kick plate */
.boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px 3px 0; background: var(--line); border-top: 1px solid var(--line); border-bottom: 10px solid var(--kick); }
.ad { display: grid; place-items: center; min-height: 52px; padding: var(--s-1); background: #FFFFFF; text-align: center; font-weight: 900; font-size: 12px; line-height: 1.1; font-variation-settings: 'wdth' 70; color: var(--ink); }
.ad:nth-child(1) { color: #C8282E; } .ad:nth-child(2) { color: #1F5FD0; } .ad:nth-child(3) { color: #0B6E6E; } .ad:nth-child(4) { color: #7A4A12; }

/* ---------- getting started ---------- */
.cta { padding-block: clamp(3rem, 7vw, 5rem); background: var(--ink); color: #FFFFFF; }
.cta-grid { display: grid; gap: var(--s-7); }
@media (min-width: 52rem) { .cta-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .cta-part + .cta-part { padding-left: var(--s-8); border-left: 3px solid var(--goal-red); } }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta p { margin-top: var(--s-3); color: #C9D3DD; font-size: var(--step-1); line-height: 1.55; }
.cta .btn { margin-top: var(--s-5); min-height: 52px; padding-inline: var(--s-6); font-size: var(--step-1); }
.btn-light { background: #FFFFFF; border-color: #FFFFFF; color: var(--ink); }
.btn-light:hover { background: #E6ECF2; border-color: #E6ECF2; }
.btn-ghost { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #FFFFFF; }
.cta :focus-visible { outline-color: var(--kick); }
.tell-done { font-size: var(--step--1) !important; color: var(--kick) !important; }

/* ---------- footer ---------- */
.site-foot { padding-block: var(--s-6); color: var(--ink-muted); font-size: var(--step--1); }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.foot-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.copy { flex-basis: 100%; }
.deleted-note { width: calc(100% - 2 * var(--s-4)); max-width: 72rem; margin: var(--s-4) auto 0; padding: var(--s-3) var(--s-4); border-radius: 10px; background: #101D32; color: #FFFFFF; font-weight: 700; }
