/*
 * hyd-personal-web.css
 *
 * First look of the personal web home page: a dark teal page, a chrome title bar, a desktop of
 * tilted, layered windows with loose objects on it, and small Tahoma UI type. Later sheets
 * (hyd-aqua.css, hyd-theme.css, hyd-classic-desktop.css, hyd-platform.css and others) repaint
 * most of it, so many values here are only the base that those sheets override.
 *
 * How to read it
 * - Selectors are deliberately short (.portal-collage .desktop-window, .shell, .keepsake ...),
 *   so later sheets can out-rank them with `html[data-theme] #world ...` selectors.
 * - .portal-collage wraps the home desktop. Each #desk-* window gets an absolute left/top/width,
 *   a small tilt and a z-index here; the media queries near the end move and untilt them.
 * - Colours are literal hex values. The custom properties that matter are --motion (running or
 *   paused, set by hyd-world.js) and, in the Metro blocks, --line and --progress. The six
 *   --pw-* values and the --surface, --card-dark, --edge, --soft and --bright values on #world
 *   are declared but nothing in the shipped site reads them.
 * - .web-ribbon, .web-buttons, .web-badge, .loose-* and .desk-note-object style markup that
 *   today's hyd-world.html and scripts do not contain (it survives in the versions/ snapshots
 *   and the rebuild scripts), and the Metro page is switched off (METRO_ENABLED is false in
 *   hyd-search.js), so its #metro and .metro-* rules in section 11 match nothing. Section 11
 *   also holds a few live rules (see its banner). Those blocks are kept exactly as they were.
 * - The 11 !important declarations are explained where they occur.
 *
 * Sections
 *   1  Tokens, page base and focus rings
 *   2  Shell bar and ribbon
 *   3  Home canvas, wallpaper and title
 *   4  Desktop icons
 *   5  Home windows
 *   6  Loose objects and web buttons
 *   7  Inner pages: area, places, photo roll, player
 *   8  Keyframes
 *   9  Breakpoints
 *  10  Motion switches and late repaints
 *  11  Metro page
 */

/* Reference-led personal web: object navigation, layered image windows, small UI type. */

/* ==========================================================================
   1. Tokens, page base and focus rings
   Page colours, the #world column, the font for form controls and keyboard focus rings.
   ========================================================================== */

/* Palette variables. None of the six --pw-* values is read anywhere; the rules below use
   literal hex colours. */
:root {
  --pw-ink: #070d13;
  --pw-silver: #bcc8cd;
  --pw-edge: #e3ecee;
  --pw-blue: #214c76;
  --pw-green: #b8e6a2;
  --pw-pink: #efa7bd;
}

/* Near-black page with warm off-white text. */
body {
  background: #05090d;
  color: #f1f1ea;
}

/* The #world column is capped at 1440 px. --surface, --card-dark, --edge, --soft and
   --bright are declared here (and again by later sheets) but nothing reads them. */
#world {
  max-width: 1440px;
  background: #080e14;
  --surface: #0d1820;
  --card-dark: #13232b;
  --edge: #7b999f;
  --soft: #d1dcdb;
  --bright: #c2eda4;
}

/* Form controls use Tahoma. Keyboard focus is a dotted ring on buttons and links and a solid
   ring on inputs. */
button,
input,
select {
  font-family: Tahoma, Verdana, sans-serif;
}

button:focus-visible,
a:focus-visible {
  outline: 2px dotted #e8f9b5;
  outline-offset: 4px;
}

input:focus-visible {
  outline: 2px solid #b6e4ba;
  outline-offset: 2px;
}

/* ==========================================================================
   2. Shell bar and ribbon
   The top navigation strip: brand, page buttons, deck launcher and motion toggle, plus a ribbon
   of small text.
   ========================================================================== */

