@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --c0: #040710;
  --c1: #070c1a;
  --c2: #0c1228;
  --c3: #131a38;
  --cyan:   #53f6ff;
  --pink:   #ff4b91;
  --purple: #8b5cff;
  --cyan2:  #00d4e8;
  --text1:  rgba(255,255,255,.94);
  --text2:  rgba(255,255,255,.68);
  --text3:  rgba(255,255,255,.42);
  --glass:  rgba(255,255,255,.04);
  --glass2: rgba(255,255,255,.07);
  --border: rgba(255,255,255,.09);
  --border2:rgba(255,255,255,.14);
  --glow1:  rgba(83,246,255,.18);
  --glow2:  rgba(255,75,145,.14);
  --glow3:  rgba(139,92,255,.14);
  --shadow: 0 20px 60px rgba(0,0,0,.75);
  --r1: 1.5rem;
  --r2: 1.1rem;
  --r3: .75rem;
  --ease: cubic-bezier(.22,1,.36,1);
  --fast: 150ms;
  --med:  250ms;
}

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

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

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--c0);
  color: var(--text1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(83,246,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83,246,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(600px 400px at 15% 20%, var(--glow1), transparent 65%),
      radial-gradient(500px 350px at 85% 80%, var(--glow2), transparent 65%),
      radial-gradient(400px 300px at 55% 45%, var(--glow3), transparent 65%);
    pointer-events: none;
    z-index: 0;
    animation: driftGlow 20s ease-in-out infinite alternate;
  }
  @keyframes driftGlow {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(1.5%, 1%) scale(1.04); }
  }
}

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 1.5rem);
}

.dash-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(83,246,255,.08);
  border: 1px solid rgba(83,246,255,.2);
  color: var(--cyan) !important;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .01em;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .dash-link { transition: all var(--med) var(--ease); }
  .dash-link:hover { background: rgba(83,246,255,.14); border-color: var(--cyan); transform: translateY(-1px); }
}

@media (max-width: 768px) {
  .dash-link { padding: .4rem .8rem; font-size: .72rem; top: .6rem; left: .6rem; }
  .dash-link:active { opacity: .75; }
}

#wizard {
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 10;
}

.card {
  background: linear-gradient(160deg, rgba(12,18,40,.97) 0%, rgba(7,12,26,.97) 100%);
  border-radius: var(--r1);
  border: 1px solid var(--border2);
  padding: clamp(1.2rem, 4vw, 2rem);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
  animation: cardIn 500ms var(--ease) both;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), var(--purple), transparent);
  border-radius: var(--r1) var(--r1) 0 0;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}

.ld-spinner {
  position: fixed;
  inset: 0;
  background: var(--c0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 300ms ease;
}

.ld-spinner.hidden { opacity: 0; pointer-events: none; }

.ld-ring {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--pink);
  animation: spin 900ms linear infinite;
}

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

.lang-wrap { position: relative; display: flex; justify-content: flex-end; margin-bottom: .75rem; }

#langDropdown {
  display: flex; align-items: center; justify-content: center;
  padding: .55rem; border-radius: var(--r3);
  background: var(--glass2); border: 1px solid var(--border);
  color: var(--text2); cursor: pointer; line-height: 1;
}

@media (min-width: 769px) {
  #langDropdown { transition: all var(--fast) ease; }
  #langDropdown:hover { background: rgba(255,255,255,.1); border-color: var(--border2); }
}

#langMenu {
  position: absolute; right: 0; top: calc(100% + .4rem);
  min-width: 11rem; max-height: 16rem; overflow-y: auto;
  background: rgba(13,18,35,.98);
  border: 1px solid var(--border2);
  border-radius: var(--r3);
  box-shadow: 0 20px 50px rgba(0,0,0,.8);
  padding: .3rem 0; z-index: 999;
}

#langMenu.hidden { display: none !important; }

.lang-option {
  display: block; padding: .55rem 1rem;
  color: var(--text2); font-size: .82rem;
  text-decoration: none; cursor: pointer;
}

