:root {
  color-scheme: light;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  color: #182619;
  background: #e9ecdd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.58), transparent 46%),
    linear-gradient(180deg, #f3f5ea, #d6deca);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
}

.scoreboard {
  position: relative;
  overflow: hidden;
  width: min(980px, 100%);
  display: grid;
  gap: 14px;
  padding: clamp(14px, 3vw, 32px);
  border: 10px solid #2b1b12;
  border-radius: 4px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.09), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #1d6c39, #2f8443 48%, #1a5f32);
  box-shadow:
    0 26px 70px rgba(20, 12, 7, 0.48),
    0 0 0 2px #f4f1e1 inset,
    0 0 0 18px rgba(29, 88, 45, 0.9) inset;
}

.scoreboard::before {
  content: none;
}

.scoreboard::after {
  content: none;
}

.scoreboard.is-loading #competition,
.scoreboard.is-loading #answer,
.scoreboard.is-loading #summary,
.scoreboard.is-loading #lastMatch,
.scoreboard.is-loading #nextMatch,
.scoreboard.is-loading #updatedAt {
  visibility: hidden;
}

.broadcast-strip,
.main-display,
.match-grid,
.share-board,
.faq-board {
  border: 2px solid #3d473f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(238, 229, 197, 0.92)),
    #f4f1e1;
  background-size: auto;
}

