:root {
  color-scheme: dark;
  --background: #1a2433;
  --foreground: #e8f1f8;
  --ice: #7ee7ff;
  --surface: #243044;
  --surface-raised: #2c3b52;
  --header: #141c28;
  --muted: #94a3b8;
  --win: #34d399;
  --loss: #f87171;
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-score: "Barlow Condensed", "Barlow", sans-serif;
}

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

html,
body {
  background-color: var(--background);
  color: var(--foreground);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background-image:
    linear-gradient(rgba(180, 214, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 214, 232, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  transition: opacity 0.3s ease;
}

a {
  color: var(--ice);
}

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

::selection {
  background: rgba(126, 231, 255, 0.28);
}

.score-number {
  font-family: var(--font-score);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(165, 243, 252, 0.2);
  background: rgba(20, 28, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand img {
  height: 1.75rem;
  width: auto;
}

.brand-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.7);
}

.brand-title {
  margin: 0;
  font-family: var(--font-score);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}

.header-meta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(207, 250, 254, 0.6);
}

.header-meta .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7ee7ff;
  box-shadow: 0 0 8px #7ee7ff;
}

@media (min-width: 640px) {
  .header-meta {
    display: flex;
  }
}

.page {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(103, 232, 249, 0.15);
}

.site-footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer p,
.footer-text {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-elevated {
  background: var(--surface);
  border: 1px solid rgba(165, 243, 252, 0.2);
  box-shadow: inset 0 0 0 1px rgba(126, 231, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card-elevated::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(103, 232, 249, 0.4);
  border-right: 1px solid rgba(103, 232, 249, 0.4);
  pointer-events: none;
}

.card-elevated:hover {
  box-shadow:
    inset 0 0 0 1px rgba(126, 231, 255, 0.28),
    0 0 24px rgba(126, 231, 255, 0.08);
}

.btn,
.share-link,
.back-link,
.back-button,
.recap-button,
.game-summary-button,
.check-yesterday-link,
.team-selection-link,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ecfeff;
  background: rgba(126, 231, 255, 0.08);
  border: 1px solid rgba(165, 243, 252, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.share-link:hover,
.back-link:hover,
.back-button:hover,
.recap-button:hover,
.game-summary-button:hover,
.check-yesterday-link:hover,
.team-selection-link:hover,
.copy-button:hover {
  background: rgba(126, 231, 255, 0.16);
  border-color: rgba(126, 231, 255, 0.7);
  color: #fff;
  transform: translateY(-1px);
}

.btn-primary,
.game-summary-button,
.back-button {
  background: linear-gradient(135deg, #1d428a 0%, #152d5c 100%);
  border-color: rgba(126, 231, 255, 0.2);
}

.btn-primary:hover,
.game-summary-button:hover,
.back-button:hover {
  background: linear-gradient(135deg, #152d5c 0%, #0d1d3d 100%);
  box-shadow: 0 4px 12px rgba(29, 66, 138, 0.3);
}

.recap-button {
  background: rgba(126, 231, 255, 0.12);
}

/* Team picker */
.intro-container {
  max-width: 64rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.page-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-score);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}

.page-heading .team {
  color: var(--ice);
  text-shadow: 0 0 18px rgba(126, 231, 255, 0.35);
}

.intro-text {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border: 1px solid rgba(165, 243, 252, 0.2);
  padding: 1.15rem 1rem;
  text-align: left;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.8);
}

.step p {
  margin: 0;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.division-container {
  max-width: 64rem;
  margin: 0 auto 2rem;
}

.division-container h2 {
  margin: 0 0 0.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(207, 250, 254, 0.55);
}

.teams-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .teams-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.teams-container.mlb-teams {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .teams-container.mlb-teams {
    grid-template-columns: repeat(5, 1fr);
  }
}

.teams-container.nfl-teams {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .teams-container.nfl-teams {
    grid-template-columns: repeat(4, 1fr);
  }
}

.teams-container.nba-teams {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .teams-container.nba-teams {
    grid-template-columns: repeat(5, 1fr);
  }
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--surface);
  border: 1px solid rgba(165, 243, 252, 0.2);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(126, 231, 255, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.team-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(103, 232, 249, 0.35);
  border-right: 1px solid rgba(103, 232, 249, 0.35);
}

.team-card:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(126, 231, 255, 0.28),
    0 0 24px rgba(126, 231, 255, 0.08);
}

.team-card .team-logo,
.team-card img.team-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0;
}

.team-name {
  margin: 0;
  color: #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-section {
  text-align: center;
  margin-top: 2.5rem;
  padding: 2rem 1rem 0;
  border-top: 1px solid rgba(103, 232, 249, 0.15);
}

.footer-section .share-link {
  margin: 0.25rem 0.35rem;
}

.footer-section .footer-text {
  margin: 0.5rem 0 1.25rem;
}

/* Result pages */
.result-main {
  flex: 1;
  min-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
}

.result-card {
  width: min(28rem, 100%);
  padding: 2rem 1.25rem 1.5rem;
}

.result-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice);
}

