/* Three earned broadcasts, each with its own art, copy, and archive. */
.hero-deck {
  white-space: pre-line;
}
.world-room {
  background: #121713;
  border-block: 1px solid var(--yellow);
}
.world-room h2 {
  white-space: pre-line;
  font-size: clamp(60px, 8vw, 125px);
}
.world-room .section-title > p {
  max-width: 290px;
}
.world-memes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.world-memes .meme-image {
  aspect-ratio: 1.3;
  border: 1px solid var(--yellow);
}
.world-memes img {
  object-fit: contain;
  filter: none;
}
.world-room-note {
  font-size: 10px;
  margin-top: 30px;
  opacity: 0.65;
}
.world-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--yellow);
  background: #10120df5;
  color: var(--paper);
  z-index: 45;
  box-shadow: 0 4px 28px #0008;
  max-width: calc(100% - 24px);
  width: max-content;
  font-size: 9px;
}
.world-bar > span {
  white-space: nowrap;
  color: var(--yellow);
}
.world-bar i {
  font-style: normal;
  margin-right: 8px;
}
.world-bar button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 9px;
  border: 1px solid #eee4;
  background: none;
}
.world-bar #return-original {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}
body:not([data-reality="original"]) .site-footer {
  padding-bottom: 110px;
}
body:not([data-reality="original"]) .toast {
  bottom: 92px;
}
.service-row {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 25px 0;
  border-block: 1px dashed #1115;
  margin-top: 35px;
}
.service-row > span {
  font-size: 8px;
  opacity: 0.65;
  margin-left: auto;
}
.service-row .text-link {
  font-size: 9px;
}
.progress-world-link {
  margin: 15px 0 24px;
}
.world-selector,
.controller-dialog,
.cipher-dialog,
.world-boot {
  width: min(860px, 94vw);
  max-height: 92svh;
  background: #151711;
  color: #e9e5d7;
  border: 1px solid #909678;
  padding: 35px;
}
:is(
  .world-selector,
  .controller-dialog,
  .cipher-dialog,
  .world-boot
)::backdrop {
  background: #040505eb;
  backdrop-filter: blur(8px);
}
:is(.world-selector, .controller-dialog, .cipher-dialog) h2 {
  font-size: clamp(44px, 7vw, 80px);
  margin: 25px 0;
}
:is(.world-selector, .controller-dialog, .cipher-dialog) > p {
  font-size: 12px;
  line-height: 1.8;
}
.world-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.world-option {
  padding: 22px;
  min-height: 170px;
  background: #22261d;
  border: 1px solid #f6ffb538;
  text-align: left;
  color: #e9e5d7;
}
.world-option strong {
  display: block;
  font: 800 34px/1 var(--display);
  margin: 18px 0;
  text-transform: uppercase;
}
.world-option > span:last-child {
  display: block;
  font-size: 10px;
  line-height: 1.7;
}
.world-option:disabled {
  background: repeating-linear-gradient(
    135deg,
    #151711 0 8px,
    #1c20178c 8px 9px
  );
  cursor: default;
  color: #999e8d;
}
.world-option[aria-pressed="true"] {
  border-color: var(--yellow);
}
.world-option[data-world="arcade"]:not(:disabled) {
  color: #9cffa0;
}
.world-option[data-world="midnight"]:not(:disabled) {
  color: #ffa09a;
}
.world-option[data-world="astral"]:not(:disabled) {
  color: #ddc2ff;
}
.world-boot {
  width: min(830px, 94vw);
  text-align: center;
  padding: 30px 45px 45px;
  background: repeating-linear-gradient(0deg, #07120a 0 2px, #0d1910 2px 4px);
  border: 2px solid #9cffa0;
  color: #c1ffc4;
  box-shadow:
    inset 0 0 70px #94ffa515,
    0 0 60px #0b1b10;
}
.world-boot h2 {
  white-space: pre-line;
  font-size: clamp(52px, 7.8vw, 100px);
  margin: 20px 0;
  text-shadow: 3px 2px #bc568545;
}
.world-boot .dialog-header {
  text-align: left;
}
.world-boot > p {
  font-size: 13px;
  max-width: 460px;
  margin-inline: auto;
}
.boot-symbol {
  font: 72px/1 var(--mono);
  display: block;
  margin-top: 10px;
}
.boot-readout {
  font-size: 10px;
  letter-spacing: 0.08em;
  border-block: 1px dashed currentColor;
  padding: 18px 0;
  margin: 26px 0;
}
.world-boot .button {
  background: currentColor;
  color: var(--ink);
  background: #bfff97;
}
.world-boot[data-world="midnight"] {
  color: #ffb7a4;
  border-color: #ff5b41;
  background: repeating-linear-gradient(0deg, #1d0909 0 3px, #230c0c 3px 5px);
}
.world-boot[data-world="astral"] {
  color: #e4ceff;
  border-color: #c991ff;
  background: radial-gradient(ellipse at center, #2f1e4b, #100d1b 80%);
}
.motion-enabled .world-boot[open] {
  animation: signal-open 0.7s ease-out both;
}
@keyframes signal-open {
  from {
    opacity: 0.35;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.controller {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  align-items: center;
  margin: 35px 0;
  padding: 30px;
  background: #c6c4b2;
  color: #1b1d17;
  border: 7px solid #363c2a;
  box-shadow: 0 9px 0 #060804;
}
.d-pad {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  grid-template-rows: repeat(3, 48px);
}
.d-pad button {
  color: #e9e5d7;
  background: #292d24;
  font-size: 26px;
  padding: 0;
}
.d-pad > :nth-child(1) {
  grid-column: 2;
}
.d-pad > :nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.d-pad > :nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  background: #292d24;
  color: #777d69;
  display: grid;
  place-items: center;
}
.d-pad > :nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}
.d-pad > :nth-child(5) {
  grid-column: 2;
  grid-row: 3;
}
.ab-buttons {
  display: flex;
  gap: 18px;
  transform: rotate(-14deg);
}
.ab-buttons button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 5px solid #b1ac92;
  background: #ac2728;
  color: #fff5dd;
  box-shadow: 0 5px 0 #631314;
  font-size: 24px;
}
.controller button:active {
  transform: translateY(3px);
}
#controller-status {
  color: #b8d0a2;
  font-size: 10px;
}
.cipher-dialog {
  max-width: 580px;
}
.cipher-mark {
  float: right;
  border: 1px solid var(--yellow);
  padding: 14px;
  color: var(--yellow);
  clip-path: polygon(
    25% 0,
    75% 0,
    100% 25%,
    100% 75%,
    75% 100%,
    25% 100%,
    0 75%,
    0 25%
  );
}
#octagon-form {
  margin-top: 30px;
}
#octagon-form label {
  display: block;
  font-size: 10px;
  margin-bottom: 12px;
}
#octagon-form > div {
  display: flex;
  gap: 14px;
}
#octagon-code {
  min-width: 0;
  width: 50%;
  color: var(--yellow);
  background: #080b06;
  border: 1px solid #8b996a;
  font: 28px var(--mono);
  padding: 10px 15px;
  letter-spacing: 0.3em;
}
#octagon-status {
  font-size: 10px;
  min-height: 32px;
  margin-top: 18px;
}
.cassette-calibration {
  font-size: 8px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.cassette.restored::after {
  content: "✓";
  position: absolute;
  right: 10px;
  top: 8px;
}
#save-tracking {
  font-size: 9px;
  min-height: 40px;
  margin-top: 8px;
}
.tuner {
  flex-wrap: wrap;
}
#lock-frequency {
  font-size: 9px;
  min-height: 40px;
  color: var(--paper);
}
#tuner-signal {
  max-width: 220px;
  text-align: left;
}
/* PLAYER TOE: monochrome CRT, hard edges, arcade labels. */
body[data-reality="arcade"] {
  --yellow: #a8ff7b;
  --paper: #d8f4cd;
  --muted: #9cad94;
  --mint: #bcffad;
  --ink: #08100a;
  background: #08100a;
}
body[data-reality="arcade"] .hero {
  background: #061209;
}
body[data-reality="arcade"] .hero-art {
  filter: grayscale(0.75) sepia(0.25) hue-rotate(50deg) contrast(1.3)
    brightness(0.64);
  object-position: 32% center;
}
body[data-reality="arcade"] .hero-shade {
  background:
    linear-gradient(90deg, #07100810 10%, #07100855 45%, #071008d1 75%),
    linear-gradient(0deg, #071008, transparent 45%);
}
body[data-reality="arcade"] .hero h1 {
  font-family: "Courier New", monospace;
  font-size: clamp(46px, 6.2vw, 100px);
  line-height: 1.1;
  letter-spacing: -0.09em;
  text-shadow:
    3px 0 #355b32,
    -2px 0 #709666;
}
body[data-reality="arcade"] .manifesto,
body[data-reality="arcade"] .off-air,
body[data-reality="arcade"] .site-footer {
  background-color: #a9b7a0;
}
body[data-reality="arcade"] .feet-factor {
  background-color: #a8ff7b;
}
body[data-reality="arcade"] .brand-monogram,
body[data-reality="arcade"] .loop-card {
  transform: none;
  box-shadow: 5px 5px 0 #82af6255;
}
body[data-reality="arcade"] .world-room {
  background:
    linear-gradient(#a8ff7b0a 1px, transparent 1px),
    linear-gradient(90deg, #a8ff7b0a 1px, transparent 1px), #08100a;
  background-size: 32px 32px;
}
body[data-reality="arcade"] .world-memes .meme-card {
  padding: 12px;
  border: 1px solid #a8ff7b70;
  box-shadow: 6px 6px 0 #a8ff7b24;
}
/* AFTER HOURS: ink, red light and rough photocopies. */
body[data-reality="midnight"] {
  --yellow: #f45b43;
  --paper: #efddd0;
  --muted: #c1a9a0;
  --mint: #ebbe9f;
  --ink: #160b0a;
  background: #160b0a;
}
body[data-reality="midnight"] .hero-art {
  filter: grayscale(1) contrast(1.35) brightness(0.65);
  object-position: 20% center;
}
body[data-reality="midnight"] .hero-shade {
  background:
    linear-gradient(90deg, #30080933 25%, #170505cc 78%),
    linear-gradient(0deg, #170505, transparent 40%);
}
body[data-reality="midnight"] .hero h1 {
  text-shadow: 4px 2px #8c1c1c;
}
body[data-reality="midnight"] .hero-copy .eyebrow {
  background: #b73224;
  color: #fff1db;
  transform: rotate(-3deg);
}
body[data-reality="midnight"] .feet-factor {
  background-color: #c34e35;
}
body[data-reality="midnight"] .world-room {
  background: #180909;
}
body[data-reality="midnight"] .world-memes .meme-card {
  transform: rotate(-2deg);
}
body[data-reality="midnight"] .world-memes .meme-card:nth-child(even) {
  transform: rotate(2deg);
}
body[data-reality="midnight"] .world-memes .meme-image {
  border: 7px solid #e3cdb8;
}
body[data-reality="midnight"] .loop-channel,
body[data-reality="midnight"] .archive,
body[data-reality="midnight"] .rooms {
  background-color: #160b0a;
}
/* THE THIRD TOE: bioluminescent, expanded and gently orbiting. */
body[data-reality="astral"] {
  --yellow: #d4a4ff;
  --paper: #f0e6ff;
  --muted: #c7b4d5;
  --mint: #b2ffd7;
  --ink: #140d23;
  background: #140d23;
}
body[data-reality="astral"] .hero {
  background: #140d23;
}
body[data-reality="astral"] .hero-art {
  width: 65%;
  object-position: center;
  filter: saturate(1.25) contrast(1.1);
  opacity: 0.85;
}
body[data-reality="astral"] .hero-shade {
  background:
    linear-gradient(90deg, #180c2210 15%, #1c0a2260 40%, #180c22 68%),
    radial-gradient(ellipse at 25% 45%, transparent, #180c2290 65%);
}
body[data-reality="astral"] .hero h1 {
  font-size: clamp(73px, 8.2vw, 135px);
  text-shadow:
    3px 0 #62ddbd60,
    -3px 0 #fc64be60;
}
body[data-reality="astral"] .hero-copy .eyebrow {
  background: #d8c8ff;
}
body[data-reality="astral"] .vhs-tracking-band {
  display: none;
}
body[data-reality="astral"] .world-room {
  background: radial-gradient(ellipse at top, #3b245e, #140d23 65%);
}
body[data-reality="astral"] .world-memes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-reality="astral"] .world-memes .meme-image {
  aspect-ratio: 1.15;
  border: 1px solid #b4ffbf88;
  box-shadow: 0 0 40px #9659d624;
}
body[data-reality="astral"] .feet-factor {
  background-color: #b692d4;
}
body[data-reality="astral"] .cosmic {
  background: #1e1234;
}
body[data-reality="astral"] .cosmic-art {
  filter: saturate(1.8) hue-rotate(15deg);
}
body[data-reality="astral"] .loop-channel,
body[data-reality="astral"] .archive,
body[data-reality="astral"] .rooms {
  background-color: #140d23;
}
body[data-reality="astral"] .hero::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  left: -5%;
  top: 5%;
  border: 1px solid #bfffc73b;
  border-radius: 50%;
  box-shadow:
    0 0 0 55px #c76cff0b,
    0 0 0 110px #9bffbb09;
  pointer-events: none;
  z-index: -1;
}
body[data-reality="astral"].motion-enabled .hero::after {
  animation: astral-breath 15s ease-in-out infinite alternate;
}
@keyframes astral-breath {
  to {
    transform: scale(1.2) rotate(18deg);
  }
}
@media (max-width: 899px) {
  .world-memes {
    gap: 18px;
  }
  .world-room .section-title {
    display: block;
  }
  .world-room .section-title > p {
    margin-top: 25px;
    max-width: 440px;
  }
  .world-bar {
    bottom: 10px;
    gap: 12px;
  }
  .service-row {
    flex-wrap: wrap;
    gap: 18px;
  }
  .service-row > span {
    margin-left: 0;
  }
  body[data-reality="arcade"] .hero h1 {
    font-size: 78px;
  }
  body[data-reality="astral"] .hero-art {
    width: 100%;
  }
  body[data-reality="astral"] .hero-shade {
    background: linear-gradient(0deg, #140d23 0, transparent 78%);
  }
}
@media (max-width: 600px) {
  .world-memes,
  body[data-reality="astral"] .world-memes {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .world-room h2 {
    font-size: clamp(48px, 11.5vw, 68px);
  }
  .world-bar {
    gap: 6px;
    padding: 6px;
    flex-wrap: wrap;
    width: calc(100% - 20px);
    justify-content: center;
  }
  .world-bar > span {
    flex-basis: 100%;
    text-align: center;
    font-size: 8px;
    padding-top: 4px;
  }
  .world-bar button {
    flex: 1;
    font-size: 8px;
    min-height: 34px;
  }
  body:not([data-reality="original"]) .site-footer {
    padding-bottom: 145px;
  }
  :is(.world-selector, .controller-dialog, .cipher-dialog, .world-boot) {
    padding: 22px;
  }
  .world-options {
    grid-template-columns: 1fr;
  }
  .world-option {
    min-height: 140px;
  }
  .world-boot h2 {
    font-size: clamp(44px, 11.5vw, 70px);
  }
  .boot-symbol {
    font-size: 52px;
  }
  .boot-readout {
    font-size: 8px;
  }
  .controller {
    padding: 16px 10px;
    gap: 16px;
    border-width: 4px;
  }
  .d-pad {
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(3, 40px);
  }
  .ab-buttons {
    gap: 8px;
  }
  .ab-buttons button {
    width: 43px;
    height: 43px;
    font-size: 18px;
    border-width: 3px;
  }
  #controller-status {
    font-size: 8px;
  }
  body[data-reality="arcade"] .hero h1 {
    font-size: clamp(37px, 10.3vw, 60px);
    letter-spacing: -0.07em;
  }
  body[data-reality="astral"] .hero h1 {
    font-size: clamp(50px, 12vw, 76px);
  }
  body[data-reality="midnight"] .hero h1 {
    font-size: clamp(68px, 15vw, 90px);
  }
  body[data-reality="astral"] .hero-art {
    width: 100%;
  }
  #tuner-signal {
    flex-basis: 100%;
    max-width: none;
  }
  #lock-frequency {
    flex-basis: 100%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-boot,
  .hero::after {
    animation: none !important;
  }
}
.world-memes .meme-card.featured {
  grid-column: 1 / -1;
  margin-top: 0;
}
.world-memes .meme-card.featured .meme-image {
  aspect-ratio: 3 / 2;
}
body[data-reality="midnight"] .world-memes .meme-card.featured {
  transform: none;
}