@media (min-width: 769px) {
  .lang-option { transition: background var(--fast) ease; }
  .lang-option:hover { background: var(--glass2); color: var(--text1); }
}

@media (max-width: 768px) {
  .lang-option:active { background: var(--glass2); }
}

#title {
  font-size: clamp(1.5rem, 5.5vw, 2.2rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--cyan) 0%, #a0b4ff 45%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: clamp(.8rem, 2.5vw, 1.3rem);
}

.step-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: clamp(.8rem, 2.5vw, 1.3rem);
}

.step-circle {
  width: clamp(2.1rem, 5.5vw, 2.6rem);
  height: clamp(2.1rem, 5.5vw, 2.6rem);
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: var(--glass);
  color: var(--text3);
  font-size: clamp(.78rem, 1.8vw, .9rem);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

@media (min-width: 769px) {
  .step-circle { transition: all var(--med) var(--ease); }
}

.step-circle.active {
  border-color: transparent;
  color: var(--c0);
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 16px rgba(83,246,255,.35);
}

.step-circle.done {
  border-color: transparent;
  color: var(--c0);
  background: linear-gradient(135deg, var(--cyan2), #5a9af8);
}

.step-circle.done::after {
  content: '✓';
  position: absolute;
  font-size: .95em;
}

.step-circle.done span { display: none; }

.step-line {
  flex: 1;
  max-width: 2rem;
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.step-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: inherit;
  transform: translateX(-100%);
}

@media (min-width: 769px) { .step-line::after { transition: transform 500ms var(--ease); } }
@media (max-width: 768px) { .step-line::after { transition: transform 300ms ease; } }

.step-line.active::after { transform: translateX(0); }

.hint-pill {
  width: 100%;
  padding: .55rem .9rem;
  border-radius: var(--r3);
  background: rgba(83,246,255,.05);
  border: 1px solid rgba(83,246,255,.12);
  color: rgba(255,255,255,.8);
  font-size: clamp(.75rem, 2.2vw, .84rem);
  line-height: 1.5;
  text-align: center;
}

.hint-pill:empty { display: none !important; }

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--glass);
  border: 1.5px solid var(--border);
  border-radius: var(--r3);
  color: var(--text1);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(.95rem, 2.8vw, 1.1rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: .04em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

@media (min-width: 769px) {
  .input-wrap input { transition: all var(--med) var(--ease); }
  .input-wrap input:focus { background: var(--glass2); border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(83,246,255,.1); }
}

@media (max-width: 768px) {
  .input-wrap input:focus { background: var(--glass2); border-color: var(--cyan); outline: none; }
}

.input-wrap input::placeholder { color: var(--text3); font-family: 'Outfit', sans-serif; }

.progress-track {
  height: .4rem;
  background: var(--glass2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  border-radius: 999px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: .3rem;
  font-size: .6rem; font-weight: 700; color: transparent;
  min-width: 0;
  transform-origin: left;
}

@media (min-width: 769px) { .progress-fill { transition: width 600ms var(--ease); } }
@media (max-width: 768px) { .progress-fill { transition: width 350ms ease; } }

button, .btn-primary, .btn-secondary, .btn-ghost, .btn-discord {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: var(--r3);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  letter-spacing: .01em;
  line-height: 1;
}

.btn-primary, #btnStart:not(:disabled), #btnNext:not(:disabled) {
  background: linear-gradient(135deg, var(--cyan), var(--pink)) !important;
  color: var(--c0) !important;
  width: 100%;
  padding: .9rem 1rem;
  font-size: clamp(.88rem, 2.5vw, 1rem);
}

@media (min-width: 769px) {
  .btn-primary, #btnStart:not(:disabled), #btnNext:not(:disabled) {
    transition: all var(--med) var(--ease) !important;
  }
  .btn-primary:hover, #btnStart:not(:disabled):hover, #btnNext:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(83,246,255,.3) !important;
    filter: brightness(1.06);
  }
  .btn-primary::after, #btnStart::after, #btnNext::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transform: translateX(-120%) skewX(-20deg);
    pointer-events: none;
  }
  .btn-primary:hover::after, #btnStart:hover::after, #btnNext:hover::after {
    animation: shineSwp .7s var(--ease) forwards;
  }
  @keyframes shineSwp {
    to { transform: translateX(160%) skewX(-20deg); }
  }
}

