/* ============================================================
   EN UNA NOTA — Design system
   Electric Vinyl Underground
   ============================================================ */

:root {
  --bg: #0d0e11;
  --bg-deep: #090a0c;
  --surface: #15161a;
  --surface-2: #1f2128;
  --surface-3: #262933;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #10ffa0;
  --accent-soft: rgba(16, 255, 160, 0.14);
  --accent-dim: #00e38d;
  --violet: #7b61ff;
  --violet-soft: rgba(123, 97, 255, 0.16);
  --coral: #ff3366;
  --coral-soft: rgba(255, 51, 102, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.38);
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 18px;
  --glow: 0 8px 32px -4px rgba(16, 255, 160, 0.25);
  --glow-strong: 0 0 28px rgba(16, 255, 160, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 82% -10%, rgba(16, 255, 160, 0.1), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(123, 97, 255, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: #05130c;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 20px;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
  user-select: none;
}

/* ---------- layout ---------- */
.wrap {
  width: min(1360px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 40px);
  position: relative;
  z-index: 2;
}

.stack {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
}

.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 14px; }
.gap-lg { gap: 22px; }
.gap-xl { gap: 32px; }

.grow { flex: 1; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.accent { color: var(--accent); }
.center { text-align: center; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.small {
  font-size: 13px;
}
.tiny {
  font-size: 11px;
}

/* ---------- brand / topbar ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: var(--accent);
  flex: none;
}

.brand-mark .material-symbols-outlined {
  font-size: 24px;
  animation: spin 9s linear infinite;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 17px;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 0;
}

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

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background 0.18s, box-shadow 0.18s, border-color 0.18s, opacity 0.18s;
  user-select: none;
}

.btn:hover {
  background: var(--surface-3);
  border-color: var(--line-2);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.field:focus-visible,
.icon-btn:focus-visible,
.option-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn .material-symbols-outlined {
  font-size: 19px;
}

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #05130c;
  border-color: transparent;
  box-shadow: 0 0 0 rgba(16, 255, 160, 0);
}

.btn-primary:hover {
  background: #3dffb6;
  box-shadow: var(--glow-strong);
}

.btn-ghost {
  --btn-bg: transparent;
  border-color: var(--line-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-danger {
  --btn-bg: transparent;
  --btn-fg: #ff8ba7;
  border-color: rgba(255, 51, 102, 0.35);
}

.btn-danger:hover {
  background: var(--coral-soft);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 26px;
  font-size: 13px;
  border-radius: var(--r-lg);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.38;
  pointer-events: none;
}

.icon-btn {
  width: 42px;
  height: 42px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-2);
}

.icon-btn:active {
  transform: scale(0.94);
}

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.chip-live {
  background: var(--accent-soft);
  border-color: rgba(16, 255, 160, 0.28);
  color: var(--accent);
}

.chip-violet {
  background: var(--violet-soft);
  border-color: rgba(123, 97, 255, 0.3);
  color: #cfc5ff;
}

.chip-danger {
  background: var(--coral-soft);
  border-color: rgba(255, 51, 102, 0.3);
  color: #ff9ab3;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}

.dot.pulse {
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.dot.coral {
  background: var(--coral);
  box-shadow: 0 0 10px var(--coral);
}

.dot.violet {
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

/* ---------- cards / panels ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 40%), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel {
  padding: clamp(18px, 2.4vw, 30px);
  position: relative;
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-title .material-symbols-outlined {
  color: var(--accent);
  font-size: 21px;
}

.panel-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.glass {
  background: rgba(21, 22, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- forms ---------- */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.field {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.field::placeholder {
  color: rgba(255, 255, 255, 0.26);
}

.field:hover {
  background: var(--surface-3);
}

.field:focus {
  outline: none;
  background: var(--surface-3);
  border-color: rgba(16, 255, 160, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 255, 160, 0.09);
}

.field-mono {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

select.field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23b9cbbc' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

textarea.field {
  min-height: 74px;
  resize: vertical;
}

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

.inline-field .field {
  flex: 1;
}

/* switch */
.switch {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s;
  flex: none;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--faint);
  transition: transform 0.22s var(--ease), background 0.2s;
}

.switch[aria-checked="true"] {
  background: var(--accent);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(16, 255, 160, 0.35);
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
  background: #05130c;
}

/* ---------- vinyl ---------- */
.vinyl-scene {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.vinyl-scene::before,
.vinyl-scene::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.vinyl-scene::before {
  width: 118%;
  height: 118%;
  background: radial-gradient(circle, rgba(16, 255, 160, 0.1), transparent 62%);
  animation: breathe 5s ease-in-out infinite;
}

.vinyl-scene::after {
  width: 138%;
  height: 138%;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.08), transparent 60%);
}

.disc {
  position: relative;
  width: var(--disc-size, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0a0b0d;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 40px rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  animation: spin 8s linear infinite;
  animation-play-state: paused;
}

.disc.playing {
  animation-play-state: running;
}

.disc-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0.75;
  background:
    repeating-radial-gradient(circle at 50% 50%, #191a1f 0px, #0c0d10 2px, #23252c 3px, #101116 4.6px),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.14), transparent 46%);
}

.disc-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0deg, rgba(255, 255, 255, 0.08) 40deg, transparent 90deg, transparent 200deg, rgba(255, 255, 255, 0.05) 240deg, transparent 300deg);
  mix-blend-mode: screen;
  pointer-events: none;
}

.disc-label {
  position: relative;
  z-index: 3;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b9003f, #7d0029 62%, #4c0017);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 51, 102, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
}

.disc-label .material-symbols-outlined {
  font-size: 22px;
  color: #ffd6d9;
}

.disc-label strong {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.disc-label span {
  font-size: 8px;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.disc-hole {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--bg-deep);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

.disc-video {
  position: absolute;
  z-index: 4;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 5px solid #101116;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
}

.disc-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 178%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.disc-video .video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 10px;
}

.disc-video .video-placeholder .material-symbols-outlined {
  font-size: 34px;
  color: var(--accent);
  opacity: 0.8;
}

.tonearm {
  position: absolute;
  top: -6%;
  right: 2%;
  width: 78px;
  z-index: 8;
  pointer-events: none;
  transform-origin: 78% 12%;
  transform: rotate(0deg);
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}

.tonearm.lifted {
  transform: rotate(-16deg);
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 30px;
}

.eq span {
  width: 5px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, var(--accent), rgba(16, 255, 160, 0.25));
  height: 30%;
  animation: eq 1s ease-in-out infinite;
  opacity: 0.9;
}

.eq span:nth-child(2) { animation-delay: -0.3s; }
.eq span:nth-child(3) { animation-delay: -0.55s; }
.eq span:nth-child(4) { animation-delay: -0.15s; }
.eq span:nth-child(5) { animation-delay: -0.7s; }
.eq span:nth-child(6) { animation-delay: -0.4s; }
.eq span:nth-child(7) { animation-delay: -0.85s; }
.eq span:nth-child(8) { animation-delay: -0.25s; }

.eq.paused span {
  animation-play-state: paused;
  height: 12% !important;
  opacity: 0.35;
}

/* ---------- options ---------- */
.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
  transition: background 0.22s, border-color 0.22s, transform 0.22s var(--ease), opacity 0.3s;
}

.option:hover {
  background: var(--surface-2);
  border-color: rgba(16, 255, 160, 0.28);
}

.option.selected {
  border-color: rgba(16, 255, 160, 0.65);
  background: var(--surface-2);
  box-shadow: var(--glow);
}

.option.correct {
  border-color: var(--accent);
  background: linear-gradient(90deg, rgba(16, 255, 160, 0.16), rgba(16, 255, 160, 0.03));
  box-shadow: var(--glow);
  animation: correct-pop 0.6s var(--ease);
}

.option.wrong {
  border-color: rgba(255, 51, 102, 0.55);
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.14), rgba(255, 51, 102, 0.02));
}

