* { box-sizing: border-box; }
:root { color-scheme: only light; font-family: Arial, sans-serif; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
/* Mid tone of the landscapes, visible only until a scene's first download arrives. */
html { background: #696352; }
/* Every button starts plain: no box, the surrounding color, font and spacing, a pointer and no tap
   flash. Each kind below adds only its own shape. */
button {
  padding: 0; border: 0; border-radius: 3px; background: none; color: inherit;
  font: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
/* index.html sets data-scene before this stylesheet loads. The first landscape in its list (the
   lake) is the default here and also the no-script view; every other one needs an image line
   below, and a leaf-color line further down once its particles are assigned (until then it has
   the lake's greens). Softness and color are in the JPGs, not a CSS blur. */
.landscape { position: fixed; inset: 0; background: url(assets/background-lake.jpg) center / cover no-repeat; }
[data-scene="meadow"] .landscape { background-image: url(assets/background-meadow.jpg); }
[data-scene="cherry"] .landscape { background-image: url(assets/background-cherry.jpg); }
[data-scene="cliffs"] .landscape { background-image: url(assets/background-cliffs.jpg); }
/* The fifty landscapes added 2026-11-03 (owner's request), prepared from site imges/output/domalands-50. */
[data-scene="cherry-sunrise"] .landscape { background-image: url(assets/background-cherry-sunrise.jpg); }
[data-scene="cherry-dusk"] .landscape { background-image: url(assets/background-cherry-dusk.jpg); }
[data-scene="dark-oak-afternoon"] .landscape { background-image: url(assets/background-dark-oak-afternoon.jpg); }
[data-scene="dark-oak-twilight"] .landscape { background-image: url(assets/background-dark-oak-twilight.jpg); }
[data-scene="flower-meadow-morning"] .landscape { background-image: url(assets/background-flower-meadow-morning.jpg); }
[data-scene="plains-breeze"] .landscape { background-image: url(assets/background-plains-breeze.jpg); }
[data-scene="sunflower-afternoon"] .landscape { background-image: url(assets/background-sunflower-afternoon.jpg); }
[data-scene="birch-overcast"] .landscape { background-image: url(assets/background-birch-overcast.jpg); }
[data-scene="taiga-dawn"] .landscape { background-image: url(assets/background-taiga-dawn.jpg); }
[data-scene="snowy-taiga-dusk"] .landscape { background-image: url(assets/background-snowy-taiga-dusk.jpg); }
[data-scene="snow-ridge-sunrise"] .landscape { background-image: url(assets/background-snow-ridge-sunrise.jpg); }
[data-scene="high-mountain-valley"] .landscape { background-image: url(assets/background-high-mountain-valley.jpg); }
[data-scene="windswept-slope"] .landscape { background-image: url(assets/background-windswept-slope.jpg); }
[data-scene="mangrove-twilight"] .landscape { background-image: url(assets/background-mangrove-twilight.jpg); }
[data-scene="swamp-night"] .landscape { background-image: url(assets/background-swamp-night.jpg); }
[data-scene="mushroom-evening"] .landscape { background-image: url(assets/background-mushroom-evening.jpg); }
[data-scene="desert-day"] .landscape { background-image: url(assets/background-desert-day.jpg); }
[data-scene="desert-sunset"] .landscape { background-image: url(assets/background-desert-sunset.jpg); }
[data-scene="badlands-sunset"] .landscape { background-image: url(assets/background-badlands-sunset.jpg); }
[data-scene="river-valley"] .landscape { background-image: url(assets/background-river-valley.jpg); }
[data-scene="forest-lakeside"] .landscape { background-image: url(assets/background-forest-lakeside.jpg); }
[data-scene="village-meadow"] .landscape { background-image: url(assets/background-village-meadow.jpg); }
[data-scene="lush-cave"] .landscape { background-image: url(assets/background-lush-cave.jpg); }
[data-scene="lush-cave-pool"] .landscape { background-image: url(assets/background-lush-cave-pool.jpg); }
[data-scene="dripstone-cavern"] .landscape { background-image: url(assets/background-dripstone-cavern.jpg); }
[data-scene="dripstone-lava"] .landscape { background-image: url(assets/background-dripstone-lava.jpg); }
[data-scene="deep-dark"] .landscape { background-image: url(assets/background-deep-dark.jpg); }
[data-scene="ancient-city-edge"] .landscape { background-image: url(assets/background-ancient-city-edge.jpg); }
[data-scene="mineshaft-cave"] .landscape { background-image: url(assets/background-mineshaft-cave.jpg); }
[data-scene="amethyst-geode"] .landscape { background-image: url(assets/background-amethyst-geode.jpg); }
[data-scene="coral-reef"] .landscape { background-image: url(assets/background-coral-reef.jpg); }
[data-scene="kelp-forest"] .landscape { background-image: url(assets/background-kelp-forest.jpg); }
[data-scene="ocean-shallows"] .landscape { background-image: url(assets/background-ocean-shallows.jpg); }
[data-scene="underwater-ravine"] .landscape { background-image: url(assets/background-underwater-ravine.jpg); }
[data-scene="shoreline-cave"] .landscape { background-image: url(assets/background-shoreline-cave.jpg); }
[data-scene="misty-coast"] .landscape { background-image: url(assets/background-misty-coast.jpg); }
[data-scene="crimson-forest"] .landscape { background-image: url(assets/background-crimson-forest.jpg); }
[data-scene="warped-forest"] .landscape { background-image: url(assets/background-warped-forest.jpg); }
[data-scene="basalt-delta"] .landscape { background-image: url(assets/background-basalt-delta.jpg); }
[data-scene="soul-sand-valley"] .landscape { background-image: url(assets/background-soul-sand-valley.jpg); }
[data-scene="lava-sea"] .landscape { background-image: url(assets/background-lava-sea.jpg); }
[data-scene="fortress-edge"] .landscape { background-image: url(assets/background-fortress-edge.jpg); }
[data-scene="nether-overhang"] .landscape { background-image: url(assets/background-nether-overhang.jpg); }
[data-scene="outer-end-islands"] .landscape { background-image: url(assets/background-outer-end-islands.jpg); }
[data-scene="chorus-grove"] .landscape { background-image: url(assets/background-chorus-grove.jpg); }
[data-scene="distant-end-city"] .landscape { background-image: url(assets/background-distant-end-city.jpg); }
[data-scene="end-city-framing"] .landscape { background-image: url(assets/background-end-city-framing.jpg); }
[data-scene="end-gateway"] .landscape { background-image: url(assets/background-end-gateway.jpg); }
[data-scene="obsidian-void"] .landscape { background-image: url(assets/background-obsidian-void.jpg); }
[data-scene="floating-island-depth"] .landscape { background-image: url(assets/background-floating-island-depth.jpg); }
/* Falling leaves, CSS only: Minecraft-style squares between the landscape and the sign, in the
   scene's foliage colors. One animation falls at a steady speed (translate); the other sways and
   rocks back and forth (transform). Clicks and screen readers pass through.
   They are blurred as much as the landscape, so they read as part of the out-of-focus scene: the
   images carry sigma 10 at 1920×1080, which background-size: cover scales by the larger of
   100vw/1920 and 100vh/1080. They start and end far enough off screen for the blur to stay hidden.
   Their sizes, sway and off-screen margins scale the same way, in --leaf-unit: one pixel on a
   1440×900 window. Plain pixels would grow with browser zoom while the landscape does not, so a
   zoomed-in phone showed huge leaves; now they keep the same size on the screen at any zoom. */
.leaves {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; --leaf: #7f9a43; --leaf-light: #a3ad55;
  --leaf-blur: max(calc(100vw / 192), calc(100vh / 108)); --leaf-unit: max(100vw / 1600, 100vh / 900);
}
/* A particle layer (index.html makes three) shows only while it has an effect. */
.leaves:not([data-effect]) { display: none; }
/* Leaf colors per landscape: the default above is the lake's greens. The leaf styles show the
   landscapes' colors on any scene: green (the lake's; the cliffs' are
   much the same), gold (the meadow's) and pink (the cherry's), in the rules below these. */
[data-scene="meadow"] .leaves { --leaf: #c8a24a; --leaf-light: #b5b45a; }
[data-scene="cherry"] .leaves { --leaf: #e3a2b6; --leaf-light: #f0c4d2; }
[data-scene="cliffs"] .leaves { --leaf: #6f9145; --leaf-light: #9bae58; }
.leaves[data-effect="leaves-green"] { --leaf: #7f9a43; --leaf-light: #a3ad55; }
.leaves[data-effect="leaves-gold"] { --leaf: #c8a24a; --leaf-light: #b5b45a; }
.leaves[data-effect="leaves-pink"] { --leaf: #e3a2b6; --leaf-light: #f0c4d2; }
.leaves i {
  position: absolute; top: calc(-64 * var(--leaf-unit)); left: var(--x); width: calc(var(--s) * var(--leaf-unit)); height: calc(var(--s) * var(--leaf-unit));
  background: var(--leaf); opacity: .9; filter: blur(var(--leaf-blur));
  animation: leaf-fall var(--d) linear var(--t) infinite, leaf-sway calc(var(--d) / 4) ease-in-out var(--t) infinite alternate;
}
.leaves i:nth-child(odd) { background: var(--leaf-light); }
@keyframes leaf-fall { to { translate: 0 calc(100vh + 128 * var(--leaf-unit)); } }
@keyframes leaf-sway {
  from { transform: translateX(0) rotate3d(.4, .7, .6, -50deg); }
  to { transform: translateX(calc(var(--w) * var(--leaf-unit))) rotate3d(.4, .7, .6, 70deg); }
}
/* The other particles. Each of the three particle layers draws the effect named by its own
   data-effect (index.html's particle script sets them from the landscape's sets), so up to three
   effects play at once. Like the leaves they belong
   to the out-of-focus scene, so none of them is sharp, and they stay faint. They carry less than
   the landscape's full blur, at which they spread too thin to see at all (looked at, 2026-11-02):
   bubbles two thirds of it, leaving a faint soft ring; most small effects half (a third showed
   crisp dots; snow, finer, carries half too, and rain a fifth, as fine streaks). Each layer has a
   hundred elements: leaves and bubbles use the first ten, the denser effects sixty or thirty-five,
   rain seventy-five and snow all of them. Leaf and rain styles (leaves-gold, rain-right and so on)
   are matched by their family's prefix. Each effect's delay is scaled with its duration, so
   switching fills the whole screen at once. */
.leaves i:nth-child(n+11) { display: none; }
/* Every effect but leaves, bubbles, snow, rain, mist, dust, clouds, fireflies, glints and shimmer (which
   set their own) is small, so carries half the blur. */
.leaves[data-effect]:not([data-effect^="leaves"], [data-effect="bubbles"], [data-effect="snow"], [data-effect^="rain"], [data-effect="mist"], [data-effect="dust"], [data-effect^="clouds"], [data-effect="fireflies"], [data-effect="glints"], [data-effect="shimmer"]) i { filter: blur(calc(var(--leaf-blur) / 2)); }
.leaves:is([data-effect^="specks"], [data-effect="shimmer"]) i:nth-child(-n+60) { display: block; }
.leaves[data-effect^="rain"] i:nth-child(-n+75) { display: block; }
/* Bubbles: five white rings (every other one of the ten) with a soft highlight, starting below the
   screen and rising, slower than leaves fall, wobbling and squashing slightly as they go. */
.leaves[data-effect="bubbles"] i:nth-child(odd) { display: none; }
.leaves[data-effect="bubbles"] i {
  top: calc(100% + 64 * var(--leaf-unit)); width: calc(var(--s) * 1.6 * var(--leaf-unit)); height: calc(var(--s) * 1.6 * var(--leaf-unit));
  border: calc(3 * var(--leaf-unit)) solid #ffffff73; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff4d, #ffffff0d 45%, #ffffff00 70%); opacity: .6; filter: blur(calc(var(--leaf-blur) * .65));
  animation: bubble-rise calc(var(--d) * 1.2) linear calc(var(--t) * 1.2) infinite, bubble-wobble calc(var(--d) / 5) ease-in-out var(--t) infinite alternate;
}
@keyframes bubble-rise { to { translate: 0 calc(-100vh - 180 * var(--leaf-unit)); } }
@keyframes bubble-wobble {
  from { transform: translateX(0) scale(1, .92); }
  to { transform: translateX(calc(var(--w) * .6 * var(--leaf-unit))) scale(.92, 1); }
}
/* Snow: a hundred fine round flakes (all the elements), faint and soft at half the leaves' blur, so
   they sit in the out-of-focus scene, falling slowly and drifting side to side without tumbling
   (owner, 2026-11-03: denser and finer, then still too fat and too distinct; it was sixty, 0.4
   times the leaves' size, then a hundred at 0.3 and a third of the blur). */
.leaves[data-effect="snow"] i {
  display: block; width: calc(var(--s) * .2 * var(--leaf-unit)); height: calc(var(--s) * .2 * var(--leaf-unit));
  border-radius: 50%; background: #fff; opacity: .55; filter: blur(calc(var(--leaf-blur) / 2));
  animation: leaf-fall calc(var(--d) * 1.5) linear calc(var(--t) * 1.5) infinite, snow-drift calc(var(--d) / 3) ease-in-out var(--t) infinite alternate;
}
@keyframes snow-drift { to { transform: translateX(calc(var(--w) * var(--leaf-unit))); } }
/* Rain: seventy-five faint, hair-thin streaks, long like rain caught in motion, slanted with the
   wind and falling fast; the scene behind darkens a little. They carry a fifth of the leaves' blur:
   at half of it, short streaks spread into soft blobs. Its slant (--rain-lean: 1 falls to the
   left, -1 to the right, starting further left to cover the screen) makes two styles, to be
   assigned to landscapes later (so rain does not fall the same way on every load). */
.leaves[data-effect^="rain"] { background: #1c242e1a; }
.leaves[data-effect^="rain"] i {
  top: calc(-260 * var(--leaf-unit)); left: calc(var(--x) * 1.15 + (var(--rain-lean) - 1) * 7.5%);
  width: calc(var(--s) * .05 * var(--leaf-unit)); height: calc(var(--s) * 6.5 * var(--leaf-unit));
  border-radius: 999px; background: linear-gradient(#0000, var(--rain)); opacity: .35; rotate: calc(8deg * var(--rain-lean));
  filter: blur(calc(var(--leaf-blur) / 5));
  animation: rain-fall calc(var(--d) / 14) linear calc(var(--t) / 14) infinite;
}
@keyframes rain-fall { to { translate: calc(-.14 * var(--rain-lean) * (100vh + 400 * var(--leaf-unit))) calc(100vh + 400 * var(--leaf-unit)); } }
.leaves[data-effect="rain-left"] { --rain: #dfe7ee; --rain-lean: 1; }
.leaves[data-effect="rain-right"] { --rain: #dfe7ee; --rain-lean: -1; }
/* Effects for scenes the four above do not suit (owner's request, 2026-11-02): caves (dust,
   drips, spores), fire (embers, ash), underwater (specks), night (fireflies) and open land (mist,
   clouds, pollen). Each reuses one motion: falling (drips, ash), rising (spores, embers, pollen),
   drifting across (mist, dust, clouds) or wandering in place (specks, fireflies); those that hover
   or drift across sit at --y, a random height. Falling and rising move by translate and sideways
   sway by transform, so the two combine; wandering moves by translate on its own, as far as
   --wander times each particle's sway. */
@keyframes wander {
  0%, 100% { translate: 0 0; }
  25% { translate: calc(var(--w) * var(--wander, 1) * var(--leaf-unit)) calc(var(--w) * var(--wander, 1) * -.5 * var(--leaf-unit)); }
  50% { translate: calc(var(--w) * var(--wander, 1) * .4 * var(--leaf-unit)) calc(var(--w) * var(--wander, 1) * .6 * var(--leaf-unit)); }
  75% { translate: calc(var(--w) * var(--wander, 1) * -.6 * var(--leaf-unit)) calc(var(--w) * var(--wander, 1) * .3 * var(--leaf-unit)); }
}
/* Drips: ten short drops falling straight from the top, faster and faster, each falling once
   every 11 to 18 seconds (in about a second, then a long pause). */
.leaves[data-effect="drips"] i {
  top: calc(-40 * var(--leaf-unit)); width: calc(var(--s) * .18 * var(--leaf-unit)); height: calc(var(--s) * 1.2 * var(--leaf-unit));
  border-radius: 999px; background: linear-gradient(#dfe7ee00, #e6eef5d9); opacity: .55;
  animation: drip var(--d) ease-in var(--t) infinite;
}
@keyframes drip { 8%, 100% { translate: 0 calc(100vh + 80 * var(--leaf-unit)); } }
/* Mote colors, shared by spores and specks (owner's request, 2026-11-03, for scenes no effect suited,
   then the same set for both): a style named for its color, such as spores-red or specks-teal, sets
   --mote. Teal suits a warped forest, red a crimson forest, blue a soul sand valley, pale a mushroom
   island, cyan a deep dark cavern and violet the End's void. Spores without a color are teal,
   specks pale. */
.leaves[data-effect$="-teal"] { --mote: #8ff0cf; }
.leaves[data-effect$="-red"] { --mote: #ffb0b0; }
.leaves[data-effect$="-blue"] { --mote: #86c8ff; }
.leaves[data-effect$="-pale"] { --mote: #ece6f0; }
.leaves[data-effect$="-cyan"] { --mote: #4fe3ea; }
.leaves[data-effect$="-violet"] { --mote: #c9a2ff; }
/* Spores: thirty-five small motes rising and pulsing (owner, 2026-11-03: fewer, it was sixty, and
   more random in direction while all still rise). Each rises at its own slight angle, leaning left
   or right by up to four times its sway over the climb, and at its own pace, its fall time scaled
   by its size (about 16 to 44 seconds across the screen), swaying as it goes. */
.leaves[data-effect^="spores"] i:nth-child(-n+35) { display: block; }
.leaves[data-effect^="spores"] i {
  top: calc(100% + 32 * var(--leaf-unit)); width: calc(var(--s) * .35 * var(--leaf-unit)); height: calc(var(--s) * .35 * var(--leaf-unit));
  border-radius: 50%; background: var(--mote, #8ff0cf);
  animation: spore-rise calc(var(--d) * var(--s) / 12) linear calc(var(--t) * var(--s) / 12) infinite, snow-drift calc(var(--d) / 2) ease-in-out var(--t) infinite alternate,
    pulse calc(var(--d) / 4) ease-in-out var(--t) infinite alternate;
}
@keyframes spore-rise { to { translate: calc(var(--w) * 4 * var(--leaf-unit)) calc(-100vh - 180 * var(--leaf-unit)); } }
@keyframes pulse { from { opacity: .15; } to { opacity: .7; } }
/* Embers: thirty small orange sparks (owner, 2026-11-03: fewer, it was sixty; then a bit smaller,
   0.27 times the leaves' size, was 0.35) rising, slowing and drifting; each flares up quickly and
   dies out 40% of the way through its climb (owner, 2026-11-03: fade faster; it faded over the
   whole climb), a little past halfway up the screen, as it rises fast at first. */
.leaves[data-effect="embers"] i:nth-child(-n+30) { display: block; }
.leaves[data-effect="embers"] i {
  top: calc(100% + 32 * var(--leaf-unit)); width: calc(var(--s) * .27 * var(--leaf-unit)); height: calc(var(--s) * .27 * var(--leaf-unit));
  border-radius: 50%; background: #ffb057; box-shadow: 0 0 calc(6 * var(--leaf-unit)) calc(1.5 * var(--leaf-unit)) #ff7a1f;
  animation: ember-rise calc(var(--d) * .8) ease-out calc(var(--t) * .8) infinite, snow-drift calc(var(--d) / 4) ease-in-out var(--t) infinite alternate;
}
@keyframes ember-rise { 0% { opacity: 0; } 6% { opacity: .85; } 40%, 100% { opacity: 0; } 100% { translate: 0 calc(-100vh - 64 * var(--leaf-unit)); } }
/* Ash: forty-five small grey flakes falling slowly and tumbling, like colorless leaves (owner,
   2026-11-03: a bit smaller and fewer; they were 0.4 times the leaves' size, sixty of them). */
.leaves[data-effect="ash"] i:nth-child(-n+45) { display: block; }
.leaves[data-effect="ash"] i {
  width: calc(var(--s) * .3 * var(--leaf-unit)); height: calc(var(--s) * .3 * var(--leaf-unit)); background: #b8b4ad; opacity: .6;
  animation: leaf-fall calc(var(--d) * 1.4) linear calc(var(--t) * 1.4) infinite, leaf-sway calc(var(--d) / 4) ease-in-out var(--t) infinite alternate;
}
/* Specks: tiny motes hanging all over the scene, each wandering slowly; pale by default, in the
   mote colors above otherwise. */
.leaves[data-effect^="specks"] i {
  top: var(--y); width: calc(var(--s) * .3 * var(--leaf-unit)); height: calc(var(--s) * .3 * var(--leaf-unit)); border-radius: 50%; background: var(--mote, #e9f3f0); opacity: .5;
  animation: wander calc(var(--d) * 2) ease-in-out var(--t) infinite;
}
/* Shimmer (owner's request, 2026-11-03, for the ocean shallows, open water seen from above): sixty
   faint glints of light in the lower middle of the window, where water usually is: from 48% to
   about 85% of the height and 15% to 85% of the width, clear of shores at the sides, the sky and
   the reef along the bottom (owner, 2026-11-03: it was 38% to 85% and the full width, and fell on
   land), drifting a little sideways. They are irregular (owner: the
   first, alike and pulsing evenly, did not look right): thin streaks whose length grows with the
   square of their size (about 23 to 59 units), every third a tiny dot instead, each flickering
   twice and going dark again at its own pace (about 4 to 9 seconds a cycle; owner, 2026-11-03:
   slightly slower, it was 3 to 7.5, its drift a fifth slower too). */
.leaves[data-effect="shimmer"] i {
  top: calc(48% + var(--y) * .37); left: calc(15% + var(--x) * .7); width: calc(var(--s) * var(--s) * .07 * var(--leaf-unit)); height: calc(var(--s) * .06 * var(--leaf-unit));
  border-radius: 999px; background: linear-gradient(90deg, #fffaf000, #fffaf0, #fffaf000); opacity: 0;
  filter: blur(calc(var(--leaf-blur) / 4));
  animation: shimmer calc(var(--d) * var(--s) / 58) ease-in-out var(--t) infinite, snow-drift calc(var(--d) / 1.6) ease-in-out var(--t) infinite alternate;
}
.leaves[data-effect="shimmer"] i:nth-child(3n) { width: calc(var(--s) * .12 * var(--leaf-unit)); height: calc(var(--s) * .12 * var(--leaf-unit)); background: #fffaf0; }
@keyframes shimmer {
  0%, 60%, 100% { opacity: 0; scale: .4 1; }
  16% { opacity: .3; scale: .8 1; }
  26% { opacity: .06; }
  40% { opacity: .34; scale: 1 1; }
}
/* Fireflies: twenty-four small, sharp yellow-green lights in three loose clusters low in the scene,
   clear of the sign (left, bottom middle and right), each wandering a little within its cluster
   and glowing on and off, plus six strays wandering farther on their own anywhere in the lower
   half. Each wanders at its own pace: its fall time scaled by its size, about 9 to 23 seconds a
   loop. */
.leaves[data-effect="fireflies"] i:nth-child(-n+30) { display: block; }
.leaves[data-effect="fireflies"] i {
  --wander: .5; left: calc(14% + (var(--x) - 50%) * .16); top: calc(74% + (var(--y) - 50%) * .12);
  width: calc(var(--s) * .18 * var(--leaf-unit)); height: calc(var(--s) * .18 * var(--leaf-unit));
  border-radius: 50%; background: #f6ffb0; box-shadow: 0 0 calc(6 * var(--leaf-unit)) calc(1.5 * var(--leaf-unit)) #d9f56a;
  filter: blur(calc(var(--leaf-blur) / 8));
  animation: wander calc(var(--d) * var(--s) / 23) ease-in-out var(--t) infinite, glow calc(var(--d) / 4) ease-in-out var(--t) infinite;
}
.leaves[data-effect="fireflies"] i:nth-child(3n+2) { left: calc(48% + (var(--x) - 50%) * .16); top: calc(86% + (var(--y) - 50%) * .1); }
.leaves[data-effect="fireflies"] i:nth-child(3n) { left: calc(84% + (var(--x) - 50%) * .16); top: calc(70% + (var(--y) - 50%) * .12); }
.leaves[data-effect="fireflies"] i:nth-child(n+25):nth-child(-n+30) { --wander: 1.2; left: var(--x); top: calc(50% + var(--y) * .45); }
@keyframes glow { 0%, 100% { opacity: 0; } 45%, 60% { opacity: .9; } }
/* Glints (owner's request, 2026-11-03, for an amethyst geode): thirty tiny sharp lavender sparkles
   scattered over the scene, each flashing briefly in place now and then, at its own pace (about 3
   to 9 seconds apart). */
.leaves[data-effect="glints"] i:nth-child(-n+30) { display: block; }
.leaves[data-effect="glints"] i {
  top: var(--y); width: calc(var(--s) * .24 * var(--leaf-unit)); height: calc(var(--s) * .24 * var(--leaf-unit));
  border-radius: 50%; background: #fff; box-shadow: 0 0 calc(9 * var(--leaf-unit)) calc(3 * var(--leaf-unit)) #c9a2ff;
  filter: blur(calc(var(--leaf-blur) / 8)); opacity: 0;
  animation: glint calc(var(--d) * var(--s) / 60) ease-in-out var(--t) infinite;
}
@keyframes glint { 0%, 38%, 62%, 100% { opacity: 0; scale: .4; } 50% { opacity: 1; scale: 1; } }
/* Mist: ten soft white patches drifting across the lower two thirds of the window, from a third of
   the way down (owner, 2026-11-03: it reached the top of the image, where it read as clouds). Each
   fades from its middle outward, at twice the leaves' blur, and differs from the rest (owner,
   2026-11-03: alike, smooth white ovals moving in step looked wrong, over the swamp at night):
   its length grows with the square of its size (about 180 to 460 units), every third is taller
   and fainter and every other third flatter and a little denser, it crosses at its own speed
   (about 26 to 70 seconds), rising or sinking a little on the way, and it slowly stretches and
   squeezes. Dust is the same in a warm, dusty tan (owner's request: like mist, another color),
   1.8 times as strong (owner, 2026-11-03: it read very faintly once its patches faded at the
   edges; 1.35 times was still too faint). */
.leaves:is([data-effect="mist"], [data-effect="dust"]) i {
  top: calc(33% + var(--y) * .55); left: 0; width: calc(var(--s) * var(--s) * .55 * var(--haze-size, 1) * var(--leaf-unit)); height: calc(var(--s) * 3.4 * var(--haze-size, 1) * var(--leaf-unit));
  border-radius: 50%; background: radial-gradient(closest-side, var(--haze, #fff), transparent); opacity: calc(.32 * var(--haze-strength, 1)); filter: blur(calc(var(--leaf-blur) * 2));
  animation: drift-across calc(var(--d) * var(--s) / var(--haze-pace, 7.5)) linear calc(var(--t) * var(--s) / var(--haze-pace, 7.5)) infinite, haze-morph calc(var(--d) * 1.3) ease-in-out var(--t) infinite alternate;
}
.leaves:is([data-effect="mist"], [data-effect="dust"]) i:nth-child(3n) { height: calc(var(--s) * 5.2 * var(--haze-size, 1) * var(--leaf-unit)); opacity: calc(.24 * var(--haze-strength, 1)); filter: blur(calc(var(--leaf-blur) * 2.6)); }
.leaves:is([data-effect="mist"], [data-effect="dust"]) i:nth-child(3n+1) { height: calc(var(--s) * 2.4 * var(--haze-size, 1) * var(--leaf-unit)); opacity: calc(.4 * var(--haze-strength, 1)); filter: blur(calc(var(--leaf-blur) * 1.6)); }
/* Mist itself is a little fainter, slower and larger than this (owner, 2026-11-03: it still looked
   off): 0.8 times the opacity, crossing in about 33 to 87 seconds, 1.3 times the size. */
.leaves[data-effect="mist"] { --haze-strength: .8; --haze-pace: 6; --haze-size: 1.3; }
.leaves[data-effect="dust"] { --haze: #bc9c6c; --haze-strength: 1.8; }
/* Dust also keeps lower, its patches starting from halfway down to about 88%, and there are more
   of them, sixteen, every other one crossing half again as fast, so speeds run about 18 to 70
   seconds (owner, 2026-11-03: patches appeared too high; more, at various speeds). */
.leaves[data-effect="dust"] i:nth-child(-n+16) { display: block; }
.leaves[data-effect="dust"] i { top: calc(50% + var(--y) * .38); }
.leaves[data-effect="dust"] i:nth-child(odd) { --haze-pace: 11; }
@keyframes haze-morph { to { scale: 1.18 .85; } }
/* Mist, dust and clouds cross the window, each patch also rising or sinking a little by its sway. */
@keyframes drift-across { from { translate: -100% 0; } to { translate: 100vw calc(var(--w) * .8 * var(--leaf-unit)); } }
/* Clouds (owner's request, 2026-11-02: two versions, both directions, near the top, subtle): ten
   long, faint white banks in the top fifth of the window, drifting slowly across at mist's blur,
   rightward (clouds-right) or, the same drift reversed, leftward (clouds-left). */
.leaves[data-effect^="clouds"] i {
  top: calc(var(--y) * .22); left: 0; width: calc(var(--s) * 18 * var(--leaf-unit)); height: calc(var(--s) * 3.5 * var(--leaf-unit));
  border-radius: 50%; background: #fff; opacity: .35; filter: blur(calc(var(--leaf-blur) * 2));
  animation: drift-across calc(var(--d) * 6) linear calc(var(--t) * 6) infinite;
}
.leaves[data-effect="clouds-left"] i { animation-direction: reverse; }
/* Pollen: ten soft white tufts floating slowly up, drifting side to side. */
.leaves[data-effect="pollen"] i {
  top: calc(100% + 32 * var(--leaf-unit)); width: calc(var(--s) * .45 * var(--leaf-unit)); height: calc(var(--s) * .45 * var(--leaf-unit));
  border-radius: 50%; background: radial-gradient(circle, #fffef5 0 20%, #fffef533 45%, #fffef500 70%); opacity: .75;
  animation: bubble-rise calc(var(--d) * 2.2) linear calc(var(--t) * 2.2) infinite, snow-drift calc(var(--d) / 2) ease-in-out var(--t) infinite alternate;
}
/* The sign stops shrinking at --sign-min; a smaller window scrolls instead of crowding the face.
   The stage keeps room for that minimum plus its --pad on each side. */
.stage {
  --sign-min: 360px; --sign-ratio: 1.95; --pad: 20px;
  height: 100svh; height: 100dvh;
  min-width: calc(var(--sign-min) + 2 * var(--pad)); min-height: calc(var(--sign-min) / var(--sign-ratio) + 2 * var(--pad));
  display: grid; place-items: center; isolation: isolate;
  padding: max(var(--pad), env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) max(var(--pad), env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
}
/* Everything on the sign is sized in proportion to it, so it looks the same at every size, browser
   zoom included: a phone zoomed to 150% shows exactly the card it shows at 100%. --u is one pixel
   of the sign as designed, 680px wide (351px on portrait phones: the sign on a 390px phone), and
   lengths below are multiples of it; the type is in cqw or --u. Only hairline borders, corner
   radii and focus rings stay in plain pixels. --u resolves where it is used, against the sign. */
.sign {
  position: relative; container-type: inline-size; perspective: 1600px; color: #363b37; --turn: .5s; --u: calc(100cqw / 680);
  width: min(680px, 100%, calc((100svh - 80px) * 1.9)); min-width: var(--sign-min); aspect-ratio: var(--sign-ratio);
}
/* Two-sided card: the flip button turns it about its vertical axis. Turned over, it settles slightly
   off level, lower on the left and raised on the right. The front at rest has no transform at all,
   so its text renders exactly as before.
   Each face hides while turned away twice over: backface-visibility, and visibility switched at the
   instant the card is edge-on (half the turn, as the ease is symmetric). Firefox otherwise shows
   the far face's buttons mirrored through the card. */
.card { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform var(--turn) cubic-bezier(.65, 0, .35, 1); }
.is-flipped .card { transform: rotate(-2deg) rotateY(180deg); }
/* Once the turn ends, app.js adds .settled: the back rests as a plain 2D tilt, the same picture with
   no perspective, 3D context or backface hiding. Chrome then draws the tilted text directly instead
   of rotating a flattened image of it, which measured visibly darker and sharper. */
.is-flipped.settled { perspective: none; }
.is-flipped.settled .card { transform: rotate(-2deg); transform-style: flat; transition: none; }
.is-flipped.settled .face { -webkit-backface-visibility: visible; backface-visibility: visible; }
.is-flipped.settled .back { transform: none; }
/* A load with an address (index.html sets data-linked): the sign stays hidden until app.js has
   turned it to that part and removed the attribute, so the front never flashes first. If app.js
   never runs, the sign shows anyway after 3s. Nothing moves, so it stays under reduced motion
   (!important outranks that rule's). */
:root[data-linked] .sign { animation: linked 3s !important; }
@keyframes linked { from, to { visibility: hidden; } }
/* The paper: both faces and the second card (.note). */
.face, .note {
  position: absolute; inset: 0;
  /* Average of paint.jpg, so the face keeps its tone while the texture loads. */
  background: #e4dccf;
  border: 1px solid #c5c2b7; border-radius: 5px;
  box-shadow: inset 0 -1px 0 #5556521f,
    0 3px 6px #1421171f, 0 16px 30px #14211738, 0 32px 60px #14211724;
}
.face { -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: visibility 0s calc(var(--turn) / 2); }
.back { transform: rotateY(180deg); }
.back, .is-flipped .front { visibility: hidden; }
.is-flipped .back { visibility: visible; }
.face::before, .note::before {
  content: ''; position: absolute; inset: calc(11 * var(--u)); z-index: 1;
  border: 1px solid #88877c40; border-radius: 2px; pointer-events: none;
}
/* The paper texture is an image, and browsers tint images inside a highlight, which tinted the
   whole card; it is never part of one. */
.sign-surface {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
.sign-content {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; justify-content: center; align-items: center;
  padding-bottom: 2%;
}
.name {
  margin: 0; font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400; font-size: 12.4cqw; line-height: 1.12; letter-spacing: .01em;
}
/* Beta tag: a small slanted label in a rounded box at the title's top right, outside its flow so
   the title stays centered. It is a button that drops the Beta Notice card (app.js). Its word is
   generated here, not text in the page, so a highlight across the title can never catch it
   (user-select alone did not stop that in Firefox), and it sits right after "DomaLands" with no
   space that could highlight; screen readers hear its label. Its tap area reaches 6 (--u) past
   its box, as it is small on phones. To remove it, delete its button and the Beta Notice pages in
   index.html and these rules (the portrait-phone one too). */
.name { position: relative; }
.beta {
  position: absolute; left: 100%; top: 6%; margin-left: .35em; rotate: -10deg;
  padding: .3em .6em .25em; border: 1px solid currentColor; border-radius: .5em;
  font: 700 calc(12.5 * var(--u))/1 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}
.beta::before { content: 'Beta'; }
.beta::after { content: ''; position: absolute; inset: calc(-6 * var(--u)); }
.divider {
  height: 0; flex-shrink: 0; width: 24%;
  border-top: 1px solid #626361; opacity: .7; margin: 4.2cqw 0 calc(3.5cqw - 6 * var(--u));
}
/* The address button copies the IP (app.js). Text and its highlighting: the name highlights like
   any page text, and so does the address, which opts in because it sits inside a button. A drag
   that ends on empty card space past the address would otherwise jump to other text in Firefox (it
   places that spot by page order: the end of the name), so an invisible margin around it (padding
   cancelled by negative margin, so nothing moves) keeps a slight overshoot on its text. The margin
   is part of the button, so a click just beside the address also copies. */
.copy { position: relative; flex-shrink: 0; padding: calc(6 * var(--u)) calc(9 * var(--u)); margin-bottom: calc(-6 * var(--u)); }
.address {
  font-size: 3.1cqw; letter-spacing: .1em; line-height: 1.4;
  -webkit-user-select: text; user-select: text; padding: calc(8 * var(--u)) 10cqw; margin: calc(-8 * var(--u)) -10cqw;
}
/* The sign's square buttons, all 32 (--u): Discord, the back's envelope and the flip buttons in the
   faces' bottom corners, the second card's X and arrows, and the envelope beside the email on its
   Support card. */
.discord, .copy-email, .flip, .note-close, .note-prev, .note-next { width: calc(32 * var(--u)); height: calc(32 * var(--u)); display: grid; place-items: center; }
.discord { border-radius: 3px; color: inherit; -webkit-tap-highlight-color: transparent; }
/* The rule above gives them a display, so a hidden arrow (a word with one page) needs this. */
.note-prev[hidden], .note-next[hidden] { display: none; }
.discord svg, .copy-email svg, .flip svg, .copy-mark svg, .note-close svg, .note-prev svg, .note-next svg { width: calc(22 * var(--u)); height: auto; }
.discord, .back > .copy-email, .note-prev { position: absolute; left: 6%; bottom: 9%; }
.note-next { position: absolute; right: 6%; bottom: 9%; }
.note-close { position: absolute; right: 6%; top: 9%; }
/* Without JavaScript (no data-scene) the sign cannot turn, so the button is hidden. */
.flip { position: absolute; right: 6%; bottom: 9%; }
:root:not([data-scene]) .flip { display: none; }
/* Back: the six options in the name's typeface, two columns of three, filled down each column in
   page order (About, Rules, Store; then Vote, Socials, Support). The columns are equal halves of
   two thirds of the card, so they are centered one third and two thirds across, evenly either
   side of the middle whatever their words' widths. They are plain buttons and never highlight,
   even inside a wider selection. */
.links {
  margin: 0; padding: 0; list-style: none; text-align: center; width: 66.667%;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column;
  font-family: Georgia, 'Times New Roman', serif; font-size: 4.6cqw; line-height: 1.7; letter-spacing: .02em;
}
.links button { padding: 0 .3em; -webkit-user-select: none; user-select: none; }
/* The second card (.note): a word on the back drops it onto the sign from above, tilted the other
   way from the back. Its X (or Esc) lifts it back up, and the arrows in its bottom corners cycle
   through the word's pages. The card itself does not move when dragged. It and its pages keep the
   hidden attribute until shown, so nothing here may give .note or .note-page a display. */
.note { z-index: 3; rotate: 2deg; outline-offset: 6px; --arrow-row: calc(40 * var(--u)); }
/* Its text reads from the top-left corner: the title at the size of the back's words, then the
   page in the site's plain font. Anything too long for a small screen is clipped at the inner
   border rather than spilling off the card (turning a page fades the text out and the next page
   in), and the clip reaches 6px past the text's edge so the Support card's envelope keeps its
   whole focus ring. The text stops above the arrows' row (--arrow-row); a one-page word
   has no arrows (app.js hides them), so its text may use that row too. The beta notice hides only
   one arrow at either end, so the row stays while either shows. The title row is at least as tall
   as the X beside it, so the text below clears both. The second card's text highlights like any
   page text, the email included. */
.note:has(.note-prev[hidden]):has(.note-next[hidden]) { --arrow-row: 0px; }
.note-content { position: absolute; inset: 9% 7% calc(9% + var(--arrow-row)); overflow: clip; overflow-clip-margin: 6px; }
.note-title { margin: 0 0 .45em; min-height: calc(32 * var(--u)); display: flex; align-items: center; font: 400 4.6cqw/1.2 Georgia, 'Times New Roman', serif; letter-spacing: .02em; }
.note-page { font-size: calc(16 * var(--u)); line-height: 1.5; }
.note-page p, .note-page ul, .note-page .contact { margin: 0 0 .5em; }
.note-page > :last-child { margin-bottom: 0; }
.note-page ul { padding-left: 1.2em; }
/* Each Rules page names its rule in a subheading, in the title's typeface, between the title's
   size and the text's. */
.note-page h3 { margin: 0 0 .35em; font: 400 calc(20 * var(--u))/1.25 Georgia, 'Times New Roman', serif; letter-spacing: .02em; }
/* About's list: two columns, read down the first, its bullets in the gap; the footnote smaller. */
.note-page .facts { columns: 2; column-gap: 2em; }
.facts li { break-inside: avoid; }
.footnote { font-size: .85em; }
/* The Support card's email row: the envelope that copies it, then the email as plain text. */
.contact { height: calc(32 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); }
.email { letter-spacing: .04em; }
/* The Store, Vote and Socials cards' buttons and links: outlined rounded boxes with no hover change,
   not highlighted in a selection. All but Discord are placeholders until their addresses are known. */
.shop, .vote-sites button, .socials :is(a, button) { border: 1px solid currentColor; white-space: nowrap; -webkit-user-select: none; user-select: none; }
/* Store: one button in the name's typeface, centered across the card in its lower third (80% down
   the text area, which on a one-page card runs from 9% to 91% of the card: about 75% down). */
.shop {
  position: absolute; left: 50%; top: 80%; translate: -50% -50%;
  padding: .5em 1.4em; border-radius: 6px;
  font: 400 calc(18 * var(--u))/1.2 Georgia, 'Times New Roman', serif; letter-spacing: .02em;
}
/* Vote and Socials: names in three columns under the card's line (two on portrait phones, below).
   The longest vote-site name ("Minecraft-Server-List", about 9.3em) fits its column. Socials wraps
   instead of using a grid, so its fifth link sits centered on the last row, and each link shows a
   one-color icon before its name, drawn like Discord's on the front. */
.note-page :is(.vote-sites, .socials) { margin: calc(29 * var(--u)) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(10 * var(--u)); }
.note-page .socials { display: flex; flex-wrap: wrap; justify-content: center; }
.socials li { flex: 0 0 calc((100% - 20 * var(--u)) / 3); }
.vote-sites button, .socials :is(a, button) { width: 100%; padding: .5em; border-radius: 5px; font: 400 calc(16 * var(--u))/1.2 Arial, sans-serif; }
.socials :is(a, button) { display: flex; align-items: center; justify-content: center; gap: .45em; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.socials svg { width: 1.4em; height: 1.4em; flex: none; }
.note.dropping { animation: note-drop .6s cubic-bezier(.3, 0, .2, 1) both; }
.note.lifting { animation: note-lift .45s cubic-bezier(.5, 0, .75, .4) both; }
@keyframes note-drop {
  from { translate: 0 calc(-50vh - 100%); rotate: -8deg; }
  72% { translate: 0 2%; rotate: 3deg; }
  to { translate: 0 0; rotate: 2deg; }
}
@keyframes note-lift { to { translate: 0 calc(-50vh - 100%); rotate: -6deg; } }
/* Copy feedback: for a moment after a copy, app.js reveals a checkmark (an X if copying failed)
   left of the address, or in place of the envelope. Until then the marks carry the hidden
   attribute, which browsers honor before any styling loads, so they cannot flash on load; nothing
   here may give .check, .cross or .mail a display. The address's mark sits outside its flow, so
   the address stays centered, in the envelope's 32 box and 8 gap (--u), so both rows match. */
.copy-mark {
  position: absolute; right: calc(100% - 1px); top: 50%; translate: 0 -50%; pointer-events: none;
  width: calc(32 * var(--u)); height: calc(32 * var(--u)); display: grid; place-items: center;
}
.copy-mark svg, .copy-email svg { display: block; }
/* Marks fade in as they appear (a hidden element never animates, so nothing runs on load) and fade
   out before app.js hides them again (.fading). The envelope fades back in the same way. */
.copy-mark > span, .copy-email > span { animation: mark-in .2s ease-out; transition: opacity .2s; }
.copy-mark > .fading, .copy-email > .fading { opacity: 0; }
@keyframes mark-in { from { opacity: 0; } }
/* Keyboard focus rings for every control on the sign; mouse clicks show none, and nothing has a hover box. */
.sign :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* Text for screen readers only: each copy result (.notice) and the second card's closing hint. */
.notice, .sr-only { position: fixed; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Portrait phones: the type is larger for the sign's size, and the face is taller (1.35, owner's
   choice, 2026-11-03, so the beta notice fits two pages; it was 1.5), which also keeps the bottom
   row clear of the address and inner rule. The design is drawn for the sign on a 390px phone
   (351px wide), and every portrait phone shows it scaled. The minimum and the padding give way to
   the screen, so a phone never scrolls: browser or system zoom can make a phone narrower than 320
   CSS px (a 390px iPhone at 150% is 260), and the sign then simply shows smaller in CSS pixels,
   the same size on the screen. */
@media (max-width: 480px) and (orientation: portrait) {
  .stage { --pad: clamp(12px, 5vw, 20px); --sign-min: min(280px, 100vw - 2 * var(--pad)); --sign-ratio: 1.35; }
  .sign { --u: calc(100cqw / 351); }
  .address { font-size: 4.8cqw; letter-spacing: .04em; }
  /* The title fills more of the width, so the beta tag sits above its end instead. */
  .beta { left: auto; right: 0; top: 0; margin: 0; translate: 50% -95%; font-size: calc(9 * var(--u)); }
  .discord, .back > .copy-email, .note-prev { left: 5%; bottom: 8%; }
  .flip, .note-next { right: 5%; bottom: 8%; }
  .note-close { right: 5%; top: 8%; }
  .discord svg, .copy-email svg, .flip svg, .copy-mark svg, .note-close svg, .note-prev svg, .note-next svg { width: calc(17 * var(--u)); }
  .note-content { inset: 8% 6% calc(8% + var(--arrow-row)); }
  .links, .note-title { font-size: 6cqw; }
  .note-page { font-size: calc(11.5 * var(--u)); }
  .note-page h3 { font-size: calc(14 * var(--u)); }
  .shop { font-size: calc(15 * var(--u)); }
  .note-page :is(.vote-sites, .socials) { margin-top: .9em; grid-template-columns: 1fr 1fr; gap: calc(5 * var(--u)); }
  .socials li { flex-basis: calc(50% - 2.5 * var(--u)); }
  .vote-sites button, .socials :is(a, button) { padding: .35em .4em; font-size: calc(13.5 * var(--u)); }
}
/* Only landscape windows below the stage minimum scroll (400×225); portrait phones always fit. */
@media (orientation: landscape) and (max-width: 399.98px), (orientation: landscape) and (max-height: 224.98px) {
  html, body { overflow: visible; }
}
/* Forced colors (Windows contrast themes, Firefox color override): drop the paint image so the
   user's text color sits on their own background rather than on the light texture. */
@media (forced-colors: active) { .sign-surface, .leaves { display: none; } }
/* Reduced motion: no particles, so no switch for them either. */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } .leaves { display: none; } }