.result-card .team-logo,
.result-main .team-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  cursor: pointer;
  transform-origin: center center;
}

.game-status {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: pre-line;
  line-height: 1.45;
}

.game-status.yes,
.game-status.no {
  font-family: var(--font-score);
  font-size: clamp(5.5rem, 18vw, 7.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0.9;
  animation: bounce 2s infinite ease-in-out;
}

.game-status.yes {
  color: var(--win);
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.45);
}

.game-status.no {
  color: var(--loss);
}

.game-status[class*="live"] {
  color: var(--ice);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.game-summary-button {
  min-width: 12.5rem;
}

.game-summary-button.win-pulse {
  animation: gentle-pulse 2s ease-in-out infinite;
}

.check-yesterday-link {
  background: transparent;
  letter-spacing: 0.12em;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

@keyframes happy-bounce {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.12) rotate(-5deg); }
  50% { transform: scale(1.18) rotate(5deg); }
  75% { transform: scale(1.12) rotate(-3deg); }
}

.team-logo.happy-bounce {
  animation: happy-bounce 2s ease-in-out;
}

@keyframes gentle-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(126, 231, 255, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(126, 231, 255, 0);
    transform: scale(1.02);
  }
}

/* Summary pages */
.summary-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.summary-shell > .container,
.page-narrow {
  width: min(44rem, calc(100% - 2rem));
  margin: 1.5rem auto 2.5rem;
  background: var(--surface);
  border: 1px solid rgba(165, 243, 252, 0.2);
  overflow: hidden;
}

.summary-shell .header,
.summary-banner {
  padding: 2rem 1.5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(165, 243, 252, 0.15);
  background: linear-gradient(180deg, rgba(126, 231, 255, 0.08), transparent);
}

.summary-shell h1,
.summary-banner h1 {
  margin: 0;
  font-family: var(--font-score);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.summary-shell .header .team-logo,
.summary-banner .team-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  display: block;
}

.summary-shell .content {
  padding: 1.5rem;
}

