/* NovelStage. The page works like the app's window: black ground, pictures edge to edge, one glass material over them.
   Colored stage lights stand behind the screenshots, as the app's own lamps do in a scene. */

:root {
    color-scheme: dark;
    --bg: #000;
    --raised: #101114;
    --ink: #f5f6f8;
    --ink-2: rgba(245, 246, 248, 0.78);
    --ink-3: rgba(245, 246, 248, 0.6);
    --line: rgba(255, 255, 255, 0.12);
    --steel: #6e8bb8;
    --steel-ink: #a9bee2;
    --steel-deep: #55729f;
    --glass: rgba(46, 48, 54, 0.56);
    --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    --gutter: clamp(16px, 4.4vw, 56px);
    --wide: 1320px;
    --read: 760px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --space: clamp(96px, 13vw, 184px);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); scrollbar-color: rgba(255, 255, 255, 0.26) #000; }

body.novelstage {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.55 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    caret-color: var(--steel-ink);
    overflow-x: clip;
}

.novelstage ::selection { background: rgba(110, 139, 184, 0.5); color: #fff; }
.novelstage a { color: var(--steel-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: rgba(169, 190, 226, 0.45); transition: text-decoration-color 150ms ease; }
.novelstage a:hover { text-decoration-color: currentColor; }
.novelstage :focus-visible { outline: 2px solid var(--steel-ink); outline-offset: 3px; border-radius: 8px; }
.novelstage img { max-width: 100%; height: auto; display: block; }
:where(.novelstage) figure { margin: 0; }
:where(.novelstage) p { margin: 0; }
:where(.novelstage) ul { margin: 0; padding: 0; list-style: none; }
:where(.novelstage) :is(h1, h2, h3) { font-family: var(--font-display); margin: 0; text-wrap: balance; color: var(--ink); }
.novelstage code, .novelstage pre { font-family: var(--font-mono); }
.novelstage button { font: inherit; color: inherit; }

.ns-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ns-skip { position: fixed; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: var(--raised); border-radius: 10px; }
.ns-skip:focus { left: 16px; }

main { overflow-x: clip; }

/* Glass, the same on every bar. */
.ns-nav, .ns-pills, .ns-menu nav {
    background: var(--glass);
    box-shadow: var(--glass-edge), 0 10px 30px -10px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
}

.novelstage .rbg-cookie-settings { font-size: 0.875rem; min-height: 34px; }

/* Toolbar */
.ns-nav {
    position: fixed; z-index: 50; top: 8px; left: 50%; transform: translateX(-50%);
    width: min(calc(100% - 16px), 1120px);
    display: flex; align-items: center; gap: 12px;
    padding: 6px 7px 6px 12px; border-radius: 999px;
}
.ns-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink) !important; text-decoration: none; font-weight: 600; font-size: 0.975rem; letter-spacing: -0.01em; margin-right: auto; }
.ns-nav-links { display: flex; align-items: center; gap: 2px; }
.ns-nav-links a { padding: 7px 12px; border-radius: 999px; color: var(--ink) !important; font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: background 160ms ease; }
.ns-nav-links a:hover { background: rgba(255, 255, 255, 0.1); }
.ns-nav-links a.is-here, .ns-nav-links a[aria-current] { background: rgba(255, 255, 255, 0.14); }
.ns-nav-cta { padding: 8px 15px; border-radius: 999px; background: var(--steel-deep); color: #fff !important; font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background 160ms ease; }
.ns-nav-cta:hover { background: var(--steel); }
.ns-menu { display: none; position: relative; }
.ns-menu summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.ns-menu summary::-webkit-details-marker { display: none; }
.ns-menu nav { position: absolute; right: 0; top: calc(100% + 12px); min-width: 210px; padding: 8px; border-radius: 20px; display: grid; }
.ns-menu nav a { padding: 10px 14px; border-radius: 12px; color: var(--ink) !important; font-weight: 500; text-decoration: none; }
.ns-menu nav a:hover { background: rgba(255, 255, 255, 0.1); }

/* Picture switches */
.ns-stage { position: relative; }
.ns-item { position: absolute; inset: 0; opacity: 0; transition: opacity 500ms ease; }
.ns-item:first-child { position: relative; }
.ns-item.is-on { opacity: 1; z-index: 1; }
.ns-pills { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ns-pills::-webkit-scrollbar { display: none; }
.ns-pills button {
    border: 0; background: none; cursor: pointer; white-space: nowrap;
    padding: 8px 16px; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: var(--ink);
    transition: background 180ms ease, color 180ms ease;
}
.ns-pills button:hover { background: rgba(255, 255, 255, 0.1); }
.ns-pills button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.92); color: #101114; }
.ns-pills button:active { transform: scale(0.97); }
.ns-note { color: var(--ink-2); font-size: 0.95rem; min-height: 1.5em; }

/* First picture */
.ns-hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.ns-hero .ns-stage { position: absolute; inset: 0; }
.ns-hero .ns-item, .ns-hero .ns-item:first-child { position: absolute; inset: 0; transition: none; }
.ns-hero .ns-item img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 40%; }
.ns-hero .ns-item.is-under { opacity: 1; z-index: 0; }
.ns-hero .ns-item.is-wiping { animation: ns-develop 450ms var(--ease) both; }
.ns-hero .ns-item:nth-child(3).is-wiping { animation-duration: 700ms; }
.ns-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background:
        linear-gradient(to top, #000 0, rgba(0, 0, 0, 0.7) 12%, transparent 34%),
        radial-gradient(70% 86% at 0% 100%, rgba(0, 0, 0, 0.9) 0, rgba(0, 0, 0, 0.72) 46%, transparent 100%);
}
@keyframes ns-develop { from { clip-path: inset(0 100% 0 0); filter: brightness(1.28); } to { clip-path: inset(0 0 0 0); filter: brightness(1); } }
.ns-hero-copy .ns-lede { max-width: 30rem; }
.ns-hero-copy { position: relative; z-index: 3; padding: 0 var(--gutter) clamp(78px, 9vh, 96px); max-width: 860px; display: grid; gap: 18px; }
.ns-hero h1 { font-size: clamp(2.9rem, 6.6vw, 5.75rem); line-height: 1; letter-spacing: -0.035em; font-weight: 700; }
.ns-lede { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.4; color: var(--ink); max-width: 36em; }
.ns-hero-views { position: absolute; z-index: 4; right: calc(var(--gutter) + 150px); bottom: 20px; left: var(--gutter); display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.ns-hero-views .ns-note { font-size: 0.875rem; text-align: right; }

.ns-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.ns-store {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px;
    background: var(--steel-deep); color: #fff !important; font-weight: 600; text-decoration: none;
    transition: background 180ms ease, transform 180ms var(--ease);
}
.ns-store:hover { background: var(--steel); }
.ns-store:active { transform: scale(0.98); }
.ns-soon { flex-basis: 100%; color: var(--ink-2); font-size: 0.95rem; }
.ns-soon strong { display: block; margin-bottom: 2px; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }

/* Chapters */
.ns-chapter { position: relative; width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; padding-top: var(--space); display: grid; gap: clamp(40px, 5vw, 72px); }
.ns-chapter-tight { padding-top: clamp(56px, 7vw, 96px); }
.ns-head { display: grid; gap: 18px; max-width: 880px; }
.ns-head h2, .ns-full-copy h2, .ns-objects-copy h2, .ns-faces h2, .ns-closing h2, .ns-faq > h2 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.03; letter-spacing: -0.032em; font-weight: 700; }
.ns-head p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.42; color: var(--ink-2); max-width: 40em; }
.ns-center { justify-items: center; text-align: center; margin-inline: auto; }

