:root {
  --bg: #111827;
  --bg-elev: #172033;
  --card: rgba(255, 255, 255, 0.06);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.14);
  --psg: #004170;
  --arsenal: #ef0107;
  --draw: #4a4a4a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #1b3257 0%, #0e1626 40%, #0b1020 100%);
}

.container {
  width: min(1120px, 94%);
  margin: 24px auto 40px;
  display: grid;
  gap: 18px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.hero-text h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.hero-text p {
  margin: 8px 0 0;
  color: var(--muted);
}

.team-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.team-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  backdrop-filter: blur(6px);
  padding: 16px;
}

.notice {
  border-color: #f59e0b;
  color: #fde68a;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

h2 {
  margin: 0 0 14px;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: #dbe1e8;
}

input,
button,
select {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.8);
  outline-offset: 1px;
}

button,
.link-button {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(120deg, #1e40af, #2563eb);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover,
.link-button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.scores-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.winner-preview {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
}

.winner-preview img,
.team-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.feedback {
  min-height: 20px;
  margin: 10px 0 0;
  color: #fbbf24;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  font-size: 0.86rem;
  color: #cfd6df;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  white-space: nowrap;
}

.badge {
  margin: 0;
  display: inline-flex;
  background: #14532d;
  color: #dcfce7;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
}

.score-banner {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.score-banner h1 {
  margin: 0;
}

.big-score {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 800;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 200px 1fr 200px;
    padding: 20px;
  }

  .team-logo {
    width: 140px;
    height: 140px;
  }

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