@media (max-width: 768px) {
  .btn-primary:active, #btnStart:not(:disabled):active, #btnNext:not(:disabled):active {
    opacity: .82;
    transform: scale(.985);
  }
}

.btn-discord, #btnDiscord {
  background: linear-gradient(135deg, #5865F2, #9146FF) !important;
  color: #fff !important;
  width: 100%;
  padding: .9rem 1rem;
  font-size: clamp(.88rem, 2.5vw, 1rem);
}

@media (min-width: 769px) {
  .btn-discord, #btnDiscord { transition: all var(--med) var(--ease) !important; }
  .btn-discord:hover, #btnDiscord:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(88,101,242,.35) !important; }
}

@media (max-width: 768px) {
  .btn-discord:active, #btnDiscord:active { opacity: .82; }
}

.btn-ghost, #btnGuest {
  background: var(--glass) !important;
  border: 1.5px solid var(--border2) !important;
  color: var(--text1) !important;
  width: 100%;
  padding: .85rem 1rem;
  font-size: clamp(.86rem, 2.4vw, .98rem);
}

@media (min-width: 769px) {
  .btn-ghost, #btnGuest { transition: all var(--fast) ease !important; }
  .btn-ghost:hover, #btnGuest:hover { background: var(--glass2) !important; border-color: var(--border2) !important; }
}

#btnLogoutStep1, #btnDiscordLogout, #btnRenewAccount {
  padding: .55rem 1rem;
  font-size: .84rem;
  border-radius: var(--r3);
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#btnLogoutStep1 {
  width: 100%;
  background: rgba(255,75,145,.08);
  border: 1px solid rgba(255,75,145,.2);
  color: rgba(255,120,160,.9);
}

#btnDiscordLogout {
  background: rgba(255,75,145,.08);
  border: 1px solid rgba(255,75,145,.2);
  color: rgba(255,120,160,.9);
  padding: .5rem .9rem;
}

#btnRenewAccount {
  background: linear-gradient(135deg, rgba(255,190,50,.18), rgba(255,130,30,.14));
  border: 1px solid rgba(255,190,50,.25);
  color: rgba(255,210,90,.95);
}

#btnStart:disabled, #btnNext:disabled {
  background: var(--glass) !important;
  border: 1px solid var(--border) !important;
  color: var(--text3) !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  width: 100%;
  padding: .9rem 1rem;
  font-size: clamp(.88rem, 2.5vw, 1rem);
}

.spin-icon {
  width: 1rem; height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  animation: spin 700ms linear infinite;
  flex-shrink: 0;
}

.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .02em;
}

.badge-premium { background: rgba(255,210,50,.18); color: #ffd23e; border: 1px solid rgba(255,210,50,.25); }
.badge-normal  { background: rgba(83,246,255,.1); color: var(--cyan); border: 1px solid rgba(83,246,255,.2); }

#tosSection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem .9rem;
  border-radius: var(--r3);
  background: rgba(83,246,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}

#tosSection label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem .3rem;
  font-size: clamp(.74rem, 2.1vw, .83rem);
  color: var(--text2);
  cursor: pointer;
  line-height: 1.9;
  text-align: center;
  width: 100%;
}

#tosCheckbox {
  accent-color: var(--cyan);
  cursor: pointer;
  width: 1rem; height: 1rem;
  flex-shrink: 0;
}

#tosSection a {
  color: var(--cyan) !important;
  text-decoration: none;
  font-weight: 600;
  padding: .1rem .3rem;
  border-radius: .25rem;
  white-space: nowrap;
}

@media (min-width: 769px) {
  #tosSection a { transition: all var(--fast) ease; }
  #tosSection a:hover { background: rgba(83,246,255,.1); }
}

