/* hyd-remix.css: the mixtape colour skin, loaded straight after hyd-world.css (see the link
   order in hyd-world.html). It recolours and repositions that base sheet. hyd-aqua.css,
   hyd-player.css and the later skins restyle many of the same selectors, and at equal
   specificity the sheet loaded last wins.

   Order: palette tokens, page and top bar (.shell), old home hero and entry cards, photo roll,
   player page (#cinema), sound deck, places header, then the max-width breakpoints (1000, 760
   and 560 px) and reduced motion.

   Unused selectors: 49 of the 94 class and id names written in this file appear in neither
   hyd-world.html nor any site script (grep, 6 Oct 2026). They are the old home hero, entry
   cards, photo roll, keepsake strip and deck equalizer; hyd-world.html does not carry that
   markup today. They are kept exactly as shipped: this pass only adds comments and blank lines. */

/* Hyderabad mixtape: electric blue, signal pink, acid green, ink. */

/* Palette: retunes the four tokens that hyd-world.css declares and reads through var(), so every
   use there shifts to the mixtape colours. */
:root {
  --blue: #292aff;
  --pink: #ff268e;
  --lime: #e6ff24;
  --ink: #100d22;
}

/* Page background and top bar. The .shell header holds the brand, nav, music deck button and
   motion toggle. */
body {
  background: #090818;
}