.score-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(165, 243, 252, 0.15);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.score {
  font-family: var(--font-score);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.team-selected {
  color: var(--ice);
  font-weight: 700;
}

.team-opponent {
  color: #94a3b8;
  font-weight: 600;
}

.goals-section {
  overflow-wrap: anywhere;
  word-break: break-word;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.period,
.period-header {
  margin: 1rem 0 0.75rem;
  padding: 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(207, 250, 254, 0.55);
  background: none;
  box-shadow: none;
  border-radius: 0;
}

.period::before,
.period::after,
.period-header::before,
.period-header::after {
  content: "";
  display: inline-block;
  width: 18%;
  height: 1px;
  margin: 0 0.75rem;
  vertical-align: middle;
  background: rgba(165, 243, 252, 0.2);
}

.scorer-entry,
.goal-event {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border: 1px solid rgba(165, 243, 252, 0.12);
  border-left: 2px solid rgba(126, 231, 255, 0.45);
  color: #fff;
  min-height: 64px;
}

.goal-logo {
  width: 40px;
  height: 40px;
  margin-right: 0.9rem;
  flex-shrink: 0;
}

.goal-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.scorer-entry.team-selected,
.goal-event.team-selected {
  border-left-color: var(--win);
}

.scorer-entry.team-opponent,
.goal-event.team-opponent {
  border-left-color: var(--loss);
}

.scorer,
.scorer-name {
  font-weight: 700;
  font-size: 1rem;
}

.assist-info,
.assists {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.stats-section {
  margin-top: 1.5rem;
}

.stats-title,
.events-title {
  font-family: var(--font-score);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: 0.04em;
}

.stats-table {
  border: 1px solid rgba(165, 243, 252, 0.15);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th {
  background: rgba(126, 231, 255, 0.08);
  color: rgba(207, 250, 254, 0.8);
  font-weight: 600;
  padding: 0.9rem 0.7rem;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

td {
  padding: 0.8rem 0.7rem;
  text-align: center;
  border-bottom: 1px solid rgba(165, 243, 252, 0.1);
  font-weight: 600;
  color: #fff;
}

tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03);
}

tr:last-child td {
  border-bottom: none;
}

.stats-table td:nth-child(2) {
  background: rgba(15, 23, 42, 0.35);
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(165, 243, 252, 0.15);
}

.error-message {
  color: #fbbf24;
  font-size: 1rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

/* Share page */
.share-page .container {
  max-width: 50rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  text-align: center;
}

.subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(165, 243, 252, 0.7);
  margin: 0 0 1.5rem;
}

.share-section {
  background: var(--surface);
  border: 1px solid rgba(165, 243, 252, 0.2);
  padding: 1.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.share-title {
  font-family: var(--font-score);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}

.share-description {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
  line-height: 1.45;
}

.url-builder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.url-display {
  background: #32445c;
  border: 1px solid rgba(196, 228, 244, 0.45);
  padding: 0.9rem 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ice);
  min-width: min(24rem, 100%);
  text-align: center;
}

select {
  background: #32445c;
  border: 1px solid rgba(196, 228, 244, 0.45);
  padding: 0.7rem 0.9rem;
  color: #f7fcff;
  font-size: 1rem;
  font-family: inherit;
  min-height: 44px;
}

.team-selection-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.team-logo-display {
  width: 80px;
  height: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(165, 243, 252, 0.2);
  padding: 1.15rem;
  text-align: left;
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.feature-description {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

.copy-button {
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.copy-button.copied {
  background: rgba(52, 211, 153, 0.2);
  border-color: var(--win);
  color: var(--win);
}

.share-page h1 {
  font-family: var(--font-score);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}

.share-page h1 .team {
  color: var(--ice);
}

.share-page .intro-text {
  text-align: center;
  font-weight: 400;
}

/* Privacy */
.privacy-page .container {
  max-width: 48rem;
  margin: 2rem auto 3rem;
  padding: 2rem 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(165, 243, 252, 0.2);
}

.privacy-page h1,
.privacy-page h2 {
  color: #fff;
  font-family: var(--font-score);
  letter-spacing: 0.04em;
}

.privacy-page p {
  line-height: 1.7;
  color: #cbd5e1;
}

/* Replay */
.replay-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.replay-page .container {
  width: min(44rem, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}

.game-header,
.replay-controls,
.events-container {
  background: var(--surface);
  border: 1px solid rgba(165, 243, 252, 0.2);
  padding: 1.15rem;
  margin-bottom: 0.75rem;
}

.game-header h1 {
  text-align: center;
  font-family: var(--font-score);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  color: #fff;
}

.teams-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.replay-page .team-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 0.4rem;
}

.replay-page .team-name {
  font-size: 0.95rem;
}

.team-score {
  font-family: var(--font-score);
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  background: #0f172a;
  border: 1px solid rgba(165, 243, 252, 0.25);
  min-width: 3.25rem;
  padding: 0.35rem 0.6rem;
  text-align: center;
}

.center-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.period-clock {
  font-family: var(--font-score);
  color: var(--ice);
  background: #0f172a;
  border: 1px solid rgba(126, 231, 255, 0.35);
  min-width: 7.5rem;
  height: 3.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.period-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.time-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.play-button,
.speed-btn {
  min-height: 44px;
  min-width: 44px;
  background: rgba(126, 231, 255, 0.1);
  color: #ecfeff;
  border: 1px solid rgba(165, 243, 252, 0.35);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.play-button:hover,
.speed-btn:hover,
.speed-btn.active {
  background: rgba(126, 231, 255, 0.22);
  border-color: var(--ice);
}

.play-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.goal-event {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.goal-event.revealed {
  opacity: 1;
  transform: translateY(0);
}

.replay-page .back-link {
  position: static;
  transform: none;
  min-height: auto;
  padding: 0.4rem 0.7rem;
  font-size: 11px;
}

.replay-page .site-header .back-link:hover {
  transform: none;
}

.winner {
  color: var(--win) !important;
}

.loser {
  color: var(--loss) !important;
}

.tie {
  color: #fbbf24 !important;
}

.replay-summary-wrap {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(165, 243, 252, 0.15);
}

@media (max-width: 640px) {
  .replay-page .teams-display {
    flex-direction: column;
  }

  .replay-page .team-logo {
    width: 56px;
    height: 56px;
  }

  .button-container {
    flex-direction: column;
  }
}
