@font-face {
  font-family: "Saira";
  src: url("./assets/fonts/saira-expanded-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 650 850;
  font-stretch: 125%;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --page: #f5f5f7;
  --surface: #ffffff;
  --ink: #111820;
  --muted: #68737d;
  --line: #d8d8d2;
  --line-dark: #aeb2b3;
  --navy: #0d1d2b;
  --header: #000002;
  --blue-bright: #009fff;
  --red: #c91f37;
  --green: #146c43;
  --green-bg: #e3f2e9;
  --yellow: #76570d;
  --yellow-bg: #f7ebc6;
  --miss: #8b2d3c;
  --miss-bg: #f3dfe3;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: var(--font-ui);
  --body: var(--font-ui);
  --columns:
    minmax(172px, 1.5fr)
    minmax(86px, .76fr)
    minmax(88px, .78fr)
    minmax(94px, .84fr)
    minmax(94px, .84fr)
    minmax(74px, .66fr)
    minmax(72px, .64fr)
    minmax(62px, .54fr)
    minmax(80px, .7fr);
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background-color: #edf3f7;
  background-image:
    linear-gradient(rgba(247, 250, 252, .72), rgba(245, 248, 250, .8)),
    url("./assets/backgrounds/ice-surface.jpg");
  background-position: center, center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  border-radius: 0;
  cursor: pointer;
}

button:active:not(:disabled) {
  transform: scale(.98);
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

:focus-visible {
  outline: 3px solid rgba(201, 31, 55, .25);
  outline-offset: 2px;
}

.container {
  width: min(1020px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 32px;
}

.game-intro {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 3.8fr) auto minmax(min-content, 1fr);
  justify-items: center;
  gap: clamp(18px, 5vh, 48px);
  overflow: hidden;
  padding: clamp(16px, 5vh, 56px) clamp(20px, 5vw, 56px) max(22px, env(safe-area-inset-bottom));
  background: var(--header);
}

.intro-logo-stage {
  position: relative;
  width: min(720px, 100%, 135vh);
  width: min(720px, 100%, 135dvh);
  aspect-ratio: 3.2;
  align-self: end;
  margin-bottom: clamp(8px, 3vh, 28px);
}

.brand-wordmark.intro-logo-fallback {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(-50%);
}

.intro-logo-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.intro-start-button,
.intro-caption {
  font-family: "Saira", var(--font-ui);
  font-style: italic;
  font-stretch: 125%;
  text-transform: uppercase;
}

.intro-start-button {
  --button-travel: 8px;
  position: relative;
  display: grid;
  min-width: 188px;
  isolation: isolate;
  appearance: none;
  border: 0;
  padding: 0 0 var(--button-travel);
  background: transparent;
  color: #f1faff;
  font-size: 1rem;
  font-weight: 850;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.intro-start-button::before {
  position: absolute;
  inset: 5px 0 0;
  z-index: -1;
  border: 1px solid #1a6395;
  border-bottom-color: #164263;
  background:
    repeating-linear-gradient(90deg, rgba(143, 210, 255, .07) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #0c4c7c 65%, #0b3c65 85%, #061b31);
  box-shadow: inset 0 -1px #0e2843, 0 5px 19px rgba(0, 104, 178, .24);
  content: "";
}

.intro-start-face {
  position: relative;
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 1px solid #318fcb;
  padding: 8px 25px;
  background:
    linear-gradient(121deg, rgba(190, 232, 255, .21), transparent 43%, rgba(1, 28, 61, .18)),
    repeating-linear-gradient(0deg, rgba(210, 240, 255, .04) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2997de, #166eaf 52%, #0a5895);
  box-shadow:
    inset 0 2px #91d9ff,
    inset 2px 0 rgba(159, 223, 255, .45),
    inset -2px 0 rgba(0, 47, 99, .46),
    inset 0 -3px #073e71;
  letter-spacing: .045em;
  text-shadow: 0 1px 2px #082a4c;
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), filter .16s ease;
}

.intro-start-face::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(151, 216, 255, .23);
  border-bottom-color: rgba(7, 47, 85, .48);
  content: "";
  pointer-events: none;
}

@media (hover: hover) {
  .intro-start-button:hover:not(:disabled) .intro-start-face {
    transform: translateY(-2px);
    filter: brightness(1.12);
  }
}

.intro-start-button:active:not(:disabled) {
  transform: none;
}

.intro-start-button:active:not(:disabled) .intro-start-face {
  transform: translateY(var(--button-travel));
  filter: brightness(.93);
  transition-duration: .07s;
}

.intro-start-button:focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 4px;
}

.intro-start-button:disabled {
  cursor: wait;
  opacity: .65;
}

.intro-caption {
  align-self: end;
  max-width: 100%;
  margin: 0;
  color: var(--surface);
  font-size: clamp(.75rem, 1.45vw, .9375rem);
  font-weight: 650;
  letter-spacing: .035em;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}

@media (max-height: 440px) {
  .game-intro {
    row-gap: clamp(10px, 4vh, 18px);
  }

  .intro-logo-stage {
    margin-bottom: 4px;
  }

  .intro-caption br {
    display: none;
  }
}

.app-top {
  border-bottom: 1px solid #202a37;
  background: var(--header);
  color: var(--surface);
}

.app-top :focus-visible {
  outline-color: var(--blue-bright);
  outline-offset: -3px;
}

.header-inner {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0;
}

.header-logo {
  display: block;
  width: min(242px, 100%);
  justify-self: start;
}

.header-logo:focus-visible {
  outline-offset: 3px;
}

/* Reuse the wordmark artwork with blue CAP and white SEARCH. */
.brand-wordmark {
  /* Follow the gap between the italic P and S in the wordmark. */
  --wordmark-text-split: 54.1% 0, 53.3% 48%, 51.4% 54%, 51.4% 100%;
  position: relative;
  isolation: isolate;
}

.brand-mark {
  width: 100%;
  height: auto;
}

.brand-wordmark::before,
.brand-wordmark::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.brand-wordmark::before {
  clip-path: polygon(var(--wordmark-text-split), 27.8% 100%, 27.8% 0);
  background: var(--blue-bright);
  mix-blend-mode: multiply;
}

.brand-wordmark::after {
  clip-path: polygon(var(--wordmark-text-split), 100% 100%, 100% 0);
  background: url("./assets/logos/capsearch-wordmark.png") center / 100% 100% no-repeat;
  filter: grayscale(1) brightness(3.3) contrast(1.08);
}

.header-mode,
.mode-toggle {
  display: flex;
  align-self: stretch;
}

.mode-toggle button {
  position: relative;
  min-width: 98px;
  border: 0;
  padding: 0 15px;
  background: transparent;
  color: #a8b5c4;
  font-size: .8125rem;
  font-weight: 750;
}

.mode-toggle button.active {
  color: var(--surface);
}

.mode-toggle button.active::after {
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  background: var(--blue-bright);
  content: "";
}

.mode-toggle button:focus-visible {
  outline: none;
}

.mode-toggle button:focus-visible::after {
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  background: var(--blue-bright);
  content: "";
}

.header-actions {
  justify-self: end;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-icon,
.header-league-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #a8b5c4;
  transition: background-color .14s ease, color .14s ease;
}

.header-icon {
  display: grid;
  width: 39px;
  place-items: center;
  padding: 0;
}

.header-icon.mobile-menu-button {
  display: none;
}

.header-icon:hover,
.header-league-button:hover,
.header-league-button[aria-expanded="true"] {
  background: #111923;
  color: var(--surface);
}

.header-league-button[aria-expanded="true"] {
  color: var(--blue-bright);
}

.header-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-league-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 8px;
  padding-inline: 9px;
  font-size: .8125rem;
  font-weight: 700;
}

.league-shield {
  width: 21px;
  height: 22px;
  object-fit: contain;
}

.game-toolbar {
  display: flex;
  justify-content: center;
}

body.mode-daily .game-toolbar {
  display: none;
}

.mode-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.difficulty-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(13, 29, 43, .35);
}