#boundBanner {
  padding: 1.1rem;
  border-radius: var(--r2);
  background: linear-gradient(135deg, rgba(83,246,255,.06), rgba(139,92,255,.05));
  border: 1px solid rgba(83,246,255,.15);
}

.bound-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
}

.bound-info p {
  font-size: .83rem;
  color: var(--text2);
  margin-bottom: .2rem;
}

.bound-info strong { color: var(--text1); font-size: .9rem; }

.bound-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.step-hdr {
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-weight: 700;
  color: var(--text1);
  letter-spacing: .01em;
}

.step-acct {
  text-align: center;
  font-size: .88rem;
  color: var(--text2);
}

.step-acct strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--cyan);
  font-weight: 600;
}

.result-inner {
  padding: 1.3rem;
  border-radius: var(--r2);
  background: linear-gradient(135deg, rgba(83,246,255,.06), rgba(139,92,255,.05));
  border: 1px solid rgba(83,246,255,.18);
  text-align: center;
  animation: cardIn 500ms var(--ease) both;
}

.result-badge { font-size: 2.5rem; margin-bottom: .5rem; }

.result-title {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .75rem;
  border-radius: .6rem;
  background: var(--glass);
  border: 1px solid var(--border);
  margin-bottom: .5rem;
}

.result-label { font-size: .82rem; color: var(--text2); font-weight: 500; }
.result-val { font-size: .88rem; color: var(--text1); font-weight: 600; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: .82rem !important; }
.mt-4 { margin-top: 1rem !important; }

.card-footer {
  margin-top: 1.2rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  text-align: center;
}

.discord-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(88,101,242,.25), rgba(145,70,255,.2));
  border: 1px solid rgba(88,101,242,.3);
  color: #a5afff !important;
  font-weight: 600; font-size: .84rem;
  text-decoration: none;
}

@media (min-width: 769px) {
  .discord-pill { transition: all var(--med) ease; }
  .discord-pill:hover { background: linear-gradient(135deg, rgba(88,101,242,.35), rgba(145,70,255,.28)); transform: translateY(-1px); }
}

.footer-text { font-size: .77rem; color: var(--text3); }
.footer-text a { color: var(--cyan) !important; text-decoration: none; }

.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.hidden { display: none !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }

.ab-popup {
  background: rgba(7,12,26,.98) !important;
  border: 1px solid rgba(255,75,145,.2) !important;
  border-radius: var(--r2) !important;
  width: min(94vw, 500px) !important;
  max-height: calc(95vh - 2rem) !important;
  display: flex !important; flex-direction: column !important;
  padding: 1.2rem !important;
  overflow: visible !important;
}

.ab-html {
  max-height: 52vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding-right: .2rem !important;
  flex: 1 1 auto !important;
}

.ab-inner { display: flex; flex-direction: column; gap: .7rem; }

.ab-yt {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: .6rem; overflow: hidden;
}

.ab-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ab-steps { display: flex; flex-direction: column; gap: .4rem; }

.ab-detail {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: .55rem;
  padding: .5rem .7rem;
  cursor: pointer;
  font-size: .8rem;
}

.ab-detail summary {
  font-weight: 600; font-size: .82rem; list-style: none;
  display: flex; align-items: center; gap: .4rem;
  color: var(--text1);
}

.ab-detail summary::-webkit-details-marker { display: none; }

.ab-detail[open] summary::before { content: '▾ '; }
.ab-detail:not([open]) summary::before { content: '▸ '; color: var(--cyan); }

.ab-detail p { margin: .35rem 0 0 1.1rem; color: var(--text2); line-height: 1.5; }

.ab-extra { font-size: .76rem; color: var(--text3); text-align: center; padding: .35rem; border-top: 1px solid var(--border); margin-top: .2rem; }

.ab-popup .swal2-actions {
  flex: 0 0 auto !important;
  position: sticky !important; bottom: 0 !important;
  background: rgba(7,12,26,.98) !important;
  border-top: 1px solid var(--border) !important;
  padding: .65rem 0 0 !important;
  margin: .5rem 0 0 !important;
  gap: .4rem !important;
  z-index: 10 !important;
}