.shell {
  background: linear-gradient(#605d72, #191927 48%, #343144);
  color: #fff;
  border-bottom: 2px solid #c2c2e1;
}

.brand .dot {
  color: #ff63b0;
}

.logo-star {
  color: #d7ff35;
}

.shell nav button.active {
  background: #dcff27;
  color: #131224;
  box-shadow: 3px 3px #ff268e;
}

/* Music deck launcher button (header and player page). The dot shows while audio plays
   (has-audio). */
.deck-launch {
  font: calc(10 * var(--px)) 'IBM Plex Mono';
  background: #2929ed;
  border: 1px solid #aaa6fa;
  box-shadow: 2px 2px #090a16;
  color: #f8f5ff;
  padding: 8px 10px;
  white-space: nowrap;
}
.deck-launch.has-audio:before {
  content: '● ';
  color: #dcff3a;
}

/* Motion toggle in the header. */
.shell .motion {
  color: #ece9ff;
}

/* Old home hero (.new-collage): title block with offset shadows, orbit ring, CD and globe
   objects, stamp and stickers. From here down to the area page (hero, entry cards, journey
   shelf, window colour themes, object buttons) no current markup or script uses these class
   names (grep, 6 Oct 2026). */
.new-collage {
  height: 350px;
  background: #17113c;
  background-image:
    linear-gradient(0deg, #fd228c1b 1px, transparent 1px),
    linear-gradient(90deg, #8a7bff22 1px, transparent 1px),
    radial-gradient(ellipse at 85% 80%, #59297d 0, transparent 55%);
  background-size:
    35px 35px,
    35px 35px,
    auto;
  border-bottom: 2px solid #fa298e;
}
.new-collage .welcome {
  top: 75px;
}
.new-collage .welcome h1 {
  color: #f2f1e5;
  text-shadow:
    3px 3px #2729ff,
    6px 6px #f9007d;
  letter-spacing: -8px;
}
.new-collage .welcome h1 em {
  color: #e6ff31;
  text-shadow:
    3px 3px #2729ff,
    6px 6px #f9007d;
}
.new-collage .welcome p {
  color: #f4f4e8;
  background: #2929df;
  box-shadow: 3px 3px #ff2c91;
}
.new-collage .welcome > span {
  box-shadow: 4px 4px #ee2f98;
  color: #111;
}
.new-collage .star-a {
  display: none;
}
.new-collage .orbit {
  border-color: #ff4bb6;
  box-shadow: 0 0 15px #ff298b33;
}
.new-collage .cd-object {
  top: 64px;
}
.new-collage .world-object {
  bottom: 25px;
}

.home-stamp {
  color: #e8ff51;
  border-color: #e8ff51;
  bottom: 21px;
  right: 38%;
}

.sticker-a {
  left: 4%;
  bottom: 28px;
}

.sticker-b {
  color: #191329;
}

.sticker-c {
  background: #ff3e98;
  color: #140b1b;
}

/* !important: hyd-world.css colours .title-spark with !important, so this override has to carry
   it too. */
.title-spark {
  color: #ff35a1 !important;
}

/* Hero artwork: skyline and auto-rickshaw. autobob rocks the rickshaw, and animation-play-state
   follows --motion, which hyd-world.css declares as running and the header motion button
   (hyd-world.js) flips to paused. */
.hero-skyline {
  position: absolute;
  bottom: -2px;
  right: 13%;
  width: 280px;
  height: 110px;
  filter: drop-shadow(0 0 12px #aa40de66);
  pointer-events: none;
}

.hero-auto {
  position: absolute;
  bottom: 60px;
  right: 29%;
  width: 100px;
  height: 69px;
  transform: rotate(-7deg);
  animation: autobob 4s ease-in-out infinite;
  animation-play-state: var(--motion);
  pointer-events: none;
}

@keyframes autobob {
  50% {
    translate: 8px -4px;
    rotate: 3deg;
  }
}

.punk-orbit {
  left: 32%;
  bottom: 20px;
}

/* Entry cards (.entry-paths): the two big start buttons (random and by area) with their dice and
   signpost glyphs. */
.entry-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #111023;
  padding: 22px 30px 25px;
  gap: 22px;
  border-bottom: 8px solid #2223f5;
}
.entry-paths > button {
  display: flex;
  align-items: center;
  gap: 19px;
  text-align: left;
  border: 2px solid black;
  padding: 17px 20px;
  box-shadow: 5px 5px #8a79b8;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}
.entry-paths > button:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.entry-random {
  background: #e6ff24;
}

.entry-area {
  background: #ff3d98;
}

.entry-paths b {
  font: bold 25px/1.04 'Space Grotesk';
  letter-spacing: -1.1px;
  display: block;
}
.entry-paths small {
  font: 10px 'IBM Plex Mono';
  display: block;
  margin-top: 7px;
}
.entry-paths i {
  font: 31px Arial;
  margin-left: auto;
}

.dice {
  font: 65px/1 Arial;
  transition: transform 0.5s;
}

.entry-random:hover .dice {
  transform: rotate(150deg);
}

.sign-arrows {
  font: bold 35px/0.6 Arial;
  transform: rotate(-8deg);
}

/* Journey shelf, window title bar colour themes (.cobalt, .rose, .tangerine, .mint) and the
   extras strip. */
.journey-shelf {
  background: #d9d8ce;
}

.journey-tile {
  box-shadow: 5px 6px #141124;
}

.cobalt .window-bar {
  background: #2925f8;
}

.rose .window-bar {
  background: #cf0876;
}

.tangerine .window-bar {
  background: #e74f18;
}

.mint .window-bar {
  background: #0a574f;
}

.home-extras {
  background-color: #2324e9;
  background-image: radial-gradient(#fc51b557 1px, transparent 1px);
}

/* Object buttons (.hyd-object): an icon with a tilted caption. */
.hyd-object {
  background: none;
  border: 0;
  color: #f5fc51;
  position: relative;
}
.hyd-object svg {
  width: 120px;
  height: 155px;
  display: block;
  margin: auto;
  transition: rotate 0.3s;
}
.hyd-object:hover svg {
  rotate: -7deg;
}
.hyd-object > span {
  font: 10px 'IBM Plex Mono';
  background: #121125;
  padding: 7px;
  display: inline-block;
  transform: rotate(-5deg);
}

/* Area page: notice board title, action row, #area background and heading. */
.noticeboard-title h2 {
  color: #ff3b9a;
}

.area-actions {
  padding: 0 30px 23px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.area-actions button {
  background: #e6ff27;
  border: 2px solid black;
  box-shadow: 4px 4px #2424f4;
  padding: 12px 16px;
  font: bold 12px 'IBM Plex Mono';
}
.area-actions > span {
  font: 10px 'IBM Plex Mono';
}

#area {
  background: #ffc1d9;
  background-image: radial-gradient(#d7248033 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

.area-heading h1 {
  color: #2423e4;
  text-shadow: 3px 3px #f5f859;
}

/* Photo roll page: corner art, #roll background, heading, collection tool buttons, paper scraps
   and the keepsake wall. */
.roll-art {
  position: absolute;
  top: 18px;
  right: 4%;
  width: 220px;
  transform: rotate(6deg);
  pointer-events: none;
}
.roll-art svg {
  width: 190px;
  height: 135px;
}
.roll-art span {
  font: bold 26px Arial;
  display: block;
  color: #e9ff29;
  text-shadow: 2px 2px #17112d;
  transform: rotate(-5deg);
}

#roll {
  position: relative;
  background: #11102b;
  background-image:
    linear-gradient(0deg, #43449740 1px, transparent 1px),
    linear-gradient(90deg, #43449740 1px, transparent 1px);
  background-size: 28px 28px;
}

.roll-heading h1 {
  color: #ecff37;
  text-shadow:
    4px 4px #2930fd,
    6px 6px #e8268c;
}
.roll-heading h1 span {
  color: #ff3598;
}

.collection-tools button[aria-pressed='true'] {
  background: #ff439c;
  color: #100d22;
  box-shadow: 3px 3px #c5fd3c;
}

.paper-rocks {
  background: #f94a9b;
}
.paper-rocks svg {
  width: 100%;
  height: 140px;
}

.paper-chai {
  background: #e2fc39;
}
.paper-chai svg {
  width: 95px;
  height: 135px;
  float: right;
  filter: drop-shadow(3px 3px #ba6f6155);
}
.paper-chai .scrap-type {
  clear: both;
}

.paper-rocks b,
.paper-chai b {
  font-size: 26px;
}

.keepsake-wall {
  row-gap: 32px;
}

.keepsake {
  box-shadow:
    5px 6px #070817,
    6px 7px #9a90be;
}

/* Player page (#cinema): grid background, nav, chrome frame and title bar. */
#cinema {
  background: #11102b;
  background-image: linear-gradient(90deg, #28204840 1px, transparent 1px);
  background-size: 28px;
  color: #f4f2f9;
}

.cinema-nav {
  color: #ecff3d;
  padding: 18px 25px;
}

.cinema-brand {
  color: #ff65b5;
}

.cinema-chrome {
  margin: 0 22px;
  border: 2px solid #dbd7ee;
  box-shadow: 7px 8px #f02d8e;
  background: #b4b4c7;
  padding: 4px;
}

.cinema-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #2922e4;
  color: #faffc9;
  padding: 7px 10px;
  font: 10px 'IBM Plex Mono';
  height: 34px;
  overflow: hidden;
}

/* Signal wave in the player title bar. sineflow slides it sideways in a loop, paused through
   --motion. Unused today (grep, 6 Oct 2026). */
.signal-wave {
  width: 160px;
  height: 30px;
  overflow: hidden;
  color: #f3ff48;
}
.signal-wave svg {
  width: 200px;
  height: 30px;
  animation: sineflow 3s linear infinite;
  animation-play-state: var(--motion);
}

@keyframes sineflow {
  to {
    transform: translateX(-24.8px);
  }
}

/* Screen overlays: date, title, disclaimer and corner label. */
.screen {
  aspect-ratio: 16/8.4;
  border: 1px solid #100f22;
}

.screen-date {
  top: 44px;
  bottom: auto;
  left: 24px;
  right: auto;
  color: #e5ff38;
  background: #111125a0;
  font-size: calc(9 * var(--px));
}

.screen-title {
  bottom: 35px;
  max-width: calc(100% - 290px);
}
.screen-title h1 {
  font: italic bold calc(43 * var(--px))/1 Georgia;
  color: #f7ffcc;
  text-shadow: 2px 2px #100f26;
}

.screen-disclaimer {
  bottom: 10px;
  max-width: calc(100% - 275px);
}

.screen-corner {
  color: #faffd7;
}

/* Route window: the small map card over the screen, with its title bar, caption, note text,
   Leaflet pane tweaks and the .journey-position marker. */
.route-window {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 224px;
  border: 2px solid #19152c;
  box-shadow: 4px 4px #ff359b;
  background: #d2d2df;
  color: #15132c;
  padding: 3px;
  z-index: 3;
  transform: rotate(1deg);
}

.route-title {
  background: #e2ff39;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 6px;
  font: bold calc(10 * var(--px)) 'IBM Plex Mono';
  border: 1px solid #17152a;
}
.route-title button {
  width: 22px;
  height: 20px;
  background: #f6f5de;
  border: 1px outset #dfe1e7;
  font: bold 17px/1 Arial;
  padding: 0;
}

.route-window #journey-map {
  width: 100%;
  height: 126px;
  background: #bfe4d2;
}
.route-window .leaflet-tile-pane {
  filter: saturate(0.5) contrast(1.05);
}

.route-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 6px;
  background: #111127;
  color: #e2ff3e;
  font: calc(8 * var(--px)) 'IBM Plex Mono';
}
.route-caption b {
  font-weight: 400;
}

.route-window small {
  display: block;
  font: calc(7 * var(--px))/1.5 'IBM Plex Mono';
  padding: 3px 4px;
  background: #ddd8e4;
}
.route-window .leaflet-control-attribution {
  font-size: calc(7 * var(--px));
  background: #eeeedb;
}
.route-window .leaflet-control-attribution a {
  color: #292243;
}

.journey-position {
  background: #ff2090;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #151335;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.journey-position span {
  display: block;
}

/* Transport bar under the screen. */
.transport {
  background: linear-gradient(#f0f1fa, #b4b2c6 50%, #d9d9e5);
  border-top: 3px solid #848295;
  padding: 10px 13px;
}
.transport input {
  accent-color: #ec2594;
}
.transport #note-toggle {
  background: #e8ff4a;
}

/* Extras row under the transport: random and area buttons, deck launcher and journey volume
   slider. */
.player-extras {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 25px 27px 7px;
  flex-wrap: wrap;
}
.player-extras > button {
  background: #ff48a1;
  border: 1px solid #e2d9f7;
  box-shadow: 3px 3px #070719;
  color: #161027;
  padding: 9px 11px;
  font: calc(10 * var(--px)) 'IBM Plex Mono';
}
.player-extras > button:nth-child(2) {
  background: #dfff36;
}
.player-extras > .deck-launch {
  margin-left: auto;
  background: #2922e8;
  color: white;
}

.journey-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font: calc(9 * var(--px)) 'IBM Plex Mono';
  color: #c8c3e5;
}
.journey-volume input {
  width: 80px;
  accent-color: #ddff39;
}
.journey-volume small {
  width: 100%;
  font-size: 8px;
  opacity: 0.65;
}

/* Below the player: recording picker, sample label, chapter buttons and the note card. */
.cinema-below {
  padding-top: 21px;
}

.recording-picker label {
  color: #edff6e;
}
.recording-picker select {
  background: #2922e4;
  border-color: #7d75de;
  color: white;
  box-shadow: 3px 3px #f02f97;
}

.sample-label {
  color: #f59ec6;
}

.chapters button {
  background: #302d65;
}
.chapters button[aria-pressed='true'] {
  background: #edff40;
  color: #16132a;
  border-color: #edff40;
}

.player-note {
  right: 265px;
  top: 70px;
  background: #ff79b6;
  color: #18112b;
}

/* Keepsake strip (.cinema-keeps): two tilted buttons, an icon and an italic line of text. Unused
   today (grep, 6 Oct 2026). */
.cinema-keeps {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 24px 28px 0;
  padding: 18px 4px 0;
  border-top: 1px dashed #9d80d6;
}
.cinema-keeps > button {
  background: #282248;
  color: #f3f2d7;
  padding: 10px;
  border: 1px solid #8262b6;
  font: 10px 'IBM Plex Mono';
  transform: rotate(-3deg);
  box-shadow: 3px 3px #ed3a95;
}
.cinema-keeps > button span {
  display: inline-block;
  font-size: 30px;
  margin-right: 6px;
  color: #e8ff45;
  vertical-align: middle;
}
.cinema-keeps > svg {
  width: 94px;
  height: 64px;
  animation: autobob 5s infinite;
  animation-play-state: var(--motion);
}
.cinema-keeps p {
  font: italic 15px/1.4 Georgia;
  color: #e4bfec;
  margin-left: auto;
}
.cinema-keeps p b {
  font-size: 19px;
  color: #edff47;
}

/* Sound deck (#sound-deck), the floating music player: title bar, display, equalizer, channel
   buttons, controls, file picker and footnote. */
.sound-deck {
  position: fixed;
  bottom: 18px;
  right: 22px;
  width: 348px;
  padding: 4px;
  background: linear-gradient(120deg, #a4a6bb, #e1e0ec, #8b8ca6);
  border: 2px outset #f5f4fc;
  box-shadow: 6px 7px #07081799;
  z-index: 900;
  color: #111326;
  transform: rotate(-0.5deg);
}

.deck-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px;
  background: #2521da;
  color: #f7f5d5;
  font: 10px 'IBM Plex Mono';
}
.deck-title button {
  font: bold 15px Arial;
  background: #d0d1df;
  border: 2px outset white;
  padding: 0;
  width: 19px;
  height: 19px;
}

.deck-display {
  background: #141620;
  color: #deff63;
  border: 2px inset #acaebf;
  margin: 5px 3px;
  display: flex;
  align-items: center;
  padding: 10px 8px;
  gap: 10px;
  min-height: 66px;
}
.deck-display > div:last-child {
  min-width: 0;
}
.deck-display b {
  display: block;
  font: 11px 'IBM Plex Mono';
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 223px;
}
.deck-display span {
  font: 8px 'IBM Plex Mono';
  color: #afc881;
  display: block;
  margin-top: 6px;
}

/* Equalizer bars. eq animates them while the deck plays (audio-playing); they dim while the
   music is ducked, meaning turned down under a playing recording (ducked). Unused today (grep, 6
   Oct 2026). */
.equalizer {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 36px;
  flex-shrink: 0;
}
.equalizer i {
  display: block;
  width: 3px;
  height: 3px;
  background: #dfff31;
}

.audio-playing .equalizer i {
  height: calc(9px + var(--bar)*2px);
  animation: eq 0.7s ease-in-out infinite alternate;
  animation-delay: calc(var(--bar)*-.09s);
  animation-play-state: var(--motion);
}

@keyframes eq {
  to {
    scale: 1 0.25;
  }
}

.ducked.audio-playing .equalizer {
  opacity: 0.45;
}

/* Channel buttons. Unused today, like the equalizer above. */
.deck-channels {
  display: flex;
  gap: 4px;
  margin: 6px 3px;
}
.deck-channels button {
  flex: 1;
  padding: 7px 4px;
  background: #ddddeb;
  border: 2px outset #f9f9ff;
  font: 8px 'IBM Plex Mono';
  color: #171326;
}
.deck-channels button[aria-pressed='true'] {
  background: #ff459c;
  border: 2px inset #fd8ac7;
}

/* Deck controls: play button, volume sliders, audio file picker, duck option and footnote. */
.deck-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 4px;
}
.deck-controls > button {
  background: #e8ff37;
  border: 2px outset #f6ffe4;
  padding: 6px 11px;
}
.deck-controls > button:disabled {
  opacity: 0.5;
}
.deck-controls > label {
  font: 8px 'IBM Plex Mono';
}
.deck-controls input[type='range'] {
  width: 80px;
  display: block;
  accent-color: #2426e7;
  margin: 6px 0;
}

.audio-picker {
  padding: 8px 6px;
  border: 1px solid #6c6e8a;
  background: #e6e5f1;
  cursor: pointer;
  position: relative;
}
.audio-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.audio-picker:focus-within {
  outline: 2px solid #2426e7;
}

.duck-option {
  font: 9px 'IBM Plex Mono';
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
}
.duck-option input {
  accent-color: #ed288f;
}

.deck-footnote {
  font: 8px/1.6 'IBM Plex Mono';
  margin: 5px 5px 6px;
  color: #444058;
}

.sound-deck audio {
  display: none;
}

/* Places page: map paper, heading and tools, plus a few small accents (.map-flower,
   .sticker-rack, .home-foot). */
.map-paper {
  background: #e6ff35;
}

.places-heading,
.map-tools {
  background: #ff48a2;
}
.places-heading h1 {
  color: #181134;
  text-shadow: 3px 3px #edff2b;
}

.map-flower {
  color: #2524ee;
}

.sticker-rack button {
  border-color: #111022;
}

.home-foot {
  background: #e8ff37;
}

/* While the screen is playing (hyd-world.js adds .playing to .screen), the small play button
   turns pink. */
.screen.playing ~ .transport #play-small {
  background: #fe79bb;
}

/* Up to 1000px wide: tighter header, hero, entry cards and player rows. */
@media (max-width: 1000px) {
  /* Header. */
  .shell {
    gap: 12px;
    padding-inline: 18px;
  }

  .shell nav button {
    padding-inline: 10px;
  }

  /* Home hero and entry cards. */
  .new-collage .welcome h1 {
    font-size: 84px;
  }

  .hero-skyline {
    width: 230px;
    right: 15%;
  }

  .hero-auto {
    right: 32%;
    width: 80px;
    bottom: 48px;
  }

  .home-stamp {
    right: 44%;
    font-size: 6px;
  }

  .entry-paths b {
    font-size: 21px;
  }
  .entry-paths small {
    font-size: 9px;
  }
  .entry-paths {
    gap: 16px;
    padding-inline: 22px;
  }
  .entry-paths > button {
    padding: 15px;
    gap: 12px;
  }

  .dice {
    font-size: 50px;
  }

  /* Keepsake strip and player extras. */
  .cinema-keeps {
    gap: 16px;
  }
  .cinema-keeps p {
    max-width: 180px;
  }

  .player-extras {
    gap: 10px;
  }

  /* Photo roll corner art. */
  .roll-art {
    width: 170px;
  }
  .roll-art svg {
    width: 160px;
    height: 120px;
  }
  .roll-art span {
    font-size: 22px;
  }
}

/* Up to 760px wide: smaller hero, route window and screen text, with rows allowed to wrap. */
@media (max-width: 760px) {
  /* Home hero and entry cards. */
  .new-collage {
    height: 315px;
  }
  .new-collage .welcome h1 {
    font-size: 72px;
  }
  .new-collage .welcome {
    top: 70px;
  }

  .hero-skyline {
    width: 195px;
    height: 75px;
    right: 18%;
  }

  .hero-auto {
    width: 67px;
    right: 42%;
    bottom: 13px;
  }

  .home-stamp {
    display: none;
  }

  .new-collage .world-object {
    bottom: 21px;
    right: 2%;
  }

  .sticker-a {
    bottom: 22px;
    left: 4%;
    font-size: 8px;
  }

  .entry-paths > button {
    gap: 10px;
    padding: 13px;
  }
  .entry-paths b {
    font-size: 20px;
  }
  .entry-paths small {
    font-size: 8px;
    line-height: 1.5;
  }

  .dice {
    font-size: 42px;
  }

  .entry-paths i {
    font-size: 22px;
  }

  /* Photo roll art and heading. */
  .roll-art {
    right: 15px;
    top: 30px;
    width: 128px;
  }
  .roll-art svg {
    width: 123px;
    height: 93px;
  }
  .roll-art span {
    font-size: 19px;
  }

  .roll-heading h1 {
    font-size: 62px;
    max-width: 70%;
    line-height: 1.05;
  }
  .roll-heading h1 span {
    display: none;
  }

  /* Route window and screen text. */
  .route-window {
    width: 177px;
    right: 11px;
    bottom: 14px;
  }
  .route-window #journey-map {
    height: 102px;
  }

  .route-title {
    font-size: calc(9 * var(--px));
  }

  .route-window small {
    font-size: calc(6 * var(--px));
  }

  .screen-title {
    max-width: calc(100% - 210px);
    left: 20px;
    bottom: 40px;
  }
  .screen-title h1 {
    font-size: calc(31 * var(--px));
  }

  .screen-disclaimer {
    left: 20px;
    max-width: calc(100% - 205px);
    font-size: calc(8 * var(--px));
  }

  .screen-date {
    left: 20px;
    top: 37px;
    font-size: calc(8 * var(--px));
  }

  .screen {
    aspect-ratio: 16/10;
  }

  /* Player frame, note card and extras row. */
  .cinema-chrome {
    margin-inline: 14px;
  }

  .player-note {
    right: auto;
    left: 15px;
    top: 50px;
    max-width: 220px;
    z-index: 5;
  }

  .player-extras {
    padding: 23px 18px 2px;
  }

  /* Keepsake strip, area actions, title bar and volume slider. */
  .cinema-keeps {
    margin-inline: 18px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .cinema-keeps p {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .area-actions {
    padding-inline: 23px;
    flex-wrap: wrap;
  }
  .area-actions button {
    font-size: 10px;
  }

  .cinema-titlebar {
    font-size: 8px;
  }
  .cinema-titlebar .signal-wave {
    width: 80px;
  }

  .journey-volume {
    margin-left: auto;
  }

  .player-extras > .deck-launch {
    margin-left: 0;
  }
}

/* Up to 560px wide (phones): single-column entry cards, compact header and player, and the sound
   deck fits the screen width. */
@media (max-width: 560px) {
  /* Header. */
  .shell {
    padding: 10px 13px;
    gap: 10px;
  }

  .shell nav {
    order: 4;
    margin-top: 1px;
  }

  .shell .deck-launch {
    margin-left: auto;
    font-size: 9px;
    padding: 6px;
  }

  .shell .motion {
    font-size: 0;
  }
  .shell .motion span {
    margin-left: 0;
  }

  .brand {
    font-size: 18px;
  }

  /* Home hero and entry cards. */
  .new-collage .welcome {
    top: 70px;
  }
  .new-collage .welcome h1 {
    font-size: 67px;
    letter-spacing: -6px;
  }

  .entry-paths {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 17px 23px;
  }
  .entry-paths > button {
    padding: 14px 17px;
    gap: 15px;
    min-height: 84px;
  }
  .entry-paths b {
    font-size: 23px;
  }
  .entry-paths small {
    font-size: 9px;
  }
  .entry-paths i {
    font-size: 27px;
  }

  .dice {
    font-size: 48px;
  }

  .entry-area .sign-arrows {
    font-size: 29px;
    padding-inline: 8px;
  }

  .hero-skyline {
    right: 2%;
    width: 190px;
    bottom: -2px;
  }

  .hero-auto {
    right: 39%;
    bottom: 18px;
    width: 63px;
  }

  .new-collage .cd-object {
    top: 159px;
    right: 10%;
    scale: 0.37;
    transform-origin: right top;
  }
  .new-collage .world-object {
    display: none;
  }
  .new-collage .welcome p {
    max-width: 265px;
  }

  .sticker-a {
    max-width: 140px;
    bottom: 17px;
  }

  .new-collage {
    height: 305px;
  }

  /* Photo roll art, heading and paper scraps. */
  .roll-art {
    width: 99px;
    right: 13px;
    top: 38px;
  }
  .roll-art svg {
    width: 99px;
    height: 83px;
  }
  .roll-art span {
    font-size: 16px;
  }

  .roll-heading h1 {
    font-size: 52px;
    max-width: 73%;
    margin-top: 19px;
  }
  .roll-heading > span {
    max-width: 76%;
    font-size: 8px;
  }
  .roll-heading p {
    max-width: 250px;
  }

  .paper-rocks svg {
    height: 120px;
  }

  .paper-chai svg {
    width: 83px;
    height: 125px;
  }

  /* Area actions. */
  .area-actions {
    padding: 0 18px 23px;
    gap: 15px;
  }
  .area-actions button {
    font-size: 10px;
  }
  .area-actions > span {
    font-size: 9px;
  }

  /* Player page: nav, frame and title bar. */
  .cinema-nav {
    padding: 14px 16px;
    font-size: 9px;
  }

  .cinema-chrome {
    margin: 0 9px;
    box-shadow: 4px 5px #f52a93;
    padding: 3px;
  }

  .cinema-titlebar {
    height: 29px;
    font-size: 8px;
    padding: 5px 6px;
  }
  .cinema-titlebar > span:last-child {
    display: none;
  }

  /* Screen, route window and overlay text. */
  .screen {
    aspect-ratio: 4/3.4;
  }

  .route-window {
    width: 143px;
    right: 8px;
    bottom: 11px;
    box-shadow: 2px 2px #fc46a3;
  }
  .route-window #journey-map {
    height: 86px;
  }

  .route-title {
    font-size: calc(8 * var(--px));
    padding: 2px 4px;
  }
  .route-title button {
    width: 18px;
    height: 17px;
    font-size: 14px;
  }

  .route-caption {
    font-size: calc(7 * var(--px));
    padding: 4px;
  }

  .route-window small {
    font-size: calc(6 * var(--px));
    line-height: 1.4;
  }

  .screen-title {
    left: 14px;
    bottom: 47px;
    max-width: calc(100% - 174px);
  }
  .screen-title h1 {
    font-size: calc(27 * var(--px));
    line-height: 0.98;
    letter-spacing: -1px;
  }
  .screen-title small {
    font-size: calc(9 * var(--px));
  }

  .screen-disclaimer {
    left: 14px;
    max-width: calc(100% - 174px);
    font-size: calc(7 * var(--px));
    bottom: 14px;
  }

  .screen-corner {
    left: 13px;
    font-size: calc(8 * var(--px));
    top: 13px;
  }

  .screen-date {
    left: 13px;
    top: 31px;
    font-size: calc(7 * var(--px));
  }

  /* Transport and extras row. */
  .transport {
    padding: 9px 7px;
    gap: 7px;
  }
  .transport button {
    padding: 6px;
  }

  .player-extras {
    padding: 21px 14px 2px;
    gap: 10px;
  }
  .player-extras > button {
    font-size: calc(9 * var(--px));
    padding: 8px;
  }

  .journey-volume {
    margin-left: 0;
    width: 58%;
    font-size: calc(8 * var(--px));
    margin-top: 5px;
  }
  .journey-volume input {
    width: 73px;
  }
  .journey-volume small {
    font-size: 7px;
  }

  .player-extras > .deck-launch {
    margin-left: auto;
  }

  /* Below the player and the keepsake strip. */
  .cinema-below {
    padding: 23px 16px 17px;
  }
  .cinema-below h2 {
    font-size: calc(22 * var(--px));
  }

  .cinema-keeps {
    gap: 14px;
    margin: 22px 15px 0;
  }
  .cinema-keeps > svg {
    width: 65px;
    height: 48px;
  }
  .cinema-keeps > button {
    font-size: 8px;
    max-width: 140px;
    padding: 8px;
  }
  .cinema-keeps > button span {
    font-size: 20px;
  }
  .cinema-keeps > button:nth-of-type(2) {
    max-width: 120px;
  }
  .cinema-keeps p {
    font-size: 14px;
  }
  .cinema-keeps p b {
    font-size: 17px;
  }

  /* Note card and sound deck. The deck is capped to the viewport width and stops tilting. */
  .player-note {
    max-width: 220px;
    top: 36px;
  }

  .sound-deck {
    right: 10px;
    bottom: 10px;
    width: min(348px, calc(100vw - 20px));
    transform: none;
  }

  .deck-title {
    font-size: 9px;
  }
}

/* Reduced motion: stops the looping animations defined in this file (the global rule in
   hyd-world.css covers every element as well). */
@media (prefers-reduced-motion: reduce) {
  .signal-wave svg,
  .hero-auto,
  .cinema-keeps > svg {
    animation: none;
  }

  .audio-playing .equalizer i {
    animation: none;
  }
}