.difficulty-toggle button {
  min-width: 54px;
  min-height: 26px;
  border: 0;
  padding: 2px 8px;
  color: var(--navy);
  background: transparent;
  font-size: .6875rem;
  font-weight: 700;
  transition: background-color .15s ease, color .15s ease;
}

.difficulty-toggle button + button {
  border-left: 1px solid rgba(13, 29, 43, .35);
}

.difficulty-toggle button:hover {
  background: rgba(31, 111, 172, .12);
}

.difficulty-toggle button[aria-pressed="true"] {
  color: var(--surface);
  background: var(--navy);
}

.difficulty-toggle button:focus-visible {
  outline: 2px solid #2f85be;
  outline-offset: -3px;
}

.game-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  line-height: 1;
}

.game-stat-label {
  font-size: .6875rem;
  font-weight: 600;
}

.game-stat strong {
  color: var(--navy);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.mobile-menu-content {
  width: min(360px, 100%);
  padding: 22px;
}

.mobile-action-list {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.mobile-action-list > button {
  display: grid;
  min-height: 58px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(60, 60, 67, .13);
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(118, 118, 128, .065);
  text-align: left;
}

.mobile-action-list > button:hover {
  border-color: rgba(60, 60, 67, .24);
  background: rgba(118, 118, 128, .11);
}

.mobile-action-list > button > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.mobile-action-list strong {
  font-size: .82rem;
  font-weight: 600;
}

.mobile-action-list small {
  color: var(--muted);
  font-size: .68rem;
}

.mobile-action-list > button > span:last-child {
  color: #8b949b;
  font-size: 1.15rem;
}

.mobile-action-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--navy);
  background: rgba(13, 29, 43, .08);
  font-size: .78rem;
  font-weight: 700;
}

.mobile-instagram-icon {
  color: #a82758;
  background: rgba(193, 53, 103, .1);
}

.mobile-league-icon {
  color: #1f6fac;
  background: rgba(31, 111, 172, .1);
}

.mobile-league-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.mobile-instagram-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--red);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase;
}

.input-wrapper {
  --control-size: 46px;
  position: relative;
  z-index: 5;
  display: grid;
  width: min(860px, 100%);
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 20px auto 14px;
}

.input-heading {
  display: none;
  grid-column: 1 / -1;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.input-heading h2,
.results-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.input-heading .section-kicker {
  display: none;
}

.input-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
}

kbd {
  display: inline-grid;
  min-width: 20px;
  min-height: 20px;
  place-items: center;
  margin-left: 4px;
  border: 1px solid var(--line-dark);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--body);
  font-size: .65rem;
}

.input-container {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 124px var(--control-size);
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.input-field-wrap {
  position: relative;
  min-width: 0;
}

.input-field-wrap > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.input-control {
  position: relative;
}

.round-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #40586a;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
}

.round-won::before {
  width: 12px;
  height: 7px;
  flex: 0 0 auto;
  border-bottom: 2px solid #196748;
  border-left: 2px solid #196748;
  transform: translateY(-1px) rotate(-45deg);
  content: "";
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  width: 42px;
  height: 44px;
  place-items: center;
  transform: translateY(-50%);
  color: #347eae;
  background: transparent;
  pointer-events: none;
}

.search-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

#player-input {
  width: 100%;
  height: var(--control-size);
  border: 1px solid rgba(31, 111, 172, .4);
  border-radius: 0;
  padding: 0 14px 0 42px;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
}

.inline-guess-count {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  column-gap: .25em;
  border: 1px solid rgba(31, 111, 172, .17);
  padding: 3px 7px;
  transform: translateY(-50%);
  background: #edf6fb;
  color: #246c9d;
  font-size: .6rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.input-control.has-guess-count #player-input {
  padding-right: 82px;
}

#player-input::placeholder {
  color: #586874;
  font-weight: 400;
}

#player-input:hover:not(:disabled) {
  border-color: rgba(60, 60, 67, .4);
}

