:root {
  color-scheme: light;
  --ink: #11151c;
  --muted: rgba(17, 21, 28, 0.56);
  --quiet: rgba(17, 21, 28, 0.36);
  --line: rgba(17, 21, 28, 0.09);
  --canvas: #e9ecf1;
  --surface: #f6f7f9;
  --paper: #ffffff;
  --green: #059669;
  --amber: #f59e0b;
  --red: #dc5a54;
  --score-perfect: #4fad5b;
  --score-good: #bfe5a8;
  --score-medium: var(--amber);
  --score-bad: var(--red);
  --shadow: 0 34px 90px rgba(17, 21, 28, 0.16), 0 0 0 1px rgba(17, 21, 28, 0.08);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); -webkit-text-size-adjust: 100%; touch-action: manipulation; }

body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }

button, input { font: inherit; }
button { color: inherit; touch-action: manipulation; -webkit-user-select: none; user-select: none; }

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(260px, 360px);
  place-content: center;
  align-items: center;
  gap: clamp(44px, 8vw, 120px);
  padding: 34px;
  overflow: hidden;
  position: relative;
}

.site-shell::before {
  content: "";
  position: fixed;
  width: 42vw;
  height: 42vw;
  min-width: 520px;
  min-height: 520px;
  left: -20vw;
  bottom: -30vw;
  border: 1px solid rgba(17, 21, 28, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(17, 21, 28, 0.025), 0 0 0 144px rgba(17, 21, 28, 0.018);
  pointer-events: none;
}

.app-frame {
  width: 100%;
  height: min(880px, calc(100vh - 42px));
  min-height: 690px;
  background: var(--surface);
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.app-frame::before {
  content: "";
  width: 112px;
  height: 30px;
  border-radius: 999px;
  background: var(--ink);
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.screen {
  height: 100%;
  overflow-y: auto;
  padding: 64px 20px 26px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar { display: none; }
.screen--loading { display: grid; place-content: center; text-align: center; }

.eyebrow {
  margin: 0;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-logo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4.68 / 1;
}

.brand-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118%;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.brand-logo--difficulty { width: 142px; }
.brand-logo--desktop { width: min(290px, 100%); margin-bottom: 24px; transform: translateY(-12px); }
/* The Fulltime logo links to the platform home. */
a.brand-logo { display: block; border-radius: 6px; }
a.brand-logo:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); outline-offset: 2px; }

h1, h2, p { text-wrap: pretty; }
h1 { margin: 0; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.025em; }

.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.brand-block { display: grid; gap: 5px; }
.date-line { color: var(--muted); font-family: "DM Mono", ui-monospace, monospace; font-size: 0.72rem; }
.topbar-actions { display: grid; gap: 6px; min-width: 88px; }
.reshuffle-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font: 600 .72rem "DM Mono", ui-monospace, monospace;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.reshuffle-button:hover { border-color: rgba(17, 21, 28, .18); background: #eef0f4; transform: translateY(-1px); }
.reshuffle-button:active { transform: translateY(1px); }
.reshuffle-button:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); outline-offset: 2px; }
.language-toggle {
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(17, 21, 28, .055);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.language-toggle button {
  min-height: 26px;
  padding: 0 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 600 .65rem "DM Mono", ui-monospace, monospace;
  letter-spacing: .07em;
}
.language-toggle button.is-active { background: var(--ink); color: #fff; }
.language-toggle button:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); outline-offset: 2px; }

.round-list { display: grid; gap: 11px; margin-top: 26px; }

.round-card {
  position: relative;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  display: grid;
  gap: 13px;
  overflow: hidden;
}

.round-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; }
.round-card--daily { box-shadow: 0 4px 18px rgba(17, 21, 28, 0.06); }
/* The daily game climbs from easy to hard, and so does its accent. */
.round-card--daily::before { background: linear-gradient(180deg, var(--green), var(--amber) 55%, var(--red)); }
.round-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.round-title { display: flex; align-items: center; gap: 10px; }
.round-title strong { font-size: 1.08rem; }
.difficulty-dots { color: var(--quiet); font: 0.68rem "DM Mono", monospace; letter-spacing: 0.08em; }
.round-status { color: var(--muted); font: 0.66rem "DM Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.round-card p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.round-plan { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.round-plan__item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; font-size: 0.86rem; font-weight: 600; }
.round-plan__index { width: 12px; font: 0.68rem "DM Mono", monospace; }
.round-plan__item--easy .round-plan__index { color: var(--green); }
.round-plan__item--medium .round-plan__index { color: var(--amber); }
.round-plan__item--hard .round-plan__index { color: var(--red); }
.round-plan__item .difficulty-dots { margin-left: auto; }

.primary-button, .secondary-button {
  border: 0;
  min-height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.primary-button { color: #fff; background: var(--ink); box-shadow: 0 7px 16px rgba(17, 21, 28, 0.16); }
.secondary-button { background: #f1f3f7; }
.primary-button:hover { background: #232a35; transform: translateY(-1px); }
.secondary-button:hover { background: #e8ebf0; }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button:focus-visible, .secondary-button:focus-visible { outline: 3px solid rgba(5, 150, 105, 0.25); outline-offset: 2px; }

.home-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 0.7rem "DM Mono", monospace;
}

.score-help { min-height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: 600 .82rem "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.score-help__icon { width: 22px; height: 22px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; font: 700 .72rem/1 "DM Mono", ui-monospace, monospace; transition: background 150ms ease, color 150ms ease; }
.score-help:hover .score-help__icon { background: var(--ink); color: #fff; }
.score-help:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); outline-offset: 3px; border-radius: 8px; }

/* Scoring bottom sheet: sits over the app frame, so it fills the phone on mobile and the mock-up on desktop. */
.sheet-layer { position: absolute; inset: 0; z-index: 20; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(17, 21, 28, .38); opacity: 0; transition: opacity 240ms ease; }
.scoring-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 40px); display: flex; flex-direction: column; padding-bottom: max(16px, env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--paper); box-shadow: 0 -18px 40px rgba(17, 21, 28, .14); outline: none; transform: translateY(100%); transition: transform 280ms cubic-bezier(.2, .8, .2, 1); }
.sheet-layer.is-open .sheet-backdrop { opacity: 1; }
.sheet-layer.is-open .scoring-sheet { transform: translateY(0); }
.scoring-sheet__handle { width: 40px; height: 4px; margin: 10px auto 2px; border-radius: 999px; background: rgba(17, 21, 28, .16); }
.scoring-sheet__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 20px 4px; }
.scoring-sheet__header h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.015em; }
.sheet-carousel { flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.sheet-carousel::-webkit-scrollbar { display: none; }
.sheet-carousel:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); outline-offset: -3px; }
.sheet-slide { flex: 0 0 100%; min-width: 0; display: grid; align-content: start; gap: 10px; padding: 10px 20px 12px; overflow-y: auto; scroll-snap-align: start; scroll-snap-stop: always; }
.sheet-slide__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-slide__title { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.sheet-badge { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: rgba(5, 150, 105, .1); color: var(--green); font: 500 .82rem "DM Mono", ui-monospace, monospace; }
.sheet-slide__body { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.sheet-example { padding: 2px 14px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sheet-example__scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(17, 21, 28, .07); }
.sheet-example__scores div { display: grid; gap: 2px; }
.sheet-example__scores span { color: var(--muted); font: .62rem "DM Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.sheet-example__scores strong { font: 600 1.15rem "DM Mono", ui-monospace, monospace; }
.sheet-example .result-row { min-height: 38px; font-size: .82rem; }
.sheet-example .result-row--sub { min-height: 30px; margin-top: -6px; font-size: .76rem; }
.sheet-example .result-total { min-height: 42px; font-size: .84rem; }
.sheet-totals { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sheet-totals li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; color: var(--muted); font-size: .86rem; line-height: 1.35; }
.sheet-totals__pick { color: var(--ink); font: 500 .8rem "DM Mono", ui-monospace, monospace; }
.sheet-totals b { color: var(--green); font: 500 .82rem "DM Mono", ui-monospace, monospace; }
.sheet-slide__note { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; line-height: 1.45; }
.scoring-sheet__footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 20px 0; }
.scoring-sheet__footer .secondary-button, .scoring-sheet__footer .primary-button { min-height: 42px; padding: 0 16px; }
.scoring-sheet__footer .secondary-button { justify-self: start; }
.scoring-sheet__footer .secondary-button:disabled { opacity: .4; cursor: default; }
.scoring-sheet__footer .primary-button { justify-self: end; min-width: 108px; }
.sheet-dots { display: flex; align-items: center; gap: 6px; }
.sheet-dot { position: relative; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(17, 21, 28, .16); cursor: pointer; transition: width 200ms ease, background 200ms ease; }
.sheet-dot::after { content: ""; position: absolute; inset: -9px -4px; }
.sheet-dot.is-active { width: 18px; background: var(--ink); }
.sheet-dot:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); outline-offset: 3px; }