/* A bar at least 55 px tall with a hard-edged, two-tone chrome gradient. */
.shell {
  min-height: 55px;
  padding: 9px 24px;
  background: linear-gradient(#35424a, #161e25 49%, #0b1117 50%, #17232c);
  border-bottom: 1px solid #9aacb5;
  gap: 20px;
}

/* Brand lettering (Space Grotesk, 22 px), its pink dot and the logo star. */
.brand {
  font:
    700 22px/1 'Space Grotesk',
    sans-serif;
  color: #e7edf0;
  letter-spacing: -1px;
}

.brand .dot {
  color: #edb2c9;
}

.logo-star {
  font-size: 28px;
  color: #c2deb5;
}

/* Page buttons; the active one gets a dotted outline. */
.shell nav {
  gap: 6px;
}

.shell nav button {
  font:
    12px Tahoma,
    sans-serif;
  padding: 7px 11px;
  color: #e8f2f3;
  border: 1px solid transparent;
  box-shadow: none;
  background: transparent;
}

.shell nav button.active {
  background: #294453;
  color: white;
  border: 1px dotted #c4d7d8;
  box-shadow: none;
}

/* Deck launcher: a raised, outset-bordered button. */
.shell .deck-launch {
  font: 12px Tahoma;
  color: #d6e9d8;
  background: linear-gradient(#384b59, #182633);
  border: 1px outset #b1c3c9;
  box-shadow: 2px 2px #020408;
  padding: 8px 13px;
}

/* Motion toggle: font-size 0 hides its text so only the 22 px glyph span shows. */
.motion {
  font-size: 0;
  color: #b9dfa5;
}

.motion span {
  font-size: 22px;
}

/* Ribbon strip of small, letter-spaced text. No element in today's hyd-world.html uses
   .web-ribbon. */
.web-ribbon {
  display: flex;
  justify-content: center;
  gap: 35px;
  padding: 8px 12px;
  font: 9px Tahoma;
  letter-spacing: 2px;
  color: #bccbc8;
  border-bottom: 1px solid #37535a;
  background: #071117;
  overflow: hidden;
  white-space: nowrap;
}

/* ==========================================================================
   3. Home canvas, wallpaper and title
   The collage wrapper, the desktop canvas, wallpaper dots, sparks, the chrome charm and the
   title block.
   ========================================================================== */

/* Collage wrapper: no clipping, padding or border of its own. */
.portal-collage.desktop-corner {
  height: auto;
  overflow: visible;
  padding: 0;
  background: #050b12;
  border: 0;
}

/* The desktop canvas: 790 px tall (735 px from 1200 px up), clipped, with a soft teal glow
   in the middle. */
.portal-collage .web-desktop {
  height: 790px;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: radial-gradient(ellipse at 50% 36%, #173f4545, transparent 66%), #060c13;
  overflow: hidden;
  max-width: none;
  isolation: isolate;
}

/* Wallpaper: two sparse grids of faint dots at different sizes. */
.desktop-wallpaper {
  background-image:
    radial-gradient(#9abbd99c 0.65px, transparent 1px),
    radial-gradient(#90adb777 0.7px, transparent 1.2px);
  background-size:
    71px 67px,
    113px 109px;
  background-position:
    14px 20px,
    40px 67px;
}

/* Sparks (.spark-one to .spark-three) pulse with pw-spark and the chrome charm bobs with
   pw-float. Both pause when --motion is paused (hyd-world.js sets --motion). */
.portal-collage .desktop-wallpaper > span {
  display: block;
  position: absolute;
  transform: none;
  background: none;
  text-shadow: 0 0 12px #c9e9e9;
  color: #d7e5ef66;
  font: 43px Georgia;
  -webkit-text-stroke: 0;
  animation: pw-spark 6s ease-in-out infinite;
  animation-play-state: var(--motion);
}

.desktop-wallpaper .spark-one {
  left: 23%;
  top: 114px;
}

.desktop-wallpaper .spark-two {
  left: 64%;
  top: 570px;
  font-size: 26px;
  animation-delay: -2s;
}

.desktop-wallpaper .spark-three {
  right: 4%;
  top: 249px;
  font-size: 63px;
  animation-delay: -4s;
}

.portal-collage .desktop-wallpaper > .chrome-charm {
  width: 130px;
  height: 130px;
  left: auto;
  right: 7%;
  top: 14px;
  opacity: 0.95;
  animation: pw-float 9s ease-in-out infinite;
  animation-play-state: var(--motion);
}

/* Title block, centred over the canvas. pointer-events: none lets clicks pass through to the
   windows underneath. */
.portal-brand {
  position: absolute;
  left: 23%;
  top: 22px;
  width: 53%;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

.portal-brand > span:first-child {
  font: 12px sans-serif;
  color: #a7c7c6;
  letter-spacing: 6px;
}

/* The title is a gradient-filled italic serif: the text fill is transparent and
   background-clip: text shows the gradient. The late repaint near the end of this file
   replaces the gradient. */
.portal-brand h1 {
  margin: 0;
  font:
    italic 94px/0.98 Georgia,
    'Times New Roman',
    serif;
  font-weight: 400;
  letter-spacing: -6px;
  color: #e2eef0;
  text-shadow:
    1px 1px #2c566b,
    2px 3px #09121c,
    3px 4px #7490a2;
  background: linear-gradient(
    #fff9ec 15%,
    #aab9c6 42%,
    #4c657e 45%,
    #f5f9f2 50%,
    #f3c0d6 73%,
    #667d93
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-brand h1 em {
  font-weight: 400;
}

/* Small orbit mark at the lower right of the title. */
.portal-brand .tiny-orbit {
  position: absolute;
  right: 3px;
  bottom: -12px;
  font: 30px Georgia;
  color: #dfb5d4;
}

/* ==========================================================================
   4. Desktop icons
   The icon column at the left of the canvas, and the icon art drawn in CSS.
   ========================================================================== */

/* Icon column: 83 px wide, top left of the canvas. */
.portal-collage .desktop-icons {
  left: 16px;
  top: 36px;
  width: 83px;
  gap: 20px;
  z-index: 9;
}

.portal-collage .desktop-icons > button {
  gap: 4px;
  min-height: 64px;
  color: #e5e9e6;
}

/* Icons are 53 x 49 px and lift 4 px on hover. */
.desktop-icons svg {
  width: 53px;
  height: 49px;
  filter: drop-shadow(2px 3px #01040a);
  transition: translate 0.2s;
}

.desktop-icons button:hover svg {
  translate: 0 -4px;
}

.portal-collage .desktop-icons b {
  font: calc(11 * var(--px))/1.2 Tahoma;
  background: #081420aa;
  padding: 3px;
  letter-spacing: 0;
  text-shadow: 1px 1px black;
  white-space: nowrap;
}

.portal-collage .desktop-icons > button:hover b {
  background: #244d72;
  outline: 1px dotted white;
}

/* Icon art drawn in CSS: a yellow folder (.folder-art) and a rainbow disc (.sound-icon). */
.folder-art {
  width: 49px;
  height: 33px;
  background: linear-gradient(150deg, #fcde87, #b89039 49%, #e3c266 50%, #b28b3f);
  border-color: #fff1b7;
  border-right-color: #896827;
  border-bottom-color: #81652f;
  border-radius: 0;
  color: #644410;
  box-shadow: 2px 2px #020709;
}

.folder-art:before {
  background: #d6b966;
  border-color: #fbdf93;
  border-radius: 2px 4px 0 0;
}

.sound-icon {
  background: conic-gradient(#edf9f7, #b8dadb, #ad89b5, #ebd7d4, #f5edc0, #acb5dc, #edf9f7);
  border-color: #fbfeff;
  color: #1a3c53;
}

/* ==========================================================================
   5. Home windows
   Window frame, titlebar, menu, status bar and taskbar, then each #desk-* window and the Start
   here window.
   ========================================================================== */

/* Window frame: a 2 px beveled border (light top-left, dark bottom-right) and a hard offset
   shadow. rotate: 0deg here; each #desk-* window sets its own tilt below. */
.portal-collage .desktop-window {
  background: #b2bec3;
  color: #12212c;
  border: 2px solid;
  border-color: #eaf2f4 #455b66 #455b66 #eaf2f4;
  padding: 3px;
  box-shadow:
    1px 1px #000,
    5px 7px #0007;
  rotate: 0deg;
}

.portal-collage .desktop-window.is-front {
  box-shadow:
    1px 1px #000,
    8px 10px #0009;
}

/* Titlebar: a blue-to-grey gradient. !important on the background and filter:
   hyd-desktop.css styles titlebars with state selectors (.is-front, :not(.is-front)) that
   out-rank this short selector, and its :not(.is-front) rule dims background windows with
   filter: saturate(0.75). !important keeps this bar and cancels the dimming. */
.portal-collage .desktop-titlebar {
  height: 25px;
  background: linear-gradient(90deg, #163d61, #688996) !important;
  filter: none !important;
  padding: 2px;
}

.portal-collage .window-grab {
  font: 11px Tahoma;
  color: white;
  padding: 3px 5px;
  letter-spacing: 0.1px;
}

/* Titlebar buttons, menu bar and status bar. */
.portal-collage .desktop-titlebar > div > button {
  width: 19px;
  height: 18px;
  background: #c1cdcf;
  border: 1px outset #f4faf9;
  color: #13232b;
  font: 15px Arial;
  box-shadow: none;
}

.portal-collage .desktop-menu {
  background: #b2bec3;
  border: 0;
  color: #1e2a30;
  font: calc(10 * var(--px)) Tahoma;
  padding: 5px 6px;
  gap: 16px;
}

.portal-collage .desktop-status {
  background: #b5c1c7;
  color: #2b3d47;
  font: calc(9 * var(--px)) Tahoma;
  padding: 4px;
  border: 1px inset #cad7db;
}

/* Taskbar: a 34 px strip of outset buttons; the pressed button looks pushed in
   (border-style: inset). */
.portal-collage .desktop-taskbar {
  background: linear-gradient(#d0d9da, #889da8);
  border-top: 2px outset #d5e2e5;
  color: #142f3f;
  height: 34px;
  padding: 3px;
  gap: 4px;
}

.portal-collage .desktop-taskbar button {
  color: #142d3e;
  background: #bdcbd0;
  border: 2px outset #e7eeee;
  box-shadow: none;
  font: 10px Tahoma;
  height: 25px;
  padding: 0 10px;
}

.portal-collage .desktop-taskbar button[aria-pressed='true'] {
  border-style: inset;
  background: #dce6e7;
}

.portal-collage .desktop-taskbar > span {
  font: 10px Tahoma;
  color: #233a47;
}

.portal-collage .desk-reset > b {
  font: 10px Tahoma;
}

/* Recordings window (#desk-photos), tilted -3 degrees, and its two-column thumbnail grid. */
.portal-collage #desk-photos {
  left: 13%;
  top: 156px;
  width: 290px;
  z-index: 5;
  rotate: -3deg;
}

.desk-recordings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #14212b;
}

.desk-recordings > button {
  position: relative;
  padding: 0;
  border: 1px solid #657a89;
  background: #030b11;
  color: #e6ecef;
  overflow: hidden;
  min-width: 0;
}

.desk-recordings img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
  transition: scale 0.7s;
}

.desk-recordings span {
  display: block;
  padding: 5px 2px;
  font: calc(8 * var(--px)) Tahoma;
  white-space: nowrap;
}

.desk-recordings button:hover img {
  scale: 1.1;
}

.desk-recordings button:hover span {
  background: #264b66;
  color: #e6ffa9;
}

/* Photo viewer window (#desk-view) and its picture caption. */
.portal-collage #desk-view {
  width: 263px;
  left: auto;
  right: 7%;
  top: 190px;
  rotate: 5deg;
  z-index: 6;
}

.portal-collage .desktop-sky {
  padding: 4px;
  background: #0c1720;
  color: #c6d9de;
}

.portal-collage .desktop-sky img {
  height: 175px;
}

.portal-collage .desktop-sky span {
  font: calc(11 * var(--px)) Tahoma;
  padding: 2px;
  margin: 3px;
}

/* About me window (#desk-notes). */
.portal-collage #desk-notes {
  width: 167px;
  left: 19%;
  top: 508px;
  rotate: 4deg;
  z-index: 6;
}

/* No element in today's hyd-world.html uses .desk-note-object. */
.desk-note-object {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  background: radial-gradient(ellipse, #335f6577, transparent), #101d24;
  border: 0;
  color: #dfdedd;
  padding: 8px;
}

.desk-note-object svg {
  width: 109px;
  height: 109px;
  transition: rotate 0.4s;
}

.desk-note-object:hover svg {
  rotate: -10deg;
}

.desk-note-object span {
  font: 11px Georgia;
  font-style: italic;
  padding-bottom: 5px;
}

/* Places window (#desk-places): address bar, folder list and link button. */
.portal-collage #desk-places {
  right: 7%;
  top: 361px;
  width: 310px;
  z-index: 15;
  rotate: 2deg;
}

.portal-collage .folder-address {
  background: #eef0e7;
  color: #2b4550;
  border: 1px inset #728b91;
  font: 11px Tahoma;
}

.portal-collage .desk-folders {
  background: #e6e9e3;
  padding: 24px 10px 20px;
  gap: 12px;
}

.portal-collage .desk-folders > button {
  color: #1c3547;
  font: 12px Tahoma;
  gap: 14px;
}

.portal-collage .desktop-link {
  background: #c2d0d1;
  color: #102e47;
  border: 2px outset #dce6e8;
  font: 11px Tahoma;
  padding: 6px;
  margin-top: 9px;
}

/* Stickers window (#desk-stickers): a board with a dotted-grid background, and the control
   buttons. */
.portal-collage #desk-stickers {
  left: 46%;
  top: 306px;
  width: 284px;
  z-index: 16;
}

.portal-collage #desk-stickers .sticker-play {
  background: #10212a;
}

.portal-collage #desk-stickers .sticker-board {
  background:
    radial-gradient(#7f95a81f 0.7px, transparent 1px) 0/5px 5px,
    #08131a;
  border: 1px solid #7b959b;
  height: 184px;
}

.portal-collage #desk-stickers .sticker-board > span {
  font: italic 27px/0.95 Georgia;
  color: #708d8b;
  letter-spacing: -1px;
}

.portal-collage .board-star {
  color: #c3dce3;
}

.portal-collage .sticker-controls button {
  background: #d7d8bf;
  color: #143342;
  border: 1px outset white;
}

.portal-collage .sticker-controls button:nth-child(2n) {
  background: #e9b7c9;
}

/* Start here window (#desk-entry): the front window (z-index 20, no tilt). */
.portal-collage #desk-entry {
  left: 35%;
  top: 335px;
  width: 430px;
  rotate: 0deg;
  z-index: 20;
  background: #becbd0;
  padding: 4px;
  border-color: #e8f6fa #3f5f73 #3f5f73 #e8f6fa;
}

/* !important: this window's bar has its own colour. It has to be !important because the
   generic titlebar rule above is, and this selector is more specific. */
.portal-collage #desk-entry .desktop-titlebar {
  background: linear-gradient(90deg, #234454, #47757d) !important;
  height: 27px;
}

.entry-light {
  font: 10px Arial;
  color: #c8f2b0;
  margin-right: 8px;
  filter: drop-shadow(0 0 3px #b9f792);
}

/* The Start here body: two columns, a shuffle object on the left and the area search
   terminal on the right. */
.visual-entry {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: #0e1d26;
  border: 1px inset #d4e6ea;
  margin-top: 4px;
  min-height: 206px;
  padding: 12px 7px;
  gap: 2px;
}

.visual-entry .shuffle-object {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 8px 4px;
  min-height: 0;
  background: none;
  box-shadow: none;
  border: 0;
  overflow: visible;
  color: #e2ecd9;
}

.visual-entry .shuffle-object:before,
.visual-entry .shuffle-object:after {
  display: none;
}

.visual-entry .shuffle-art {
  width: 96px;
  height: 96px;
  flex-basis: 96px;
}

.visual-entry .mini-disc {
  background:
    repeating-radial-gradient(circle, transparent 0 2px, #d8edf620 2px 3px),
    conic-gradient(#ced9e7, #f4eddf, #e0c3e2, #a9d7e4, #efefcb, #b5b8e5, #ced9e7);
  border-color: #e6eefb;
  box-shadow: 3px 4px #010611;
}

.visual-entry .mini-disc:after {
  background: #132431;
  border-color: #a1becb;
  inset: 35%;
}

.visual-entry .shuffle-arrow {
  font: 62px Arial;
  text-shadow: 1px 1px white;
  color: #1c3b4e;
}

.visual-entry .shuffle-object b {
  font: calc(12 * var(--px)) Tahoma;
  letter-spacing: 0;
  color: #e4efd9;
}

/* Play button, then the area search terminal and its suggestions. */
.entry-play {
  font: 10px Tahoma;
  border: 1px outset #cbdfdd;
  background: #749284;
  color: #041a17;
  padding: 2px 18px;
  line-height: 1.2;
}

.visual-entry .area-terminal {
  background: none;
  box-shadow: none;
  border: 0;
  border-left: 1px dotted #66838a;
  padding: 6px 10px;
  margin: 0;
  align-self: stretch;
}

.visual-entry .area-terminal > label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  font: calc(12 * var(--px)) Tahoma;
  color: #e9eada;
  padding: 3px 0 7px;
}

.visual-entry .area-terminal > label > b {
  font: calc(12 * var(--px)) Tahoma;
}

.visual-entry .area-terminal .folder-art {
  width: 64px;
  height: 44px;
  margin-top: 9px;
  flex: none;
  font-size: 0;
}

.visual-entry .terminal-input {
  border: 1px inset #b5cfd7;
  background: #061018;
  margin-top: 6px;
}

.visual-entry .terminal-input input {
  font: calc(11 * var(--px)) Tahoma;
  padding: 8px;
  color: #f2f6e8;
}

.visual-entry .terminal-input input::placeholder {
  color: #a7c0c8;
}

.visual-entry .terminal-input button {
  font: 19px Tahoma;
  color: #d5e9cd;
  padding: 0 3px;
  min-width: 24px;
}

.visual-entry .area-suggestions {
  gap: 5px 9px;
  justify-content: center;
  margin-top: 7px;
}

.visual-entry .area-suggestions button {
  font: calc(10 * var(--px))/1.5 Tahoma;
  color: #b5d6d1;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.visual-entry #quick-area-status {
  font: calc(10 * var(--px))/1.4 Tahoma;
  color: #ffc3ce;
}

/* ==========================================================================
   6. Loose objects and web buttons
   A spinning disc, an eye and a film strip scattered on the canvas, and a row of small
   web-button badges. No element in today's hyd-world.html or scripts uses these classes (they
   come from earlier home pages).
   ========================================================================== */

.loose-disc,
.loose-eye,
.loose-film {
  position: absolute;
  border: 0;
  background: none;
  color: #d7e1df;
  z-index: 3;
  padding: 0;
  transition: translate 0.25s;
}

.loose-disc {
  right: 10%;
  top: 554px;
  width: 125px;
  height: 145px;
  rotate: 12deg;
}

/* The disc turns once every 30 s (pw-cd) while --motion is running. */
.loose-disc .disc {
  width: 124px;
  height: 124px;
  position: relative;
  display: block;
  animation: pw-cd 30s linear infinite;
  animation-play-state: var(--motion);
  box-shadow: 3px 5px #01070e;
}

.loose-disc .disc-label {
  font: 8px Tahoma;
  letter-spacing: 0.4px;
}

.object-label {
  font: 10px Tahoma;
  display: inline-block;
  margin-top: 8px;
  padding: 2px 4px;
  background: #10212b;
  color: #d1e6e4;
}

.loose-eye {
  left: 45%;
  top: 622px;
  width: 128px;
  rotate: -8deg;
}

.loose-eye svg {
  width: 128px;
  height: 73px;
}

.loose-eye .object-label {
  margin-top: -6px;
}

.loose-film {
  left: 10%;
  top: 438px;
  width: 150px;
  rotate: -9deg;
  background: #050b11;
  border-block: 5px dotted #889594;
  padding: 4px;
}

.loose-film img {
  width: 100%;
  height: 48px;
  object-fit: cover;
}

.loose-film span {
  font: 7px Tahoma;
  display: block;
  padding: 2px;
}

/* Loose objects lift 5 px on hover. */
.loose-disc:hover,
.loose-eye:hover,
.loose-film:hover {
  translate: 0 -5px;
}

/* Row of web-button badges: the second and third buttons are pink and green, and .web-badge
   is gold hatching. */
.web-buttons {
  display: flex;
  justify-content: center;
  gap: 13px;
  padding: 15px;
  flex-wrap: wrap;
  background: #080f16;
  border-bottom: 1px solid #385662;
}

.web-buttons button,
.web-badge {
  height: 31px;
  min-width: 107px;
  font: bold 8px/1.1 Tahoma;
  padding: 3px 7px;
  border: 2px outset #b7c8d2;
  background: linear-gradient(#263d50, #142032);
  color: #cadbe8;
  box-shadow: 2px 2px black;
  text-align: center;
  letter-spacing: 0.5px;
}

.web-buttons button span {
  font: 19px Georgia;
  vertical-align: middle;
  margin-right: 3px;
  color: #dce8c4;
}

.web-buttons button:nth-child(2) {
  background: linear-gradient(#815568, #442535);
  color: #f5d2e1;
}

.web-buttons button:nth-child(3) {
  background: linear-gradient(#425d49, #213526);
  color: #d4eaca;
}

.web-badge {
  color: #ffe3a6;
  border-color: #947646;
  min-width: 88px;
  background: repeating-linear-gradient(45deg, #0f1a20 0 6px, #3c3b22 6px 9px);
}

/* ==========================================================================
   7. Inner pages: area, places, photo roll, player
   Shared dark background, headings, buttons and panels for the pages after the home desktop.
   ========================================================================== */

/* Carry the compact chrome and image emphasis into the existing pages. */
/* Shared page background: a faint dot grid on dark teal. */
#area,
#roll,
#places,
#cinema {
  background-color: #0a141d;
  background-image: radial-gradient(#8cadbd30 0.6px, transparent 1px);
  background-size: 47px 43px;
  color: #e7efee;
}

/* Page headings: 54 px italic serif (58 px on the photo roll). */
.area-heading h1,
.roll-heading h1,
.places-heading h1 {
  font:
    italic 54px/1 Georgia,
    'Times New Roman',
    serif;
  letter-spacing: -2px;
  text-shadow: 1px 2px #355668;
  color: #e1eaea;
}

.area-heading {
  margin-block: 12px;
}

.area-heading .hand-label,
.roll-art,
.area-flower,
.map-flower {
  display: none;
}

/* Area page: action buttons, top row, body gap and note icon. */
.area-actions > button {
  font: 12px Tahoma;
  padding: 9px 16px;
  background: #264c59;
  border: 2px outset #8babad;
  color: #e2eddf;
  box-shadow: 2px 2px #020810;
}

.area-top,
.area-location {
  font: 11px Tahoma;
  color: #b7cdd1;
}

.area-body {
  gap: 24px;
}

.area-note-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #162832;
  border: 2px outset #8a9da8;
  padding: 8px;
  min-height: 0;
  width: 100%;
  color: #e7e1d9;
}

.area-note-icon svg {
  width: 90px;
  height: 85px;
}

.area-note-icon > span:not([hidden]) {
  font: 12px Tahoma;
}

/* Area postcard, mini film and objects link share one outset-bordered panel. */
.area-postcard,
.mini-film,
.objects-link {
  background: #162c35;
  border: 2px outset #9fb4bc;
  color: #e9eff0;
}

.film-bottom strong {
  font: italic 28px Georgia;
}

.film-bottom small,
.film-top {
  font: 11px Tahoma;
}

.area-postcard span,
.objects-link small {
  font: 11px Tahoma;
  color: #c5d7db;
}

.objects-link {
  padding: 15px;
}

.objects-link > div {
  font: 16px Georgia;
}

.area-bottom {
  font: 11px Tahoma;
}

/* Places page: heading, map tools, status and directory heading. */
.places-heading,
.map-tools {
  background: #0d1c26;
}

.places-heading {
  padding-block: 20px 8px;
}

.map-tools label {
  background: #07131c;
  border: 2px inset #698994;
}

.map-tools input {
  font: 13px Tahoma;
  color: #e7f5ed;
}

.map-tools button,
.collection-tools button,
#shuffle-scraps {
  font: 11px Tahoma;
  border: 1px outset #97abb4;
  background: #2d4758;
  color: #e1eaed;
  box-shadow: 2px 2px #03070e;
}

.map-status {
  font: 10px Tahoma;
  color: #adc2cb;
}

.map-footnote {
  font: 10px/1.6 Tahoma;
  color: #a4bec6;
}

.area-directory-head h2 {
  font: italic 30px Georgia;
  color: #dce7e6;
}

.area-directory-head > span {
  font: 10px Tahoma;
  color: #a8c1c9;
}

/* !important on the background: hyd-actions.css sets .directory-card's background with
   !important at the same specificity; this rule loads after it and wins. Later sheets
   (hyd-retro.css, hyd-theme.css) take over the same way. */
.directory-card {
  border: 2px outset #b2c6cb;
  background: #14303d !important;
  color: #e4eeee;
}

.directory-card strong {
  font: 17px Tahoma;
  letter-spacing: 0;
}

.directory-card small {
  font: 8px Tahoma;
  color: #a2c5ce;
}

.directory-card .directory-action {
  font: 10px Tahoma;
  color: #c2e6e3;
}

/* Map paper panel. */
.map-paper {
  background: #d4ded8;
  color: #112b3c;
  border: 2px outset #f0f8ed;
}

/* Photo roll page: heading, tool buttons and the keepsake wall. */
.roll-heading {
  margin-top: 4px;
}

.roll-heading h1 {
  font-size: 58px;
  margin: 12px 0 21px;
}

.collection-tools {
  margin-bottom: 30px;
  gap: 9px;
}

.collection-tools button[aria-pressed='true'] {
  background: #849d91;
  color: #051d1b;
  box-shadow: 2px 2px #050e16;
}

/* Keepsake cards. !important on the shadow: hyd-maximal.css pins .keepsake's shadow with
   !important, and this selector is more specific. The nth-child rules below vary the card
   colour. */
.keepsake-wall .keepsake {
  background: #122733;
  color: #dbe7e7;
  border: 2px outset #b0c6d0;
  box-shadow: 4px 6px #02060a !important;
}

.keepsake-wall .keepsake:nth-child(3n + 2) {
  background: #302131;
}

.keepsake-wall .keepsake:nth-child(3n) {
  background: #1b3435;
}

.keepsake b {
  font: italic 23px/1.1 Georgia;
  letter-spacing: -0.3px;
}

.keepsake small {
  display: none;
}

.keepsake .scrap-type {
  font: 9px Tahoma;
  color: #b2cdd1;
  letter-spacing: 0;
}

/* Photo, view, note, find and ticket variants of the card. */
.keepsake.paper-photo {
  padding: 16px 6px 6px;
}

.keepsake.paper-photo img {
  height: 190px;
  border: 1px solid #617d8d;
  filter: none;
}

.keepsake.paper-photo b {
  font: 12px Tahoma;
  margin: 8px 4px;
}

.keepsake.paper-view img {
  height: 175px;
}

.keepsake.paper-note {
  min-height: 210px;
  background: #302131;
}

.keepsake.paper-note:before {
  display: none;
}

.keepsake.paper-note .scribble {
  font: italic 14px Georgia;
  color: #e8b8cd;
}

.keepsake.paper-find {
  border-radius: 0;
  min-height: 210px;
}

.keepsake.paper-ticket {
  min-height: 205px;
}

.ticket-years {
  font: 11px Tahoma;
  color: #d9dec5;
  border-color: #5e7d82;
}

.roll-caption {
  font: 10px Tahoma;
  color: #a4bac2;
}

/* Player page: chrome frame, titlebar, transport bar and screen title. */
.cinema-chrome {
  background: #b1bfc8;
  border: 2px outset #dceaf0;
  box-shadow: 4px 5px #02080b;
}

.cinema-titlebar {
  background: linear-gradient(90deg, #224257, #537589);
  font: 11px Tahoma;
  color: #edf3f2;
}

.transport {
  background: linear-gradient(#bcccd0, #7b919b);
  color: #142936;
  font: calc(11 * var(--px)) Tahoma;
}

.transport button,
.transport #note-toggle {
  background: #c3cdd0;
  border: 2px outset #eff4f2;
  color: #152f43;
  font: calc(11 * var(--px)) Tahoma;
}

.screen-title h1 {
  font: italic calc(38 * var(--px)) Georgia;
  letter-spacing: -1px;
}

.screen-title {
  max-width: 60%;
}

.screen-corner,
.screen-disclaimer {
  font: calc(10 * var(--px)) Tahoma;
}

.screen-corner {
  background: #061018b8;
  padding: 5px;
}

.screen-title small {
  font: calc(11 * var(--px)) Tahoma;
}

.screen-title {
  transition: opacity 0.5s;
}

.screen.playing .screen-title {
  opacity: 0;
}

/* Route window and caption. */
.route-title {
  background: #244453;
  color: #e4f1f1;
  font: calc(10 * var(--px)) Tahoma;
}

.route-window {
  background: #b5c9cc;
  border: 2px outset #d1e4e9;
  box-shadow: 2px 3px #071520;
}

.route-caption {
  background: #102530;
  color: #d0e8e6;
}

.route-window small {
  background: #17323e;
  color: #abc6cc;
}

/* Player extras buttons, details text and the recording picker. */
.player-extras > button,
.player-extras > button:nth-child(2),
.player-extras > .deck-launch {
  background: #244353;
  color: #e9f0ed;
  border: 1px outset #8cabbb;
  font: calc(11 * var(--px)) Tahoma;
}

.cinema-below h2 {
  font: calc(24 * var(--px)) Georgia;
  letter-spacing: 0;
}

.cinema-below p {
  font: calc(11 * var(--px)) Tahoma;
  color: #b2c6c9;
}

.recording-picker select {
  background: #193441;
  color: #e5edef;
  border: 1px outset #94b0c2;
  box-shadow: 2px 2px #000;
  font: 12px Tahoma;
}

/* Chapter buttons and the keeps shelf. */
.chapters button {
  font: calc(12 * var(--px)) Tahoma;
  background: #142d3d;
  border-color: #6b8998;
  color: #d8e8e5;
}

.chapters button[aria-pressed='true'] {
  background: #466c6d;
  border-color: #b8d1cd;
  color: #f6fae5;
}

.cinema-keeps {
  background: #091822;
  border-color: #52737c;
}

.cinema-keeps button {
  background: #163441;
  color: #dae9e9;
  border: 1px outset #90a9b4;
  font: 12px Tahoma;
}

/* Player labels and the site footer. */
.cinema-nav,
.cinema-brand {
  font: 11px Tahoma;
  color: #bed2d7;
}

.site-footer {
  font: 10px Tahoma;
  color: #99b0bc;
  background: #080f16;
  border-top: 1px solid #2c414d;
  padding: 16px 24px;
}

.site-footer button,
.blueprint-link {
  font: 10px Tahoma;
  color: #b7cbd5;
}

/* Sound deck panel. */
.sound-deck {
  background: linear-gradient(#acbdc7, #7b8c96);
  border: 2px outset #d4e5e7;
}

.deck-title {
  background: #28485d;
  color: #edf7f6;
  font: 11px Tahoma;
}

.deck-channels button {
  font: 11px Tahoma;
}

.deck-channels button[aria-pressed='true'] {
  background: #264d60;
  color: #f3f8ee;
}

.deck-footnote {
  font: 10px/1.5 Tahoma;
  color: #152b39;
}

/* ==========================================================================
   8. Keyframes
   pw-spark (pulse and shrink) and pw-float (bob and tilt) animate the wallpaper sparks and the
   chrome charm; pw-cd (one full turn) spins the loose disc.
   ========================================================================== */

@keyframes pw-spark {
  50% {
    opacity: 0.25;
    scale: 0.7;
  }
}

@keyframes pw-float {
  50% {
    translate: 0 -9px;
    rotate: 8deg;
  }
}

@keyframes pw-cd {
  to {
    rotate: 360deg;
  }
}

/* ==========================================================================
   9. Breakpoints
   1200 px and up, 900 px and under, 620 px and under. Each query moves and resizes the home
   windows; the 620 px query also turns the canvas into a wrapping column.
   ========================================================================== */

/* 1200 px and up: a shorter canvas (735 px) and a few windows and objects shifted. */
@media (min-width: 1200px) {
  .portal-collage #desk-entry {
    left: 36%;
    top: 286px;
  }

  .portal-collage #desk-photos {
    left: 15%;
    top: 147px;
    width: 330px;
  }

  .desk-recordings img {
    height: 105px;
  }

  .portal-collage #desk-view {
    right: 7%;
    top: 161px;
    width: 280px;
  }

  .portal-collage #desk-notes {
    left: 23%;
    top: 492px;
  }

  .loose-disc {
    right: 18%;
    top: 544px;
  }

  .loose-eye {
    left: 48%;
    top: 557px;
  }

  .portal-collage .web-desktop {
    height: 735px;
  }
}

/* 900 px and under: smaller shell bar, title, icons and windows, with new positions for each
   window. */
@media (max-width: 900px) {
  /* Shell bar, ribbon and title block. */
  .shell {
    padding: 10px 16px;
    gap: 13px;
  }

  .shell .brand {
    font-size: 20px;
  }

  .shell nav {
    gap: 0;
  }

  .shell nav button {
    font-size: 11px;
    padding: 6px 8px;
  }

  .shell .deck-launch {
    font-size: 10px;
    padding: 7px;
  }

  .web-ribbon {
    font-size: 8px;
    gap: 17px;
    letter-spacing: 1px;
  }

  .portal-brand {
    left: 23%;
    top: 25px;
    width: 57%;
  }

  .portal-brand h1 {
    font-size: 78px;
    letter-spacing: -5px;
  }

  /* Icon column and chrome charm. */
  .portal-collage .desktop-icons {
    left: 8px;
    width: 75px;
    top: 40px;
    gap: 24px;
  }

  .portal-collage .desktop-icons b {
    font-size: calc(10 * var(--px));
  }

  .portal-collage .desktop-wallpaper > .chrome-charm {
    right: 1%;
    width: 81px;
    height: 81px;
    top: 5px;
  }

  /* Window positions at this width. */
  .portal-collage #desk-photos {
    left: 17%;
    top: 148px;
    width: 270px;
    rotate: -4deg;
  }

  .desk-recordings img {
    height: 73px;
  }

  .portal-collage #desk-view {
    right: 5%;
    top: 497px;
    width: 238px;
    rotate: 4deg;
  }

  .portal-collage #desk-entry {
    top: 301px;
    left: 26%;
    width: 390px;
  }

  .portal-collage #desk-notes {
    left: 17%;
    top: 575px;
    width: 145px;
  }

  .desk-note-object svg {
    height: 75px;
    width: 80px;
  }

  .portal-collage #desk-places {
    right: 3%;
    top: 399px;
    width: 290px;
  }

  .portal-collage #desk-stickers {
    left: 31%;
    top: 285px;
    width: 280px;
  }

  /* Loose objects and canvas height. */
  .loose-disc {
    top: 151px;
    right: 4%;
    width: 110px;
    height: 126px;
  }

  .loose-disc .disc {
    width: 110px;
    height: 110px;
  }

  .loose-eye {
    left: 45%;
    top: 670px;
    width: 94px;
  }

  .loose-eye svg {
    width: 94px;
    height: 52px;
  }

  .loose-film {
    left: 15%;
    top: 493px;
    width: 120px;
  }

  .portal-collage .web-desktop {
    height: 805px;
  }

  .area-heading h1,
  .places-heading h1 {
    font-size: 45px;
  }
}