#player-input:focus {
  border-color: #0a84ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 132, 255, .16);
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line-dark);
  padding: 8px 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.btn:hover:not(:disabled) {
  border-color: #969da3;
  background: #f7f7f7;
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.btn-guess,
.btn-next {
  min-width: 0;
  min-height: var(--control-size);
  border-color: #1d3a50 #142d40 #081621;
  color: var(--surface);
  background: linear-gradient(165deg, #234257, #142d40 45%, #0b1925);
  box-shadow:
    inset 0 1px rgba(202, 233, 255, .26),
    inset 0 -3px rgba(0, 0, 0, .28),
    0 3px 7px rgba(13, 29, 43, .2);
}

.btn-guess:hover:not(:disabled),
.btn-next:hover:not(:disabled) {
  border-color: #315978 #21405a #0e2132;
  background: linear-gradient(165deg, #2b4e68, #1b3a52 45%, #0e2233);
}

.btn-guess:active:not(:disabled),
.btn-next:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: inset 0 1px rgba(202, 233, 255, .18), 0 1px 2px rgba(13, 29, 43, .22);
}

.input-container .btn:focus-visible {
  outline: 2px solid #347eae;
  outline-offset: 1px;
}

.btn-silhouette {
  width: var(--control-size);
  height: var(--control-size);
  border-color: #adc7da #adc7da #8daabd;
  padding: 0;
  color: var(--navy);
  background: linear-gradient(180deg, #f8fcff, #e2eef6);
  box-shadow: inset 0 1px #fff, inset 0 -2px rgba(30, 87, 125, .12), 0 2px 4px rgba(13, 29, 43, .09);
}

.btn-silhouette svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.btn-silhouette:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: 0 2px 7px rgba(13, 29, 43, .1);
}

.btn-giveup {
  min-height: 25px;
  flex: 0 0 auto;
  border: 1px solid rgba(228, 246, 255, .42);
  padding: 3px 8px;
  color: var(--surface);
  background: rgba(7, 38, 64, .15);
  font-size: .6875rem;
  font-weight: 650;
  white-space: nowrap;
}

.btn-giveup:hover:not(:disabled) {
  border-color: #e3f4ff;
  background: rgba(7, 38, 64, .32);
}

.btn-giveup:focus-visible {
  outline: 2px solid #e3f4ff;
  outline-offset: 2px;
}

#autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 310px;
  overflow-y: auto;
  margin: 0;
  padding: 5px;
  border: 1px solid rgba(60, 60, 67, .2);
  list-style: none;
  background: var(--surface);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .14);
}

#autocomplete-list:empty {
  display: none;
}

#autocomplete-list .autocomplete-option {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 46px;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 5px 9px;
  cursor: pointer;
  transition: color .18s ease;
}

#autocomplete-list .autocomplete-highlight {
  position: absolute;
  top: 0;
  right: 5px;
  left: 5px;
  z-index: 0;
  height: 46px;
  background: linear-gradient(90deg, #367eae 0%, #20679b 100%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition: transform .16s cubic-bezier(.22, .85, .3, 1), height .16s ease, opacity .12s ease;
  will-change: transform;
}

#autocomplete-list .autocomplete-option:hover,
#autocomplete-list .autocomplete-option.active {
  color: #fff;
}

#autocomplete-list .autocomplete-highlight.visible {
  opacity: 1;
}

.autocomplete-main {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.autocomplete-main > span {
  overflow: hidden;
  font-size: .82rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autocomplete-main small {
  color: var(--muted);
  font-size: .65rem;
  font-weight: 500;
  transition: color .18s ease;
}

#autocomplete-list .autocomplete-option:hover .autocomplete-main small,
#autocomplete-list .autocomplete-option.active .autocomplete-main small {
  color: rgba(255, 255, 255, .76);
}

.autocomplete-team-logo {
  width: 30px;
  height: 30px;
  box-sizing: border-box;
  padding: 3px;
  object-fit: contain;
  transition: background-color .18s ease, transform .18s ease;
}

#autocomplete-list .autocomplete-option:hover .autocomplete-team-logo,
#autocomplete-list .autocomplete-option.active .autocomplete-team-logo {
  background: rgba(255, 255, 255, .94);
  transform: scale(1.06);
}

.results-panel {
  margin-top: 14px;
}

.results-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  border: 1px solid #256a9a;
  border-bottom-color: #144368;
  padding: 7px 11px;
  background:
    linear-gradient(112deg, rgba(153, 217, 250, .2), transparent 65%),
    linear-gradient(180deg, #2b79b0, #1c5e91);
  box-shadow:
    inset 0 1px rgba(211, 240, 255, .45),
    inset 0 -2px rgba(9, 45, 77, .3),
    0 2px #154a73,
    0 4px 10px rgba(24, 83, 123, .18);
}

.results-heading h2 {
  font-size: 1.18rem;
  color: var(--surface);
}

.results-heading h2::before {
  display: none;
}

.result-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  color: rgba(255, 255, 255, .94);
  font-size: .62rem;
  font-weight: 600;
}

.result-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.result-legend i {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(13, 29, 43, .24);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .64), transparent);
  box-shadow: 0 1px 2px rgba(5, 34, 58, .18), inset 0 -1px rgba(13, 29, 43, .12);
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
}

.legend-match i {
  color: var(--green);
  background-color: var(--green-bg);
}

.legend-close i {
  color: var(--yellow);
  background-color: var(--yellow-bg);
}

.legend-miss i {
  color: var(--miss);
  background-color: var(--miss-bg);
}

.guess-table-wrapper {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  padding-bottom: 6px;
  background: transparent;
}

.guess-header,
.guess-row {
  display: grid;
  min-width: 920px;
  grid-template-columns: var(--columns);
  gap: 5px;
}

.guess-header {
  min-height: 34px;
  align-items: center;
  padding: 0 8px;
  border-bottom: 0;
  background: transparent;
}

.guess-header span {
  color: #4d565d;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-align: center;
  text-transform: uppercase;
}

