/* =========================================================
   GLOBAL
   ========================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: black;
  color: #f2eee7;
  overflow-x: hidden;
}


/* =========================================================
   SCROLLING BACKGROUND
   ========================================================= */

#scroll-bg {
  position: fixed;
  top: 0;
  left: 50%;
  width: 100vw;
  min-height: 100vh;
  height: auto;

  transform:
    translateX(-50%)
    translateY(0);

  z-index: -5;
  pointer-events: none;
}


/* =========================================================
   ATMOSPHERE
   ========================================================= */

.darkwash {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;

  background:
    radial-gradient(
      circle at center,
      rgba(0, 0, 0, 0.05),
      rgba(0, 0, 0, 0.72) 80%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.22),
      rgba(0, 0, 0, 0.65)
    );
}


.scanlines {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.12;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.22) 0px,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1px,
      transparent 5px
    );
}


.grain {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.12;

  background-image:
    radial-gradient(
      #fff 1px,
      transparent 1px
    ),
    radial-gradient(
      #ff2ca8 1px,
      transparent 1px
    ),
    radial-gradient(
      #00e5ff 1px,
      transparent 1px
    );

  background-size:
    17px 17px,
    23px 23px,
    31px 31px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;
  z-index: 5;

  text-align: center;
  padding-top: 38px;
}


.title-ransom {
  display: inline-flex;
  gap: 4px;
  align-items: end;

  padding: 12px 18px;

  background:
    rgba(0, 0, 0, 0.82);

  border:
    3px double #f3eee7;

  box-shadow:
    9px 9px 0 #000;
}


.title-ransom span {
  display: inline-block;
  min-width: 33px;

  padding: 2px 4px;

  color: #f3eee7;
  background: #070707;

  border:
    1px solid #444;

  text-transform: uppercase;
  line-height: 1;

  text-shadow:
    2px 2px 0 #ff2ca8;
}


.title-ransom span:nth-child(1) {
  font-family: Impact, sans-serif;
  font-size: 54px;
  transform: rotate(-3deg);
  color: #d7ff00;
}


.title-ransom span:nth-child(2) {
  font-family: Georgia, serif;
  font-size: 64px;
  transform: rotate(2deg);
}


.title-ransom span:nth-child(3) {
  font-family: "Courier New", monospace;
  font-size: 50px;
  color: #00e5ff;
}


.title-ransom span:nth-child(4) {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 58px;
  transform: rotate(-2deg);
}


.title-ransom span:nth-child(5) {
  font-family: Impact, sans-serif;
  font-size: 66px;
  color: #ff2ca8;
}


.title-ransom span:nth-child(6) {
  font-family: Georgia, serif;
  font-size: 49px;
  transform: rotate(3deg);
}


.title-ransom span:nth-child(7) {
  font-family: "Courier New", monospace;
  font-size: 56px;
  color: #d7ff00;
}


.title-ransom span:nth-child(8) {
  font-family: Impact, sans-serif;
  font-size: 60px;
}


.title-ransom span:nth-child(9) {
  font-family: "Trebuchet MS", sans-serif;
  font-size: 53px;
  color: #00e5ff;
}


.subtitle-strip {
  width: fit-content;
  max-width: 92vw;

  margin: 12px auto 0;
  padding: 5px 12px;

  font-family: "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 1px;

  background: #050505;
  color: #d8fff8;

  border:
    1px solid #ff2ca8;
}


/* =========================================================
   MAIN DESKTOP COLLAGE
   ========================================================= */

.stage {
  position: relative;

  width: 1160px;
  min-height: 1260px;

  margin: 34px auto 80px;
}


/* =========================================================
   DRAGGABLE BASICS
   ========================================================= */

.draggable {
  position: absolute;

  cursor: grab;

  touch-action: none;
}


.draggable:active {
  cursor: grabbing;
}


.draggable a,
.draggable button,
.draggable input,
.draggable textarea,
.draggable select,
.draggable label {
  cursor: auto;
}


/* =========================================================
   NAV RACK
   ========================================================= */

.nav-rack {
  left: 38px;
  top: 0;

  z-index: 12;

  width: 160px;
  padding: 8px;

  background: #050505;

  border:
    2px solid #f3eee7;

  box-shadow:
    6px 6px 0 #000;
}


.nav-handle {
  margin-bottom: 7px;
  padding: 4px;

  background: #ff2ca8;
  color: #000;

  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;

  text-align: center;
}


.nav-rack a {
  display: block;

  margin: 5px 0;
  padding: 6px 7px;

  background: #101010;

  border-left:
    8px solid #ff2ca8;

  color: #f3eee7;

  font-family: Impact, sans-serif;
  font-size: 19px;
  letter-spacing: 1px;

  text-decoration: none;
}


.nav-rack a:nth-child(2n) {
  border-left-color: #d7ff00;

  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: bold;
}