/* 620 px and under: the phone layout. The canvas becomes a wrapping flex container; its
   padding-top reserves room for the absolutely positioned title and icon grid, and the
   windows flow in order below them. */
@media (max-width: 620px) {
  /* Shell bar and ribbon; the bar may wrap onto a second line. */
  .shell {
    gap: 8px;
    padding: 8px 10px;
    flex-wrap: wrap;
  }

  .shell .brand {
    font-size: 20px;
  }

  .shell nav {
    margin-left: auto;
  }

  .shell nav button {
    padding: 5px 7px;
  }

  .shell .deck-launch {
    margin-left: auto;
  }

  .shell .motion {
    margin-left: 0;
  }

  .web-ribbon {
    padding: 7px 6px;
    gap: 10px;
    font-size: 7px;
  }

  .web-ribbon span:nth-last-child(-n + 2) {
    display: none;
  }

  .portal-collage .web-desktop {
    height: auto;
    min-height: 0;
    padding: 271px 14px 75px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px 10px;
  }

  /* Title block sizes (the last 620 px block, at the end of the file, adjusts them again). */
  .portal-brand {
    top: 17px;
    left: 12%;
    width: 77%;
  }

  .portal-brand h1 {
    font-size: 70px;
  }

  .portal-brand > span:first-child {
    font-size: 10px;
    letter-spacing: 3px;
  }

  .portal-collage .desktop-wallpaper > .chrome-charm {
    width: 56px;
    height: 56px;
    right: 0;
    top: 62px;
  }

  /* Icons become a four-column grid across the top. */
  .portal-collage .desktop-icons {
    top: 126px;
    left: 12px;
    right: 12px;
    width: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px 5px;
  }

  .portal-collage .desktop-icons > button {
    width: auto;
    min-height: 56px;
    gap: 3px;
  }

  .portal-collage .desktop-icons b {
    font-size: calc(10 * var(--px));
  }

  .desktop-icons svg {
    height: 39px;
    width: 44px;
  }

  .portal-collage .desktop-icons .folder-art {
    width: 37px;
    height: 27px;
  }

  .portal-collage .desktop-icons .sound-icon {
    width: 34px;
    height: 34px;
  }

  /* Windows leave absolute positioning and stack in order. !important on transform: none
     cancels the drag offset (hyd-desktop.js stores --wx and --wy, which hyd-desktop.css
     applies as a translate on .desktop-window), so a stacked window never shifts.
     hyd-mobile-desktop.css later takes over the phone layout with its own rules. */
  .portal-collage .desktop-window,
  .portal-collage #desk-entry,
  .portal-collage #desk-photos,
  .portal-collage #desk-view,
  .portal-collage #desk-notes,
  .portal-collage #desk-places,
  .portal-collage #desk-stickers {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none !important;
    max-width: 100%;
    margin: 0;
    rotate: 0deg;
  }

  /* Stacking order: Start here first, then recordings, then the rest. */
  .portal-collage #desk-entry {
    order: -2;
    width: 100%;
    margin: 0 0 3px;
  }

  /* Start here body at phone width. */
  .visual-entry {
    min-height: 202px;
    grid-template-columns: 0.9fr 1.1fr;
    padding: 11px 4px;
  }

  .visual-entry .shuffle-art {
    width: 86px;
    height: 86px;
    flex-basis: 86px;
  }

  .visual-entry .shuffle-object b {
    font-size: calc(12 * var(--px));
  }

  .visual-entry .area-terminal {
    padding: 7px 8px;
  }

  .visual-entry .area-suggestions button {
    font-size: calc(10 * var(--px));
  }

  /* Other windows: recordings first, then the viewer and About me windows, then the
     full-width Places and Stickers windows. */
  .portal-collage #desk-photos {
    order: -1;
    width: 100%;
    rotate: -1deg;
  }

  .desk-recordings img {
    height: 104px;
  }

  .desk-recordings span {
    font-size: calc(9 * var(--px));
  }

  .portal-collage #desk-view {
    width: 58%;
    rotate: 3deg;
    margin-left: 1%;
  }

  .portal-collage .desktop-sky img {
    height: 105px;
  }

  .portal-collage #desk-notes {
    width: 35%;
    rotate: -4deg;
  }

  .desk-note-object {
    padding: 4px;
  }

  .desk-note-object svg {
    width: 77px;
    height: 77px;
  }

  .desk-note-object span {
    font-size: 10px;
  }

  .portal-collage #desk-places,
  .portal-collage #desk-stickers {
    width: 100%;
    order: 0;
  }

  /* Taskbar: labels hidden, smaller buttons. */
  .portal-collage .desktop-taskbar > span {
    display: none;
  }

  .portal-collage .desktop-taskbar button {
    font-size: 9px;
    padding: 0 6px;
  }

  .portal-collage .desktop-taskbar .desk-reset > b {
    display: none;
  }

  .portal-collage .desktop-tasks {
    overflow: auto;
  }

  /* Loose objects return to flow after the windows; the film strip is hidden. */
  .loose-disc {
    position: relative;
    order: 1;
    top: auto;
    right: auto;
    width: 75px;
    height: 94px;
    margin: 10px 9px 0 15%;
    rotate: 10deg;
  }

  .loose-disc .disc {
    width: 75px;
    height: 75px;
  }

  .loose-disc .disc-label {
    font-size: 5px;
  }

  .loose-eye {
    position: relative;
    order: 2;
    left: auto;
    top: auto;
    width: 85px;
    rotate: 0deg;
    margin: 14px 0 0 5%;
  }

  .loose-eye svg {
    width: 85px;
    height: 56px;
  }

  .loose-film {
    display: none;
  }

  .object-label {
    font-size: 9px;
  }

  /* Web buttons shrink and the badge is hidden. */
  .web-buttons {
    gap: 9px;
    padding: 12px 10px;
  }

  .web-buttons button {
    font-size: 7px;
    min-width: 90px;
    height: 29px;
  }

  .web-badge {
    display: none;
  }

  /* Page headings and keepsake cards shrink. */
  .area-heading h1,
  .places-heading h1 {
    font-size: 39px;
  }

  .roll-heading h1 {
    font-size: 47px;
  }

  .keepsake-wall .keepsake img {
    height: 148px;
  }

  .keepsake b {
    font-size: 23px;
  }

  .keepsake.paper-note,
  .keepsake.paper-find,
  .keepsake.paper-ticket {
    min-height: 190px;
  }

  .screen-title h1 {
    font-size: calc(28 * var(--px));
  }

  .screen-title {
    max-width: 70%;
  }

  .site-footer {
    padding: 13px 15px;
    gap: 12px;
  }

  .portal-collage .desktop-wallpaper .spark-two {
    top: 970px;
  }

  .portal-collage .desktop-wallpaper .spark-three {
    top: 600px;
  }
}

