:root {
  color-scheme: dark;
  font-family: "Bricolage Grotesque", sans-serif;
  color: #f5f5f2;
  background: #02190c;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --background: #02190c;
  --surface: #0a3511;
  --surface-raised: #10451b;
  --text: #f5f5f2;
  --muted: #b7c4b8;
  --muted-dark: #8d9f90;
  --border: #1a5425;
  --lime: #b8ff6c;
  --lime-dark: #1fad3d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.tag-preview {
  margin-top: 30px;
  max-width: 430px;
}

.tag-canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(184, 255, 108, 0.3);
  border-radius: 14px;
}

.preview-note {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.invite-panel {
  margin-top: 20px;
}

.organizer-invite {
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid rgba(184, 255, 108, 0.22);
  border-radius: 10px;
  background: rgba(31, 173, 61, 0.08);
}

.organizer-invite h3 {
  margin: 0 0 6px;
  color: var(--lime);
  font-size: 15px;
}

.organizer-invite p {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.invite-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.invite-actions input {
  min-width: 0;
  flex: 1 1 160px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
}

.invite-actions button {
  padding: 8px 10px;
  border: 1px solid var(--lime-dark);
  border-radius: 7px;
  color: var(--lime);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}

.invite-panel small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.field input[type="file"] {
  height: auto;
  padding: 10px;
}

.secondary-button {
  border: 1px solid var(--lime-dark);
  background: transparent;
  color: var(--lime);
}

#download-tag {
  margin-top: 15px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.dashboard-actions .submit-button {
  flex: 1 1 180px;
}

.dashboard-actions .text-button {
  margin: 0;
}

.lookup-result,
.registration-item,
#scanner {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.lookup-result h3 {
  margin: 0 0 8px;
}

.registration-item p,
.lookup-result p,
#scanner p {
  margin: 8px 0;
}

.registration-item .text-button {
  display: inline-block;
  margin: 0 10px 0 0;
  padding-left: 0;
}

.search-form {
  margin-top: 24px;
}

.search-form .text-button {
  display: inline-block;
  margin: 8px 8px 0 0;
  padding-left: 0;
}

#scanner-video {
  width: 100%;
  max-height: 350px;
  border-radius: 8px;
  background: #02190c;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 44%, rgba(31, 173, 61, 0.16), transparent 34rem),
    var(--background);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1200px, calc(100% - 64px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

.back-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}

.back-link span {
  margin-right: 7px;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--lime);
}

main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 58px 0 64px;
}

.registration-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 90px);
}

.event-intro {
  padding: 0 0 20px;
}

.eyebrow,
.step-label,
.theme-label {
  font-family: "Feature Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--lime);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(31, 173, 61, 0.7);
}

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

