:root {
  color-scheme: dark;
  --bg: #020712;
  --bg-2: #061425;
  --ink: #f6fbff;
  --muted: #aac0d7;
  --soft: #7890aa;
  --dim: #52677f;
  --line: rgba(115, 205, 255, .18);
  --line-strong: rgba(115, 205, 255, .34);
  --panel: rgba(4, 15, 32, .76);
  --panel-strong: rgba(6, 22, 45, .9);
  --blue: #248dff;
  --blue-2: #51b7ff;
  --cyan: #74e6ff;
  --ice: #ecfbff;
  --green: #8df2d0;
  --danger: #ff7b9c;
  --warn: #ffd48a;
  --shadow: 0 30px 110px rgba(0, 0, 0, .52);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  min-width: 320px;
  background: var(--bg);
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font);
  background:
    linear-gradient(180deg, rgba(2,7,18,.84), rgba(2,7,18,.96)),
    radial-gradient(circle at 80% 8%, rgba(36,141,255,.18), transparent 31rem),
    radial-gradient(circle at 9% 40%, rgba(116,230,255,.09), transparent 28rem),
    url("/background.png") center top / cover fixed no-repeat,
    #020712;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(1,4,10,.96), rgba(2,10,22,.44) 48%, rgba(1,4,10,.94)),
    radial-gradient(circle at 50% -12%, rgba(116,230,255,.12), transparent 32rem);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(116,230,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116,230,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 80%, transparent);
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.hidden { display: none !important; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .78rem;
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(36,141,255,.38));
}

.brand strong {
  display: block;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.brand span span {
  display: block;
  margin-top: .3rem;
  color: var(--muted);
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .75rem 1rem;
  color: var(--ink);
  background: rgba(8,29,58,.62);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.btn:hover,
.btn:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  border-color: rgba(116,230,255,.38);
}

.btn.primary {
  color: #021020;
  font-weight: 920;
  background: linear-gradient(135deg, var(--ice), var(--blue-2) 52%, var(--blue));
  border-color: rgba(236,251,255,.65);
  box-shadow: 0 14px 34px rgba(36,141,255,.28), inset 0 1px 0 rgba(255,255,255,.55);
}

.btn.ghost {
  border-color: rgba(116,230,255,.18);
  background: rgba(116,230,255,.06);
}

.btn.danger {
  border-color: rgba(255,123,156,.35);
  color: #ffd9e3;
  background: rgba(255,123,156,.1);
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(116,230,255,.16);
  border-radius: 12px;
  color: #dff7ff;
  background: rgba(116,230,255,.06);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(8,26,52,.76), rgba(3,11,24,.86)), var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
}

.notice {
  padding: .9rem 1rem;
  border: 1px solid rgba(116,230,255,.2);
  border-radius: 16px;
  color: #d7ecff;
  background: rgba(116,230,255,.07);
  line-height: 1.5;
}

.notice.warn {
  border-color: rgba(255,212,138,.25);
  background: rgba(255,212,138,.08);
}

.notice.danger {
  border-color: rgba(255,123,156,.28);
  background: rgba(255,123,156,.08);
}

.gradient-word {
  color: transparent;
  background: linear-gradient(135deg, #f7fbff 4%, #7feaff 38%, #248dff 82%);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 820px) {
  body { background-attachment: scroll; }
  .brand img { width: 40px; height: 40px; }
  .brand span span { display: none; }
}
