:root {
  --bg: #071a12;
  --card: rgba(10, 20, 16, 0.72);
  --text: #e9fff3;
  --muted: rgba(233, 255, 243, 0.75);
  --accent: #5af2a7;
  --border: rgba(255,255,255,0.16);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #000; color: var(--text); }

.hero {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--bg);
}

.hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(90,242,167,0.18), transparent 40%),
              linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.70));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(920px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  padding: 22px 22px 18px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.card h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.2vw, 42px);
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  outline: none;
}
input:focus { border-color: rgba(90,242,167,0.6); box-shadow: 0 0 0 3px rgba(90,242,167,0.12); }

.actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--accent);
  color: #062014;
  font-weight: 700;
  cursor: pointer;
}
.small {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 840px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Results layout */
.page {
  min-height: 100vh;
  padding: 22px;
  background: linear-gradient(180deg, #04130d, #061a12 40%, #071a12);
}

.topbar {
  max-width: 1100px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.rule {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  margin-bottom: 10px;
}

.rule h3 { margin: 0 0 6px; }
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(90,242,167,0.35);
  color: var(--text);
  font-size: 12px;
  margin-right: 6px;
}

.ad {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  margin-bottom: 10px;
}
.ad img { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); }
.ad a { color: var(--accent); text-decoration: none; font-weight: 700; }
.ad p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
}