h1,
h2,
.theme-title {
  font-family: "Bricolage Grotesque", sans-serif;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

h1 span {
  color: var(--lime);
}

.intro-copy {
  max-width: 450px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-bottom: 32px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-icon {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(184, 255, 108, 0.26);
  border-radius: 11px;
  color: var(--lime);
  font-size: 19px;
}

.detail-item strong,
.detail-item small {
  display: block;
}

.detail-item strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.detail-item small {
  color: var(--muted);
  font-size: 12px;
}

.theme-card {
  position: relative;
  width: min(100%, 375px);
  min-height: 130px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
  border: 1px solid rgba(184, 255, 108, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(31, 173, 61, 0.2), transparent 78%),
    var(--surface);
}

.theme-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
}

.theme-title {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.theme-title span {
  color: var(--lime);
}

.theme-description {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.theme-spark {
  position: absolute;
  color: var(--lime);
  opacity: 0.75;
}

.spark-one {
  top: 22px;
  right: 36px;
  font-size: 31px;
}

.spark-two {
  right: 22px;
  bottom: 17px;
  font-size: 14px;
}

.social-proof {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.social-proof span {
  margin-right: 6px;
  color: var(--lime);
}

.form-card {
  padding: clamp(27px, 4vw, 42px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(184, 255, 108, 0.045), transparent 45%), var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 21px;
}

.registration-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 19px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(2, 25, 12, 0.6);
}

.registration-switch-button {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.registration-switch-button.is-active {
  background: var(--lime-dark);
  color: #02190c;
}

.registration-switch-button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.registration-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.card-theme-field {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.card-theme-field > legend {
  margin-bottom: 9px;
  color: #e8e9e4;
  font-size: 11px;
  font-weight: 600;
}

.card-theme-options {
  display: flex;
  gap: 9px;
}

.card-theme-option {
  position: relative;
  min-width: 98px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.card-theme-option:has(input:checked) {
  border-color: var(--lime);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(184, 255, 108, 0.18);
}

.card-theme-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--lime-dark);
}

.card-theme-option input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.theme-swatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(184, 255, 108, 0.45);
  border-radius: 50%;
}

.theme-swatch-light {
  background: linear-gradient(135deg, #f4f7ed 50%, #1fad3d 50%);
}

.theme-swatch-dark {
  background: linear-gradient(135deg, #02190c 50%, #b8ff6c 50%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.step-label {
  margin-bottom: 9px;
  color: var(--lime);
  font-size: 9px;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.prototype-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 11px 12px;
  border: 1px solid rgba(184, 255, 108, 0.2);
  border-radius: 9px;
  background: rgba(31, 173, 61, 0.1);
  color: var(--lime);
  font-size: 12px;
}

.prototype-note > span {
  line-height: 1.45;
}

.prototype-note p {
  margin: 0;
  color: #c1c4b8;
  line-height: 1.45;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  min-width: 0;
  margin-bottom: 17px;
}

.field label,
.interest-field legend {
  display: block;
  margin-bottom: 8px;
  color: #e8e9e4;
  font-size: 11px;
  font-weight: 600;
}

.field label > span:not(.optional) {
  color: var(--lime);
}

.optional {
  color: var(--muted-dark);
  font-size: 10px;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #1a5425;
  border-radius: 8px;
  outline: none;
  background: #082b10;
  color: var(--text);
  font-size: 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder {
  color: #686b63;
}

.field select {
  color: #d6d8d1;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--lime-dark);
  box-shadow: 0 0 0 3px rgba(31, 173, 61, 0.2);
}

.interest-field {
  margin: 2px 0 22px;
  padding: 0;
  border: 0;
}

.interest-field legend {
  margin-bottom: 10px;
}

.interest-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-option {
  position: relative;
  cursor: pointer;
}

.interest-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.interest-option span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #1a5425;
  border-radius: 7px;
  color: #b7bab1;
  font-size: 10px;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.interest-option input:checked + span {
  border-color: rgba(184, 255, 108, 0.65);
  background: rgba(31, 173, 61, 0.18);
  color: var(--lime);
}

.interest-option input:focus-visible + span {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.submit-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--lime-dark);
  color: #02190c;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, transform 150ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  background: var(--lime);
}

.submit-button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.privacy-note {
  margin: 11px 0 0;
  color: var(--muted-dark);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.form-message {
  margin-top: 16px;
  padding: 13px;
  border: 1px solid rgba(184, 255, 108, 0.25);
  border-radius: 9px;
  background: rgba(31, 173, 61, 0.14);
  color: #e9ebdf;
  font-size: 12px;
  line-height: 1.6;
}

.form-message a {
  color: var(--lime);
  font-weight: 700;
}

.form-message.error {
  border-color: rgba(255, 144, 128, 0.45);
  background: rgba(118, 38, 29, 0.3);
}

.form-message.success {
  border-color: rgba(184, 255, 108, 0.4);
  background: rgba(31, 173, 61, 0.2);
}

.official-link {
  margin: 22px 0 0;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.official-link a {
  display: inline-block;
  margin-left: 3px;
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
}

.official-link a:hover,
.official-link a:focus-visible {
  text-decoration: underline;
}

.site-footer {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-dark);
  font-size: 10px;
}

.footer-star {
  margin-left: 5px;
  color: var(--lime);
}

.code-tag {
  margin-left: auto;
  color: var(--muted);
}

.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 18px;
  color: #d3ddd3;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.55;
}

.consent-option input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--lime-dark);
}

.consent-option input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.admin-link {
  color: var(--muted-dark);
  font-family: "Feature Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-decoration: none;
}

.admin-link:hover,
.admin-link:focus-visible {
  color: var(--lime);
}

.admin-shell {
  max-width: 980px;
}

.admin-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.admin-card {
  width: min(100%, 900px);
  min-width: 0;
  padding: clamp(30px, 6vw, 52px);
}

.admin-card h1 {
  margin: 18px 0 15px;
  font-size: clamp(42px, 8vw, 58px);
}

.admin-intro,
.export-panel p {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.admin-login {
  display: grid;
  gap: 10px;
}

.admin-login .field {
  margin-bottom: 8px;
}

.export-panel {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.export-panel h2 {
  margin-bottom: 9px;
  font-size: 21px;
}

.text-button {
  display: block;
  margin: 16px auto 0;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--lime);
}

.admin-privacy {
  margin: 24px 0 0;
  color: var(--muted-dark);
  font-family: "Feature Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  text-align: center;
}

.submit-button:disabled,
.text-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 900px) {
  .registration-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .tag-preview {
    max-width: 560px;
  }

  h1 {
    font-size: clamp(38px, 5vw, 52px);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 36px, 560px);
  }

  .site-header {
    min-height: 76px;
  }

  main {
    display: block;
    padding: 45px 0;
  }

  .registration-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .event-intro {
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(42px, 10vw, 58px);
  }

  .intro-copy {
    max-width: 500px;
    margin-bottom: 24px;
  }

  .event-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-bottom: 22px;
  }

  .theme-card {
    display: flex;
  }

  .social-proof {
    margin-top: 19px;
  }

  .form-card {
    padding: 25px 22px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .wordmark {
    gap: 9px;
    font-size: 13px;
  }

  .brand-logo {
    width: 155px;
  }

  .back-link {
    font-size: 11px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card {
    padding: 23px 18px;
  }

  .admin-card {
    padding: 28px 20px;
  }

  .interest-options {
    gap: 7px;
  }

  .interest-option span {
    font-size: 9px;
  }

  .field input,
  .field select {
    font-size: 16px;
  }

  .invite-actions input {
    flex-basis: 100%;
  }

  .site-header .wordmark {
    max-width: 58%;
  }

  h1,
  .admin-card h1 {
    font-size: clamp(32px, 10vw, 42px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