.nav-rack a:nth-child(3n) {
  border-left-color: #00e5ff;

  font-family: "Courier New", monospace;
  font-size: 15px;
}


.nav-rack a:hover {
  color: #000;
  background: #d7ff00;
}


/* =========================================================
   MAIN TERMINAL
   ========================================================= */

.terminal-window {
  left: 245px;
  top: 40px;

  z-index: 8;

  width: 520px;

  background: #020202;

  border:
    3px solid #d8fff8;

  box-shadow:
    8px 8px 0 #000;
}


.terminal-bar {
  display: flex;
  justify-content: space-between;

  padding: 7px 10px;

  background: #051c18;
  color: #d8fff8;

  border-bottom:
    3px solid #d8fff8;

  font-family: "Courier New", monospace;
  font-size: 14px;
}


.terminal-body {
  padding: 24px 26px;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(0, 255, 200, 0.09) 0 1px,
      transparent 1px 5px
    ),
    #050505;

  font-family: "Courier New", monospace;
}


.greenline {
  margin: 0 0 10px;

  color: #d7ff00;
}


.terminal-body h1 {
  margin: 0 0 14px;

  font-family: Impact, sans-serif;
  font-size: 45px;
  letter-spacing: 2px;

  color: #ff2ca8;

  text-shadow:
    3px 3px 0 #00e5ff;
}


.terminal-body p {
  line-height: 1.55;
}


/* =========================================================
   NOTICEBOARD
   ========================================================= */

.ritual-menu {
  left: 62px;
  top: 245px;

  z-index: 7;

  width: 255px;
  padding: 14px;

  background: #080008;
  color: #ffbde8;

  border:
    3px solid #ff2ca8;

  box-shadow:
    7px 7px 0 #000;

  font-family: Georgia, serif;
}


.ritual-title {
  margin-bottom: 12px;
  padding-bottom: 6px;

  border-bottom:
    1px dashed #ffbde8;

  font-family: Impact, sans-serif;
  font-size: 28px;
  letter-spacing: 2px;

  color: #ff2ca8;
}


.ritual-menu a {
  display: block;

  margin: 8px 0;

  color: #f3eee7;

  text-decoration: none;

  border-bottom:
    1px dotted #5b4455;
}


.ritual-menu a::before {
  content: "✦ ";

  color: #d7ff00;
}


.ritual-menu a:hover {
  color: #d7ff00;
}


/* =========================================================
   PAPER SCRAP
   ========================================================= */

.paper-scrap {
  left: 365px;
  top: 345px;

  z-index: 10;

  width: 315px;

  padding:
    24px 20px 18px;

  background: #e8dec6;
  color: #111;

  box-shadow:
    8px 8px 0 #000;

  font-family: Georgia, serif;

  clip-path:
    polygon(
      0 10%,
      8% 3%,
      17% 8%,
      29% 2%,
      41% 7%,
      52% 1%,
      63% 5%,
      75% 2%,
      86% 8%,
      100% 3%,
      96% 100%,
      84% 96%,
      72% 100%,
      58% 95%,
      44% 100%,
      29% 96%,
      16% 100%,
      4% 94%
    );
}


.paper-label {
  display: inline-block;

  margin-bottom: 10px;
  padding: 3px 7px;

  background: #ff2ca8;
  color: #000;

  font-family: Impact, sans-serif;
  letter-spacing: 1px;
}


.paper-scrap p {
  margin: 0;

  font-size: 21px;
  line-height: 1.25;
}


/* =========================================================
   ACID WARNING
   ========================================================= */

.acid-warning {
  left: 710px;
  top: 180px;

  z-index: 30;

  width: 255px;
  padding: 12px;

  background:
    repeating-linear-gradient(
      -45deg,
      #d7ff00 0 10px,
      #f6ff7a 10px 20px
    );

  color: #111;

  border:
    4px solid #111;

  box-shadow:
    7px 7px 0 #000;

  font-family: Impact, sans-serif;

  text-align: center;
}


.warning-handle {
  margin:
    -12px -12px 10px;

  padding: 6px;

  background: #111;
  color: #d7ff00;

  font-family: "Courier New", monospace;
  font-size: 12px;
}


.acid-warning a {
  display: block;

  color: #111;

  font-size: 30px;
  letter-spacing: 1px;

  text-decoration: none;
}


.acid-warning a:hover {
  text-decoration: underline;
}


.acid-warning small {
  display: block;

  margin-top: 4px;

  font-family: "Courier New", monospace;
  font-size: 12px;
}


/* =========================================================
   ZINE PANEL
   ========================================================= */

.zine-panel {
  left: 808px;
  top: 260px;

  z-index: 6;

  width: 285px;
  min-height: 300px;

  padding: 15px;

  background:
    radial-gradient(
      #f3eee7 1px,
      transparent 2px
    ),
    #050505;

  background-size:
    7px 7px;

  border:
    3px double #f3eee7;

  box-shadow:
    8px 8px 0 #000;

  color: #f3eee7;
}


