/*
 * Clearwater Family Preview (2008): the one stylesheet.
 *
 * The Halcyon web team's frame: a utility strip on the sky, the glossy masthead in the taskbar
 * material with a real tab strip on its bottom edge, and one white plate under it that holds the
 * whole page and ends in the pale footer band. Everything is set in the company typeface, Halcyon
 * Sans; Nunito appears only in the wordmark picture and in Dew's speech bubbles.
 *
 * Materials from DewPoint's style guide (STYLE.md), made tighter for the page: radii 6 (plate,
 * boxes, windows), 4 to 5 (buttons, tabs), 3 (fields, pictures); one tight shadow on the plate and
 * a small one on windows; gloss only on title bars, the masthead, tabs, buttons and the footer band.
 * The neutral consent frame (flat, dark) is where the game talks. One light from the top left.
 */

/* ---------- Fonts (subset WOFF, SIL Open Font License; see assets/fonts) ---------- */

@font-face {
  font-family: "Halcyon Sans";
  src: url("../fonts/HalcyonSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Halcyon Sans";
  src: url("../fonts/HalcyonSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Halcyon Sans";
  src: url("../fonts/HalcyonSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --sans: "Halcyon Sans", "Source Sans 3", Arial, sans-serif;

  --navy: #0B2C45;          /* text */
  --title: #0A4B87;         /* page titles */
  --speech: #0B3A5B;        /* Dew's speech */
  --muted: #35617D;         /* small print, labels */
  --link: #0454B5;

  --sky-0: #0D5DA6;
  --sky-1: #2E91D8;
  --sky-2: #6CC3EE;
  --sky-3: #BDE9F8;

  --plate-border: #86B4D2;
  --frame: #9CC8DE;         /* the thin frame of pictures */
  --rule: #C9E0EE;          /* ruled lines on the plate */
  --row-rule: #D5E7F2;
  --row-tint: #F3F9FD;
  --box: #F4FAFD;
  --box-border: #C5DEED;

  --plate-shadow: 0 2px 6px rgba(4, 40, 72, 0.3);
  --window-shadow: 0 3px 10px rgba(4, 40, 72, 0.3);

  /* The glossy blue of the primary button, the bullets and the step numbers. */
  --gloss-blue: linear-gradient(180deg, #6CC4EE 0%, #3592CF 50%, #1F78BC 50%, #155E9A 100%);
  /* The glass of the secondary button. */
  --gloss-glass: linear-gradient(180deg, #FFFFFF 0%, #EEF8FC 50%, #DCEFF8 50%, #E9F6FB 100%);

  /* White words on the sky or on gloss carry the kit's dark halo. */
  --halo:
    -1px -1px 1px rgba(11, 44, 69, 0.55),
    1px -1px 1px rgba(11, 44, 69, 0.55),
    -1px 1px 1px rgba(11, 44, 69, 0.7),
    1px 1px 1px rgba(11, 44, 69, 0.9),
    0 0 6px rgba(11, 44, 69, 0.35);
  --label-shadow: 0 1px 1px rgba(11, 44, 69, 0.75);

  /* The kit's keyboard focus ring: white inside, navy outside, 2 px each. */
  --ring: 0 0 0 2px #FFFFFF, 0 0 0 4px #0B2C45;
  --ring-dark: 0 0 0 2px #02060F, 0 0 0 4px #7FE8FF;

  --neutral-backdrop: #141A1F;
  --neutral-panel: #1E272E;
  --neutral-border: #3A4852;
  --neutral-button: #2B3640;
  --neutral-button-border: #5A6B78;
  --neutral-mark: #4F7FAD;
  --neutral-text: #DCEFFA;
}

/* ---------- Base ---------- */

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

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--sky-3);
  /* The morning sky of the desktop, top to horizon, over the whole document. */
  background-image:
    radial-gradient(circle at 89% 64px, rgba(255, 255, 255, 0.5) 0, rgba(255, 255, 255, 0.16) 120px, rgba(255, 255, 255, 0) 300px),
    linear-gradient(180deg, var(--sky-0) 0, var(--sky-1) 320px, var(--sky-2) max(640px, 52%), var(--sky-3) max(920px, 80%));
  background-repeat: no-repeat;
}

html.neutral-root {
  background: var(--neutral-backdrop);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 21px;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--navy);
}

h1 {
  font-size: 26px;
  line-height: 1.2;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  border-radius: 2px;
}

a:hover {
  color: #0A3E86;
}

/* Text links; buttons and tabs draw their own ring. */
:where(a):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #FFFFFF;
}

button {
  font: inherit;
}

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

/* One centred column of at most 980 px. */
.page {
  width: min(980px, 100% - 32px);
  margin: 0 auto;
  padding: 6px 0 24px;
}

/* ---------- The utility strip: small links on the sky, right-aligned ---------- */

.utility ul {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0 6px 0 0;
  list-style: none;
  font-size: 12px;
  line-height: 16px;
  color: #FFFFFF;
  text-shadow: var(--label-shadow);
}

.utility li {
  display: flex;
  align-items: center;
  padding: 5px 0 7px;
}

.utility li + li::before {
  content: "";
  width: 1px;
  height: 11px;
  margin: 0 10px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 1px 0 0 rgba(11, 44, 69, 0.25);
}

.utility a {
  color: #FFFFFF;
  text-decoration: none;
}

.utility a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.utility a:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 1px;
  box-shadow: 0 0 0 4px var(--navy);
  text-decoration: underline;
}

.utility [aria-current="page"] {
  font-weight: 600;
}

/* ---------- The masthead: the taskbar material, the lockup left, the tabs on its bottom edge ---------- */

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 24px;
  height: 68px;
  padding: 0 10px 0 12px;
  border: 1px solid #0D4F80;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg,
    rgba(196, 236, 250, 0.66) 0%,
    rgba(110, 190, 230, 0.6) 50%,
    rgba(24, 92, 150, 0.86) 50%,
    rgba(10, 56, 104, 0.95) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 1px 0 0 rgba(255, 255, 255, 0.2),
    inset -1px 0 0 rgba(255, 255, 255, 0.2),
    0 0 4px rgba(4, 40, 72, 0.25);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 2px 2px;
  border-radius: 5px;
  color: #FFFFFF;
  text-decoration: none;
}

.lockup:hover {
  color: #FFFFFF;
}

.lockup:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.lockup-orb {
  width: 44px;
  height: 44px;
  flex: none;
  filter: drop-shadow(0 2px 3px rgba(4, 40, 72, 0.35));
}

.wordmark {
  display: block;
  width: auto;
  height: 34px;
  margin-top: 1px;
  filter: drop-shadow(0 1px 1px rgba(11, 44, 69, 0.45));
}

/* The tag pill: the primary button's glossy blue, small. The only pill on the site. */
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px 1px;
  border: 1px solid #0F5E99;
  border-radius: 11px;
  background: linear-gradient(180deg, #6CC4EE 0, #2C86C6 50%, #1F78BC 50%, #155E9A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 2px rgba(4, 40, 72, 0.18);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: var(--label-shadow);
  white-space: nowrap;
}

/* The tab strip stands on the bar's bottom edge. */
.tabs {
  display: flex;
  align-self: flex-end;
  gap: 2px;
}

/* An unlit tab: clear glass on the bar, white words. */
.tab {
  --ring-now: 0 0 0 0 transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px 1px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.36) 0%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.12) 100%);
  box-shadow: var(--ring-now), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #FFFFFF;
  text-decoration: none;
  text-shadow: var(--label-shadow);
  white-space: nowrap;
  transition: background-color 100ms ease-out;
}

.tab:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.56) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(124, 225, 235, 0.2) 50%,
    rgba(124, 225, 235, 0.34) 100%);
}

.tab:active {
  background: linear-gradient(180deg,
    rgba(10, 56, 104, 0.35) 0%,
    rgba(10, 56, 104, 0.2) 50%,
    rgba(10, 56, 104, 0.3) 50%,
    rgba(10, 56, 104, 0.15) 100%);
}

/* The lit tab: white, the plate's border on three sides, and it runs on into the plate below. */
.tab[aria-current="page"] {
  position: relative;
  z-index: 2;
  height: 33px;
  margin-bottom: -1px;
  padding-bottom: 2px;
  border-color: var(--plate-border);
  background: #FFFFFF;
  color: var(--title);
  text-shadow: none;
  box-shadow: var(--ring-now);
}

.tab:focus-visible {
  outline: none;
  --ring-now: var(--ring);
}

/* ---------- The plate: the whole page on one white sheet ---------- */

.plate {
  position: relative;
  z-index: 1;
  border: 1px solid var(--plate-border);
  border-radius: 0 0 6px 6px;
  background: #FFFFFF;
  box-shadow: var(--plate-shadow);
}

main {
  display: block;
  padding: 18px 24px 28px;
  container-type: inline-size;
}

/* The breadcrumb, the title and the ruled line of every inner page. */
.page-head {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 #FFFFFF;
}