.option.dim {
  opacity: 0.42;
}

.option-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(16, 255, 160, 0.22), rgba(16, 255, 160, 0.04));
  transition: width 0.9s var(--ease);
  pointer-events: none;
}

.option-bar.coral {
  background: linear-gradient(90deg, rgba(255, 51, 102, 0.2), rgba(255, 51, 102, 0.03));
}

.option-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.option-cover {
  position: relative;
  width: 52px;
  aspect-ratio: 1;
  flex: none;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.option-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-letter {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: rgba(9, 10, 12, 0.82);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.option-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.option-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-votes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding-left: 8px;
}

.option-votes .material-symbols-outlined {
  font-size: 14px;
  color: var(--faint);
}

.option-pct {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  min-width: 46px;
  text-align: right;
}

.vote-hidden {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- QR ---------- */
.qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.qr-box {
  width: 108px;
  height: 108px;
  flex: none;
  padding: 6px;
  border-radius: var(--r-md);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.qr-box canvas,
.qr-box img,
.qr-box svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.qr-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.pin {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--accent);
}

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 420px);
}

.toast {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(21, 22, 26, 0.96);
  border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  animation: toast-in 0.32s var(--ease);
  max-width: 100%;
}

.toast.out {
  animation: toast-out 0.3s var(--ease) forwards;
}

