/* =========================================================================
   STONEBOUND — designsystem
   Mörk fantasy: nästan svart botten, lila ljus, pixlade Minecraft-detaljer.
   ========================================================================= */

:root {
  --bg: #07060b;
  --bg-2: #0c0a13;
  --surface: #110e1b;
  --surface-2: #171324;
  --line: rgba(167, 139, 250, 0.14);
  --line-strong: rgba(167, 139, 250, 0.32);
  --text: #ece9f5;
  --muted: #a7a1b8;
  --faint: #6f6982;
  --accent: #a855f7;
  --accent-2: #8b5cf6;
  --accent-soft: #c4b5fd;
  --accent-glow: rgba(168, 85, 247, 0.45);
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- bakgrundsljus ---------- */
.glow-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow-bg::before, .glow-bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: .55;
}
.glow-bg::before { width: 620px; height: 620px; left: -180px; top: -160px; background: radial-gradient(circle, rgba(124, 58, 237, .55), transparent 70%); }
.glow-bg::after { width: 560px; height: 560px; right: -200px; top: 30vh; background: radial-gradient(circle, rgba(168, 85, 247, .35), transparent 70%); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 6, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { width: min(1340px, 100% - 32px); height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; image-rendering: pixelated; }
.brand small { display: block; font-size: .62rem; letter-spacing: .3em; color: var(--accent-soft); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav a, .more-btn {
  color: var(--muted); text-decoration: none; font: 500 .88rem var(--font); white-space: nowrap;
  padding: 8px 9px; border-radius: 8px; transition: color .15s, background .15s; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .more-btn:hover { color: var(--text); background: rgba(167, 139, 250, .08); }
.nav a[aria-current="page"], .more-btn.active { color: #fff; background: rgba(168, 85, 247, .16); }
.more { position: relative; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; display: none; flex-direction: column; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px;
  box-shadow: 0 20px 40px -18px #000;
}
.more.open .more-menu { display: flex; }
.more-menu a { padding: 10px 12px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px;
  color: var(--text); text-decoration: none; font: 600 .88rem var(--font); white-space: nowrap;
  border: 1px solid var(--line-strong); background: rgba(168, 85, 247, .1); transition: border-color .15s, background .15s;
}
.account-btn svg { width: 18px; height: 18px; color: var(--accent-soft); }
.account-btn:hover { color: #fff; border-color: var(--accent-soft); background: rgba(168, 85, 247, .18); }
.account-btn[aria-current="page"] { border-color: var(--accent); background: rgba(168, 85, 247, .24); }
.nav-cta-mobile { display: none; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 10px; width: 44px; height: 38px; cursor: pointer; font-size: 1.15rem;
}

@media (max-width: 1320px) {
  .menu-btn { display: grid; place-items: center; }
  .head-actions { margin-left: auto; }
  .head-actions .nav-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    background: rgba(9, 7, 15, .97); border-bottom: 1px solid var(--line); padding: 10px 16px 18px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a, .more-btn { padding: 12px; font-size: 1rem; text-align: left; }
  /* I mobilmenyn visas "Mer"-länkarna direkt, utan att man behöver öppna något. */
  .more-btn { display: none; }
  .more-menu { position: static; display: flex; min-width: 0; padding: 6px 0 0; margin-top: 6px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 10px; }
}
@media (max-width: 420px) {
  .account-btn { padding: 0 11px; }
  .brand > span { font-size: .95rem; }
}

/* ---------- knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 .92rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 13px 20px; border-radius: 11px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 28px -8px var(--accent-glow); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 34px -6px var(--accent-glow); }
.btn-ghost { background: rgba(167, 139, 250, .06); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; border-color: var(--accent-soft); }
.btn-sm { padding: 9px 14px; font-size: .8rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sidhuvud för undersidor ---------- */
.page-hero { padding: clamp(48px, 8vw, 92px) 0 clamp(28px, 4vw, 44px); position: relative; }
.eyebrow { display: inline-block; font: 700 .74rem/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 14px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 720px; }
.crumbs { font-size: .85rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .85rem; color: var(--faint); margin-top: 14px; }
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-head { margin-bottom: 28px; }

/* ---------- utkast-banderoll ---------- */
.draft {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .07);
  color: #fde68a; border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 28px; font-size: .93rem;
}
.draft b { color: #fff3c4; }
.note {
  border-left: 3px solid var(--accent); background: rgba(168, 85, 247, .07); padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 1.4em; color: var(--muted);
}
.note b { color: var(--text); }

/* ---------- kort ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-strong); }
a.card, .card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px var(--accent-glow); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 1.1em; }
.card .btn, .card .more { margin-top: auto; align-self: flex-start; }
.more { font: 700 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-soft); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(168, 85, 247, .12); border: 1px solid var(--line-strong); color: var(--accent-soft); font-size: 1.35rem;
}
.icon svg { width: 22px; height: 22px; }

/* ---------- startsida ---------- */
.hero { padding: clamp(60px, 11vw, 140px) 0 clamp(50px, 8vw, 100px); position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1; margin-bottom: .3em; }
.hero h1 .grad {
  background: linear-gradient(120deg, #fff 10%, var(--accent-soft) 45%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.1rem, 2.3vw, 1.35rem); margin-bottom: 30px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.ip-box {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 10px 10px 16px;
  background: rgba(17, 14, 27, .8); border: 1px solid var(--line-strong); border-radius: 12px; max-width: 100%;
}
.ip-box code { font-size: 1rem; color: #fff; overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 128, .15); }
.dot.off { background: var(--bad); }

/* Pixel-"block" i hero */
.blocks { position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; width: 100%; }
.blocks .b {
  position: absolute; width: 30%; aspect-ratio: 1; image-rendering: pixelated; border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 50px -10px var(--accent-glow);
  animation: float 7s ease-in-out infinite;
}
.blocks .b1 { left: 8%; top: 12%; }
.blocks .b2 { left: 52%; top: 4%; width: 34%; animation-delay: -2s; }
.blocks .b3 { left: 32%; top: 48%; width: 38%; animation-delay: -4s; }
.blocks .b4 { left: 72%; top: 58%; width: 22%; animation-delay: -1s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.stat b { display: block; font: 800 1.7rem/1.1 var(--display); color: #fff; }
.stat span { font-size: .85rem; color: var(--muted); }

.account-cta { flex-direction: row !important; align-items: center; gap: 20px; padding: 22px 26px; border-color: var(--line-strong); background: linear-gradient(120deg, rgba(168, 85, 247, .16), var(--surface) 60%); }
.account-cta .icon { margin: 0; flex: none; width: 54px; height: 54px; }
.account-cta .icon svg { width: 26px; height: 26px; }
.account-cta h2 { font-size: 1.35rem; margin: 0 0 4px; }
.account-cta p { margin: 0; }
.account-cta .btn { margin: 0 0 0 auto !important; align-self: center !important; flex: none; }
@media (max-width: 760px) { .account-cta { flex-direction: column !important; align-items: flex-start; } .account-cta .btn { margin: 4px 0 0 !important; align-self: stretch !important; } }

/* ---------- butik ---------- */
.ranks { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.rank { --c: var(--accent-soft); display: flex; flex-direction: column; }
.rank::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
}
.rank-name { font: 800 1.5rem/1 var(--display); color: var(--c); letter-spacing: .03em; }
.rank-tag { color: var(--muted); font-size: .9rem; margin: 6px 0 16px; }
.rank-price { font: 800 1.6rem/1 var(--display); color: #fff; margin-bottom: 16px; min-height: 1.6rem; }
.rank-price small { font-size: .8rem; color: var(--faint); font-weight: 500; }
.rank ul { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
.rank li { padding-left: 22px; position: relative; }
.rank li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; background: var(--c); border-radius: 2px; box-shadow: 0 0 10px var(--c); }
.rank .btn { margin-top: auto; width: 100%; }
.badge { display: inline-block; font: 700 .68rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: rgba(168, 85, 247, .16); color: var(--accent-soft); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .85rem; color: var(--muted); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 16px; background: rgba(3, 2, 6, .72); backdrop-filter: blur(6px); }
.modal.show { display: grid; }
.modal-box { width: min(480px, 100%); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; max-height: calc(100vh - 32px); overflow-y: auto; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.input {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; font: inherit;
}
.input:focus { outline: none; border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(168, 85, 247, .25); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 16px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); }
.check input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.check.missing { border-color: var(--bad); }
.err { display: none; color: var(--bad); font-size: .86rem; margin: -8px 0 14px; }
.err.show { display: block; }

/* ---------- regler: expanderbara kort ---------- */
.rules { display: grid; gap: 12px; }
details.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
details.rule[open] { border-color: var(--line-strong); background: var(--surface-2); }
details.rule summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-weight: 600;
}
details.rule summary::-webkit-details-marker { display: none; }
details.rule summary::after { content: "+"; margin-left: auto; font: 400 1.4rem/1 var(--display); color: var(--accent-soft); transition: transform .2s; }
details.rule[open] summary::after { transform: rotate(45deg); }
.rule-no {
  flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: rgba(168, 85, 247, .14); color: var(--accent-soft); font: 800 .9rem/1 var(--display);
}
.rule-body { padding: 0 18px 16px 66px; color: var(--muted); }
.rule-body p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .rule-body { padding-left: 18px; } }
.cat { margin-top: 44px; }
.cat:first-of-type { margin-top: 0; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cat-head .icon { margin: 0; }
.cat-head h2 { margin: 0; font-size: 1.45rem; }
.cat-head p { margin: 0; color: var(--faint); font-size: .9rem; }

/* ---------- policydokument ---------- */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 20px; } }
.toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--surface); }
.toc b { display: block; font-family: var(--display); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
@media (max-width: 900px) { .toc { position: static; } }
.doc h2 { margin-top: 2em; padding-top: .2em; font-size: 1.45rem; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.4em; font-size: 1.08rem; }
.doc p, .doc li { color: #cfcade; }
.doc table, .table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .93rem; }
.doc th, .doc td, .table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th, .table th { color: var(--faint); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.faq-tools .input { flex: 1 1 260px; }
.chip { border: 1px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 14px; font: 600 .85rem var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: rgba(168, 85, 247, .18); color: #fff; border-color: var(--accent-soft); }

/* ---------- leaderboard ---------- */
.board ol { list-style: none; padding: 0; margin: 0; }
.board li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.board li:last-child { border-bottom: 0; }
.board .pos { width: 28px; font: 800 .95rem var(--display); color: var(--faint); }
.board li:nth-child(1) .pos { color: #fcd34d; }
.board li:nth-child(2) .pos { color: #e5e7eb; }
.board li:nth-child(3) .pos { color: #f59e0b; }
.board .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.board .val { font-family: var(--mono); font-size: .9rem; color: var(--accent-soft); }
.empty { color: var(--faint); font-size: .92rem; padding: 10px 0; }

/* ---------- konto ---------- */
.account-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; font: 800 1.3rem var(--display); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.hist-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- personalens befogenheter ---------- */
.role-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.role-jump a { text-decoration: none; }
.roles { display: grid; gap: 22px; }
.role { --c: #60a5fa; padding: 0; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); }
.role::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--c), transparent 70%); }
.role-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 6px; }
.role-head .icon { margin: 0; flex: none; color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.role-head h2 { font-size: 1.45rem; margin: 2px 0 4px; }
.role-head p { margin: 0; color: var(--muted); }
.role-tag { font: 600 .78rem var(--font); color: var(--faint); margin-left: 6px; }
.role-body { padding: 14px 24px 22px; }
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .platforms { grid-template-columns: 1fr; } }
.platform { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.platform h3 { display: flex; align-items: center; gap: 9px; font-size: .95rem; letter-spacing: .02em; margin: 0 0 10px; }
.platform h3 svg { width: 18px; height: 18px; flex: none; }
.platform ul { margin: 0; padding-left: 1.15em; color: #cfcade; font-size: .94rem; }
.platform li::marker { color: var(--c); }
.platform .none { color: var(--faint); font-size: .9rem; margin: 8px 0 0; }
.verify { display: inline-block; margin-left: 6px; font: 600 .7rem/1 var(--font); letter-spacing: .04em; color: #fde68a; border: 1px solid rgba(251, 191, 36, .45); border-radius: 5px; padding: 3px 6px; vertical-align: 1px; white-space: nowrap; }
.duty { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.duty h3 { font-size: .95rem; margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.duty h3 svg { width: 18px; height: 18px; color: var(--c); }
.duty ul { margin: 0; padding-left: 1.15em; color: #cfcade; font-size: .94rem; }
.limit { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.limit svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--faint); }
.limit b { color: var(--text); font-weight: 600; }
.person { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c) 7%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.person .avatar { width: 44px; height: 44px; font-size: 1.05rem; }
.person b { display: block; }
.person span { color: var(--muted); font-size: .88rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .06)); padding: 54px 0 30px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--faint); font-size: .84rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 90;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 20px 40px -20px #000; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
