:root {
  --green: #139447;
  --green-dark: #0a5330;
  --yellow: #ffd32a;
  --blue: #1456c8;
  --ink: #162013;
  --muted: #637063;
  --line: #dbe6db;
  --paper: #ffffff;
  --soft: #f4f8f1;
  --shadow: 0 20px 60px rgba(10, 83, 48, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 230, 219, 0.8);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 5vw, 72px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 5;
}

.brand img {
  display: block;
  height: 58px;
  object-fit: contain;
  width: 126px;
}

.admin-link,
.ghost-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-link:hover,
.ghost-btn:hover {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(19, 148, 71, 0.14);
  transform: translateY(-1px);
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  min-height: calc(100vh - 87px);
  overflow: hidden;
  padding: clamp(40px, 7vw, 92px) clamp(18px, 5vw, 72px) 44px;
  position: relative;
}

.hero::before {
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 211, 42, 0.34), transparent 30%),
    radial-gradient(circle at 90% 42%, rgba(20, 86, 200, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(19, 148, 71, 0.2), rgba(255, 255, 255, 0));
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-copy {
  max-width: 760px;
}

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

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

h1 {
  color: var(--green-dark);
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 22px;
}

h2 {
  color: var(--green-dark);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 10px;
}

h3 {
  color: var(--green-dark);
  font-size: 1.45rem;
  line-height: 1.1;
}

.lead {
  color: var(--blue);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-copy p:not(.eyebrow):not(.lead) {
  color: #364334;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.7;
  max-width: 660px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--yellow), #ffe98a);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(202, 154, 0, 0.22);
  color: #1e250d;
  cursor: pointer;
  font-weight: 950;
  min-height: 52px;
  padding: 0 24px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-btn:hover {
  box-shadow: 0 18px 34px rgba(202, 154, 0, 0.28);
  transform: translateY(-2px);
}

.primary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.hero-art {
  align-items: end;
  display: flex;
  justify-content: center;
  min-height: 520px;
}

.hero-art img {
  animation: floatIn 800ms ease both;
  display: block;
  filter: drop-shadow(0 32px 42px rgba(10, 83, 48, 0.28));
  max-height: min(78vh, 760px);
  max-width: 100%;
  object-fit: contain;
}

.form-band,
.lookup-band {
  background: #fff;
  border-block: 1px solid var(--line);
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading {
  margin: 0 auto 26px;
  max-width: 940px;
}

.guess-form,
.lookup-form,
.login-panel,
.result-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guess-form {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 940px;
  padding: clamp(20px, 4vw, 34px);
}

.lookup-band {
  background: var(--soft);
}

.lookup-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin: 0 auto;
  max-width: 940px;
  padding: clamp(18px, 3vw, 24px);
}

.prize-result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(10, 83, 48, 0.08);
  margin: 18px auto 0;
  max-width: 940px;
  padding: 24px;
}

.prize-result h3 {
  margin-bottom: 10px;
}

.promo-code {
  background: var(--green-dark);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 950;
  margin: 10px 0 16px;
  padding: 10px 14px;
}

.rules {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding-left: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select {
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 52px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 148, 71, 0.12);
}

.score-row,
.result-form {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.score-field input {
  font-size: 2rem;
  font-weight: 950;
  text-align: center;
}

.versus {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 950;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.check {
  align-items: flex-start;
  color: #364334;
  display: flex;
  gap: 10px;
  line-height: 1.5;
}

.check input {
  accent-color: var(--green);
  flex: 0 0 auto;
  margin-top: 3px;
  min-height: 18px;
  width: 18px;
}

.submit {
  justify-self: start;
}

.form-message {
  color: var(--blue);
  font-weight: 850;
  margin: 0;
  min-height: 24px;
}

.form-message.error {
  color: #b3261e;
}

.benefits {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(40px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

.benefits article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(10, 83, 48, 0.08);
  padding: 26px;
}

.badge {
  background: rgba(255, 211, 42, 0.38);
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  margin-bottom: 14px;
  padding: 7px 11px;
  text-transform: uppercase;
}

footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  line-height: 1.6;
  padding: 28px clamp(18px, 5vw, 72px);
}

footer p {
  margin-bottom: 8px;
  max-width: 1180px;
}

dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 560px;
  padding: 0;
  width: calc(100% - 32px);
}

dialog::backdrop {
  background: rgba(10, 83, 48, 0.52);
}

.modal-content {
  padding: 30px;
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(19, 148, 71, 0.14), rgba(20, 86, 200, 0.08)),
    #f6f9f2;
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 42px);
}

.login-panel {
  margin: 8vh auto;
  max-width: 440px;
  padding: 28px;
}

.login-panel img {
  display: block;
  height: 90px;
  margin-bottom: 18px;
  object-fit: contain;
  width: 170px;
}

.login-panel form {
  display: grid;
  gap: 16px;
}

.hidden {
  display: none !important;
}

.dashboard {
  display: grid;
  gap: 18px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.admin-topbar h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  margin: 0;
}

.result-panel {
  padding: 18px;
}

.result-form {
  grid-template-columns: 140px 52px 140px auto auto;
}

.compact {
  min-height: 44px;
  white-space: nowrap;
}

#resultStatus {
  color: var(--muted);
  font-weight: 800;
  margin: 10px 0 0;
}

.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.stat-card strong {
  color: var(--green-dark);
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
}

.filters {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 160px minmax(150px, 1fr) minmax(150px, 1fr) 160px auto auto auto;
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

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

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

th {
  color: var(--green-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: #344233;
  font-size: 0.92rem;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 6px 10px;
}

.status-pill.acertou {
  background: rgba(19, 148, 71, 0.14);
  color: var(--green-dark);
}

.status-pill.nao_acertou {
  background: rgba(20, 86, 200, 0.12);
  color: var(--blue);
}

.status-pill.pendente {
  background: rgba(255, 211, 42, 0.34);
  color: #6b5200;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero-art {
    min-height: 0;
  }

  .hero-art img {
    max-height: 540px;
  }

  .benefits,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .result-form,
  .lookup-form,
  .filters {
    grid-template-columns: 1fr;
  }

  .result-form .versus {
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    height: 46px;
    width: 100px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.2rem, 14vw, 4.5rem);
  }

  .score-row {
    grid-template-columns: 1fr;
  }

  .versus {
    justify-self: center;
  }

  .submit,
  .primary-btn {
    width: 100%;
  }
}
