/* Base: tokens and their dark values, element defaults, focus, the page atmosphere and shared keyframes */

:root {
  --ink: #26234f;
  --ink-soft: #575474;
  --paper: #fffdf8;
  --paper-warm: #fbf4e9;
  --violet: #6657c7;
  --violet-dark: #4d409f;
  --violet-pale: #eeeaff;
  --violet-faint: #faf8ff;
  --blue: #437ec9;
  --blue-pale: #e9f3ff;
  --teal: #278f86;
  --teal-pale: #def6ef;
  --coral: #ec725f;
  --coral-pale: #ffebe5;
  --error: #ad4b39;
  --error-ink: #8a3f33;
  --gold: #e6a92b;
  --gold-pale: #fff2c9;
  --green: #278463;
  --green-pale: #e1f4e9;
  --line: #ded9ea;
  --line-soft: #ebe7f2;
  --shadow-sm: 0 5px 16px rgba(42, 35, 91, 0.08);
  --shadow-md: 0 16px 42px rgba(42, 35, 91, 0.12);
  --shadow-lg: 0 28px 80px rgba(29, 25, 67, 0.2);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --max-width: 1200px;
  --font-display: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  /* The arrow on drawn (appearance: none) selects. */
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%234d409f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* The same arrow on a dark select. */
  --select-chevron-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23e6e2f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* Every color in css/ comes from a token here, with its dark value in the
     two blocks below, unless it is right in both themes (text on a
     picture, the book bar's dark fill, the theme tiles that show each
     theme's page).
     Surfaces: the page under everything and its glows, white controls and
     cards, form fields, a dark fill under white text in both themes, and
     quiet tints. */
  --page: #f8f3eb;
  --page-glow-gold: rgba(255, 212, 92, 0.22);
  --page-glow-violet: rgba(102, 87, 199, 0.13);
  --surface: #fff;
  --field: #fff;
  --night: #26234f;
  --small-print: #f3f0fb;
  --note: #f5f2fb;
  --note-icon: #e5e0fa;
  --close: #f1eef8;
  --close-hover: #e5e0f5;
  --violet-hover: #dfd8ff;
  /* Fills under white text. In dark the brand colors above are lifted for
     text, and these stay mid-tone. */
  --violet-fill: #6657c7;
  --violet-fill-hover: #4d409f;
  --green-fill: #278463;
  --coral-fill: #ec725f;
  /* Text */
  --note-ink: #4e4a68;
  --error-deep: #73372e;
  --placeholder: #8b8799;
  /* Lines */
  --field-line: #d6d0e2;
  --violet-line: #cfc7ef;
  --control-line: #d3ccef;
  --card-line: rgba(102, 87, 199, 0.14);
  --note-line: #d7d1e8;
  --track: #dcd5f3;
  --error-line: #e3a79b;
  /* Errors and the logout button */
  --error-pale: #fff0ec;
  --error-glow: rgba(173, 75, 57, 0.1);
  --error-focus: rgba(173, 75, 57, 0.25);
  --danger-surface: #fff7f4;
  --danger-line: #e3b1a8;
  --danger-line-strong: #bd6b5d;
  /* Focus, overlays and the page atmosphere */
  --focus-ring: #2d76d2;
  --focus-glow: rgba(102, 87, 199, 0.11);
  --backdrop: rgba(30, 27, 66, 0.67);
  --dialog-glow: rgba(255, 212, 100, 0.35);
  --atmosphere-opacity: 1;
  /* My books: the how-it-works panel, the guide's steps and their numbers,
     the shelf note and the book status chips. */
  --guide: rgba(255, 253, 248, 0.86);
  --guide-step-violet: #f5f1ff;
  --guide-step-blue: #eaf6ff;
  --guide-step-peach: #fff0e8;
  --guide-number: #26234f;
  --story-loop-line: #c8c0e2;
  --book-status-ink: #365f94;
  --book-status-fresh-ink: #226f53;
  --book-status-outdated-ink: #8a5a04;
  /* The Story map: its page, header and chapter tabs, the editor fields and
     moment cards, delete (rose), and a disabled button or field. */
  --map-page: #f6f2eb;
  --map-wash: rgba(255, 255, 255, 0.55);
  --map-glow: rgba(255, 208, 90, 0.22);
  --map-header: rgba(255, 253, 249, 0.93);
  --map-header-line: rgba(222, 217, 234, 0.85);
  --save-error-ink: #9b4637;
  --disabled: #f1eff4;
  --disabled-line: #e2dfeb;
  --field-disabled: #f4f2f6;
  --tab: rgba(255, 255, 255, 0.63);
  --tab-line-hover: #cfc8e8;
  --tab-line-current: #bcb1e8;
  --add-chapter: rgba(238, 234, 255, 0.55);
  --add-chapter-line: #b8afd8;
  --picker-line: #cfc9dd;
  --recipe-summary-line: #d7d1ea;
  --editor-line: #d8d3e4;
  --editor-line-hover: #bbb3d4;
  --stuck-ink: #6f4c00;
  --stuck-hover: #ffe8a6;
  --spark: #b77700;
  --moment: #fbf9ff;
  --moment-line: #e2deec;
  --moment-target: #fffaf0;
  --moment-number: #e9e4ff;
  --moment-tool-line: #d2c9ea;
  --moments-empty-line: #c9c1df;
  --moments-empty-spark: #a86f00;
  --delete-ink: #8a6680;
  --delete-ink-hover: #963f39;
  --delete-tile: #f7eef3;
  --delete-line: #eadde5;
  /* The page status card and a chapter's Pages panel: pages not made or
     not written (blue), fresh or written (green) and outdated or stale
     (gold), solid where the card docks over the map. */
  --status: rgba(242, 248, 255, 0.96);
  --status-line: #cbddee;
  --status-icon: #dcecff;
  --status-icon-ink: #376d9f;
  --status-fresh: rgba(238, 250, 244, 0.97);
  --status-fresh-line: #b8dfcd;
  --status-fresh-icon: #d6f0e2;
  --status-outdated: rgba(255, 248, 224, 0.97);
  --status-outdated-solid: #fff8e0;
  --status-outdated-line: #ebcc82;
  --status-outdated-icon: #ffe9ab;
  --status-outdated-icon-ink: #9b680d;
  /* Ideas: the dialog's tool buttons, its notes and chapter context, the
     suggestions and the thinking card. */
  --tool-line: #ddd7e9;
  --help-hover: #e9e3ff;
  --help-line-hover: #c8bde2;
  --context: #f7f4ff;
  --idea-context: #f8f6ff;
  --idea-context-line: #d9d2eb;
  --idea-moment-line: #e0dbea;
  --idea-number: #ece7ff;
  --idea-target: #fff8e5;
  --idea-target-ink: #705000;
  --idea-empty-line: #cfc7e1;
  --suggestion: #fffefa;
  --suggestion-line: #ded8eb;
  --suggestion-new: #f7f3ff;
  --suggestion-new-line: #b9a7ec;
  --thinking: #f6f2ff;
  --thinking-line: #c9bde9;
  /* Pictures: the chosen picture's card and mat, the picture dialog's
     context card, the painting state and the choices. Nothing here tints a
     picture. */
  --picture-chosen: #f3fbf7;
  --picture-chosen-line: #c8dfd4;
  --picture-mat: #fff;
  --picture-remove-ink: #8c4942;
  --picture-remove-ink-hover: #84342f;
  --picture-empty-line: #bdb5d8;
  --picture-context-line: #d9d2e9;
  --picture-context-icon: #e8e3ff;
  --painting-line: #bdb4df;
  --painting-glow: rgba(255, 224, 137, 0.43);
  --painting-teal: #dff3f2;
  --painting-shimmer: rgba(255, 255, 255, 0.54);
  --picture-choice: #f4f1f8;
  --picture-choice-chosen: #eaf8f0;
  /* Making: the recipe's choice cards and feeling icons, the rewrite
     confirmation's promise, and the making dialog's track. */
  --choice-line: #e2deeb;
  --choice-line-hover: #beb5df;
  --choice-checked: #f3f0ff;
  --choice-coral-ink: #a94b3c;
  --choice-blue-ink: #356da7;
  --choice-teal-ink: #1f6f68;
  --choice-gold-ink: #8a5d0b;
  --choice-green-ink: #216f53;
  --promise: #f2efff;
  --promise-line: #c9c2ef;
  --promise-ink: #413a68;
  --making-track: #e9e5f3;
  /* Publishing: its error box and error lines. */
  --publication-error: #fff1ed;
  --publication-error-line: #edb0a2;
  --publication-error-ink: #7b3226;
  /* The readers: the book bar, the banners above the pages, and the paper
     the pages and everything around them sit on, which is night paper in
     dark: a warm dark page with warm light text. On the paper: its ink, a
     quiet ink for counts and notes, lines and a tint for a hovered or
     chosen control. The PDF (js/pdf.js) keeps its own colors. */
  --book-bar: #1d1a40;
  --reader-banner-line: #e7bf61;
  --reader-banner-ink: #5e420c;
  --reader-banner-icon: #ffe4a0;
  --reader-review: #f0edff;
  --reader-review-line: #bcb3ec;
  --reader-review-ink: #37305f;
  --reader-review-icon: #ddd7ff;
  --book-paper: #fffdf8;
  --book-ink: #26234f;
  --book-prose: #343049;
  --book-muted: #6f6878;
  --book-line: #e3dbcd;
  --book-tint: rgba(38, 35, 79, 0.07);
  --book-running-title: #575168;
  --book-heading-line: #e8e0d2;
  /* Explore: its heading card, the error card, the publication rows and
     the reaction buttons. */
  --explore-glow: rgba(255, 214, 107, 0.26);
  --explore-heading-end: #f3efff;
  --explore-error: #fff8f4;
  --explore-error-line: #f0b8aa;
  --explore-error-ink: #713528;
  --explore-error-copy: #76544d;
  --explore-error-icon-ink: #923d2c;
  --publication-unavailable: #f5f2f4;
  --dislike: #ffe9eb;
  --dislike-line: #eab4b9;
  --dislike-ink: #4e3941;
  --reaction-disabled: #f1eef3;
  --reaction-disabled-ink: #858092;
  --reaction-error-ink: #8d3729;
  color-scheme: light;
}

/* Dark, when chosen (js/theme.js). The block in @media
   (prefers-color-scheme: dark) below repeats these declarations exactly, for
   a device in dark with nothing chosen (tests/test_frontend.py). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eeebff;
  --ink-soft: #bdb8dc;
  --paper: #211e45;
  --paper-warm: #272343;
  --violet: #a99cf7;
  --violet-dark: #c6bdff;
  --violet-pale: #322d66;
  --violet-faint: #252150;
  --blue: #86b5f2;
  --blue-pale: #1d2c4f;
  --teal: #63cfc3;
  --teal-pale: #163a3c;
  --coral: #f59a8a;
  --coral-pale: #3f2532;
  --error: #c0533f;
  --error-ink: #ffab9b;
  --gold: #f2bd45;
  --gold-pale: #3b3122;
  --green: #6fd3a5;
  --green-pale: #163a2e;
  --line: #3d3970;
  --line-soft: #312d5c;
  --shadow-sm: 0 5px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 42px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.5);
  --select-chevron: var(--select-chevron-light);
  --page: #17152f;
  --page-glow-gold: rgba(255, 212, 92, 0.06);
  --page-glow-violet: rgba(124, 108, 230, 0.2);
  --surface: #2a2654;
  --field: #191737;
  --night: #2e2a61;
  --small-print: #262250;
  --note: #262250;
  --note-icon: #3a3473;
  --close: #2f2b5c;
  --close-hover: #3d3878;
  --violet-hover: #3d3779;
  --violet-fill-hover: #7264d8;
  --note-ink: #cbc6e8;
  --error-deep: #ffc6bb;
  --placeholder: #9893bd;
  --field-line: #4f4a88;
  --violet-line: #534b94;
  --control-line: #4a4486;
  --card-line: rgba(169, 156, 247, 0.16);
  --note-line: #3d3970;
  --track: #3d3970;
  --error-line: #8f4d45;
  --error-pale: #3d2129;
  --error-glow: rgba(255, 140, 120, 0.22);
  --error-focus: rgba(255, 140, 120, 0.45);
  --danger-surface: #2f1d2a;
  --danger-line: #8a4b46;
  --danger-line-strong: #c0705f;
  --focus-ring: #7fb2f5;
  --focus-glow: rgba(169, 156, 247, 0.28);
  --backdrop: rgba(6, 5, 20, 0.74);
  --dialog-glow: rgba(255, 212, 100, 0.08);
  --atmosphere-opacity: 0.45;
  --guide: rgba(33, 30, 69, 0.86);
  --guide-step-violet: #2b2760;
  --guide-step-blue: #1d2b4c;
  --guide-step-peach: #36242f;
  --guide-number: var(--violet-fill);
  --story-loop-line: #4f4a88;
  --book-status-ink: var(--blue);
  --book-status-fresh-ink: var(--green);
  --book-status-outdated-ink: var(--gold);
  --map-page: #17152f;
  --map-wash: rgba(255, 255, 255, 0);
  --map-glow: rgba(255, 208, 90, 0.05);
  --map-header: rgba(33, 30, 69, 0.93);
  --map-header-line: rgba(61, 57, 112, 0.85);
  --save-error-ink: var(--error-ink);
  --disabled: #24213f;
  --disabled-line: #36325f;
  --field-disabled: #24213f;
  --tab: rgba(42, 38, 84, 0.63);
  --tab-line-hover: #4f4a88;
  --tab-line-current: #6459b0;
  --add-chapter: rgba(50, 45, 102, 0.55);
  --add-chapter-line: #5b5498;
  --picker-line: #4f4a88;
  --recipe-summary-line: #4a4486;
  --editor-line: #4f4a88;
  --editor-line-hover: #6a64a6;
  --stuck-ink: var(--gold);
  --stuck-hover: #4a3d24;
  --spark: var(--gold);
  --moment: #272351;
  --moment-line: #3d3970;
  --moment-target: #352e2a;
  --moment-number: var(--violet-pale);
  --moment-tool-line: #4a4486;
  --moments-empty-line: #4f4a88;
  --moments-empty-spark: var(--gold);
  --delete-ink: #dba5c1;
  --delete-ink-hover: var(--coral);
  --delete-tile: #3a2541;
  --delete-line: #5a3d55;
  --status: rgba(29, 40, 72, 0.96);
  --status-line: #2f4570;
  --status-icon: #263a63;
  --status-icon-ink: var(--blue);
  --status-fresh: rgba(22, 50, 44, 0.97);
  --status-fresh-line: #2b5a48;
  --status-fresh-icon: #1e4a3a;
  --status-outdated: rgba(52, 44, 33, 0.97);
  --status-outdated-solid: #342c21;
  --status-outdated-line: #6b5426;
  --status-outdated-icon: #4d3f22;
  --status-outdated-icon-ink: var(--gold);
  --tool-line: #4a4486;
  --help-hover: var(--violet-hover);
  --help-line-hover: #5b5498;
  --context: #262250;
  --idea-context: #252150;
  --idea-context-line: #3d3970;
  --idea-moment-line: #3d3970;
  --idea-number: var(--violet-pale);
  --idea-target: #352e2a;
  --idea-target-ink: var(--gold);
  --idea-empty-line: #4f4a88;
  --suggestion: var(--surface);
  --suggestion-line: #3d3970;
  --suggestion-new: #302b63;
  --suggestion-new-line: #6459b0;
  --thinking: #262250;
  --thinking-line: #5b5498;
  --picture-chosen: #1a3130;
  --picture-chosen-line: #2b5a48;
  --picture-mat: #38346a;
  --picture-remove-ink: var(--error-ink);
  --picture-remove-ink-hover: var(--error-deep);
  --picture-empty-line: #5b5498;
  --picture-context-line: #3d3970;
  --picture-context-icon: var(--violet-pale);
  --painting-line: #5b5498;
  --painting-glow: rgba(255, 224, 137, 0.12);
  --painting-teal: var(--teal-pale);
  --painting-shimmer: rgba(255, 255, 255, 0.1);
  --picture-choice: var(--surface);
  --picture-choice-chosen: #183a30;
  --choice-line: #3d3970;
  --choice-line-hover: #6a64a6;
  --choice-checked: var(--violet-pale);
  --choice-coral-ink: var(--coral);
  --choice-blue-ink: var(--blue);
  --choice-teal-ink: var(--teal);
  --choice-gold-ink: var(--gold);
  --choice-green-ink: var(--green);
  --promise: var(--violet-pale);
  --promise-line: var(--violet-line);
  --promise-ink: #dcd6f7;
  --making-track: var(--track);
  --publication-error: var(--error-pale);
  --publication-error-line: var(--error-line);
  --publication-error-ink: var(--error-deep);
  --book-bar: #13112b;
  --reader-banner-line: #6b5426;
  --reader-banner-ink: var(--gold);
  --reader-banner-icon: #4d3f22;
  --reader-review: #2b2760;
  --reader-review-line: #6459b0;
  --reader-review-ink: #dcd6f7;
  --reader-review-icon: #3d3779;
  --book-paper: #2a2623;
  --book-ink: #f3ead9;
  --book-prose: #e0d6c3;
  --book-muted: #a49b8e;
  --book-line: #4a433d;
  --book-tint: rgba(255, 238, 214, 0.08);
  --book-running-title: #c5bcea;
  --book-heading-line: #3e3833;
  --explore-glow: rgba(255, 214, 107, 0.07);
  --explore-heading-end: #2b2760;
  --explore-error: var(--error-pale);
  --explore-error-line: var(--error-line);
  --explore-error-ink: var(--error-deep);
  --explore-error-copy: #e3c3bc;
  --explore-error-icon-ink: var(--error-ink);
  --publication-unavailable: #1d1b35;
  --dislike: #3d2433;
  --dislike-line: #6e3f4c;
  --dislike-ink: #f3c9d0;
  --reaction-disabled: var(--disabled);
  --reaction-disabled-ink: #8f8aae;
  --reaction-error-ink: var(--error-ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 12%, var(--page-glow-gold), transparent 24rem),
    radial-gradient(circle at 92% 0%, var(--page-glow-violet), transparent 28rem),
    var(--page);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button[aria-disabled="true"] {
  cursor: not-allowed;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* .sr-only until focused; once focused, the control's own rules place and
   color it. */
.sr-only-focusable:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff;
  background: var(--night);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

#main-content:focus,
[data-editor-heading]:focus,
[data-reader-page-heading]:focus {
  outline: none;
}

.page-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  opacity: var(--atmosphere-opacity);
  pointer-events: none;
}