.guess-header span:first-child {
  padding-left: 0;
  text-align: center;
}

#guess-list {
  min-height: 180px;
}

.guess-row {
  margin-top: 9px;
  align-items: stretch;
  padding: 0 8px;
  border-bottom: 0;
}

.guess-row:last-child {
  border-bottom: 0;
}

.guess-row.new .guess-cell {
  animation: tile-in .2s both ease-out;
  animation-delay: calc(var(--cell-index) * 25ms);
}

.guess-cell {
  --tile-face: var(--surface);
  --tile-frame: var(--navy);
  --tile-edge: var(--navy);
  position: relative;
  display: grid;
  height: 84px;
  min-height: 84px;
  place-items: center;
  align-content: center;
  gap: 2px;
  overflow: hidden;
  border: 1px solid var(--tile-frame);
  padding: 6px 5px 9px;
  color: var(--ink);
  background-color: var(--tile-face);
  background-image: linear-gradient(155deg, rgba(255, 255, 255, .58), transparent 58%, rgba(13, 29, 43, .06));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .88),
    inset 1px 0 rgba(255, 255, 255, .45),
    inset -1px 0 rgba(13, 29, 43, .13),
    inset 0 -1px rgba(13, 29, 43, .25),
    inset 0 -4px var(--tile-edge),
    inset 0 -5px rgba(255, 255, 255, .66),
    0 2px 4px rgba(13, 29, 43, .14);
  text-align: center;
}

.guess-cell.correct {
  --tile-face: #e1f0e7;
  --tile-frame: #41795e;
  --tile-edge: #2c7651;
  color: #14573a;
}

.guess-cell.near-correct {
  --tile-face: #f7edcf;
  --tile-frame: #987121;
  --tile-edge: #b88a2b;
  color: #65490b;
}

.guess-cell.incorrect {
  --tile-face: #f5e4e8;
  --tile-frame: #9c5664;
  --tile-edge: #a8495d;
  color: #742637;
}

.cell-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1;
}

.media-only .cell-value {
  width: 100%;
}

.media-only .cell-hint {
  display: none;
}

.cell-hint {
  min-height: 10px;
  font-size: .54rem;
  font-weight: 750;
  text-transform: uppercase;
}

.status-mark {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--tile-frame);
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .58));
  box-shadow: inset 0 1px #fff, 0 1px 2px rgba(13, 29, 43, .14);
  font-size: .6rem;
  font-weight: 900;
}

.correct .status-mark::before {
  content: "✓";
}

.near-correct .status-mark::before {
  content: "~";
}

.incorrect .status-mark::before {
  content: "×";
}

.mobile-cell-label {
  display: none;
}

.identity-cell {
  grid-template-columns: 68px minmax(0, 1fr);
  place-items: center start;
  gap: 7px;
  padding: 3px 20px 5px 3px;
  text-align: left;
}

.headshot {
  width: 68px;
  height: 76px;
  align-self: center;
  justify-self: center;
  object-fit: contain;
  object-position: center bottom;
}

.identity-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.identity-copy strong {
  overflow: hidden;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.08;
}

.team-logo,
.conference-img,
.division-img {
  width: 48px;
  height: 48px;
  margin: auto;
  object-fit: contain;
}

.flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.country-flag {
  width: 38px;
  height: 26px;
  border: 1px solid rgba(13, 29, 43, .16);
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(13, 29, 43, .08);
}

.flag-code {
  display: none;
  min-width: 32px;
  min-height: 22px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .04em;
}

.flag-code.visible {
  display: inline-grid;
}

.text-badge {
  display: inline-flex;
  min-width: 31px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tile-frame);
  padding: 3px 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .14));
  box-shadow: inset 0 1px rgba(255, 255, 255, .84), inset 0 -2px rgba(13, 29, 43, .09), 0 1px 2px rgba(13, 29, 43, .1);
  font-size: .66rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(17, 24, 32, .72);
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(600px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(60, 60, 67, .2);
  padding: 26px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.compact-modal {
  width: min(420px, 100%);
}

.confirm-modal-content {
  width: min(400px, 100%);
}

.confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.confirm-actions .btn {
  min-height: 38px;
}

.confirm-cancel {
  border-color: var(--line-dark);
}

.confirm-giveup {
  border-color: var(--red);
  color: var(--surface);
  background: var(--red);
}

.confirm-giveup:hover:not(:disabled) {
  border-color: #a9192e;
  color: var(--surface);
  background: #a9192e;
}

.instructions-modal-content {
  width: min(660px, 100%);
}

.silhouette-modal-content {
  width: min(570px, 100%);
}

.daily-results-modal-content {
  width: min(520px, 100%);
  padding: 24px;
}

.league-breakdown-content {
  width: min(820px, 100%);
  min-width: 0;
  padding: 54px 22px 22px;
  background:
    linear-gradient(180deg, rgba(229, 241, 249, .72) 0, rgba(255, 255, 255, .98) 150px),
    #fff;
}

.league-breakdown-content::before {
  position: absolute;
  top: 13px;
  left: 20px;
  width: 34px;
  height: 34px;
  background: url("./assets/logos/nhl-shield.svg") center / contain no-repeat;
  content: "";
}

.league-modal-header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-right: 42px;
}

.league-modal-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(19, 32, 43, .12);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 7px 18px rgba(19, 32, 43, .1);
}

.league-modal-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.league-modal-header .section-kicker {
  margin: 0 0 3px;
}

.league-modal-header h2 {
  font-size: 1.8rem;
  letter-spacing: -.025em;
}

.league-modal-header p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.league-clue-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 19px 0 12px;
  border: 1px solid rgba(60, 60, 67, .12);
  padding: 9px 11px;
  background: rgba(255, 255, 255, .74);
}

.league-mobile-tabs {
  display: none;
}

.league-clue-key > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: .63rem;
}

.league-clue-key b {
  color: #35414b;
}

.league-clue-key i {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
}