.page-head-bare {
  padding-bottom: 10px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.page-head-bare .crumbs {
  margin: 0;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover,
.crumbs a:focus-visible {
  text-decoration: underline;
}

.crumb-sep::before {
  content: "›";
  padding: 0 7px;
  color: var(--muted);
}

.page-title {
  margin: 0;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--title);
}

.lead {
  font-size: 16px;
  line-height: 24px;
}

.section-title {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  color: var(--navy);
}

.small {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}

/* A picture in the thin frame: 1 px border and a 3 px white mat. */
.framed {
  display: block;
  padding: 3px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #FFFFFF;
}

.framed img {
  display: block;
  width: 100%;
  border-radius: 1px;
}

/* A flat box on the plate, where one is needed. */
.box {
  border: 1px solid var(--box-border);
  border-radius: 6px;
  background: var(--box);
}

/* ---------- The footer band closes the plate ---------- */

.site-foot {
  padding: 12px 24px 14px;
  border-top: 1px solid var(--rule);
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #EEF6FB 0%, #DFEEF7 100%);
  box-shadow: inset 0 1px 0 #FFFFFF;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}

.site-foot p {
  margin: 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.foot-links li {
  display: flex;
  align-items: center;
}

.foot-links li + li::before {
  content: "";
  width: 1px;
  height: 11px;
  margin: 0 10px;
  background: #9DBFD6;
}

.foot-links a {
  text-decoration: none;
}

.foot-links a:hover,
.foot-links a:focus-visible {
  text-decoration: underline;
}

.foot-links a[aria-current="page"] {
  color: var(--navy);
}

.foot-lines {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 24px;
}

/* The time in the footer is a door: it looks like the rest of the line. */
.site-foot a.secret {
  color: inherit;
  text-decoration: none;
}

.site-foot a.secret:hover {
  text-decoration: underline;
}

/* ---------- Buttons: one family, one height ---------- */

.btn {
  --ring-now: 0 0 0 0 transparent;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  height: 32px;
  padding: 0 16px 1px;
  margin: 0;
  border: 1px solid #8DB9D3;
  border-radius: 4px;
  background: var(--gloss-glass);
  box-shadow: var(--ring-now), inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 1px rgba(4, 40, 72, 0.12);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 100ms ease-out;
}

.btn:hover {
  color: var(--navy);
  border-color: #6FA6C8;
  background: linear-gradient(180deg, #FFFFFF 0%, #F3FBFE 50%, #D2EEF8 50%, #E2F6FC 100%);
}

.btn:active {
  background: linear-gradient(180deg, #D6ECF6 0%, #C9E6F3 50%, #C2E2F1 50%, #D4ECF6 100%);
  box-shadow: var(--ring-now), inset 0 1px 2px rgba(4, 40, 72, 0.18);
}

.btn:focus-visible {
  outline: none;
  --ring-now: var(--ring);
}

.btn-primary {
  border-color: #0F5E99;
  color: #FFFFFF;
  text-shadow: var(--label-shadow);
  background: var(--gloss-blue);
  box-shadow: var(--ring-now), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 1px rgba(4, 40, 72, 0.2);
}

.btn-primary:hover {
  color: #FFFFFF;
  border-color: #0F5E99;
  background: linear-gradient(180deg, #84D8F2 0%, #3D9DD8 50%, #2384C6 50%, #1867A6 100%);
}

.btn-primary:active {
  background: linear-gradient(180deg, #2C86C6 0%, #1F78BC 50%, #155E9A 50%, #0F5E99 100%);
  box-shadow: var(--ring-now), inset 0 1px 2px rgba(2, 6, 15, 0.3);
}

/* Disabled: the same button gone flat and grey, whichever kind it was. */
.btn[aria-disabled="true"],
.btn:disabled,
.btn-primary[aria-disabled="true"],
.btn-primary:disabled {
  cursor: default;
  border-color: #C3D0D8;
  background: #EDF2F5;
  color: #8B9DA9;
  text-shadow: none;
  box-shadow: var(--ring-now);
}

/* The few buttons that lead a page: the same height, a little wider. */
.btn-large {
  min-width: 132px;
  padding: 0 22px 1px;
}

.btn[aria-pressed="true"] {
  border-color: #49A6D4;
  background: linear-gradient(180deg, #D6ECF6 0%, #C9E6F3 50%, #C2E2F1 50%, #D4ECF6 100%);
  box-shadow: var(--ring-now), inset 0 1px 2px rgba(4, 40, 72, 0.18);
}

.btn[aria-busy="true"] {
  cursor: progress;
}

.btn[aria-busy="true"]::after {
  content: "";
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: busy 800ms linear infinite;
}

@keyframes busy {
  to { transform: rotate(360deg); }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* ---------- Bullets, ticks and numbers: small glossy orbs in the kit's blue ---------- */

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 26px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 1px solid #0F5E99;
  border-radius: 50%;
  background: var(--gloss-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 4px;
  height: 7px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 24px;
  margin: 0 0 12px;
  padding: 2px 0 0 36px;
  counter-increment: step;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding-bottom: 1px;
  border: 1px solid #0F5E99;
  border-radius: 50%;
  background: var(--gloss-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 1px rgba(4, 40, 72, 0.2);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: var(--label-shadow);
}

.steps strong {
  font-weight: 600;
}

/* ---------- Windows: the focused window frame, 6 px outside and 4 px inside ---------- */

.window {
  position: relative;
  border: 1px solid #0D4F80;
  border-radius: 6px;
  padding: 0 5px 5px;
  background: linear-gradient(180deg, #C2EAF9 0%, #8ACBEA 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), var(--window-shadow);
}

.window::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 1px;
  height: 14px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.12) 100%);
  pointer-events: none;
}

.window-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 3px 0 3px 3px;
}

.window-title h2,
.window-name {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* The window's inset well. */
.window-body {
  position: relative;
  border: 1px solid #7FB3D2;
  border-radius: 4px;
  background: #FFFFFF;
  box-shadow: inset 0 1px 2px rgba(4, 40, 72, 0.12);
  padding: 12px 14px 14px;
  color: var(--navy);
}

/* The kit's Sunset glyph: a coral sun over two horizon lines. */
.glyph-sunset {
  position: relative;
  flex: none;
  width: 20px;
  height: 18px;
}

.glyph-sunset::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 8px;
  border: 1px solid #D9542E;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #FFE4D6 0%, #F59A76 60%, #D9542E 100%);
}

.glyph-sunset::after {
  content: "";
  position: absolute;
  left: 1px;
  top: 12px;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: #D9542E;
  box-shadow: 3px 4px 0 -0px #F59A76;
}

/* The clock glyph: a small glass face. */
.glyph-clock {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid #266195;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFFFF 0, #C7EBF4 60%, #49B4DE 100%);
}

.glyph-clock::before,
.glyph-clock::after {
  content: "";
  position: absolute;
  left: 7.5px;
  bottom: 7.5px;
  width: 1.5px;
  border-radius: 1px;
  background: var(--navy);
  transform-origin: 50% 100%;
}

.glyph-clock::before {
  height: 5px;
  transform: rotate(96deg);
}

.glyph-clock::after {
  height: 7px;
  transform: rotate(72deg);
}

/* ---------- Dew's speech bubble: the kit's bubble, Nunito Bold (Dew speaks in Nunito) ---------- */

.bubble {
  position: relative;
  display: block;
  width: fit-content;
  min-width: 96px;
  max-width: 320px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border: 1px solid #BFDDEB;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF9FD 100%);
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
  color: var(--speech);
  filter: drop-shadow(0 3px 4px rgba(4, 40, 72, 0.22)) drop-shadow(0 1px 1px rgba(4, 40, 72, 0.12));
}

/* The tail: a softly curved wedge 20 x 14 px, 28 px from the corner, on the left,
   with an open base so it joins the body without a seam. The border colour is the
   outer wedge, the fill colour the inner one, 1 px in. */
.bubble::before,
.bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 22px;
  width: 24px;
  height: 16px;
  margin-top: -1px;
}

.bubble::before {
  background: #BFDDEB;
  clip-path: path("M4 0 L24 0 Q15.5 9.5 1 15.5 Q7.5 8 4 0 Z");
}

.bubble::after {
  background: #EDF9FD;
  clip-path: path("M5.3 0 L21.7 0 Q14.2 8.1 3.4 13.1 Q8.2 6.9 5.3 0 Z");
}

.bubble .ghost {
  display: block;
  visibility: hidden;
}

.bubble .typed {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 12px;
}

.bubble.is-silent {
  visibility: hidden;
}

.say {
  position: relative;
}

/* ---------- Home: the banner ---------- */

/* The banner in the thin frame with a 4 px white mat. */
.hero {
  padding: 4px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #FFFFFF;
  container-type: inline-size;
}

/* The backdrop is as wide as the scene (2400 x 750: 31.25 % of its width tall) and sits --crop below the
   bottom edge, so the horizon is at --horizon from the top: high enough for the headline to stand on the sky. */
.hero-scene {
  --crop: 8.4cqw;
  --horizon: calc(100% - 31.25cqw + var(--crop));
  position: relative;
  overflow: hidden;
  height: 368px;
  border-radius: 1px;
  background-color: var(--sky-2);
  background-image:
    url("../img/backdrop-hills.jpg"),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) calc(var(--horizon) * 0.55),
      var(--sky-2) calc(var(--horizon) * 0.86), var(--sky-3) var(--horizon));
  background-repeat: no-repeat;
  background-position: 50% calc(100% + var(--crop)), 0 0;
  background-size: 100% auto, 100% 100%;
}

/* The scene's inner edge, above the art. */
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(13, 79, 128, 0.22);
  pointer-events: none;
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* The sun and its glow at the top right, as on the desktop. */
.sun {
  position: absolute;
  left: 88%;
  top: 16%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    #FFFFFF 0,
    #FFFFFF 9%,
    rgba(255, 255, 255, 0.78) 13%,
    rgba(255, 255, 255, 0.32) 28%,
    rgba(255, 255, 255, 0.1) 46%,
    rgba(255, 255, 255, 0) 70%);
}

/* The banner's bubbles: --x, --y (where each stands still with reduced motion), --s its size,
   --t its rise, --d where in its rise it starts, --a and --w its sway. */
/* They rise over the lake and fade out before the line of the button, so none passes over the headline, its
   second line, the button or the sun: --rise is the distance from the banner's bottom to that line. */
.hero-sky {
  --rise: 206px;
}

.hero-sky .glass-bubble { --o: 0.55; }
.b1 { --x: 64%; --y: 52%; --s: 20px; --t: 12s; --d: -3s; --a: 10px; --w: 4.4s; }
.b2 { --x: 72%; --y: 64%; --s: 14px; --t: 15s; --d: -9s; --a: 8px; --w: 3.8s; }
.b3 { --x: 79%; --y: 46%; --s: 11px; --t: 18s; --d: -6s; --a: 8px; --w: 3.4s; }
.b4 { --x: 40%; --y: 60%; --s: 12px; --t: 16s; --d: -12s; --a: 9px; --w: 4s; }
.b5 { --x: 93%; --y: 50%; --s: 24px; --t: 11s; --d: -7s; --a: 10px; --w: 5s; }

/* The headline and its line let a click through to a bubble behind them; the button takes it. */
.hero-copy,
.hero-copy h1,
.hero-sub {
  pointer-events: none;
}

.hero-copy .btn {
  pointer-events: auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 26px 0 0 30px;
}

/* The ad's headline: Halcyon Sans Bold, white with the kit's dark halo. */
.hero h1 {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: var(--halo);
}

.hero-sub {
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: #FFFFFF;
  text-shadow: var(--halo);
}

/* The five homes, each standing on the hill. */
.homes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* art:start (tools/art.py writes this block: the homes' floor as a share of their canvas) */
:root { --home-floor: 0.93125; }
/* art:end */

/* Each home: --x its centre, --w its canvas width in cqw, --foot where its floor stands above the scene's
   bottom. The canvas is moved down by the part of it below the floor, so new renders keep their footing. */
.home {
  position: absolute;
  left: var(--x);
  bottom: calc(var(--foot) - var(--w) * 1cqw * (1 - var(--home-floor)));
  width: calc(var(--w) * 1cqw);
  transform: translateX(-50%);
}

.home img {
  display: block;
  width: 100%;
  height: auto;
}

.home-1 { --x: 11%; --w: 16.6; --foot: 2.6cqw; }
.home-2 { --x: 30.5%; --w: 16.6; --foot: 3.1cqw; }
.home-3 { --x: 50%; --w: 16.6; --foot: 3.4cqw; }
.home-4 { --x: 69.5%; --w: 16.6; --foot: 3.1cqw; }
.home-5 { --x: 89%; --w: 16.6; --foot: 2.6cqw; }

.home-5 .lit {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 120ms ease-out;
}

.hero.is-lit .home-5 .lit,
.hero:has([data-apply-today]:hover) .home-5 .lit,
.hero:has([data-apply-today]:focus-visible) .home-5 .lit {
  opacity: 1;
  animation: window-up 220ms ease-out;
}

@keyframes window-up {
  0% { opacity: 0; filter: brightness(1.25); }
  60% { opacity: 1; filter: brightness(1.18); }
  100% { opacity: 1; filter: none; }
}

/* ---------- Home: the strip of three links, the two columns ---------- */

.quicklinks {
  display: flex;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 #FFFFFF;
  list-style: none;
}

.quicklinks li {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
}

.quicklinks li + li {
  border-left: 1px solid var(--rule);
}

.quicklinks a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  text-decoration: none;
}

.quicklinks a:hover,
.quicklinks a:focus-visible {
  text-decoration: underline;
}

/* The link's glossy glyph orb, from the orb's colours. */
.ql-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid #266195;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 72%, #42D5EB 0, #248ED1 58%, #0454B5 100%);
  box-shadow: 0 1px 1px rgba(4, 40, 72, 0.25);
}

.ql-icon::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 4%;
  height: 46%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.1));
}

