/* MySpell: Spellpages. The site's nav from styles.css; the rest here. Four theme presets ([data-theme]) and an
   accent (--ms-accent, set from a fixed list). No member can add CSS. */

.ms-body { background: #0d0b0c; }
.ms-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 1100px; margin: 84px auto 0; padding: 12px 16px;
  background: linear-gradient(#2b1d3d, #1b1326); border: 1px solid #3b2a52; border-radius: 10px 10px 0 0;
}
.ms-logo { text-decoration: none; font: 400 34px/1 var(--serif); letter-spacing: -.01em; }
.ms-logo-my { color: #efe6da; font-style: italic; }
.ms-logo-spell { color: #c9a2ff; }
.ms-tag { color: var(--ink-3); font-size: 13px; }
.ms-search { display: flex; gap: 6px; margin-left: auto; }
.ms-search input { width: 220px; max-width: 46vw; }
.ms-me a { color: #c9a2ff; font-size: 14px; }
.ms-main { max-width: 1100px; margin: 0 auto; padding: 16px; min-height: 60vh; background: #141014; border: 1px solid #2a2030; border-top: 0; border-radius: 0 0 10px 10px; }
.ms-loading { color: var(--ink-3); }
.ms-foot { max-width: 1100px; margin: 18px auto 40px; padding: 0 16px; color: var(--ink-3); font-size: 13px; }

.ms-body input, .ms-body textarea, .ms-body select {
  font: inherit; font-size: 15px; color: var(--ink); background: #0c0a0b; border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 9px;
}
.ms-btn {
  display: inline-block; text-decoration: none; font-size: 14px; padding: 7px 14px; border-radius: 6px; border: 1px solid #7a55c9;
  background: linear-gradient(#5d3fa0, #432c78); color: #fff;
}
.ms-btn:hover { filter: brightness(1.15); }
.ms-btn:disabled { opacity: .5; }
.ms-btn-big { font-size: 16px; padding: 10px 20px; }
.ms-btn-quiet { background: transparent; border-color: var(--line-2); color: var(--ink-2); }
.ms-link { background: none; border: 0; padding: 0; color: var(--ink-3); text-decoration: underline; font-size: 12px; }
.ms-dim { color: var(--ink-3); font-size: 13px; }
.ms-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ms-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: #2b1d3d; border: 1px solid #7a55c9; color: #fff; padding: 10px 18px; border-radius: 8px; max-width: calc(100vw - 32px); }

.ms-box { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255, 255, 255, .02); }
.ms-box h1 { font: 400 32px/1.1 var(--serif); margin-bottom: 8px; }
.ms-box h2 { font-size: 15px; font-weight: 600; margin: -14px -16px 12px; padding: 7px 16px; border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--ms-accent, #8d62f2) 30%, transparent); color: var(--ink); }
.ms-box h3 { font-size: 14px; margin: 12px 0 4px; }

/* the front page */
.ms-hero { display: flex; gap: 24px; align-items: center; padding: 20px 8px 24px; }
.ms-hero h1 { font: 400 clamp(32px, 5vw, 52px)/1.05 var(--serif); margin-bottom: 10px; }
.ms-hero p { color: var(--ink-2); max-width: 620px; }
.ms-hero-cta { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.ms-hero-pic { width: 128px; height: 128px; margin-left: auto; filter: drop-shadow(0 6px 20px rgba(141, 98, 242, .5)); }
@media (max-width: 620px) { .ms-hero-pic { display: none; } }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ms-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 8px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 8px; background: var(--ms-panel, #1a1420); }
.ms-card:hover { border-color: #7a55c9; }
.ms-card-pic { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; background: #0c0a0b; }
.ms-card-name { font-weight: 600; overflow-wrap: anywhere; }
.ms-card-handle { color: var(--ink-3); font-size: 12px; }
.ms-card-line { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.ms-npc { display: inline-block; margin: 2px 0 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: #1b1326; background: #d6a548; border: 1px solid #f0cf7a; }
.ms-locals .ms-dim { margin-bottom: 10px; }
.ms-lock { color: var(--ink-3); font-style: italic; }
.ms-reqs { list-style: none; margin: 0; padding: 0; }
.ms-reqs li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.ms-reqs li span { margin-right: auto; }

/* a Spellpage */
.ms-page { position: relative; padding: 14px; border-radius: 10px; background: var(--ms-bg); color: var(--ms-ink); --ink: var(--ms-ink);
  --ink-2: var(--ms-ink-2); --ink-3: var(--ms-ink-3); --line-2: var(--ms-line); background-size: cover; background-position: center; background-attachment: fixed; }
.ms-page.ms-has-bg::before { content: ""; position: absolute; inset: 0; border-radius: 10px; background: var(--ms-veil); pointer-events: none; }
.ms-page > * { position: relative; }
.ms-cols { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
@media (max-width: 760px) { .ms-cols { grid-template-columns: 1fr; } }
.ms-left > div, .ms-right > .ms-box { background: var(--ms-panel); }
.ms-left > div { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--ms-line); border-radius: 8px; }
.ms-name { font: 400 34px/1.1 var(--serif); margin-bottom: 10px; overflow-wrap: anywhere; }
.ms-avatar { width: 180px; height: 180px; border-radius: 8px; object-fit: cover; background: #0c0a0b; border: 3px solid var(--ms-accent, #8d62f2); }
.ms-avatar-small { width: 96px; height: 96px; }
.ms-headline { margin: 10px 0 4px; font-style: italic; overflow-wrap: anywhere; }
.ms-mood b { color: var(--ms-accent, #8d62f2); }
.ms-network { font-size: 18px; margin: 4px 0 14px; padding: 10px 14px; border: 1px solid var(--ms-line); border-radius: 8px; background: var(--ms-panel); }
.ms-contact-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-play { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px;
  border: 1px solid var(--ms-accent, #8d62f2); background: transparent; color: var(--ms-ink); }
.ms-play-icon { color: var(--ms-accent, #8d62f2); width: 1.2em; }
.ms-game dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 6px 0 0; font-size: 14px; }
.ms-game dt { color: var(--ink-3); }
.ms-game dd { margin: 0; }
.ms-skull { display: inline-block; vertical-align: -5px; }
.ms-tagchip { font-family: var(--mono); font-weight: 500; }
.ms-sample { border-style: dashed !important; }
.ms-sample-note { font-size: 12px; color: #ffcf6b; margin: 2px 0 6px; }
.ms-ach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.ms-ach li { padding: 8px 10px; border: 1px solid var(--ms-line); border-radius: 6px; display: flex; gap: 8px; align-items: center; }
.ms-ach-icon { color: var(--ms-accent, #8d62f2); }
.ms-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 520px) { .ms-top { grid-template-columns: repeat(3, 1fr); } }
.ms-top a, .ms-top li > span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.ms-top img { width: 80px; height: 80px; max-width: 100%; object-fit: cover; border-radius: 6px; background: #0c0a0b; }
.ms-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ms-shots figure { margin: 0; }
.ms-shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.ms-shots figcaption { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.ms-sign { display: grid; gap: 8px; margin-bottom: 12px; }
.ms-sign textarea { width: 100%; }
.ms-comments { list-style: none; margin: 0; padding: 0; }
.ms-comment { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ms-line); }
.ms-comment-who { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; text-decoration: none; text-align: center; overflow-wrap: anywhere; }
.ms-comment-who img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.ms-comment-acts { display: flex; gap: 10px; }

/* stickers: over the page, never in the way of a click */
.ms-stickers { position: absolute !important; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.ms-sticker { position: absolute; width: 72px; height: 72px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.ms-preview { position: relative; height: 260px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--ms-bg); overflow: hidden; touch-action: none; }
.ms-preview > p { padding: 12px; }
.ms-drag { cursor: grab; pointer-events: auto; }

/* the editor */
.ms-form fieldset { border: 1px solid var(--line-2); border-radius: 8px; margin: 0 0 14px; padding: 10px 14px; display: grid; gap: 10px; }
.ms-form legend { padding: 0 6px; font-weight: 600; }
.ms-form label { display: grid; gap: 4px; font-size: 14px; }
.ms-form label.ms-check { display: flex; gap: 8px; align-items: center; }
.ms-form input:not([type=checkbox]):not([type=radio]), .ms-form textarea, .ms-form select { width: 100%; }
.ms-pack { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-pack-btn { background: #0c0a0b; border: 1px solid var(--line-2); border-radius: 6px; padding: 4px; }
.ms-pack-btn:hover { border-color: #7a55c9; }
.ms-danger fieldset { border-color: #6b2a2a; }
.ms-reports { list-style: none; margin: 0; padding: 0; }
.ms-report { padding: 10px 0; border-top: 1px solid var(--line-2); }
.ms-report-img { max-width: 240px; border-radius: 6px; }

/* ---- the four presets ---- */
[data-theme] { --ms-bg: #121a10; --ms-panel: rgba(20, 30, 16, .88); --ms-ink: #e8eedc; --ms-ink-2: #b8c4a8; --ms-ink-3: #829172; --ms-line: rgba(159, 211, 107, .22); --ms-veil: rgba(10, 16, 8, .55); }
[data-theme="greenheart"] { --ms-bg: radial-gradient(ellipse at top, #24371b, #0e150b 70%); }
[data-theme="rime"] { --ms-bg: radial-gradient(ellipse at top, #22384a, #0b131b 70%); --ms-panel: rgba(16, 28, 40, .88); --ms-ink: #e6f2fb;
  --ms-ink-2: #aac4d6; --ms-ink-3: #7590a4; --ms-line: rgba(143, 216, 255, .25); --ms-veil: rgba(8, 14, 22, .55); }
[data-theme="mirror"] { --ms-bg: radial-gradient(ellipse at top, #241b2b, #070608 70%); --ms-panel: rgba(14, 10, 16, .9); --ms-ink: #efe8f2;
  --ms-ink-2: #bfb2c8; --ms-ink-3: #8a7c94; --ms-line: rgba(63, 191, 154, .25); --ms-veil: rgba(4, 3, 6, .6); }
[data-theme="parchment"] { --ms-bg: radial-gradient(ellipse at top, #efe2c4, #cdb98e 80%); --ms-panel: rgba(250, 242, 222, .92); --ms-ink: #2e2216;
  --ms-ink-2: #5a4632; --ms-ink-3: #85705a; --ms-line: rgba(90, 60, 30, .25); --ms-veil: rgba(239, 226, 196, .45); }
[data-theme="parchment"] .ms-btn-quiet, [data-theme="parchment"] .ms-play { color: var(--ms-ink); }
[data-theme="parchment"] .ms-box h2 { color: var(--ms-ink); }
.ms-card[data-theme] { background: var(--ms-panel); color: var(--ms-ink); }
.ms-card[data-theme] .ms-card-handle, .ms-card[data-theme] .ms-card-line { color: var(--ms-ink-3); }

/* ---- Witch Coin and the Forum Shop (#/shop) ---- */
.wc-amt { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: #e8c374; white-space: nowrap; }
.wc-coin { width: 1em; height: 1em; flex: none; }
.ms-me .wc-nav { text-decoration: none; }
.wc-level { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.wc-level b { color: var(--ms-accent, #8d62f2); }
.wc-big { font-size: 26px; margin: 2px 0 4px; }
.wc-bar { height: 6px; margin: 6px 0 8px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.wc-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a77b2c, #e8c374); }
.wc-recent { list-style: none; margin: 8px 0; padding: 0; font-size: 13px; }
.wc-recent li { padding: 3px 0; border-top: 1px solid var(--line-2); }
.wc-plus, .wc-minus { display: inline-block; min-width: 36px; font-weight: 600; }
.wc-plus { color: #9fd36b; }
.wc-minus { color: #e86a8a; }

.fs-head h1 { font: 400 32px/1.1 var(--serif); margin-bottom: 8px; }
.fs-balance { margin: 10px 0 6px; font-size: 16px; }
.fs-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.fs-tab { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.fs-tab:hover { border-color: #7a55c9; }
.fs-tab.fs-on { background: #432c78; border-color: #7a55c9; color: #fff; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.fs-item { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #1a1420; }
.fs-item h3 { font-size: 16px; margin-top: 6px; }
.fs-item.fs-owned { border-color: #6b5420; }
.fs-art { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3a2a52, #17111d 75%); border: 1px solid #2a2030; }
.fs-art[data-slot="face"] { background: radial-gradient(circle at 50% 35%, #4d3a1c, #17111d 75%); }
.fs-ph { position: absolute; inset: 22%; width: 56%; height: 56%; fill: none; stroke: #8d72b8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .55; }
.fs-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #17111d; }
.fs-desc { font-size: 13px; color: var(--ink-2); flex: 1; }
.fs-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.fs-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #3b2e12; color: #e8c374; border: 1px solid #6b5420; }
@media (max-width: 520px) { .fs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .fs-desc { display: none; } }
.fs-swatches { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.fs-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: #444; }
.fs-art[data-slot="hair"], .fs-art[data-slot="head"] { background: radial-gradient(circle at 50% 35%, #2f3a52, #17111d 75%); }
.fs-swatch.fs-print { border-radius: 4px; background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .75) 0 2px, transparent 2.5px), radial-gradient(circle at 70% 70%, rgba(255, 255, 255, .6) 0 1.5px, transparent 2px); }
.fs-prints { font-size: 12px; color: var(--ink-2); }
.fs-art[data-slot="neck"], .fs-art[data-slot="hands"] { background: radial-gradient(circle at 50% 35%, #4a2436, #17111d 75%); }
.fs-art[data-slot="feet"], .fs-art[data-slot="ears"], .fs-art[data-slot="back"] { background: radial-gradient(circle at 50% 35%, #24443c, #17111d 75%); }

/* ---- the customizer (Nov 4): a page's custom look is scoped to #ms-custom and clipped to it ---- */
#ms-custom { contain: paint; overflow: hidden; isolation: isolate; }
.ms-banner { display: block; width: 100%; max-width: 900px; height: auto; aspect-ratio: 900 / 200; margin: 0 auto 14px; border-radius: 8px; object-fit: cover; }
.ms-pagebar { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; margin: 0 0 8px; font-size: 13px; color: var(--ink-3); }
.ms-pagebar a, .ms-pagebar .ms-link { font-size: 13px; color: #c9a2ff; }
.ms-one-col .ms-cols { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.ms-one-col .ms-left { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; }

/* glitter on the name */
.ms-glitter .ms-name {
  background: linear-gradient(100deg, #fff6c9 0%, #ff9de2 20%, #b8a6ff 40%, #9ff3ff 60%, #fff6c9 80%, #ff9de2 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ms-shimmer 3s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 220, 255, .5));
}
@keyframes ms-shimmer { to { background-position: -200% 0; } }

/* animated backgrounds: a layer behind the page's content */
.ms-anim::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; }
.ms-anim-stars::after {
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent),
    radial-gradient(2px 2px at 40% 70%, #fff8, transparent), radial-gradient(1px 1px at 85% 60%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 85%, #fffa, transparent), radial-gradient(1px 1px at 55% 45%, #fff, transparent);
  background-size: 260px 260px; animation: ms-twinkle 3s ease-in-out infinite alternate;
}
.ms-anim-embers::after {
  background-image: radial-gradient(2px 2px at 15% 90%, #ff8a3d, transparent), radial-gradient(1.5px 1.5px at 45% 80%, #ffc06b, transparent),
    radial-gradient(2px 2px at 75% 95%, #ff6a1f, transparent), radial-gradient(1px 1px at 90% 85%, #ffd36b, transparent);
  background-size: 300px 300px; animation: ms-rise 9s linear infinite;
}
.ms-anim-snow::after {
  background-image: radial-gradient(2px 2px at 10% 10%, #fff, transparent), radial-gradient(1.5px 1.5px at 50% 30%, #fffc, transparent),
    radial-gradient(2.5px 2.5px at 80% 5%, #fff, transparent), radial-gradient(1px 1px at 30% 60%, #fff, transparent);
  background-size: 220px 220px; animation: ms-fall 12s linear infinite;
}
.ms-anim-hearts::after {
  background-image: radial-gradient(3px 3px at 20% 80%, #ff7ab6, transparent), radial-gradient(2px 2px at 60% 90%, #ffb3d4, transparent),
    radial-gradient(3px 3px at 85% 70%, #ff5c9a, transparent);
  background-size: 280px 280px; animation: ms-rise 11s linear infinite;
}
.ms-anim-aurora::after {
  background: linear-gradient(120deg, rgba(80, 255, 190, .16), rgba(120, 140, 255, .14), rgba(255, 120, 220, .12), rgba(80, 255, 190, .16));
  background-size: 300% 300%; animation: ms-shimmer 14s ease-in-out infinite alternate;
}
@keyframes ms-twinkle { from { opacity: .35; } to { opacity: 1; } }
@keyframes ms-rise { from { background-position: 0 0; } to { background-position: 40px -300px; } }
@keyframes ms-fall { from { background-position: 0 0; } to { background-position: -30px 220px; } }
@keyframes ms-wobble { 50% { transform: rotate(-3deg); } }
@keyframes ms-pulse { 50% { opacity: .6; } }
@keyframes ms-spin { to { transform: rotate(360deg); } }
@keyframes ms-float { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .ms-anim::after, .ms-glitter .ms-name { animation: none; } }

/* the editor's customizer */
.ms-style-form { margin-top: 18px; }
.ms-style-form h2 { font: 400 28px/1.1 var(--serif); margin-bottom: 4px; }
.ms-colour { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 8px 0; }
.ms-colour input[type="color"] { width: 40px; height: 28px; padding: 0; border: 1px solid var(--line-2); background: none; }
.ms-secs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-width: 420px; }
.ms-sec { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: #1a1420; cursor: grab; }
.ms-sec .ms-check { flex: 1; margin: 0; }
.ms-grip { color: var(--ink-3); letter-spacing: -2px; }
.ms-style-form textarea[name="css"] { width: 100%; font: 13px/1.5 var(--mono, ui-monospace, monospace); }
.ms-dropped { margin: 6px 0 0; padding-left: 18px; color: #ffb3a8; font-size: 13px; }
.ms-style-preview { margin: 18px 0; }
.ms-style-preview h2 { font-size: 15px; margin-bottom: 8px; }
#msStylePreview { max-height: 760px; overflow: auto; border: 1px dashed var(--line-2); border-radius: 10px; padding: 6px; }
.ms-form fieldset:has(> .ms-colour) { display: flex; flex-wrap: wrap; }
.ms-form label.ms-colour { display: inline-flex; gap: 6px; align-items: center; }
.ms-form .ms-colour input[type="color"] { width: 40px; height: 28px; padding: 0; }
.ms-form input[type="range"] { accent-color: #8d62f2; }

/* sized spots (spots.js): always their exact size */
.spot { display: block; flex: none; max-width: none; image-rendering: auto; }
.spot-blinkie, .spot-button { image-rendering: pixelated; }
.ms-stamps { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 8px; }
.ms-sec-box { display: grid; place-items: center; }
.ms-sec-sky { display: grid; place-items: center; padding: 8px 0; background: none !important; border: 0 !important; }
.fs-count { margin-left: 2px; padding: 0 6px; border-radius: 999px; font-size: 11px; background: rgba(255, 255, 255, .08); }
.fs-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.fs-pager a, .fs-pager span.fs-on { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); }
.fs-pager span.fs-on { background: #432c78; border-color: #7a55c9; color: #fff; }
.fs-pager .ms-dim { margin-left: 6px; }

/* Text Art blocks (textart.js / textart.css) */
.ta-block { border-radius: 8px; overflow: hidden; }
.ms-ta-item { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line-2); border-radius: 10px; margin-bottom: 12px; }
.ms-ta-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.ms-form .ms-ta-head label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.ms-form .ms-ta-head input[name="ta-title"] { width: 180px; }
.ms-form .ms-ta-head input[type="color"] { width: 32px; height: 24px; padding: 0; }
.ms-form .ms-ta-head input[type="range"] { width: 90px; }
.ms-form .ta-bar select, .ms-form .ta-bar input { width: auto; }

/* the affiliation's banner (spots.js "affil", 600x100), above the extended-coven line */
.ms-affil { display: grid; justify-items: center; gap: 4px; margin: 4px 0 10px; padding: 10px; border: 1px solid var(--ms-line, var(--line-2)); border-radius: 8px; background: var(--ms-panel, #1a1420); }
.ms-affil .spot-affil { max-width: 100%; height: auto; }
.ms-affil-name { margin: 0; font-size: 14px; font-weight: 600; }
.ms-ta-css summary { cursor: pointer; font-size: 13px; }
.ms-form .ms-ta-css textarea { width: 100%; font: 12px/1.5 ui-monospace, Consolas, monospace; margin-top: 6px; }
.ms-cols > * { min-width: 0; }      /* (a marquee or a wide ASCII block can't stretch a column past the page) */

/* (Nov 4) dark dropdown menus, readable rows */
select { color-scheme: dark; }
select option { background-color: #1d1420; color: #f3e3c8; }
select option:disabled { color: #8a7f8c; }

/* pixel witches (the forums' My character; nexus/forums/avatar.js): pixel-sharp at any size; her whole doll on her page */
img[src*="/api/forums/avatar/"] { image-rendering: pixelated; image-rendering: crisp-edges; }
.ms-doll { display: grid; place-items: end center; width: 180px; height: 240px; border-radius: 8px; border: 3px solid var(--ms-accent, #8d62f2);
  background: radial-gradient(ellipse 40% 5% at 50% 95%, rgba(0, 0, 0, .5), transparent 70%), radial-gradient(circle at 50% 30%, #3b2747, #120c11 75%); }
.ms-doll img { display: block; margin-bottom: 6px; }
.fs-try { margin: 4px 0; font-size: 13px; }
