/*
 * hyd-actions.css - early colour layer: the original collage home page, the shuffle overlay and
 * the first dark purple skin for the Places, Area and player pages.
 *
 * Owns: the hero collage and journey tiles of the original home page, the shuffle overlay
 * (#shuffle-overlay), the dark purple colours for the Places, Area and player pages, the
 * compact discovery row (shuffle button and area search box) and the dialog pop-in animation.
 * Depends on: base layout rules in hyd-world.css and hyd-remix.css, which load first.
 * Custom properties: sets --surface, --card-dark, --edge, --soft and --bright on #world
 * (hyd-retro.css sets the same five later and wins); reads --motion, which the motion switch
 * in hyd-world.js sets to paused or running on the root element.
 * Body class it reacts to: motion-off.
 * Cascade: third author sheet (after hyd-world.css and hyd-remix.css), so most colours here are
 * a base that later skins repaint; where the same selector appears twice in this file, the
 * later rule wins.
 *
 * Dormant code: the collage home page (.new-collage, .journey-tile, .noticeboard,
 * .pocket-camera, .recording-console, .hyd-hologram, ...) and the old Roll and Area page
 * parts (.keepsake, .paper-note, .directory-card, ...) no longer appear in hyd-world.html or
 * any shipped script (grep, 6 Oct 2026); they match only the archived snapshots under
 * versions/. They are kept in place and marked Dormant below.
 */

/* Build on the original colourful desktop collage. */
body {
  background: #070711;
}