.ql-icon::after {
  content: "";
  position: absolute;
}

/* a white drop */
.ql-icon-sound::after {
  left: 9px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 0 50% 50% 50%;
  background: #FFFFFF;
  transform: rotate(45deg);
  filter: drop-shadow(1px 1px 0 rgba(11, 44, 69, 0.5));
}

/* a down arrow */
.ql-icon-downloads::after {
  left: 9px;
  top: 7px;
  width: 7px;
  height: 7px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  filter: drop-shadow(1px 1px 0 rgba(11, 44, 69, 0.5));
}

/* a small card */
.ql-icon-card::after {
  left: 6px;
  top: 8px;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FFFFFF 0 55%, #C7EBF4 55%);
  box-shadow: 1px 1px 0 rgba(11, 44, 69, 0.5);
}

/* A main column and a side column of 300 px that end together. */
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.page-home .columns {
  margin-top: 22px;
}

/* The lead and the ticks on the left, a portrait of Dew on the right as tall as they are; then a rule and
   the closing line. Blocks follow at their normal spacing; any difference in height to the side column
   stays at the very bottom. */
.intro-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  align-items: start;
}

.intro .lead {
  margin: 0 0 18px;
}

/* The ticks a little roomier here than in running text. */
.intro .ticks li {
  margin-bottom: 14px;
  line-height: 22px;
}

.intro .ticks li::before {
  top: 3px;
}

.intro .ticks li::after {
  top: 6px;
}

.intro .ticks li:last-child {
  margin-bottom: 0;
}

.intro-dew {
  --dew-w: 174px;
  margin: 0 4px 0 0;
}

.coming {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 #FFFFFF;
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
  color: var(--title);
}

.coming-orb {
  flex: none;
  width: 24px;
  height: 24px;
  background: url("../img/orb.png") center / contain no-repeat;
}

/* The Clearwater Update box (the game's own Details rows). */
.details {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
}

.details li {
  padding: 1px 0;
}

.details .key {
  font-weight: 600;
  color: var(--muted);
}

.details-wide {
  margin: 4px 0;
  padding: 5px 0 !important;
  border-top: 1px solid var(--row-rule);
  border-bottom: 1px solid var(--row-rule);
}

.count {
  font-weight: 700;
}

.update .actions {
  margin-top: 12px;
}

.update .window-body {
  padding-top: 10px;
  padding-bottom: 10px;
}

.update .actions .btn {
  flex: 1 1 0;
}

/* Dew under the box's buttons, the bubble rising above with its tail on Dew. */
.say-room {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 250ms ease-out;
}

.say-room > .say {
  min-height: 0;
  overflow: hidden;
}

.say-room.is-open {
  grid-template-rows: 1fr;
}

.say-room.is-settled > .say {
  overflow: visible;
}

/* Closed, the room is nothing at all: the bubble's own top margin opens with it. */
.say-small {
  padding: 0 8px 0 2px;
}

.say-small .bubble {
  margin-top: 14px;
}

.say-small .bubble {
  font-size: 15px;
}

.say-dew {
  --dew-w: 46px;
  margin: 10px 0 0 6px;
}

/* The box's shake: three swings, dying away (reduced motion: a short dip). */
.is-shaking {
  animation: shake 250ms ease-out;
}

.is-dipping {
  animation: dip 120ms ease-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  18% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

@keyframes dip {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ---------- Apply ---------- */

.apply-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "lead ." "steps home" "real real";
  column-gap: 32px;
}

.join-lead {
  grid-area: lead;
  margin: 0 0 20px;
}

.apply-grid .steps {
  grid-area: steps;
  align-self: center;
}

.apply-grid .steps li {
  font-size: 15px;
  line-height: 22px;
}

.apply-grid .steps li::before {
  top: 0;
}

/* The little home in the side column, centred in it and level with the steps; the transparent top of its
   picture does not count, so the white band stays as tall as the steps. */
.join-home {
  grid-area: home;
  align-self: center;
  justify-self: center;
  width: 136px;
  margin: -24px 0 -14px;
  filter: drop-shadow(3px 6px 5px rgba(4, 40, 72, 0.16));
}

.join-home img {
  display: block;
  width: 100%;
}

/* The game talking, as wide as the plate, under the page's own content. */
.apply-grid .real {
  grid-area: real;
  margin: 24px -24px -28px;
  border-width: 1px 0 0;
  border-radius: 0;
}

/* ---------- Meet Dew ---------- */

.meet-body .lead {
  max-width: 640px;
  margin: 0 0 18px;
}

/* Dew on a small piece of the morning, in the thin frame, the bubble up to the right. */
.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px minmax(0, 1fr);
  grid-template-rows: minmax(118px, auto) auto auto;
  padding: 22px 16px 14px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}

.stage-scene {
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 1px;
  background-color: var(--sky-2);
  --horizon: calc(100% - max(31.25cqw, 340px) + 60px);
  background-image:
    radial-gradient(circle at 89% 14%, #FFFFFF 0, #FFFFFF 16px, rgba(255, 255, 255, 0.55) 30px, rgba(255, 255, 255, 0) 130px),
    url("../img/backdrop-hills.jpg"),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) calc(var(--horizon) * 0.7), var(--sky-3) var(--horizon));
  background-repeat: no-repeat;
  background-position: 0 0, 50% calc(100% + 60px), 0 0;
  background-size: 100% 100%, max(100%, 1088px) auto, 100% 100%;
}

.say-large {
  grid-column: 3;
  grid-row: 1;
  align-self: end;
  margin-left: -36px;
}

