:root {
  --bg-black: #111819;
  --bg-charcoal: #182122;
  --earth: #242f2c;
  --olive-deep: #303a2c;
  --olive: #66724f;
  --olive-soft: #8b936a;
  --navy: #263642;
  --bluegray: #526574;
  --bluegray-soft: #72808a;
  --terracotta-dark: #8d442f;
  --terracotta: #c65f42;
  --terracotta-soft: #dc8f6f;
  --sand: #d4c09c;
  --cream: #efe2c9;
  --cream-soft: #f7ead2;
  --text: #efe2c9;
  --muted: rgba(247, 234, 210, 0.84);
  --border: rgba(247, 234, 210, 0.3);
  --danger: #ffc0b7;
  --success: #d4e6bd;
  --shadow: 0 24px 64px rgba(17, 24, 25, 0.24);
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 7% 18%, rgba(239, 226, 201, 0.15), transparent 24rem),
    radial-gradient(circle at 91% 16%, rgba(198, 95, 66, 0.34), transparent 30rem),
    radial-gradient(circle at 76% 86%, rgba(139, 147, 106, 0.24), transparent 32rem),
    linear-gradient(135deg, #46533f 0%, #59634b 26%, #3b5157 57%, #263642 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.82;
  background:
    radial-gradient(circle at -3% 34%, rgba(239, 226, 201, 0.1) 0 12rem, transparent 12.2rem),
    radial-gradient(circle at 103% 72%, rgba(198, 95, 66, 0.2) 0 13rem, transparent 13.2rem),
    linear-gradient(125deg, transparent 0 68%, rgba(38, 54, 66, 0.2) 68% 82%, transparent 82% 100%);
}

button, input, select, textarea { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

.simple-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: rgba(38, 54, 66, 0.9);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-lockup > span:last-child { display: grid; line-height: 1.05; }
.brand-lockup strong { font-family: "Playfair Display", Georgia, serif; letter-spacing: .08em; }
.brand-lockup small { margin-top: 5px; color: var(--terracotta-soft); font-weight: 800; letter-spacing: .18em; font-size: .66rem; }

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 13px rgba(247, 234, 210, .14))
    drop-shadow(0 9px 18px rgba(0, 0, 0, .3));
}

.window-chip, .header-link {
  padding: 9px 14px;
  border: 1px solid rgba(228, 154, 120, .34);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(198, 95, 66, .28);
  font-size: .83rem;
  font-weight: 800;
  text-decoration: none;
}

.window-chip.is-closed { border-color: rgba(255, 192, 183, .28); color: var(--danger); }

.page-shell {
  position: relative;
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) 0 70px;
}

.admin-shell { width: min(1180px, calc(100% - 32px)); }

.hero-card, .form-card, .closed-card, .login-card, .filters-card {
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 0 0, rgba(239, 226, 201, .12), transparent 40%),
    linear-gradient(135deg, rgba(70, 83, 63, .98), rgba(48, 69, 78, .98));
}

.hero-card { padding: clamp(28px, 5vw, 52px); text-align: center; }
.hero-card h1, .form-card h2, .closed-card h2, .login-card h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.hero-card h1 { font-size: clamp(2.55rem, 8vw, 5.2rem); }
.hero-title-prefix {
  display: block;
  margin-bottom: .2em;
  font-size: .46em;
  letter-spacing: .035em;
  line-height: 1;
}
.hero-title-main { display: block; }
.hero-lead { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.26rem); }
.hero-note { display: inline-block; margin: 24px auto 0; padding: 10px 16px; border-radius: 999px; background: rgba(239, 226, 201, .08); color: var(--cream); font-weight: 800; }
.eyebrow { margin: 0 0 12px; color: var(--terracotta-soft); font-size: .77rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }

.earlybird-hero {
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(30px, 5vw, 58px);
  padding: clamp(26px, 4vw, 44px);
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(circle at 102% 24%, rgba(82, 101, 116, .28) 0 16%, transparent 16.4%),
    linear-gradient(112deg, #4c563e 0%, #76523f 42%, #a4503b 100%);
}

.hero-art {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(239, 226, 201, .2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 47% 48%, rgba(247, 234, 210, .1), transparent 29%),
    linear-gradient(120deg, rgba(48, 58, 44, .94) 0 32%, rgba(38, 54, 66, .92) 32% 68%, rgba(17, 24, 25, .88) 68% 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 56px rgba(0,0,0,.25);
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 410px;
  height: 410px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 234, 210, .24) 0%, rgba(247, 234, 210, .1) 28%, transparent 56%);
  filter: blur(7px);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(198, 95, 66, .34) 0 18%, transparent 18.4%),
    radial-gradient(circle at 13% 85%, rgba(198, 95, 66, .18) 0 22%, transparent 22.4%),
    radial-gradient(circle at 14% 18%, rgba(102, 114, 79, .3) 0 28%, transparent 28.4%),
    linear-gradient(124deg, transparent 0 18%, rgba(82, 101, 116, .3) 18% 34%, transparent 34% 100%),
    linear-gradient(52deg, transparent 0 63%, rgba(102, 114, 79, .3) 63% 80%, transparent 80% 100%);
}