.swal2-container {
  z-index: 10000 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}

.swal2-popup {
  background: rgba(10,15,30,.97) !important;
  border: 1px solid var(--border2) !important;
  border-radius: var(--r2) !important;
  color: var(--text1) !important;
  padding: 1.4rem !important;
  max-width: 480px !important; width: 90% !important;
  max-height: calc(100vh - 2rem) !important;
  overflow-y: auto !important;
}

.swal2-title { color: var(--cyan) !important; font-size: clamp(1rem,3.5vw,1.3rem) !important; font-weight: 700 !important; margin-bottom: .6rem !important; }
.swal2-html-container { color: var(--text2) !important; font-size: clamp(.8rem,2.2vw,.9rem) !important; line-height: 1.55 !important; }
.swal2-actions { margin-top: 1.1rem !important; padding-top: .75rem !important; border-top: 1px solid var(--border) !important; gap: .5rem !important; flex-wrap: wrap !important; }
.swal2-confirm { background: linear-gradient(135deg, var(--cyan), var(--pink)) !important; color: var(--c0) !important; border: 0 !important; border-radius: var(--r3) !important; padding: .7rem 1.5rem !important; font-weight: 700 !important; font-size: .88rem !important; }
@media (min-width: 769px) { .swal2-confirm { transition: all var(--med) ease !important; } .swal2-confirm:hover { filter: brightness(1.07) !important; transform: translateY(-1px) !important; } }
.swal2-cancel { background: var(--glass2) !important; border: 1px solid var(--border2) !important; border-radius: var(--r3) !important; padding: .7rem 1.5rem !important; color: var(--text1) !important; font-size: .88rem !important; }
.swal2-loader { border-color: var(--cyan) transparent var(--pink) transparent !important; }
.swal2-icon.swal2-error { border-color: var(--pink) !important; color: var(--pink) !important; }
.swal2-icon.swal2-warning { border-color: #ffd23e !important; color: #ffd23e !important; }
.swal2-icon.swal2-success { border-color: var(--cyan) !important; color: var(--cyan) !important; }

@media (max-width: 768px) {
  .swal2-container { padding: .5rem !important; }
  .swal2-popup { padding: 1rem !important; width: calc(100% - 1rem) !important; }
  .swal2-actions { flex-direction: column !important; }
  .swal2-confirm, .swal2-cancel { width: 100% !important; margin: 0 !important; }
  .ab-popup { width: calc(100vw - .8rem) !important; }
  .ab-html { max-height: 44vh !important; }
  .ab-popup .swal2-confirm, .ab-popup .swal2-cancel { width: 100% !important; }
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(83,246,255,.25); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

@media (max-width: 640px) {
  body::before { background-size: 40px 40px; }
  .card { border-radius: 1.2rem; padding: 1rem 1rem 1.2rem; }
  .step-circle { width: 1.9rem !important; height: 1.9rem !important; font-size: .72rem !important; }
  .step-line { max-width: 1.2rem !important; }
  #title { letter-spacing: -.03em; }
  .btn-primary, .btn-discord, .btn-ghost,
  #btnStart, #btnNext, #btnDiscord, #btnGuest { padding: .8rem .9rem !important; font-size: .88rem !important; }
  .dash-link { font-size: .68rem; padding: .35rem .7rem; }
}

@media (max-width: 380px) {
  .step-circle { width: 1.7rem !important; height: 1.7rem !important; font-size: .65rem !important; }
  .step-line { max-width: .9rem !important; }
  #title { font-size: 1.3rem; }
}

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

@supports (-webkit-touch-callout: none) {
  * { -webkit-tap-highlight-color: transparent; }
  .card, button, input { -webkit-transform: translateZ(0); transform: translateZ(0); }
  .swal2-container, .swal2-popup { -webkit-overflow-scrolling: touch !important; }
}