.say-large .bubble {
  max-width: 300px;
}

.dew-button {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  width: 160px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dew-button .dew-live {
  --dew-w: 100%;
}

.dew-button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.is-hopping {
  animation: hop 250ms ease-out;
}

@keyframes hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
  75% { transform: translateY(0); }
  88% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.hint {
  grid-column: 2;
  grid-row: 3;
  justify-self: center;
  margin: 24px 0 0; /* 12 px clear of Dew's shadow on the grass */
  font-weight: 600;
  font-size: 14px;
  color: #FFFFFF;
  text-shadow: var(--halo);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.card {
  margin: 0;
}

.card > img,
.card-link {
  display: block;
  padding: 3px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #FFFFFF;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
}

.card-link img {
  border-radius: 1px;
}

.card-link:hover {
  border-color: #5FA5CF;
}

.card figcaption {
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}

/* ---------- About Halcyon ---------- */

.about-text {
  display: flex;
  flex-direction: column;
}

/* The orb at the right of the first paragraph. */
.about-orb {
  align-self: flex-end;
  width: 88px;
  margin: 0 0 -88px;
  filter: drop-shadow(1px 3px 3px rgba(4, 40, 72, 0.2));
}

.about-text .lead {
  margin: 0 108px 14px 0;
}

/* The last line closes the text on a rule, at the text's own spacing. */
.about-text p:last-child {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

/* Halcyon Time: the clock on the left, its words and its button beside it. */
.time .window-body {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}

.time .clock {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
}

.time .clock-label,
.time .clock-sync {
  grid-column: 2;
  text-align: left;
}

.time .actions {
  grid-column: 2;
  margin-top: 8px;
}

.time .sync-status {
  grid-column: 1 / -1;
}

/* Until Synchronize now is pressed the line is empty and takes no room. */
.time .sync-status:empty {
  min-height: 0;
  margin: 0;
}

.clock {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 2px auto 10px;
  border: 1px solid #8DB9D3;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #FFFFFF 0, #F1FAFD 42%, #DDF2FA 78%, #C7EBF4 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, inset -2px -6px 12px rgba(36, 142, 209, 0.14), 0 1px 3px rgba(4, 40, 72, 0.2);
}

/* Twelve hour marks. */
.clock::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1.2deg, var(--muted) 0deg 2.4deg, transparent 2.4deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0, transparent 37px, #000 37.5px);
  mask: radial-gradient(circle, transparent 0, transparent 37px, #000 37.5px);
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  border-radius: 2px;
  background: var(--navy);
  transform-origin: 50% 100%;
}

/* 03:12, the last time it heard from Halcyon. */
.clock-hour {
  width: 4px;
  height: 25px;
  margin-left: -2px;
  transform: rotate(96deg);
}

.clock-minute {
  width: 3px;
  height: 37px;
  margin-left: -1.5px;
  transform: rotate(72deg);
}

.clock-cap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 1px solid #0F5E99;
  border-radius: 50%;
  background: var(--gloss-blue);
}

.clock-label {
  margin: 0 0 4px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.clock-sync {
  margin: 0;
  text-wrap: balance;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
  text-align: center;
}

.sync-status {
  min-height: 36px;
  margin: 10px 0 0;
  text-wrap: balance;
  font-size: 13px;
  line-height: 18px;
}

/* ---------- 404 ---------- */

.lost-stage {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  margin: 4px 0 0 8px;
}

.say-static {
  grid-column: 2;
  grid-row: 1;
  margin-left: -40px;
}

.say-static .bubble {
  max-width: 280px;
}

.lost-dew {
  grid-column: 1;
  grid-row: 2;
  --dew-w: 112px;
}

.lost-action {
  margin: 24px 0 10px;
}

/* ---------- The neutral consent frame: the game talking (flat, no gloss) ---------- */

.neutral,
.honest {
  border: 1px solid var(--neutral-border);
  border-radius: 6px;
  background: var(--neutral-panel);
  color: var(--neutral-text);
}

.neutral {
  padding: 24px 28px 28px;
}

.neutral h1,
.neutral h2,
.neutral h3 {
  font-weight: 700;
  color: var(--neutral-text);
}

.neutral h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

.neutral h3 {
  margin: 22px 0 10px;
  font-size: 16px;
  line-height: 1.3;
}

.neutral a:not(.btn-neutral),
.honest a:not(.btn-neutral) {
  color: var(--neutral-text);
  font-weight: 600;
}

.neutral a:not(.btn-neutral):hover,
.honest a:not(.btn-neutral):hover {
  color: #FFFFFF;
}

.neutral a:not(.btn-neutral):focus-visible,
.honest a:not(.btn-neutral):focus-visible {
  outline-color: #7FE8FF;
  box-shadow: 0 0 0 2px #02060F;
}

.btn-neutral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px 1px;
  border: 1px solid var(--neutral-button-border);
  border-radius: 5px;
  background: var(--neutral-button);
  color: var(--neutral-text);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-neutral:hover {
  color: var(--neutral-text);
  background: #35424D;
}

.btn-neutral:active {
  background: #18212A;
}

.btn-neutral:focus-visible {
  outline: none;
  box-shadow: var(--ring-dark);
}

/* The one button that leaves the site: the neutral frame's light button. */
.btn-neutral-main {
  min-height: 46px;
  padding: 0 26px 1px;
  border-color: var(--neutral-text);
  background: var(--neutral-text);
  color: var(--neutral-backdrop);
  font-size: 17px;
  font-weight: 700;
}

.btn-neutral-main:hover {
  color: var(--neutral-backdrop);
  background: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-neutral-main:active {
  background: #A9C3D3;
  border-color: #A9C3D3;
}

.real {
  padding: 22px 24px 26px;
  font-size: 15px;
  line-height: 22px;
}

.real h2 {
  font-size: 18px;
}

.real p {
  max-width: 760px;
}

.form-row {
  margin: 14px 0 8px;
}

.form-note {
  font-size: 14px;
}

@media (min-width: 700px) {
  .real .know {
    column-count: 2;
    column-gap: 40px;
  }

  .real .know li {
    break-inside: avoid;
  }
}

.know,
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The neutral frame's own small marks: flat 5 px squares on the first line's middle. */
.know li,
.facts li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 17px;
}

.know li::before,
.facts li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: calc(0.5lh - 3px);
  width: 6px;
  height: 6px;
  background: var(--neutral-mark);
}

.know li:last-child {
  margin-bottom: 0;
}

/* The honest strip at the end of every page, apart from the plate. */
.honest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
  padding: 14px 20px;
  font-size: 14px;
  line-height: 21px;
}

.honest p {
  flex: 1 1 320px;
  margin: 0;
}

.honest .honest-credit {
  flex-basis: 100%;
  order: 2;
  font-size: 13px;
  color: rgba(220, 239, 250, 0.82);
}

/* The privacy page: the whole page is the game talking. */
.neutral-top {
  padding: 8px 0 16px;
}

.privacy-text {
  padding: 32px 36px 28px;
}

.privacy-text h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.privacy-text p,
.privacy-text li {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.6;
}

.privacy-text p {
  margin: 0 0 16px;
}

.privacy-text .updated {
  margin-bottom: 24px;
  font-size: 15px;
  color: rgba(220, 239, 250, 0.78);
}

.privacy-text .facts {
  margin: 0 0 16px;
}

.privacy-text p:last-child {
  margin-bottom: 0;
}

/* ---------- The living sky (BRIEF-4): bubbles rising behind every in-world page ---------- */

/* The layer is fixed to the window, behind everything, and ignores the pointer; only its bubbles take it.
   The page's own column lets clicks through where it has nothing (between its blocks). */
.sky {
  --rise: calc(100vh - 120px); /* they are gone before the top 120 px: the utility strip and the masthead */
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
}

.sky ~ .page,
.sky ~ .page > .site-head {
  pointer-events: none;
}

.sky ~ .page > .plate,
.sky ~ .page > .honest,
.sky ~ .page .utility a,
.sky ~ .page .masthead {
  pointer-events: auto;
}

/* The kit's bubble: clear glass with a thin bright rim, a highlight arc at the top left, a faint cyan
   body and a little shade at the bottom right. It rises in a straight line (translate) and sways and
   breathes a little on the way (transform); nothing else moves. */
.glass-bubble {
  position: absolute;
  bottom: 0;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  opacity: var(--o, 0.5);
  pointer-events: auto;
  translate: 0 calc(var(--s) + 8px);
  animation:
    bubble-rise var(--t) linear var(--d) infinite,
    bubble-sway var(--w) ease-in-out var(--d) infinite alternate;
}

.glass-bubble > span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 29%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0.85) 7%, rgba(255, 255, 255, 0) 16%),
    radial-gradient(circle at 70% 76%, rgba(4, 40, 72, 0.12) 0, rgba(4, 40, 72, 0) 42%),
    radial-gradient(circle, rgba(124, 225, 235, 0.1) 0, rgba(124, 225, 235, 0.14) 64%, rgba(255, 255, 255, 0.45) 90%, rgba(255, 255, 255, 0.2) 100%);
}