.broadcast-strip {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-color: #2b1b12;
  color: #f4f1e1;
  background: #2b1b12;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.england-flag {
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  border: 1px solid #ffffff;
  background:
    linear-gradient(90deg, transparent 0 42%, #c81e34 42% 58%, transparent 58%),
    linear-gradient(180deg, transparent 0 39%, #c81e34 39% 61%, transparent 61%),
    #ffffff;
}

.broadcast-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.game-day-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px 6px;
  border: 2px solid #f4f1e1;
  color: #2b1b12;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 55%),
    #f0c84b;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.26);
  font-family: "Caprasimo", "Cooper Black", Georgia, "Times New Roman", serif;
  font-size: clamp(0.75rem, 1.8vw, 0.96rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-day-badge[hidden] {
  display: none;
}

.main-display {
  position: relative;
  z-index: 1;
  min-height: 330px;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 5vw, 54px);
  border-color: #f4f1e1;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(252, 248, 228, 0.96), rgba(240, 232, 202, 0.96));
  box-shadow:
    inset 0 0 0 2px rgba(43, 27, 18, 0.14),
    0 4px 0 rgba(43, 27, 18, 0.3);
}

.eyebrow {
  margin: 0;
  color: #f3f0d1;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 13ch;
  color: #182619;
  font-family: "Caprasimo", "Cooper Black", Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 7.4vw, 6.6rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.answer {
  margin: 0;
  width: fit-content;
  padding: 6px 14px 8px;
  border: 3px solid #2b1b12;
  color: #f4f1e1;
  background: #ce1f2f;
  font-family: "Caprasimo", "Cooper Black", Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.9vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
  text-transform: uppercase;
}

.summary {
  margin: 0;
  max-width: 70ch;
  color: #182619;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 400;
  line-height: 1.5;
}

.match-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
}

.match-grid div {
  min-height: 106px;
  padding: 16px;
  background: rgba(244, 241, 225, 0.94);
}

dt,
h2 {
  margin: 0;
  color: #2b1b12;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

dd {
  margin: 9px 0 0;
  color: #182619;
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}

.countdown,
.relative-time {
  display: block;
  margin-top: 7px;
  color: #365039;
  font-size: 0.78em;
  font-weight: 400;
  text-transform: none;
}

.share-board {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-color: #2b1b12;
  color: #f4f1e1;
  background:
    linear-gradient(180deg, rgba(73, 43, 28, 0.38), transparent 52%),
    #2b1b12;
  box-shadow:
    inset 0 0 0 1px rgba(244, 241, 225, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border: 2px solid #f4f1e1;
  color: #2b1b12;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 52%),
    #f4f1e1;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.24);
  transform: translate(0, 0);
}

.share-link svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.share-link .share-icon-facebook {
  width: 11px;
  height: 16px;
  transform: translate(1px, 0);
}

.share-link .share-icon-email {
  width: 16px;
  height: 16px;
}

.share-link:hover,
.share-link:focus-visible {
  color: #f4f1e1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 52%),
    #1d6c39;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.26);
  transform: translate(1px, 1px);
  outline: none;
}

.faq-board {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.faq-page .faq-board {
  min-height: 320px;
  align-content: center;
  padding: clamp(22px, 5vw, 48px);
}

.faq-page h1 {
  max-width: none;
  font-size: clamp(3rem, 9vw, 7rem);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 2px solid #2b1b12;
  border-left: 8px solid #ce1f2f;
  color: #f4f1e1;
  background: #1d6c39;
  font: inherit;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

.faq-question:hover,
.faq-question:focus-visible {
  color: #ffffff;
  background: #2b1b12;
  border-color: #2b1b12;
  outline: none;
}

.faq-answer {
  margin: 0;
  padding: 0 10px 2px 16px;
  color: #182619;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.5;
}

.faq-answer a {
  color: #2b1b12;
  font-weight: 600;
  text-transform: uppercase;
}

.faq-link-row {
  margin: 4px 0 0;
  color: #182619;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.faq-link-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 30px;
  padding: 6px 16px 7px;
  border: 2px solid #2b1b12;
  color: #f4f1e1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 54%),
    #1d6c39;
  box-shadow:
    inset 0 0 0 1px rgba(244, 241, 225, 0.16),
    3px 3px 0 rgba(43, 27, 18, 0.22);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.faq-link-row a:hover,
.faq-link-row a:focus-visible {
  color: #ffffff;
  background: #2b1b12;
  outline: none;
  transform: translate(1px, 1px);
}

@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.7), transparent 42%),
      repeating-linear-gradient(90deg, rgba(214, 203, 164, 0.24) 0 2px, transparent 2px 16px),
      linear-gradient(180deg, #f7f3e4, #ece3c6);
  }

  .page-shell {
    padding: 10px;
  }

  .scoreboard {
    width: min(100%, 370px);
    gap: 0;
    padding: 8px;
    border-width: 5px;
    background:
      linear-gradient(180deg, #155f33, #1d743b 48%, #155f33);
    box-shadow:
      0 18px 48px rgba(20, 12, 7, 0.34),
      0 0 0 2px #f4f1e1 inset,
      0 0 0 8px rgba(29, 88, 45, 0.9) inset;
  }

  .broadcast-strip {
    padding: 9px 12px;
    font-size: 0.72rem;
  }

  .broadcast-strip #competition {
    min-width: 0;
  }

  .england-flag {
    width: 38px;
    height: 24px;
  }

  .broadcast-meta {
    align-self: flex-start;
    gap: 8px;
  }

  .game-day-badge {
    min-height: 24px;
    padding: 4px 7px 5px;
    border-width: 1px;
    font-size: 0.68rem;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.26);
  }

  .main-display {
    min-height: 0;
    gap: 10px;
    padding: 22px 20px;
    border-top-width: 0;
  }

  h1 {
    max-width: 8.5ch;
    font-size: clamp(2.05rem, 10.5vw, 3rem);
    line-height: 0.94;
  }

  .answer {
    max-width: 100%;
    padding: 5px 11px 7px;
    border-width: 2px;
    font-size: clamp(1.25rem, 6vw, 1.75rem);
    overflow-wrap: anywhere;
  }

  .summary {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .match-grid {
    grid-template-columns: 1fr;
    gap: 1px;
    margin-top: 8px;
  }

  .match-grid div {
    min-height: 0;
    padding: 13px 14px;
  }

  dt,
  h2 {
    font-size: 0.7rem;
  }

  dd {
    margin-top: 7px;
    font-size: 0.9rem;
    line-height: 1.28;
  }

  .countdown,
  .relative-time {
    margin-top: 5px;
    font-size: 0.76em;
  }

  .share-board {
    margin-top: 8px;
    padding: 9px 10px 10px;
  }

  .faq-link-row {
    margin-top: 7px;
    font-size: 0.72rem;
  }

  .faq-link-row a {
    min-width: 66px;
    min-height: 28px;
    padding: 5px 13px 6px;
  }

}