/* Stage lights behind a window */
.ns-window { position: relative; display: grid; gap: 18px; justify-items: center; }
.ns-window .ns-stage { width: 100%; z-index: 1; }
.ns-window .ns-item img { width: 100%; border-radius: clamp(10px, 1.4vw, 20px); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px #000; }
.ns-window::before, .ns-frame::before {
    content: ""; position: absolute; inset: -12% -8%; pointer-events: none;
    background:
        radial-gradient(34% 44% at 34% 42%, var(--lamp-a, rgba(226, 92, 112, 0.34)), transparent 100%),
        radial-gradient(34% 44% at 66% 58%, var(--lamp-b, rgba(92, 128, 226, 0.36)), transparent 100%);
}
/* The first window runs edge to edge, like the picture above it. */
.ns-studio { width: 100%; }
.ns-studio .ns-head { padding-inline: var(--gutter); }
.ns-studio .ns-window::before { display: none; }
.ns-studio .ns-window .ns-item img { border-radius: 0; box-shadow: none; }
.ns-window .ns-switch-bar { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; text-align: center; }
.ns-light-rose { --lamp-a: rgba(230, 106, 128, 0.32); --lamp-b: rgba(170, 110, 214, 0.3); }
.ns-light-amber { --lamp-a: rgba(226, 150, 74, 0.3); --lamp-b: rgba(216, 84, 84, 0.26); }
.ns-light-sky { --lamp-a: rgba(74, 170, 206, 0.3); --lamp-b: rgba(92, 128, 226, 0.3); }
.ns-light-violet { --lamp-a: rgba(136, 110, 226, 0.32); --lamp-b: rgba(74, 170, 206, 0.24); }

/* Short notes under a chapter: no boxes, just headings on the black. */
.ns-details { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 52px) clamp(32px, 5vw, 72px); }
.ns-details h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.012em; margin-bottom: 8px; }
.ns-details p { color: var(--ink-2); }
.ns-render .ns-details { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ns-angles { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(8px, 1vw, 14px); }
.ns-angles li { overflow: hidden; border-radius: clamp(10px, 1.2vw, 18px); }
.ns-angles li:first-child { grid-row: span 2; }
.ns-angles img { width: 100%; height: 100%; object-fit: cover; }

.ns-faces { padding-top: var(--space); }
.ns-closeup { position: relative; margin-bottom: 4px; }
.ns-closeup img { width: 100%; min-height: 520px; object-fit: cover; object-position: 66% 50%; }
.ns-closeup-copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: min(38vw, 520px); display: grid; gap: 14px; }
.ns-closeup-copy p { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.42; color: var(--ink-2); }
.ns-faces ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ns-faces li figure { position: relative; overflow: hidden; }
.ns-faces ul img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms var(--ease); }
.ns-faces li:hover img { transform: scale(1.035); }
.ns-faces li figure::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent); pointer-events: none; }
.ns-faces figcaption { position: absolute; z-index: 1; left: 14px; bottom: 12px; font-size: 0.9rem; font-weight: 500; color: #fff; }

.ns-wall { position: relative; }
.ns-wall img { width: 100%; }
.ns-wall-count img { max-width: 1120px; margin-inline: auto; }
.ns-wall-count figcaption { text-align: center; margin-top: 18px; color: var(--ink-2); font-size: 1.1rem; }
.ns-wall-count strong { color: var(--ink); font-weight: 650; }
.ns-ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(32px, 5vw, 72px); color: var(--ink-2); }
.ns-ticks li { padding-left: 18px; position: relative; }
.ns-ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); }