/* ==========================================================================
   10. Motion switches and late repaints
   Reduced-motion rules, then second-pass repaints of the title and the menu buttons.
   ========================================================================== */

/* The visitor's motion switch (.motion-off on <body>, toggled in hyd-world.js) and
   prefers-reduced-motion both stop every animation and transition in the collage. !important
   so no component rule, however specific, can restart them. */
.motion-off .portal-collage * {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .portal-collage * {
    animation: none !important;
    transition: none !important;
  }
}

/* Second pass over the title: a softer white-to-steel gradient and a drop-shadow filter
   replace the first gradient (same selector, later wins). The italic em keeps its own pink
   gradient. */
.portal-brand h1 {
  text-shadow: none;
  filter: drop-shadow(1px 2px 0 #173c51);
  background-image: linear-gradient(
    #fff9ef 8%,
    #f0fbff 30%,
    #96aab7 43%,
    #465e72 46%,
    #e8faff 49%,
    #dae4ef 68%,
    #a8bccb 86%
  );
}

.portal-brand h1 em {
  background: linear-gradient(
    #fff4ed 9%,
    #f6d5e5 32%,
    #be8fa7 43%,
    #5e4255 46%,
    #fff0f5 50%,
    #eab1cf 72%,
    #a27f9e
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Menu-bar buttons look like small underlined links. */
.portal-collage .desktop-menu button {
  font: calc(10 * var(--px)) Tahoma;
  border: 0;
  padding: 0 3px;
  background: none;
  color: #102f40;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.portal-collage .desktop-menu button:hover {
  background: #254e71;
  color: white;
}

/* Area hero card: bevelled frame, film top bar, play orb and bottom fade. */
.area-main .hero-journey {
  border: 2px outset #b0c6d0;
  box-shadow: 5px 6px #01090d;
}

.area-main .film-top {
  background: #294959;
  color: #d3e5ea;
}

.area-main .play-orb {
  background: linear-gradient(#d6e0d3, #a6c7b2);
  color: #112938;
  border: 1px outset #f4f8e9;
  box-shadow: 3px 3px #0c1d27;
}

.area-main .film-bottom {
  background: linear-gradient(transparent, #06121bd9);
}

/* ==========================================================================
   11. Metro page
   A sibling collection of line, station and media windows. The page is switched off
   (METRO_ENABLED is false in hyd-search.js) and hyd-world.html no longer contains a #metro
   section, so the #metro, #metro-* and .metro-* rules match nothing today. Four groups in
   this section DO match live elements (later sheets may still override them): the [hidden]
   guard for #journey-map and .chapters, the last rule of the Metro 900 px block
   (.portal-collage .desktop-icons), the last three rules of the Metro 620 px block (home
   icons and canvas padding) and the whole final 620 px block (.portal-brand). Do not delete
   this section as a unit. Everything is kept exactly as it was.
   ========================================================================== */

/* Metro is a sibling collection; sample media stays explicitly labelled. */
/* #metro sets --line, the line colour (blue by default), used by the station rail and the
   progress bar. */
#metro {
  --line: #79b1eb;
  padding: 27px 35px 32px;
  background:
    radial-gradient(#8cadbd30 0.6px, transparent 1px) 0/47px 43px,
    #0a141d;
  min-height: 75vh;
}

/* Heading with an icon, the title and a button at the right. */
.metro-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 26px;
}

.metro-heading svg {
  width: 55px;
  height: 67px;
}

.metro-heading h1 {
  font: italic 52px/1 Georgia;
  color: #e0edf0;
  margin: 0;
  letter-spacing: -2px;
}

.metro-heading > button {
  margin-left: auto;
  color: #bed3d8;
  font: 11px Tahoma;
}

/* Line picker: one button per line; the red and green picks recolour only their swatch. */
.metro-line-picks {
  display: flex;
  gap: 12px;
  margin: 0 0 26px;
  flex-wrap: wrap;
}

.metro-line-picks button {
  padding: 9px 16px;
  background: #203340;
  border: 2px outset #90a9b4;
  color: #ecf1e9;
  font: 12px Tahoma;
  display: flex;
  gap: 8px;
  align-items: center;
}

.metro-line-picks button[aria-pressed='true'] {
  border-style: inset;
  background: #0a1d2b;
}

.metro-line-picks i {
  width: 11px;
  height: 11px;
  display: block;
  border: 1px solid #d9eef7;
  background: #79b1eb;
  border-radius: 50%;
  box-shadow: 0 0 6px #79b1eb44;
}

.metro-line-picks [data-metro-line='red'] i {
  background: #f397a3;
}

.metro-line-picks [data-metro-line='green'] i {
  background: #a3d6a8;
}

/* Two columns: a wide one for the media window (tilted -1.5 degrees) and a narrower one for
   the station window (tilted 2 degrees). */
.metro-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 35px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.metro-media-window,
.metro-station-window {
  padding: 4px;
  border: 2px outset #d1e4e9;
  background: #aebec7;
  box-shadow: 6px 7px #01070c;
}

.metro-media-window {
  rotate: -1.5deg;
}

.metro-station-window {
  rotate: 2deg;
  margin-top: 31px;
}

/* Window title bar. */
.metro-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px;
  background: linear-gradient(90deg, #244154, #557888);
  font: 11px Tahoma;
  color: #eff6f4;
}

/* Media preview: an art panel with a line and a station badge, and a row of photo slots. */
.metro-media-window > #metro-preview {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #101e29;
  color: #dcebea;
  border: 0;
  padding: 16px 12px 17px;
}

.metro-window-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: 100%;
  height: 190px;
  background:
    repeating-linear-gradient(90deg, transparent 0 35px, #526b8117 35px 36px),
    radial-gradient(ellipse, #416a8144, transparent 70%);
  border: 1px inset #7195a5;
  position: relative;
  overflow: hidden;
}

.metro-window-art:after {
  content: '';
  position: absolute;
  height: 3px;
  background: var(--line);
  left: 15%;
  right: 15%;
  bottom: 23px;
  box-shadow: 0 7px #37566e;
}

.metro-window-art svg {
  height: 127px;
  width: 127px;
  filter: drop-shadow(4px 5px #030c15);
  transition: translate 0.4s;
}

.metro-window-art > b {
  font: 25px Tahoma;
  border-radius: 50%;
  border: 1px solid #b6cdd5;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #244450;
  color: #d9eecb;
}

.metro-media-window > #metro-preview:hover svg {
  translate: 7px 0;
}

#metro-preview-title {
  font: italic 26px Georgia;
}

#metro-preview small {
  font: 10px Tahoma;
  color: #b1c4c9;
}

.metro-photo-slots {
  display: flex;
  gap: 6px;
  padding: 6px 2px 2px;
}

.metro-photo-slots button {
  background: #233641;
  border: 1px inset #d2e2e8;
  color: #d9e6e7;
  font: 11px Tahoma;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 8px;
}

.metro-photo-slots svg {
  width: 42px;
  height: 42px;
}

/* Station window: search field and the station rail. */
.metro-station-body {
  padding: 14px 16px;
  background: #101f29;
  color: #d8e3e4;
}

.metro-search input {
  width: 100%;
  font: 12px Tahoma;
  border: 1px inset #9ab2be;
  background: #07131b;
  color: #e7f0e8;
  padding: 9px 12px;
}

.metro-search input::placeholder {
  color: #a2b9c3;
}

#metro-stations {
  display: grid;
  gap: 0;
  position: relative;
  margin: 16px 0 7px;
}

#metro-stations:before {
  content: '';
  position: absolute;
  left: 13px;
  top: 23px;
  bottom: 24px;
  width: 4px;
  background: var(--line);
}