.league-key-match {
  color: var(--green);
  background: var(--green-bg);
}

.league-key-close {
  color: var(--yellow);
  background: var(--yellow-bg);
}

.league-key-miss {
  color: #742637;
  background: #f5e4e8;
}

.league-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.conference-group {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, .13);
  padding: 0 11px 11px;
  background: rgba(247, 248, 249, .9);
}

.conference-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 0 -11px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(60, 60, 67, .09);
  background: rgba(255, 255, 255, .78);
}

.conference-heading img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.conference-heading h3 {
  margin: 0;
  color: #164e73;
  font-size: .76rem;
  font-weight: 800;
}

.conference-group.clue-correct {
  border-color: #41795e;
}

.conference-group.clue-near-correct {
  border-color: #987121;
}

.conference-group.clue-incorrect {
  border-color: #9c5664;
  background: #f5e4e8;
}

.conference-group.clue-correct > .conference-heading {
  background: var(--green-bg);
}

.conference-group.clue-near-correct > .conference-heading {
  background: var(--yellow-bg);
}

.conference-group.clue-incorrect > .conference-heading {
  background: #f5e4e8;
}

.conference-team-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.conference-team-list li {
  display: grid;
  min-height: 56px;
  place-items: center;
  border: 1px solid rgba(31, 111, 172, .09);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 7px rgba(13, 29, 43, .035);
}

.conference-team-list img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform .15s ease;
}

.conference-team-list li:hover img {
  transform: scale(1.09);
}

.division-group {
  min-width: 0;
  border: 1px solid rgba(60, 60, 67, .1);
  padding: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(13, 29, 43, .035);
}

.division-group h4 {
  margin: 0 0 8px;
  font-size: .76rem;
}

.division-group.clue-correct {
  border-color: #41795e;
  background: var(--green-bg);
}

.division-group.clue-near-correct {
  border-color: #987121;
  background: var(--yellow-bg);
}

.division-group.clue-incorrect {
  border-color: #9c5664;
  background: #f5e4e8;
}

.division-group.clue-correct .division-team-list li,
.division-group.clue-near-correct .division-team-list li,
.division-group.clue-incorrect .division-team-list li {
  background: rgba(255, 255, 255, .76);
}

.division-team-list {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.division-team-list li {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(60, 60, 67, .08);
  color: #46535e;
  background: #f8fafb;
  font-size: .6rem;
  font-weight: 600;
}

.division-team-list img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.division-team-list span {
  display: none;
}

.daily-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 38px;
}

.daily-results-copy {
  min-width: 0;
}

.daily-results-copy > p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .75rem;
}

.daily-countdown {
  display: grid;
  min-width: 108px;
  justify-items: end;
  gap: 3px;
  border: 1px solid rgba(22, 78, 115, .16);
  padding: 7px 9px;
  background: rgba(22, 78, 115, .055);
}

.daily-countdown > span {
  color: var(--muted);
  font-size: .5rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.daily-countdown > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.daily-countdown strong {
  color: #164e73;
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: .025em;
}

.daily-countdown small {
  color: var(--muted);
  font-size: .48rem;
  font-weight: 600;
}

.daily-answer-card {
  display: grid;
  min-height: 112px;
  grid-template-columns: 108px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line-dark);
  padding: 8px 14px 0 5px;
  background: #f0f1f2;
}

.daily-answer-photo {
  align-self: end;
}

.daily-answer-headshot {
  width: 104px;
  height: 112px;
  object-fit: contain;
  object-position: center bottom;
}

.daily-answer-copy {
  display: grid;
  gap: 4px;
}

.daily-answer-copy strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.daily-answer-copy span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 500;
}

.daily-answer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.close:hover {
  color: var(--ink);
  background: #eceeef;
}

.modal-header-bar {
  padding-right: 36px;
}

.modal-content h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
}

.modal-content .player-view-title {
  color: #46535e;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.modal-content .section-kicker {
  margin-bottom: 5px;
}

.modal-content p {
  color: #46535e;
  font-size: .84rem;
  line-height: 1.5;
}

.modal-lead {
  margin: 14px 0 17px;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.instruction-card {
  display: grid;
  min-height: 105px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid;
  padding: 12px 9px;
  text-align: center;
}

.instruction-card > span {
  font-size: .8rem;
  font-weight: 900;
}

.instruction-card strong {
  font-size: .8rem;
}

.instruction-card small {
  font-size: .66rem;
}

.green-card {
  border-color: #9ac9ae;
  color: #14573a;
  background: var(--green-bg);
}

.yellow-card {
  border-color: #d9bd68;
  color: #65490b;
  background: var(--yellow-bg);
}

.red-card {
  border-color: #d3a4ad;
  color: #742637;
  background: var(--miss-bg);
}

.instruction-notes {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.instruction-notes p {
  margin: 0;
  border-left: 2px solid var(--line-dark);
  padding-left: 10px;
  font-size: .76rem;
}

.modal-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}

#silhouette-box {
  display: grid;
  justify-items: center;
  margin-top: 15px;
}

#silhouette-canvas {
  width: 220px;
  height: 230px;
  max-width: 100%;
  -webkit-touch-callout: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

#silhouette-message {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .7rem;
}

#silhouette-message:empty {
  display: none;
}

.revealed-card {
  width: 100%;
}

.revealed-profile {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  padding: 11px 14px 0 7px;
  background: #f0f1f2;
}

.revealed-headshot-wrap {
  align-self: end;
}

.revealed-headshot {
  width: 86px;
  height: 102px;
  object-fit: contain;
  object-position: center bottom;
}

.revealed-profile > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.revealed-kicker {
  color: var(--red);
  font-size: .57rem;
  font-weight: 800;
  text-transform: uppercase;
}

.revealed-profile strong {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.revealed-profile span:last-child {
  color: var(--muted);
  font-size: .68rem;
}

.revealed-team-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.revealed-result-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: 6px;
  margin-top: 7px;
}

.revealed-result-strip > div {
  display: grid;
  min-height: 50px;
  place-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: #f5f6f7;
  text-align: center;
}