.zine-big {
  font-family: Impact, sans-serif;
  font-size: 48px;

  line-height: 0.9;

  color:
    rgba(255, 255, 255, 0.75);

  letter-spacing: 2px;

  mix-blend-mode: difference;
}


.zine-small {
  margin-top: 24px;
  padding: 10px;

  background: #000;

  border:
    1px solid #f3eee7;

  font-family: "Courier New", monospace;
  font-size: 13px;
}


/* =========================================================
   OMEN CARD
   ========================================================= */

.omen-card {
  left: 835px;
  top: 585px;

  z-index: 9;

  width: 220px;
  padding: 12px;

  background: #020202;

  border:
    2px solid #f3eee7;

  box-shadow:
    5px 5px 0 #000;

  font-family: "Times New Roman", serif;
}


.omen-title {
  margin-bottom: 8px;

  font-family: "Courier New", monospace;

  color: #f3eee7;
}


.omen-card label {
  display: block;

  margin: 4px 0;

  color: #fff;
}


.button-row {
  margin-top: 10px;
}


.button-row button,
.tiny-error button {
  background: #050505;
  color: #f3eee7;

  border:
    1px solid #f3eee7;

  font-family: "Courier New", monospace;
}


/* =========================================================
   RECEIPT
   ========================================================= */

.receipt-log {
  left: 355px;
  top: 575px;

  z-index: 5;

  width: 245px;
  padding: 16px;

  background: #f2eee7;
  color: #111;

  box-shadow:
    6px 6px 0 #000;

  font-family: "Courier New", monospace;

  clip-path:
    polygon(
      0 0,
      100% 0,
      100% 95%,
      94% 100%,
      88% 95%,
      82% 100%,
      76% 95%,
      70% 100%,
      64% 95%,
      58% 100%,
      52% 95%,
      46% 100%,
      40% 95%,
      34% 100%,
      28% 95%,
      22% 100%,
      16% 95%,
      10% 100%,
      4% 95%,
      0 100%
    );
}


.receipt-log h2 {
  margin:
    0 0 6px;

  font-size: 17px;
  letter-spacing: 1px;
}


.receipt-log p {
  margin: 3px 0;

  border-bottom:
    1px dotted #999;
}


/* =========================================================
   BROKEN FOLDER
   ========================================================= */

.broken-folder {
  left: 645px;
  top: 670px;

  z-index: 7;

  width: 315px;
  padding:
    30px 18px 18px;

  background: #35116d;
  color: #f3eee7;

  border:
    3px solid #c3a8ff;

  box-shadow:
    8px 8px 0 #000;

  font-family: "Trebuchet MS", sans-serif;

  clip-path:
    polygon(
      0 12%,
      35% 12%,
      42% 0,
      100% 0,
      100% 100%,
      0 100%
    );
}


.folder-tab {
  position: absolute;
  top: 6px;
  left: 16px;

  font-family: Impact, sans-serif;

  color: #d7ff00;
  letter-spacing: 2px;
}


/* =========================================================
   SIGIL
   ========================================================= */

.sigil-object {
  left: 505px;
  top: 625px;

  z-index: 31;

  width: 135px;

  text-align: center;
}


.sigil-tag {
  display: inline-block;

  margin-bottom: 6px;
  padding: 3px 6px;

  background: #050505;
  color: #d8fff8;

  border:
    1px solid #d8fff8;

  font-family: "Courier New", monospace;
  font-size: 11px;
}


.sigil-circle {
  width: 118px;
  height: 118px;

  margin: 0 auto;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #000 0 36%,
      #ff2ca8 37% 41%,
      #000 42% 100%
    );

  border:
    3px solid #ff2ca8;

  box-shadow:
    7px 7px 0 #000,
    0 0 18px
    rgba(255, 44, 168, 0.8);
}


.sigil-circle span {
  font-size: 54px;

  color: #d7ff00;
}


/* =========================================================
   MIRROR
   ========================================================= */

.mirror-card {
  left: 88px;
  top: 555px;

  z-index: 4;

  width: 220px;
  padding: 13px;

  background:
    linear-gradient(
      135deg,
      #d8fff8,
      #111,
      #ff2ca8
    );

  border:
    2px solid #f3eee7;

  box-shadow:
    6px 6px 0 #000;
}


.mirror-inner {
  padding: 14px;

  background:
    rgba(0, 0, 0, 0.82);

  border:
    1px solid #f3eee7;

  font-family: Georgia, serif;
}


.mirror-inner h2 {
  margin:
    0 0 8px;

  font-family: Impact, sans-serif;
  letter-spacing: 1px;
}


/* =========================================================
   ERROR WINDOW
   ========================================================= */