.ns-places {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; padding-bottom: 12px;
    width: 100vw; margin-inline: calc(50% - 50vw); padding-inline: max(var(--gutter), calc(50vw - var(--wide) / 2)); scroll-padding-inline: max(var(--gutter), calc(50vw - var(--wide) / 2));
}
.ns-places li { flex: 0 0 clamp(216px, 24vw, 320px); scroll-snap-align: start; }
.ns-places img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.ns-places figcaption { margin-top: 8px; font-size: 0.95rem; font-weight: 500; }

/* Pictures edge to edge, with copy over them */
.ns-full { position: relative; margin-top: var(--space); }
.ns-full + .ns-full { margin-top: 10px; }
.ns-switch-full .ns-item img { width: 100%; height: min(100vh, 56.25vw); min-height: 460px; object-fit: cover; }
.ns-full::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent); }
.ns-full-copy { position: absolute; z-index: 3; top: clamp(28px, 5vw, 64px); left: var(--gutter); right: var(--gutter); max-width: 620px; display: grid; gap: 12px; }
.ns-full-right .ns-full-copy { left: auto; }
.ns-full-copy p { font-size: clamp(1.02rem, 1.5vw, 1.2rem); line-height: 1.42; }
.ns-switch-full { position: relative; }
.ns-switch-full .ns-switch-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; padding: 0 16px; }
.ns-switch-full .ns-note { display: none; }

