:root {
  --gold: #e8b000;
  --gold-soft: #fff3bf;
  --ink: #1a2332;
  --ink-soft: #334155;
  --muted: #64748b;
  --paper: #fffaf0;
  --paper-2: #fff7e6;
  --sky: #e8f4ff;
  --line: rgba(26, 35, 50, 0.12);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(26, 35, 50, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 15% -10%, rgba(245, 197, 24, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 10%, rgba(56, 189, 248, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(245, 197, 24, 0.16), transparent 55%),
    linear-gradient(180deg, #fffdf8 0%, #fff8ea 45%, #f3f8ff 100%);
}

.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.deco img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.18));
}
.deco-ready {
  left: -4%;
  top: 8%;
  width: min(280px, 28vw);
  opacity: 0.95;
  animation: floatY 5.5s ease-in-out infinite;
}
.deco-win {
  right: -3%;
  top: 42%;
  width: min(260px, 26vw);
  opacity: 0.95;
  animation: floatY 6.2s ease-in-out infinite reverse;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5c518, #e8b000);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}
.sponsor-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(26, 35, 50, 0.06);
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.sponsor-chip strong { color: #0e6fb8; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0 28px;
}
.hero-copy h1 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.hero-copy h1 span {
  display: block;
  color: var(--gold);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.hero-copy .lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36ch;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.badge.gold {
  background: var(--gold-soft);
  border-color: rgba(232, 176, 0, 0.35);
  color: #8a6800;
}

.hero-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid rgba(232, 176, 0, 0.35);
  background: #fff;
}
.hero-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.sponsor-banner {
  margin: 8px 0 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #0e6fb8 0%, #1d9bf0 55%, #38bdf8 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(14, 111, 184, 0.28);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.sponsor-banner h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}
.sponsor-banner p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 56ch;
}
.sponsor-banner a.btn-sponsor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0e6fb8;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.form-section {
  position: relative;
  padding: 8px 0 72px;
}
.form-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.form-card h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}
.form-card .sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  line-height: 1.35;
}
.field label .req { color: #d97706; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 176, 0, 0.18);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .help {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, #f5c518, #e0a800);
  color: #111;
  box-shadow: 0 10px 24px rgba(232, 176, 0, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.hint { font-size: 0.82rem; color: var(--muted); }
.msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  display: none;
}
.msg.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.msg.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 16px 40px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
footer a { color: #0e6fb8; font-weight: 700; text-decoration: none; }

/* Mobile */
@media (max-width: 900px) {
  .deco-ready { width: 160px; left: -8%; top: 120px; opacity: 0.55; }
  .deco-win { width: 150px; right: -10%; top: auto; bottom: 18%; opacity: 0.55; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 18px; }
  .hero-copy .lead { max-width: none; }
  .hero-poster { max-width: 420px; margin: 0 auto; }
  .sponsor-banner { grid-template-columns: 1fr; }
  .sponsor-banner a.btn-sponsor { width: 100%; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 20px); }
  .topbar { padding-top: 12px; }
  .brand span { font-size: 0.92rem; }
  .sponsor-chip { padding: 7px 10px; font-size: 0.72rem; max-width: 58%; }
  .sponsor-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 16px 0 12px; }
  .hero-copy h1 { font-size: 1.75rem; }
  .hero-copy .lead { font-size: 0.95rem; }
  .badge { font-size: 0.75rem; padding: 6px 10px; }
  .deco-ready, .deco-win { display: none; }
  .mobile-deco {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    margin: 4px 0 8px;
  }
  .mobile-deco img {
    width: 42%;
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.15));
  }
  .form-card { padding: 18px 14px; border-radius: 16px; }
  .form-card h2 { font-size: 1.25rem; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; text-align: center; }
  .sponsor-banner { padding: 16px; margin-bottom: 20px; }
  .sponsor-banner h2 { font-size: 1.02rem; }
}

@media (min-width: 641px) {
  .mobile-deco { display: none; }
}