.nowrap { white-space: nowrap; }

.desk-note { max-width: 340px; position: relative; z-index: 1; container-type: inline-size; }
/* Each tagline line stays on one row; size so the longest line fits the column. */
.desk-note h2 { margin: 16px 0 18px; font-size: min(4rem, 100cqi / 9.4); line-height: 0.98; letter-spacing: -0.055em; white-space: nowrap; }
:root:lang(en) .desk-note h2 { font-size: min(4rem, 100cqi / 12.9); }
.desk-note > p:not(.eyebrow) { max-width: 31ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.desk-note > p.intro-question { max-width: none; margin-top: 14px; color: var(--ink); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.desk-note .intro-question + h2 { margin-top: 8px; }
.score-key { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 34px; border: 1px solid rgba(17,21,28,.08); border-radius: 14px; overflow: hidden; background: rgba(17,21,28,.08); }
.score-key span { display: grid; gap: 5px; min-height: 78px; padding: 13px 10px; background: rgba(255,255,255,.42); color: var(--muted); font: .7rem/1.3 "DM Mono", monospace; }
.score-key b { color: var(--ink); font-size: 1rem; }
.score-key i { font-style: normal; }

.game-header { display: grid; gap: 13px; }
.game-header__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.round-label { display: flex; align-items: center; gap: 11px; color: var(--muted); font: .72rem "DM Mono", ui-monospace, monospace; letter-spacing: .09em; text-transform: uppercase; }
.icon-button { width: 32px; height: 32px; padding: 0 0 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--muted); cursor: pointer; font-size: 1.35rem; line-height: 1; }
.icon-button:hover { background: #eef0f4; }
.icon-button:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); }
.points-total { font: 500 .78rem "DM Mono", ui-monospace, monospace; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.progress__segment { height: 4px; border-radius: 999px; background: rgba(17, 21, 28, .12); }
.progress__segment.is-current { background: var(--ink); }
.progress__segment.is-perfect { background: var(--score-perfect); }
.progress__segment.is-good { background: var(--score-good); }
.progress__segment.is-medium { background: var(--score-medium); }
.progress__segment.is-bad { background: var(--score-bad); }

.match-card { margin-top: 24px; padding: 20px 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); text-align: center; }
.match-competition { color: var(--ink); font-weight: 700; }
.match-stage { margin: 7px 0 0; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.015em; }
.match-date, .match-venue { margin: 4px 0 0; color: var(--muted); font: .76rem/1.35 "DM Mono", ui-monospace, monospace; }
.match-competition + .match-date { margin-top: 8px; }
.match-venue { margin-top: 2px; font-size: .69rem; }
.card-divider { height: 1px; margin: 18px 0; background: var(--line); }
.teams-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 8px; }
.team-column { min-width: 0; display: grid; grid-template-rows: 64px minmax(36px, auto) 72px; justify-items: center; gap: 9px; }
.crest { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.crest img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.crest--large { width: 64px; height: 64px; }
.crest--tiny { width: 28px; height: 28px; }
.crest--tiny img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.team-name { min-height: 36px; display: grid; place-items: center; font-size: .9rem; font-weight: 600; line-height: 1.25; }
.score-input { width: 74px; height: 72px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); cursor: pointer; font: 700 2.25rem/1 "DM Mono", ui-monospace, monospace; transition: border 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.score-input.is-active { border-color: var(--green); box-shadow: 0 0 0 4px rgba(5, 150, 105, .12); transform: translateY(-1px); }
.score-input:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); outline-offset: 2px; }
.score-dash { width: 20px; height: 72px; align-self: end; display: grid; place-items: center; padding: 0; color: var(--quiet); font: 1.3rem/1 "DM Mono", monospace; }
.regulation-note { margin: 16px 0 0; color: var(--muted); font: .67rem "DM Mono", ui-monospace, monospace; }
.keypad { margin: 14px 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.keypad button { height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); cursor: pointer; font: 1.05rem "DM Mono", ui-monospace, monospace; }
.keypad button:hover { background: #eef0f4; }
.keypad button:active { transform: translateY(1px); }
.keypad button:focus-visible { outline: 3px solid rgba(5, 150, 105, .25); }
.keypad .keypad__delete { background: #eceef2; color: var(--muted); }
.action-button { width: 100%; }
.action-button:disabled { background: #dfe2e7; color: rgba(17, 21, 28, .35); box-shadow: none; cursor: not-allowed; transform: none; }

.reveal-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 9px; }
.reveal-team { min-width: 0; display: grid; grid-template-rows: 64px minmax(30px, auto); justify-items: center; gap: 9px; font-size: .82rem; font-weight: 600; line-height: 1.2; }
.actual-score { display: flex; align-items: center; gap: 8px; letter-spacing: -.04em; }
.actual-score strong { font-size: 3rem; line-height: 1; }
.actual-score span { display: grid; place-items: center; color: rgba(17, 21, 28, .2); font-size: 1.4rem; line-height: 1; }
.score-basis { margin: 8px 0 0; color: var(--muted); font: .65rem "DM Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; }
.your-score { margin: 18px auto 0; width: fit-content; min-height: 32px; padding: 0 14px; border-radius: 999px; background: #f1f3f7; display: flex; align-items: center; gap: 9px; font: .72rem "DM Mono", ui-monospace, monospace; }
.your-score__status { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.your-score__status.is-perfect { background: var(--score-perfect); }
.your-score__status.is-good { background: var(--score-good); }
.your-score__status.is-medium { background: var(--score-medium); }
.your-score__status.is-bad { background: var(--score-bad); }
.your-score span { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.your-score strong { font-size: .85rem; }
.results-card { margin-top: 12px; padding: 6px 18px 8px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.result-row { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(17, 21, 28, .07); font-size: .86rem; }
.result-row__label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.result-icon { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #eceef2; color: var(--quiet); font-style: normal; font-size: .72rem; font-weight: 700; }
.result-icon.is-correct { background: var(--green); color: #fff; }
/* Goal difference sits under the outcome row as part of it: no divider between them, right-aligned. */
.result-row:has(+ .result-row--sub) { border-bottom: 0; }
.result-row--sub { min-height: 34px; margin-top: -8px; padding-bottom: 6px; justify-content: flex-end; gap: 14px; color: var(--muted); font-size: .78rem; }
.result-row--sub .result-row__label { gap: 8px; }
.result-row--sub .result-icon { width: 16px; height: 16px; font-size: .6rem; }
.points-included { color: var(--quiet); font: 500 .74rem "DM Mono", ui-monospace, monospace; }
.points-earned, .points-empty { font: 500 .8rem "DM Mono", ui-monospace, monospace; }
.points-earned { color: var(--green); }
.points-empty { color: var(--quiet); }
.result-total { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; font-weight: 600; }
.result-total strong { font: 500 1rem "DM Mono", ui-monospace, monospace; }
.result-total small { color: var(--quiet); font-size: inherit; }
.summary-header { display: grid; justify-items: center; gap: 5px; text-align: center; }
.summary-header h1 { font-size: 1.4rem; }
.summary-score { margin-top: 18px; padding: 21px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); text-align: center; }
.summary-score > div:first-child { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.summary-score strong { font-size: 3.8rem; line-height: 1; letter-spacing: -.055em; }
.summary-score > div:first-child span { color: var(--quiet); font: 1.15rem "DM Mono", monospace; }
.score-track { width: 100%; height: 6px; margin-top: 13px; border-radius: 999px; overflow: hidden; background: #eceef2; }
.score-track span { display: block; height: 100%; border-radius: inherit; transition: width 400ms ease; }
.score-track span.is-perfect { background: var(--score-perfect); }
.score-track span.is-good { background: var(--score-good); }
.score-track span.is-medium { background: var(--score-medium); }
.score-track span.is-bad { background: var(--score-bad); }
.summary-score p { color: var(--muted); font: .75rem/1.45 "DM Mono", monospace; }
.summary-score__message { margin: 14px 0 0; }
.summary-score__message strong { color: var(--ink); font: 700 1.2rem/1.3 "Archivo", sans-serif; letter-spacing: -.015em; }
.summary-score__stats { margin: 5px 0 0; }
.summary-list { margin-top: 12px; padding: 4px 16px 6px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.summary-row { min-height: 61px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(17, 21, 28, .07); }
.summary-row:last-child { border-bottom: 0; }
.summary-row__index { width: 12px; color: var(--quiet); font: .68rem "DM Mono", monospace; }
.summary-row__crests { width: 59px; display: flex; align-items: center; gap: 3px; }
.summary-row__crests .crest + .crest { margin-left: 0; }
.summary-row__match { flex: 1; min-width: 0; display: grid; gap: 3px; }
.summary-row__match strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.summary-row__match span { color: var(--muted); font: .69rem "DM Mono", monospace; }
.summary-row__points { font: 600 .78rem "DM Mono", monospace; }
.summary-row__points.is-perfect { color: var(--score-perfect); }
.summary-row__points.is-good { color: var(--score-good); }
.summary-row__points.is-medium { color: var(--score-medium); }
.summary-row__points.is-bad { color: var(--score-bad); }
.summary-actions { margin-top: 12px; display: grid; gap: 8px; }
.daily-countdown {
  min-height: 64px;
  margin-top: 12px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.round-card .daily-countdown { margin-top: 0; }
.daily-countdown span { color: rgba(255, 255, 255, .68); font: .68rem/1.3 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .045em; }
.daily-countdown strong { flex: 0 0 auto; font: 600 1.2rem "DM Mono", monospace; letter-spacing: .055em; }
.shared-screen { display: flex; flex-direction: column; }
.shared-header { display: grid; justify-items: center; gap: 8px; text-align: center; }
.brand-logo--shared { width: 158px; margin-bottom: 4px; }
.shared-header h1 { max-width: 18ch; }
.shared-score { width: 100%; margin-top: 16px; }
.shared-score__label { margin: 0 0 8px; color: var(--muted); font: .68rem "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.shared-games { margin-top: 12px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.shared-game { min-height: 57px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 18px; align-items: center; gap: 8px; border-bottom: 1px solid rgba(17, 21, 28, .07); }
.shared-game:last-child { border-bottom: 0; }
.shared-team { min-width: 0; display: flex; align-items: center; gap: 7px; }
.shared-team:nth-of-type(2) { flex-direction: row-reverse; text-align: right; }
.shared-team strong { overflow: hidden; text-overflow: ellipsis; font: 600 .78rem "DM Mono", monospace; }
.shared-versus { color: var(--quiet); font: .62rem "DM Mono", monospace; text-transform: uppercase; }
.shared-result { width: 13px; height: 13px; border-radius: 50%; }
.shared-result.is-perfect { background: var(--score-perfect); }
.shared-result.is-good { background: var(--score-good); }
.shared-result.is-medium { background: var(--score-medium); }
.shared-result.is-bad { background: var(--score-bad); }
.shared-play { width: 100%; margin-top: 12px; text-decoration: none; }

.primary-button.is-processing, .secondary-button.is-processing { cursor: wait; background: #262d38; animation: button-breathe 520ms ease-in-out infinite alternate; }
.screen.is-exiting-start { pointer-events: none; animation: screen-out-start 180ms ease-in forwards; }
.screen.is-entering-start { animation: screen-in-start 340ms cubic-bezier(.2, .8, .2, 1) both; }
.screen.is-exiting-reveal { pointer-events: none; animation: screen-out-up 180ms ease-in forwards; }
.screen.is-entering-reveal { animation: screen-in-up 340ms cubic-bezier(.2, .8, .2, 1) both; }
.screen.is-exiting-next { pointer-events: none; animation: screen-out-left 180ms ease-in forwards; }
.screen.is-entering-next { animation: screen-in-right 340ms cubic-bezier(.2, .8, .2, 1) both; }
.screen.is-exiting-home { pointer-events: none; animation: screen-out-right 180ms ease-in forwards; }
.screen.is-entering-home { animation: screen-in-left 340ms cubic-bezier(.2, .8, .2, 1) both; }
/* Arriving from the platform home (index.html): the entrance of stepping to the next screen. */
.is-arriving .app-frame > .screen,
.is-arriving .desk-note { animation: screen-in-right 340ms cubic-bezier(.2, .8, .2, 1) both; }
/* Leaving for the platform home through the logo: the exit of going back to a home screen. */
.site-shell.is-leaving .app-frame > .screen,
.site-shell.is-leaving .desk-note { pointer-events: none; animation: screen-out-right 180ms ease-in forwards; }

@keyframes button-breathe {
  from { box-shadow: 0 7px 16px rgba(17, 21, 28, .16); }
  to { box-shadow: 0 8px 22px rgba(5, 150, 105, .24); }
}

@keyframes screen-out-start {
  to { opacity: 0; transform: translateY(-6px) scale(.99); }
}

@keyframes screen-in-start {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes screen-out-up {
  to { opacity: 0; transform: translateY(-8px) scale(.995); }
}

@keyframes screen-in-up {
  from { opacity: 0; transform: translateY(12px) scale(.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes screen-out-left {
  to { opacity: 0; transform: translateX(-14px); }
}

@keyframes screen-in-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes screen-out-right {
  to { opacity: 0; transform: translateX(14px); }
}

@keyframes screen-in-left {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-height: 760px) {
  .match-card { margin-top: 16px; padding-top: 16px; }
  .crest--large { width: 52px; height: 52px; }
  .team-column { grid-template-rows: 52px minmax(36px, auto) 60px; }
  .reveal-team { grid-template-rows: 52px minmax(30px, auto); }
  .score-input { width: 66px; height: 60px; font-size: 2rem; }
  .score-dash { height: 60px; }
  .keypad button { height: 38px; }
  .regulation-note { margin-top: 11px; }
}

@media (max-width: 820px) {
  .site-shell { display: block; min-height: 100dvh; padding: 0; }
  .app-frame { width: 100%; height: 100dvh; min-height: 620px; border-radius: 0; box-shadow: none; }
  .app-frame::before, .desk-note, .site-shell::before { display: none; }
  .screen { padding-top: 32px; }
}

@media (max-width: 380px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  .crest--large { width: 54px; height: 54px; }
  .score-input { width: 66px; }
}

@media (max-height: 760px) and (min-width: 821px) {
  .site-shell { padding: 18px; }
  .app-frame { height: calc(100vh - 36px); min-height: 620px; border-radius: 30px; }
  .screen { padding-top: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