.hero-brand-logo {
  position: relative;
  z-index: 3;
  width: min(76%, 330px);
  height: auto;
  filter:
    drop-shadow(0 0 20px rgba(247, 234, 210, .18))
    drop-shadow(0 28px 48px rgba(0, 0, 0, .28));
}

.poster-shape { position: absolute; z-index: 2; pointer-events: none; }
.poster-shape.triangle {
  left: 32px;
  top: 30px;
  width: 0;
  height: 0;
  border-left: 54px solid transparent;
  border-right: 54px solid transparent;
  border-bottom: 90px solid rgba(82, 101, 116, .62);
  transform: rotate(-30deg);
}
.poster-shape.circle {
  right: 38px;
  bottom: 44px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(198, 95, 66, .9);
  box-shadow: -220px -225px 0 66px rgba(102, 114, 79, .14);
}
.poster-shape.bars {
  right: 58px;
  top: 58px;
  width: 98px;
  height: 140px;
  opacity: .34;
  background: repeating-linear-gradient(90deg, var(--cream) 0 8px, transparent 8px 19px);
}

.hero-copy { position: relative; z-index: 2; }
.hero-copy::after {
  content: "♪";
  position: absolute;
  right: 0;
  bottom: -60px;
  color: rgba(198, 95, 66, .28);
  font-family: Georgia, serif;
  font-size: clamp(4rem, 9vw, 7rem);
  transform: rotate(-8deg);
  pointer-events: none;
}
.earlybird-hero .hero-lead { margin-inline: 0; }
.earlybird-hero .hero-note { margin-left: 0; text-align: center; }

.form-card, .closed-card, .login-card, .filters-card { margin-top: 26px; padding: clamp(24px, 5vw, 46px); }
.form-card {
  background:
    radial-gradient(circle at 105% 10%, rgba(198, 95, 66, .2) 0 14%, transparent 14.4%),
    radial-gradient(circle at -4% 92%, rgba(239, 226, 201, .1) 0 17%, transparent 17.4%),
    linear-gradient(135deg, rgba(75, 89, 66, .99), rgba(42, 66, 78, .99));
}
.closed-card { text-align: center; }
.closed-card h2, .form-card h2, .login-card h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.closed-card p:last-child { color: var(--muted); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: .9rem; }

.form-grid, .filters-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 9px; min-width: 0; }
.field > span, .field legend { color: var(--cream); font-weight: 850; }
.field-wide { grid-column: 1 / -1; }
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field legend { margin-bottom: 10px; }
.required { color: var(--terracotta-soft); }

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(247, 234, 210, .42);
  border-radius: 16px;
  outline: none;
  background: rgba(239, 226, 201, .12);
  color: var(--text);
  padding: 14px 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea { resize: vertical; min-height: 118px; }
input::placeholder, textarea::placeholder { color: rgba(247, 234, 210, .62); }
input:focus, select:focus, textarea:focus { border-color: var(--cream-soft); box-shadow: 0 0 0 4px rgba(198, 95, 66, .24); background: rgba(239, 226, 201, .18); }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice-button {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid rgba(247, 234, 210, .4);
  border-radius: 17px;
  background: rgba(239, 226, 201, .12);
  color: var(--cream);
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}
.choice-button:hover { border-color: rgba(228, 154, 120, .55); transform: translateY(-1px); }
.choice-button.selected { border-color: var(--cream-soft); background: linear-gradient(135deg, rgba(198, 95, 66, .62), rgba(102, 114, 79, .46)); box-shadow: 0 12px 30px rgba(17, 24, 25, .16); }
.choice-check { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%; background: var(--terracotta); }

.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-actions, .admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.form-actions { justify-content: flex-end; }

.button {
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 19px;
  border: 1px solid rgba(247, 237, 216, .24);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.button:disabled { opacity: .58; cursor: wait; }
.button.primary { background: linear-gradient(135deg, var(--terracotta-dark), var(--terracotta)); }
.button.secondary { background: rgba(239, 226, 201, .08); }
.button.export { background: linear-gradient(135deg, #53683d, var(--olive)); }
.button.ghost { margin-left: auto; background: transparent; color: var(--muted); }
.button.danger { background: rgba(155, 73, 53, .22); color: var(--danger); }

.message { margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); font-weight: 750; }
.message.success { color: var(--success); background: rgba(101, 116, 79, .15); border-color: rgba(212, 230, 189, .28); }
.message.error { color: var(--danger); background: rgba(155, 73, 53, .16); border-color: rgba(255, 192, 183, .25); }
.message.loading { color: var(--cream); }

.loading-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8, 13, 14, .82); backdrop-filter: blur(14px); }
.loading-overlay.hidden { display: none; }
.loading-card { width: min(420px, 100%); display: grid; justify-items: center; gap: 10px; padding: 30px; border: 1px solid var(--border); border-radius: 26px; background: var(--bg-charcoal); box-shadow: var(--shadow); text-align: center; }
.loading-card span:last-child { color: var(--muted); }
.spinner { width: 42px; height: 42px; border: 3px solid rgba(239, 226, 201, .18); border-top-color: var(--terracotta-soft); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.simple-footer { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 30px 18px 42px; border-top: 1px solid var(--border); color: var(--muted); font-size: .86rem; background: rgba(38,54,66,.68); }
.simple-footer strong { color: var(--cream); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(0,0,0,.25)); }

