/* Keep the three hero actions together when there is room. */
.game-hero__actions { max-width: 800px; }

/* The input-device label can wrap onto two lines on narrow screens. */
.game-hero .chip { padding-block: 4px; line-height: 1.3; }

.download-dialog {
  width: min(480px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 40px);
  color: #eee6d2;
  background: #111315;
  border: 1px solid #51504a;
  border-radius: 16px;
  box-shadow: 0 24px 100px #000b;
}
.download-dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
.download-dialog h2 { margin: 16px 0 12px; font-size: clamp(25px, 5vw, 32px); line-height: 1.15; }
.download-dialog > p { color: #c2c0ba; line-height: 1.55; }
.download-dialog__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.download-dialog__close:hover { background: #ffffff12; }
.download-dialog form { margin-top: 24px; }
.download-dialog label { display: block; margin-bottom: 8px; font-weight: 700; }
.download-dialog input {
  display: block; width: 100%; padding: 13px 14px; border: 1px solid #686862;
  border-radius: 8px; background: #090b0d; color: #fff; font: inherit; font-size: 16px;
}
.download-dialog input:focus-visible { outline: 2px solid #ff675b; outline-offset: 3px; }
.download-dialog input[aria-invalid="true"] { border-color: #ff857b; }
.download-dialog__status { min-height: 1.5em; margin: 12px 0 18px; color: #ffada5; font-size: .9rem; line-height: 1.5; }
.download-dialog .btn { width: 100%; justify-content: center; white-space: normal; }
.download-dialog .btn:disabled { opacity: .65; cursor: wait; }
.download-dialog__hint {
  margin-top: 24px; padding: 14px 16px; border: 1px solid #51504a; border-left: 3px solid #e0a84a;
  border-radius: 10px; background: #181a1c; color: #c2c0ba; font-size: .9rem; line-height: 1.5;
}
.download-dialog__hint h3 { margin: 0 0 6px; color: #eee6d2; font-size: .95rem; line-height: 1.35; }
.download-dialog__hint p { margin: 0 0 8px; }
.download-dialog__hint ol { margin: 0; padding-left: 1.4em; }
.download-dialog__hint li + li { margin-top: 2px; }

/* A life in stations (journey): each station is a full-width painting from the game with the story on the dark side,
   its systems as chips and a print of the matching screen. Even stations mirror. */
.journey { position: relative; }
.journey__head { padding-bottom: clamp(32px, 5vw, 64px); }
.journey__stages { list-style: none; margin: 0; padding: 0; counter-reset: station; }
.journey__stage {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  min-height: clamp(560px, 86vh, 880px); padding-block: clamp(72px, 9vw, 120px);
}
.journey__stage + .journey__stage { border-top: 1px solid rgba(232, 70, 60, .22); }
.journey__bg { position: absolute; inset: 0; z-index: -2; }
.journey__bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transform: scale(1.06); transition: transform 2.4s var(--ease); }
.journey__stage:hover .journey__bg img { transform: scale(1.02); }
.journey__stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 11, 10, .94) 0%, rgba(13, 11, 10, .78) 38%, rgba(13, 11, 10, .25) 70%, rgba(13, 11, 10, .55) 100%),
    linear-gradient(180deg, var(--game-bg) 0%, transparent 18%, transparent 82%, var(--game-bg) 100%);
}
.journey__stage--flip::before {
  background:
    linear-gradient(270deg, rgba(13, 11, 10, .94) 0%, rgba(13, 11, 10, .78) 38%, rgba(13, 11, 10, .25) 70%, rgba(13, 11, 10, .55) 100%),
    linear-gradient(180deg, var(--game-bg) 0%, transparent 18%, transparent 82%, var(--game-bg) 100%);
}
.journey__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.journey__stage--flip .journey__text { order: 2; }
.journey__text { max-width: 600px; }
.journey__num { display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px; font: 700 .95rem/1.2 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
.journey__numeral { font: 700 clamp(2.4rem, 4.4vw, 3.8rem)/.9 var(--type); letter-spacing: .02em; color: var(--accent); text-shadow: 0 6px 30px rgba(232, 70, 60, .35); }
.journey__text h3 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 0 0 22px; text-shadow: 0 8px 40px #000; }
.journey__text p { color: #ddd6c9; margin: 0 0 16px; max-width: 58ch; }
.journey__text p.lead { color: #efe8db; font-size: clamp(1.08rem, 1.35vw, 1.22rem); line-height: 1.6; }
.journey__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 0; padding: 0; }
.journey__chips .chip { font-family: var(--type); font-weight: 700; letter-spacing: .04em; border-color: rgba(239, 228, 207, .28); background: rgba(13, 11, 10, .5); backdrop-filter: blur(3px); }
.journey__inset {
  position: relative; justify-self: center; width: min(100%, 560px); margin: 0;
  border: 10px solid #efe8d8; border-bottom-width: 34px; border-radius: 2px; background: #efe8d8;
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .85); rotate: -1.6deg;
}
.journey__stage--flip .journey__inset { rotate: 1.4deg; }
.journey__inset img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.journey__inset .media-label { right: 4px; bottom: -28px; background: none; backdrop-filter: none; color: #4a3d33; font-family: var(--type); }
.journey__inset::before { content: ""; position: absolute; top: -22px; left: 50%; width: 110px; height: 30px; margin-left: -55px; background: url(/assets/badlife/tape.webp) center / contain no-repeat; opacity: .9; z-index: 2; }
.journey__stage > .media-label { right: var(--gutter); bottom: 18px; }
@media (max-width: 900px) {
  /* On narrow screens the painting is a band above the text instead of a background behind it. */
  .journey__stage { min-height: 0; padding-block: 58vw 72px; align-items: start; }
  .journey__bg { bottom: auto; height: 82vw; }
  .journey__stage::before, .journey__stage--flip::before {
    background: linear-gradient(180deg, rgba(13, 11, 10, .1) 0, rgba(13, 11, 10, .35) 44vw, var(--game-bg) 80vw);
  }
  .journey__stage > .media-label { top: 12px; bottom: auto; }
  .journey__grid { grid-template-columns: minmax(0, 1fr); }
  .journey__stage--flip .journey__text { order: 0; }
  .journey__inset { width: min(100%, 420px); justify-self: start; margin-top: 8px; }
}

/* The soul: three words as prints on the desk. */
.soul .backdrop img { opacity: .2; }
.soul__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.soul__print { margin: 0 0 24px; border: 9px solid #efe8d8; border-bottom-width: 28px; background: #efe8d8; border-radius: 2px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85); rotate: -1.2deg; transition: rotate .6s var(--ease); }
.soul__item:nth-child(2) .soul__print { rotate: 1.1deg; }
.soul__item:nth-child(3) .soul__print { rotate: -.6deg; }
.soul__item:hover .soul__print { rotate: 0deg; }
.soul__print img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos); }
.soul__word { position: relative; display: inline-block; margin: 0 0 14px; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.soul__word::after { content: ""; position: absolute; left: 0; right: -6px; bottom: -4px; height: 3px; background: var(--accent); transform: rotate(-2deg); opacity: .85; }
.soul__item p { color: #d5cfc3; margin: 0; }
.soul__note { margin: clamp(36px, 5vw, 64px) auto 0; max-width: 46ch; text-align: center; font: 700 clamp(1rem, 1.4vw, 1.2rem)/1.5 var(--type); color: var(--paper); letter-spacing: .02em; }
@media (max-width: 860px) { .soul__list { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .journey__bg img, .soul__print { transition: none; } }

/* RC30: the minigames as a grid of cards (the shared "creatures" section, styled for Bad Life). */
.creatures__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.creature { margin: 0; padding: 0 0 18px; background: #14161a; border: 1px solid #2c2d2f; border-radius: 12px; overflow: hidden; }
.creature__figure { margin: 0 0 14px; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0c0e; }
.creature__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creature__where { margin: 0 18px 4px; color: #c9a25a; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.creature__name { margin: 0 18px 8px; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.creature__text { margin: 0 18px; color: #c2c0ba; line-height: 1.55; }
.creatures__note { margin-top: 24px; color: #a9a7a0; }