.atmosphere-star,
.atmosphere-dot {
  position: absolute;
  display: block;
}

.atmosphere-star {
  width: 18px;
  height: 18px;
  background: var(--gold);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  opacity: 0.35;
}

.atmosphere-star-one {
  top: 12vh;
  left: 3vw;
  transform: rotate(13deg);
}

.atmosphere-star-two {
  right: 4vw;
  bottom: 8vh;
  width: 11px;
  height: 11px;
  background: var(--violet);
  transform: rotate(29deg);
}

.atmosphere-dot {
  border: 2px solid rgba(102, 87, 199, 0.2);
  border-radius: 50%;
}

.atmosphere-dot-one {
  top: 39vh;
  right: 3vw;
  width: 26px;
  height: 26px;
}

.atmosphere-dot-two {
  bottom: 5vh;
  left: 5vw;
  width: 13px;
  height: 13px;
  border-color: rgba(236, 114, 95, 0.26);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* The same declarations as :root[data-theme="dark"]. */
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eeebff;
    --ink-soft: #bdb8dc;
    --paper: #211e45;
    --paper-warm: #272343;
    --violet: #a99cf7;
    --violet-dark: #c6bdff;
    --violet-pale: #322d66;
    --violet-faint: #252150;
    --blue: #86b5f2;
    --blue-pale: #1d2c4f;
    --teal: #63cfc3;
    --teal-pale: #163a3c;
    --coral: #f59a8a;
    --coral-pale: #3f2532;
    --error: #c0533f;
    --error-ink: #ffab9b;
    --gold: #f2bd45;
    --gold-pale: #3b3122;
    --green: #6fd3a5;
    --green-pale: #163a2e;
    --line: #3d3970;
    --line-soft: #312d5c;
    --shadow-sm: 0 5px 16px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 16px 42px rgba(0, 0, 0, 0.36);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.5);
    --select-chevron: var(--select-chevron-light);
    --page: #17152f;
    --page-glow-gold: rgba(255, 212, 92, 0.06);
    --page-glow-violet: rgba(124, 108, 230, 0.2);
    --surface: #2a2654;
    --field: #191737;
    --night: #2e2a61;
    --small-print: #262250;
    --note: #262250;
    --note-icon: #3a3473;
    --close: #2f2b5c;
    --close-hover: #3d3878;
    --violet-hover: #3d3779;
    --violet-fill-hover: #7264d8;
    --note-ink: #cbc6e8;
    --error-deep: #ffc6bb;
    --placeholder: #9893bd;
    --field-line: #4f4a88;
    --violet-line: #534b94;
    --control-line: #4a4486;
    --card-line: rgba(169, 156, 247, 0.16);
    --note-line: #3d3970;
    --track: #3d3970;
    --error-line: #8f4d45;
    --error-pale: #3d2129;
    --error-glow: rgba(255, 140, 120, 0.22);
    --error-focus: rgba(255, 140, 120, 0.45);
    --danger-surface: #2f1d2a;
    --danger-line: #8a4b46;
    --danger-line-strong: #c0705f;
    --focus-ring: #7fb2f5;
    --focus-glow: rgba(169, 156, 247, 0.28);
    --backdrop: rgba(6, 5, 20, 0.74);
    --dialog-glow: rgba(255, 212, 100, 0.08);
    --atmosphere-opacity: 0.45;
    --guide: rgba(33, 30, 69, 0.86);
    --guide-step-violet: #2b2760;
    --guide-step-blue: #1d2b4c;
    --guide-step-peach: #36242f;
    --guide-number: var(--violet-fill);
    --story-loop-line: #4f4a88;
    --book-status-ink: var(--blue);
    --book-status-fresh-ink: var(--green);
    --book-status-outdated-ink: var(--gold);
    --map-page: #17152f;
    --map-wash: rgba(255, 255, 255, 0);
    --map-glow: rgba(255, 208, 90, 0.05);
    --map-header: rgba(33, 30, 69, 0.93);
    --map-header-line: rgba(61, 57, 112, 0.85);
    --save-error-ink: var(--error-ink);
    --disabled: #24213f;
    --disabled-line: #36325f;
    --field-disabled: #24213f;
    --tab: rgba(42, 38, 84, 0.63);
    --tab-line-hover: #4f4a88;
    --tab-line-current: #6459b0;
    --add-chapter: rgba(50, 45, 102, 0.55);
    --add-chapter-line: #5b5498;
    --picker-line: #4f4a88;
    --recipe-summary-line: #4a4486;
    --editor-line: #4f4a88;
    --editor-line-hover: #6a64a6;
    --stuck-ink: var(--gold);
    --stuck-hover: #4a3d24;
    --spark: var(--gold);
    --moment: #272351;
    --moment-line: #3d3970;
    --moment-target: #352e2a;
    --moment-number: var(--violet-pale);
    --moment-tool-line: #4a4486;
    --moments-empty-line: #4f4a88;
    --moments-empty-spark: var(--gold);
    --delete-ink: #dba5c1;
    --delete-ink-hover: var(--coral);
    --delete-tile: #3a2541;
    --delete-line: #5a3d55;
    --status: rgba(29, 40, 72, 0.96);
    --status-line: #2f4570;
    --status-icon: #263a63;
    --status-icon-ink: var(--blue);
    --status-fresh: rgba(22, 50, 44, 0.97);
    --status-fresh-line: #2b5a48;
    --status-fresh-icon: #1e4a3a;
    --status-outdated: rgba(52, 44, 33, 0.97);
    --status-outdated-solid: #342c21;
    --status-outdated-line: #6b5426;
    --status-outdated-icon: #4d3f22;
    --status-outdated-icon-ink: var(--gold);
    --tool-line: #4a4486;
    --help-hover: var(--violet-hover);
    --help-line-hover: #5b5498;
    --context: #262250;
    --idea-context: #252150;
    --idea-context-line: #3d3970;
    --idea-moment-line: #3d3970;
    --idea-number: var(--violet-pale);
    --idea-target: #352e2a;
    --idea-target-ink: var(--gold);
    --idea-empty-line: #4f4a88;
    --suggestion: var(--surface);
    --suggestion-line: #3d3970;
    --suggestion-new: #302b63;
    --suggestion-new-line: #6459b0;
    --thinking: #262250;
    --thinking-line: #5b5498;
    --picture-chosen: #1a3130;
    --picture-chosen-line: #2b5a48;
    --picture-mat: #38346a;
    --picture-remove-ink: var(--error-ink);
    --picture-remove-ink-hover: var(--error-deep);
    --picture-empty-line: #5b5498;
    --picture-context-line: #3d3970;
    --picture-context-icon: var(--violet-pale);
    --painting-line: #5b5498;
    --painting-glow: rgba(255, 224, 137, 0.12);
    --painting-teal: var(--teal-pale);
    --painting-shimmer: rgba(255, 255, 255, 0.1);
    --picture-choice: var(--surface);
    --picture-choice-chosen: #183a30;
    --choice-line: #3d3970;
    --choice-line-hover: #6a64a6;
    --choice-checked: var(--violet-pale);
    --choice-coral-ink: var(--coral);
    --choice-blue-ink: var(--blue);
    --choice-teal-ink: var(--teal);
    --choice-gold-ink: var(--gold);
    --choice-green-ink: var(--green);
    --promise: var(--violet-pale);
    --promise-line: var(--violet-line);
    --promise-ink: #dcd6f7;
    --making-track: var(--track);
    --publication-error: var(--error-pale);
    --publication-error-line: var(--error-line);
    --publication-error-ink: var(--error-deep);
    --book-bar: #13112b;
    --reader-banner-line: #6b5426;
    --reader-banner-ink: var(--gold);
    --reader-banner-icon: #4d3f22;
    --reader-review: #2b2760;
    --reader-review-line: #6459b0;
    --reader-review-ink: #dcd6f7;
    --reader-review-icon: #3d3779;
    --book-paper: #2a2623;
    --book-ink: #f3ead9;
    --book-prose: #e0d6c3;
    --book-muted: #a49b8e;
    --book-line: #4a433d;
    --book-tint: rgba(255, 238, 214, 0.08);
    --book-running-title: #c5bcea;
    --book-heading-line: #3e3833;
    --explore-glow: rgba(255, 214, 107, 0.07);
    --explore-heading-end: #2b2760;
    --explore-error: var(--error-pale);
    --explore-error-line: var(--error-line);
    --explore-error-ink: var(--error-deep);
    --explore-error-copy: #e3c3bc;
    --explore-error-icon-ink: var(--error-ink);
    --publication-unavailable: #1d1b35;
    --dislike: #3d2433;
    --dislike-line: #6e3f4c;
    --dislike-ink: #f3c9d0;
    --reaction-disabled: var(--disabled);
    --reaction-disabled-ink: #8f8aae;
    --reaction-error-ink: var(--error-ink);
  }
}

@keyframes soft-twinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.86) rotate(-4deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
  }
}