/* The pop: a thin ring opens and five droplets fly a few pixels out while the bubble swells and goes. */
.glass-bubble::before,
.glass-bubble::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.glass-bubble::before {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.glass-bubble::after {
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  box-shadow:
    0 calc(var(--s) * -0.55) 0 rgba(255, 255, 255, 0.95),
    calc(var(--s) * 0.52) calc(var(--s) * -0.17) 0 rgba(255, 255, 255, 0.95),
    calc(var(--s) * 0.32) calc(var(--s) * 0.45) 0 rgba(255, 255, 255, 0.95),
    calc(var(--s) * -0.32) calc(var(--s) * 0.45) 0 rgba(255, 255, 255, 0.95),
    calc(var(--s) * -0.52) calc(var(--s) * -0.17) 0 rgba(255, 255, 255, 0.95);
}

.glass-bubble.is-popping > span {
  animation: bubble-pop 180ms ease-out forwards;
}

.glass-bubble.is-popping::before {
  animation: bubble-ring 180ms ease-out forwards;
}

.glass-bubble.is-popping::after {
  animation: bubble-drops 180ms ease-out forwards;
}

/* After the pop it waits out of sight, then starts again from below. */
.glass-bubble.is-resting {
  visibility: hidden;
  animation: none;
}

.glass-bubble.is-reborn {
  animation-delay: 0s, 0s;
}

/* From below the edge to --rise above it, fading out over the last part of the way. */
@keyframes bubble-rise {
  0% { translate: 0 calc(var(--s) + 8px); opacity: var(--o, 0.5); }
  72% { opacity: var(--o, 0.5); }
  100% { translate: 0 calc(var(--s) - var(--rise)); opacity: 0; }
}

@keyframes bubble-sway {
  from { transform: translateX(calc(-1 * var(--a))) scale(0.985); }
  to { transform: translateX(var(--a)) scale(1.015); }
}

@keyframes bubble-pop {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes bubble-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes bubble-drops {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* The window's bubbles stand at least 26 px from each edge, so their sway never reaches past it. Most rise
   in the margins beside the column on a desktop; a few cross the middle, seen through the masthead's glass.
   Large ones are near: faster and clearer; small ones far: slower and fainter. */
.sky .glass-bubble {
  left: calc(26px + var(--x) * (100% - 52px - var(--s)));
}

.sky .glass-bubble:nth-child(1) { --x: 0.04; --y: 18%; --s: 14px; --t: 38s; --d: -5s; --o: 0.38; --a: 12px; --w: 4.6s; }
.sky .glass-bubble:nth-child(2) { --x: 0.97; --y: 34%; --s: 26px; --t: 24s; --d: -16s; --o: 0.55; --a: 18px; --w: 5.4s; }
.sky .glass-bubble:nth-child(3) { --x: 0.09; --y: 62%; --s: 32px; --t: 21s; --d: -3s; --o: 0.6; --a: 22px; --w: 6.2s; }
.sky .glass-bubble:nth-child(4) { --x: 0.93; --y: 76%; --s: 12px; --t: 42s; --d: -30s; --o: 0.32; --a: 10px; --w: 4s; }
.sky .glass-bubble:nth-child(5) { --x: 0.5; --y: 88%; --s: 18px; --t: 34s; --d: -12s; --o: 0.42; --a: 14px; --w: 5s; }
.sky .glass-bubble:nth-child(6) { --x: 0.02; --s: 22px; --t: 28s; --d: -22s; --o: 0.48; --a: 16px; --w: 5.8s; }
.sky .glass-bubble:nth-child(7) { --x: 0.9; --s: 34px; --t: 19s; --d: -9s; --o: 0.62; --a: 24px; --w: 6.6s; }
.sky .glass-bubble:nth-child(8) { --x: 0.3; --s: 10px; --t: 44s; --d: -27s; --o: 0.3; --a: 10px; --w: 3.8s; }
.sky .glass-bubble:nth-child(9) { --x: 0.12; --s: 16px; --t: 36s; --d: -33s; --o: 0.4; --a: 12px; --w: 4.4s; }
.sky .glass-bubble:nth-child(10) { --x: 0.99; --s: 18px; --t: 32s; --d: -4s; --o: 0.44; --a: 14px; --w: 5.2s; }
.sky .glass-bubble:nth-child(11) { --x: 0.7; --s: 30px; --t: 25s; --d: -18s; --o: 0.52; --a: 18px; --w: 6s; }
.sky .glass-bubble:nth-child(12) { --x: 0.06; --s: 11px; --t: 40s; --d: -14s; --o: 0.34; --a: 10px; --w: 4.2s; }

/* Meet Dew's scene: three small bubbles rise beside Dew, under his bubble and his button. */
.stage-bubbles {
  --rise: 330px;
  position: absolute;
  inset: 3px;
  overflow: hidden;
  pointer-events: none;
}

.stage-bubbles .glass-bubble { --o: 0.55; }
.stage-bubbles .glass-bubble:nth-child(1) { --x: 30%; --y: 40%; --s: 12px; --t: 17s; --d: -4s; --a: 8px; --w: 4s; }
.stage-bubbles .glass-bubble:nth-child(2) { --x: 63%; --y: 58%; --s: 16px; --t: 21s; --d: -13s; --a: 10px; --w: 4.6s; }
.stage-bubbles .glass-bubble:nth-child(3) { --x: 70%; --y: 24%; --s: 10px; --t: 25s; --d: -19s; --a: 7px; --w: 3.6s; }

.hint {
  position: relative;
}

/* ---------- The living Dew: layers from teaser F's renderer, moved with transforms ---------- */

.dew-live {
  position: relative;
  display: block;
  flex: none;
  width: var(--dew-w, 128px);
  aspect-ratio: 300 / 392;
  isolation: isolate;
}

/* His soft shadow on the ground, to the bottom right. */
.dew-live::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 2%;
  bottom: -5%;
  z-index: -1;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(4, 40, 72, 0.3), rgba(4, 40, 72, 0));
}

.dew-bob,
.dew-hop {
  position: absolute;
  inset: 0;
}

.dew-bob {
  animation: dew-bob 3.4s ease-in-out infinite;
}

.dew-hop {
  transform-origin: 50% 100%;
}

.dew-live.is-hopping .dew-hop {
  animation: dew-hop 440ms linear;
}

@keyframes dew-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.2%); }
}