/* ---------- modal ---------- */
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade-in 0.2s ease;
}

.modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
  animation: modal-in 0.3s var(--ease);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- misc ---------- */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(123, 97, 255, 0.09);
  border: 1px solid rgba(123, 97, 255, 0.2);
  color: #cfc5ff;
  font-size: 12px;
  line-height: 1.5;
}

.note .material-symbols-outlined {
  font-size: 17px;
  margin-top: 1px;
}

.note.warn {
  background: rgba(255, 51, 102, 0.08);
  border-color: rgba(255, 51, 102, 0.22);
  color: #ffb3c6;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: currentColor;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

.spinner.big {
  width: 34px;
  height: 34px;
  border-width: 3px;
  color: var(--accent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 24px 0 34px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- landing ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(18px, 4vh, 50px) 0;
}

.hero-copy {
  max-width: 620px;
}

.hero-title {
  font-size: clamp(54px, 9.4vw, 118px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-transform: uppercase;
  margin: 18px 0 22px;
}

.hero-title span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
  text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 38px rgba(16, 255, 160, 0.4);
}

.hero-lead {
  max-width: 470px;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.65;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.join-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border-radius: var(--r-lg);
  background: rgba(21, 22, 26, 0.8);
  border: 1px solid var(--line);
}

.join-inline .field {
  width: 124px;
  min-height: 40px;
  text-align: center;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-disc {
  --disc-size: clamp(280px, 32vw, 430px);
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px 9px 9px;
  border-radius: var(--r-md);
  background: rgba(21, 22, 26, 0.9);
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: float 6s ease-in-out infinite;
  z-index: 5;
}

.floating-card .fc-cover {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  flex: none;
}

.floating-card strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.floating-card span {
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}

.fc-1 { top: 8%; left: -4%; animation-delay: -1s; }
.fc-2 { bottom: 12%; right: -6%; animation-delay: -3s; }
.fc-3 { bottom: 2%; left: 4%; animation-delay: -2s; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 26px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.how {
  padding: 20px 0 80px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.how-card {
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 60%), var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.how-card .num {
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.how-card .material-symbols-outlined {
  color: var(--accent);
  font-size: 28px;
  margin-bottom: 14px;
}

.how-card h3 {
  font-size: 17px;
  margin-bottom: 7px;
}

.how-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- animations ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes eq {
  0%, 100% { height: 22%; }
  50% { height: 100%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px) scale(0.96); }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes correct-pop {
  0% { transform: scale(0.985); }
  45% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.shake { animation: shake 0.45s ease; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.rise { animation: rise 0.5s var(--ease) both; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-main {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 10px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .hero-title {
    font-size: clamp(52px, 15vw, 92px);
  }

  .how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 14px 0;
  }

  .brand-sub {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .hero-stat strong {
    font-size: 18px;
  }

  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .fc-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .disc {
    animation: none !important;
  }
}
