* {
  box-sizing: border-box;
}

:root {
  --bg: #08111f;
  --card: #111d2f;
  --card-light: #182842;
  --text: #f7fafc;
  --muted: #aab8ca;
  --green: #22c55e;
  --yellow: #facc15;
  --red: #ef4444;
  --blue: #38bdf8;
  --border: rgba(255,255,255,0.1);
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top, #15305c, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

.hero {
  padding: 46px 20px;
  background:
    linear-gradient(135deg, rgba(34,197,94,.18), rgba(56,189,248,.08)),
    url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}

.hero > div {
  position: relative;
  max-width: 1050px;
  margin: auto;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: bold;
}

h1 {
  font-size: clamp(32px, 5vw, 58px);
  margin: 18px 0 10px;
  line-height: 1;
}

h2 {
  margin-top: 0;
  font-size: 22px;
}

p {
  color: var(--muted);
  max-width: 700px;
  line-height: 1.6;
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto;
  display: grid;
  gap: 18px;
}

.card {
  background: rgba(17, 29, 47, 0.88);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}

.form-row,
.score-final {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

input,
select {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0b1526;
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.form-row input {
  flex: 1 1 260px;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--green);
  color: #052e16;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

button.ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid rgba(56,189,248,.4);
}

button.danger {
  background: rgba(239,68,68,.12);
  color: #fecaca;
  border: 1px solid rgba(239,68,68,.35);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--card-light);
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: 999px;
}

.chip button {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(239,68,68,.2);
  color: #fecaca;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

label {
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-weight: bold;
}

.match-preview {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,.06);
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 18px;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.prediction-row {
  display: grid;
  grid-template-columns: 1.2fr 90px 20px 90px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  padding: 12px;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
}

.member-label {
  font-weight: bold;
}

.score-final input {
  max-width: 160px;
}

.winner-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(250,204,21,.10);
  border: 1px solid rgba(250,204,21,.3);
  display: none;
}

.winner-box.show {
  display: block;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.status-good {
  color: var(--green);
  font-weight: bold;
}

.status-medium {
  color: var(--yellow);
  font-weight: bold;
}

.status-bad {
  color: #fca5a5;
}

footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .teams-grid,
  .prediction-row {
    grid-template-columns: 1fr;
  }

  .score-final input {
    max-width: 100%;
  }
}
