/* ---------- Tokens ---------- */
:root {
  --bg: #17100b;
  --bg-2: #1f1610;
  --surface: #261b13;
  --surface-2: #301f15;
  --line: rgba(226, 179, 86, 0.16);
  --line-strong: rgba(226, 179, 86, 0.38);
  --text: #f3e8d4;
  --text-soft: #d6c6aa;
  --muted: #a8957a;
  --gold: #e8b45a;
  --gold-soft: #f2cf8b;
  --ember: #d8743a;
  --wine: #b0435a;
  --wine-soft: rgba(176, 67, 90, 0.18);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --display: "Almendra", "Cinzel", Georgia, serif;
  --body: "Montserrat Alternates", "Montserrat", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(216, 116, 58, 0.16), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(232, 180, 90, 0.08), transparent 60%),
    radial-gradient(1200px 800px at 50% 120%, rgba(176, 67, 90, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--gold-soft); text-decoration-color: rgba(242, 207, 139, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; margin: 0; line-height: 1.15; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Drifting embers */
.embers {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(2px 2px at 10% 80%, rgba(242, 160, 80, .55), transparent),
    radial-gradient(1.5px 1.5px at 30% 60%, rgba(242, 190, 110, .45), transparent),
    radial-gradient(2px 2px at 70% 90%, rgba(242, 140, 70, .5), transparent),
    radial-gradient(1.5px 1.5px at 85% 40%, rgba(242, 190, 110, .35), transparent),
    radial-gradient(1px 1px at 50% 30%, rgba(242, 200, 130, .4), transparent);
  background-size: 600px 700px;
  animation: drift 40s linear infinite;
  opacity: .7;
}
@keyframes drift { to { background-position: 60px -700px; } }
@media (prefers-reduced-motion: reduce) { .embers { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(23, 16, 11, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  color: var(--text); text-decoration: none; letter-spacing: 0.06em;
}
.brand-mark { width: 24px; height: 24px; fill: var(--gold); stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.brand-mark path:last-child { fill: none; }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); }
.nav a {
  font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft); text-decoration: none;
}
.nav a:hover { color: var(--gold); }
@media (max-width: 560px) {
  .nav a[href="#about"] { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.74rem; letter-spacing: 0.08em; }
}
@media (max-width: 420px) { .brand-text { display: none; } }

/* Background Remover shortcut in the menu: logo + label, logo only on phones */
.nav { align-items: center; }
.nav a.nav-app {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--gold-soft);
}
.nav a.nav-app:hover { border-color: var(--gold); color: var(--gold); }
.nav-app img { width: 26px; height: 26px; border-radius: 7px; }
.nav a.nav-app { flex: none; }
.nav-app + .nav-app { margin-left: -4px; }
@media (max-width: 700px) {
  .nav a.nav-app { padding: 2px; border-radius: 9px; }
  .nav-app span { display: none; }
}
@media (max-width: 400px) {
  .nav { gap: 10px; }
  .nav a { font-size: 0.68rem; letter-spacing: 0.04em; }
  .nav-app + .nav-app { margin-left: -2px; }
}

main, .footer { position: relative; z-index: 1; }
main { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(48px, 9vw, 104px) 0 clamp(32px, 5vw, 56px);
}
.hero-portrait {
  position: relative; width: clamp(128px, 18vw, 184px); aspect-ratio: 1;
  border-radius: 50%; padding: 5px;
  background: conic-gradient(from 200deg, var(--gold), var(--ember), var(--wine), var(--gold));
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 60px -10px rgba(216, 116, 58, 0.55);
}
.hero-portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface); border: 3px solid var(--bg); }
.eyebrow {
  margin: 0 0 8px; font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  background: linear-gradient(180deg, #fbefd6 20%, var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--text-soft); font-style: italic; max-width: 40ch; margin: 10px 0 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 24px; color: var(--muted); font-size: 1rem; }
.hero-stats b { color: var(--text); font-weight: 600; font-family: var(--display); font-size: 1.05rem; margin-right: 5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-tagline { margin-inline: auto; }
  .hero-stats, .hero-actions { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-family: var(--display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #f0c26c, #d99a3c); color: #2a1a0c; box-shadow: 0 8px 24px -10px rgba(232, 180, 90, .7); }
.btn-primary:hover { color: #2a1a0c; background: linear-gradient(180deg, #f6cf82, #e2a446); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Flourish divider ---------- */
.flourish { display: flex; align-items: center; gap: 14px; margin: 8px 0; color: var(--gold); opacity: .7; }
.flourish span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.flourish svg { width: 40px; height: 16px; fill: currentColor; }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-sub { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-worlds { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-chars { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-tools { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 460px) { .grid-chars { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(232,180,90,.08); }
.card-art { position: relative; aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; }
.grid-worlds .card-art { aspect-ratio: 16 / 11; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-art img { transform: scale(1.04); }
.card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(23,16,11,.85)); }
.card-badges { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; justify-content: space-between; gap: 6px; }
.badge {
  font-family: var(--display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: rgba(23,16,11,.75); color: var(--gold-soft);
  border: 1px solid var(--line-strong); backdrop-filter: blur(4px);
}
.badge-explicit { color: #ffd6de; border-color: rgba(176,67,90,.7); background: rgba(80, 22, 35, .8); }
.badge-mature { color: #f6d9b9; border-color: rgba(216,116,58,.55); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-family: var(--display); font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.card-subtitle { font-size: 0.92rem; color: var(--gold-soft); font-style: italic; line-height: 1.3; }
.card-tagline {
  margin: 2px 0 0; font-size: 0.98rem; color: var(--text-soft); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.85rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- Toolbar & chips ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.search {
  flex: 1 1 260px; display: flex; align-items: center; gap: 10px; min-height: 46px;
  padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 1rem; }
.search input::placeholder { color: var(--muted); }

.nsfw-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 8px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-soft);
  font: inherit; font-size: 0.98rem; cursor: pointer;
}
.nsfw-toggle:hover { border-color: rgba(176,67,90,.6); }
.nsfw-toggle[aria-pressed="true"] { background: var(--wine-soft); border-color: rgba(176,67,90,.7); color: #ffd6de; }
.seal {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--display); font-size: 0.68rem; font-weight: 700; color: #ffe3e8;
  background: radial-gradient(circle at 35% 30%, #d0566f, #7d2638); box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}
.seal-lg { width: 64px; height: 64px; font-size: 1.1rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 34px; padding: 4px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text-soft);
  font: inherit; font-size: 0.92rem;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] { background: rgba(232,180,90,.14); border-color: var(--gold); color: var(--gold-soft); }
.chip-clear { color: var(--muted); border-style: dashed; }

.empty, .hidden-note { color: var(--muted); text-align: center; margin: 24px 0 0; }
.hidden-note button { background: none; border: 0; color: var(--gold-soft); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }

/* ---------- Tool cards ---------- */
.tool {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tool-head { display: flex; gap: 14px; align-items: center; }
.tool-icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(232,180,90,.3), rgba(216,116,58,.08)); border: 1px solid var(--line-strong);
}
.tool-icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tool h3 { font-size: 1.2rem; }
.tool-kind { font-size: 0.9rem; color: var(--gold-soft); font-style: italic; }
.tool p { margin: 0; color: var(--text-soft); }
.tool ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.tool li { padding-left: 22px; position: relative; color: var(--text-soft); font-size: 0.98rem; }
.tool li::before { content: "✦"; position: absolute; left: 2px; color: var(--gold); font-size: 0.75rem; top: 4px; }
.tool details { border-top: 1px solid var(--line); padding-top: 12px; }
.tool summary { cursor: pointer; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tool pre {
  margin: 10px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: #120c08; border: 1px solid var(--line);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.82rem; color: var(--text-soft);
  white-space: pre-wrap; word-break: break-word;
}
.tool-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.tool-options {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px;
}
.tool-option { display: flex; flex-direction: column; gap: 8px; }
.tool-option .btn { width: 100%; white-space: nowrap; padding-inline: 12px; letter-spacing: 0.07em; }
.tool-option-note { font-size: 0.9rem; color: var(--muted); line-height: 1.35; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn.is-disabled:hover { transform: none; border-color: var(--line-strong); color: var(--text); }

/* ---------- About ---------- */
.about-card {
  max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 44px); text-align: center;
  background:
    linear-gradient(180deg, rgba(232,180,90,.06), transparent 40%),
    var(--surface);
  border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow);
}
.about-body { margin-top: 16px; color: var(--text-soft); font-size: 1.08rem; }
.about-body p { margin: 0 0 12px; }
.about-body p:last-child { margin-bottom: 0; font-style: italic; color: var(--gold-soft); }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 40px var(--gutter) 56px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; }
.footer p { margin: 4px 0; }

/* ---------- Modals ---------- */
.modal {
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--surface); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0,0,0,.9);
  overflow: auto;
}
.modal::backdrop { background: rgba(10, 6, 4, 0.75); backdrop-filter: blur(4px); }
.modal-small { width: min(440px, calc(100vw - 32px)); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(23,16,11,.8); border: 1px solid var(--line-strong); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.detail-banner { height: 180px; background: var(--bg-2) center / cover no-repeat; position: relative; }
.detail-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38,27,19,.2), var(--surface)); }
.detail-head { display: flex; gap: 20px; align-items: flex-end; padding: 0 24px; margin-top: -84px; position: relative; z-index: 1; }
.detail-avatar { width: 128px; aspect-ratio: 4/5; flex: none; border-radius: 12px; object-fit: cover; border: 3px solid var(--surface); box-shadow: var(--shadow); background: var(--bg-2); }
.detail-head h3 { font-size: 1.5rem; }
.detail-content { padding: 20px 24px 26px; display: grid; gap: 16px; }
.detail-tagline { margin: 0; font-size: 1.12rem; color: var(--text-soft); font-style: italic; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.85rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); }
.detail-stats { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: 0.95rem; }
.detail-stats b { color: var(--text); font-family: var(--display); }
@media (max-width: 520px) {
  .detail-head { flex-direction: column; align-items: flex-start; margin-top: -70px; }
  .detail-avatar { width: 104px; }
}
.gate { padding: 32px 28px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.gate h3 { font-size: 1.35rem; }
.gate p { margin: 0; color: var(--text-soft); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* ======================================================
   Multi-page additions
   ====================================================== */
#site-header { display: contents; }
.nav a[aria-current="page"] { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(232,180,90,.5); text-underline-offset: 8px; }

/* Page header on subpages */
.page-head { padding: clamp(36px, 6vw, 64px) 0 24px; }
.page-head h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  background: linear-gradient(180deg, #fbefd6 20%, var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.crumb { display: inline-block; margin-bottom: 18px; font-size: 0.95rem; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--gold-soft); }
main > .grid { padding-bottom: clamp(40px, 6vw, 72px); }

/* Latest row on the landing page */
.latest { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .latest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .latest { gap: 12px; } }
.latest-slot { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.latest-slot .card { flex: 1; }
.latest-label {
  margin: 0; font-family: var(--display); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px;
}
.latest-label::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.badge { white-space: nowrap; }
@media (max-width: 460px) {
  .latest-label { font-size: 0.64rem; letter-spacing: 0.08em; white-space: nowrap; }
  .latest-label::after { display: none; }
}
.latest .card-art { aspect-ratio: 4 / 5; }
.latest .card-art img { object-position: center 20%; }
.see-all {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  font-family: var(--display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-soft); text-decoration: none;
}
.see-all svg, .reveal-link svg, .tile-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.see-all:hover svg, .tile:hover .tile-arrow svg { transform: translateX(3px); }
.badge-label { color: var(--text); background: rgba(23,16,11,.82); }

/* Locked explicit card */
.locked-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(208, 86, 111, .45), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(216, 116, 58, .35), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px),
    #2a1218;
}
.locked-center { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.card-locked .seal-lg { box-shadow: 0 0 40px rgba(208, 86, 111, .5), inset 0 0 0 2px rgba(255,255,255,.12); }
.card-meta .try-link { color: var(--gold-soft); white-space: nowrap; }
@media (max-width: 460px) { .card-meta .try-link { letter-spacing: 0.06em; font-size: 0.68rem; } }
.reveal-link { display: inline-flex; align-items: center; gap: 6px; color: #ffd6de; font-family: var(--display); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* Tool card variant */
.card-tool { text-decoration: none; }
.tool-art {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(232,180,90,.28), transparent 60%),
    repeating-radial-gradient(circle at 50% 45%, rgba(232,180,90,.06) 0 2px, transparent 2px 18px),
    var(--bg-2);
}
.tool-art::after { display: none; }
.tool-art-icon svg { width: 72px; height: 72px; stroke: var(--gold); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 18px rgba(232,180,90,.45)); }
.card-meta svg[fill="currentColor"] { fill: currentColor; stroke: none; }
.tool-art-icon .tool-img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 40px rgba(232,180,90,.35), 0 10px 30px -10px rgba(0,0,0,.7); }
.tool-icon.has-image { padding: 0; overflow: hidden; background: none; }
.tool-icon .tool-img { width: 100%; height: 100%; object-fit: cover; }
.tool-footnote { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* Browse tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tile {
  display: flex; align-items: center; gap: 16px; padding: 12px 18px 12px 12px; min-height: 92px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--text); }
.tile img, .tile-icon { width: 68px; height: 68px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.tile-icon { display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(232,180,90,.3), rgba(216,116,58,.08)); }
.tile-icon svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tile-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tile-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.tile-sub { color: var(--muted); font-size: 0.95rem; }
.tile-arrow { color: var(--gold); }

/* Tabs on the Characters page */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px;
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
  font-family: var(--display); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; color: var(--muted);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--gold-soft); border-bottom-color: var(--gold); }
.tab-count { font-family: var(--body); font-weight: 500; font-size: 0.85rem; padding: 1px 8px; border-radius: 999px; background: rgba(232,180,90,.1); color: var(--text-soft); letter-spacing: 0; }
.seal-sm { width: 24px; height: 24px; font-size: 0.55rem; }
.tab-desc { margin: 0 0 20px; color: var(--text-soft); font-style: italic; }
.text-btn { background: none; border: 0; padding: 8px 4px; color: var(--muted); font: inherit; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn:hover { color: var(--gold-soft); }

/* 18+ on/off switch */
.nsfw-switch {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px 6px 8px;
  border-radius: 999px; cursor: pointer; text-align: left; color: var(--text);
  background: var(--surface); border: 1px solid rgba(176,67,90,.55);
  font: inherit; transition: border-color .2s ease, background .2s ease;
}
.nsfw-switch:hover { border-color: #d0566f; }
.nsfw-switch[aria-checked="true"] { background: var(--wine-soft); border-color: #d0566f; }
.nsfw-switch-text { display: flex; flex-direction: column; line-height: 1.2; }
.nsfw-switch-label { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: .03em; }
.nsfw-switch-sub { font-size: 0.78rem; color: var(--muted); }
.switch-track {
  position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px;
  background: #3a2a1f; border: 1px solid var(--line-strong); transition: background .2s ease;
}
.switch-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-soft); transition: transform .2s ease, background .2s ease;
}
.nsfw-switch[aria-checked="true"] .switch-track { background: #9b3a50; border-color: #d0566f; }
.nsfw-switch[aria-checked="true"] .switch-thumb { transform: translateX(20px); background: #fff; }
.toolbar [data-nsfw-slot] { flex: none; }
.section-head { flex-wrap: wrap; }
@media (max-width: 560px) {
  .toolbar [data-nsfw-slot], .toolbar .nsfw-switch { width: 100%; }
  .nsfw-switch .switch-track { margin-left: auto; }
}

/* Footer nav */
.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; }
.footer-nav a { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--gold); }