.tiny-error {
  left: 880px;
  top: 520px;

  z-index: 32;

  width: 210px;

  background: #dedede;
  color: #111;

  border:
    2px solid #111;

  box-shadow:
    6px 6px 0 #000;

  font-family: "Courier New", monospace;
}


.error-bar {
  display: flex;
  justify-content: space-between;

  padding: 5px 7px;

  background: #005eff;
  color: white;
}


.tiny-error p {
  padding: 10px;
  margin: 0;
}


.tiny-error button {
  margin:
    0 10px 10px;

  color: #111;
  background: #f3f3f3;

  border:
    1px solid #111;
}


/* =========================================================
   BLACK LABEL
   ========================================================= */

.black-label {
  left: 685px;
  top: 450px;

  z-index: 12;

  width: 300px;

  padding: 8px 12px;

  background: #000;

  border:
    2px solid #f3eee7;

  box-shadow:
    5px 5px 0 #000;

  transform:
    rotate(-1deg);
}


.black-label p {
  margin: 0;

  font-family: Impact, sans-serif;
  font-size: 24px;
  letter-spacing: 1px;

  color: #f3eee7;
}


/* =========================================================
   RED THREAD
   ========================================================= */

.thread-card {
  left: 435px;
  top: 850px;

  z-index: 6;

  width: 430px;

  padding:
    25px 22px 18px;

  background: #080008;
  color: #f3eee7;

  border:
    3px solid #9b001f;

  box-shadow:
    7px 7px 0 #000;

  font-family: Georgia, serif;
}


.thread-line {
  position: absolute;

  left: -90px;
  top: 25px;

  width: 180px;
  height: 4px;

  background: #ff0033;

  box-shadow:
    0 0 8px #ff0033;
}


.thread-card h2 {
  margin:
    0 0 10px;

  color: #ff2ca8;

  font-family: Impact, sans-serif;
  letter-spacing: 1px;
}


.thread-card p {
  line-height: 1.45;
}


/* =========================================================
   MY ROOM PORTAL
   ========================================================= */

.room-portal {
  left: 770px;
  top: 10px;

  z-index: 40;

  width: 245px;
  min-height: 145px;

  padding:
    13px 13px 12px;

  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 44, 168, 0.45),
      transparent 28%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 229, 255, 0.35),
      transparent 30%
    ),
    repeating-linear-gradient(
      -8deg,
      rgba(255, 255, 255, 0.09) 0 2px,
      transparent 2px 8px
    ),
    #080008;

  border:
    3px solid #ff2ca8;

  box-shadow:
    7px 7px 0 #000,
    0 0 18px
    rgba(255, 44, 168, 0.55);

  clip-path:
    polygon(
      0 10%,
      8% 0,
      82% 0,
      100% 16%,
      96% 100%,
      13% 96%,
      0 84%
    );
}


.room-portal::before {
  content: "";

  position: absolute;

  left: 18px;
  top: -13px;

  width: 74px;
  height: 24px;

  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.45) 0 6px,
      rgba(215, 255, 0, 0.75) 6px 12px
    );

  border:
    1px solid #111;

  transform:
    rotate(-5deg);

  box-shadow:
    3px 3px 0 #000;
}


.room-portal::after {
  content: "OPEN";

  position: absolute;

  right: -12px;
  bottom: 18px;

  padding: 4px 7px;

  background: #d7ff00;
  color: #111;

  border:
    2px solid #111;

  font-family: Impact, sans-serif;
  font-size: 15px;
  letter-spacing: 1px;

  transform:
    rotate(7deg);

  box-shadow:
    3px 3px 0 #000;
}


.room-drag-tab {
  display: inline-block;

  margin-bottom: 8px;
  padding: 4px 7px;

  background: #050505;
  color: #d8fff8;

  border:
    1px solid #d8fff8;

  font-family: "Courier New", monospace;
  font-size: 11px;

  text-transform: uppercase;
}


.room-link {
  display: block;

  padding:
    6px 4px 3px;

  color: inherit;

  text-decoration: none;
}


.room-link:hover {
  filter:
    brightness(1.25);
}


.room-word-one,
.room-word-two {
  display: block;

  line-height: 0.9;

  text-transform: uppercase;
}


.room-word-one {
  font-family: Georgia, serif;
  font-size: 42px;
  font-style: italic;

  color: #d7ff00;

  text-shadow:
    2px 2px 0 #000,
    4px 4px 0 #ff2ca8;

  transform:
    rotate(-3deg);
}


.room-word-two {
  margin-left: 28px;

  font-family: Impact, sans-serif;
  font-size: 52px;
  letter-spacing: 2px;

  color: #f3eee7;

  text-shadow:
    2px 2px 0 #000,
    5px 5px 0 #00e5ff,
    0 0 12px
    rgba(255, 44, 168, 0.9);

  transform:
    rotate(2deg);
}


