/* Me page look. Scoped to html[data-page-look] so the rest of the app stays put.
   Header and footer keep the site chrome. The look paints the page behind
   the profile and the panels in the main column. */

html[data-page-look] body {
  background: var(--pl-bg);
  color: var(--pl-fg);
}

/* Blue Sky and Clouds: gradient sky plus soft clouds from radial gradients.
   No image files, nothing fetched. A user background URL still paints on
   top through body::before. */
/* Sky gradient only. Puffy clouds are drawn on a canvas (page-look.js),
   drifting when Animated background is on and held still when it is off. */
html[data-page-look="sky"] body {
  background-color: var(--pl-bg);
  background-image: linear-gradient(180deg, #4fa3e8 0%, #8cc8f5 45%, #e3f2fd 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

html[data-page-look] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--pl-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.page-look-rain,
.page-look-anim {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  overflow-anchor: none;
  contain: paint;
}

svg.page-look-anim {
  display: block;
}

html[data-page-look] .app-main,
html[data-page-look] .site-footer,
html[data-page-look] .follow-list-panel,
html[data-page-look] .avatar-gallery {
  position: relative;
  z-index: 1;
}

/* Same chrome as app.css. A menu's own z-index cannot climb out of a header
   that sits level with .app-main, so the account menu, Help menu, hamburger
   drawer, and their submenus were painting behind the cards. */
html[data-page-look] .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* The open drawer has no z-index of its own. If it is not inside the header
   (or it is the stacking context that meets the cards), it still clears them. */
html[data-page-look] .site-nav.is-open {
  z-index: 1000;
}

/* Dropdowns already use 1200 inside the header. Keep that when a menu lives
   outside .site-header and has its own stacking context. */
html[data-page-look] .nav-help-links,
html[data-page-look] .nav-user-links {
  z-index: 1200;
}

html[data-page-look] .app-main {
  font-family: var(--pl-font);
}

html[data-page-look] .app-main .panel,
html[data-page-look] .app-main .profile-meta h1,
html[data-page-look] .app-main .profile-bio,
html[data-page-look] .app-main .profile-catchphrase,
html[data-page-look] .app-main .profile-username {
  color: var(--pl-fg);
}

html[data-page-look] .app-main .panel {
  background: var(--pl-panel-bg);
  border-color: var(--pl-accent);
  box-shadow: 0 0 var(--pl-glow) var(--pl-glow-color);
}

html[data-page-look] .app-main a {
  color: var(--pl-accent-text, var(--pl-accent));
}

/* Holiday's accent red (#e10600) is about 3.95:1 on the holiday background,
   so links that are not buttons were hard to read. A lighter red clears 4.5:1.
   Buttons keep the look's text color from the rules below. */
html[data-page-look="holiday"] .app-main a:not(.btn) {
  color: #ff4d4d !important;
}

/* Owner buttons (Settings, Change password, Change email, Log out, Copy
   profile link, look editor buttons) and the follower/following counts.
   Root cause of the faint text: with the site's Dark theme ON (the default,
   html[data-theme="dark"]), app.css paints .btn--ghost/.btn--outline #fff,
   a.btn.btn--outline #fff !important, and .profile-stat var(--text) (near
   white). With Dark theme OFF, theme-light.css repaints them dark. So on a
   light page look the result depended on the dark-mode switch.
   Under a page look the look's colors win either way: these rules are scoped
   to html[data-page-look] .app-main (like #181) and use !important so they
   beat both app.css's !important and theme-light.css. */
html[data-page-look] .app-main .btn--ghost,
html[data-page-look] .app-main .btn--outline,
html[data-page-look] .app-main a.btn.btn--outline {
  color: var(--pl-fg) !important;
  border-color: var(--pl-accent) !important;
  background: transparent !important;
}

/* Filled buttons use the look's accent. --pl-on-accent is white when that
   clears 4.5:1, otherwise the look background (Matrix, Ember, Election). */
html[data-page-look] .app-main .btn--primary,
html[data-page-look] .app-main a.btn.btn--primary,
html[data-page-look] .app-main .btn--primary:hover,
html[data-page-look] .app-main .btn--primary:focus,
html[data-page-look] .app-main a.btn.btn--primary:hover,
html[data-page-look] .app-main a.btn.btn--primary:focus {
  background: var(--pl-accent) !important;
  color: var(--pl-on-accent, var(--pl-bg)) !important;
  border-color: var(--pl-accent) !important;
  box-shadow: none;
}

html[data-page-look] .app-main .profile-stat,
html[data-page-look] .app-main .profile-stat strong,
html[data-page-look] .app-main button.profile-stat--btn {
  color: var(--pl-fg) !important;
}

/* Form labels and panel titles were white / neon green on light looks. */
html[data-page-look] .app-main label,
html[data-page-look] .app-main .panel-title {
  color: var(--pl-fg) !important;
}

/* Hints and muted lines followed the site Dark/Light switch (near-white in
   dark mode, #24362b in light mode), so they disappeared on the opposite
   page look. opacity also dropped them under 4.5:1. The look's text color
   wins either way. */
html[data-page-look] .app-main .hint,
html[data-page-look] .app-main .muted,
html[data-page-look] .app-main .is-muted,
html[data-page-look] .app-main .field .hint {
  color: var(--pl-fg) !important;
  opacity: 1;
}

/* Fields followed the site theme too: dark inputs with dark text on a light
   look, or the reverse. Paint them with the look's own pair. */
html[data-page-look] .app-main input:not([type="color"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-page-look] .app-main textarea,
html[data-page-look] .app-main select {
  color: var(--pl-fg) !important;
  background-color: var(--pl-bg) !important;
  border-color: var(--pl-accent) !important;
}

html[data-page-look] .app-main .btn--ghost:hover,
html[data-page-look] .app-main .btn--ghost:focus,
html[data-page-look] .app-main .btn--outline:hover,
html[data-page-look] .app-main .btn--outline:focus,
html[data-page-look] .app-main a.btn.btn--outline:hover,
html[data-page-look] .app-main a.btn.btn--outline:focus,
html[data-page-look] .app-main button.profile-stat--btn:hover,
html[data-page-look] .app-main button.profile-stat--btn:focus {
  color: var(--pl-accent-text, var(--pl-accent)) !important;
  border-color: var(--pl-accent) !important;
}

.page-look-banner {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: var(--pl-panel-bg, transparent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-look-switch {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.75rem 0 1rem;
}

.page-look-switch input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.page-look-switch strong {
  display: block;
}

.page-look-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.page-look-theme {
  min-height: 2.75rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--pl-accent, #39ff14);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* The old fill used near-black text on the accent. That failed on the dark
   accents (Light, Sky, Holiday, Paper). Flip the look's own text and
   background colors, which already clear 4.5:1, and keep the accent as a ring. */
.page-look-theme[aria-checked="true"] {
  background: var(--pl-fg, #d8ffe4);
  color: var(--pl-bg, #041004);
  border-color: var(--pl-accent, #39ff14);
  box-shadow: inset 0 0 0 2px var(--pl-accent, #39ff14);
  font-weight: 700;
}

.page-look-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 1rem;
}

.page-look-color {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-look-color input[type="color"] {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid currentColor;
  background: transparent;
  flex: 0 0 auto;
}

.page-look-color input[type="text"] {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "Courier New", monospace;
}

.page-look input[type="range"] {
  width: 100%;
}

.page-look textarea,
.page-look input[type="url"],
.page-look select {
  width: 100%;
  max-width: 100%;
}

.page-look textarea {
  min-height: 4.5rem;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.85rem;
}

.page-look .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-look-accent-warn {
  display: block;
  margin: 0.35rem 0 0;
}

.page-look-accent-warn[hidden] {
  display: none;
}

.page-look-confirm {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--pl-accent, currentColor);
  border-radius: 10px;
  background: var(--pl-panel-bg, transparent);
}

.page-look-confirm[hidden] {
  display: none;
}

.page-look-confirm p {
  margin: 0 0 0.75rem;
}

@media (min-width: 800px) {
  .page-look-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .page-look .form-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-look-rain,
  .page-look-fireworks {
    display: none;
  }
  /* Storm flash is a tint, and reduced motion gets none of it. */
  .page-look-flash {
    display: none;
  }
}

/* Lightning bolt stays a small SVG in the sky. The shared .page-look-anim
   rule would otherwise stretch it over the whole page. */
svg.page-look-bolt {
  visibility: hidden;
  top: calc(env(safe-area-inset-top, 0px) + 4.5rem);
  right: auto;
  bottom: auto;
  left: calc(env(safe-area-inset-left, 0px) + 0.75rem);
  width: 52px;
  height: 112px;
}

svg.page-look-bolt.is-on {
  visibility: visible;
}

@media (min-width: 800px) {
  svg.page-look-bolt {
    left: calc(env(safe-area-inset-left, 0px) + 4vw);
    width: 72px;
    height: 150px;
  }
}

/* Whole-page lightning tint. The color carries the alpha, capped at 0.3,
   and it is not white. .is-on only reveals that tint. */
.page-look-flash {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  background: rgba(186, 210, 255, 0.3);
  opacity: 0;
}

.page-look-flash.is-on {
  opacity: 1;
}

/* Me page: site Dark/Light toggle greyed out while a page look is set. */
html[data-page-look] [data-theme-toggle][data-page-look-locked],
html[data-page-look] [data-theme-toggle]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Post cards (Me, and any other feed on a page that has a look).
   app.css paints them Matrix: near-black card, #dedee2 body, neon MEMBERS
   pill, mint Pin, green Edit. theme-light.css restyles those only under
   html[data-theme="light"]. A page look does not change data-theme — it
   locks that switch — so Sky, Light, and Paper left the cards dark while
   the page behind them went light. data-page-look-tone=light is set from
   the background (white text would fail 4.5:1), including a lightened
   Election. Dark looks set tone=dark. Their cards stay the app.css Matrix
   paint. Pin chrome on dark tones follows the look instead of app.css mint. */
html[data-page-look-tone="light"] .post-card,
html[data-page-look-tone="light"] .post-card--activity,
html[data-page-look-tone="light"] .repost-embed {
  background: var(--pl-bg);
  color: var(--pl-fg);
  border-color: var(--pl-accent);
  box-shadow: 0 1px 8px rgba(13, 27, 42, 0.12);
}

html[data-page-look-tone="light"] .post-card--activity {
  box-shadow: none;
}

html[data-page-look-tone="light"] .post-card--pinned {
  box-shadow: inset 3px 0 0 var(--pl-accent);
}

html[data-page-look-tone="light"] .post-body,
html[data-page-look-tone="light"] .post-body--activity,
html[data-page-look-tone="light"] .post-author,
html[data-page-look-tone="light"] .post-author-name,
html[data-page-look-tone="light"] .post-time,
html[data-page-look-tone="light"] .repost-note,
html[data-page-look-tone="light"] .repost-verb,
html[data-page-look-tone="light"] .repost-embed__body,
html[data-page-look-tone="light"] .comment-body,
html[data-page-look-tone="light"] .comment-author,
html[data-page-look-tone="light"] .comment-time {
  color: var(--pl-fg);
}

html[data-page-look-tone="light"] .post-author-handle,
html[data-page-look-tone="light"] .comment-author-handle,
html[data-page-look-tone="light"] a.post-author:hover,
html[data-page-look-tone="light"] a.post-author:focus,
html[data-page-look-tone="light"] a.comment-author:hover,
html[data-page-look-tone="light"] a.comment-author:focus,
html[data-page-look-tone="light"] .mention-link,
html[data-page-look-tone="light"] .mention-link:hover,
html[data-page-look-tone="light"] .mention-link:focus,
html[data-page-look-tone="light"] .post-url-link,
html[data-page-look-tone="light"] .post-url-link:hover,
html[data-page-look-tone="light"] .activity-target-link,
html[data-page-look-tone="light"] .activity-target-link:hover,
html[data-page-look-tone="light"] .activity-target-link:focus,
html[data-page-look-tone="light"] .repost-embed__author,
html[data-page-look-tone="light"] .repost-embed__author:hover,
html[data-page-look-tone="light"] .repost-embed__author:focus,
html[data-page-look-tone="light"] .repost-embed__link,
html[data-page-look-tone="light"] .repost-embed__link:hover,
html[data-page-look-tone="light"] .repost-embed__link:focus {
  color: var(--pl-accent-text, var(--pl-accent));
}

html[data-page-look-tone="light"] .post-visibility-badge {
  color: var(--pl-fg);
  background: var(--pl-bg);
  border-color: var(--pl-accent);
}

html[data-page-look-tone="light"] .post-visibility-badge--only-me {
  color: #9b1c1c;
  background: #fdecea;
  border-color: #9b1c1c;
}

html[data-page-look-tone="light"] .post-actions {
  border-top-color: var(--pl-accent);
}

html[data-page-look-tone="light"] .post-actions :is(
  .like-button,
  .repost-button,
  .comment-toggle,
  .rr-share-btn,
  .bookmark-button,
  .report-button,
  .pin-post-button,
  .edit-post-button,
  .hide-activity-button
),
html[data-page-look-tone="light"] .post-actions :is(
  .like-button,
  .repost-button,
  .comment-toggle,
  .rr-share-btn,
  .bookmark-button,
  .report-button,
  .pin-post-button,
  .edit-post-button,
  .hide-activity-button
):hover,
html[data-page-look-tone="light"] .post-actions :is(
  .like-button,
  .repost-button,
  .comment-toggle,
  .rr-share-btn,
  .bookmark-button,
  .report-button,
  .pin-post-button,
  .edit-post-button,
  .hide-activity-button
):focus,
html[data-page-look-tone="light"] .post-actions :is(
  .like-button,
  .repost-button,
  .comment-toggle,
  .rr-share-btn,
  .bookmark-button,
  .report-button,
  .pin-post-button,
  .edit-post-button,
  .hide-activity-button
):focus-visible,
html[data-page-look-tone="light"] .post-actions :is(
  .like-button.is-liked,
  .repost-button.is-reposted,
  .comment-toggle.is-expanded,
  .bookmark-button.is-saved,
  .pin-post-button.is-pinned,
  .rr-share-btn[aria-expanded="true"]
) {
  color: var(--pl-fg);
  border: 1px solid var(--pl-accent);
  background: var(--pl-bg);
  box-shadow: none;
  transition: none;
}

html[data-page-look-tone="light"] .post-actions :is(
  .like-button.is-liked,
  .repost-button.is-reposted,
  .comment-toggle.is-expanded,
  .bookmark-button.is-saved,
  .pin-post-button.is-pinned
) {
  box-shadow: inset 0 0 0 1px var(--pl-accent);
  font-weight: 700;
}

html[data-page-look-tone="light"] .post-actions .delete-post-button,
html[data-page-look-tone="light"] .post-actions .delete-post-button:hover,
html[data-page-look-tone="light"] .post-actions .delete-post-button:focus,
html[data-page-look-tone="light"] .post-actions .delete-post-button:focus-visible,
html[data-page-look-tone="light"] .delete-comment-button,
html[data-page-look-tone="light"] .delete-comment-button:hover,
html[data-page-look-tone="light"] .delete-comment-button:focus {
  color: #9b1c1c;
  border: 1px solid #9b1c1c;
  background: #fdecea;
  border-radius: 999px;
  transition: none;
}

html[data-page-look-tone="light"] .post-pinned-bubble {
  color: var(--pl-fg);
  background: var(--pl-bg);
  border-color: var(--pl-accent);
  box-shadow: none;
}

html[data-page-look-tone="light"] .post-pinned-bubble::after {
  background: var(--pl-bg);
  border-right-color: var(--pl-accent);
  border-bottom-color: var(--pl-accent);
}

html[data-page-look-tone="light"] .post-pinned-bubble__icon {
  color: var(--pl-accent-text, var(--pl-accent));
}

/* Dark tones: pinned bubble, pin icon, and pin button follow the look.
   app.css hardcodes mint (#b8f4d5 / #6ee7b7 / #9aecc8), which is off-theme
   on Holiday, Ember, Election, and the new dark looks. */
html[data-page-look-tone="dark"] .post-card--pinned {
  box-shadow: inset 3px 0 0 var(--pl-accent);
}

html[data-page-look-tone="dark"] .post-pinned-bubble {
  color: var(--pl-fg);
  background: var(--pl-panel-bg);
  border-color: var(--pl-accent);
  box-shadow: none;
}

html[data-page-look-tone="dark"] .post-pinned-bubble::after {
  background: var(--pl-bg);
  border-right-color: var(--pl-accent);
  border-bottom-color: var(--pl-accent);
}

html[data-page-look-tone="dark"] .post-pinned-bubble__icon,
html[data-page-look-tone="dark"] .pin-post-button.is-pinned,
html[data-page-look-tone="dark"] .pin-post-button.is-pinned:hover,
html[data-page-look-tone="dark"] .pin-post-button.is-pinned:focus,
html[data-page-look-tone="dark"] .pin-post-button.is-pinned:focus-visible {
  color: var(--pl-accent-text);
}

html[data-page-look-tone="dark"] .pin-post-button,
html[data-page-look-tone="dark"] .pin-post-button:hover,
html[data-page-look-tone="dark"] .pin-post-button:focus,
html[data-page-look-tone="dark"] .pin-post-button:focus-visible {
  color: var(--pl-fg);
  border-color: var(--pl-accent);
  background: transparent;
  box-shadow: none;
}

/* Sky: the name sits on the gradient (#4fa3e8), where the accent fails.
   Give the profile header the same panel backing as the cards. */
html[data-page-look="sky"] .app-main .profile-header {
  background: var(--pl-panel-bg);
  border: 1px solid var(--pl-accent);
  border-radius: 14px;
  padding: 10px 14px;
}

/* Matrix glow 3 is 22px and halos mono text on a phone. Soften the panel
   shadow. Desktop keeps the preset glow. */
@media (max-width: 600px) {
  html[data-page-look="matrix"] .app-main .panel {
    box-shadow: 0 0 8px var(--pl-glow-color);
  }
}

/* Preset scenes. CSS and inline SVG only. No image files.
   The page background is the theme's scene. Thumbnails reuse the same art. */
.page-look-scenes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin: 0 0 1rem;
}

.page-look-scene {
  position: relative;
  height: 72px;
  border-radius: 10px;
  border: 2px solid transparent;
  overflow: hidden;
  padding: 4px 6px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  background: #111;
}

.page-look-scene.is-on {
  border-color: var(--pl-accent, #39ff14);
}

.page-look-scene-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-look-scene > span:last-child {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-look-seasons {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.page-look-seasons td,
.page-look-seasons th {
  border: 1px solid var(--pl-accent, currentColor);
  padding: 0.25rem 0.4rem;
  text-align: left;
}

html[data-page-look-scene="rain"] body,
.s-rain {
  background-color: #001408;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='120'%3E%3Cg fill='%2339ff14' font-family='monospace' font-size='12'%3E%3Ctext x='4' y='14' opacity='.9'%3E1%3C/text%3E%3Ctext x='4' y='30' opacity='.6'%3E0%3C/text%3E%3Ctext x='4' y='46' opacity='.35'%3E1%3C/text%3E%3Ctext x='30' y='70' opacity='.8'%3Eア%3C/text%3E%3Ctext x='30' y='86' opacity='.5'%3Eカ%3C/text%3E%3Ctext x='30' y='102' opacity='.25'%3E0%3C/text%3E%3C/g%3E%3C/svg%3E");
}

.s-sky {
  background: linear-gradient(180deg, #4fa3e8, #8cc8f5 45%, #e3f2fd);
}

html[data-page-look-scene="clouds"] body,
.s-clouds {
  background:
    radial-gradient(60px 26px at 20% 25%, #fff 60%, transparent 62%),
    radial-gradient(90px 34px at 30% 28%, #fff 60%, transparent 62%),
    radial-gradient(80px 30px at 75% 18%, #fff 60%, transparent 62%),
    radial-gradient(120px 40px at 65% 60%, #ffffffcc 60%, transparent 62%),
    linear-gradient(180deg, #cfe0f3, #f2f6fb);
}

html[data-page-look-scene="sunset"] body,
.s-sunset {
  background:
    radial-gradient(circle at 50% 78%, #ffd27a 0 7%, #ff8a4c 8% 14%, transparent 15%),
    linear-gradient(180deg, #2a1030 0%, #7a2557 40%, #ff6f61 70%, #ffb067 85%, #2a1030 86%);
}

html[data-page-look-scene="rainforest"] body,
.s-rainforest {
  background:
    radial-gradient(ellipse 40% 30% at 10% 100%, #1f6b3a, transparent),
    radial-gradient(ellipse 35% 40% at 90% 95%, #155a2f, transparent),
    repeating-linear-gradient(100deg, transparent 0 40px, #0f3a2233 40px 46px),
    linear-gradient(180deg, #0b2216, #123d27 60%, #0b2216);
}

html[data-page-look-scene="ocean"] body,
.s-ocean {
  background: repeating-radial-gradient(ellipse at 50% 120%, #0a2a44 0 14px, #06121f 14px 30px);
}

html[data-page-look-scene="grid"] body,
.s-grid {
  background-color: #12021f;
  background-image:
    linear-gradient(180deg, #12021f 0 55%, #12021f 55%),
    repeating-linear-gradient(90deg, #ff5ccf55 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, #ff5ccf55 0 1px, transparent 1px 30px);
  background-repeat: no-repeat, repeat, repeat;
  background-size: 100% 100%, 40px 100%, 100% 30px;
  background-attachment: scroll;
}

html[data-page-look-scene="meadow"] body,
.s-meadow {
  background:
    radial-gradient(circle at 15% 85%, #f6d36b 0 3px, transparent 4px) 0 0 / 50px 40px,
    radial-gradient(circle at 60% 70%, #e98fb0 0 3px, transparent 4px) 0 0 / 70px 50px,
    linear-gradient(180deg, #eaf5ff 0 55%, #cfe8b5 55%, #f5fbef);
}

html[data-page-look-scene="election"] body,
.s-election {
  background:
    linear-gradient(180deg, #071428, #0c2245),
    repeating-linear-gradient(0deg, #b2223422 0 10px, #ffffff11 10px 20px);
}

/* Paper rules and the margin pencil are drawn on the page-look-anim canvas.
   The cream color is the theme background behind that canvas. */
html[data-page-look="paper"] body {
  background-color: #f6f1e7;
  background-image: none;
}

html[data-page-look-scene="leaves"] body,
.s-leaves {
  background:
    radial-gradient(circle at 20% 30%, #c8562a 0 5px, transparent 6px) 0 0 / 90px 80px,
    radial-gradient(circle at 70% 60%, #e39b2d 0 4px, transparent 5px) 0 0 / 70px 90px,
    linear-gradient(180deg, #24130a, #3a1d0d);
}

html[data-page-look-scene="snow"] body,
.s-snow {
  background:
    radial-gradient(circle, #fff 0 1.5px, transparent 2px) 0 0 / 34px 34px,
    radial-gradient(circle, #ffffffaa 0 1px, transparent 1.5px) 17px 9px / 22px 22px,
    linear-gradient(180deg, #0b1f14, #123524);
}

html[data-page-look-scene="fireworks"] body,
.s-fireworks {
  background:
    radial-gradient(circle at 25% 30%, transparent 0 30px, #ffd76a88 31px 32px, transparent 33px),
    radial-gradient(circle at 75% 22%, transparent 0 22px, #ff7ad988 23px 24px, transparent 25px),
    radial-gradient(circle, #fff 0 1px, transparent 1.5px) 0 0 / 40px 40px,
    #0a0a1a;
}

html[data-page-look-scene="storm"] body,
.s-storm {
  background:
    radial-gradient(90px 28px at 18% 16%, #1a2236 60%, transparent 62%),
    radial-gradient(120px 36px at 78% 12%, #12182a 60%, transparent 62%),
    radial-gradient(80px 24px at 60% 28%, #1c2438 55%, transparent 62%),
    linear-gradient(180deg, #05070e, #10182a 55%, #070b14);
}

/* Fixed on the page so a scene does not scroll away. Thumbnails stay local,
   or background-attachment:fixed paints the viewport instead of the chip.
   Neon Grid is the exception: a vertical repeating gradient with
   background-attachment:fixed is what made iPhone Safari grow the document
   and move scrollY. Its size is capped above, and anchoring is off. */
html[data-page-look-scene] body {
  background-attachment: fixed;
}

html[data-page-look-scene="grid"],
html[data-page-look-scene="grid"] body {
  background-attachment: scroll;
  overflow-anchor: none;
}