@keyframes dew-hop {
  0% { transform: translateY(0) scale(1, 1); animation-timing-function: cubic-bezier(0.3, 0, 0.6, 1); }
  14% { transform: translateY(0) scale(1.06, 0.92); animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  48% { transform: translateY(-13%) scale(0.97, 1.04); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  78% { transform: translateY(0) scale(1.05, 0.94); animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  100% { transform: translateY(0) scale(1, 1); }
}

.dew-layer {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

/* The eyes follow the pointer or the last touch (the script sets --look-x and --look-y, in % of Dew). */
.dew-eyes {
  position: absolute;
  inset: 0;
  transform: translate(calc(var(--look-x, 0) * 1%), calc(var(--look-y, 0) * 1%));
  transition: transform 180ms ease-out;
}

.dew-eye-left,
.dew-eye-right {
  transform-origin: 50% 55%;
  transition: transform 70ms ease-in;
}

.dew-live.is-blinking .dew-eye-left,
.dew-live.is-blinking .dew-eye-right {
  transform: scaleY(0.1);
}

.dew-mouth-open,
.dew-mouth-talk,
.dew-live[data-mouth="open"] .dew-mouth-smile,
.dew-live[data-mouth="talk"] .dew-mouth-smile {
  visibility: hidden;
}

.dew-live[data-mouth="open"] .dew-mouth-open,
.dew-live[data-mouth="talk"] .dew-mouth-talk {
  visibility: visible;
}

/* dew-layers:start (tools/dew_layers.py writes this block from site/assets/img/dew-layers.json) */
.dew-body { left: 0%; top: 0%; width: 100%; }
.dew-eye-left { left: 30.3333%; top: 53.0612%; width: 12.6667%; }
.dew-eye-right { left: 57.6667%; top: 53.0612%; width: 12.6667%; }
.dew-mouth-smile { left: 43%; top: 70.7908%; width: 14.6667%; }
.dew-mouth-open { left: 42%; top: 70.1531%; width: 16.6667%; }
.dew-mouth-talk { left: 45.3333%; top: 70.4082%; width: 10%; }
/* dew-layers:end */

/* ---------- Sound Check: the Setup page on a computer screen shown on the plate ---------- */

.screen {
  position: relative;
  padding: 28px 28px 14px;
  border: 1px solid #0A1C38;
  border-radius: 3px;
  background:
    radial-gradient(ellipse at 70% 55%, rgba(31, 154, 207, 0.35) 0, rgba(31, 154, 207, 0) 60%),
    linear-gradient(180deg, #0D2141 0%, #0E2A52 26%, #125D91 66%, #1F9ACF 100%);
  box-shadow: inset 0 0 0 1px rgba(127, 232, 255, 0.12);
  color: var(--neutral-text);
}

.screen-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 2px 0 24px;
  text-align: center;
}

.screen-start.is-gone {
  display: none;
}

.screen-hook {
  margin: 0;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  color: #FFFFFF;
  text-shadow: var(--halo);
}

.screen-silent {
  margin: 0;
  font-size: 13px;
  color: var(--neutral-text);
}

/* The Setup window in the middle of the screen, Dew beside it on the right. */
.sound-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px) minmax(0, 1fr);
  align-items: end;
  column-gap: 8px;
}

.setup {
  grid-column: 2;
}

.setup-body {
  padding: 16px 20px 18px;
}

.setup-body h2 {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 18px;
}

/* The kit's Sound Check field: three drops, the lit one full, the others faint. */
.drops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 72px 0;
  align-items: center;
  justify-items: center;
  margin: 14px 0;
  border: 1px solid var(--box-border);
  border-radius: 4px;
  background: var(--box);
  transition: grid-template-rows 450ms ease-out;
}

.drops.has-fourth {
  grid-template-rows: 72px 72px;
}

.drop {
  width: 26px;
  height: 26px;
  border: 1px solid #266195;
  border-radius: 0 50% 50% 50%;
  background: radial-gradient(circle at 62% 62%, #F2FDFF 0, #A4EAF5 26%, #3DB6E2 64%, #1268A8 100%);
  transform: rotate(45deg) translate(3px, 3px);
  opacity: 0.3;
  transition: opacity 120ms ease-out, box-shadow 120ms ease-out;
}

.drop.is-lit {
  opacity: 1;
  box-shadow: 0 0 14px 5px rgba(66, 213, 235, 0.65);
}

.drop-left { grid-column: 1; grid-row: 1; }
.drop-middle { grid-column: 2; grid-row: 1; }
.drop-right { grid-column: 3; grid-row: 1; }

.drop-behind {
  grid-column: 2;
  grid-row: 2;
  visibility: hidden;
  opacity: 0;
}

.drops.is-done .drop-behind {
  visibility: visible;
  opacity: 0.3;
}

.drops.is-done .drop-behind.is-lit {
  opacity: 1;
}

.setup-actions {
  margin-top: 0;
}

.sound-dew {
  grid-column: 3;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-rows: minmax(110px, auto) auto;
  margin-left: -5px; /* his picture's clear edge: Dew's glass stands about 8 px clear of the Setup window */
}

.say-sound {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  padding-left: 30px;
}

.say-sound .bubble {
  max-width: 200px;
  font-size: 15px;
}

.sound-dew-figure {
  grid-column: 1;
  grid-row: 2;
  --dew-w: 84px;
  transition: opacity 400ms ease-out;
}

.sound.is-finished .sound-dew-figure {
  opacity: 0;
}

.screen-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(220, 239, 250, 0.78);
}

/* ---------- The desktop: wallpaper scenes on a framed screen (the clock, the scores, Sunset) ---------- */

.desk {
  --horizon: calc(100% - max(31.25cqw, 375px) + 40px);
  position: relative;
  overflow: hidden;
  min-height: 480px;
  padding: 28px;
  border: 1px solid #0D4F80;
  border-radius: 3px;
  background-color: var(--sky-2);
  background-image:
    url("../img/backdrop-hills.jpg"),
    linear-gradient(180deg, var(--sky-0) 0%, var(--sky-1) calc(var(--horizon) * 0.5),
      var(--sky-2) calc(var(--horizon) * 0.82), var(--sky-3) var(--horizon));
  background-repeat: no-repeat;
  background-position: 50% calc(100% + 40px), 0 0;
  background-size: max(100%, 1200px) auto, 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.desk-sun {
  position: absolute;
  left: 89%;
  top: 12%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0, #FFFFFF 9%, rgba(255, 255, 255, 0.75) 13%,
    rgba(255, 255, 255, 0.3) 28%, rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

/* The tray of teaser A, large: the taskbar material along the bottom, the clock at its right end. */
.clock-desk {
  min-height: 540px;
}

.tray {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  padding: 0 28px 0 18px;
  background: linear-gradient(180deg,
    rgba(196, 236, 250, 0.62) 0%, rgba(110, 190, 230, 0.58) 50%,
    rgba(24, 92, 150, 0.84) 50%, rgba(10, 56, 104, 0.93) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.tray-orb {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 2px 3px rgba(4, 40, 72, 0.35));
}

.tray-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: var(--halo);
}

.tray-time {
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0.5px;
}

.tray-date {
  margin-top: 4px;
  font-size: 19px;
  line-height: 1.1;
}

/* The Sunset balloon: a small glass window, its tail pointing down at the tray. */
.sunset-scene {
  position: absolute;
  right: 22px;
  bottom: 112px;
  z-index: 2;
  display: grid;
  grid-template-columns: 236px 372px;
  align-items: end;
  gap: 8px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.sunset-scene.is-up {
  opacity: 1;
  transform: translateY(0);
}

.sunset-scene.is-floating {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  grid-template-columns: 200px minmax(0, 340px);
}

.sunset-scene.is-floating.is-gone {
  opacity: 0;
  pointer-events: none;
}

.balloon {
  position: relative;
  padding: 12px 16px 14px;
  border: 1px solid #7FB3D2;
  border-radius: 6px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1FAFD 50%, #DDF2FA 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, var(--window-shadow);
  transition: opacity 250ms ease-out, transform 250ms ease-out;
}

.balloon::after {
  content: "";
  position: absolute;
  right: 44px;
  bottom: -12px;
  border-style: solid;
  border-width: 12px 10px 0;
  border-color: #DDF2FA transparent transparent;
  filter: drop-shadow(0 1px 0 #7FB3D2);
}

.balloon.is-gone {
  opacity: 0;
  transform: translateX(48px);
  pointer-events: none;
}

.balloon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 15px;
}

.balloon-text {
  margin: 0;
  font-size: 14px;
}

.balloon .actions {
  margin-top: 10px;
}

.balloon .actions .btn {
  flex: 1 1 0;
}

.scene-dew {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: minmax(70px, auto) auto;
}

.scene-say {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  padding-left: 30px;
}

.scene-dew-figure {
  grid-column: 1;
  grid-row: 2;
  --dew-w: 92px;
}

.is-floating .scene-dew {
  grid-template-columns: 80px minmax(0, 1fr);
}

.is-floating .scene-dew-figure {
  --dew-w: 76px;
}

/* The scores: Bubble Garden's table, the rows drawn only as they come into view. */
.scores-desk {
  min-height: 0;
  padding-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: end;
  gap: 20px;
}

.scores-body {
  padding: 8px 4px 8px 8px;
}

.scores-scroll {
  --ring-now: 0 0 0 0 transparent;
  height: 292px;
  overflow-y: auto;
  border-radius: 3px;
  box-shadow: var(--ring-now);
  scrollbar-width: thin;
  scrollbar-color: #8DB9D3 transparent;
}

.scores-scroll:focus-visible {
  outline: none;
  --ring-now: var(--ring);
}

.scores-rows {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.score-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 72px 132px;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 0;
  border-bottom: 1px solid var(--row-rule);
  font-size: 14px;
}

.scores-rows.is-virtual .score-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.score-rank {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.score-name {
  font-weight: 600;
}

.score-points {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.score-date {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.scores-dew {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: minmax(120px, auto) auto;
  align-self: end;
}

.say-scores {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  padding-left: 40px;
}

.scores-dew .dew-live {
  grid-column: 1;
  grid-row: 2;
  --dew-w: 104px;
}

/* Sunset: teaser A's Details window. */
.sunset-desk {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: end;
  gap: 20px;
  min-height: 0;
  padding-top: 112px;
}

.details-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.glyph-sunset.glyph-large {
  width: 40px;
  height: 36px;
  transform: scale(1.6);
  transform-origin: 0 0;
  margin: 2px 24px 16px 0;
}

.details-body .details {
  font-size: 15px;
  line-height: 22px;
}

.sunset-dew {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: minmax(90px, auto) auto;
}

.sunset-dew .say-static {
  grid-column: 1 / -1;
  grid-row: 1;
  align-self: end;
  margin: 0;
  padding-left: 40px;
}

.sunset-dew .dew-live {
  grid-column: 1;
  grid-row: 2;
  --dew-w: 104px;
}

/* ---------- Downloads ---------- */

/* The page grid: the wallpapers two by two in the main column, the profile picture in the side column. */
.wallpapers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wallpaper img {
  display: block;
  width: 100%;
  padding: 3px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #FFFFFF;
}

.wallpaper h3 {
  margin: 8px 0 6px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}

/* Desktop and Phone: a joined pair of small glass buttons. */
.wallpaper-links {
  display: flex;
  margin: 0;
}

.wallpaper-links .btn {
  min-width: 0;
  height: 28px;
  padding: 0 12px 1px;
  font-size: 13px;
}

.wallpaper-links .btn:first-child {
  border-radius: 4px 0 0 4px;
}

.wallpaper-links .btn + .btn {
  margin-left: -1px;
  border-radius: 0 4px 4px 0;
}

.wallpaper-links .btn:hover,
.wallpaper-links .btn:focus-visible {
  position: relative;
}

.avatar-section {
  min-width: 0;
}

.avatar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.avatar img {
  display: block;
  width: 100%;
  padding: 3px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #FFFFFF;
}

/* ---------- The card ---------- */

/* Two columns that end together, left-aligned on the plate: the preview on the left; on the right the form at
   the top and Dew under it, as large as the height left allows, his feet on the line of the preview's bottom. */
.card-grid {
  display: grid;
  grid-template-columns: 360px 380px;
  grid-template-areas: "preview form" "preview dew";
  grid-template-rows: auto 1fr;
  justify-content: start;
  column-gap: 40px;
}

.card-preview {
  grid-area: preview;
}

.card-frame {
  padding: 3px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #FFFFFF;
}

.card-frame:empty {
  aspect-ratio: 1080 / 1350;
}

.card-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
  -webkit-touch-callout: default;
}

.card-preview canvas {
  display: block;
  width: 100%;
  height: auto;
}

.card-hold {
  margin: 8px 0 0;
  font-weight: 600;
  font-size: 13px;
}

.card-form {
  grid-area: form;
  padding-top: 2px;
}

.field-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
}

.field {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0 0 10px;
  padding: 0 8px;
  border: 1px solid #8DB9D3;
  border-top-color: #6E9DBD;
  border-radius: 3px;
  background: #FFFFFF;
  box-shadow: inset 0 1px 2px rgba(4, 40, 72, 0.14);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--navy);
}

.field:focus {
  outline: none;
  border-color: #1F75B1;
  box-shadow: var(--ring), inset 0 1px 2px rgba(4, 40, 72, 0.14);
}

.card-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}

.card-dew {
  grid-area: dew;
  align-self: end;
  justify-self: center;
  --dew-w: 220px;
  margin: 0 0 6px;
}

/* While the line under the card shows, Dew still stands level with the card's bottom edge. */
.card-grid:has(.card-hold:not([hidden])) .card-dew {
  margin-bottom: 32px;
}

/* ---------- Support: a knowledge base ---------- */

.article {
  padding: 16px 0 14px;
  border-top: 1px solid var(--rule);
}

.article:first-child {
  padding-top: 0;
  border-top: 0;
}

.article:last-child {
  padding-bottom: 0;
}

.article h2 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 21px;
}

.article h2 a {
  text-decoration: none;
}

.article h2 a:hover,
.article h2 a:focus-visible {
  text-decoration: underline;
}

/* Each field: its label in a fixed column on the left, the text beside it. */
.article p {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  margin: 0 0 4px;
}

.article strong {
  font-weight: 600;
  color: var(--muted);
}

/* ---------- Guestbook ---------- */

.guestbook-sign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 16px;
  padding: 6px 7px;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  background: var(--box);
}

.guestbook-sign p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.entries {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--row-rule);
  list-style: none;
}

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  column-gap: 16px;
  padding: 10px 12px 11px;
  border-bottom: 1px solid var(--row-rule);
}