.room-runes {
  margin-top: 8px;
  padding-top: 7px;

  border-top:
    1px dashed
    rgba(255, 255, 255, 0.55);

  color: #ffbde8;

  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.3;
}


/* =========================================================
   ROLEPLAY PANEL
   ========================================================= */

/*
   Notice:
   NO "position: absolute" here.

   .draggable controls that on desktop.
   This prevents Roleplay fighting the
   mobile column rules later.
*/

.roleplay-pass {
  left: 230px;
  top: 505px;

  z-index: 46;

  width: 330px;
  min-height: 185px;

  padding: 8px;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 4px
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      transparent 40%
    ),
    #070709;

  border:
    2px solid #b8b1a5;

  outline:
    1px dashed #7c756c;

  box-shadow:
    6px 6px 0 #000,
    inset 0 0 0 1px #000,
    0 0 18px
    rgba(0, 0, 0, 0.45);

  color: #e8e1d7;

  transform:
    rotate(-1deg);

  cursor: grab;
}


.roleplay-pass::before {
  content: "";

  position: absolute;

  left: -6px;
  top: 24px;

  width: 6px;
  height: 82px;

  background: #7b3f58;

  box-shadow:
    2px 2px 0 #000;
}


.roleplay-grip {
  display: inline-block;

  margin-bottom: 7px;
  padding: 2px 7px;

  background: #0f0f12;

  border:
    1px solid #73706b;

  color: #c9c1b6;

  font-family:
    "Courier New",
    monospace;

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;

  box-shadow:
    2px 2px 0 #000;
}


.roleplay-topbar {
  display: flex;

  justify-content:
    space-between;

  gap: 8px;

  margin-bottom: 7px;
  padding: 4px 7px;

  background: #111215;

  border:
    1px solid #4b4946;

  color: #bfb7ab;

  font-family:
    "Lucida Console",
    "Courier New",
    monospace;

  font-size: 10px;

  text-transform: lowercase;
}


.roleplay-link,
.roleplay-link:visited,
.roleplay-link:hover,
.roleplay-link:active {
  display: block;

  color:
    #e8e1d7 !important;

  text-decoration: none;
}


.roleplay-link {
  padding: 8px;

  background:
    linear-gradient(
      90deg,
      rgba(123, 63, 88, 0.10),
      transparent 45%
    ),
    #09090c;

  border:
    1px dashed
    rgba(184, 177, 165, 0.34);
}


.roleplay-grid {
  display: grid;

  grid-template-columns:
    1fr 112px;

  gap: 10px;

  align-items: start;
}


.roleplay-main {
  min-width: 0;
}


.roleplay-title {
  margin-bottom: 8px;

  font-family:
    "Lucida Console",
    "Courier New",
    monospace;

  font-size: 31px;
  font-weight: bold;
  letter-spacing: 2px;

  line-height: 0.95;

  text-transform: uppercase;

  color: #e8e1d7;

  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 #000,
    3px 3px 0
    rgba(123, 63, 88, 0.6);
}


.roleplay-status {
  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin-bottom: 7px;
  padding: 3px 6px;

  background: #0d0d10;

  border:
    1px solid #4d5541;

  color: #bcc5aa;

  font-family:
    "Lucida Console",
    "Courier New",
    monospace;

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.blink-dot {
  display: inline-block;

  width: 8px;
  height: 8px;

  background: #a6b96a;

  box-shadow:
    0 0 6px
    rgba(166, 185, 106, 0.7);

  animation:
    blinkDot
    1s
    steps(2, end)
    infinite;
}


@keyframes blinkDot {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.15;
  }
}


.roleplay-sub {
  margin-bottom: 10px;
  padding-top: 6px;

  border-top:
    1px dotted
    rgba(184, 177, 165, 0.3);

  color: #bab2a6;

  font-family: "Courier New", monospace;
  font-size: 11px;

  line-height: 1.45;

  text-transform: lowercase;
}


.roleplay-tabs {
  display: flex;

  gap: 6px;

  flex-wrap: wrap;
}


.roleplay-tabs span {
  display: inline-block;

  padding: 3px 7px;

  background: #111114;

  border-top:
    1px solid #87827b;

  border-left:
    1px solid #87827b;

  border-right:
    1px solid #1e1e21;

  border-bottom:
    1px solid #1e1e21;

  color: #c8c1b7;

  font-family:
    "Lucida Console",
    "Courier New",
    monospace;

  font-size: 10px;

  text-transform: lowercase;

  box-shadow:
    2px 2px 0 #000;
}


.roleplay-tabs span:nth-child(2) {
  color: #c78aa3;
}


.pet-screen {
  position: relative;

  min-height: 128px;

  padding:
    6px 6px 8px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 18% 24%,
      rgba(255, 255, 255, 0.22) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 78% 35%,
      rgba(255, 255, 255, 0.14) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 55% 76%,
      rgba(255, 255, 255, 0.16) 0 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.045) 0 1px,
      transparent 1px 4px
    ),
    #050507;

  border:
    1px dashed #8c857b;
}


