:root {
  --bg: #010000/*#121218*/;
  --surface: #00000056/*#1b1c24*/;
  --surface-raised: #181818/*#22232e*/;
  --border: #33343f;
  --text: #edeef2;
  --text-muted: #8c8fa0;
  --accent: #ffffff;
  --accent-dim: #ff5fa626;
  --success: #6fd19c;
  --error: #ff8080;
  --radius: 10px;
  --font-display: "DM Mono", monospace;
  --font-body: "DM Mono", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 20px;
  position: relative;
  overflow-x: hidden;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.45) saturate(0.9);
}

.backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.6) saturate(0.0);
  transform: scale(1.15);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}
.backdrop.is-visible {
  opacity: 1;
}

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px 36px;
}

.panel__header {
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.brand__mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
  transform: rotate(45deg);
}

.brand__arrow {
  color: var(--border);
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 44ch;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

input, textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: vertical;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

input::placeholder, textarea::placeholder {
  color: #5c5e6b;
}

.field__hint {
  font-size: 12.5px;
  color: var(--error);
  min-height: 16px;
}

/* .preview {
  display: flex;
  gap: 14px;
  align-items: stretch;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px;
  animation: fade-in 0.25s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.preview__cover {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--border);
  flex-shrink: 0;
}

.preview__meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.preview__label {
  font-size: 11.5px;
  color: var(--text-muted);
}

.preview__name {
  margin: 0;
  font-family: "Inter", monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
} */

.turnstile-widget {
  /*min-height: 65px;*/
  display: flex;
  align-items: center;
}

.submit {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: #1a1113;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 13px 16px;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.submit:hover:not(:disabled) {
  filter: brightness(1.08);
}

.submit:active:not(:disabled) {
  transform: scale(0.99);
}

.submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.status {
  margin: -6px 0 0;
  font-size: 13.5px;
  min-height: 18px;
}

.status.is-error {
  color: var(--error);
}

.status.is-success {
  color: var(--success);
}

.status.is-loading {
  color: var(--text-muted);
}

.closed-notice {
  margin-top: 8px;
  padding: 28px 20px;
  /*border: 1px solid var(--border);*/
  border-radius: 8px;
  /*background: var(--surface-raised);*/
  text-align: center;
}

.closed-notice p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result__title {
  margin: 0;
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}

.result__name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

.result__link {
  width: fit-content;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.result__link:hover {
  color: var(--accent);
}

.result__reset {
  margin-top: 10px;
  align-self: flex-start;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
}

.result__reset:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

@media (max-width: 480px) {
  .panel {
    padding: 28px 22px 26px;
  }
  h1 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
  font-size: 12.5px;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}