:root {
  --bg: #0e0b14;
  --card: #1a1522;
  --accent: #e0b15a;
  --accent-soft: #f0d59a;
  --text: #f4eee6;
  --muted: #9a8fa6;
  --border: #2e2538;
  --error: #ff6b6b;
  --ok: #4ade80;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top, #221a2e 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header { text-align: center; margin-bottom: 2rem; }

.kicker {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle { color: var(--muted); margin: 0 auto; max-width: 32rem; }

/* Hosted by Jack Daniel's */
.hosted-by {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.hosted-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.jd-logo {
  max-height: 120px;
  max-width: 280px;
  object-fit: contain;
  /* The official cartouche is black artwork, so sit it on a light plaque
     to stay legible on the dark page (and on-brand). */
  background: #f4eee6;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.jd-wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-soft);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

.prizes {
  margin: 1.25rem auto 0;
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: rgba(224, 177, 90, 0.12);
  border: 1px solid rgba(224, 177, 90, 0.35);
  border-radius: 999px;
  color: var(--accent-soft);
  font-size: 0.9rem;
}

.reassure {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.details {
  margin: 1.5rem auto 0;
  max-width: 30rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.details p { margin: 0.4rem 0; font-size: 0.9rem; color: var(--text); }
.details strong { color: var(--accent-soft); }

/* Contact line sits below the rest of the details, quieter than the event facts. */
.details .questions {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.details .questions a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 177, 90, 0.4);
  white-space: nowrap;
}
.details .questions a:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }

.window-banner {
  margin: 1.25rem auto 0;
  max-width: 30rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}
.window-banner:empty { display: none; }
.window-banner.open {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: var(--ok);
}
.window-banner.soon {
  background: rgba(224, 177, 90, 0.12);
  border: 1px solid rgba(224, 177, 90, 0.4);
  color: var(--accent-soft);
}
.window-banner.closed {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: var(--error);
}

form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

fieldset {
  border: none;
  border-top: 1px solid var(--border);
  padding: 1.25rem 0 0;
  margin: 1.5rem 0 0;
}
fieldset:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

legend {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 0;
  margin-bottom: 0.75rem;
}

label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

label span.req { color: var(--accent); }

input, textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  background: #0f0b16;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 177, 90, 0.15);
}
textarea { resize: vertical; min-height: 80px; }

.row { display: flex; gap: 1rem; }
.row > label { flex: 1; }

button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  color: #1a1206;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.05s ease, filter 0.15s ease;
}
button:hover { filter: brightness(1.05); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

#status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  min-height: 1.4rem;
}
#status.ok { color: var(--ok); }
#status.err { color: var(--error); }

.success-card { text-align: center; padding: 1rem 0; }
.success-card h2 { color: var(--ok); margin-bottom: 0.5rem; }

/* Admin table */
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  vertical-align: top;
}
th { color: var(--accent); text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; }
.admin-wrap { max-width: 1100px; }
@media (max-width: 560px) { .row { flex-direction: column; gap: 0; } }