.pet-screen::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 25% 18%,
      rgba(255, 255, 255, 0.7) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 72% 44%,
      rgba(255, 255, 255, 0.45) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 43% 82%,
      rgba(255, 255, 255, 0.55) 0 1px,
      transparent 2px
    );

  animation:
    starBlink
    1.4s
    steps(2, end)
    infinite;

  pointer-events: none;
}


@keyframes starBlink {
  0%,
  49% {
    opacity: 0.25;
  }

  50%,
  100% {
    opacity: 0.95;
  }
}


.pet-name {
  margin-bottom: 6px;

  color: #b8b1a5;

  font-family:
    "Lucida Console",
    "Courier New",
    monospace;

  font-size: 10px;

  text-transform: uppercase;
  letter-spacing: 1px;
}


.pet-sprite {
  margin: 0;

  color: #e8e1d7;

  font-family:
    "Courier New",
    monospace;

  font-size: 14px;

  line-height: 0.95;

  white-space: pre;

  text-shadow:
    1px 1px 0 #000;
}


.pet-mood {
  margin-top: 7px;

  color: #aeb89e;

  font-family:
    "Lucida Console",
    "Courier New",
    monospace;

  font-size: 10px;

  text-transform: lowercase;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;

  z-index: 5;

  width: fit-content;
  max-width: 90vw;

  margin:
    0 auto 60px;

  padding: 7px 12px;

  background:
    rgba(0, 0, 0, 0.82);

  border:
    1px solid #ff2ca8;

  color: #d8fff8;

  font-family: "Courier New", monospace;
  font-size: 13px;

  text-align: center;
}


/* =========================================================
   ROOM PAGE
   ========================================================= */

.room-page {
  margin: 0;

  min-height: 100vh;

  background: #070713;

  overflow-x: hidden;
}


.room-screen {
  position: relative;

  width: 100vw;
  max-width: 1662px;

  margin: 0 auto;

  line-height: 0;
}


.room-image {
  display: block;

  width: 100%;
  height: auto;

  image-rendering: pixelated;
}


.room-hotspot {
  position: absolute;

  display: block;

  text-decoration: none;

  cursor: pointer;
}


.room-hotspot span {
  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  display: block;

  opacity: 0;

  pointer-events: none;

  padding: 6px 12px;

  background:
    rgba(5, 5, 12, 0.72);

  color: #f4f1ff;

  border:
    1px solid
    rgba(255, 255, 255, 0.65);

  font-family: "Courier New", monospace;

  font-size:
    clamp(
      16px,
      2vw,
      30px
    );

  line-height: 1;
  letter-spacing: 2px;

  text-transform: lowercase;

  white-space: nowrap;

  text-shadow:
    2px 2px 0 #000,
    0 0 8px
    rgba(255, 255, 255, 0.85),
    0 0 15px
    rgba(190, 120, 255, 0.75);

  box-shadow:
    4px 4px 0
    rgba(0, 0, 0, 0.75),
    0 0 18px
    rgba(140, 95, 255, 0.38);

  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    filter 0.16s ease;
}


.room-hotspot:hover span {
  opacity: 1;

  transform:
    translate(-50%, -50%)
    scale(1.04);

  filter:
    brightness(1.12);
}


/* ROOM HOTSPOTS */

.posters-hotspot {
  left: 31%;
  top: 7%;

  width: 25%;
  height: 34%;
}


.books-hotspot {
  left: 60%;
  top: 11%;

  width: 23%;
  height: 37%;
}


.games-hotspot {
  left: 39%;
  top: 31%;

  width: 22%;
  height: 25%;
}


.films-hotspot {
  left: 40%;
  top: 51%;

  width: 22%;
  height: 25%;
}


.fashion-hotspot {
  left: 16%;
  top: 54%;

  width: 27%;
  height: 27%;
}


.misc-hotspot {
  left: 73%;
  top: 48%;

  width: 22%;
  height: 22%;
}


.journal-hotspot {
  left: 72%;
  top: 72%;

  width: 16%;
  height: 13%;
}


/* =========================================================
   ROOM PAGE SMALL SCREENS
   ========================================================= */

@media (max-width: 700px) {

  .room-hotspot span {
    font-size: 15px;

    padding:
      5px 8px;

    letter-spacing: 1px;
  }

}


/* =========================================================
   MID-SIZED DESKTOP / TABLET LANDSCAPE
   ========================================================= */

@media (max-width: 1180px) and (min-width: 851px) {

  .stage {
    width: 100%;
  }

}


