/* reverie.css: the app's look since 2026-11-07, Lucas's choice from the UI Lab
   (concept 05). It has two moods: html[data-sv-theme="reverie"] is Morning haze
   (lavender daylight) and "reverie-night" is Moonlight. The older themes are gone.

   It changes shape and type as well as colour, so it loads last.
   1. Tokens, which alone recolour every screen
   2. The legacy palette under the older panels
   3. The kit's shape: pills, round cards, soft shadows
   4. Atmosphere, top bar and the floating dock
   5. Home and the cards
   6. Wander (Discover)
   7. The Universe menu (universe.js)
   8. Motion
   9. Phones
   10. The full-screen layers: creation, loading, adventure, Settings, Creator.
       These keep their layout and take Reverie's type, colour and art.
   11. Together: the conversations and friends
   12. Pictures and tags: every adventure picture drifts, tags explain themselves,
       and touch screens (the iPhone app) lose hover leftovers
   Lines of Reverie type smaller than 11 px in the mock-up were raised to 11 px. */

/* ---- 1. tokens ---- */
html[data-sv-theme^=reverie] {
  --rv-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --rv-serif: 'Literata', "Iowan Old Style", Georgia, serif;
  --sv-font-display: var(--rv-sans);
  --sv-font-body: var(--rv-sans);
  --sv-font-mono: var(--rv-sans);
  --sv-r: 14px; --sv-r-badge: 8px; --sv-r-sm: 10px; --sv-r-md: 14px; --sv-r-card: 24px;
  --rv-r-card: 24px; --rv-r-art: 18px; --rv-r-big: 30px;
  --sv-fs-11: 11px; --sv-fs-12: 12px; --sv-fs-14: 14px; --sv-fs-17: 15px; --sv-fs-19: 19px; --sv-fs-24: 26px; --sv-fs-34: 36px; --sv-fs-46: 52px;
  --sv-ls-title: -.02em; --sv-ls-control: 0; --sv-ls-label: .14em;
  --sv-h-sm: 34px; --sv-h-md: 42px; --sv-h-lg: 50px;
  --sv-read-weight: 400;
  --sv-bottombar-h: 0px;
  /* the clouds, for layers too busy to animate them */
  --rv-atmos: radial-gradient(760px 620px at 92% -6%,color-mix(in srgb,var(--rv-cloud-1) calc(var(--rv-cloud-p) * 1%),transparent),transparent 72%),
    radial-gradient(760px 820px at -8% 34%,color-mix(in srgb,var(--rv-cloud-2) calc(var(--rv-cloud-p) * 1%),transparent),transparent 72%),
    radial-gradient(860px 760px at 106% 104%,color-mix(in srgb,var(--rv-cloud-3) calc(var(--rv-cloud-p) * 1%),transparent),transparent 72%);
}
html[data-sv-theme=reverie] {
  color-scheme: light;
  --rv-accent: #9270bf; --rv-accent-soft: #e9ddf6; --rv-warm: #d8a1bc; --rv-peach: #f3ddcf; --rv-glass: rgba(255,250,254,.85); --rv-cloud-1: #d5bbf1; --rv-cloud-2: #f3ceba; --rv-cloud-3: #c2d6df; --rv-cloud-o: .36; --rv-cloud-p: 42;
  --dice-color: #9770c4;
  --sv-bg: #f5f1fa; --sv-violet-ground: #efe7f7;
  --sv-panel: rgba(255,250,254,.86); --sv-panel-strong: rgba(255,250,254,.95); --sv-panel-soft: rgba(255,250,254,.7);
  --sv-line: #ddd1e9; --sv-line-soft: rgba(146,112,191,.16); --sv-line-2: #ddd1e9; --sv-line-strong: rgba(146,112,191,.38); --sv-line-hover: rgba(146,112,191,.8); --sv-fill-hover: rgba(146,112,191,.1);
  --sv-violet: #7d5bad; --sv-violet-bright: #6c4a9c; --sv-violet-deep: #5a3b86;
  --sv-text: #3c304e; --sv-text-soft: #4b3e5e; --sv-text-muted: #6b5e7b; --sv-text-dim: #786b88; --sv-placeholder: #93849f; --sv-plum-solid: #fffafe;
  --sv-accent-rgb: 146,112,191; --sv-glow-rgb: 125,91,173; --sv-deep-rgb: 146,112,191; --sv-plum-rgb: 255,250,254; --sv-ground-rgb: 245,241,250; --sv-night-rgb: 255,250,254; --sv-night2-rgb: 250,246,252;
  --sv-on-primary: #fffafe;
  --sv-tint-lav: #786b88; --sv-tint-lav2: #6b5e7b; --sv-tint-lav3: #7d5bad; --sv-tint-lav4: #4b3e5e; --sv-tint-lav5: #4b3e5e; --sv-tint-lav6: #3c304e; --sv-tint-violet: #7d5bad; --sv-tint-slate: #c9bcd6;
  --sv-tint-night: #fffafe; --sv-tint-night2: #faf6fc; --sv-tint-plum: #f7f1fb; --sv-tint-plum2: #f5effa; --sv-tint-plum3: #f3edf8; --sv-tint-plum4: #f1ebf7;
  --sv-tint-royal-rgb: 233,221,246; --sv-tint-abyss-rgb: 240,234,247; --sv-tint-indigo-rgb: 233,221,246; --sv-tint-abyss2-rgb: 245,241,250; --sv-tint-dusk-rgb: 238,231,245;
  --sv-grad-primary: linear-gradient(180deg,#9c7cc8,#8664b6); --sv-grad-badge: linear-gradient(180deg,#9c7cc8,#8664b6);
  --sv-grad-sheen: linear-gradient(180deg,#3c304e,#3c304e); --sv-card-inset: none;
  --sv-glow-primary: 0 6px 20px rgba(146,112,191,.2); --sv-glow-focus: 0 0 0 3px rgba(146,112,191,.28); --sv-shadow-pop: 0 24px 70px rgba(80,55,97,.16);
  --sv-rim: rgba(146,112,191,.55);
  --sv-surface-primary: var(--sv-grad-primary); --sv-surface-control: rgba(255,250,254,.75); --sv-surface-card: rgba(255,250,254,.86); --sv-surface-overlay: rgba(255,250,254,.96); --sv-surface-field: rgba(255,255,255,.66);
  --sv-text-headline: linear-gradient(#3c304e,#3c304e);
  --sv-e-button: none; --sv-e-primary: 0 6px 20px rgba(146,112,191,.24); --sv-e-raised: 0 6px 25px rgba(122,90,147,.07); --sv-e-overlay: 0 24px 90px rgba(53,35,67,.14), 0 4px 20px rgba(53,35,67,.05);
  --sv-e-pressed: inset 0 1px 3px rgba(60,48,78,.12); --sv-e-selected: 0 10px 34px rgba(146,112,191,.2); --sv-e-glow: 0 0 22px rgba(146,112,191,.3); --sv-e-glow-hot: 0 0 34px rgba(146,112,191,.45);
  --sv-focus: 2px solid #9270bf;
}
html[data-sv-theme=reverie-night] {
  color-scheme: dark;
  --rv-accent: #ccb0ec; --rv-accent-soft: #49365e; --rv-warm: #c4a3d8; --rv-peach: #634751; --rv-glass: rgba(48,40,61,.86); --rv-cloud-1: #8a6bb0; --rv-cloud-2: #8a5a6c; --rv-cloud-3: #4e6a80; --rv-cloud-o: .14; --rv-cloud-p: 16;
  --dice-color: #d0b1f4;
  --sv-bg: #211c2c; --sv-violet-ground: #2a2338;
  --sv-panel: rgba(48,40,61,.86); --sv-panel-strong: rgba(48,40,61,.96); --sv-panel-soft: rgba(48,40,61,.7);
  --sv-line: #4c3e5d; --sv-line-soft: rgba(204,176,236,.13); --sv-line-2: #4c3e5d; --sv-line-strong: rgba(204,176,236,.32); --sv-line-hover: rgba(204,176,236,.75); --sv-fill-hover: rgba(204,176,236,.1);
  --sv-violet: #ccb0ec; --sv-violet-bright: #dcc6f5; --sv-violet-deep: #8a68b8;
  --sv-text: #f2eafa; --sv-text-soft: #e2d7ee; --sv-text-muted: #baabc9; --sv-text-dim: #a494b6; --sv-placeholder: #8a7a9c; --sv-plum-solid: #30283d;
  --sv-accent-rgb: 204,176,236; --sv-glow-rgb: 204,176,236; --sv-deep-rgb: 138,104,184; --sv-plum-rgb: 48,40,61; --sv-ground-rgb: 33,28,44; --sv-night-rgb: 48,40,61; --sv-night2-rgb: 41,34,54;
  --sv-on-primary: #211c2c;
  --sv-tint-lav: #a494b6; --sv-tint-lav2: #baabc9; --sv-tint-lav3: #ccb0ec; --sv-tint-lav4: #e2d7ee; --sv-tint-lav5: #e2d7ee; --sv-tint-lav6: #f2eafa; --sv-tint-violet: #ccb0ec; --sv-tint-slate: #5a4b6d;
  --sv-tint-night: #30283d; --sv-tint-night2: #2c2438; --sv-tint-plum: #2a2336; --sv-tint-plum2: #282134; --sv-tint-plum3: #262032; --sv-tint-plum4: #241e30;
  --sv-tint-royal-rgb: 73,54,94; --sv-tint-abyss-rgb: 28,23,38; --sv-tint-indigo-rgb: 60,48,73; --sv-tint-abyss2-rgb: 26,21,35; --sv-tint-dusk-rgb: 36,30,48;
  --sv-grad-primary: linear-gradient(180deg,#d8c0f2,#bfa0e4); --sv-grad-badge: linear-gradient(180deg,#d8c0f2,#bfa0e4);
  --sv-grad-sheen: linear-gradient(180deg,#f2eafa,#f2eafa); --sv-card-inset: none;
  --sv-glow-primary: 0 6px 20px rgba(9,5,12,.3); --sv-glow-focus: 0 0 0 3px rgba(204,176,236,.3); --sv-shadow-pop: 0 24px 70px rgba(9,5,12,.45);
  --sv-rim: rgba(204,176,236,.5);
  --sv-surface-primary: var(--sv-grad-primary); --sv-surface-control: rgba(60,48,73,.7); --sv-surface-card: rgba(48,40,61,.86); --sv-surface-overlay: rgba(48,40,61,.97); --sv-surface-field: rgba(33,28,44,.6);
  --sv-text-headline: linear-gradient(#f2eafa,#f2eafa);
  --sv-e-button: none; --sv-e-primary: 0 6px 20px rgba(9,5,12,.3); --sv-e-raised: 0 8px 30px rgba(9,5,12,.2); --sv-e-overlay: 0 24px 90px rgba(9,5,12,.5);
  --sv-e-pressed: inset 0 1px 3px rgba(9,5,12,.4); --sv-e-selected: 0 10px 34px rgba(204,176,236,.14); --sv-e-glow: 0 0 22px rgba(204,176,236,.3); --sv-e-glow-hot: 0 0 34px rgba(204,176,236,.45);
  --sv-focus: 2px solid #ccb0ec;
}

/* ---- 2. legacy palette (account, file, confirm, cost and settings panels) ---- */
html[data-sv-theme=reverie][data-theme] {
  --bg: #f5f1fa; --panel: #fffafe; --panel-2: #f7f1fb; --panel-3: #eee7f5; --story-bg: #fffafe;
  --border: #ddd1e9; --border-strong: rgba(146,112,191,.38);
  --text: #3c304e; --text-dim: #6b5e7b; --text-faint: #786b88; --accent: #7d5bad; --accent-hover: #6c4a9c;
}
html[data-sv-theme=reverie-night][data-theme] {
  --bg: #211c2c; --panel: #30283d; --panel-2: #3c3049; --panel-3: #463856; --story-bg: #262032;
  --border: #4c3e5d; --border-strong: rgba(204,176,236,.32);
  --text: #f2eafa; --text-dim: #baabc9; --text-faint: #a494b6; --accent: #ccb0ec; --accent-hover: #dcc6f5;
}
html[data-sv-theme^=reverie], html[data-sv-theme^=reverie] body { background: var(--sv-bg); }
/* styles.css names the old typefaces outright, and on a real phone it forces them
   onto every control that is not a kit one (html[data-platform]). */
html[data-sv-theme^=reverie] body,
html[data-sv-theme^=reverie][data-platform] :is(button, input, textarea, select):where(:not([class^="sv"], [class*=" sv"], .svc-field)),
html[data-sv-theme^=reverie] :is(.folder-header, .folder-children.empty-folder, .file-entry, .file-entry .name, .story-header h1, .send-btn, .roll-btn, .mode-btn, .scale-opt, .cm-eyebrow, .cm-title, .cm-chip, .cm-tname, .cm-leg) { font-family: var(--sv-font-body); }

/* ---- 3. the kit's shape ---- */
html[data-sv-theme^=reverie] .sv-icon { stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }
html[data-sv-theme^=reverie] .sv-title-1 { background: none; color: var(--sv-text); -webkit-text-fill-color: currentColor; filter: none; font-weight: 400; line-height: 1.14; letter-spacing: -.035em; }
html[data-sv-theme^=reverie] .sv-title-1 em, .rv-section__h em { font-family: var(--rv-serif); font-style: italic; font-weight: 450; color: var(--rv-accent); letter-spacing: -.02em; }
html[data-sv-theme^=reverie] .sv-title-2, html[data-sv-theme^=reverie] .sv-title-3, html[data-sv-theme^=reverie] .sv-modal__title { font-weight: 500; letter-spacing: -.02em; }
html[data-sv-theme^=reverie] .sv-eyebrow, html[data-sv-theme^=reverie] .sv-label { font-weight: 600; font-size: var(--sv-fs-11); text-transform: uppercase; }
html[data-sv-theme^=reverie] .sv-text--italic { font-style: normal; }
html[data-sv-theme^=reverie] .sv-data { font-variant-numeric: tabular-nums; }
html[data-sv-theme^=reverie] .sv-btn, html[data-sv-theme^=reverie] .sv-chip, html[data-sv-theme^=reverie] .sv-seg { border-radius: var(--sv-r-pill); }
html[data-sv-theme^=reverie] .sv-btn { font-weight: 500; }
html[data-sv-theme^=reverie] .sv-btn--primary { text-shadow: none; border-color: transparent; }
html[data-sv-theme^=reverie] .sv-btn--primary:hover { filter: brightness(1.05); border-color: transparent; }
html[data-sv-theme^=reverie] .sv-chip { height: 34px; padding: 0 15px; font-weight: 500; background: var(--sv-surface-control); }
html[data-sv-theme^=reverie] .sv-chip[aria-pressed="true"], html[data-sv-theme^=reverie] .sv-chip.is-selected { background: var(--rv-accent-soft); border-color: transparent; color: var(--sv-violet-bright); }
html[data-sv-theme^=reverie] .sv-seg__btn:first-child { border-radius: var(--sv-r-pill) 0 0 var(--sv-r-pill); }
html[data-sv-theme^=reverie] .sv-seg__btn:last-child { border-radius: 0 var(--sv-r-pill) var(--sv-r-pill) 0; }
html[data-sv-theme^=reverie] .sv-seg__btn[aria-pressed="true"] { background: var(--rv-accent-soft); box-shadow: none; }
html[data-sv-theme^=reverie] .sv-tab { font-weight: 500; }
html[data-sv-theme^=reverie] .sv-toggle { border-radius: var(--sv-r-pill); }
html[data-sv-theme^=reverie] .sv-toggle::after { border-radius: 50%; }
html[data-sv-theme^=reverie] .sv-toggle[aria-checked="true"]::after { background: var(--sv-on-primary); }
html[data-sv-theme^=reverie] .sv-card, html[data-sv-theme^=reverie] .sv-panel { border-radius: var(--rv-r-card); }
html[data-sv-theme^=reverie] .sv-modal__panel, html[data-sv-theme^=reverie] .modal-content { border-radius: 26px; }
html[data-sv-theme^=reverie] .sv-menu { border-radius: 18px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
html[data-sv-theme^=reverie] .sv-toast { border-radius: var(--sv-r-pill); }
html[data-sv-theme^=reverie] .sv-notice { border-left-width: 1px; border-radius: 18px; }
html[data-sv-theme^=reverie] .sv-badge { height: 22px; padding: 0 8px; font-weight: 600; color: var(--sv-on-primary); }
html[data-sv-theme^=reverie] .sv-badge--line { color: var(--sv-text-muted); background: var(--rv-glass); }
html[data-sv-theme^=reverie] .sv-input, html[data-sv-theme^=reverie] .sv-select, html[data-sv-theme^=reverie] .sv-textarea { border-radius: 13px; }
html[data-sv-theme^=reverie] .sv-section-head__link { color: var(--sv-violet); font-weight: 500; }
html[data-sv-theme^=reverie] .sv-dot { border-color: var(--sv-bg); }
html[data-sv-theme^=reverie] constellation-sky { display: none; }

/* ---- 4. atmosphere, top bar and dock ---- */
html[data-sv-theme^=reverie] #sv-home .svh-root { background: var(--sv-bg); }
html[data-sv-theme^=reverie] #sv-home .svh-vignette { background: none; overflow: hidden; }
html[data-sv-theme^=reverie] #sv-home .svh-vignette::before,
html[data-sv-theme^=reverie] #sv-home .svh-vignette::after,
html[data-sv-theme^=reverie] #sv-home .svh-root::before { content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: var(--rv-cloud-o); pointer-events: none; }
html[data-sv-theme^=reverie] #sv-home .svh-vignette::before { top: -160px; right: -110px; width: 650px; height: 650px; background: var(--rv-cloud-1); animation: rv-cloud 24s ease-in-out infinite alternate; }
html[data-sv-theme^=reverie] #sv-home .svh-vignette::after { top: 140px; left: -350px; width: 700px; height: 800px; background: var(--rv-cloud-2); animation: rv-cloud-alt 31s ease-in-out -11s infinite alternate; }
html[data-sv-theme^=reverie] #sv-home .svh-root::before { bottom: -420px; right: -300px; width: 800px; height: 800px; background: var(--rv-cloud-3); animation: rv-cloud 37s ease-in-out -18s infinite alternate; }
html[data-sv-theme^=reverie] #sv-home .svh-main { height: 100% !important; }

html[data-sv-theme^=reverie] #sv-home .svh-topbar { --svh-bar-h: calc(96px + env(safe-area-inset-top, 0px)); background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; gap: 10px; padding: env(safe-area-inset-top, 0px) max(5%, env(safe-area-inset-right, 0px), calc((100% - 1320px) / 2)) 0 max(5%, env(safe-area-inset-left, 0px), calc((100% - 1320px) / 2)); }
html[data-sv-theme^=reverie] .svh-die { width: 48px; height: 48px; border-radius: 50%; transition: background var(--sv-t2) var(--sv-ease); }
html[data-sv-theme^=reverie] .svh-die:hover { background: var(--rv-accent-soft); }
.svh-die wire-d20 { display: block; width: 48px; height: 48px; pointer-events: none; }
html.rvu-is-open .svh-die wire-d20 { visibility: hidden; }
html[data-sv-theme^=reverie] .svh-wordmark { height: auto; color: var(--sv-text); font-size: 27px; font-weight: 650; letter-spacing: -.055em; line-height: 1.1; text-align: left; text-transform: lowercase; }
html[data-sv-theme^=reverie] .sva-wordmark { font-size: 21px; font-weight: 650; letter-spacing: -.05em; text-transform: lowercase; color: var(--sv-text); }
html[data-sv-theme^=reverie] .svh-wordmark small { display: block; margin-top: 4px; font-size: var(--sv-fs-11); font-weight: 400; letter-spacing: .01em; color: var(--sv-text-muted); line-height: 1.2; }
html[data-sv-theme^=reverie] .svh-ink { background: var(--rv-glass); border-color: transparent; color: var(--sv-violet); gap: 6px; }
html[data-sv-theme^=reverie] .svh-bell, html[data-sv-theme^=reverie] .rv-moonbtn { background: none; border-color: transparent; color: var(--sv-text-muted); border-radius: 50%; }
html[data-sv-theme^=reverie] .svh-bell:hover, html[data-sv-theme^=reverie] .rv-moonbtn:hover { background: var(--rv-accent-soft); color: var(--sv-violet); border-color: transparent; }
html[data-sv-theme^=reverie] .svh-popover { top: 84px; }

/* the floating dock: at every width */
html[data-sv-theme^=reverie] #sv-home .svh-bottom { display: flex !important; left: 50%; right: auto; bottom: calc(22px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 24px); height: auto; gap: 5px; padding: 8px; transform: translateX(-50%); justify-content: center;
  border: 1px solid var(--sv-line); border-radius: 50px; background: var(--rv-glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 15px 50px rgba(80,55,97,.16); }
html[data-sv-theme^=reverie] #sv-home .svh-bottom__item { flex: 0 0 auto; max-width: none; flex-direction: row; gap: 8px; padding: 12px 20px; border-radius: 30px; color: var(--sv-text-muted); transition: background var(--sv-t1) var(--sv-ease), color var(--sv-t1) var(--sv-ease), translate var(--sv-t1) var(--sv-ease); }
html[data-sv-theme^=reverie] #sv-home .svh-bottom__item .sv-label { font-size: var(--sv-fs-12); font-weight: 500; letter-spacing: 0; text-transform: none; }
html[data-sv-theme^=reverie] #sv-home .svh-bottom__item:hover { background: var(--sv-fill-hover); translate: 0 -2px; }
html[data-sv-theme^=reverie] #sv-home .svh-bottom__item.is-selected { background: var(--rv-accent-soft); color: var(--sv-violet); }
html[data-sv-theme^=reverie] #sv-home .svh-bottom__item.is-selected::before { display: none; }

/* ---- 5. home and cards ---- */
html[data-sv-theme^=reverie] .svh-pane { padding: 8px max(5%, env(safe-area-inset-right, 0px), calc((100% - 1320px) / 2)) 130px max(5%, env(safe-area-inset-left, 0px), calc((100% - 1320px) / 2)); overflow-x: clip; }
.rv-over { display: flex; align-items: center; gap: 8px; color: var(--sv-text-muted); }
.rv-over i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--rv-accent); }
.rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 0 26px; }
.rv-head__copy .sv-title-1 { margin: 14px 0 12px; }
.rv-arrive { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 22px; align-items: stretch; }
.rv-feature { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 460px; padding: 0; overflow: hidden; border: 0; border-radius: var(--rv-r-big); background: #43334e; color: #fff5ff; cursor: pointer; text-align: left; box-shadow: var(--sv-e-raised); }
.rv-feature__art { position: absolute; inset: -32px; z-index: -2; transform: translate3d(var(--parallax-pointer-x,0),calc(var(--parallax-y,0px) + var(--parallax-pointer-y,0px)),0) scale(1.06); will-change: transform; }
.rv-feature__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.rv-feature__wash { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,rgba(38,24,48,.8),rgba(38,24,48,.34) 34%,rgba(38,24,48,0) 58%); }
.rv-feature__title, .rv-feature__last { text-shadow: 0 1px 12px rgba(30,18,40,.45); }
.rv-pill { position: absolute; top: 22px; left: 22px; padding: 8px 14px; border: 1px solid rgba(255,247,255,.32); border-radius: 25px; background: rgba(30,20,40,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff7ff; font-size: var(--sv-fs-11); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.rv-feature__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; padding: 28px 30px 28px; }
.rv-feature__turn { font-size: var(--sv-fs-11); letter-spacing: .12em; text-transform: uppercase; color: #eadff2; }
.rv-feature__title { margin: 0; font-size: 34px; font-weight: 450; letter-spacing: -.03em; line-height: 1.15; }
.rv-feature__last { margin: 0; max-width: 620px; font-size: var(--sv-fs-14); line-height: 1.6; color: #efe4f4; }
html[data-sv-theme^=reverie] .rv-feature .sv-badge--line { background: rgba(30,20,40,.45); border-color: rgba(255,247,255,.3); color: #fff5ff; }
html[data-sv-theme^=reverie] .rv-feature__go { margin-top: 6px; background: #fffafe; color: #4b3e5e; border-color: transparent; }
html[data-sv-theme^=reverie] .rv-feature__go:hover { color: #3c304e; background: #fff; border-color: transparent; }
.rv-feature--first { min-height: 360px; align-items: center; justify-content: center; background: linear-gradient(120deg,var(--rv-accent-soft),var(--rv-peach)); color: var(--sv-text); }
.rv-feature--wait { background: var(--rv-accent-soft); cursor: default; box-shadow: none; }
.rv-feature--first .rv-feature__copy { align-items: center; text-align: center; }
.rv-feature--first .rv-feature__last { color: var(--sv-text-muted); }
.rv-side { display: flex; flex-direction: column; gap: 16px; }
html[data-sv-theme^=reverie] .rv-invite { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 22px; text-align: center; }
.rv-invite wire-d20 { width: 96px; height: 96px; }
.rv-invite .sv-eyebrow { color: var(--sv-text-muted); }
.rv-serif-h { margin: 0; font-family: var(--rv-serif); font-size: 22px; font-weight: 450; letter-spacing: -.02em; line-height: 1.3; color: var(--sv-text); }
.rv-invite .sv-text { margin: 0; line-height: 1.6; }
html[data-sv-theme^=reverie] .rv-keep { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border: 0; text-align: left; cursor: pointer; color: var(--sv-text); background: linear-gradient(110deg,var(--rv-accent-soft),var(--rv-peach)); }
.rv-keep__h { font-size: var(--sv-fs-14); font-weight: 600; }
.rv-keep__b { font-size: var(--sv-fs-12); color: var(--sv-text-muted); }
.rv-section { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 52px 0 22px; }
.rv-section__h { margin: 10px 0 0; font-size: 30px; font-weight: 450; letter-spacing: -.03em; line-height: 1.3; color: var(--sv-text); }
.rv-doors { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 34px; }
html[data-sv-theme^=reverie] .rv-door { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: var(--sv-text); text-align: left; cursor: pointer; transition: translate var(--sv-t2) var(--sv-ease), box-shadow var(--sv-t2) var(--sv-ease); }
html[data-sv-theme^=reverie] .rv-door:hover { translate: 0 -3px; box-shadow: var(--sv-e-selected); }
.rv-door__mark { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--rv-accent-soft); color: var(--sv-violet); }
.rv-door__copy { flex: 1; min-width: 0; }
.rv-door__copy strong { display: block; font-size: var(--sv-fs-14); font-weight: 600; }
.rv-door__copy small { display: block; margin-top: 3px; font-size: var(--sv-fs-12); color: var(--sv-text-muted); }
.rv-door > .sv-icon { color: var(--sv-violet); }

/* a room: the picture in its own rounded frame, the words under it */
html[data-sv-theme^=reverie] .svh-grid, html[data-sv-theme^=reverie] .svh-library__grid { gap: 24px; grid-template-columns: repeat(auto-fill,minmax(min(280px,100%),1fr)); }
html[data-sv-theme^=reverie] #sv-home .svh-tale, html[data-sv-theme^=reverie] #sv-home .svh-libcard, html[data-sv-theme^=reverie] #sv-home .svh-dcard { display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; padding: 0; overflow: hidden; position: relative; overflow: visible; border-radius: var(--rv-r-card); background: var(--rv-glass); border: 1px solid var(--sv-line); box-shadow: var(--sv-e-raised); transition: translate var(--sv-t3) var(--sv-ease), box-shadow var(--sv-t3) var(--sv-ease), scale var(--sv-t2) var(--sv-ease); }
html[data-sv-theme^=reverie] #sv-home .svh-tale:hover, html[data-sv-theme^=reverie] #sv-home .svh-libcard:hover, html[data-sv-theme^=reverie] #sv-home .svh-dcard:hover { translate: 0 -5px; box-shadow: 0 22px 50px rgba(122,90,147,.15); }
html[data-sv-theme^=reverie] #sv-home .svh-tale__art, html[data-sv-theme^=reverie] #sv-home .svh-dcard__art, html[data-sv-theme^=reverie] #sv-home .svh-libcard__img, html[data-sv-theme^=reverie] #sv-home .svh-libcard .sv-art-edit { position: relative; inset: auto; flex: none; display: grid; place-items: center; width: calc(100% - 16px); height: 260px; margin: 8px 8px 0; overflow: hidden; border-radius: var(--rv-r-art); background: var(--sv-tint-plum3); }
html[data-sv-theme^=reverie] #sv-home .svh-libcard__img { display: block; object-fit: cover; object-position: center 25%; }
.svh-libcard__frame { display: block; overflow: hidden; }
.svh-libcard__frame > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
html[data-sv-theme^=reverie] #sv-home .svh-libcard .sv-art-edit img, html[data-sv-theme^=reverie] #sv-home .svh-tale__img, html[data-sv-theme^=reverie] #sv-home .svh-dcard__img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: scale .6s var(--sv-ease); }
html[data-sv-theme^=reverie] #sv-home :is(.svh-tale, .svh-dcard, .svh-libcard):hover img[data-parallax] { scale: 1.04; }
html[data-sv-theme^=reverie] #sv-home .svh-tale .svh-card__body, html[data-sv-theme^=reverie] #sv-home .svh-libcard .svh-card__body, html[data-sv-theme^=reverie] #sv-home .svh-dcard .svh-card__body { flex: 1; padding: 18px 20px 18px; background: none; }
html[data-sv-theme^=reverie] .svh-tale .svh-title, html[data-sv-theme^=reverie] .svh-libcard .svh-title { text-shadow: none; }
html[data-sv-theme^=reverie] .svh-title { min-height: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
html[data-sv-theme^=reverie] .svh-desc, html[data-sv-theme^=reverie] .svh-card__body .sv-text { font-size: 13px; line-height: 1.6; }
html[data-sv-theme^=reverie] .svh-meta { color: var(--sv-text-muted); letter-spacing: .06em; }
html[data-sv-theme^=reverie] .svh-go { color: var(--sv-violet); letter-spacing: 0; text-transform: none; }
html[data-sv-theme^=reverie] #sv-home .svh-tale__play { top: auto; left: auto; right: 10px; bottom: 10px; width: 40px; height: 40px; transform: none; background: var(--rv-glass); border-color: transparent; color: var(--sv-violet); }
html[data-sv-theme^=reverie] #sv-home .svh-tale__play:hover { scale: 1.08; }
html[data-sv-theme^=reverie] #sv-home .svh-tale__play:active { scale: .94; }
html[data-sv-theme^=reverie] .svh-tale__edit { background: var(--rv-glass); border-color: transparent; }
html[data-sv-theme^=reverie] .svh-tale__sealed { background: var(--rv-glass); }
html[data-sv-theme^=reverie] .sv-card--new { border-radius: var(--rv-r-card); background: none; font-weight: 500; }
html[data-sv-theme^=reverie] .sv-card--new .sv-card__mark { border: 0; border-radius: 14px; background: var(--rv-accent-soft); }
html[data-sv-theme^=reverie] .svh-sky path { stroke: rgba(var(--sv-glow-rgb),.5); }
html[data-sv-theme^=reverie] .svh-library__head { padding-top: 24px; margin-bottom: 26px; }
html[data-sv-theme^=reverie] .svh-library__head .sv-title-1, html[data-sv-theme^=reverie] .svh-page-head .sv-title-1 { font-size: 44px; }
html[data-sv-theme^=reverie] .svh-lead { margin: 4px 0 0; }
html[data-sv-theme^=reverie] .svh-browse__find .sv-input { height: 46px; padding: 0 18px 0 42px; border-radius: 24px; background: var(--rv-glass); }
html[data-sv-theme^=reverie] .svh-browse__letter { color: var(--sv-violet); }

/* ---- 6. wander ---- */
.rv-arrival { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; min-height: 560px; gap: 10px; padding: 8px 0 34px; }
.rv-intro { position: relative; z-index: 2; }
.rv-intro .sv-title-1 { margin: 20px 0; font-size: clamp(40px,4.8vw,66px); }
.rv-intro .sv-text { margin: 0; line-height: 1.8; }
.rv-arrival__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
.rv-soft { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--sv-text-muted); font: inherit; font-size: var(--sv-fs-12); cursor: pointer; }
.rv-soft:hover { color: var(--sv-violet); }
.rv-constellation { position: relative; height: 520px; min-width: 0; }
.rv-orbit { position: absolute; inset: 50px -20px 35px; border: 1px dashed var(--sv-line); border-radius: 50%; rotate: 0deg; transform: rotate(-22deg); pointer-events: none; animation: rv-spin 42s linear infinite; }
.rv-orbit::before { content: ""; position: absolute; top: 48%; left: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--rv-accent); opacity: .45; }
.rv-orbit--two { inset: 85px -34px 65px; border-style: solid; opacity: .4; transform: rotate(27deg); animation-duration: 57s; animation-direction: reverse; }
.rv-sparks { position: absolute; inset: -30px; pointer-events: none; transform: translate3d(var(--parallax-pointer-x,0),calc(var(--parallax-y,0px) + var(--parallax-pointer-y,0px)),0); }
.rv-sparks i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--rv-accent); opacity: .23; animation: rv-spark 13s ease-in-out infinite; }
.rv-sparks i:nth-child(1) { left: 9%; top: 17%; animation-delay: -2s; }
.rv-sparks i:nth-child(2) { right: 3%; top: 21%; width: 6px; height: 6px; animation-duration: 17s; animation-delay: -7s; }
.rv-sparks i:nth-child(3) { left: 5%; bottom: 10%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: -4s; }
.rv-sparks i:nth-child(4) { right: 18%; bottom: 3%; width: 5px; height: 5px; animation-duration: 19s; animation-delay: -11s; }
.rv-sparks i:nth-child(5) { left: 48%; top: 3%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: -8s; }
.rv-sparks i:nth-child(6) { right: 2%; top: 48%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: -1s; }
.rv-moon { position: absolute; z-index: 5; padding: 7px 13px; border: 1px solid var(--sv-line); border-radius: 20px; background: var(--rv-glass); color: var(--sv-text-muted); font-size: var(--sv-fs-11); box-shadow: var(--sv-e-raised); animation: rv-float 11s ease-in-out infinite; }
.rv-moon--one { top: 78px; left: 0; transform: rotate(-9deg); }
.rv-moon--two { bottom: 2px; right: 17%; transform: rotate(5deg); animation-duration: 14s; animation-delay: -6s; }
#sv-home a.rv-window { position: absolute; display: block; width: 225px; height: 285px; padding: 0; border: 6px solid var(--sv-plum-solid); border-radius: 80px 80px 22px 22px; background: var(--sv-plum-solid); box-shadow: 0 24px 50px rgba(104,73,129,.16); color: #fff7ff; animation: rv-bob 7.8s ease-in-out infinite; transition: box-shadow var(--sv-t3) var(--sv-ease), scale .35s var(--sv-ease), filter var(--sv-t3) var(--sv-ease); }
#sv-home a.rv-window--1 { left: 24%; top: 10px; width: 238px; height: 315px; z-index: 3; transform: rotate(3deg); animation-duration: 9.7s; animation-delay: -5.8s; --rv-dx: 3px; --rv-dy: 13px; --rv-da: 1.4deg; }
#sv-home a.rv-window--2 { left: -5%; top: 142px; width: 180px; height: 238px; z-index: 2; transform: rotate(-9deg); animation-duration: 8.6s; animation-delay: -2.2s; --rv-dx: -5px; --rv-dy: -16px; --rv-da: -1.7deg; }
#sv-home a.rv-window--3 { right: -1%; top: 220px; width: 188px; height: 250px; z-index: 4; transform: rotate(9deg); animation-duration: 7.9s; animation-delay: -1.1s; --rv-dx: 6px; --rv-dy: -12px; --rv-da: 1.8deg; }
#sv-home a.rv-window:hover, #sv-home a.rv-window:focus-visible { animation-play-state: paused; scale: 1.035; filter: brightness(1.055); box-shadow: 0 34px 65px rgba(104,73,129,.24); color: #fff7ff; }
.rv-window__art { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 74px 74px 16px 16px; background: linear-gradient(160deg,#5a4674,#3a2c50); }
.rv-window__depth { position: absolute; inset: -60px; display: grid; place-items: center; transform: translate3d(var(--parallax-pointer-x,0),calc(var(--parallax-y,0px) + var(--parallax-pointer-y,0px)),0) scale(1.1); will-change: transform; }
.rv-window__depth img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.rv-window__tint { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(37,26,56,.8),rgba(37,26,56,.2) 38%,transparent 56%); }
.rv-window__copy { position: absolute; left: 15px; right: 15px; bottom: 20px; display: block; transition: translate var(--sv-t3) var(--sv-ease); }
.rv-window:hover .rv-window__copy { translate: 0 -3px; }
.rv-window__copy small { display: block; margin-bottom: 7px; font-size: var(--sv-fs-11); letter-spacing: .06em; text-transform: uppercase; color: #e4d7ef; }
.rv-window__copy strong { display: block; padding-right: 16px; font-size: 17px; font-weight: 500; letter-spacing: -.02em; line-height: 1.22; }
.rv-window__copy .sv-icon { position: absolute; right: 0; bottom: 1px; }
.rv-chance { position: absolute; left: 15%; bottom: 10px; z-index: 6; display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--sv-text-muted); }
.rv-chance wire-d20 { width: 105px; height: 105px; }
.rv-chance > span { width: 110px; font: italic 13px/1.5 var(--rv-serif); text-align: left; transform: rotate(-7deg); }
.rv-return { display: flex; align-items: center; gap: 20px; padding: 16px 24px 16px 16px; border: 1px solid var(--sv-line); border-radius: 23px; background: var(--rv-glass); box-shadow: var(--sv-e-raised); cursor: pointer; }
.rv-return__art { flex: none; width: 68px; height: 76px; overflow: hidden; border-radius: 15px; background: var(--rv-accent-soft); }
.rv-return__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.rv-return__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rv-return__copy strong { font-size: 20px; font-weight: 500; letter-spacing: -.02em; color: var(--sv-text); }
.rv-return__copy small { font-size: var(--sv-fs-12); color: var(--sv-text-muted); }

/* ---- 7. the Universe menu ---- */
#rv-universe { position: fixed; inset: 0; z-index: var(--sv-z-drawer); pointer-events: none; --rvu-energy: 0; color: var(--sv-text); font-family: var(--sv-font-body); }
#rv-universe[hidden] { display: none; }
.rvu-connections { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.rvu-mist { position: fixed; inset: 0; background: radial-gradient(ellipse at 62% 50%,rgba(186,162,211,.16),transparent 40%), linear-gradient(90deg,rgba(183,162,201,.14),transparent 65%); opacity: 0; transition: opacity .65s; pointer-events: none; }
.rvu-open .rvu-mist { opacity: 1; }
.rvu-menu { position: fixed; z-index: 3; display: flex; flex-direction: column; overflow: hidden; pointer-events: none; border: 1px solid color-mix(in srgb,var(--rv-accent) 20%,transparent); border-radius: 26px; background: var(--sv-surface-overlay); backdrop-filter: blur(30px) saturate(1.12); -webkit-backdrop-filter: blur(30px) saturate(1.12); box-shadow: var(--sv-e-overlay); opacity: 0; transform: translate3d(-24px,12px,0) scale(.975); transform-origin: top left; transition: opacity .3s, transform .65s cubic-bezier(.2,.8,.2,1); }
.rvu-open .rvu-menu { opacity: 1; transform: none; pointer-events: auto; }
.rvu-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex: none; padding: 26px 26px 18px; }
.rvu-eyebrow { font-size: var(--sv-fs-11); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sv-violet); }
.rvu-heading h2 { margin: 12px 0 8px; font-family: var(--rv-serif); font-size: 34px; font-weight: 430; letter-spacing: -.03em; line-height: 1.2; }
.rvu-heading h2 em { color: var(--rv-accent); font-weight: 430; }
.rvu-heading p { margin: 0; max-width: 245px; font-size: 13px; line-height: 1.6; color: var(--sv-text-muted); }
.rvu-close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-top: 3px; padding: 0; border: 0; border-radius: 50%; background: var(--rv-accent-soft); color: var(--sv-violet); cursor: pointer; }
.rvu-ways { flex: 1 1 auto; min-height: 0; padding: 2px 12px 34px 16px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: color-mix(in srgb,var(--rv-accent) 34%,transparent) transparent;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 30px),transparent); mask-image: linear-gradient(#000 calc(100% - 30px),transparent); }
.rvu-group { margin-top: 14px; }
.rvu-group__label { margin: 0 0 6px; padding: 0 11px; font-size: var(--sv-fs-11); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sv-text-muted); }
.rvu-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding: 0 4px; }
.rvu-tools button { min-height: 32px; padding: 0 13px; border: 1px solid var(--sv-line); border-radius: var(--sv-r-pill); background: var(--sv-surface-control); color: var(--sv-text-soft); font: inherit; font-size: var(--sv-fs-12); font-weight: 500; cursor: pointer; transition: background var(--sv-t2) var(--sv-ease), color var(--sv-t2) var(--sv-ease); }
.rvu-tools button:hover { background: var(--rv-accent-soft); color: var(--sv-violet-bright); }
.rvu-ink { padding: 14px; border: 1px solid color-mix(in srgb,var(--rv-accent) 14%,transparent); border-radius: 17px; background: linear-gradient(110deg,var(--rv-accent-soft),var(--rv-peach)); }
.rvu-ink__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rvu-ink__head strong { font-size: 22px; font-weight: 550; letter-spacing: -.02em; color: var(--sv-violet-bright); font-variant-numeric: tabular-nums; }
.rvu-ink__head small { margin-left: 6px; font-size: var(--sv-fs-12); color: var(--sv-text-muted); font-variant-numeric: tabular-nums; }
.rvu-ink__scale { font-size: var(--sv-fs-11); color: var(--sv-text-muted); }
.rvu-ink__meter { position: relative; height: 26px; margin-top: 10px; overflow: hidden; border-radius: 13px; background: var(--sv-surface-field); }
.rvu-ink__meter i { position: absolute; inset: 0 auto 0 0; width: var(--rvu-fill,0%); border-radius: inherit; background: var(--sv-grad-primary); }
.rvu-ink__meter span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: var(--sv-fs-11); font-weight: 600; color: var(--sv-on-primary); mix-blend-mode: normal; }
.rvu-ink__ticks { display: flex; justify-content: space-between; margin-top: 4px; font-size: var(--sv-fs-11); color: var(--sv-text-muted); font-variant-numeric: tabular-nums; }
.rvu-ink__go { display: flex; gap: 8px; margin-top: 12px; }
.rvu-ink__go button { flex: 1; min-height: 36px; padding: 0 12px; border: 1px solid var(--sv-line); border-radius: var(--sv-r-pill); background: var(--sv-surface-control); color: var(--sv-text-soft); font: inherit; font-size: var(--sv-fs-12); font-weight: 500; cursor: pointer; }
.rvu-ink__go button.is-primary { border-color: transparent; background: var(--sv-grad-primary); color: var(--sv-on-primary); }
.rvu-continue { position: relative; display: flex; align-items: center; gap: 15px; width: 100%; padding: 14px; border: 1px solid color-mix(in srgb,var(--rv-accent) 14%,transparent); border-radius: 17px; background: var(--rv-accent-soft); color: var(--sv-text); text-align: left; cursor: pointer; font: inherit; transition: background var(--sv-t2) var(--sv-ease), translate var(--sv-t2) var(--sv-ease); }
.rvu-continue:hover { translate: 2px 0; }
.rvu-continue img, .rvu-first-room { flex: 0 0 64px; width: 64px; height: 82px; border-radius: 11px; object-fit: cover; object-position: center 30%; }
.rvu-first-room { display: grid; place-items: center; background: var(--sv-surface-card); color: var(--sv-violet); }
.rvu-continue-copy { min-width: 0; }
.rvu-continue small { display: block; margin-bottom: 7px; font-size: var(--sv-fs-11); letter-spacing: .08em; text-transform: uppercase; color: var(--sv-violet); }
.rvu-continue strong { display: block; font-family: var(--rv-serif); font-size: 20px; font-weight: 480; letter-spacing: -.02em; line-height: 1.25; }
.rvu-continue em { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-style: normal; font-size: var(--sv-fs-12); color: var(--sv-violet); }
.rvu-way-list { display: grid; gap: 2px; }
.rvu-way { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; padding: 12px 11px; border: 0; border-radius: 14px; background: transparent; color: var(--sv-text); text-align: left; cursor: pointer; font: inherit; transition: background var(--sv-t2) var(--sv-ease), translate var(--sv-t2) var(--sv-ease); }
.rvu-way:hover, .rvu-way:focus-visible { background: var(--rv-accent-soft); translate: 3px 0; }
.rvu-way-icon { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--sv-line); border-radius: 12px; background: var(--sv-surface-card); color: var(--sv-violet); }
.rvu-way--plain { padding-top: 7px; padding-bottom: 7px; }
.rvu-way--plain .rvu-way-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 11px; }
.rvu-way.is-current { background: var(--rv-accent-soft); }
.rvu-way.is-current strong { color: var(--sv-violet-bright); }
.rvu-way-meta { flex: none; font-size: var(--sv-fs-11); color: var(--sv-text-muted); }
.rvu-way-copy { flex: 1; min-width: 0; }
.rvu-way strong { display: block; font-size: var(--sv-fs-14); font-weight: 550; line-height: 1.4; }
.rvu-way small { display: block; margin-top: 2px; font-size: var(--sv-fs-12); line-height: 1.4; color: var(--sv-text-muted); }
.rvu-way > .sv-icon { color: var(--sv-violet); opacity: 0; translate: -5px 0; transition: opacity var(--sv-t2) var(--sv-ease), translate var(--sv-t2) var(--sv-ease); }
.rvu-way:hover > .sv-icon, .rvu-way:focus-visible > .sv-icon { opacity: 1; translate: 0 0; }
#rv-universe button:focus-visible { outline: var(--sv-focus); outline-offset: 3px; }
.rvu-flying-die { position: fixed; left: 0; top: 0; z-index: 4; width: 132px; height: 132px; padding: 0; border: 0; border-radius: 50%; background: transparent; pointer-events: auto; cursor: pointer; transform-origin: top left; transition: transform .9s cubic-bezier(.22,.8,.18,1); will-change: transform; }
.rvu-flying-die.rvu-no-flight { transition: none !important; }
.rvu-die { position: relative; z-index: 2; display: block; width: 132px; height: 132px; pointer-events: none; }
.rvu-halo { position: absolute; inset: -24px; border-radius: 50%; background: radial-gradient(circle,color-mix(in srgb,var(--rv-accent) 17%,transparent),transparent 66%); filter: blur(7px); opacity: 0; transition: opacity .7s; }
.rvu-open .rvu-halo { opacity: calc(.7 + var(--rvu-energy) * .3); }
.rvu-orbit { position: absolute; inset: -18px; border: 1px solid color-mix(in srgb,var(--rv-accent) 28%,transparent); border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .7s; }
.rvu-orbit::after { content: ""; position: absolute; left: 12%; top: 12%; width: 4px; height: 4px; border-radius: 50%; background: var(--rv-accent); }
.rvu-open .rvu-orbit { opacity: .8; }
.rvu-orbit-one { animation: rvu-orbit-one 14s linear infinite; }
.rvu-orbit-two { inset: -31px; border-style: dashed; border-color: color-mix(in srgb,var(--rv-accent) 17%,transparent); animation: rvu-orbit-two 23s linear infinite; }
.rvu-orbit-three { inset: -11px; border-color: color-mix(in srgb,var(--rv-accent) 16%,transparent); animation: rvu-orbit-three 18s linear infinite; }
.rvu-die-label { position: absolute; top: calc(100% + 34px); left: 50%; width: 150px; transform: translateX(-50%); font-size: 8px; letter-spacing: .18em; line-height: 1.5; text-align: center; text-transform: uppercase; color: var(--sv-text-muted); opacity: 0; pointer-events: none; transition: opacity .6s .3s; }
.rvu-open .rvu-die-label { opacity: .85; }
.rvu-closing .rvu-flying-die { transition-duration: .7s; }
.rvu-closing .rvu-orbit, .rvu-closing .rvu-halo, .rvu-closing .rvu-die-label { opacity: 0; transition-duration: .2s; transition-delay: 0s; }
.rvu-compact .rvu-menu { border-radius: 22px; }
.rvu-compact .rvu-heading { padding: 20px 16px 14px; gap: 6px; }
.rvu-compact .rvu-heading h2 { font-size: 28px; }
.rvu-compact .rvu-ways { padding: 2px 8px 30px 10px; }
.rvu-compact .rvu-continue { padding: 11px; gap: 11px; }
.rvu-compact .rvu-continue img, .rvu-compact .rvu-first-room { flex-basis: 44px; width: 44px; height: 66px; border-radius: 9px; }
.rvu-compact .rvu-continue strong { font-size: 17px; }
.rvu-compact .rvu-way { padding: 11px 8px; gap: 10px; }
.rvu-compact .rvu-way-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
.rvu-compact .rvu-way > .sv-icon { display: none; }
.rvu-compact .rvu-die-label { display: none; }
.rvu-compact .rvu-orbit-two { inset: -21px; }
.rvu-compact .rvu-orbit-one { inset: -12px; }
@media (max-height: 580px) {
  #rv-universe .rvu-menu { display: block; overflow-y: auto; overscroll-behavior: contain; }
  #rv-universe .rvu-ways { overflow: visible; }
  #rv-universe .rvu-heading { padding: 14px 18px 10px; align-items: center; }
  #rv-universe .rvu-heading h2 { margin: 0; font-size: 25px; }
  #rv-universe .rvu-heading p, #rv-universe .rvu-eyebrow { display: none; }
}

