@import url("https://cdn.jsdelivr.net/gh/uchks/ggcdn@main/ggsans.css");

:root {
  color-scheme: dark;
  --bg: #07080b;
  --text: #f4f5f7;
  --muted: #9aa0aa;
  --dim: #6e7580;
  --line: rgba(255, 255, 255, 0.08);
  --card: #14161c;
  --blue: #5865f2;
  --blue-2: #4752c4;
  --glow: rgba(88, 101, 242, 0.45);
  --fs-base: 18px;
  --fs-btn: 17px;
}

html {
  font-size: var(--fs-base);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(88, 101, 242, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body { min-height: 100vh; }

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

button, .button {
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-size: var(--fs-btn);
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 26px;
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button:hover, .button:hover { background: var(--blue-2); }

button.ghost, .button.ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

button.ghost:hover, .button.ghost:hover { background: rgba(255, 255, 255, 0.04); }

.discord-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.home, .stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.brand { text-align: center; }

.mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 18px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(64px, 14vw, 104px);
  letter-spacing: -3px;
  font-weight: 800;
  animation: title-glow 5.5s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% {
    text-shadow: 0 0 18px rgba(88, 101, 242, 0.35), 0 0 46px rgba(88, 101, 242, 0.18);
  }
  50% {
    text-shadow: 0 0 28px rgba(170, 178, 255, 0.75), 0 0 72px rgba(88, 101, 242, 0.42);
  }
}

.glow-field {
  position: fixed;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 32%, rgba(88, 101, 242, 0.2), transparent 26%),
    radial-gradient(circle at 82% 68%, rgba(88, 101, 242, 0.12), transparent 24%);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); }
}

.brand, .card, .dialog {
  animation: rise 0.7s ease both;
}

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

button, .button {
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover, .button:hover { transform: translateY(-1px); }

.tg-link {
  margin: 14px 0 36px;
  color: var(--muted);
  letter-spacing: 0.03em;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tg-link:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.tg-mark {
  width: clamp(22px, 3vw, 28px);
  height: clamp(22px, 3vw, 28px);
  display: block;
}

.actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.actions button,
.actions .button {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-size: 18px;
  padding: 16px 24px;
  min-height: 52px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 16px;
}

.modal.open { display: grid; }

.dialog {
  width: min(420px, 100%);
  background: #101217;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.dialog h2 {
  margin: 0 0 8px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }

.row { display: flex; gap: 10px; }

input {
  width: 100%;
  background: #07080b;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 17px;
  min-height: 48px;
}

input:focus {
  outline: 2px solid rgba(88, 101, 242, 0.7);
  border-color: transparent;
}

.error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #ff8d8d;
  font-size: 13px;
}

.card-wrap { width: min(480px, 100%); }

.card {
  background: #16181e;
  border-radius: 22px;
  padding: 14px 14px 16px;
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.28), 0 0 48px var(--glow);
}

.banner {
  height: 92px;
  border-radius: 14px;
  background: #23262e center / cover no-repeat;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #16181e;
  margin: -52px 0 0 14px;
  background: #0d0e12;
  display: block;
}

.identity {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px 0;
}

.identity h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.5px;
}

.handle {
  margin: 2px 0 0;
  color: var(--muted);
}

.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 150px;
}

.badge {
  width: 24px;
  height: 24px;
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: 0.85fr 0.9fr 1.45fr;
  gap: 8px;
  margin: 16px 8px 4px;
}

.stat {
  background: #0d0f14;
  border-radius: 12px;
  padding: 10px 12px;
}

.stat span {
  display: block;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.stat strong {
  display: block;
  margin-top: 5px;
  font-family: "gg sans", "Noto Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.notice, .back {
  color: var(--dim);
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
}

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

.page {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.guide {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}

.guide > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.guide > summary::-webkit-details-marker { display: none; }

.guide > summary::after {
  content: "+";
  float: right;
  color: var(--dim);
  font-weight: 500;
}

.guide[open] > summary::after { content: "−"; }

.guide-body {
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.guide-body p { margin: 0 0 12px; }

.guide-body ul, .guide-body ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.guide-body li { margin-bottom: 6px; }

.guide-body a {
  color: #c9cdff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-body h4 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guide-body .warn {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid #f0b429;
  background: rgba(240, 180, 41, 0.08);
  border-radius: 0 10px 10px 0;
  color: #f3d38a;
}

.guide-body .note {
  margin: 8px 0;
  color: #ffb4b4;
}

.guide-body code {
  font-family: "gg mono", Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  color: #dce0ff;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.top h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.4px;
  font-weight: 700;
}

.section { margin-top: 26px; }

.section h2 {
  margin: 0 0 14px;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 700;
}

.panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 4px;
}

.panel > .button {
  display: inline-block;
  margin-top: 14px;
}

.panel h3 { margin: 0 0 10px; font-size: 19px; }

.panel p, .panel li {
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.panel ol { margin: 0; padding-left: 18px; }

.secret, .code {
  font-family: "gg sans", "Noto Sans", sans-serif;
}

button.code {
  display: block;
  width: 100%;
  margin: 8px 0 2px;
  padding: 4px 0;
  background: transparent;
  color: var(--text);
  border-radius: 14px;
  font-size: 46px;
  font-weight: 500;
  letter-spacing: 0.14em;
  box-shadow: none;
}

button.code:hover { background: rgba(255, 255, 255, 0.04); }

button.code.copied { color: #c9cdff; }

.meter {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 8px;
}

.meter span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--blue);
  transform-origin: left center;
  transform: scaleX(1);
}

.tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.top .button,
.top button {
  font-size: 16px;
  padding: 12px 22px;
  min-height: 44px;
}

@media (max-width: 640px) {
  html { font-size: 17px; }
  .actions {
    flex-wrap: nowrap;
    gap: 10px;
    max-width: 100%;
    padding: 0 4px;
  }
  .actions button,
  .actions .button {
    font-size: 15px;
    padding: 14px 16px;
    min-height: 48px;
  }
  .stats { grid-template-columns: 1fr; }
  .row, .top { flex-direction: column; }
  .top .button, .top a.button { width: 100%; }
}