.ns-objects { position: relative; margin-top: 10px; overflow: hidden; }
.ns-objects .ns-wall img { width: 100%; min-height: 520px; object-fit: cover; }
.ns-objects::after { content: ""; position: absolute; inset: 0; background: radial-gradient(52% 58% at 50% 50%, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.5) 62%, transparent); pointer-events: none; }
.ns-objects-copy { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 0 var(--gutter); }
.ns-objects-copy p { max-width: 36em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.42; }

.ns-bleed { margin: var(--space) 0 0; }
.ns-bleed img { width: 100%; }
.ns-bleed figcaption { padding: 14px var(--gutter) 0; text-align: center; color: var(--ink-2); font-size: 0.95rem; }
.ns-street { position: relative; margin-top: clamp(56px, 7vw, 96px); }
.ns-street img { width: 100%; min-height: 460px; object-fit: cover; }
.ns-street::before { content: ""; position: absolute; inset: 0 0 auto; height: 62%; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.74), transparent); }

.ns-render { padding-top: var(--space); display: grid; gap: clamp(36px, 5vw, 64px); }
.ns-render .ns-head { padding: 0 var(--gutter); }
.ns-render-figure img { width: 100%; }
.ns-render-figure figcaption { padding: 14px var(--gutter) 0; text-align: center; color: var(--ink-2); font-size: 0.95rem; }
.ns-render .ns-chapter { padding-top: 0; }