.shell {
  background: linear-gradient(#35314e, #12121e 48%, #222039);
  border-bottom-color: #8a76c8;
}

/* ---------------------------------------------------------------------------
   Collage hero (dormant)
   The hero strip of the original home page: title, burst badge, CD and world objects,
   stamps and sticker positions. Nothing in this group has live markup.
   --------------------------------------------------------------------------- */
.new-collage {
  height: 390px;
  background-color: #0d0922;
  background-image:
    linear-gradient(#6d48ff20 1px, transparent 1px),
    linear-gradient(90deg, #6d48ff20 1px, transparent 1px),
    radial-gradient(ellipse at 75% 75%, #462073 0, transparent 58%);
  background-size:
    34px 34px,
    34px 34px,
    auto;
}

.new-collage .welcome {
  top: 92px;
}

.new-collage .welcome h1 {
  font-size: clamp(86px, 9vw, 133px);
  text-shadow:
    3px 3px #6044ff,
    6px 6px #ec248e;
}

.new-collage .welcome h1 em {
  color: #d8ff33;
  text-shadow:
    3px 3px #6044ff,
    6px 6px #ec248e;
}

.new-collage .welcome p {
  background: #4530c7;
}

/* !important on display keeps the burst badge a flex box, which the centring rules further down
   (align-items, justify-content) rely on, whatever other sheets set. */
.new-collage .burst {
  display: flex !important;
  right: 4%;
  top: 153px;
  bottom: auto;
  width: 138px;
  height: 138px;
  background: #ddff37;
  color: #110a24;
  z-index: 5;
  filter: drop-shadow(5px 5px #000);
  animation: random-wobble 6s ease-in-out infinite;
  animation-play-state: var(--motion);
  transition: scale 0.3s;
}

.new-collage .burst > span {
  font: bold 17px/1 'IBM Plex Mono';
}

.new-collage .burst b {
  display: block;
  font-size: 25px;
  margin-top: 9px;
}

.new-collage .burst:hover {
  scale: 1.12;
}

.new-collage .burst:active {
  scale: 0.92;
}

.new-collage .cd-object {
  right: 19%;
  top: 58px;
}

.new-collage .world-object {
  right: 4%;
  bottom: 10px;
}

.home-stamp {
  right: 36%;
  bottom: 18px;
}

.hero-auto {
  right: 28%;
  bottom: 34px;
}

.hero-skyline {
  right: 13%;
  bottom: 0;
}

.new-collage .punk-orbit {
  left: 38%;
  bottom: 5px;
}

.sticker-c {
  right: 33%;
  top: 51px;
}

.sticker-a {
  bottom: 24px;
}

/* Journey shelf and tiles (dormant, including .shelf-heading). */
.journey-shelf {
  background: #11101e;
  color: #eee9ff;
  border-bottom: 2px solid #5843ba;
}

.shelf-heading > span {
  color: #b4acd2;
}

.journey-tile {
  background: #252137;
  color: #fcf5ff;
  border-color: #9a8cad;
  box-shadow: 5px 6px #05030c;
}

.journey-tile .tile-copy small {
  color: #c6bbdc;
}

.journey-tile .tile-copy i {
  color: #e2ff4c;
}

.journey-tile .window-bar {
  border-color: #0e0a1b;
}

.journey-tile:hover {
  box-shadow:
    9px 12px #02010a,
    0 0 0 2px #dbff36;
  transform: translateY(-8px) rotate(0deg);
}

.tile-picture {
  height: 190px;
}

.tile-play {
  transition:
    transform 0.4s,
    background 0.3s;
}

.journey-tile:hover .tile-play {
  transform: translate(-50%, -50%) scale(1.2) rotate(-8deg);
  background: #ddff36;
  color: #120a25;
}

/* Home extras: noticeboard, sticker rack and footer links (dormant). */
.home-extras {
  background-color: #24154b;
  background-image: radial-gradient(#9851e64d 1px, transparent 1px);
}

.noticeboard {
  background: #0b0a18;
  color: #f5eeff;
}

.noticeboard-title small {
  color: #bfb1d7;
}

.noticeboard-title h2 {
  color: #ff5bac;
}

.sticker-rack {
  background-color: #291445;
  background-image: repeating-linear-gradient(90deg, transparent 0 35px, #d578ed15 35px 36px);
}

.home-foot {
  background: #0c0a19;
  color: #d9ccf2;
}

.home-foot button {
  color: #dfff41;
}

.blueprint-link {
  font: 10px 'IBM Plex Mono';
  color: #cebedf;
  margin-left: auto;
  margin-right: 18px;
}

/* Footer spacing. */
.site-footer {
  gap: 16px;
}

/* Focus ring for the hero buttons (dormant). */
.new-collage .cd-object:focus-visible,
.new-collage .burst:focus-visible {
  outline: 4px solid #ff83c8;
  outline-offset: 5px;
}

/* Burst wobble (used by .new-collage .burst). */
@keyframes random-wobble {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

/* Photo and story dialogs pop in when opened; window-pop is reused by .shuffle-box. */
#photo-dialog[open],
#story-dialog[open] {
  animation: window-pop 0.42s cubic-bezier(0.2, 1.5, 0.4, 1);
}

@keyframes window-pop {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.75) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Stamp-in animation for placed stickers (dormant). */
.placed-sticker {
  animation: stamp-pop 0.4s cubic-bezier(0.2, 1.8, 0.4, 1);
}

@keyframes stamp-pop {
  from {
    scale: 2;
    opacity: 0;
  }
  to {
    scale: 1;
    opacity: 1;
  }
}

/* ---------------------------------------------------------------------------
   Shuffle overlay
   Status overlay shown while a random recording is picked (markup in hyd-world.html): a
   framed box with a title bar, a reel of thumbnails, a spinning dice and a caption.
   z-index 10000 keeps it above everything; pointer-events all blocks clicks behind it.
   --------------------------------------------------------------------------- */
#shuffle-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #080615e8;
  backdrop-filter: blur(8px);
  pointer-events: all;
}

#shuffle-overlay[hidden] {
  display: none;
}

.shuffle-box {
  width: min(330px, 84vw);
  padding: 6px;
  background: #b8b0c8;
  border: 2px solid #eee6ff;
  box-shadow: 10px 10px #d91a8d;
  transform: rotate(-3deg);
  animation: window-pop 0.3s;
}

.shuffle-bar {
  display: flex;
  justify-content: space-between;
  background: #5833dd;
  color: #f3ffab;
  padding: 9px;
  font: 10px 'IBM Plex Mono';
}

.shuffle-reel {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #151026;
}

.shuffle-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shuffle-reel:after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 3px, #17112a30 3px 4px);
  pointer-events: none;
}

.shuffle-caption {
  padding: 14px 8px 10px;
  color: #131022;
  font: bold 19px 'Space Grotesk';
  text-align: center;
}

.shuffle-caption > span {
  display: block;
  font: 9px 'IBM Plex Mono';
  padding-top: 7px;
  color: #594675;
}

.shuffle-dice {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font: 70px/1 Arial;
  color: #ddff39;
  text-shadow: 3px 3px #211129;
  animation: dice-turn 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes dice-turn {
  to {
    transform: rotate(540deg);
  }
}

/* ---------------------------------------------------------------------------
   Collage breakpoints (1000, 760 and 450 px)
   Dormant apart from the .site-footer wrapping at 760 px. This banner covers only the three
   @media blocks below; the next banner starts the mixed groups after them.
   --------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .new-collage .welcome h1 {
    font-size: 89px;
    letter-spacing: -6px;
  }

  .new-collage .burst {
    width: 122px;
    height: 122px;
    top: 173px;
  }

  .new-collage .cd-object {
    right: 18%;
    top: 64px;
  }

  .tile-picture {
    height: 148px;
  }
}

@media (max-width: 760px) {
  .new-collage {
    height: 340px;
  }

  .new-collage .welcome {
    top: 84px;
  }

  .new-collage .welcome h1 {
    font-size: 78px;
    letter-spacing: -5px;
  }

  .new-collage .cd-object {
    right: 1%;
    top: 57px;
    scale: 0.5;
  }

  .new-collage .burst {
    right: 5%;
    top: 190px;
    width: 105px;
    height: 105px;
  }

  .new-collage .burst > span {
    font-size: 13px;
  }

  .new-collage .burst b {
    font-size: 22px;
    margin-top: 5px;
  }

  .new-collage .world-object {
    right: 25%;
    bottom: 0;
    scale: 0.68;
  }

  .hero-auto {
    right: 24%;
    bottom: 43px;
  }

  .hero-skyline {
    right: 13%;
    width: 210px;
  }

  .home-stamp {
    display: none;
  }

  .sticker-c {
    right: 4%;
    top: 37px;
    font-size: 7px;
  }

  .sticker-a {
    bottom: 15px;
  }

  .tile-picture {
    height: 170px;
  }

  .blueprint-link {
    margin-left: 0;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 450px) {
  .new-collage {
    height: 362px;
  }

  .new-collage .welcome {
    top: 75px;
  }

  .new-collage .welcome h1 {
    font-size: 65px;
    letter-spacing: -4px;
  }

  .new-collage .welcome p {
    max-width: 255px;
  }

  .new-collage .cd-object {
    top: 218px;
    right: 44%;
    scale: 0.32;
  }

  .new-collage .burst {
    top: 218px;
    right: 5%;
    width: 112px;
    height: 112px;
  }

  .new-collage .world-object {
    display: none;
  }

  .hero-auto {
    right: 35%;
    bottom: 33px;
    width: 78px;
  }

  .hero-skyline {
    right: 27%;
    width: 170px;
    opacity: 0.7;
  }

  .new-collage .punk-orbit {
    display: none;
  }

  .tile-picture {
    height: 130px;
  }

  .shelf-heading > span {
    max-width: 108px;
  }

  .sticker-a {
    bottom: 12px;
    font-size: 7px;
  }

  .new-collage .welcome h1 em {
    letter-spacing: -4px;
  }
}

/* ---------------------------------------------------------------------------
   Later additions (mixed)
   Groups added over time, live and dormant side by side. Live: the motion switches below,
   the shuffle overlay reel, the shared dark surface tokens on #world, the page backdrop and the
   page titles. Dormant: the tile colour, hero, burst, hologram, recording console, pocket
   camera and home extras groups, which say so in their own comments, and the unlabelled
   .shelf-heading, .journey-tile and .tile-copy rules.
   --------------------------------------------------------------------------- */

/* !important group: stops animation when motion is off or the visitor prefers reduced motion.
   Needed for dialog, whose open animation is set by an id selector (#photo-dialog[open])
   that outranks a plain class selector. */
.motion-off .burst,
.motion-off .placed-sticker,
.motion-off dialog {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .new-collage .burst,
  .placed-sticker,
  dialog {
    animation: none !important;
  }
}

/* Per-tile background colours (dormant). */
.home-films .journey-tile:nth-child(n) {
  background: #262137;
}

.home-films .journey-tile:nth-child(2) {
  background: #301831;
}

.home-films .journey-tile:nth-child(3) {
  background: #302131;
}

.home-films .journey-tile:nth-child(4) {
  background: #182e32;
}

/* Superseded by the same selector in the shared dark surfaces block below. */
.shelf-heading h2 {
  background: #3d26a6;
  color: #f6f1ff;
}

.journey-tile:hover .tile-play {
  transform: rotate(-8deg);
}

.tile-copy i {
  border-color: #ad93cf66;
}

/* Shuffle overlay reel: the strip is four reel-widths wide and each image fills one reel-width. */
.shuffle-strip {
  display: flex;
  width: 400%;
  height: 100%;
}

.shuffle-strip img {
  width: 25%;
  height: 100%;
  flex: 0 0 25%;
  object-fit: cover;
}

/* Hero title entrance animation and its off switches (dormant). */
.new-collage .welcome h1 {
  animation: wordmark-arrive 0.8s cubic-bezier(0.2, 1, 0.3, 1) both;
}

@keyframes wordmark-arrive {
  from {
    opacity: 0;
    translate: -24px 18px;
    filter: blur(7px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

.motion-off .new-collage .welcome h1 {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .new-collage .welcome h1 {
    animation: none;
  }
}

/* Burst content centring (dormant). */
.new-collage .burst {
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
}

.new-collage .burst > span {
  display: block;
  position: relative;
  transform: none;
  margin: 0;
  padding: 0;
}

/* Shared dark surfaces across home, collections, area and cinema. */
#world {
  --surface: #100c1d;
  --card-dark: #241c32;
  --edge: #79678e;
  --soft: #c6b8db;
  --bright: #e0ff52;
}

.shelf-heading h2 {
  background: #20182e;
  color: #f4eaff;
  box-shadow: 3px 3px #775188;
  border: 1px solid #796189;
  font-size: 24px;
}

.shelf-heading > span {
  color: #ad9fbf;
}

/* Hero objects again (dormant); this restates positions set earlier, and the later rule wins. */
.new-collage .cd-object {
  right: 21%;
  top: 60px;
  scale: 1.08;
}

/* Hologram card (dormant). */
.hyd-hologram {
  position: absolute;
  right: 22%;
  bottom: 18px;
  width: 173px;
  height: 117px;
  padding: 4px;
  background: linear-gradient(120deg, #715b91, #d3c7e5 18%, #3e3157 45%, #bcaada 70%, #544166);
  border: 1px solid #dfd0f1;
  box-shadow: 5px 7px #050210;
  transform: rotate(-9deg);
  z-index: 3;
  overflow: hidden;
  color: white;
  text-align: left;
  transition:
    transform 0.4s,
    box-shadow 0.4s;
}

.hyd-hologram:hover {
  transform: rotate(0deg) translateY(-9px);
  box-shadow: 7px 12px #050210;
}

.hyd-hologram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.55) contrast(1.2);
}

.holo-top {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  z-index: 2;
  background: #10091be0;
  padding: 5px;
  font: 7px 'IBM Plex Mono';
  display: flex;
  justify-content: space-between;
}

.holo-top i {
  font-style: normal;
  color: #ff69ad;
}

.holo-word {
  position: absolute;
  bottom: 12px;
  left: 7px;
  color: #f1ddffb3;
  -webkit-text-stroke: 1px #f1d8ff;
  font: bold italic 57px/0.9 Arial;
  letter-spacing: -5px;
  mix-blend-mode: screen;
}

.holo-bottom {
  position: absolute;
  bottom: 5px;
  left: 7px;
  font: 6px 'IBM Plex Mono';
  letter-spacing: 1px;
  color: #efffbd;
}

.new-collage .world-object {
  display: none;
}

.home-stamp {
  display: none;
}

.new-collage .punk-orbit {
  left: 36%;
  bottom: 1px;
}

.sticker-c {
  right: 4%;
  top: 43px;
}

/* Recording console buttons (dormant). */
.recording-console {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 27px;
}

.recording-console > button {
  background: linear-gradient(130deg, #322442, #191326);
  border: 1px solid #9673ba;
  box-shadow: 3px 4px #06040b;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  color: #f3e9ff;
  text-align: left;
  transition:
    transform 0.25s,
    border-color 0.25s;
}

.recording-console > button:hover {
  transform: translateY(-3px);
  border-color: #e1ff53;
}

.console-icon {
  font: 40px/1 Arial;
  color: #c2a4e9;
  transition: rotate 0.5s;
}

.console-shuffle:hover .console-icon {
  rotate: 180deg;
}

.recording-console .console-area {
  background: linear-gradient(130deg, #241f39, #151424);
  border-color: #766ca7;
}

.recording-console b {
  display: block;
  font: 700 16px/1.2 'Space Grotesk';
  letter-spacing: -0.3px;
}

.recording-console small {
  display: block;
  font: 8px 'IBM Plex Mono';
  color: #bdaccd;
  margin-top: 6px;
}

.recording-console i {
  font: 18px Arial;
  color: #d2ec66;
  margin-left: auto;
}

.home-films {
  gap: 19px;
}

/* Pocket camera drawn in CSS: body, LCD, lens and caption (dormant). */
.pocket-camera {
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotate(-7deg);
  padding: 0;
}

.camera-body {
  display: block;
  width: min(100%, 230px);
  height: 139px;
  position: relative;
  border-radius: 11px 13px 16px 9px;
  background: linear-gradient(115deg, #f1eff2, #9c94a9 23%, #d6ccdf 29%, #554b63 78%, #bab0c4);
  box-shadow:
    6px 9px 0 #080411,
    inset 2px 2px #fffd,
    inset -4px -3px #3d354a;
  border: 1px solid #cfc4db;
  padding: 13px 11px;
  transition: transform 0.4s;
}

.pocket-camera:hover .camera-body {
  transform: rotate(9deg) translateY(-7px);
}

.camera-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 8px 'IBM Plex Mono';
  color: #32283d;
  margin-bottom: 14px;
}

.camera-top i {
  display: block;
  width: 36px;
  height: 12px;
  border: 2px solid #62566a;
  background: repeating-linear-gradient(90deg, #f3eafd 0 2px, #9b8aab 2px 4px);
  border-radius: 2px;
}

.camera-front {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.camera-lcd {
  width: 55%;
  height: 64px;
  border: 4px solid #292130;
  border-radius: 3px;
  background: #13101d;
  position: relative;
  overflow: hidden;
}

.camera-lcd img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.3) saturate(0.5);
}

.camera-lcd > span {
  position: absolute;
  bottom: 2px;
  left: 3px;
  color: #d9ff9d;
  font: 6px 'IBM Plex Mono';
}

.camera-lens {
  display: block;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 43% 42%,
    #81e5ff 0 5%,
    #4c3970 8%,
    #080c1b 20%,
    #543a72 24%,
    #13101c 27%,
    #17121b 37%,
    #9b94a0 39%,
    #ddd7e1 42%,
    #524759 48%,
    #cec4d5 55%,
    #494052 61%,
    #cbc3d3 66%,
    #54445f 69%,
    #b5a9bf 76%
  );
  box-shadow: 3px 3px 3px #37233d;
}

.camera-caption {
  font: 10px 'IBM Plex Mono';
  color: #e9d6ff;
  background: #10091d;
  border: 1px solid #815b9c;
  padding: 6px 11px;
  margin-top: 13px;
  transform: rotate(3deg);
}

/* Home extras: post-it, mini atlas, home photo and border (dormant). */
.post-it {
  background: #29223c;
  color: #f3e5ff;
  border: 1px solid #8d71a8;
  box-shadow: 5px 6px #080612;
}

.post-it b {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-size: 26px;
}

.post-it > span {
  color: #d7ff74;
}

.mini-atlas {
  background: #291c37;
  color: #f5e7ff;
  border-color: #936ea8;
}

.atlas-lines {
  color: #a477bd;
}

.mini-atlas > span:last-child {
  color: #cbb8df;
}

.home-photo {
  background: #b7a6ca;
  color: #160c24;
}

.home-extras {
  border-image: repeating-linear-gradient(45deg, #100c1f 0 10px, #7c5ba0 10px 20px) 10;
}

/* Page backdrop: faint grid lines in 30 px cells on the Roll, Area, Places and player pages. */
#roll,
#area,
#places,
#cinema {
  background-color: #100c1f;
  color: #f5ecff;
  background-image:
    linear-gradient(#79549716 1px, transparent 1px),
    linear-gradient(90deg, #79549716 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Page titles in Space Grotesk; hyd-retro.css restyles them as italic Georgia. */
.roll-heading h1,
.area-heading h1,
.places-heading h1 {
  color: #efdcff;
  text-shadow: 3px 3px #573c7c;
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  letter-spacing: -3px;
}

/* ---------------------------------------------------------------------------
   Roll page (dormant)
   Heading, collection tools, keepsake wall, paper notes and tickets of the retired Roll page.
   --------------------------------------------------------------------------- */
.roll-heading h1 {
  font-size: 69px;
}

.roll-heading h1 span {
  color: #d872b1;
}

.roll-heading > span {
  background: #35234b;
  color: #eddbff;
  border: 1px solid #76578f;
  box-shadow: 3px 3px #05040b;
}

.roll-heading p,
.roll-caption {
  color: #bdabcf;
}

.roll-art svg {
  display: none;
}

/* Dormant (Roll page). !important on font, color and text-shadow, the three properties the
   earlier hyd-remix.css .roll-art span rule sets: that rule (0,1,1) out-ranks this class
   (0,1,0) on a span inside .roll-art. The later hyd-maximal.css .roll-art .roll-orbit rule is
   more specific but not !important, so it loses for these properties. */
.roll-orbit {
  font: 140px/0.8 Arial !important;
  color: #c4b1dd !important;
  display: block;
  text-shadow: 3px 3px #71518b !important;
  animation: starspin 30s linear infinite;
  animation-play-state: var(--motion);
}

.roll-art > span:last-child {
  color: #c7a5de;
  text-shadow: 2px 2px #160c29;
}

.collection-tools button {
  background: #251b35;
  color: #e8d7f5;
  border-color: #8a6ba2;
  box-shadow: 2px 2px #07030f;
}

.collection-tools button[aria-pressed='true'] {
  background: #704879;
  color: #fff6ff;
  box-shadow: 3px 3px #d1a6d9;
}

#shuffle-scraps {
  background: #372449;
  color: #efdbff;
}

.keepsake-wall .keepsake {
  background: #241c32;
  color: #f2e7ff;
  border-color: #796188;
  box-shadow:
    4px 5px #05030b,
    5px 6px #706080;
}

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

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

.keepsake b {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -1px;
}

.keepsake small,
.keepsake p {
  color: #cabbdd;
}

.scrap-type {
  color: #dbb6ed;
}

/* Dormant (Roll page). !important: more specific rules repaint the same scraps. Background
   shorthands on .keepsake-wall .keepsake (here and in hyd-personal-web.css) and on
   .keepsake.paper-note (hyd-maximal.css, hyd-personal-web.css) would remove the ruled-line
   image on notes; border rules on .keepsake-wall .keepsake (border-color here, a border
   shorthand in hyd-personal-web.css) would replace the dashed purple top and bottom border on
   tickets. */
.paper-note {
  background-image: repeating-linear-gradient(transparent 0 24px, #c4a9da15 24px 25px) !important;
}

.paper-note:before {
  background: #ab97c68a;
}

.paper-ticket {
  border-block: 2px dashed #9776b0 !important;
  clip-path: none;
}

.ticket-years {
  color: #e5dcac;
  border-color: #6d527d;
}

.paper-note .scribble {
  color: #e28ebe;
}

.big-doodle {
  color: #b699d4;
}

.rock-wire {
  display: block;
  font: 100px/1.2 Georgia;
  letter-spacing: -30px;
  color: #c1a9dd;
  text-shadow: 2px 3px #5d3a75;
  text-align: center;
}

.stop-disc {
  display: grid;
  place-content: center;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  margin: 8px auto;
  background:
    repeating-radial-gradient(circle, transparent 0 3px, #fff2 3px 4px),
    conic-gradient(#b9afca, #f5deef, #8f7bab, #d7c2e1, #a5bbca, #b9afca);
  color: #30203d;
  font: bold 15px/1.3 'IBM Plex Mono';
  box-shadow: 4px 5px #090611;
}

/* ---------------------------------------------------------------------------
   Player page (#cinema)
   Chrome, title bar, transport bar, location (route) window, screen title, extras,
   chapters, note and sound deck colours. hyd-retro.css repaints these in silver.
   Dormant selectors in this group: .signal-wave, .recording-picker, .cinema-keeps,
   .chrome-mini, .player-note, .cinema-nav, .cinema-brand, .deck-channels and .equalizer.
   --------------------------------------------------------------------------- */
.cinema-chrome {
  background: linear-gradient(130deg, #bfb2d0, #62506f 49%, #d0c1da);
  border-color: #a88bc0;
  box-shadow: 5px 6px #6b356c;
}

.cinema-titlebar {
  background: linear-gradient(90deg, #332047, #563269);
  color: #f0defa;
}

.signal-wave {
  color: #c8d887;
}

.transport {
  background: linear-gradient(#9687a6, #554661);
  color: #fff0ff;
  border-color: #ac90c5;
}

.transport button {
  background: #2f203e;
  color: #f2dcff;
  border-color: #b799c9;
}

.transport #note-toggle {
  background: #41334f;
  color: #ede0f6;
}

.route-window {
  background: #897496;
  border-color: #bba1ce;
  box-shadow: 3px 3px #7d486f;
}

.route-title {
  background: #382246;
  color: #eddaf7;
}

.route-caption {
  background: #170e21;
  color: #ddcee7;
}

.route-window small {
  background: #362842;
  color: #ddccea;
}

.screen-title h1 {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  color: #fff;
}

.screen-date {
  color: #e3dac8;
}

.player-extras > button,
.player-extras > button:nth-child(2),
.player-extras > .deck-launch {
  background: #33223f;
  color: #f2e0fc;
  border-color: #9578aa;
}

.player-extras > button:nth-child(2) {
  background: #23243b;
}

.recording-picker select {
  background: #291d38;
  color: #f3e4ff;
  border-color: #947ba3;
  box-shadow: 3px 3px #654571;
}

.chapters button[aria-pressed='true'] {
  background: #634171;
  color: #fff2ff;
  border-color: #b48fcb;
}

.chapters button {
  background: #21192e;
  color: #e9d6f6;
  border-color: #80628f;
}

.cinema-keeps {
  border-color: #61486e;
}

.cinema-keeps button {
  background: #2f223c;
  color: #e8d8f4;
  border-color: #866198;
}

.cinema-keeps p {
  color: #bba9cb;
}

.cinema-keeps p b {
  color: #e5d2f3;
}

.chrome-mini {
  font: 80px Arial;
  color: #ccb8df;
}

.player-note {
  background: #342641;
  color: #f6e8ff;
  border: 1px solid #b396c2;
}

.player-note p {
  color: #dac6e4;
}

.cinema-nav,
.cinema-brand {
  color: #c9afdc;
}

.deck-title {
  background: #4a2d5f;
  color: #f4e0ff;
}

.sound-deck {
  background: linear-gradient(135deg, #c4b1d2, #796185);
  border-color: #d5bde3;
}

.deck-channels button[aria-pressed='true'] {
  background: #583667;
  color: #fff0ff;
}

.deck-controls > button {
  background: #dcc9e8;
  color: #35213e;
}

.equalizer i {
  background: #b9d280;
}

/* Places page: heading, map tools and status text (.hand-label is dormant). */
.places-heading,
.map-tools {
  background: #21152f;
}

.places-heading .hand-label {
  background: #493252;
  color: #e7d2f3;
}

.map-tools label {
  background: #291e37;
  border-color: #977ca9;
}

.map-tools input {
  color: #efe3f6;
}

.map-tools button {
  background: #473058;
  color: #eedeff;
  border-color: #a083b3;
}

.map-status,
.map-footnote {
  color: #bfaacd;
}

/* ---------------------------------------------------------------------------
   Area page cards and notes (dormant)
   Directory cards, .hand-label, action buttons, notes, postcards and tabs of the old Area page.
   !important on .directory-card matches hyd-retro.css, which sets the same background with
   !important on the same selector and loads later, so its colour is the one that applies.
   --------------------------------------------------------------------------- */
.directory-card {
  background: #2b203a !important;
  color: #f0e0ff;
  border-color: #a386b6;
}

.directory-card small {
  color: #d6bedf;
}

.area-heading .hand-label {
  color: #d4badf;
}

.area-actions button {
  background: #62416f;
  color: #f7eaff;
  border-color: #a284b5;
  box-shadow: 3px 3px #070310;
}

.note-paper,
.objects-link,
.mini-film,
.area-postcard {
  background: #2d213b;
  color: #f1e0ff;
  border-color: #9d7aad;
}

.note-paper p,
.note-sign {
  color: #c9b4d8;
}

.paper-tab {
  background: #6a4377;
  color: white;
}

.note-paper h2 {
  font: 700 32px 'Space Grotesk';
}

.area-postcard span {
  color: #e6cfef;
}

.area-bottom {
  color: #c8b2d7;
}

/* Dialogs: photo, story and credits. */
#photo-dialog,
#story-dialog,
#credits-dialog {
  background: #22182f;
  color: #efe0fc;
  border-color: #9d7db1;
}

#story-content h2 {
  font: 700 36px/1.06 'Space Grotesk';
  letter-spacing: -1px;
}

#story-content > span {
  background: #593464;
  color: #f6e5ff;
}

#story-content button {
  background: #653878;
  border-color: #c6a7d8;
}

#story-content p {
  color: #cdbbdc;
}

.dialog-close {
  background: #654171;
  color: #fff;
}

/* ---------------------------------------------------------------------------
   Breakpoints for the dark-surface blocks (1000, 760 and 450 px)
   Hologram, recording console, pocket camera and Roll page sizes (all dormant).
   --------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .new-collage .cd-object {
    right: 3%;
    top: 70px;
    scale: 0.95;
  }

  .hyd-hologram {
    right: 25%;
    width: 152px;
    height: 104px;
    bottom: 10px;
  }

  .new-collage .burst {
    right: 5%;
    top: 230px;
  }

  .new-collage {
    height: 395px;
  }

  .recording-console b {
    font-size: 15px;
  }

  .recording-console > button {
    gap: 10px;
    padding: 13px;
  }

  .console-icon {
    font-size: 33px;
  }

  .new-collage .welcome {
    top: 110px;
  }
}

@media (max-width: 760px) {
  .new-collage .cd-object {
    right: 3%;
    top: 60px;
    scale: 0.85;
  }

  .new-collage .welcome {
    top: 111px;
  }

  .new-collage .welcome h1 {
    font-size: 72px;
  }

  .hyd-hologram {
    right: 28%;
    bottom: 11px;
    width: 137px;
    height: 94px;
  }

  .holo-word {
    font-size: 49px;
  }

  .new-collage .burst {
    right: 5%;
    top: 244px;
  }

  .new-collage .punk-orbit {
    display: none;
  }

  .new-collage .welcome p {
    max-width: 300px;
  }

  .recording-console small {
    font-size: 7px;
  }

  .recording-console b {
    font-size: 13px;
  }

  .recording-console > button {
    gap: 10px;
  }

  .console-icon {
    font-size: 30px;
  }

  .recording-console i {
    font-size: 13px;
  }

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

  .roll-art {
    opacity: 0.5;
  }
}

@media (max-width: 450px) {
  .new-collage {
    height: 430px;
  }

  .new-collage .welcome {
    top: 80px;
  }

  .new-collage .welcome h1 {
    font-size: 64px;
  }

  .new-collage .cd-object {
    top: 245px;
    right: 51%;
    scale: 0.67;
  }

  .hyd-hologram {
    width: 106px;
    height: 81px;
    bottom: 39px;
    right: 33%;
    transform: rotate(8deg);
  }

  .holo-word {
    font-size: 38px;
  }

  .holo-top {
    font-size: 5px;
  }

  .holo-bottom {
    font-size: 5px;
  }

  .new-collage .burst {
    right: 3%;
    top: 265px;
    width: 106px;
    height: 106px;
  }

  .new-collage .welcome p {
    max-width: 267px;
  }

  .recording-console {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 18px;
  }

  .recording-console b {
    font-size: 16px;
  }

  .recording-console small {
    font-size: 8px;
  }

  .recording-console > button {
    padding: 12px 15px;
  }

  .shelf-heading h2 {
    font-size: 19px;
  }

  .pocket-camera .camera-body {
    height: 112px;
    padding: 10px 7px;
  }

  .camera-top {
    font-size: 6px;
    margin-bottom: 12px;
  }

  .camera-lens {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .camera-lcd {
    height: 52px;
    border-width: 3px;
  }

  .camera-top i {
    width: 26px;
    height: 9px;
  }

  .camera-caption {
    font-size: 8px;
  }

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

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

  .rock-wire {
    font-size: 72px;
  }

  .post-it b {
    font-size: 23px;
  }
}

/* ---------------------------------------------------------------------------
   Compact discovery row
   The shuffle button (.shuffle-object) and area search box (.area-terminal) in the Start here
   window. Dormant selectors in this group: .compact-discovery, .discovery-title,
   .compact-console, .mini-disc and .shuffle-arrow.
   --------------------------------------------------------------------------- */
.compact-discovery {
  padding: 23px 30px 27px;
}

.discovery-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.discovery-title > span {
  font: 10px 'IBM Plex Mono';
  letter-spacing: 1px;
  color: #ccb1e0;
}

.discovery-title small {
  font: 9px 'IBM Plex Mono';
  color: #8f7fa0;
}

.compact-console {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 1120px;
  margin: auto;
}

/* Shuffle button. */
.shuffle-object {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #32243d, #19111f 70%);
  border: 1px solid #9a7aad;
  box-shadow: 4px 4px #030107;
  text-align: left;
  color: #f4e7ff;
  overflow: hidden;
  min-height: 123px;
  transition: translate 0.3s;
}

.shuffle-object:before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid #d4b8e117;
  pointer-events: none;
}

.shuffle-object:hover {
  translate: 0 -4px;
}

.shuffle-object b {
  font: 700 calc(19 * var(--px))/1.12 'Space Grotesk';
  display: block;
  letter-spacing: -0.5px;
}

.shuffle-object small {
  display: block;
  font: 9px 'IBM Plex Mono';
  color: #b89cc9;
  margin-top: 8px;
}

.shuffle-object > i {
  margin-left: auto;
  font: 17px Arial;
  color: #d5e989;
}

.shuffle-art {
  position: relative;
  width: 75px;
  height: 75px;
  flex: 0 0 75px;
}

.mini-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 3px, #ffffff21 3px 4px),
    conic-gradient(#9e86b7, #eee6f2, #be8fc5, #a2c8d4, #e7eaca, #9e86b7);
  border: 1px solid #e4c9f3;
  box-shadow: 4px 4px #040108;
}

.mini-disc:after {
  content: '';
  position: absolute;
  inset: 32%;
  border: 2px solid #b495c8;
  background: #160d21;
  border-radius: 50%;
}

.shuffle-arrow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 61px/1 Arial;
  color: #35203f;
  text-shadow: 1px 1px #f7d6ff;
  transform: rotate(-15deg);
  transition: rotate 0.7s;
}

.shuffle-object:hover .shuffle-arrow {
  rotate: 160deg;
}

/* Area search box (#quick-area) styled as a terminal prompt: label, input line, suggestion
   buttons and status text. */
.area-terminal {
  padding: 13px 16px 11px;
  border: 1px solid #706a9e;
  box-shadow: 4px 4px #030107;
  background: linear-gradient(145deg, #231c35, #12111e);
  margin: 0;
  min-width: 0;
}

.area-terminal > label {
  font: 700 calc(14 * var(--px)) 'Space Grotesk';
  color: #ecdaf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.area-terminal > label > span {
  font: 23px/1 Arial;
  color: #ae95c7;
}

.terminal-input {
  display: flex;
  border-bottom: 1px solid #8d73aa;
  margin-top: 5px;
}

.terminal-input input {
  color: #f1e2fd;
  background: none;
  border: 0;
  width: 100%;
  min-width: 0;
  outline: 0;
  font: calc(11 * var(--px)) 'IBM Plex Mono';
  padding: 8px 0;
}

.terminal-input input::placeholder {
  color: #a08caf;
}

.terminal-input:focus-within {
  border-color: #d4ed94;
  box-shadow: 0 2px #d4ed94;
}

.terminal-input button {
  border: 0;
  background: none;
  color: #d5eba5;
  font: 23px Arial;
  min-width: 34px;
}

.area-suggestions {
  display: flex;
  gap: 10px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.area-suggestions button {
  font: calc(8 * var(--px)) 'IBM Plex Mono';
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px dotted #7c648e;
  background: none;
  color: #d1b8e0;
}

.area-suggestions button:hover {
  color: #e3fda4;
}

.area-suggestions button[hidden] {
  display: none;
}

#quick-area-status {
  display: block;
  font: calc(8 * var(--px))/1.4 'IBM Plex Mono';
  color: #e9a6c1;
}

#quick-area-status:not(:empty) {
  margin-top: 8px;
}

/* Phone sizes for the discovery row (760 and 450 px). */
@media (max-width: 760px) {
  .compact-discovery {
    padding: 20px 23px 25px;
  }

  .compact-console {
    gap: 14px;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .shuffle-object {
    padding: 14px 12px;
    gap: 11px;
  }

  .shuffle-art {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .shuffle-arrow {
    font-size: 43px;
  }

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

  .shuffle-object small {
    font-size: 8px;
  }

  .shuffle-object > i {
    font-size: 12px;
  }

  .area-terminal {
    padding: 12px;
  }

  .area-terminal > label {
    font-size: calc(13 * var(--px));
  }
}

@media (max-width: 450px) {
  .compact-discovery {
    padding: 19px 18px 24px;
  }

  .compact-console {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .shuffle-object {
    min-height: 81px;
    padding: 14px 17px;
  }

  .shuffle-art {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

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

  .shuffle-object small {
    font-size: 9px;
  }

  .area-terminal {
    padding: 14px 17px;
  }

  .area-terminal > label {
    font-size: calc(15 * var(--px));
  }

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

  .terminal-input input {
    font-size: calc(12 * var(--px));
  }

  .discovery-title small {
    font-size: 8px;
  }
}
