:root {
  --night: #060905;
  --wood: #15100b;
  --panel: rgba(10, 12, 8, 0.82);
  --panel-strong: rgba(13, 16, 10, 0.92);
  --line: rgba(255, 244, 210, 0.18);
  --cream: #fff3d6;
  --muted: #d6c8a8;
  --gold: #f0bd4f;
  --green: #1f8b49;
  --blue: #164e9d;
  --danger: #ffba91;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.54);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.copa-page {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(3, 5, 3, 0.76), rgba(3, 5, 3, 0.36) 52%, rgba(3, 5, 3, 0.72)),
    linear-gradient(180deg, rgba(3, 5, 3, 0.22), rgba(3, 5, 3, 0.88)),
    url("../assets/copa/copa-bg-desktop.png") center / cover fixed;
}

.copa-shell {
  min-height: 100vh;
}

.copa-hero,
.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 100vh;
  padding: clamp(24px, 4vw, 58px);
}

.copa-copy,
.result-copy {
  max-width: 760px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.78);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(40px, 8vh, 96px);
  color: var(--cream);
  font-weight: 900;
  text-transform: uppercase;
}

.brand-link img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.small {
  margin-bottom: 6px;
  font-size: 0.78rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.matchline {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--cream);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
}

.quick-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-rules span {
  border: 1px solid rgba(240, 189, 79, 0.38);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(6, 9, 5, 0.56);
  color: var(--cream);
  font-size: 0.88rem;
  font-weight: 800;
}

.signup-panel,
.winners-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-heading {
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 244, 210, 0.2);
  border-radius: 6px;
  padding: 0 14px;
  background: rgba(255, 244, 210, 0.08);
  color: var(--cream);
  outline: none;
}

input:focus {
  border-color: rgba(240, 189, 79, 0.8);
  box-shadow: 0 0 0 3px rgba(240, 189, 79, 0.16);
}

.check-row {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--cream);
  font-size: 0.82rem;
  line-height: 1.35;
  text-transform: none;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-button {
  margin-top: 4px;
  background: linear-gradient(135deg, #19a957, #f1c84f 58%, #1c5fb5);
  color: #061006;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.secondary-button {
  max-width: 280px;
  border: 1px solid rgba(255, 244, 210, 0.24);
  background: rgba(255, 244, 210, 0.1);
  color: var(--cream);
}

.form-message {
  min-height: 24px;
  margin-top: 14px;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 800;
}

.success-box {
  margin-top: 18px;
  border: 1px solid rgba(31, 139, 73, 0.55);
  border-radius: 8px;
  padding: 16px;
  background: rgba(31, 139, 73, 0.16);
}

.success-box p {
  margin-bottom: 8px;
  color: var(--cream);
  font-weight: 900;
}

.success-box strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  word-break: break-word;
}

.rules-band {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 26px;
  border-top: 1px solid var(--line);
  padding: clamp(28px, 5vw, 54px) clamp(20px, 4vw, 58px);
  background: var(--panel-strong);
}

.rules-band ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 700;
}

.rules-band li + li {
  margin-top: 10px;
}

.winner-list {
  display: grid;
  gap: 12px;
}

.winner-card {
  border: 1px solid rgba(255, 244, 210, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 244, 210, 0.08);
}

.winner-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.12rem;
}

.winner-card span,
.muted {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 820px) {
  .copa-page {
    background:
      linear-gradient(180deg, rgba(3, 5, 3, 0.26), rgba(3, 5, 3, 0.72) 48%, rgba(3, 5, 3, 0.94)),
      url("../assets/copa/copa-bg-mobile.png") center top / cover fixed;
  }

  .copa-hero,
  .result-hero,
  .rules-band {
    grid-template-columns: 1fr;
  }

  .copa-hero,
  .result-hero {
    align-items: end;
    min-height: auto;
    padding: 20px;
  }

  .brand-link {
    margin-bottom: min(34vh, 260px);
  }

  .signup-panel,
  .winners-panel {
    background: rgba(8, 10, 7, 0.9);
  }

  .quick-rules {
    margin-bottom: 2px;
  }
}

@media (max-width: 430px) {
  .brand-link span {
    font-size: 0.9rem;
  }

  .brand-link img {
    width: 46px;
    height: 46px;
  }

  .quick-rules span {
    width: 100%;
    border-radius: 6px;
  }
}