#metro-stations > button {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 6px;
  border: 0;
  background: none;
  color: #e2eaeb;
  font: 13px Tahoma;
  position: relative;
  text-align: left;
}

#metro-stations i {
  width: 18px;
  height: 18px;
  background: #102536;
  border: 3px solid var(--line);
  border-radius: 50%;
  flex: none;
}

#metro-stations b {
  margin-left: auto;
  font-size: 11px;
  color: #aec9cc;
}

#metro-stations > button:hover {
  background: #274151;
}

#metro-stations > button:hover i {
  background: var(--line);
}

/* Status lines and the disclaimer. */
.metro-window-status {
  font: 9px Tahoma;
  color: #213f4d;
  padding: 5px;
  border: 1px inset #c7dce4;
  margin-top: 4px;
}

#metro-station-status {
  font: 11px Tahoma;
  color: #e6b4c4;
}

.metro-disclaimer {
  font: 10px/1.6 Tahoma;
  color: #aac1cc;
  margin: 28px 0 0;
}

.metro-disclaimer a {
  color: #c2d9da;
  margin-left: 12px;
}

/* Progress bar: a track whose fill and marker follow --progress (default 0%), and a row of
   stop names. No current script sets --progress. */
#metro-progress {
  padding: 20px 12px 10px;
  background: #081d2a;
  --line: #79b1eb;
}