.revealed-result-strip span {
  color: var(--muted);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.revealed-result-strip strong {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1;
}

.revealed-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.revealed-player-grid > div {
  display: grid;
  min-height: 55px;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font-size: .82rem;
  font-weight: 600;
}

.daily-stats {
  width: 100%;
  margin-top: 12px;
}

.daily-stats-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 9px;
}

.daily-stats-heading span {
  color: var(--red);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.daily-stats-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1;
  text-transform: uppercase;
}

.daily-scorecards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.daily-scorecards > div {
  display: grid;
  min-height: 66px;
  place-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: #f5f6f7;
  text-align: center;
}

.daily-scorecards strong {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.daily-scorecards span {
  color: var(--muted);
  font-size: .52rem;
  font-weight: 750;
  text-transform: uppercase;
}

.daily-scorecards .your-daily-result {
  border-color: #e2a7b1;
  color: #7d2334;
  background: #f8ebee;
}

.daily-distribution {
  display: grid;
  gap: 5px;
}

.daily-distribution-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.daily-distribution-row > span {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 800;
  text-align: center;
}

.daily-distribution-track {
  height: 20px;
  overflow: hidden;
  background: #e9ecee;
}

.daily-distribution-track i {
  display: flex;
  width: var(--bar-width);
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  background: #7f8b94;
  color: white;
  font-size: .58rem;
  font-style: normal;
  transition: width .35s ease;
}

.daily-distribution-row.current > span {
  color: var(--red);
}

.daily-distribution-row.current .daily-distribution-track i {
  background: var(--red);
}

.daily-distribution-track b {
  font-weight: 800;
}

.daily-stats-message {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  background: #f5f6f7;
  color: var(--muted);
  font-size: .72rem;
}

.result-share-button {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border-color: var(--navy);
  color: var(--surface);
  background: var(--navy);
}

.result-share-button:hover:not(:disabled) {
  border-color: #1d3345;
  color: var(--surface);
  background: #1d3345;
}

.result-share-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.compact-share-button {
  width: auto;
  min-width: 92px;
  min-height: 50px;
  margin-top: 0;
}

.stats-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #c8cfd4;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: stats-spin .7s linear infinite;
}

.revealed-label {
  color: var(--muted);
  font-size: .54rem;
  font-weight: 600;
  text-transform: uppercase;
}

.revealed-value {
  display: flex;
  align-items: center;
  gap: 6px;
}

.revealed-mini-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.revealed-country-flag {
  width: 27px;
  height: 18px;
  border: 1px solid rgba(13, 29, 43, .16);
  object-fit: cover;
}

.image-missing {
  visibility: hidden;
}

#goal-horn-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  visibility: hidden;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 44%, rgba(94, 7, 17, .46), rgba(6, 10, 16, .83) 72%);
  opacity: 0;
  pointer-events: none;
}

#goal-horn-overlay.active {
  visibility: visible;
  animation: goal-overlay 2.4s ease both;
}

.goal-celebration {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  opacity: 0;
}

.goal-light {
  --beacon-height: clamp(155px, 42svh, 322px);
  position: relative;
  width: calc(var(--beacon-height) * .72);
  height: var(--beacon-height);
  isolation: isolate;
}

.goal-light::before {
  position: absolute;
  inset: 13% -33% 5%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(255, 27, 31, .48), rgba(203, 8, 29, .17) 47%, transparent 71%);
  content: "";
}

.goal-light::after {
  position: absolute;
  right: 0;
  bottom: 1%;
  left: 0;
  z-index: -1;
  height: 11%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .76), rgba(167, 14, 23, .37) 37%, transparent 72%);
  content: "";
}

.goal-light canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 12px rgba(12, 0, 3, .48));
}

.goal-light-fallback {
  position: absolute;
  inset: 6% 23% 7%;
  filter: drop-shadow(0 7px 12px rgba(14, 0, 2, .58));
}

.goal-fallback-lens,
.goal-fallback-cage,
.goal-fallback-base {
  position: absolute;
}

.goal-fallback-lens {
  inset: 2% 8% 20%;
  border-radius: 48% 48% 13% 13% / 28% 28% 7% 7%;
  background:
    repeating-linear-gradient(90deg, transparent 0 6%, rgba(255, 184, 157, .13) 7%, transparent 9%),
    radial-gradient(ellipse at 36% 34%, #ff9b72, #df161e 34%, #720710 78%);
  box-shadow: inset 0 -10px 13px rgba(41, 2, 6, .75);
}

.goal-fallback-cage {
  inset: 0 2% 19%;
  overflow: hidden;
  border: solid #86909a;
  border-width: 4px 5px 0;
  border-radius: 49% 49% 0 0 / 28% 28% 0 0;
  background: repeating-linear-gradient(0deg, transparent 0 22%, #626b73 23%, #c0c8cb 25%, transparent 26%);
}

.goal-fallback-cage::before {
  position: absolute;
  inset: 0 58% 0 auto;
  width: 6%;
  border-radius: 45% 0 0;
  background: linear-gradient(90deg, #4d535a, #a8afb3, #777e83);
  content: "";
}

.goal-fallback-base {
  inset: 77% 0 0;
  border-radius: 45% 45% 25% 25% / 16% 16% 18% 18%;
  background:
    linear-gradient(0deg, #30353b 0 12%, transparent 13% 68%, #747c84 69% 90%, #c3c7c6 91%),
    linear-gradient(90deg, #454d55, #9fa4a5 32%, #5a636b 68%, #30363e);
}

.goal-beams {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 116vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent 0deg, #ec2b30 10deg, transparent 22deg 178deg, #fb442d 190deg, transparent 206deg 360deg);
  opacity: 0;
  transform: translate(-50%, -50%);
  mask-image: radial-gradient(circle, transparent 4%, black 14%, transparent 65%);
  filter: blur(11px);
}

.goal-horn-text {
  color: #fff4ed;
  font-size: clamp(1.75rem, 7vmin, 3.4rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .085em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(104, 4, 13, .9);
}

#goal-horn-overlay.active .goal-celebration {
  animation: goal-pop 2.4s cubic-bezier(.2, .7, .25, 1) both;
}

#goal-horn-overlay.active .goal-beams {
  animation: siren-beams 2.4s linear both;
}

@keyframes tile-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes stats-spin {
  to { transform: rotate(360deg); }
}

@keyframes goal-pop {
  0% { opacity: 0; transform: translateY(16px) scale(.72); }
  16% { opacity: 1; transform: translateY(-4px) scale(1.04); }
  27%, 79% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-6px) scale(.98); }
}

@keyframes siren-beams {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-30deg); }
  14%, 77% { opacity: .26; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(690deg); }
}