.ns-script-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.ns-frame { position: relative; }
.ns-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.ns-code { position: relative; z-index: 1; margin: 0; padding: clamp(20px, 2.4vw, 30px); border-radius: 16px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); font-size: clamp(0.8rem, 1vw, 0.92rem); line-height: 1.65; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ns-code .k { color: #c9b6ee; }
.ns-code .s { color: var(--ink); }
.ns-code .ns-sa { color: #efab62; font-weight: 600; }
.ns-code .ns-sc { color: #7fb4e6; font-weight: 600; }
.ns-code .ns-sb { color: #a8bbd8; }
.ns-fine { color: var(--ink-3); font-size: 0.925rem; max-width: 70ch; }
.ns-center-text { text-align: center; margin-inline: auto; }

.ns-ai .ns-head { max-width: 980px; }

.ns-table-wrap { width: min(100%, 880px); margin-inline: auto; overflow-x: auto; }
.ns-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ns-table th, .ns-table td { padding: 15px 14px; text-align: left; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.ns-table thead th { font-weight: 650; font-size: 1.1rem; }
.ns-table tbody th { color: var(--ink-2); }
.ns-table td:last-child, .ns-table thead th:last-child { color: var(--ink); font-weight: 600; }

.ns-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); }
.ns-facts h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.024em; font-weight: 700; margin-bottom: 10px; }
.ns-facts p { color: var(--ink-2); }

.ns-faq-list { border-top: 1px solid var(--line); max-width: 920px; }
.ns-faq details, .ns-doc details { border-bottom: 1px solid var(--line); }
.ns-faq summary, .ns-doc details summary { position: relative; list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.ns-faq summary::-webkit-details-marker, .ns-doc details summary::-webkit-details-marker { display: none; }
.ns-faq summary::after, .ns-doc details summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 1.8px solid var(--ink-2); border-bottom: 1.8px solid var(--ink-2); transform: rotate(45deg); transition: transform 200ms var(--ease); }
.ns-faq details[open] summary::after, .ns-doc details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.ns-faq details p, .ns-doc details p { padding: 0 40px 22px 0; color: var(--ink-2); max-width: 68ch; }
.ns-doc details summary h3 { font-size: inherit; font-weight: inherit; letter-spacing: inherit; }

.ns-closing { padding: var(--space) var(--gutter); display: grid; justify-items: center; gap: 20px; text-align: center; }
.ns-closing .ns-actions { justify-content: center; text-align: center; }

.ns-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; }
.ns-footer-inner { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; }
.ns-footer-brand { display: flex; gap: 12px; align-items: center; }
.ns-footer-brand p { color: var(--ink-3); font-size: 0.925rem; }
.ns-footer-nav { display: flex; gap: clamp(40px, 7vw, 96px); }
.ns-footer-nav > div { display: grid; gap: 7px; align-content: start; }
.ns-footer-nav h2 { font-size: 0.875rem; font-weight: 650; }
.ns-footer-nav a { color: var(--ink-2); font-size: 0.925rem; text-decoration: none; }
.ns-footer-nav a:hover { color: var(--ink); }
.ns-footer small { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.82rem; max-width: 92ch; }

/* Support and privacy */
.ns-wrap { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.ns-doc { padding: 96px 0 clamp(64px, 8vw, 96px); }
.ns-doc-head { display: grid; gap: 14px; padding-top: clamp(24px, 4vw, 44px); }
.ns-doc-head h1 { font-size: clamp(2.5rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -0.032em; font-weight: 700; }
.ns-doc-head .ns-lede { color: var(--ink-2); }
.ns-updated { color: var(--ink-3); }
.ns-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--ink-3); }
.ns-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.ns-crumbs a { color: var(--ink-2); text-decoration: none; }
.ns-doc-body h2 { font-size: 1.5rem; letter-spacing: -0.018em; font-weight: 650; margin: 0 0 12px; }
.ns-doc-body section { margin-top: 48px; }
.ns-doc-body p, .ns-doc-body li { color: var(--ink-2); }
.ns-doc-body p + p { margin-top: 12px; }
.ns-doc-body ul { margin: 12px 0; padding-left: 1.2em; display: grid; gap: 6px; list-style: disc; }
.ns-doc-body li::marker { color: var(--steel); }
.ns-doc-body strong { color: var(--ink); font-weight: 600; }
.ns-panel { margin-top: 36px; padding: 24px 26px; border-radius: 20px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.ns-panel h2 { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 10px; }
.ns-panel p { color: var(--ink-2); }
.ns-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: start; }
.ns-list { margin: 14px 0 0; display: grid; gap: 8px; color: var(--ink-2); }
.ns-list li { position: relative; padding-left: 18px; }
.ns-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); }
.ns-button { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--steel-deep); color: #fff !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ns-button:hover { background: var(--steel); }
.ns-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.ns-toc a { padding: 7px 14px; border-radius: 999px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); color: var(--ink) !important; font-size: 0.9rem; font-weight: 500; text-decoration: none; }
.ns-toc a:hover { background: #1b1d22; }
.ns-faq-group { margin-top: 56px; }
.ns-faq-group > h2 { margin-bottom: 8px; }

@media (max-width: 1040px) {
    .ns-nav-links { display: none; }
    .ns-menu { display: block; }
    .ns-details, .ns-render .ns-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ns-script-grid { grid-template-columns: minmax(0, 1fr); }
    .ns-frame img { height: auto; }
}

@media (max-width: 700px) {
    :root { --space: 92px; }
    .ns-nav { padding-left: 10px; }
    .ns-hero { min-height: 640px; }
    .ns-hero .ns-item img { height: 62%; object-position: 79% 40%; }
    .ns-hero::after { background: linear-gradient(to top, #000 38%, rgba(0, 0, 0, 0.6) 46%, transparent 58%); }
    .ns-head h2, .ns-full-copy h2, .ns-objects-copy h2, .ns-faces h2, .ns-closing h2, .ns-faq > h2 { font-size: 2.2rem; }
    .ns-full-right .ns-full-copy { left: var(--gutter); }
    .ns-pills { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
    .ns-hero-views .ns-pills { -webkit-mask-image: none; mask-image: none; }
    .ns-clothes .ns-wall { overflow-x: auto; scrollbar-width: none; }
    .ns-clothes .ns-wall img { width: 240%; max-width: none; }
    .ns-wall-count img { height: 230px; width: 100%; object-fit: cover; border-radius: 12px; }
    .ns-hero-copy { padding-bottom: 76px; }
    .ns-hero-views { justify-content: flex-start; right: var(--gutter); bottom: 22px; }
    .ns-hero-views .ns-note { display: none; }
    .ns-soon { font-size: 0.9rem; }
    .ns-details, .ns-render .ns-details, .ns-ticks, .ns-facts { grid-template-columns: minmax(0, 1fr); }
    .ns-angles { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .ns-angles li:first-child { grid-row: auto; }
    .ns-faces ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ns-closeup img { min-height: 0; height: 330px; object-position: 80% 50%; }
    .ns-closeup-copy { position: static; transform: none; max-width: none; padding: 0 var(--gutter); margin-bottom: 24px; }
    .ns-closeup { display: flex; flex-direction: column-reverse; }
    .ns-pills button { padding: 8px 13px; font-size: 0.875rem; }
    .ns-switch-full .ns-item img { height: 74vh; min-height: 480px; }
    .ns-full::before { height: 72%; }
    .ns-contact { grid-template-columns: minmax(0, 1fr); }
    .ns-footer-inner { grid-template-columns: minmax(0, 1fr); }
    .ns-table th, .ns-table td { padding: 12px 8px; font-size: 0.95rem; }
}

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

/* Guides: long pages for one question. Text keeps a reading width, pictures go wider. */
.ns-guide-hero { height: min(88vh, 860px); height: min(88svh, 860px); min-height: 560px; }
.ns-guide-hero .ns-item img { object-position: var(--hero-position, 50% 50%); }
.ns-guide-hero h1, .ns-guide-top h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.03; letter-spacing: -0.032em; font-weight: 700; }
.ns-guide-hero .ns-hero-copy { padding-bottom: clamp(36px, 6vh, 64px); }
.ns-guide-hero .ns-crumbs ol { color: var(--ink-2); }
.ns-guide-top { padding-top: clamp(96px, 12vw, 136px); display: grid; gap: clamp(36px, 5vw, 56px); }
.ns-guide-top-copy { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; display: grid; gap: 18px; justify-items: center; text-align: center; }
.ns-guide-top-copy .ns-actions, .ns-guide-closing .ns-actions { justify-content: center; text-align: center; }
.ns-guide-top-copy .ns-crumbs ol { justify-content: center; }
.ns-guide-window { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.ns-guide-window img { width: 100%; border-radius: clamp(10px, 1.4vw, 20px); box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px #000; }

.ns-guide-body { width: min(100% - 2 * var(--gutter), var(--read)); margin-inline: auto; }
.ns-guide-intro { padding-top: clamp(48px, 6vw, 72px); display: grid; gap: 18px; }
.ns-answer { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45; color: var(--ink); }
.ns-byline { color: var(--ink-3); font-size: 0.925rem; }
.ns-guide-intro .ns-toc { margin-top: 6px; }
.ns-guide-section { padding-top: clamp(56px, 7vw, 88px); display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.ns-guide-section > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -0.026em; font-weight: 700; }
.ns-guide-section > p, .ns-guide-section > .ns-list { color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; }
.ns-guide-section > .ns-list { margin: 0; }
.ns-guide-section p code, .ns-guide-section td code, .ns-guide-section th code { font-size: 0.9em; padding: 1px 5px; border-radius: 5px; background: var(--raised); color: var(--ink); overflow-wrap: anywhere; }
.ns-guide-code { font-size: 0.9rem; }

/* Pictures break out of the reading column, up to the wide measure. */
.ns-guide-figure { width: min(100vw - 2 * var(--gutter), 1120px); margin: 14px 0 14px calc(50% - min(50vw - var(--gutter), 560px)); }
.ns-guide-figure > img, .ns-guide-pair img { width: 100%; border-radius: clamp(10px, 1.2vw, 16px); box-shadow: 0 0 0 1px var(--line); }
.ns-guide-figure figcaption { padding-top: 12px; text-align: center; color: var(--ink-2); font-size: 0.95rem; }
.ns-guide-figure figcaption strong { color: var(--ink); font-weight: 650; }
.ns-guide-pair > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.ns-guide-faces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 0.8vw, 10px); }
.ns-guide-faces img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.ns-guide-switch .ns-item img { border-radius: clamp(10px, 1.2vw, 16px); }
.ns-guide-section .ns-places { margin: 14px 0 14px calc(50% - 50vw); width: 100vw; }

.ns-guide-table { width: 100%; }
.ns-guide-table .ns-table { font-size: 1rem; }
.ns-guide-table .ns-table tbody th { color: var(--ink); font-weight: 600; }
.ns-guide-table .ns-table td { color: var(--ink-2); font-weight: 400 !important; }
.ns-guide-table .ns-table thead th { color: var(--ink); font-size: 1rem; }

.ns-steps { list-style: none; margin: 8px 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.ns-steps li { counter-increment: step; position: relative; padding-left: 52px; }
.ns-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 1px var(--line); color: var(--steel-ink); font-weight: 650; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.ns-steps h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.012em; margin-bottom: 4px; }
.ns-steps p { color: var(--ink-2); }

.ns-guide-cta { display: grid; gap: 12px; padding: 24px 26px; margin-top: 12px; border-radius: 20px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.ns-guide-cta > p { font-size: 1.1rem; font-weight: 550; color: var(--ink); }

/* A picture as it sits in a game. */
.ns-vn-screen { position: relative; overflow: hidden; border-radius: clamp(10px, 1.2vw, 16px); box-shadow: 0 0 0 1px var(--line); }
.ns-vn-screen img { width: 100%; }
.ns-vn-box { position: absolute; inset: auto 3% 4%; padding: clamp(10px, 1.8vw, 22px) clamp(14px, 2.4vw, 30px); display: grid; gap: 4px; border-radius: clamp(8px, 1vw, 14px); background: rgba(10, 11, 14, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-size: clamp(0.85rem, 1.6vw, 1.2rem); line-height: 1.35; color: #fff; }
.ns-vn-box strong { color: #efab62; font-weight: 650; }

/* A comic page: the render, then lettering on top. */
.ns-comic-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(6px, 1vw, 12px); max-width: 760px; margin-inline: auto; padding: clamp(10px, 1.6vw, 18px); background: #f4f1ea; border-radius: 6px; }
.ns-panel-art { position: relative; overflow: hidden; background: #000; }
.ns-panel-art.is-wide { grid-column: 1 / -1; }
.ns-panel-art img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ns-panel-art.is-wide img { aspect-ratio: 21 / 9; }
.ns-balloon { position: absolute; left: 7%; top: 8%; max-width: 62%; padding: 7px 13px; border-radius: 16px; background: #fff; color: #101114; font-size: clamp(0.72rem, 1.5vw, 0.95rem); font-weight: 600; line-height: 1.25; box-shadow: 0 0 0 1.5px #101114; }
.ns-balloon::after { content: ""; position: absolute; left: 22px; bottom: -8px; width: 13px; height: 13px; background: #fff; box-shadow: 1.5px 1.5px 0 #101114; transform: skewX(20deg) rotate(45deg); }

.ns-guide-sources ul { display: grid; gap: 6px; font-size: 0.95rem; }
.ns-guide-closing { padding-bottom: clamp(56px, 7vw, 96px); }
.ns-guide-closing .ns-lede { color: var(--ink-2); }
.ns-guide-related, .ns-guides-index { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.ns-guide-related { padding-bottom: clamp(56px, 7vw, 96px); display: grid; gap: 24px; }
.ns-guide-related h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.024em; font-weight: 700; }
.ns-guides-index { display: grid; gap: clamp(36px, 5vw, 56px); }
.ns-guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 36px) clamp(14px, 2vw, 24px); }
.ns-guide-cards a { display: grid; gap: 6px; color: var(--ink) !important; text-decoration: none; }
.ns-guide-cards img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 6px; transition: opacity 180ms ease; }
.ns-guide-cards a:hover img { opacity: 0.82; }
.ns-guide-cards strong { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.012em; }
.ns-guide-cards span { color: var(--ink-2); font-size: 0.95rem; }

@media (max-width: 700px) {
    .ns-guide-hero { height: auto; min-height: 660px; }
    .ns-guide-hero .ns-item img { height: 56%; object-position: var(--hero-position, 50% 50%); }
    .ns-guide-hero::after { background: linear-gradient(to top, #000 44%, rgba(0, 0, 0, 0.6) 50%, transparent 62%); }
    .ns-guide-cards { grid-template-columns: minmax(0, 1fr); }
    .ns-guide-faces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ns-guide-pair > div { grid-template-columns: minmax(0, 1fr); }
    .ns-vn-box { position: static; border-radius: 0; background: #14151a; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
    .ns-guide-table .ns-table th, .ns-guide-table .ns-table td { font-size: 0.9rem; }
}