.entry:nth-child(even) {
  background: var(--row-tint);
}

.entry-head {
  display: contents;
}

.entry-name {
  grid-column: 1;
  grid-row: 1;
  font-weight: 600;
}

.entry-date {
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.entry-text {
  grid-column: 1;
  grid-row: 2;
  margin: 2px 0 0;
}

/* ---------- Lily (the open sky, as it was) ---------- */

.lily {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 0 56px;
}

.lily-sun {
  position: absolute;
  right: -2%;
  top: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF 0, #FFFFFF 8%, rgba(255, 255, 255, 0.7) 13%,
    rgba(255, 255, 255, 0.22) 30%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.lily-drawing {
  --ring-now: 0 0 0 0 transparent;
  position: relative;
  display: block;
  width: min(620px, 100%);
  border-radius: 8px;
  box-shadow: var(--ring-now);
}

.lily-drawing:focus-visible {
  outline: none;
  --ring-now: var(--ring);
}

.lily-drawing img {
  display: block;
  width: 100%;
}

.calendar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(440px, 100%);
  margin: 40px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--frame);
  border-radius: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1FAFD 50%, #DDF2FA 100%);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 12px 30px rgba(4, 40, 72, 0.32), 0 2px 6px rgba(4, 40, 72, 0.18);
  font-size: 17px;
  line-height: 1.5;
}

.calendar-day {
  width: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.calendar-event {
  position: relative;
  flex: 1;
  padding: 8px 64px 8px 14px;
  border: 1px solid #F59A76;
  border-left-width: 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFF3EC 0%, #FFE4D6 100%);
  font-weight: 700;
  font-size: 16px;
}

/* Two balloons on strings. */
.balloons,
.balloons::before {
  position: absolute;
  top: -8px;
  width: 20px;
  height: 24px;
  border: 1px solid #D9542E;
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 35% 30%, #FFE4D6 0, #F59A76 45%, #D9542E 100%);
}

.balloons {
  right: 36px;
}

.balloons::before {
  content: "";
  top: 4px;
  left: 16px;
}

.balloons::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 23px;
  width: 1px;
  height: 18px;
  background: #D9542E;
  box-shadow: 16px 3px 0 #D9542E;
}

/* ---------- Press (the game talking) ---------- */

.press-text {
  padding: 32px 36px 28px;
}

.press-text h1 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.press-text h2 {
  margin: 28px 0 10px;
}

.press-text p,
.press-text li {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.6;
}

.teaser-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.press-pictures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.press-pictures a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  color: var(--neutral-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.press-pictures a:hover span {
  text-decoration: underline;
}

.press-pictures img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 1px solid var(--neutral-border);
  border-radius: 4px;
  background: var(--neutral-backdrop);
}

.press-wide img {
  object-fit: contain;
  padding: 12px;
}

.press-lockup img {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
  padding: 16px;
}

.press-lockup {
  grid-column: span 2;
}

.contact {
  font-size: 16px;
}

.press-store {
  margin: 12px 0 0;
}

/* ---------- Without scripts: the line that says so (the controls are hidden by noscript.css) ---------- */

.noscript-note {
  margin: 0 0 4px;
  padding: 10px 14px;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  background: var(--box);
  font-weight: 600;
  color: var(--navy);
}

.noscript-dark {
  color: var(--navy);
}

/* ---------- The 03:12 scene on a phone: in the page under the banner, so it covers nothing ---------- */

.sunset-scene.is-inline {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 4px;
  margin-top: 16px;
  overflow: hidden;
  transition: opacity 250ms ease-out, transform 250ms ease-out, max-height 400ms ease-out;
}

.sunset-scene.is-inline.is-gone {
  opacity: 0;
}

.is-inline .scene-dew {
  display: contents;
}

.is-inline .scene-say {
  grid-column: 1 / -1;
  grid-row: 1;
  padding-left: 18px;
}

.is-inline .scene-dew-figure {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  --dew-w: 68px;
}

.is-inline .balloon {
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 14px;
}

/* ---------- Touch screens: every control a finger can hit at least 40 px high ---------- */

@media (pointer: coarse) {
  .btn {
    height: 40px;
  }

  .wallpaper-links .btn {
    height: 40px;
    padding: 0 16px 1px;
    font-size: 14px;
  }

  .field {
    height: 40px;
    font-size: 16px;
  }

  .tab {
    height: 40px;
  }

  .tab[aria-current="page"] {
    height: 41px;
  }

  .foot-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .foot-links {
    margin-bottom: 0;
  }

  .crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .crumbs {
    margin: -12px 0 -4px;
  }

  .page-head-bare .crumbs {
    margin: -12px 0 -10px;
  }

  .quicklinks a {
    min-height: 40px;
  }

  /* Links inside running text and headings: a taller hit area, the same lines. */
  .article h2 a,
  .site-foot a.secret,
  .honest a:not(.btn-neutral),
  .neutral p a:not(.btn-neutral) {
    display: inline-block;
    padding: 10px 0;
    margin: -10px 0;
  }
}

/* ---------- Tablets (860 px and below) ---------- */