@keyframes goal-overlay {
  0%, 100% { opacity: 0; }
  15%, 79% { opacity: 1; }
}

@media (max-width: 800px) {
  .guess-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    border: 0;
    padding-bottom: 8px;
    background: transparent;
  }

  .guess-header,
  .guess-row {
    min-width: 860px;
    grid-template-columns:
      minmax(158px, 1.45fr)
      minmax(78px, .72fr)
      minmax(86px, .78fr)
      minmax(88px, .8fr)
      minmax(88px, .8fr)
      minmax(70px, .64fr)
      minmax(68px, .62fr)
      minmax(58px, .52fr)
      minmax(74px, .68fr);
    gap: 4px;
  }

  .guess-header {
    display: grid;
    min-height: 30px;
    padding-inline: 4px;
  }

  #guess-list {
    display: block;
    min-height: 0;
  }

  .guess-row {
    margin-top: 7px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-snap-align: start;
  }

  .guess-cell,
  .guess-cell:not(.identity-cell),
  .identity-cell {
    height: 76px;
    min-height: 76px;
  }

  .identity-cell {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-rows: 1fr;
    padding: 2px 18px 5px 2px;
  }

  .identity-cell .headshot {
    grid-column: auto;
    grid-row: auto;
    width: 56px;
    height: 68px;
  }

  .identity-cell .identity-copy {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
  }

  .mobile-cell-label,
  .identity-cell .mobile-cell-label {
    display: none;
  }

  .team-logo,
  .conference-img,
  .division-img {
    width: 42px;
    height: 42px;
  }

  .country-flag {
    width: 34px;
    height: 23px;
  }

}