/* Live: #journey-map and .chapters are on the page. Restates the global [hidden] rule from
   hyd-world.css (display: none !important) for these four blocks, belt and braces: no sheet
   sets their display with !important, so it is not needed for correctness. hyd-world.js sets
   hidden on them (the two Metro ones only if they exist), for example when a photo is playing
   or a recording has no map. */
#metro-progress[hidden],
#metro-chapters[hidden],
#journey-map[hidden],
.chapters[hidden] {
  display: none !important;
}

.metro-progress-track {
  height: 4px;
  background: #466575;
  position: relative;
  margin: 0 8px 12px;
}

.metro-progress-track:before {
  content: '';
  position: absolute;
  width: var(--progress,0%);
  height: 4px;
  background: var(--line);
}

.metro-progress-track i {
  position: absolute;
  left: var(--progress,0%);
  top: -4px;
  width: 12px;
  height: 12px;
  background: #f3ebd3;
  border: 2px solid #5e8296;
  border-radius: 50%;
  transform: translateX(-50%);
}

#metro-progress-stops {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: #d1e3e9;
  font: 7px/1.3 Tahoma;
  text-align: center;
}

#metro-progress-stops span {
  max-width: 24%;
}

/* Metro chapter buttons. */
#metro-chapters {
  display: flex;
  gap: 9px;
  padding: 18px 0;
  flex-wrap: wrap;
  border-block: 1px solid #405b69;
}

