@font-face { font-family: "Gothic"; src: url("/assets/gothic.ttf") format("truetype"); font-display: swap; }
:root {
  --bg: #0a0a0b; --side: #0f0f10; --panel: #131314; --panel-2: #1b1b1e; --panel-3: #222226;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.14);
  --text: #ffffff; --muted: #b4b4bd; --dim: #7e7e88; --accent: #efe3c4; --accent-2: #d4c196;
  --danger: #f87171; --ok: #86efac; --warn: #fbbf24;
  --haze: 0 0 14px rgba(226, 214, 182,.45), 0 0 38px rgba(170, 150, 105,.28);
}
* { box-sizing: border-box; }
html { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--panel-3); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex: none; }
[hidden] { display: none !important; }

/* backdrop */
#sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { content: ""; position: fixed; z-index: -1; pointer-events: none; left: 50%; top: -25vh; width: min(1000px, 150vw); aspect-ratio: 1;
  transform: translateX(-50%); background: radial-gradient(closest-side, rgba(226, 214, 182,.09), transparent 70%); }

/* entrance */
@keyframes rise { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.in { opacity: 0; animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 55ms); }
@media (prefers-reduced-motion: reduce) { .in { animation: none; opacity: 1; } }

/* buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel-2);
  border-radius: 10px; padding: 9px 15px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--panel-3); }
.btn.gold { background: var(--accent); color: #0c0c0d; border-color: transparent; } .btn.gold:hover { background: #fff; }
.btn.danger { color: var(--danger); } .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; padding: 11px 20px; border-radius: 999px; }
.btn:disabled { opacity: .5; cursor: default; }
select, input[type=text], input[type=number], input[type=url], textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 16px; }
textarea { min-height: 84px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--line-2); background: var(--panel-3); }
.switch { position: relative; width: 44px; height: 26px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #3f3f46; transition: .18s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #d4d4d8; transition: .18s; }
.switch input:checked + span { background: var(--accent); } .switch input:checked + span::after { left: 21px; background: #0c0c0d; }
.switch input:disabled { cursor: default; } .switch input:disabled + span { opacity: .45; }

/* sign-in */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.glass { width: 100%; max-width: 560px; text-align: center; padding: 52px 26px; border-radius: 28px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 80px -40px #000; }
.glass .face { width: 84px; height: 84px; filter: drop-shadow(0 0 18px rgba(226, 214, 182,.35)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.mark { font: 400 clamp(64px, 16vw, 96px)/.95 "Gothic", serif; color: var(--accent); text-shadow: var(--haze); }
.glass p { color: var(--muted); max-width: 40ch; margin: 10px auto 24px; }
.count { margin-top: 26px; color: var(--dim); font-size: 13.5px; } .count b { color: var(--text); font-variant-numeric: tabular-nums; }
.foot-links { color: var(--dim); font-size: 13px; margin-top: 22px; }
.foot-links a { text-decoration: none; margin: 0 7px; } .foot-links a:hover { color: var(--text); }
.note { color: var(--dim); font-size: 13px; }

/* server picker */
.picker { width: min(1000px, 100% - 32px); margin: 0 auto; padding: 30px 0 80px; }
.picker-top { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.picker-top .logo { font: 400 34px/1 "Gothic", serif; color: var(--accent); text-shadow: var(--haze); text-decoration: none; }
.picker-top .me { margin-left: auto; }
.guilds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.guild { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); cursor: pointer;
  text-align: left; padding: 0; transition: transform .15s, border-color .15s; }
.guild:hover { transform: translateY(-2px); border-color: var(--line-2); }
.guild .ban { height: 78px; background: var(--panel-3) center/cover; filter: saturate(.7); position: relative; }
.guild .ban::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(27,27,27,.9)); }
.guild .body { display: flex; align-items: center; gap: 12px; padding: 0 14px 14px; margin-top: -24px; position: relative; }
.guild b { display: block; } .guild small { color: var(--dim); }
.gicon { width: 48px; height: 48px; border-radius: 14px; background: var(--panel-3); display: grid; place-items: center; font-weight: 800;
  flex: none; overflow: hidden; border: 3px solid var(--panel); font-size: 14px; }
.gicon img { width: 100%; height: 100%; object-fit: cover; }

/* app shell */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: rgba(22,22,22,.92); backdrop-filter: blur(8px);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.side-head { position: relative; padding: 18px 16px 16px; background: var(--panel-2) center/cover; min-height: 104px; display: flex; align-items: flex-end; gap: 12px; }
.side-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,.25), rgba(22,22,22,.96)); }
.side-head > * { position: relative; }
.side-head .gicon { width: 42px; height: 42px; border-radius: 12px; border-width: 2px; }
.side-head b { font-size: 15px; line-height: 1.25; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.side-head small { color: var(--dim); font-size: 12px; }
.swap { position: absolute !important; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(0,0,0,.45); border: 1px solid var(--line-2); text-decoration: none; }
.side nav { padding: 10px 10px 30px; }
.side h6 { margin: 16px 10px 6px; color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; display: flex; align-items: center; gap: 8px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 14px; }
.side nav a:hover { background: var(--panel-2); color: var(--text); }
.side nav a.on { background: var(--accent); color: #0c0c0d; }
.side nav a .dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.side nav a.on .dot { background: #0c0c0d; box-shadow: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 26px; background: rgba(18,18,18,.75);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .logo { font: 400 28px/1 "Gothic", serif; color: var(--accent); text-shadow: var(--haze); text-decoration: none; }
.menu-btn { display: none; }
.me { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-left: auto; }
.me img { width: 30px; height: 30px; border-radius: 50%; }
.content { padding: 30px 26px 140px; width: 100%; max-width: 1080px; margin: 0 auto; }

/* page header */
.kicker { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.page-title { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; }
.page-title h1 { font: 400 clamp(38px, 6vw, 52px)/1 "Gothic", serif; color: var(--accent); text-shadow: var(--haze); margin: 0; }
.page-title .pi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); }
.page-about { color: var(--muted); max-width: 70ch; margin: 0 0 22px; }
.center { text-align: center; } .center .page-title { justify-content: center; }

/* cards */
.card { border: 1px solid var(--line); border-radius: 18px; background: rgba(27,27,27,.92); padding: 20px; margin-bottom: 16px; }
.card h3 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.lock { display: flex; gap: 8px; align-items: center; color: var(--warn); font-size: 13.5px; background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.2); padding: 9px 12px; border-radius: 10px; margin-bottom: 12px; }
.row { display: grid; grid-template-columns: 1fr minmax(170px, 320px); gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row .lbl b { display: block; font-size: 14.5px; } .row .lbl small { color: var(--dim); font-size: 12.5px; display: block; }
.row.text { grid-template-columns: 1fr; } .row.toggle .switch { justify-self: end; }
.card-foot { color: var(--dim); font-size: 12.5px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

/* overview */
.ov-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 30px; }
.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.detail { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.detail small { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.detail b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.detail button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--dim); } .detail button svg { width: 13px; height: 13px; }
.score { display: flex; gap: 18px; align-items: center; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--panel-3) 0); transition: --p 1s; position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--panel); }
.ring b { position: relative; font-size: 26px; font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 4px; }
.checks a { display: flex; gap: 7px; align-items: center; text-decoration: none; color: var(--muted); }
.checks a:hover { color: var(--text); } .checks svg { width: 15px; height: 15px; }
.checks .ok svg { color: var(--ok); } .checks .no svg { color: var(--dim); }
h2.sec { margin: 0 0 14px; text-align: center; color: var(--dim); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.mod { display: flex; border: 1px solid var(--line); border-radius: 16px; background: rgba(27,27,27,.92); overflow: hidden; min-height: 146px;
  transition: transform .15s, border-color .15s; }
.mod:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mod .stripe { width: 54px; flex: none; display: grid; place-items: center; color: #0c0c0d;
  background: linear-gradient(160deg, #f1efe9, #c2ad7e); position: relative; overflow: hidden; }
.mod .stripe::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); }
.mod .stripe svg { width: 24px; height: 24px; }
.mod.off .stripe { background: linear-gradient(160deg, #3a3a3a, #262626); color: var(--muted); }
.mod .mb { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mod h4 { margin: 0; font-size: 17px; }
.mod p { margin: 4px 0 10px; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mod .mf { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.mod .mf a { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.mod .mf a:hover { color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700;
  background: var(--panel-3); color: var(--muted); }
.chip.on { background: rgba(134,239,172,.12); color: var(--ok); }

/* commands */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { padding-left: 36px; }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cmd:first-child { border-top: 0; }
.cmd code { font-size: 14px; font-weight: 700; background: none; padding: 0; color: var(--text); }
.cmd small { display: block; color: var(--dim); font-size: 12.5px; }
.cmd.disabled code { color: var(--dim); text-decoration: line-through; }
.roles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--panel-3); border-radius: 999px; padding: 3px 6px 3px 10px; font-size: 12.5px; font-weight: 600; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.tag button { background: none; border: 0; cursor: pointer; color: var(--dim); padding: 0 2px; display: grid; } .tag button svg { width: 13px; height: 13px; }
.add { width: auto; padding: 3px 8px; font-size: 12.5px; border-radius: 999px; background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.group-h { color: var(--dim); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 18px 0 2px; }

/* embed builder */
.tabs { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--accent); color: #0c0c0d; }
.eb { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field { margin-bottom: 12px; } .field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.field .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input[type=color] { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); padding: 3px; cursor: pointer; }
.ph { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.ph button { border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-family: ui-monospace, monospace; cursor: pointer; }
.linkrow { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 6px; margin-bottom: 6px; }
.preview { position: sticky; top: 80px; background: #313338; border-radius: 14px; padding: 16px; color: #dbdee1; font-size: 14.5px; }
.msg { display: flex; gap: 14px; }
.msg > img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.msg .who { font-weight: 600; color: #f2f3f5; } .msg .who span { background: #5865f2; color: #fff; font-size: 10px; border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: 2px; }
.msg .who small { color: #949ba4; font-size: 12px; margin-left: 6px; font-weight: 500; }
.dembed { margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--c, #efe3c4); border-radius: 4px; padding: 10px 14px 14px; max-width: 440px;
  display: grid; grid-template-columns: 1fr auto; gap: 0 14px; word-wrap: break-word; min-width: 0; }
.dembed .au { font-size: 13px; font-weight: 600; color: #f2f3f5; margin-top: 4px; }
.dembed .ti { font-weight: 700; color: #f2f3f5; margin-top: 6px; }
.dembed .de { font-size: 14px; margin-top: 6px; white-space: pre-wrap; } .dembed .de a { color: #00a8fc; text-decoration: none; }
.dembed .th { grid-column: 2; grid-row: 1 / span 4; width: 80px; height: 80px; border-radius: 4px; object-fit: cover; margin-top: 8px; }
.dembed .im { grid-column: 1 / -1; width: 100%; border-radius: 4px; margin-top: 14px; }
.dembed .fo { grid-column: 1 / -1; font-size: 12px; color: #b5bac1; margin-top: 8px; }
.dembed > * { grid-column: 1; min-width: 0; }
.dlinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dlinks span { background: #4e5058; color: #fff; border-radius: 4px; padding: 6px 14px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.dlinks svg { width: 14px; height: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.actions select { width: auto; flex: 1; min-width: 160px; }

/* lists */
.list .li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.list .li:first-child { border-top: 0; }
.list .li .n { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 44px; color: var(--accent); }
.list .li small { color: var(--dim); display: block; font-size: 12.5px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: rgba(27,27,27,.92); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat small { color: var(--dim); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }

/* unsaved bar + toast */
.savebar { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 160%); z-index: 50; width: min(720px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; background: #0d0d0d; border: 1px solid var(--line-2);
  border-radius: 14px; box-shadow: 0 20px 50px -15px #000; visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; }
.savebar.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.savebar span { flex: 1; font-weight: 600; font-size: 14px; }
.savebar.shake { animation: shake .35s; } @keyframes shake { 25% { margin-left: -8px; } 75% { margin-left: 8px; } }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); background: var(--accent); color: #0c0c0d; font-weight: 700;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px -10px #000; z-index: 99; display: flex; gap: 8px; align-items: center; max-width: calc(100% - 24px); }
.toast.err { background: var(--danger); color: #fff; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; }
.scrim { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .25s; }
  .side.open { transform: none; box-shadow: 20px 0 60px #000; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .scrim.show { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-flex; padding: 8px; }
  .topbar { padding: 10px 16px; }
  .content { padding: 22px 16px 140px; }
  .ov-top, .eb { grid-template-columns: 1fr; }
  .preview { position: static; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row.toggle { grid-template-columns: 1fr auto; }
  .details { grid-template-columns: 1fr 1fr; }
  .score { flex-direction: column; align-items: flex-start; }
  .me span { display: none; }
  .mods { grid-template-columns: 1fr; }
  .linkrow { grid-template-columns: 1fr 1fr auto; }
  .savebar span .long { display: none; }
}
.list .li select { flex: 1; min-width: 0; width: auto; }
.list .li input[type=number] { width: 76px; flex: none; }
.savebar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .savebar { padding-left: 14px; gap: 6px; } .savebar .btn { padding: 8px 11px; } .list .li { gap: 8px; } }

/* find a setting */
.find { position: relative; margin: 12px 10px 2px; }
.find > span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--dim); display: grid; }
.find input { width: 100%; padding: 9px 46px 9px 34px; font-size: 14.5px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.find input::-webkit-search-cancel-button { display: none; }
.find kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 11px system-ui; color: var(--dim);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.find-list { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 6px); background: #0f0f0f; border: 1px solid var(--line-2);
  border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px -15px #000; max-height: 60vh; overflow-y: auto; }
.find-list button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px;
  background: none; cursor: pointer; color: var(--muted); }
.find-list button.on, .find-list button:hover { background: var(--panel-3); color: var(--text); }
.find-list b { display: block; font-size: 14px; color: var(--text); } .find-list small { font-size: 12px; color: var(--dim); }
.find-list p { margin: 8px 10px; color: var(--dim); font-size: 13px; }
.find-btn { display: none; }
/* collapsible groups */
details.grp summary { list-style: none; cursor: pointer; }
details.grp summary::-webkit-details-marker { display: none; }
details.grp h6 svg { width: 13px; height: 13px; margin-left: auto; transition: transform .2s; }
details.grp:not([open]) h6 svg { transform: rotate(-90deg); }
details.grp summary:hover h6 { color: var(--muted); }
/* get started */
.start h3 svg { color: var(--accent); }
.start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 12px; }
.start-grid a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s; }
.start-grid a:hover { border-color: var(--line-2); background: var(--panel-3); }
.start-grid a span { flex: 1; } .start-grid a svg:last-child { color: var(--dim); }
@media (max-width: 900px) { .find-btn { display: inline-flex; padding: 8px; margin-left: auto; } .find-btn + .me { margin-left: 4px; } .find kbd { display: none; } }

/* ===================== homepage look ===================== */
@font-face { font-family: "Jakarta"; font-weight: 500; src: url("/static/fonts/PlusJakartaSans-Medium.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Jakarta"; font-weight: 700; src: url("/static/fonts/PlusJakartaSans-Bold.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Jakarta"; font-weight: 800; src: url("/static/fonts/PlusJakartaSans-ExtraBold.ttf") format("truetype"); font-display: swap; }
body { font-family: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
:root { --tint: linear-gradient(90deg, #fbf1d8, #c2ad7e); --pill: linear-gradient(rgba(239, 227, 196, .16), rgba(120, 118, 112, .14)); }

/* pill buttons */
.btn { border-radius: 999px; padding: 10px 18px; background-color: #0e0e0e; background-image: var(--pill);
  border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: background-color .2s, border-color .2s, transform .2s; }
.btn:hover { background-color: #121213; border-color: rgba(255, 255, 255, .14); }
.btn.gold { background: var(--accent); background-image: none; color: #111; box-shadow: 0 8px 26px -12px rgba(239, 227, 196, .55); }
.btn.gold:hover { background: #fff; }
.btn.ghost { background: transparent; background-image: none; border-color: transparent; box-shadow: none; }
.btn.danger { color: var(--danger); }
.savebar .btn { padding: 9px 16px; }

/* page titles: bold, tinted, like the homepage */
.page-title h1 { font: 800 clamp(28px, 4.4vw, 40px)/1.1 "Jakarta", system-ui, sans-serif; letter-spacing: -.03em; text-shadow: none;
  background: var(--tint); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-title .pi { border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2a2a2a, #0f0f10); border: 1px solid var(--line-2);
  color: var(--accent); box-shadow: 0 0 30px -6px rgba(239, 227, 196, .25); }
.kicker { letter-spacing: .16em; }

/* glassy cards with a soft glow */
.card, .stat, .mod, .guild { border-radius: 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), #0c0c0d; position: relative; }
.card { overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(520px circle at 15% 0%, rgba(239, 227, 196, .06), transparent 45%); }
.card > * { position: relative; }
.card h3 svg { color: var(--accent); }
.detail, .start-grid a, .list .li { border-radius: 12px; }
.detail { background: #131314; border: 1px solid var(--line); }

/* overview feature cards: icon tile instead of a full stripe */
.mod { border-radius: 18px; min-height: 0; }
.mod .stripe { width: auto; background: none !important; padding: 16px 0 0 16px; align-items: start; place-items: start; color: var(--accent); }
.mod .stripe::after { display: none; }
.mod .stripe svg { width: 38px !important; height: 38px !important; padding: 9px; border-radius: 11px; background: #17171a; border: 1px solid var(--line); }
.mod.off .stripe { color: var(--dim); }
.mod .mb { padding: 16px 16px 14px 12px; }
.mod h4 { font-size: 16px; }

/* sidebar: tinted active pill */
.side { background: rgba(14, 14, 14, .94); }
.side nav a { border-radius: 10px; }
.side nav a.on { background-color: #0e0e0e; background-image: var(--pill); color: var(--text); border: 1px solid rgba(255, 255, 255, .07); }
.side nav a.on svg { color: var(--accent); }
.side nav a.on .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.tabs { border-radius: 18px; } .tabs button { border-radius: 999px; }
.tabs button.on { background: var(--accent); }
.switch input:checked + span { background: var(--accent); }
.ring { background: conic-gradient(#efe3c4 calc(var(--p) * 1%), #262626 0); }
.chip { border: 1px solid var(--line); }

/* maintenance banner (from /owner maintenance) */
.notice { position: sticky; top: 0; z-index: 80; display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 16px;
  background: #2a2112; color: #fbd38d; border-bottom: 1px solid rgba(251, 191, 36, .25); font-size: 14px; font-weight: 600; text-align: center; }
.notice svg { width: 16px; height: 16px; flex: none; }

.rp-row { border: 1px solid var(--line) !important; border-radius: 14px; padding: 12px !important; margin-bottom: 10px; background: rgba(255,255,255,.02); }
.rp-row + .rp-row { border-top: 1px solid var(--line) !important; }

.dembed .au { display: flex; align-items: center; gap: 8px; } .dembed .au img, .dembed .fo img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.dembed .fo { display: flex; align-items: center; gap: 6px; } .dembed .ti a { color: #00a8fc; text-decoration: none; }
.dembed .fl { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; font-size: 14px; }
.dembed .fl > div { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; } .dembed .fl > div.in { flex: 1 1 28%; }
.dembed .fl b { color: #f2f3f5; font-size: 14px; } .dembed .fl span { white-space: pre-wrap; }
.msg .mc { font-size: 15px; margin-top: 2px; white-space: pre-wrap; }
.fieldrow { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; margin-bottom: 8px; display: grid; gap: 6px; }
.fr-tools { display: flex; justify-content: space-between; align-items: center; }
label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 12px; cursor: pointer; }
.varbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .varbar select { max-width: 260px; }

/* premium page */
.prem-status { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.prem-table { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 18px; row-gap: 0; font-variant-numeric: tabular-nums; }
.prem-table > * { padding: 10px 0; border-top: 1px solid var(--line); text-align: right; }
.prem-table > :nth-child(3n+1) { text-align: left; }
.prem-table .ph { border-top: 0; padding-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.prem-table .pf { color: var(--dim); }
.prem-table b { color: var(--accent); }
