:root {
  --bg: #04050b;
  --bg-soft: #080a14;
  --panel: #10131f;
  --panel-2: #151827;
  --panel-3: #1b1f31;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9ebf5;
  --muted: #868ca6;
  --muted-2: #5f6584;
  --accent: #7c6bf6;
  --accent-2: #9b8cff;
  --accent-soft: rgba(124, 107, 246, 0.16);
  --green: #36d39a;
  --red: #f4617f;
  --amber: #f5b95c;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 420px at 12% -6%, rgba(124, 107, 246, 0.20), transparent 62%),
    radial-gradient(680px 400px at 92% 4%, rgba(72, 108, 255, 0.14), transparent 60%),
    radial-gradient(900px 620px at 50% 108%, rgba(124, 107, 246, 0.10), transparent 70%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 11px; }
.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.topnav { display: flex; align-items: center; gap: 6px; margin-left: 18px; }
.topnav a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.topnav a.active { color: #fff; background: var(--accent); }

.topbar-right { display: flex; align-items: center; gap: 12px; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.user-chip img, .avatar-fallback {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: #fff;
}
.user-chip .who { line-height: 1.15; padding-right: 6px; }
.user-chip .who b { display: block; font-size: 13.5px; font-weight: 600; }
.user-chip .who small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--accent); color: #fff; }

.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

/* ------------------------------------------------------------------- shell */

.shell {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 32px 72px;
}

.crumbs {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted-2);
  margin-bottom: 18px;
}
.crumbs b { color: var(--text); font-weight: 500; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.page-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.page-head.center .segmented { margin-bottom: 26px; }
.page-head.center h1 { margin-bottom: 10px; }
.page-head.center .lede { max-width: 46ch; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

.lede { color: var(--muted); margin: 0; max-width: 60ch; }

.head-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

.segmented {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.segmented button[aria-pressed="true"] { background: var(--accent); color: #fff; }

.hint-line { font-size: 12.5px; color: var(--muted-2); text-align: right; max-width: 40ch; }
.hint-line a { color: var(--accent-2); text-decoration: underline; }

/* ------------------------------------------------------------------- cards */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 34px 0 0;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.stat { position: relative; }
.stat .stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stat h3 { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.stat .value {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
}
.stat .value.pos { color: var(--green); }
.stat .value.neg { color: var(--red); }
.stat small { color: var(--muted-2); font-size: 12.5px; }
.stat .badge {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(124, 107, 246, 0.25);
}

/* -------------------------------------------------------------------- form */

.panel {
  margin-top: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

.panel-head { padding: 26px 28px 8px; }
.panel-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.panel-head p { margin: 0; color: var(--muted); font-size: 14px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 26px;
  padding: 22px 28px 28px;
}

.preset-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}
.preset {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.preset:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.preset b { display: block; font-size: 14.5px; font-weight: 600; }
.preset small { color: var(--muted-2); font-size: 12.5px; }
.preset[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(124, 107, 246, 0.28);
}
.preset[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.78); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

label.field { display: block; }
label.field > span.lab, .lab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.lab button {
  border: 0; background: none; color: var(--accent-2);
  font-size: 10.5px; letter-spacing: 0.1em; cursor: pointer; padding: 0;
}

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .cur {
  position: absolute; left: 14px;
  color: var(--muted-2); font-size: 14px; pointer-events: none;
}
input[type="text"], input[type="number"], textarea, select {
  width: 100%;
  background: rgba(8, 10, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.input-wrap.with-cur input { padding-left: 38px; }
input:focus, textarea:focus, select:focus {
  border-color: rgba(124, 107, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(124, 107, 246, 0.14);
}
input::placeholder, textarea::placeholder { color: #4d5370; }
textarea { min-height: 92px; resize: vertical; }

.profit-box input { font-weight: 600; }
.profit-box.auto input { color: var(--green); }
.profit-box.manual input { color: var(--amber); }

.currency-row { display: flex; gap: 8px; flex-wrap: wrap; }
.currency-row button {
  flex: 1;
  min-width: 78px;
  padding: 12px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 10, 18, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.16s ease;
}
.currency-row button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: rgba(124, 107, 246, 0.55);
  color: #fff;
}

/* --------------------------------------------------------------- dropzone */

.dropzone {
  margin-top: 6px;
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(8, 10, 18, 0.5);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.dropzone:hover { border-color: rgba(124, 107, 246, 0.5); }
.dropzone.drag { border-color: var(--accent); background: rgba(124, 107, 246, 0.1); }
.dropzone .dz-icon {
  width: 44px; height: 44px; margin: 0 auto 10px;
  border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-2);
  border: 1px solid rgba(124, 107, 246, 0.25);
}
.dropzone b { display: block; font-size: 14px; }
.dropzone small { color: var(--muted-2); font-size: 12.5px; }
.dropzone input[type="file"] { display: none; }

.file-pill {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.file-pill.show { display: flex; }
.file-pill img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.file-pill .meta { flex: 1; min-width: 0; }
.file-pill .meta b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill .meta small { color: var(--muted-2); }
.file-pill button {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 9px; padding: 6px 10px; cursor: pointer; font-size: 12.5px;
}
.file-pill button:hover { color: var(--red); border-color: rgba(244, 97, 127, 0.45); }

/* ---------------------------------------------------------------- toggles */

.switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}
.switch-row .txt { flex: 1; }
.switch-row .txt b { display: block; font-size: 14px; }
.switch-row .txt small { color: var(--muted-2); font-size: 12.5px; }

.switch {
  position: relative;
  width: 50px; height: 28px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 10, 18, 0.8);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  flex: none;
}
.switch::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #6c7290;
  transition: transform 0.18s ease, background 0.18s ease;
}
.switch[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.switch[aria-pressed="true"]::after { transform: translateX(22px); background: #fff; }

/* ---------------------------------------------------------------- actions */

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 14px 34px rgba(124, 107, 246, 0.35);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn.ghost:hover { color: var(--text); }

.form-note { color: var(--muted-2); font-size: 12.5px; }

.toast {
  margin-top: 16px;
  display: none;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  border: 1px solid transparent;
}
.toast.show { display: block; }
.toast.ok { background: rgba(54, 211, 154, 0.12); border-color: rgba(54, 211, 154, 0.35); color: #9df0cf; }
.toast.err { background: rgba(244, 97, 127, 0.12); border-color: rgba(244, 97, 127, 0.35); color: #ffb7c5; }

/* --------------------------------------------------------------- preview */

.preview-col { display: flex; flex-direction: column; gap: 14px; }

.preview-label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-2);
}

.discord {
  background: #313338;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}
.discord .msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.discord .msg-head img, .discord .msg-head .avatar-fallback { width: 38px; height: 38px; border-radius: 50%; }
.discord .msg-head b { font-size: 14.5px; color: #f2f3f5; }
.discord .msg-head .tag {
  background: #5865f2; color: #fff; font-size: 10px; font-weight: 600;
  padding: 1px 5px; border-radius: 4px; letter-spacing: 0.02em;
}
.discord .msg-head .ts { color: #949ba4; font-size: 12px; }

.embed {
  position: relative;
  background: #2b2d31;
  border-radius: 6px;
  padding: 14px 16px 16px 18px;
  overflow: hidden;
  color: #dbdee1;
}
.embed::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--accent);
}
.embed .e-author { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.embed .e-author img, .embed .e-author .avatar-fallback { width: 24px; height: 24px; border-radius: 50%; font-size: 9px; }
.embed .e-author span { font-size: 13.5px; font-weight: 600; color: #fff; }
.embed .e-title { font-size: 15.5px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.embed .e-desc { font-size: 13.5px; white-space: pre-wrap; margin-bottom: 10px; color: #c7ccd3; }
.embed .e-fields { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.embed .e-field b {
  display: block; font-size: 12.5px; color: #fff; margin-bottom: 2px;
}
.embed .e-field span { font-size: 13.5px; }
.embed .e-field span.pos { color: #4ade9b; font-weight: 700; }
.embed .e-field span.neg { color: #ff8095; font-weight: 700; }
.embed .e-cta { margin: 2px 0 12px; font-size: 13.5px; }
.embed .e-cta a { color: #00a8fc; font-weight: 500; }
.embed .e-cta a:hover { text-decoration: underline; }

.embed .e-image {
  display: none;
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
  max-height: 230px;
  object-fit: cover;
}
.embed .e-image.show { display: block; }
.embed .e-footer { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #949ba4; }

.mini-note {
  font-size: 12.5px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.mini-note b { color: var(--text); }

/* ------------------------------------------------------------------ table */

.table-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.table-head b { font-size: 14px; font-weight: 600; }
.table-head small { color: var(--muted-2); }

.table-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}
.table-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.26); }
.tw-table { width: 100%; border-collapse: collapse; }
.tw-table th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  white-space: nowrap;
}
.tw-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 13.5px;
  vertical-align: middle;
}
.tw-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.tw-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw-table .pos { color: var(--green); font-weight: 600; }
.tw-table .neg { color: var(--red); font-weight: 600; }
.tw-table img.shot { width: 54px; height: 34px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell img, .who-cell .avatar-fallback { width: 28px; height: 28px; border-radius: 50%; font-size: 10px; }
.who-cell b { display: block; font-size: 13px; font-weight: 600; }
.who-cell small { color: var(--muted-2); font-size: 11.5px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  white-space: nowrap;
}
.pill.success { color: #b9aeff; border-color: rgba(124, 107, 246, 0.4); background: rgba(124, 107, 246, 0.14); }
.pill.sales { color: #8ce8c6; border-color: rgba(54, 211, 154, 0.35); background: rgba(54, 211, 154, 0.12); }
.pill.wtb { color: #f7cd93; border-color: rgba(245, 166, 60, 0.4); background: rgba(245, 166, 60, 0.14); }
.pill.wts { color: #ffb3c6; border-color: rgba(244, 97, 127, 0.4); background: rgba(244, 97, 127, 0.14); }
.pill.anon { color: var(--amber); border-color: rgba(245, 185, 92, 0.35); background: rgba(245, 185, 92, 0.12); }
.pill.failed { color: #ffb7c5; border-color: rgba(244, 97, 127, 0.4); background: rgba(244, 97, 127, 0.12); }

.empty { padding: 46px 20px; text-align: center; color: var(--muted-2); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

.warn-bar {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 185, 92, 0.32);
  background: rgba(245, 185, 92, 0.1);
  color: #f6d49a;
  font-size: 13.5px;
}

/* ------------------------------------------------------ community chooser */

.realm-shell { padding-top: 54px; }

.realm-head { text-align: center; margin-bottom: 40px; }
.realm-head h1 { margin-bottom: 12px; }
.realm-head .lede { margin: 0 auto; max-width: 44ch; }

.realm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.realm {
  position: relative;
  display: block;
  min-height: 460px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.realm:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6);
}

.realm-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--card-image, none);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.realm:hover .realm-bg { transform: scale(1.05); }

.realm-inner .realm-emblem img { width: 46px; height: auto; }

/* concentric rings behind the emblem */
.realm-rings {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 720px;
  height: 720px;
  margin-left: -360px;
  z-index: -2;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.10) 0 1px,
    transparent 1px 54px
  );
  opacity: 0.85;
  transition: transform 0.6s ease, opacity 0.35s ease;
}
.realm:hover .realm-rings { transform: scale(1.06); opacity: 1; }

.realm-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4, 5, 11, 0.32) 0%,
    rgba(4, 5, 11, 0.05) 42%,
    rgba(4, 5, 11, 0.78) 100%
  );
}

.realm-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 460px;
  padding: 44px 30px 34px;
  color: #fff;
}

.realm-emblem {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin-bottom: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.realm:hover .realm-emblem {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.07), 0 22px 48px rgba(0, 0, 0, 0.4);
}

.realm-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}
.realm-name {
  display: block;
  font-family: var(--serif);
  font-size: 50px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.4);
}
.realm-desc {
  display: block;
  max-width: 28ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.realm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.realm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 15px 34px;
  border-radius: 999px;
  background: rgba(8, 10, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, gap 0.2s ease;
}
.realm:hover .realm-cta {
  background: #fff;
  color: #10131f;
  border-color: #fff;
  gap: 14px;
}

.realm-inner .realm-emblem img { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35)); }

.realm-inner .realm-eyebrow + .realm-name { margin-top: 0; }

.realm-inner .realm-badge + .realm-cta { margin-top: auto; }

.realm-inner .realm-desc + .realm-badge { margin-bottom: 26px; }

.realm-inner { gap: 0; }

.realm-inner .realm-cta { width: min(260px, 100%); }

.realm-inner .realm-badge { align-self: center; }

.realm-inner .realm-cta svg { transition: transform 0.2s ease; }
.realm:hover .realm-cta svg { transform: translateX(2px); }

.realm-inner .realm-name,
.realm-inner .realm-desc,
.realm-inner .realm-eyebrow { width: 100%; }

.realm-inner .realm-emblem { flex: none; }

@media (max-width: 860px) {
  .realm-grid { grid-template-columns: minmax(0, 1fr); }
  .realm, .realm-inner { min-height: 400px; }
}

@media (max-width: 620px) {
  .realm-name { font-size: 40px; }
  .realm-inner { padding: 34px 22px 26px; }
  .realm-emblem { width: 86px; height: 86px; }
}

/* ------------------------------------------------------------ pick cards */

.pick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.pick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  padding: 28px 26px 24px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: #fff;
  isolation: isolate;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.pick-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--card-image, none);
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.pick-card:hover .pick-art { transform: scale(1.04); }

.pick-card.success .pick-art {
  background-color: #2a1f78;
  background-image:
    var(--card-image, none),
    radial-gradient(120% 90% at 20% 0%, rgba(155, 140, 255, 0.95), transparent 55%),
    radial-gradient(120% 90% at 90% 20%, rgba(96, 78, 235, 0.95), transparent 60%),
    linear-gradient(200deg, #5b46e5 0%, #2c2288 55%, #120f33 100%);
}
.pick-card.sales .pick-art {
  background-color: #0c3b34;
  background-image:
    var(--card-image, none),
    radial-gradient(120% 90% at 15% 5%, rgba(86, 232, 188, 0.85), transparent 55%),
    radial-gradient(120% 90% at 95% 25%, rgba(29, 150, 168, 0.9), transparent 60%),
    linear-gradient(200deg, #29c99b 0%, #10695f 55%, #06211f 100%);
}

.pick-card.wtb .pick-art {
  background-color: #63360c;
  background-image:
    var(--card-image, none),
    radial-gradient(120% 90% at 18% 0%, rgba(255, 199, 120, 0.9), transparent 55%),
    radial-gradient(120% 90% at 92% 22%, rgba(233, 142, 45, 0.92), transparent 60%),
    linear-gradient(200deg, #f0a23c 0%, #93571a 55%, #2a1806 100%);
}
.pick-card.wts .pick-art {
  background-color: #611f33;
  background-image:
    var(--card-image, none),
    radial-gradient(120% 90% at 16% 4%, rgba(255, 150, 176, 0.88), transparent 55%),
    radial-gradient(120% 90% at 94% 24%, rgba(215, 70, 110, 0.92), transparent 60%),
    linear-gradient(200deg, #ef5f84 0%, #8f2545 55%, #2c0a17 100%);
}

.realm--inner .realm-bg {
  background-color: #191740;
  background-image:
    var(--card-image, none),
    radial-gradient(90% 70% at 50% 0%, rgba(214, 196, 255, 0.55), transparent 62%),
    radial-gradient(120% 90% at 85% 25%, rgba(124, 107, 246, 0.9), transparent 62%),
    linear-gradient(200deg, #7f6dff 0%, #3a2f8f 52%, #0f0d29 100%);
}
.realm--newbies .realm-bg {
  background-color: #0a2a3d;
  background-image:
    var(--card-image, none),
    radial-gradient(90% 70% at 50% 0%, rgba(168, 232, 255, 0.5), transparent 62%),
    radial-gradient(120% 90% at 85% 25%, rgba(52, 165, 214, 0.9), transparent 62%),
    linear-gradient(200deg, #43b3e6 0%, #1a5d83 52%, #051926 100%);
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}
.back-link:hover { color: var(--text); border-bottom-color: var(--line-strong); }

.pick-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(4, 5, 11, 0.5) 0%,
    rgba(4, 5, 11, 0.18) 34%,
    rgba(4, 5, 11, 0.72) 100%
  );
}

.pick-top { display: block; }
.pick-eyebrow {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}
.pick-title {
  display: block;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.pick-desc {
  display: block;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.pick-rule {
  display: block;
  width: 96px;
  height: 1px;
  margin: 20px 0 16px;
  background: rgba(255, 255, 255, 0.35);
}
.pick-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.92);
}

.pick-panel { display: block; }
.pick-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 4px 14px;
  color: rgba(255, 255, 255, 0.92);
}
.pick-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.pick-sep {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.28);
  flex: none;
}
.pick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px;
  border-radius: 14px;
  background: rgba(10, 12, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.18s ease;
}
.pick-card:hover .pick-btn { background: #05060c; border-color: rgba(255, 255, 255, 0.3); }

@media (max-width: 860px) {
  .pick-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .pick-card { min-height: 430px; padding: 24px 20px 20px; }
  .pick-title { font-size: 42px; }
  .pick-tag { font-size: 12px; }
}

/* ------------------------------------------------------------------ login */

.login-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 40px 24px 80px;
  position: relative;
  z-index: 1;
}
.login-card {
  width: min(460px, 100%);
  text-align: center;
  padding: 40px 34px 34px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}
.login-card img.mark { width: 60px; height: 60px; border-radius: 18px; margin-bottom: 20px; }
.login-card h1 { font-size: 44px; margin-bottom: 10px; }
.login-card p { color: var(--muted); margin: 0 0 26px; }
.login-card .btn { width: 100%; justify-content: center; }
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 14px 18px; flex-wrap: wrap; }
  .shell { padding: 28px 18px 60px; }
  .head-actions { align-items: flex-start; }
  .hint-line { text-align: left; }
  .user-chip .who { display: none; }
}

@media (max-width: 1100px) {
  .tw-table { min-width: 940px; }
}