#metro-chapters button {
  font: 12px Tahoma;
  border: 2px outset #9bb6c3;
  background: #173443;
  color: #dce9e9;
  padding: 10px 14px;
}

#metro-chapters button[aria-pressed='true'] {
  border-style: inset;
  background: #649096;
  color: #061c28;
}

/* Metro at 900 px and under. The last rule is live: it tightens the home icon gap. */
@media (max-width: 900px) {
  #metro {
    padding: 23px;
  }

  .metro-layout {
    gap: 22px;
    grid-template-columns: 1.1fr 1fr;
  }

  .metro-heading h1 {
    font-size: 42px;
  }

  .metro-window-art {
    height: 170px;
    gap: 13px;
  }

  .metro-window-art svg {
    width: 97px;
    height: 97px;
  }

  #metro-preview-title {
    font-size: 22px;
  }

  .metro-station-body {
    padding: 10px;
  }

  #metro-stations > button {
    font-size: 11px;
    gap: 10px;
  }

  .metro-photo-slots button {
    font-size: 10px;
    gap: 4px;
  }

  .metro-photo-slots svg {
    height: 32px;
    width: 32px;
  }

  .portal-collage .desktop-icons {
    gap: 18px;
  }
}

/* Metro at 620 px and under. The last three rules are live: they adjust the home icon gap,
   the icon height and the canvas padding. */