@media (max-width: 700px) {
  .container {
    width: min(100% - 20px, 1160px);
  }

  .guess-header,
  .guess-row {
    min-width: 640px;
    grid-template-columns:
      110px
      62px
      70px
      74px
      74px
      58px
      58px
      48px
      58px;
    gap: 3px;
  }

  .guess-header {
    min-height: 27px;
    padding-inline: 2px;
  }

  .guess-header span {
    font-size: .52rem;
    letter-spacing: .035em;
  }

  .guess-row {
    margin-top: 6px;
    padding-inline: 2px;
  }

  .guess-cell,
  .guess-cell:not(.identity-cell),
  .identity-cell {
    height: 68px;
    min-height: 68px;
  }

  .identity-cell {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px;
    padding: 2px 14px 4px 1px;
  }

  .identity-cell .headshot {
    width: 40px;
    height: 60px;
  }

  .identity-copy strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: .68rem;
    line-height: 1.02;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .guess-cell:not(.identity-cell) {
    padding-inline: 3px;
  }

  .cell-value {
    font-size: .72rem;
  }

  .cell-hint {
    font-size: .48rem;
  }

  .status-mark {
    top: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    font-size: .52rem;
  }

  .team-logo,
  .conference-img,
  .division-img {
    width: 36px;
    height: 36px;
  }

  .text-badge {
    min-width: 27px;
    min-height: 23px;
    padding: 2px 5px;
    font-size: .6rem;
  }

  .country-flag {
    width: 30px;
    height: 20px;
  }

  .header-inner {
    min-height: 58px;
    gap: 10px;
  }

  .header-logo {
    width: min(205px, 100%);
  }

  .mode-toggle button {
    min-width: 88px;
    padding-inline: 12px;
  }

  .header-icon.desktop-header-icon {
    display: none;
  }

  .header-icon.mobile-menu-button {
    display: grid;
  }

  .header-league-button {
    min-width: 40px;
    justify-content: center;
    margin-right: 0;
  }

  .league-button-label {
    display: none;
  }

  .mobile-menu-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .mobile-menu-content {
    width: 100%;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .input-wrapper {
    --control-size: 44px;
    gap: 8px;
    margin: 14px auto 10px;
  }

  .input-heading > p {
    display: none;
  }

  .input-container {
    grid-template-columns: minmax(0, 1fr) 92px var(--control-size);
    gap: 6px;
  }

  .btn-guess,
  .btn-next {
    padding-inline: 5px;
  }

  .search-icon {
    width: 38px;
    height: 40px;
  }

  .search-icon svg {
    width: 16px;
    height: 16px;
  }

  #player-input {
    padding-inline: 31px 8px;
    font-size: .82rem;
  }

  .inline-guess-count {
    right: 6px;
    min-height: 20px;
    padding: 2px 5px;
    font-size: .625rem;
  }

  .inline-guess-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .input-control.has-guess-count #player-input {
    padding-right: 38px;
  }

  .round-status {
    font-size: .8125rem;
  }

  .results-heading {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 7px;
    padding: 7px 9px;
  }

  .result-legend {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    font-size: .54rem;
  }

  .result-legend span {
    gap: 3px;
    white-space: nowrap;
  }

  .result-legend i {
    width: 14px;
    height: 14px;
    font-size: .48rem;
  }

  .results-heading h2 {
    font-size: 1.12rem;
  }

  .btn-giveup {
    padding-inline: 5px;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .instruction-card {
    min-height: 72px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .instruction-card small {
    grid-column: 2;
  }
}

/* Portrait phones use a compact stacked card so every clue is visible at once.
   Landscape phones keep the horizontal swipe layout above. */
@media (max-width: 700px) and (orientation: portrait) {
  .guess-table-wrapper {
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .guess-header {
    display: none;
  }

  .guess-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-top: 7px;
    padding: 0;
    scroll-snap-align: none;
  }

  .guess-cell,
  .guess-cell:not(.identity-cell) {
    height: 54px;
    min-height: 54px;
    padding: 14px 2px 4px;
  }

  .identity-cell {
    grid-column: 1 / -1;
    height: 62px;
    min-height: 62px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    padding: 2px 22px 5px 3px;
  }

  .identity-cell .headshot {
    width: 52px;
    height: 58px;
  }

  .identity-copy strong {
    font-size: .76rem;
    line-height: 1.05;
  }

  .mobile-cell-label {
    position: absolute;
    top: 4px;
    left: 6px;
    display: block;
    max-width: calc(100% - 24px);
    overflow: hidden;
    color: currentColor;
    font-size: .39rem;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1;
    opacity: .72;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .identity-cell .mobile-cell-label {
    display: none;
  }

  .team-logo,
  .conference-img,
  .division-img {
    width: 27px;
    height: 27px;
  }

  .country-flag {
    width: 25px;
    height: 17px;
  }

  .cell-value {
    font-size: .62rem;
  }

  .cell-hint {
    min-height: 7px;
    font-size: .4rem;
  }

  .text-badge {
    min-width: 23px;
    min-height: 19px;
    padding: 2px 3px;
    font-size: .52rem;
  }

  .status-mark {
    top: 3px;
    right: 3px;
    width: 12px;
    height: 12px;
    font-size: .44rem;
  }
}

@media (max-width: 360px) {
  .results-heading {
    gap: 5px;
    padding-inline: 6px;
  }

  .results-heading h2 {
    font-size: 1rem;
  }

  .result-legend {
    gap: 4px;
  }

  .result-legend span {
    gap: 2px;
  }

  .result-legend i {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 450px) {
  .results-heading {
    margin-bottom: 9px;
  }

  .revealed-profile {
    grid-template-columns: 72px minmax(0, 1fr) 42px;
    gap: 8px;
    padding-right: 9px;
  }

  .revealed-headshot {
    width: 70px;
    height: 84px;
  }

  .revealed-profile strong {
    font-size: 1.1rem;
  }

  .revealed-team-logo {
    width: 40px;
    height: 40px;
  }

  .revealed-player-grid {
    grid-template-columns: 1fr;
  }

  .revealed-result-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-share-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 40px;
  }

  .daily-results-modal-content {
    padding: 20px 16px;
  }

  .daily-results-header {
    gap: 8px;
    padding-right: 30px;
  }

  .daily-countdown {
    min-width: 96px;
    padding: 6px 7px;
  }

  .daily-countdown strong {
    font-size: .76rem;
  }

  .daily-answer-card {
    min-height: 92px;
    grid-template-columns: 82px minmax(0, 1fr) 40px;
    gap: 8px;
    padding-right: 10px;
  }

  .daily-answer-headshot {
    width: 80px;
    height: 92px;
  }

  .daily-answer-copy strong {
    font-size: 1.15rem;
  }

  .daily-answer-logo {
    width: 40px;
    height: 40px;
  }

  .daily-scorecards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .daily-scorecards > div {
    min-height: 59px;
  }

  .daily-scorecards strong {
    font-size: 1.15rem;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 42px;
    column-gap: 12px;
    row-gap: 0;
  }

  .header-mode {
    grid-area: 2 / 1 / 3 / -1;
    border-top: 1px solid #202a37;
  }

  .mode-toggle {
    flex: 1;
  }

  .mode-toggle button {
    flex: 1;
  }

  .mode-toggle button.active::after {
    inset-inline: 0;
  }

  .header-actions {
    grid-area: 1 / 2;
  }

  .header-logo {
    width: min(181px, 100%);
  }

  .league-breakdown-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .league-breakdown-content {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 54px 14px 14px;
  }

  .league-breakdown-modal {
    align-items: flex-end;
    padding: 8px;
  }

  .league-modal-header {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding-right: 32px;
  }

  .league-modal-mark {
    width: 40px;
    height: 40px;
  }

  .league-modal-mark img {
    width: 31px;
    height: 31px;
  }

  .league-modal-header h2 {
    font-size: 1.55rem;
  }

  .league-clue-key {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 14px 0 10px;
    padding: 8px;
  }

  .league-clue-key > span {
    align-items: flex-start;
    line-height: 1.25;
  }

  .league-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin: 0 0 9px;
    border: 1px solid rgba(60, 60, 67, .14);
    padding: 3px;
    background: rgba(118, 118, 128, .1);
  }

  .league-mobile-tabs button {
    min-height: 32px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: .68rem;
    font-weight: 700;
  }

  .league-mobile-tabs button.active {
    color: var(--ink);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
  }

  .league-mobile-tabs button.clue-correct {
    color: #14573a;
    background: var(--green-bg);
  }

  .league-mobile-tabs button.clue-near-correct {
    color: #65490b;
    background: var(--yellow-bg);
  }

  .league-mobile-tabs button.clue-incorrect {
    color: #742637;
    background: #f5e4e8;
  }

  .league-breakdown-grid .conference-group {
    display: none;
  }

  .league-breakdown-grid .conference-group.active {
    display: grid;
  }

  .conference-group {
    gap: 7px;
    padding: 0 8px 8px;
  }

  .conference-heading {
    margin: 0 -8px;
    padding: 8px 10px;
  }

  .division-group {
    padding: 8px;
  }

  .division-team-list {
    gap: 6px;
  }

  .division-team-list li {
    min-height: 46px;
  }

  .division-team-list img {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

}

@media (prefers-reduced-motion: reduce) {
  #goal-horn-overlay.active,
  #goal-horn-overlay.active .goal-celebration {
    animation: none;
    opacity: 1;
  }

  #goal-horn-overlay.active .goal-beams {
    animation: none;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