@media (max-width: 860px) {
  body {
    font-size: 15px;
    line-height: 22px;
  }

  .masthead {
    gap: 0 12px;
    padding-left: 8px;
  }

  .lockup {
    gap: 8px;
  }

  .lockup-orb {
    width: 40px;
    height: 40px;
  }

  .wordmark {
    height: 30px;
  }

  .tab {
    padding: 0 11px 1px;
  }

  .columns,
  .apply-grid {
    grid-template-columns: minmax(0, 1fr) 264px;
    column-gap: 24px;
  }

  .hero-scene {
    height: 344px;
  }

  .hero-sky {
    --rise: 186px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .wallpapers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .sound-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .setup {
    grid-column: 1;
    width: min(500px, 100%);
  }

  .sound-dew {
    grid-column: 1;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: minmax(84px, auto) auto;
    width: min(500px, 100%);
    margin: 8px 0 0;
  }

  .scores-desk,
  .sunset-desk {
    grid-template-columns: minmax(0, 1fr);
  }

  .sunset-scene {
    grid-template-columns: 200px minmax(0, 340px);
  }

  .card-grid {
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 24px;
  }

  .card-dew {
    --dew-w: 150px;
  }

  .intro-dew {
    --dew-w: 108px;
  }

  .intro-top {
    column-gap: 20px;
  }
}

/* A tablet held upright: the masthead's lockup above, the tabs along the bar's bottom edge. */
@media (max-width: 700px) {
  .masthead {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0;
  }

  .lockup {
    align-self: flex-start;
    margin: 7px 8px 7px;
  }

  .tabs {
    align-self: stretch;
    padding: 0 6px;
  }

  .tab {
    flex: 1 1 auto;
  }
}

/* ---------- Phones (640 px and below) ---------- */

@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 24px;
  }

  .page {
    width: calc(100% - 20px);
    padding-top: 10px;
  }

  .utility {
    display: none;
  }

  .lockup {
    margin: 6px 6px 6px;
  }

  .lockup-orb {
    width: 36px;
    height: 36px;
  }

  .wordmark {
    height: 28px;
  }

  .tabs {
    gap: 2px;
    padding: 0 4px;
  }

  .tab {
    flex: 1 1 auto;
    height: 40px;
    padding: 0 6px 1px;
    font-size: 14px;
  }

  .tab[aria-current="page"] {
    height: 41px;
  }

  main {
    padding: 14px 14px 22px;
  }

  .page-title {
    font-size: 22px;
  }

  .lead {
    font-size: 17px;
    line-height: 25px;
  }

  .ticks li {
    font-size: 16px;
    line-height: 22px;
  }

  .ticks li::before {
    top: 3px;
  }

  .ticks li::after {
    top: 6px;
  }

  .details,
  .card-note,
  .small {
    font-size: 14px;
    line-height: 20px;
  }

  .columns,
  .apply-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .columns {
    row-gap: 24px;
  }

  .site-foot {
    padding: 8px 14px 14px;
    font-size: 13px;
    line-height: 20px;
  }

  .foot-links {
    margin-bottom: 4px;
  }

  .foot-links li + li::before {
    margin: 0 8px;
  }

  .foot-lines {
    flex-direction: column;
  }

  /* The banner: no taller than 400 px, its words centred as in the ad. */
  .hero {
    padding: 3px;
  }

  .hero-scene {
    --crop: 0px;
    --horizon: calc(100% - 237px);
    height: 384px;
    background-size: 760px auto, 100% 100%;
  }

  .hero-copy {
    padding: 22px 16px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 27px;
    line-height: 1.15;
    text-wrap: balance;
    margin-bottom: 6px;
  }

  .hero-sub {
    font-size: 17px;
    text-wrap: balance;
    margin-bottom: 14px;
  }

  .sun {
    width: 170px;
    height: 170px;
    left: 90%;
    top: 6%;
  }

  .hero-sky {
    --rise: 180px;
  }

  .b1 { --x: 6%; --y: 58%; --s: 18px; }
  .b2 { --x: 86%; --y: 60%; }
  .b3 { --x: 12%; --y: 66%; }
  .b4 { --x: 76%; --y: 68%; }
  .b5 { --x: 3%; --y: 40%; --s: 18px; }

  .home-1 { --x: 10.6%; --w: 19.4; --foot: 34px; }
  .home-2 { --x: 30.3%; --w: 19.4; --foot: 40px; }
  .home-3 { --x: 50%; --w: 19.4; --foot: 42px; }
  .home-4 { --x: 69.7%; --w: 19.4; --foot: 40px; }
  .home-5 { --x: 89.4%; --w: 19.4; --foot: 34px; }

  .quicklinks {
    flex-direction: column;
  }

  .quicklinks li {
    justify-content: flex-start;
    padding: 4px 2px;
  }

  .quicklinks li + li {
    border-left: 0;
    border-top: 1px solid var(--row-rule);
  }

  .quicklinks a {
    font-size: 16px;
  }

  .page-home .columns {
    margin-top: 18px;
  }

  .coming {
    margin-top: 18px;
    padding-top: 14px;
  }

  .intro .lead {
    margin-bottom: 20px;
  }

  .intro .ticks li {
    margin-bottom: 8px;
  }

  .intro-top {
    column-gap: 14px;
    align-items: start;
  }

  .intro-dew {
    --dew-w: 84px;
    margin: 4px 0 0;
  }

  /* Apply: the lead, then the form's block, then the steps; the form's button comes early. */
  .apply-grid {
    grid-template-areas: "lead" "real" "steps";
  }

  .join-lead {
    margin-bottom: 16px;
  }

  .apply-grid .real {
    margin: 0 -14px 22px;
    border-width: 1px 0;
    padding: 18px 14px 20px;
  }

  .apply-grid .steps {
    margin-bottom: -4px;
  }

  .join-home {
    display: none;
  }

  .real {
    font-size: 16px;
    line-height: 24px;
  }

  .neutral {
    padding: 20px 16px 22px;
  }

  .stage {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: minmax(132px, auto) auto auto;
    padding: 16px 12px 12px;
  }

  .say-large {
    grid-column: 2;
    margin-left: -30px;
  }

  .dew-button {
    grid-column: 1;
    width: 112px;
  }

  .hint {
    grid-column: 1;
    margin-top: 20px;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 20px;
  }

  .card figcaption {
    font-size: 14px;
  }

  .say-static .bubble {
    max-width: 220px;
  }

  .lost-dew {
    --dew-w: 96px;
  }

  /* One column: the lines beside the orb would run short, so the orb stays on the desktop. */
  .about-orb {
    display: none;
  }

  .about-text .lead {
    margin-right: 0;
  }

  .about-text p:last-child {
    margin-top: 4px;
  }

  .screen {
    padding: 20px 12px 12px;
  }

  .screen-hook {
    font-size: 26px;
  }

  .setup-body {
    padding: 14px;
  }

  .setup-actions .btn {
    flex: 1 1 auto;
  }

  .desk {
    padding: 14px;
    min-height: 0;
  }

  .clock-desk {
    min-height: 640px;
  }

  .tray {
    height: 80px;
    padding: 0 16px 0 10px;
  }

  .tray-orb {
    width: 54px;
    height: 54px;
  }

  .tray-time {
    font-size: 38px;
  }

  .tray-date {
    font-size: 16px;
  }

  .sunset-scene {
    left: 12px;
    right: 12px;
    bottom: 94px;
    grid-template-columns: minmax(0, 1fr);
  }

  .sunset-scene.is-floating {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 4px;
  }

  .is-floating .scene-dew {
    display: contents;
  }

  .is-floating .scene-say {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 18px;
  }

  .is-floating .scene-dew-figure {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    --dew-w: 68px;
  }

  .is-floating .balloon {
    grid-column: 2;
    grid-row: 2;
  }

  .scores-desk {
    padding-top: 36px;
  }

  .sunset-desk {
    padding-top: 44px;
  }

  .scene-dew {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .scene-dew-figure {
    --dew-w: 72px;
  }

  .score-row {
    grid-template-columns: 52px minmax(0, 1fr) 54px 96px;
    gap: 6px;
    padding-right: 8px;
    font-size: 14px;
  }

  .scores-dew,
  .sunset-dew {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .scores-dew .dew-live,
  .sunset-dew .dew-live {
    --dew-w: 84px;
  }

  .wallpapers {
    gap: 22px 14px;
  }

  .avatar-section {
    padding-top: 18px;
    border-top: 1px solid var(--rule);
  }

  .avatar img {
    width: 168px;
  }

  .wallpaper h3 {
    font-size: 15px;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "form" "preview";
    grid-template-rows: auto auto;
  }

  .card-form {
    max-width: none;
    margin-bottom: 18px;
  }

  .field {
    height: 40px;
    font-size: 16px;
  }

  .card-buttons .btn {
    flex: 1 1 auto;
  }

  .card-dew {
    display: none;
  }

  .card-preview {
    max-width: 420px;
  }

  .article p {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .entry {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 10px 12px;
  }

  .entry-date {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    font-size: 13px;
    line-height: 18px;
  }

  .entry-text {
    grid-row: 3;
  }

  .guestbook-sign p {
    font-size: 14px;
    line-height: 20px;
  }

  .press-text {
    padding: 24px 18px 20px;
  }

  .press-lockup {
    grid-column: 1 / -1;
  }

  .privacy-text {
    padding: 24px 18px 20px;
  }

  .privacy-text h1 {
    font-size: 28px;
  }

  .honest {
    padding: 12px 14px;
    font-size: 15px;
    line-height: 22px;
  }

  .lily {
    padding-top: 48px;
  }
}

/* Phones: seven bubbles in the window's sky, a little smaller. */
@media (max-width: 640px) {
  .sky .glass-bubble:nth-child(n+8) {
    display: none;
  }

  .sky .glass-bubble:nth-child(2) { --s: 20px; }
  .sky .glass-bubble:nth-child(3) { --s: 26px; }
  .sky .glass-bubble:nth-child(7) { --s: 28px; }
}

/* Three homes, larger: two lit ones and the fifth, dark one on the right. */
@media (max-width: 520px) {
  .home-3,
  .home-4 {
    display: none;
  }

  .home-1 { --x: 17.5%; --w: 31.8; --foot: 43px; }
  .home-2 { --x: 50%; --w: 31.8; --foot: 47px; }
  .home-5 { --x: 82.5%; --w: 31.8; --foot: 43px; }
}

/* The footer's four links stand two by two when one row no longer fits. With the guestbook's
   switch off, the third link has the row to itself. */
@media (max-width: 359px) {
  .foot-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
  }

  .foot-links li + li::before {
    content: none;
  }

  .foot-links li:has(+ li[hidden]) {
    grid-column: 1 / -1;
  }

  .tab {
    padding: 0 4px 1px;
    font-size: 13px;
  }

  .article p {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Reduced motion: things change, nothing travels ---------- */

@media (prefers-reduced-motion: reduce) {
  .dew-bob,
  .dew-live.is-hopping .dew-hop {
    animation: none;
  }

  .dew-eyes,
  .dew-eye-left,
  .dew-eye-right {
    transition: none;
  }

  .dew-eyes,
  .dew-live.is-blinking .dew-eye-left,
  .dew-live.is-blinking .dew-eye-right {
    transform: none;
  }

  .say-room {
    grid-template-rows: 1fr;
    transition: none;
  }

  .say-room > .say {
    overflow: visible;
  }

  .say-room .bubble {
    min-height: calc(2 * 1.35em + 26px);
  }

  .drops,
  .drop,
  .sunset-scene,
  .balloon,
  .sound-dew-figure,
  .home-5 .lit,
  .tab,
  .btn {
    transition: none;
  }

  .hero.is-lit .home-5 .lit,
  .hero:has([data-apply-today]:hover) .home-5 .lit,
  .hero:has([data-apply-today]:focus-visible) .home-5 .lit,
  .is-shaking,
  .is-hopping {
    animation: none;
  }

  /* Nothing rises: a few bubbles stand still at pleasant places and do not pop. */
  .glass-bubble {
    top: var(--y);
    bottom: auto;
    translate: none;
    animation: none;
    pointer-events: none;
  }

  .sky .glass-bubble:nth-child(n+6),
  .stage-bubbles .glass-bubble:nth-child(3) {
    display: none;
  }
}
