:root {
  --ink: #0b0a11;
  --panel: #12101a;
  --panel-2: #181522;
  --panel-3: #201c2d;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eeebf5;
  --muted: #918ca3;
  --faint: #625d73;
  --brand: #8f5bff;
  --brand-2: #c05cff;
  --brand-hi: #c4adff;
  --brand-ink: #ffffff;
  --brand-glow: 143, 91, 255;
  --nitro: linear-gradient(120deg, #ff5fa8, #ff9a5f);
  --rose: #ff6b8b;
  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --g1: #2b2350;
  --g2: #123044;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* shared brand lockup and buttons */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.logo { width: 40px; height: 40px; flex: none; border-radius: 12px; box-shadow: 0 6px 24px rgba(var(--brand-glow), 0.45); transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover .logo { transform: rotate(-6deg) scale(1.06); }
.lockup { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.word { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.03em; display: flex; align-items: baseline; }
.word b { font-weight: 800; background: linear-gradient(100deg, var(--brand-hi), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.word em { font-family: var(--mono); font-style: normal; font-weight: 600; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 2px 5px 1px; border-radius: 5px; margin-left: 8px; transform: translateY(-5px); }
.brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; color: var(--text); transition: background 0.15s, border-color 0.15s, transform 0.1s; }
.btn svg, .chip svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.btn:hover { background: var(--panel-3); border-color: rgba(255, 255, 255, 0.24); }
.btn:active { transform: translateY(1px); }
.btn.lime { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; box-shadow: 0 4px 20px rgba(var(--brand-glow), 0.4); }
.btn.lime:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--panel-2); }

/* account control (shared by every page) */
.acct-login { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 0; background: #5865f2; color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; transition: filter 0.15s, transform 0.1s; }
.acct-login:hover { filter: brightness(1.1); }
.acct-login:active { transform: translateY(1px); }
.acct-login svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.acct { position: relative; }
.acct-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 4px; border-radius: 999px; border: 1px solid var(--acct-line, var(--line-2)); background: var(--acct-bg, var(--panel-2)); color: inherit; font-weight: 600; font-size: 13px; max-width: 190px; }
.acct-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.acct-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-chip svg { width: 16px; height: 16px; fill: currentColor; opacity: 0.6; flex: none; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; width: 264px; padding: 6px; border-radius: 14px; background: #15121f; color: #eeebf5; border: 1px solid rgba(255, 255, 255, 0.13); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); text-align: left; }
.acct-menu p { margin: 6px 10px 8px; font-size: 12px; color: #918ca3; }
.acct-menu p b { color: #eeebf5; font-weight: 600; }
.acct-menu a, .acct-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: inherit; font-weight: 600; font-size: 13.5px; text-align: left; text-decoration: none; }
.acct-menu a:hover, .acct-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.acct-menu small { display: block; font-weight: 400; font-size: 12px; color: #918ca3; margin-top: 1px; }
.acct-menu [data-out] { color: #ff8fa3; border-top: 1px solid rgba(255, 255, 255, 0.08); border-radius: 0 0 9px 9px; margin-top: 4px; }