/* ---- 8. motion ---- */
@keyframes rv-cloud { from { translate: -15px -15px; scale: .96; } to { translate: 45px 36px; scale: 1.1; } }
@keyframes rv-cloud-alt { from { translate: 20px 15px; scale: 1.05; } to { translate: -35px 50px; scale: .93; } }
@keyframes rv-bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: var(--rv-dx,3px) var(--rv-dy,-12px); rotate: var(--rv-da,1deg); } }
@keyframes rv-float { 0%, 100% { translate: 0 0; } 50% { translate: 2px -10px; } }
@keyframes rv-spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@keyframes rv-spark { 0%, 100% { translate: 0 0; opacity: .18; } 50% { translate: 5px -19px; opacity: .38; } }
@keyframes rv-arrive { from { opacity: 0; translate: 0 13px; } to { opacity: 1; translate: 0 0; } }
@keyframes rvu-orbit-one { from { transform: rotate(-25deg) rotateX(62deg) rotateZ(0); } to { transform: rotate(-25deg) rotateX(62deg) rotateZ(360deg); } }
@keyframes rvu-orbit-two { from { transform: rotate(43deg) rotateX(65deg) rotateZ(0); } to { transform: rotate(43deg) rotateX(65deg) rotateZ(-360deg); } }
@keyframes rvu-orbit-three { from { transform: rotate(105deg) rotateX(73deg) rotateZ(0); } to { transform: rotate(105deg) rotateX(73deg) rotateZ(360deg); } }
.rv-head__copy > *, .rv-intro > *, .rv-return { animation: rv-arrive .85s cubic-bezier(.2,.65,.3,1) backwards; }
.rv-head__copy > :nth-child(2), .rv-intro > :nth-child(2) { animation-delay: .07s; }
.rv-head__copy > :nth-child(3), .rv-intro > :nth-child(3) { animation-delay: .14s; }
.rv-intro > :nth-child(4) { animation-delay: .21s; }
.rv-return { animation-delay: .27s; }
@media (hover: none) { #sv-home a.rv-window:hover { scale: 1; } html[data-sv-theme^=reverie] #sv-home .svh-tale:hover, html[data-sv-theme^=reverie] #sv-home .svh-libcard:hover, html[data-sv-theme^=reverie] #sv-home .svh-dcard:hover { translate: none; } }
@media (prefers-reduced-motion: reduce) {
  html[data-sv-theme^=reverie] #sv-home *, html[data-sv-theme^=reverie] #sv-home *::before, html[data-sv-theme^=reverie] #sv-home *::after, #rv-universe * { animation: none !important; transition: none !important; }
}
html[data-reduce-motion][data-sv-theme^=reverie] #sv-home *, html[data-reduce-motion][data-sv-theme^=reverie] #sv-home *::before, html[data-reduce-motion][data-sv-theme^=reverie] #sv-home *::after, html[data-reduce-motion] #rv-universe * { animation: none !important; transition: none !important; }

/* ---- 9. phones and narrow windows ---- */
@media (max-width: 1100px) {
  .rv-arrival { grid-template-columns: .85fr 1.15fr; min-height: 500px; }
  .rv-constellation { height: 450px; }
  #sv-home a.rv-window--1 { left: 26%; top: 15px; width: 190px; height: 275px; }
  #sv-home a.rv-window--2 { left: 0; top: 140px; width: 145px; height: 205px; }
  #sv-home a.rv-window--3 { right: -1%; top: 210px; width: 155px; height: 215px; }
  .rv-moon--two { display: none; }
  .rv-arrive { grid-template-columns: minmax(0,1fr) 240px; }
  .rv-doors { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .rv-arrive { grid-template-columns: 1fr; }
  .rv-side { flex-direction: row; }
  html[data-sv-theme^=reverie] .rv-invite { flex: 1 1 60%; }
  html[data-sv-theme^=reverie] .rv-keep { flex: 1 1 40%; justify-content: center; }
  .rv-arrival { grid-template-columns: 1fr; gap: 0; }
  .rv-intro { text-align: center; }
  .rv-intro .rv-over { justify-content: center; }
  .rv-arrival__actions { align-items: center; }
  .rv-constellation { width: 470px; max-width: 100%; height: 445px; margin: 28px auto 5px; }
  #sv-home a.rv-window--1 { left: 27%; top: 0; width: 200px; height: 275px; }
  #sv-home a.rv-window--2 { left: 0; top: 95px; width: 155px; height: 220px; }
  #sv-home a.rv-window--3 { right: 0; top: 190px; width: 160px; height: 220px; }
  .rv-chance { left: 12%; bottom: 0; }
}
@media (max-width: 720px) {
  html[data-sv-theme^=reverie] #sv-home .svh-topbar { min-height: 68px; gap: 2px !important; padding: env(safe-area-inset-top) max(5%, env(safe-area-inset-right, 0px)) 0 max(5%, env(safe-area-inset-left, 0px)) !important; border-bottom: 0; }
  html[data-sv-theme^=reverie] .svh-die, .svh-die wire-d20 { width: 38px; height: 38px; }
  html[data-sv-theme^=reverie] #sv-home .m-topbar .m-word { display: inline-flex !important; font-size: 21px; }
  html[data-sv-theme^=reverie] #sv-home .svh-ink { height: 34px; padding: 0 10px; }
  html[data-sv-theme^=reverie] #sv-home .svh-bell, html[data-sv-theme^=reverie] #sv-home .rv-moonbtn { width: 34px; height: 34px; }
  html[data-sv-theme^=reverie] .svh-wordmark small { display: none; }
  html[data-sv-theme^=reverie] .svh-pane { padding: 4px max(5%, env(safe-area-inset-right, 0px)) calc(118px + env(safe-area-inset-bottom, 0px)) max(5%, env(safe-area-inset-left, 0px)); }
  html[data-sv-theme^=reverie] .svh-popover { top: 64px; }
  .rv-head { padding: 12px 0 20px; }
  .rv-head .sv-btn { width: 100%; }
  html[data-sv-theme^=reverie] .sv-title-1 { font-size: 36px; }
  html[data-sv-theme^=reverie] .svh-library__head .sv-title-1, html[data-sv-theme^=reverie] .svh-page-head .sv-title-1 { font-size: 32px; }
  .rv-feature { min-height: 400px; border-radius: 24px; }
  .rv-feature__copy { padding: 20px 20px 22px; }
  .rv-feature__title { font-size: 28px; }
  .rv-section { align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 40px; }
  .rv-section__h { font-size: 25px; }
  .rv-return { gap: 12px; padding: 12px; }
  .rv-return__art { width: 48px; height: 60px; border-radius: 12px; }
  .rv-return__copy strong { font-size: 16px; }
  .rv-return .sv-btn span { display: none; }
  .rv-return .sv-btn { width: var(--sv-h-md); padding: 0; }
  /* cards: two rooms a row, as in the mock-up */
  html[data-sv-theme^=reverie] .svh-grid, html[data-sv-theme^=reverie] .svh-library__grid { display: grid; gap: 13px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[data-sv-theme^=reverie] .svh-row { grid-auto-flow: row; margin: 0; padding: 0; overflow: visible; }
  html[data-sv-theme^=reverie] #sv-home .svh-tale, html[data-sv-theme^=reverie] #sv-home .svh-libcard, html[data-sv-theme^=reverie] #sv-home .svh-dcard { display: flex; border-radius: 18px; }
  html[data-sv-theme^=reverie] #sv-home .svh-tale__art, html[data-sv-theme^=reverie] #sv-home .svh-dcard__art, html[data-sv-theme^=reverie] #sv-home .svh-libcard__img, html[data-sv-theme^=reverie] #sv-home .svh-libcard .sv-art-edit { width: calc(100% - 10px); height: auto; aspect-ratio: 4 / 5; margin: 5px 5px 0; border-radius: 13px; }
  html[data-sv-theme^=reverie] #sv-home .svh-tale .svh-card__body, html[data-sv-theme^=reverie] #sv-home .svh-libcard .svh-card__body, html[data-sv-theme^=reverie] #sv-home .svh-dcard .svh-card__body { padding: 11px 11px 12px; }
  html[data-sv-theme^=reverie] .svh-title { font-size: 16px; }
  html[data-sv-theme^=reverie] .svh-desc, html[data-sv-theme^=reverie] .svh-card__body .sv-text { font-size: 12px; line-height: 1.5; }
  html[data-sv-theme^=reverie] #sv-home .svh-tale__play { right: 7px; bottom: 7px; width: 34px; height: 34px; }
  html[data-sv-theme^=reverie] .svh-libcard__actions .sv-btn span { display: none; }
  html[data-sv-theme^=reverie] .svh-libcard__actions .sv-btn { width: var(--sv-h-sm); padding: 0; }
  html[data-sv-theme^=reverie] #sv-home .svh-bottom { width: min(365px, calc(100vw - 20px)); justify-content: space-around; gap: 2px; padding: 7px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  html[data-sv-theme^=reverie] #sv-home .svh-bottom__item { flex: 1 1 0; min-width: 0; height: auto; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 2px; }
  html[data-sv-theme^=reverie] #sv-home .svh-bottom__item .sv-icon { width: 20px; height: 20px; }
  html[data-sv-theme^=reverie] #sv-home .svh-bottom__item .sv-label { font-size: var(--sv-fs-11); }
}
@media (max-width: 360px) {
  html[data-sv-theme^=reverie] #sv-home .rv-moonbtn { display: none; }
}
@media (max-width: 520px) {
  .rv-constellation { width: 320px; height: 350px; margin-top: 32px; }
  .rv-orbit { inset: 40px -10px 30px; }
  .rv-orbit--two { inset: 65px -18px 42px; }
  #sv-home a.rv-window { border-width: 4px; }
  #sv-home a.rv-window--1 { left: 25%; top: 0; width: 154px; height: 217px; border-radius: 63px 63px 18px 18px; }
  #sv-home a.rv-window--2 { left: -2%; top: 82px; width: 118px; height: 165px; border-radius: 55px 55px 17px 17px; }
  #sv-home a.rv-window--3 { right: -1%; top: 159px; width: 123px; height: 171px; border-radius: 55px 55px 17px 17px; }
  .rv-window__art { border-radius: 58px 58px 13px 13px; }
  .rv-window__copy { left: 10px; right: 10px; bottom: 12px; }
  .rv-window__copy small { display: none; }
  .rv-window__copy strong { font-size: 12px; }
  .rv-moon--one { left: -1%; top: 34px; }
  .rv-chance { left: 6%; bottom: -3px; gap: 0; }
  .rv-chance wire-d20 { width: 83px; height: 83px; }
  .rv-chance > span { font-size: 11px; width: 90px; }
  .rv-side { flex-direction: column; }
}

/* the phone layer's own colours (mobile.css), which assume a black ground */
@media (max-width: 720px) {
  html[data-sv-theme^=reverie]:root { --sv-m-title: var(--rv-sans); --sv-r: 14px; --sv-ls-title: -.02em; }
  html[data-sv-theme=reverie]:root { --sv-m-fill: rgba(255,250,254,.82); --sv-m-fill-2: rgba(146,112,191,.11); --sv-m-sep: rgba(146,112,191,.16); --sv-m-label: #6b5e7b; --sv-m-label-3: #786b88; --sv-m-bar: rgba(255,250,254,.88); }
  html[data-sv-theme=reverie-night]:root { --sv-m-fill: rgba(48,40,61,.82); --sv-m-fill-2: rgba(204,176,236,.12); --sv-m-sep: rgba(204,176,236,.14); --sv-m-label: #baabc9; --sv-m-label-3: #a494b6; --sv-m-bar: rgba(48,40,61,.9); }
  html[data-sv-theme^=reverie] .sv-title-1 { font-family: var(--rv-sans); }
  html[data-sv-theme^=reverie] .sv-btn { border-radius: var(--sv-r-pill); }
  html[data-sv-theme^=reverie] .sv-btn--primary, html[data-sv-theme^=reverie] .sv-btn--primary:hover { background: var(--sv-grad-primary); color: var(--sv-on-primary); }
  html[data-sv-theme^=reverie] .sv-btn--primary .sv-icon { color: var(--sv-on-primary); }
  html[data-sv-theme^=reverie] .sv-card, html[data-sv-theme^=reverie] .sv-panel { border-radius: 20px; }
  html[data-sv-theme^=reverie] .sv-chip.is-selected, html[data-sv-theme^=reverie] .sv-chip[aria-pressed="true"] { background: var(--rv-accent-soft); color: var(--sv-violet-bright); }
  html[data-sv-theme^=reverie] .svl-settings__tabs .sv-tab[aria-selected="true"], html[data-sv-theme^=reverie] .svl-settings__tabs .sv-tab[aria-selected="true"] .sv-icon { background: var(--rv-accent-soft); color: var(--sv-violet-bright); }
  html[data-sv-theme^=reverie] input.sv-toggle:checked { background: var(--rv-accent); }
  html[data-sv-theme^=reverie] :focus-visible { outline-color: var(--rv-accent) !important; }
  html[data-sv-theme^=reverie] #sv-home .svh-well__gauge { background: var(--sv-m-fill-2); }
  html[data-sv-theme^=reverie] #app-view.sv-adventure #input-box:focus { background-color: var(--sv-m-fill); }
}

/* ---- 10. the full-screen layers ---- */
html[data-sv-theme^=reverie] .svc-sky, html[data-sv-theme^=reverie] #hub-hero-screen .svc-sky constellation-sky, html[data-sv-theme^=reverie] .sv-adventure-sky { display: none; }
html[data-sv-theme^=reverie] #hub-hero-screen, html[data-sv-theme^=reverie] .loading, html[data-sv-theme^=reverie] #app-view.sv-adventure, html[data-sv-theme^=reverie] #set-panel, html[data-sv-theme^=reverie] .cr-shell { background: var(--rv-atmos), var(--sv-bg); }

/* creation: the die stays in the middle, drawn as Reverie's wireframe */
html[data-sv-theme^=reverie] #hub-hero-screen .hh-dicebox { width: min(170px, 44vw); }
html[data-sv-theme^=reverie] #hub-hero-screen .hh-ring-fill { stroke: var(--rv-accent); stroke-linecap: round; }
html[data-sv-theme^=reverie] #hub-hero-screen .svc-question { font-size: 28px; font-weight: 430; letter-spacing: -.02em; }
html[data-sv-theme^=reverie] #hub-hero-screen .svc-option { padding: 18px 44px 18px 20px; border-radius: 20px; background: var(--rv-glass); transition: translate var(--sv-t2) var(--sv-ease), box-shadow var(--sv-t2) var(--sv-ease); }
html[data-sv-theme^=reverie] #hub-hero-screen .svc-option:hover:not(:disabled) { translate: 0 -2px; box-shadow: var(--sv-e-selected); }
html[data-sv-theme^=reverie] #hub-hero-screen .svc-option__title { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
html[data-sv-theme^=reverie] #hub-hero-screen .svc-option__desc { font-style: normal; font-size: 13px; line-height: 1.55; }
html[data-sv-theme^=reverie] #hub-hero-screen .hh-hint { font-family: var(--rv-serif); }
html[data-sv-theme^=reverie] #hub-hero-screen .svc-tagpanel { border-radius: 20px; }
html[data-sv-theme^=reverie] #hub-hero-screen input.svc-field { border-radius: var(--sv-r-pill); background: var(--rv-glass); }
html[data-sv-theme^=reverie] #hub-hero-screen textarea.svc-field { border-radius: 20px; background: var(--rv-glass); }

/* loading */
html[data-sv-theme^=reverie] #loading .lo-panel { border-radius: 22px; background: var(--rv-glass); }
html[data-sv-theme^=reverie] #loading .lo-eyebrow { font-weight: 500; letter-spacing: -.01em; }
html[data-sv-theme^=reverie] #loading .lo-r-fill { stroke: var(--rv-accent); stroke-linecap: round; }
html[data-sv-theme^=reverie] #loading .lo-right { font-style: normal; }
html[data-sv-theme^=reverie] #loading .lo-status { font-family: var(--rv-serif); font-style: italic; }

/* the adventure: same columns, softer rooms */
html[data-sv-theme^=reverie] #app-view.sv-adventure::after { display: none; }
html[data-sv-theme^=reverie] #app-view.sv-adventure .topbar { background: none; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-sv-theme^=reverie] #app-view.sv-adventure .sv-adventure-brand { font-family: var(--rv-sans); font-size: 21px; font-weight: 650; letter-spacing: -.05em; text-transform: lowercase; }
html[data-sv-theme^=reverie] #app-view.sv-adventure #adventure-title { font-weight: 500; letter-spacing: -.01em; }
html[data-sv-theme^=reverie] #app-view.sv-adventure .sva-title-wrap { border-left-color: var(--sv-line); }
html[data-sv-theme^=reverie] #app-view.sv-adventure .sv-account-chip { border-radius: 50%; background: var(--rv-accent-soft); color: var(--sv-violet-bright); }
html[data-sv-theme^=reverie] #app-view.sv-adventure .tale-panel, html[data-sv-theme^=reverie] #app-view.sv-adventure #ledger-panel { border-radius: 28px; background: var(--rv-glass); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); box-shadow: var(--sv-shadow-pop); }
html[data-sv-theme^=reverie] #app-view.sv-adventure .sva-context__track { height: 3px; border-radius: 3px; }
html[data-sv-theme^=reverie] #app-view.sv-adventure .tale-panel .panel-h { border-bottom-color: var(--sv-line-soft); }
html[data-sv-theme^=reverie] #app-view.sv-adventure .tale-panel .panel-h .t { color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] #app-view.sv-adventure #story-log .turn.assistant, html[data-sv-theme^=reverie] #app-view.sv-adventure #story-log .narr { font-weight: var(--read-weight,400); }
html[data-sv-theme^=reverie] #app-view.sv-adventure #story-log .turn.user { border-radius: 17px; background: var(--sv-fill-hover); }
html[data-sv-theme^=reverie] #app-view.sv-adventure .sv-tale-tools { border-top-color: var(--sv-line-soft); }
html[data-sv-theme^=reverie] #app-view.sv-adventure .roll-card { border-radius: 18px; }
html[data-sv-theme^=reverie] #app-view.sv-adventure #input-box { border-radius: 22px; }
html[data-sv-theme^=reverie] #app-view.sv-adventure .sva-hero__avatar { border-radius: 14px; }
html[data-sv-theme^=reverie] .sv-hint { font-style: normal; }

/* the memory graph is drawn for a dark ground, so in both moods it is a window
   onto Moonlight rather than a daylight page */
html[data-sv-theme^=reverie] .lm-root[data-lm-theme="violet"] { --lm-bg: #211c2c; --lm-text: #f2eafa; --lm-muted: #baabc9; --lm-dim: #a494b6; --lm-accent: #ccb0ec; --lm-highlight: #dcc6f5; --lm-accent-deep: #8a68b8; --lm-accent-rgb: 204,176,236; --lm-highlight-rgb: 220,198,245; --lm-line: rgba(204,176,236,.2); --lm-line-strong: rgba(204,176,236,.4); --lm-bar-bg: rgba(38,32,50,.94); --lm-card-bg: rgba(48,40,61,.97); --lm-input-bg: rgba(33,28,44,.7);
  --lm-serif: var(--rv-serif); --lm-display: var(--rv-sans); --lm-mono: var(--rv-sans); scrollbar-color: rgba(204,176,236,.3) #211c2c; }
html[data-sv-theme^=reverie] .lm-root[data-lm-theme="violet"] .lm-stage { background: radial-gradient(ellipse at 50% 65%,#3a2f4c 0%,#2a2338 55%,#211c2c 100%); }
html[data-sv-theme^=reverie] .lm-root[data-lm-theme="violet"] .lm-legend { background: rgba(38,32,50,.88); }
html[data-sv-theme^=reverie] .lm-root[data-lm-theme="violet"] .lm-card, html[data-sv-theme^=reverie] .lm-root[data-lm-theme="violet"] .lm-status { border-radius: 18px; box-shadow: 0 20px 60px rgba(9,5,12,.45); }

/* Settings and the Creator */
html[data-sv-theme^=reverie] .svl-settings__rail .sv-tab[aria-selected="true"], html[data-sv-theme^=reverie] .svl-settings__rail .sv-tab.is-selected { box-shadow: none; }

/* ---- 11. together ---- */
.rv-social .rv-head { padding-bottom: 22px; }
.rv-social-actions { flex-wrap: wrap; gap: 10px; }
/* the card is a block on the page, so the page scrolls past it to clear the dock.
   No backdrop-filter here: it would capture the fixed New circle dialog inside. */
html[data-sv-theme^=reverie] #sv-home .sv-ib { flex: none; height: clamp(460px, calc(100vh - 236px), 780px); grid-template-columns: 320px minmax(0,1fr); overflow: hidden; border: 1px solid var(--sv-line); border-radius: 28px; background: var(--rv-glass); box-shadow: var(--sv-shadow-pop); }
.rv-social-guest { flex: none; min-height: 380px; border: 1px solid var(--sv-line); border-radius: 28px; background: var(--rv-glass); box-shadow: var(--sv-e-raised); }
html[data-sv-theme^=reverie] .sv-ib .rv-door__mark { margin-bottom: 4px; }
html[data-sv-theme^=reverie] .sv-ib-list { background: none; border-right-color: var(--sv-line-soft); }
html[data-sv-theme^=reverie] .sv-ib-head { gap: 12px; padding: 16px 14px 10px; }
html[data-sv-theme^=reverie] .sv-ib-add { gap: 6px; }
html[data-sv-theme^=reverie] .sv-ib-add .sv-input { border-radius: var(--sv-r-pill); padding: 0 16px; }
html[data-sv-theme^=reverie] .sv-ib-tabs { align-items: center; gap: 4px; border-bottom: 0; }
html[data-sv-theme^=reverie] .sv-ib-tabs .sv-tab { height: 36px; padding: 0 14px; border-radius: var(--sv-r-pill); font-size: 13px; color: var(--sv-text-muted); box-shadow: none; transition: background var(--sv-t2) var(--sv-ease), color var(--sv-t2) var(--sv-ease); }
html[data-sv-theme^=reverie] .sv-ib-tabs .sv-tab:hover { background: var(--sv-fill-hover); }
html[data-sv-theme^=reverie] .sv-ib-tabs .sv-tab[aria-selected="true"] { background: var(--sv-grad-primary); color: var(--sv-on-primary); }
html[data-sv-theme^=reverie] .sv-ib-tabs .sv-tab__count { min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--rv-accent-soft); color: var(--sv-violet-bright); font-size: var(--sv-fs-11); }
.sv-ib-tabs .sv-ib-n { flex: none; margin-left: auto; padding-right: 4px; font-size: var(--sv-fs-11); color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] .sv-ib-find .sv-input { height: 42px; padding: 0 40px 0 16px; border-radius: var(--sv-r-pill); font-size: 13px; }
html[data-sv-theme^=reverie] .sv-ib-find .sv-icon { right: 14px; }
html[data-sv-theme^=reverie] .sv-ib-scroll { padding: 0 10px 12px; }
html[data-sv-theme^=reverie] .sv-ib-sec { padding: 12px 8px 6px; }
html[data-sv-theme^=reverie] .sv-ib-row { min-height: 66px; margin-bottom: 2px; padding: 10px; gap: 12px; border: 0; border-radius: 16px; background: none; transition: background var(--sv-t1) var(--sv-ease); }
html[data-sv-theme^=reverie] .sv-ib-row:hover, html[data-sv-theme^=reverie] .sv-ib-row:focus-within { background: var(--sv-fill-hover); }
html[data-sv-theme^=reverie] .sv-ib-row.is-selected { background: var(--rv-accent-soft); }
html[data-sv-theme^=reverie] .sv-ib-row.is-selected::before { display: none; }
html[data-sv-theme^=reverie] .sv-ib-req { margin-bottom: 6px; background: var(--rv-accent-soft); border: 0; }
html[data-sv-theme^=reverie] .sv-ib-name { font-size: 14px; font-weight: 600; }
html[data-sv-theme^=reverie] .sv-ib-prev { font-size: 12.5px; color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] .sv-ib-prev i { font-style: normal; }
html[data-sv-theme^=reverie] .sv-ib-when { color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] .sv-ib-unread { height: 20px; min-width: 20px; padding: 0 6px; border-radius: 10px; }
html[data-sv-theme^=reverie] .svh-avatar { width: 44px; height: 44px; }
html[data-sv-theme^=reverie] .svh-avatar__face { border: 0; border-radius: 14px; background: linear-gradient(135deg,var(--rv-accent-soft),var(--rv-peach)); color: var(--sv-violet-bright); font-family: var(--rv-serif); font-size: 18px; font-weight: 500; }
html[data-sv-theme^=reverie] .svh-avatar--sm { width: 34px; height: 34px; }
html[data-sv-theme^=reverie] .svh-avatar--sm .svh-avatar__face { border-radius: 11px; font-size: 14px; }
html[data-sv-theme^=reverie] .svh-avatar--lg { width: 72px; height: 72px; }
html[data-sv-theme^=reverie] .svh-avatar--lg .svh-avatar__face { border-radius: 22px; font-size: 28px; }
html[data-sv-theme^=reverie] .svh-avatar__dot { right: -2px; bottom: -2px; }

html[data-sv-theme^=reverie] .sv-ib-thread { overflow: hidden; }
html[data-sv-theme^=reverie] .sv-ib-bar { min-height: 74px; padding: 14px 20px; border-bottom-color: var(--sv-line-soft); background: none; }
html[data-sv-theme^=reverie] .sv-ib-bar-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
html[data-sv-theme^=reverie] .sv-ib-bar-sub { font-size: var(--sv-fs-12); font-style: normal; color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] .rv-ib-details { height: 36px; padding: 0 12px; color: var(--sv-text-muted); font-size: 13px; }
html[data-sv-theme^=reverie] .rv-ib-details.is-selected { background: var(--rv-accent-soft); border-color: transparent; color: var(--sv-violet-bright); }
html[data-sv-theme^=reverie] .sv-ib-log { gap: 6px; padding: 22px 24px; }
html[data-sv-theme^=reverie] .sv-ib-day { justify-content: center; margin: 10px 0 8px; }
html[data-sv-theme^=reverie] .sv-ib-day::before, html[data-sv-theme^=reverie] .sv-ib-day::after { display: none; }
html[data-sv-theme^=reverie] .sv-ib-day .sv-label { font-size: var(--sv-fs-11); letter-spacing: .14em; color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] .sv-ib-sys { font-size: var(--sv-fs-12); color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] .sv-ib-msg { max-width: min(76%,540px); }
html[data-sv-theme^=reverie] .sv-ib-msg.is-first { margin-top: 10px; }
html[data-sv-theme^=reverie] .sv-ib-from { margin-left: 6px; font-size: var(--sv-fs-11); letter-spacing: 0; text-transform: none; }
html[data-sv-theme^=reverie] .sv-ib-bub { padding: 12px 16px 9px; border: 1px solid var(--sv-line); border-radius: 6px 19px 19px; background: var(--sv-surface-card); box-shadow: none; }
html[data-sv-theme^=reverie] .sv-ib-msg.is-mine .sv-ib-bub { border-color: transparent; border-radius: 19px 6px 19px 19px; background: var(--rv-accent-soft); }
html[data-sv-theme^=reverie] .sv-ib-body { font-size: 14px; line-height: 1.6; }
html[data-sv-theme^=reverie] .sv-ib-meta { color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] .sv-ib-compose { align-items: flex-end; gap: 6px; margin: 4px 20px 18px; padding: 5px 6px 5px 8px; border: 1px solid var(--sv-line); border-radius: 26px; background: var(--sv-surface-card); transition: border-color var(--sv-t1) var(--sv-ease); }
html[data-sv-theme^=reverie] .sv-ib-compose:focus-within { border-color: var(--rv-accent); }
html[data-sv-theme^=reverie] .sv-ib-input.sv-textarea { border: 0; background: none; font-family: var(--sv-font-body); font-size: 14px; }
html[data-sv-theme^=reverie] .sv-ib-input.sv-textarea:focus-visible { outline: none; }
html[data-sv-theme^=reverie] .sv-ib-compose .sv-btn { flex: none; border-radius: 50%; }
html[data-sv-theme^=reverie] .sv-ib-panel { border-left-color: var(--sv-line-soft); box-shadow: -18px 0 50px rgba(80,55,97,.1); }
html[data-sv-theme^=reverie] .sv-ib-panel-h { min-height: 74px; padding: 0 14px 0 20px; border-bottom-color: var(--sv-line-soft); }
html[data-sv-theme^=reverie] .sv-ib-panel-b { padding: 20px; }
html[data-sv-theme^=reverie] .sv-ib-hero .sv-hint { color: var(--sv-text-muted); }
html[data-sv-theme^=reverie] .sv-ib-mem-name { font-size: 14px; }
html[data-sv-theme^=reverie] .sv-ib-rename .sv-input { border-radius: var(--sv-r-pill); padding: 0 16px; }
html[data-sv-theme^=reverie] .sv-ib-pick { border-radius: 16px; }
html[data-sv-theme^=reverie] .sv-ib-pick__row { border-radius: 12px; font-size: 14px; }
html[data-sv-theme^=reverie] #sv-home .svh-root.rv-no-dock .svh-bottom { display: none !important; }
@media (max-width: 1100px) { html[data-sv-theme^=reverie] #sv-home .sv-ib { grid-template-columns: minmax(250px,36%) minmax(0,1fr); } }
@media (max-width: 720px) {
  .rv-social-actions { width: 100%; }
  .rv-social-actions .sv-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
  html[data-sv-theme^=reverie] #sv-home .sv-ib { grid-template-columns: minmax(0,1fr); height: auto; min-height: 420px; border-radius: 22px; }
  html[data-sv-theme^=reverie] .sv-ib-list { border-right: 0; }
  html[data-sv-theme^=reverie] .sv-ib-scroll { overflow: visible; }
  .rv-social-guest { min-height: 320px; border-radius: 22px; }
  /* an open conversation takes the whole page: no greeting, and no dock over the message box */
  html[data-sv-theme^=reverie] #sv-home .rv-thread .rv-social { padding: 0; overflow: hidden; }
  html[data-sv-theme^=reverie] #sv-home .rv-thread .rv-social-head { display: none; }
  html[data-sv-theme^=reverie] #sv-home .rv-thread .sv-ib { flex: 1; height: 100%; min-height: 0; border-width: 1px 0 0; border-radius: 22px 22px 0 0; box-shadow: none; }
  html[data-sv-theme^=reverie] #sv-home .rv-thread .rv-social { display: flex; flex-direction: column; }
  html[data-sv-theme^=reverie] #sv-home .svh-root.rv-thread .svh-bottom { display: none !important; }
  html[data-sv-theme^=reverie] .sv-ib-bar { min-height: 62px; padding: 8px 12px; gap: 8px; }
  html[data-sv-theme^=reverie] .rv-ib-details span { display: none; }
  html[data-sv-theme^=reverie] .rv-ib-details { width: 36px; padding: 0; }
  html[data-sv-theme^=reverie] .sv-ib-log { padding: 14px; }
  html[data-sv-theme^=reverie] .sv-ib-msg { max-width: 86%; }
  html[data-sv-theme^=reverie] .sv-ib-compose { margin: 4px 10px calc(10px + env(safe-area-inset-bottom)); }
  html[data-sv-theme^=reverie] .sv-ib-input.sv-textarea { font-size: 16px; }
}

/* ---- 12. pictures and tags ---- */
/* Every adventure picture (an img with data-parallax, in its frame) is drawn a
   little larger than the frame, so its drift and lean (parallax.js) never show
   an edge. The hover zoom is the separate scale property, so the two add up. */
html[data-sv-theme^=reverie] :is(#sv-home, #sv-creator) img[data-parallax] { transform: translate3d(var(--parallax-pointer-x,0px),calc(var(--parallax-y,0px) + var(--parallax-pointer-y,0px)),0) scale(var(--rv-overscan,1.2)); will-change: transform; transition: scale .6s var(--sv-ease); }
html[data-sv-theme^=reverie] #sv-home .rv-return__art img[data-parallax] { --rv-overscan: 1.6; }

/* a tag's name and meaning, over the row of tags: on hover, or on a tap on a
   phone (home-integration.js adds .is-tip). Anchored to the row, not the letter,
   so the bubble never runs off the side of a card at the screen's edge. */
html[data-sv-theme^=reverie] .svh-cats { position: relative; }
html[data-sv-theme^=reverie] .svh-cat { cursor: help; transition: box-shadow var(--sv-t1) var(--sv-ease); }
.svh-cat__tip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 8; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: 210px; padding: 8px 12px; border-radius: 12px; background: var(--sv-text); color: var(--sv-bg); box-shadow: var(--sv-e-overlay); font-family: var(--sv-font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: 1.35; text-align: left; text-transform: none; white-space: normal; opacity: 0; translate: 0 4px; pointer-events: none; transition: opacity .16s var(--sv-ease), translate .16s var(--sv-ease); }
.svh-cat__tip strong { font-size: 13px; font-weight: 650; }
.svh-cat__tip small { font-size: 12px; opacity: .82; }
@media (hover: hover) {
  html[data-sv-theme^=reverie] .svh-cat:hover .svh-cat__tip { opacity: 1; translate: 0 0; }
  html[data-sv-theme^=reverie] .svh-cat:hover { box-shadow: 0 0 0 2px var(--rv-accent); }
}
html[data-sv-theme^=reverie] .svh-cat.is-tip .svh-cat__tip { opacity: 1; translate: 0 0; }
html[data-sv-theme^=reverie] .svh-cat.is-tip { box-shadow: 0 0 0 2px var(--rv-accent); }
/* the card's words sit over its picture's buttons, so the bubble does too
   (home.css gives the body z-index 1, the play button 2) */
html[data-sv-theme^=reverie] #sv-home :is(.svh-tale, .svh-libcard, .svh-dcard) .svh-card__body { position: relative; z-index: 3; }
/* the card with the bubble sits over its neighbours */
html[data-sv-theme^=reverie] #sv-home :is(.svh-tale, .svh-libcard, .svh-dcard):is(:hover, :has(.is-tip)), html[data-sv-theme^=reverie] .rv-feature:has(.svh-cat:hover) { z-index: 4; }

/* touch screens (the iPhone app): a tap leaves :hover behind on what was
   tapped, so nothing stays lifted; a press gives a small give instead */
@media (hover: none) {
  html[data-sv-theme^=reverie] #sv-home :is(.svh-tale, .svh-libcard, .svh-dcard, .rv-door):hover, html[data-sv-theme^=reverie] #sv-home .svh-bottom__item:hover { translate: none; }
  html[data-sv-theme^=reverie] #sv-home .svh-bottom__item:not(.is-selected):hover { background: none; }
  html[data-sv-theme^=reverie] #sv-home :is(.svh-tale, .svh-dcard, .svh-libcard):hover img[data-parallax] { scale: 1; }
  html[data-sv-theme^=reverie] #sv-home :is(.svh-tale, .svh-libcard, .svh-dcard, .rv-door):active { scale: .985; }
  .rvu-way:hover, .rvu-continue:hover { translate: none; }
  #sv-home a.rv-window:hover { scale: 1; filter: none; }
}
@media (max-width: 720px) {
  .svh-cat__tip { max-width: 150px; padding: 7px 10px; }
}
