:root {
  --navy: #041827;
  --navy-2: #082b44;
  --blue: #005f94;
  --blue-light: #0093cf;
  --white: #ffffff;
  --cloud: #eef5f8;
  --line: rgba(255, 255, 255, .16);
  --ink: #061725;
  --muted: #6c7b86;
  --gold: #d6a84f;
  --grass: #16734d;
  --shadow: 0 28px 80px rgba(4, 24, 39, .28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--cloud);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-weight: 500;
}

@media (min-width: 981px) {
  body {
    overflow: hidden;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: rgba(4, 24, 39, .88);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1200px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 750;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, .78);
  font-weight: 650;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-blue {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 16px 34px rgba(0, 95, 148, .24);
}

.button-gold {
  color: #1b1608;
  background: linear-gradient(135deg, #f0cf78, var(--gold));
  box-shadow: 0 18px 34px rgba(214, 168, 79, .24);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
}

.match-hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  padding: 82px 0 124px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(4, 24, 39, .98) 0%, rgba(8, 43, 68, .95) 54%, rgba(0, 95, 148, .86) 100%);
}

.match-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .1));
}

.field-lines {
  position: absolute;
  right: -140px;
  bottom: -180px;
  width: 620px;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.field-lines::before,
.field-lines::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .1);
}

.field-lines::before {
  inset: 120px;
  border-radius: 50%;
}

.field-lines::after {
  left: 48%;
  top: -160px;
  width: 2px;
  height: 850px;
  border-width: 0 0 0 2px;
}

.match-shell {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 30px;
  align-items: stretch;
}

.club-panel,
.score-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.club-panel {
  padding: clamp(24px, 3.2vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  overflow: hidden;
}

.club-tag,
.score-header span {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.club-lockup {
  width: fit-content;
  margin: 18px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.club-lockup img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
}

.club-lockup span,
.club-lockup strong {
  display: block;
}

.club-lockup span {
  color: rgba(255, 255, 255, .72);
  font-weight: 600;
}

.club-lockup strong {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
}

h1 {
  max-width: 720px;
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 5vw, 5.25rem);
  line-height: .95;
  letter-spacing: 0;
  font-weight: 720;
}

.club-panel p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 1.03rem;
  line-height: 1.52;
}

.club-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.score-card {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
}

.score-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.score-header strong {
  color: var(--blue);
  font-size: .95rem;
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--navy), var(--blue));
}

.scoreboard div {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-weight: 750;
}

.scoreboard img,
.member-ball {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.member-ball {
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  font-size: 1.55rem;
  font-weight: 750;
}

.scoreboard > strong {
  color: var(--gold);
  font-size: 2.2rem;
}

.score-card h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  line-height: 1.05;
  font-weight: 720;
}

.score-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

.score-card form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

label {
  color: #344f63;
  font-size: .86rem;
  font-weight: 700;
}

input {
  width: 100%;
  height: 42px;
  border: 1px solid #d8e4ec;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  background: #fbfdff;
}

input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 95, 148, .12);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
}

.club-strip {
  width: min(1200px, calc(100% - 32px));
  margin: 0;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(216, 228, 236, .9);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(4, 24, 39, .12);
}

.club-strip div {
  padding: 14px 22px;
  border-right: 1px solid #d8e4ec;
}

.club-strip div:last-child {
  border-right: 0;
}

.club-strip span,
.club-strip strong {
  display: block;
}

.club-strip span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.club-strip strong {
  margin-top: 5px;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 700;
}

@media (min-width: 981px) and (max-height: 850px) {
  .nav {
    min-height: 70px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .button {
    min-height: 42px;
  }

  .match-hero {
    min-height: 660px;
    padding-top: 72px;
    padding-bottom: 112px;
  }

  .match-shell {
    min-height: 0;
  }

  .club-panel {
    padding: 18px 36px;
  }

  .club-tag,
  .score-header span,
  .club-strip span {
    font-size: .72rem;
  }

  .club-lockup {
    margin: 10px 0;
    padding: 10px 16px 10px 10px;
  }

  .club-lockup img {
    width: 58px;
    height: 58px;
  }

  .club-lockup strong {
    font-size: 1.12rem;
  }

  h1 {
    max-width: 650px;
    font-size: clamp(2.7rem, 3.8vw, 4.25rem);
    line-height: .96;
    margin-bottom: 12px;
  }

  .club-panel p {
    max-width: 650px;
    font-size: .98rem;
    line-height: 1.45;
  }

  .club-actions {
    margin-top: 18px;
  }

  .score-card {
    padding: 16px 26px;
  }

  .scoreboard {
    margin-bottom: 14px;
    padding: 12px;
  }

  .scoreboard img,
  .member-ball {
    width: 48px;
    height: 48px;
  }

  .score-card h2 {
    font-size: 1.55rem;
  }

  .score-card form {
    gap: 7px;
    margin-top: 10px;
  }

  input {
    height: 40px;
  }

  .club-strip {
    bottom: 14px;
  }

  .club-strip div {
    padding: 10px 22px;
  }
}

@media (max-width: 980px) {
  .match-shell {
    grid-template-columns: 1fr;
  }

  .score-card {
    justify-content: start;
  }

  .club-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .club-strip div:nth-child(2) {
    border-right: 0;
  }

  .club-strip div:nth-child(-n + 2) {
    border-bottom: 1px solid #d8e4ec;
  }
}

@media (max-width: 620px) {
  .nav {
    width: min(100% - 24px, 1200px);
  }

  .brand span {
    font-size: .92rem;
  }

  .nav-actions > a:first-child {
    display: none;
  }

  .match-hero {
    padding-top: 92px;
  }

  .match-shell,
  .club-strip {
    width: min(100% - 20px, 1200px);
  }

  .club-panel,
  .score-card {
    border-radius: 18px;
  }

  .club-lockup {
    align-items: center;
  }

  .club-lockup img {
    width: 64px;
    height: 64px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .club-actions {
    display: grid;
  }

  .club-strip {
    grid-template-columns: 1fr;
  }

  .club-strip div {
    border-right: 0;
    border-bottom: 1px solid #d8e4ec;
  }

  .club-strip div:last-child {
    border-bottom: 0;
  }
}