.admin-hero { position: relative; display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 32px; padding-block: 34px; text-align: left; overflow: hidden; }
.admin-hero h1 { font-size: clamp(2.4rem, 7vw, 4.5rem); }
.admin-hero .hero-lead { margin-inline: 0; }
.admin-hero::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; right: -72px; top: -90px; background: rgba(198,95,66,.16); }
.admin-hero-lockup { position: relative; min-height: 134px; display: grid; place-items: center; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, rgba(48,58,44,.82), rgba(38,54,66,.86)); border: 1px solid var(--border); }
.admin-hero-lockup img { position: relative; z-index: 2; width: 104px; height: 104px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0,0,0,.28)); }
.admin-logo-orbit { position: absolute; width: 118px; height: 118px; border: 20px solid rgba(198,95,66,.32); border-radius: 50%; transform: translate(38px,-35px); }
.admin-hero-copy { position: relative; z-index: 2; }
.login-card { width: min(560px, 100%); margin-inline: auto; }
.login-card form { display: grid; gap: 18px; margin-top: 22px; }
.login-card .button { justify-self: end; }
.top-toolbar { margin: 26px 0 0; padding: 18px; border: 1px solid var(--border); border-radius: 22px; background: rgba(48, 69, 78, .9); position: sticky; top: 92px; z-index: 10; backdrop-filter: blur(15px); }

.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-top: 22px; }
.stat-card { min-height: 124px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(145deg, rgba(82,96,71,.96), rgba(48,69,78,.96)); }
.stat-card strong { font-family: "Playfair Display", Georgia, serif; font-size: 2.5rem; color: var(--terracotta-soft); line-height: 1; }
.stat-card span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.stat-card:nth-child(3n+2) strong { color: var(--olive-soft); }
.stat-card:nth-child(3n+3) strong { color: var(--bluegray-soft); }

.filters-card { padding: 24px; }
.filters-grid { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); gap: 14px; }
.filter-count { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.registration-list { display: grid; gap: 16px; margin-top: 22px; }
.registration-card { border: 1px solid var(--border); border-radius: 24px; background: linear-gradient(145deg, rgba(76,90,67,.96), rgba(45,66,76,.98)); box-shadow: 0 16px 38px rgba(17,24,25,.16); overflow: hidden; }
.registration-summary { display: grid; grid-template-columns: 1fr auto; gap: 22px; padding: 24px; }
.registration-summary h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; }
.registration-meta { color: var(--muted); margin: 6px 0 0; }
.registration-date { text-align: right; color: var(--terracotta-soft); font-size: .86rem; font-weight: 800; }
.registration-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 20px; margin-top: 18px; }
.detail-row { color: var(--muted); }
.detail-row strong { color: var(--cream); }
.detail-row.wide { grid-column: 1 / -1; }
.status-pill { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(196,105,77,.14); color: var(--terracotta-soft); font-size: .78rem; font-weight: 900; }
.registration-editor { padding: 20px 24px 24px; border-top: 1px solid var(--border); background: rgba(8,14,15,.18); }
.editor-grid { display: grid; grid-template-columns: minmax(180px,.65fr) 1.35fr; gap: 14px; }
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.empty-state { padding: 36px; text-align: center; border: 1px dashed var(--border); border-radius: 24px; color: var(--muted); }

@media (max-width: 900px) {
  .earlybird-hero { grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); }
  .hero-art { min-height: 340px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filters-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .simple-header { padding-inline: 15px; }
  .window-chip { max-width: 45%; text-align: center; font-size: .72rem; }
  .page-shell, .admin-shell { width: min(100% - 20px, 980px); padding-top: 24px; }
  .hero-card, .form-card, .closed-card, .login-card, .filters-card { border-radius: 23px; }
  .earlybird-hero { grid-template-columns: 1fr; gap: 28px; padding: 14px 14px 32px; }
  .hero-art { min-height: 285px; border-radius: 20px; }
  .hero-copy { padding-inline: 10px; text-align: center; }
  .earlybird-hero .hero-lead { margin-inline: auto; }
  .earlybird-hero .hero-note { margin-left: auto; }
  .hero-copy::after { display: none; }
  .admin-hero { grid-template-columns: 92px minmax(0,1fr); gap: 18px; padding: 24px 20px; }
  .admin-hero-lockup { min-height: 92px; border-radius: 20px; }
  .admin-hero-lockup img { width: 72px; height: 72px; }
  .simple-footer { flex-direction: column; gap: 8px; text-align: center; }
  .form-grid, .filters-grid, .choice-grid, .registration-details, .editor-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 10px; }
  .field-wide, .detail-row.wide { grid-column: auto; }
  .form-actions .button { flex: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .registration-summary { grid-template-columns: 1fr; }
  .registration-date { text-align: left; }
  .top-toolbar { top: 86px; }
  .button.ghost { margin-left: 0; }
}