/* =========================================================
   MOBILE HOMEPAGE
   =========================================================

   Everything becomes ONE STRICT COLUMN.

   The DOM / HTML order decides the order.

   Nothing is absolute.
   Nothing overlaps.
   Nothing drags.
   ========================================================= */

@media (max-width: 850px) {

  body {
    overflow-x: hidden;
  }


  /* HEADER */

  .site-header {
    padding-top: 18px;

    overflow: hidden;
  }


  .title-ransom {
    transform:
      scale(0.65);

    transform-origin:
      center;

    margin-top: -8px;
    margin-bottom: -8px;
  }


  .subtitle-strip {
    width:
      calc(100% - 28px);

    max-width: 500px;

    margin-top: 6px;

    font-size: 11px;

    line-height: 1.4;
  }


  /* =====================================================
     THE MOBILE COLUMN
     ===================================================== */

  .stage {
    position: relative;

    width: 100%;
    min-height: 0;

    margin:
      26px auto 60px;

    padding:
      0 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 22px;
  }


  /*
     THIS IS THE IMPORTANT UNIVERSAL RULE.

     Every direct .draggable child of .stage
     becomes a normal flex item.

     This also applies automatically to new
     draggable boxes added later.
  */

  .stage > .draggable {
    position: relative !important;

    left: auto !important;
    right: auto !important;

    top: auto !important;
    bottom: auto !important;

    z-index: auto !important;

    float: none !important;

    flex:
      0 0 auto;

    max-width:
      100% !important;

    margin:
      0 auto !important;

    transform:
      none !important;

    cursor:
      default !important;

    touch-action:
      pan-y !important;
  }


  .stage > .draggable:active {
    cursor:
      default !important;
  }


  /* MAIN TERMINAL */

  .terminal-window {
    width: 100%;
  }


  .terminal-body h1 {
    font-size:
      clamp(
        34px,
        11vw,
        45px
      );
  }


  /* NAVIGATION */

  .nav-rack {
    width:
      min(
        100%,
        320px
      );
  }


  /* NOTICEBOARD */

  .ritual-menu {
    width:
      min(
        100%,
        340px
      );
  }


  /* PAPER NOTE */

  .paper-scrap {
    width:
      min(
        100%,
        360px
      );
  }


  /* CORRUPTED FILE */

  .acid-warning {
    width:
      min(
        100%,
        320px
      );
  }


  /* ZINE */

  .zine-panel {
    width:
      min(
        100%,
        340px
      );
  }


  /* OMEN */

  .omen-card {
    width:
      min(
        100%,
        300px
      );
  }


  /* RECEIPT */

  .receipt-log {
    width:
      min(
        100%,
        300px
      );
  }


  /* FOLDER */

  .broken-folder {
    width:
      min(
        100%,
        350px
      );
  }


  /* SIGIL */

  .sigil-object {
    width: 135px;
  }


  /* MIRROR */

  .mirror-card {
    width:
      min(
        100%,
        300px
      );
  }


  /* ERROR */

  .tiny-error {
    width:
      min(
        100%,
        280px
      );
  }


  /* BLACK LABEL */

  .black-label {
    width:
      min(
        100%,
        340px
      );
  }


  /* RED THREAD */

  .thread-card {
    width: 100%;
  }


  /*
     The long red desktop line would
     protrude outside the card.
  */

  .thread-line {
    display: none;
  }


  /* ROOM PORTAL */

  .room-portal {
    width:
      min(
        calc(100% - 20px),
        300px
      );
  }


  /*
     Keep the decorative OPEN tag from
     creating horizontal overflow.
  */

  .room-portal::after {
    right: 4px;
  }


  /* =====================================================
     ROLEPLAY

     Explicitly reset EVERYTHING that could
     make it behave as a floating desktop box.
     ===================================================== */

  .roleplay-pass {
    position: relative !important;

    left: auto !important;
    right: auto !important;

    top: auto !important;
    bottom: auto !important;

    z-index: auto !important;

    float: none !important;

    flex:
      0 0 auto !important;

    width:
      min(
        100%,
        360px
      ) !important;

    max-width:
      100% !important;

    margin:
      0 auto !important;

    transform:
      none !important;

    cursor:
      default !important;

    touch-action:
      pan-y !important;
  }


  /*
     Roleplay's decorative purple edge stays
     inside its own slot rather than protruding
     toward the previous object.
  */

  .roleplay-pass::before {
    left: 0;
  }


  /* FOOTER */

  .site-footer {
    margin-top: 30px;
  }

}


/* =========================================================
   VERY NARROW PHONES
   ========================================================= */

