:root {
  --bg: #04050d;
  --card: #0b0d1c;
  --card2: #0f1226;
  --line: #1c2140;
  --text: #eceefb;
  --muted: #8a90b5;
  --accent: #5865f2;
  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  --ok: #3ee08f;
  --bad: #ff5468;
  --warn: #ffb547;
  --maybe: #6fb1ff;
  --r: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body { position: relative; }
.glow {
  position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 420px at 50% -60px, color-mix(in srgb, var(--accent) 38%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, #070a1f) 0%, var(--bg) 100%);
  transition: background .4s;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* top bar */
.topbar { max-width: 1040px; margin: 0 auto; padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); }
.saved-btn {
  display: flex; align-items: center; gap: 7px; background: #ffffff0a; border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; cursor: pointer;
}
.saved-btn svg { width: 15px; height: 15px; fill: currentColor; stroke: none; color: var(--warn); }
.saved-btn .count { background: var(--accent); color: #fff; border-radius: 99px; padding: 1px 7px; font-size: 12px; }

/* platform switcher */
.platforms {
  max-width: 1040px; margin: 18px auto 0; padding: 0 20px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.platforms a {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 12px; text-decoration: none;
  color: var(--muted); font-weight: 600; font-size: 14px; border: 1px solid transparent; background: #ffffff06;
  transition: color .15s, border-color .15s, background .15s;
}
.platforms a img { width: 22px; height: 22px; border-radius: 6px; }
.platforms a:hover { color: var(--text); background: #ffffff0d; }
.platforms a.active { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

/* hero */
.hero { max-width: 880px; margin: 0 auto; padding: 56px 20px 36px; text-align: center; }
.hero h1 {
  margin: 0; font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px;
}
.hero h1 img { width: 48px; height: 48px; border-radius: 13px; box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.hero h1 em { font-style: normal; color: var(--accent); filter: brightness(1.25); }
.hero > p { color: var(--muted); max-width: 560px; margin: 14px auto 0; line-height: 1.55; font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 34px; text-align: left; }
.feature {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  background: #0b0e24a6; border: 1px solid var(--line);
}
.feature b { display: block; font-size: 14px; }
.feature small { color: var(--muted); font-size: 12.5px; }
.fi, .hi {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
}
.fi svg, .hi svg { width: 17px; height: 17px; filter: brightness(1.3); }
.note { margin: 16px auto 0; font-size: 13.5px; color: var(--maybe); max-width: 620px; }

/* layout */
main { max-width: 1040px; margin: 0 auto; padding: 0 20px 80px; display: flex; flex-direction: column; gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; font-weight: 600; }
.card h2 .hi { width: 28px; height: 28px; border-radius: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; margin-top: 12px; }
.row.wrap { flex-wrap: wrap; gap: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12.5px; }

input, textarea, select {
  width: 100%; background: #050714; border: 1px solid var(--line); color: var(--text); border-radius: 11px;
  padding: 12px 14px; font: inherit; font-size: 15px; outline: none;
}
textarea { resize: vertical; font-family: "JetBrains Mono", monospace; font-size: 13.5px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.single { position: relative; }
.single input { padding-right: 52px; }
.single .go {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 9px;
  border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.single .go svg { width: 16px; height: 16px; }
.single-out { margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 7px; background: #ffffff0a; border: 1px solid var(--line); color: var(--text);
  font: inherit; font-weight: 600; font-size: 14px; padding: 10px 15px; border-radius: 11px; cursor: pointer;
  transition: filter .15s, transform .08s;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: none; }
.btn.small { padding: 7px 11px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }

/* generator controls */
.gen-head h2 { margin: 0; }
.gen-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 16px; }
.ctrl { display: flex; align-items: center; gap: 10px; }
.lbl { color: var(--muted); font-size: 13px; }
.seg { display: flex; background: #050714; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600;
  padding: 7px 11px; border-radius: 8px; cursor: pointer;
}
.seg button.active { background: var(--accent); color: #fff; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.ctrl select { width: auto; padding: 8px 10px; font-size: 14px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #050714; color: var(--text);
  font-size: 16px; cursor: pointer;
}
.stepper span { min-width: 34px; text-align: center; font-weight: 600; }
.gen-actions { margin-left: auto; display: flex; gap: 8px; }

.toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.toggle input { display: none; }
.toggle span { width: 36px; height: 20px; background: #050714; border: 1px solid var(--line); border-radius: 99px; position: relative; transition: .2s; }
.toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: .2s; }
.toggle input:checked + span { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + span::after { left: 18px; background: #fff; }

.progress { height: 6px; background: #050714; border-radius: 99px; margin-top: 16px; position: relative; }
.progress div { height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .2s; }
.progress span { position: absolute; right: 0; top: 10px; font-size: 12px; color: var(--muted); }

/* chips + results */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: #050714; border: 1px solid var(--line); color: var(--muted); padding: 6px 11px; border-radius: 99px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.chip b { color: var(--text); margin-left: 4px; }
.chip.active { border-color: var(--accent); color: var(--text); }

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 18px; }
.results.one { grid-template-columns: 1fr; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 34px 0 20px; }
.empty svg { width: 26px; height: 26px; opacity: .6; }
.empty p { margin: 8px 0 0; font-size: 14px; }

.card.item {
  background: var(--card2); border-radius: 12px; padding: 11px 12px; display: flex; align-items: center; gap: 10px;
}
.item .av { width: 36px; height: 36px; border-radius: 9px; background: #1a1e3a; flex-shrink: 0; object-fit: cover; }
.item .meta { flex: 1; min-width: 0; }
.item .name { font-family: "JetBrains Mono", monospace; font-size: 14.5px; word-break: break-all; }
.item .sub { font-size: 12px; color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tag { flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; background: #ffffff10; color: var(--muted); }
.item.available { border-color: #3ee08f40; }
.item.available .tag { background: #3ee08f1f; color: var(--ok); }
.item.maybe { border-color: #6fb1ff44; }
.item.maybe .tag { background: #4f9bff22; color: var(--maybe); }
.item.taken .tag { background: #ff54681f; color: var(--bad); }
.item.filtered .tag { background: #ffb5471f; color: var(--warn); }
.item.pending .tag { background: var(--accent-soft); color: var(--accent); }
.item.clickable { cursor: pointer; }
.item.clickable:hover { border-color: #33395f; }
.item .acts { display: flex; }
.icon { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 5px 6px; border-radius: 7px; }
.icon:hover { background: #ffffff0d; color: var(--text); }
.icon.on { color: var(--warn); }

/* profile */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 16px; margin-top: 16px; }
.profile .left { background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.profile .left img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #050714; }
.profile .dn { font-size: 19px; font-weight: 700; margin-top: 10px; }
.profile .un { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 13px; }
.badges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: #ffffff10; color: var(--muted); }
.badge.ok { background: #3ee08f1f; color: var(--ok); }
.badge.bad { background: #ff54681f; color: var(--bad); }
.badge.blue { background: #4f9bff22; color: var(--maybe); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 11px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 17px; font-weight: 700; margin-top: 3px; }
.block { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; }
.block h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.desc { white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: #cfd2ea; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-family: "JetBrains Mono", monospace; font-size: 12.5px; padding: 4px 9px; background: #050714; border: 1px solid var(--line); border-radius: 7px; }
.grp { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.grp:last-child { border: 0; }
.grp a { color: var(--text); text-decoration: none; font-weight: 600; }
.grp small { color: var(--muted); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* saved drawer */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: var(--card); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .25s; z-index: 20; overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-inner { padding: 20px; }
.drawer h2 { margin: 0; font-size: 18px; }
.scrim { position: fixed; inset: 0; background: #000a; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 15; }
.scrim.open { opacity: 1; pointer-events: auto; }

#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 30;
  background: var(--card2); border: 1px solid var(--line); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: .25s; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%); }

@media (max-width: 760px) {
  .features, .grid2 { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .gen-actions { margin-left: 0; width: 100%; }
  .gen-actions .btn.primary { flex: 1; justify-content: center; }
  .hero { padding-top: 36px; }
}

/* ---------- VIP ---------- */
.top-right { display: flex; align-items: center; gap: 10px; }
.vip-lock a.btn, .btn.discord { text-decoration: none; }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; text-decoration: none; }
.acct { display: flex; align-items: center; gap: 8px; background: #ffffff0a; border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px 5px 5px; font-size: 14px; font-weight: 600; }
.acct img { width: 26px; height: 26px; border-radius: 50%; }
.acct a { color: var(--muted); text-decoration: none; font-size: 16px; padding: 0 2px; }
.acct a:hover { color: var(--text); }
.acct.vip { border-color: #ffd16666; box-shadow: 0 0 18px #ffd16622; }
.vip-pill { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; color: #1a1200;
  background: linear-gradient(135deg, #ffe08a, #ffb547); vertical-align: middle; margin-left: 6px; }
.vip-strip { margin: 14px auto 0; max-width: 720px; font-size: 13px; color: var(--muted); border: 1px solid #ffd16633; background: #ffd1660a;
  border-radius: 12px; padding: 9px 14px; }
.vip-strip b { color: #ffd166; }
.vip-strip a { color: #ffd166; }
.toggle.vip-only.locked { opacity: .5; cursor: not-allowed; }
.score { display: inline-block; margin-left: 8px; font-family: "DM Sans", sans-serif; font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 99px; vertical-align: 2px; background: #ffffff10; color: var(--muted); }
.score.clean { background: #3ee08f14; color: #8fe9bb; }
.score.rare { background: #b98cff22; color: #cfb0ff; }
.score.leg { background: linear-gradient(135deg, #ffe08a33, #ff8ad833); color: #ffe08a; }
.card.every { position: relative; overflow: hidden; }
.vip-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(3px); }
.vip-lock b { color: #ffd166; font-size: 16px; }
.vip-lock p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
.every-head { margin: 14px 0 10px; }
.every-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.every-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card2); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.every-row img { width: 22px; height: 22px; border-radius: 6px; }
.every-row small { color: var(--muted); font-weight: 500; }
.every-row .tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; background: #ffffff10; color: var(--muted); }
.every-row.available { border-color: #3ee08f40; } .every-row.available .tag { background: #3ee08f1f; color: var(--ok); }
.every-row.maybe { border-color: #6fb1ff44; } .every-row.maybe .tag { background: #4f9bff22; color: var(--maybe); }
.every-row.taken .tag { background: #ff54681f; color: var(--bad); }
@media (max-width: 560px) { .acct span { display: none; } }

/* ---------- polish ---------- */
.platforms { position: sticky; top: 0; z-index: 10; padding-top: 10px; padding-bottom: 10px; margin-top: 8px; max-width: none;
  background: transparent; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
/* only gets a see-through bar once you scroll and it sticks, so it never covers the glow at the top */
.platforms.stuck { background: color-mix(in srgb, var(--card) 72%, transparent); border-bottom-color: var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero { padding-top: 40px; }
.card { transition: border-color .2s, box-shadow .2s; }
.card:not(.item):hover { border-color: #262c52; }
.card.item { transition: transform .12s, border-color .15s; }
.card.item:hover { transform: translateY(-1px); }
.btn.primary { box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.toggle.locked { opacity: .5; cursor: not-allowed; }
.btn .short { display: none; }

.legend { margin-top: 16px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.legend .tag, .t-free, .t-maybe, .t-taken { display: inline-block; min-width: 52px; text-align: center; font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 99px; text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.t-free { background: #3ee08f1f; color: var(--ok); }
.t-maybe { background: #4f9bff22; color: var(--maybe); }
.t-taken { background: #ff54681f; color: var(--bad); }
.single-out:not(:empty) + .legend { display: none; }

.gen-hint { margin: 14px 0 0; font-size: 13px; color: var(--warn); background: #ffb5470d; border: 1px solid #ffb54726; border-radius: 10px; padding: 9px 12px; }

.vip-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; max-width: 900px; }

.faq { max-width: 1040px; margin: 0 auto; padding: 10px 20px 40px; }
.faq h2 { font-size: 22px; margin: 0 0 14px; letter-spacing: -.02em; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] { border-color: #262c52; }
.faq details p { margin: 0; padding: 0 16px 15px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.faq code { font-family: "JetBrains Mono", monospace; background: #050714; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; font-size: 12.5px; color: var(--text); }
.faq b { color: var(--text); }

.foot { max-width: 1040px; margin: 0 auto; padding: 22px 20px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  align-items: center; gap: 10px 18px; justify-content: space-between; }
.foot span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.foot img { width: 22px; height: 22px; border-radius: 6px; }
.foot a { text-decoration: none; }

@media (max-width: 640px) {
  .topbar { padding-top: 12px; }
  .brand span { display: none; }
  .btn .long { display: none; } .btn .short { display: inline; }
  .platforms { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .platforms::-webkit-scrollbar { display: none; }
  .platforms a { flex-shrink: 0; }
  .hero { padding: 26px 18px 22px; }
  .hero > p { font-size: 14.5px; }
  .features { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .gen-actions { margin-left: 0; width: 100%; }
  .gen-actions .btn.primary { flex: 1; justify-content: center; }
  .seg { flex-wrap: nowrap; overflow-x: auto; }
  .seg button { padding: 7px 9px; flex-shrink: 0; }
}

.icon.claim { text-decoration: none; display: inline-grid; place-items: center; }

.live-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.live-stats span { font-size: 12.5px; color: var(--muted); background: #ffffff08; border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px; }
.live-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
