:root {
  color-scheme: dark;
  --bg: #05040a;
  --bg-soft: #0c0b16;
  --bg-strong: #16142a;
  --panel: #111020;
  --panel-soft: #18172a;
  --panel-strong: #1f1b32;
  --text: #f6f2ff;
  --muted: #a6a1c4;
  --accent: #f38acb;
  --accent-strong: #ff4fa5;
  --accent-soft: rgba(243, 138, 203, 0.18);
  --border: rgba(243, 138, 203, 0.26);
  --border-subtle: rgba(243, 138, 203, 0.18);
  --border-strong: rgba(243, 138, 203, 0.4);
  --success: #44f5c4;
  --danger: #ff7b9a;
  --warning: #f3c57a;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow-soft: 0 24px 40px rgba(5, 4, 15, 0.6);
  --shadow-subtle: 0 12px 28px rgba(5, 4, 15, 0.45);
  --shadow-strong: 0 30px 60px rgba(5, 4, 15, 0.7);
  --grid-gap: clamp(16px, 3vw, 28px);
  --font-sans: "Inter", "SF Pro Text", system-ui, -apple-system,
    BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f9f5ff;
    --bg-soft: #f3e9ff;
    --bg-strong: #e6ddff;
    --panel: #ffffff;
    --panel-soft: #f8f2ff;
    --panel-strong: #f0e6ff;
    --text: #1b1127;
    --muted: #6a5b86;
    --border: rgba(127, 84, 161, 0.22);
    --border-subtle: rgba(127, 84, 161, 0.16);
    --border-strong: rgba(127, 84, 161, 0.32);
    --shadow-soft: 0 16px 36px rgba(82, 55, 120, 0.16);
    --shadow-subtle: 0 10px 24px rgba(82, 55, 120, 0.16);
    --shadow-strong: 0 20px 34px rgba(82, 55, 120, 0.2);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: radial-gradient(
      800px 500px at 0% 0%,
      rgba(243, 138, 203, 0.12),
      transparent
    ),
    radial-gradient(
      900px 500px at 100% 0%,
      rgba(127, 104, 255, 0.18),
      transparent
    ),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-strong);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

button:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.shell {
  width: min(1040px, 92vw);
  margin-inline: auto;
}

.wrap {
  width: min(980px, 94vw);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.section {
  padding: clamp(24px, 4vw, 36px) 0;
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: conic-gradient(
    from 190deg,
    var(--accent),
    var(--accent-strong),
    #7a5cff,
    var(--accent)
  );
  box-shadow: 0 0 22px rgba(255, 111, 188, 0.7);
  display: inline-block;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-pill, 999px);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  padding: 4px 10px;
}

.badge.subtle {
  background: color-mix(in oklab, var(--panel) 85%, transparent);
  border: 1px solid var(--border);
  color: var(--muted);
}

.chip {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--border-subtle);
  color: var(--text);
}

.ghost,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
  white-space: nowrap;
}

.ghost {
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--panel) 88%, transparent);
  color: var(--text);
}

.ghost:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
  border-color: var(--border-strong);
}

.btn {
  border: none;
  background: linear-gradient(135deg, var(--accent-strong), #ff7fcc, #c59cff);
  color: #1a1024;
  box-shadow: var(--shadow-soft);
}

.btn.ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-strong), #ffb1dc);
  color: #1a1024;
}

.btn.small {
  padding: 8px 12px;
  font-size: 12px;
}

.btn.block {
  width: 100%;
  justify-content: center;
}

.card,
.panel {
  background: linear-gradient(140deg, var(--panel) 70%, var(--panel-soft));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
}

.panel {
  background: color-mix(in oklab, var(--panel) 92%, transparent);
}

.card h3,
.panel h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.taglist {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.taglist li {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(20, 14, 36, 0.9);
  border: 1px solid var(--border);
  color: var(--muted);
}

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

.field span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

input,
select,
textarea {
  font: inherit;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent);
}

textarea {
  resize: vertical;
}

.list {
  margin: 0;
  padding-left: 20px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120%);
  background: color-mix(in oklab, var(--panel) 94%, transparent);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: var(--radius-pill, 999px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--shadow-subtle);
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