@media (max-width: 430px) {

  /*
     Roleplay's internal layout becomes
     one column too.
  */

  .roleplay-grid {
    grid-template-columns: 1fr;
  }


  .pet-screen {
    width: 100%;
  }


  /*
     Slightly reduce title so ransom letters
     don't hit the edges.
  */

  .title-ransom {
    transform:
      scale(0.54);

    margin-left: -40px;
    margin-right: -40px;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  .blink-dot,
  .pet-screen::after {
    animation: none;
  }

}


/* =========================================================
   POETRY / LYRICS PAGE
   ========================================================= */

.poetry-page {
  margin: 0;
  padding: 0;
  min-height: 100vh;

  background: #020202;
  color: #eeeeea;

  overflow-x: hidden;

  font-family:
    Georgia,
    "Times New Roman",
    serif;
}


/* =========================================================
   POETRY HEADER
   ========================================================= */

.poetry-header {
  width: 760px;
  max-width: 90%;

  margin: 0 auto;

  padding:
    60px 0 65px 0;
}


.poetry-home-link {
  display: inline-block;

  margin-bottom: 70px;

  color: #888888;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;

  letter-spacing: 1px;

  text-decoration: none;
}


.poetry-home-link:hover {
  color: #ffffff;

  text-decoration: underline;
}


.poetry-path {
  margin:
    0 0 15px 0;

  color: #666666;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;

  letter-spacing: 1px;
}


.poetry-header h1 {
  margin: 0;

  color: #f2f2ef;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 64px;

  font-weight: normal;

  line-height: 1;

  letter-spacing: -2px;
}


.poetry-intro {
  margin:
    25px 0 0 0;

  color: #999999;

  font-size: 17px;

  line-height: 1.6;
}


/* =========================================================
   POETRY CONTENTS
   ========================================================= */

.poetry-contents {
  width: 760px;
  max-width: 90%;

  margin:
    0 auto 140px auto;

  padding:
    30px 0 35px 0;

  border-top:
    1px solid #333333;

  border-bottom:
    1px solid #333333;
}


.poetry-contents h2 {
  margin:
    0 0 28px 0;

  color: #666666;

  font-family:
    "Courier New",
    monospace;

  font-size: 13px;

  font-weight: normal;

  letter-spacing: 1px;
}


.poetry-contents a {
  display: block;
  margin: 12px 0;
  color: #eeeeea;
  font-size: 17px;
  line-height: 1.4;
  text-decoration: underline;
}


.poetry-contents a:hover {
  color: #999999;
}


/* =========================================================
   POETRY ARCHIVE
   ========================================================= */

.poetry-archive {
  width: 760px;
  max-width: 90%;

  margin:
    0 auto;
}


/* =========================================================
   INDIVIDUAL SONGS / POEMS
   ========================================================= */

.poetry-piece {
  margin:
    0 0 140px 0;

  padding:
    0 0 140px 0;

  border-bottom:
    1px solid #222222;
}


.poetry-kind {
  margin:
    0 0 14px 0;

  color: #666666;

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;

  letter-spacing: 1px;

  text-transform: uppercase;
}


.poetry-piece h2 {
  margin:
    0 0 24px 0;

  color: #f2f2ef;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 30px;

  font-weight: normal;

  line-height: 1.1;

  text-decoration: underline;
}


.poetry-text {
  width: 610px;
  max-width: 100%;

  color: #deded9;

  font-size: 19px;

  line-height: 1.75;

  white-space: pre-line;
}


.poetry-back-to-contents {
  display: inline-block;

  margin-top: 60px;

  color: #666666;

  font-family:
    "Courier New",
    monospace;

  font-size: 11px;

  letter-spacing: 1px;

  text-decoration: none;
}


.poetry-back-to-contents:hover {
  color: #ffffff;

  text-decoration: underline;
}


/* =========================================================
   POETRY FOOTER
   ========================================================= */

.poetry-footer {
  width: 760px;
  max-width: 90%;

  margin:
    0 auto;

  padding:
    0 0 90px 0;
}


.poetry-footer a {
  color: #666666;

  font-family:
    "Courier New",
    monospace;

  font-size: 12px;

  text-decoration: underline;
}


/* =========================================================
   POETRY PAGE MOBILE
   ========================================================= */

@media screen and (max-width: 600px) {

  .poetry-header {
    width: 88%;
    max-width: none;

    padding-top: 35px;
    padding-bottom: 50px;
  }


  .poetry-home-link {
    margin-bottom: 50px;
  }


  .poetry-header h1 {
    font-size: 42px;

    letter-spacing: -1px;
  }


  .poetry-contents {
    width: 88%;
    max-width: none;

    margin-bottom: 90px;
  }


  .poetry-contents a {
    font-size: 20px;
  }


  .poetry-archive {
    width: 88%;
    max-width: none;
  }


  .poetry-piece {
    margin-bottom: 90px;

    padding-bottom: 90px;
  }


  .poetry-piece h2 {
    margin-bottom: 38px;

    font-size: 32px;
  }


  .poetry-text {
    width: 100%;
    max-width: none;

    font-size: 18px;

    line-height: 1.65;
  }


  .poetry-footer {
    width: 88%;
    max-width: none;
  }

}