@media (max-width: 620px) {
  #metro {
    padding: 18px 15px;
  }

  .metro-heading {
    gap: 10px;
    margin-bottom: 22px;
  }

  .metro-heading h1 {
    font-size: 35px;
  }

  .metro-heading svg {
    width: 40px;
    height: 50px;
  }

  .metro-heading > button {
    font-size: 9px;
    max-width: 53px;
  }

  .metro-line-picks {
    gap: 8px;
  }

  .metro-line-picks button {
    font-size: 11px;
    padding: 8px 10px;
  }

  .metro-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .metro-station-window {
    margin-top: 0;
    rotate: 1deg;
  }

  .metro-window-art {
    height: 155px;
  }

  .metro-station-body {
    padding: 12px 17px;
  }

  #metro-stations > button {
    font-size: 13px;
  }

  .metro-disclaimer {
    font-size: 9px;
  }

  .metro-photo-slots button {
    font-size: 11px;
  }

  .portal-collage .desktop-icons {
    gap: 13px 5px;
  }

  .portal-collage .desktop-icons > button {
    min-height: 56px;
  }

  .portal-collage .web-desktop {
    padding-top: 282px;
  }
}

/* Live (not Metro): another 620 px block, placed last so it overrides the title-block sizes
   in the section 9 phone block (same selectors, later wins): a wider title box and a one-line
   title scaled with clamp(). */
@media (max-width: 620px) {
  .portal-brand {
    left: 5%;
    width: 90%;
    top: 22px;
  }

  .portal-brand h1 {
    font-size: clamp(44px, 14vw, 64px);
    letter-spacing: -3.5px;
    white-space: nowrap;
  }

  .portal-brand .tiny-orbit {
    right: 16px;
    bottom: -19px;
    font-size: 25px;
  }
}
