/* ========================================
   WORLD//ARCHIVE
   Version 2 — Archive / Visual Novel Style
   ======================================== */

/* ---------- Global Colors ---------- */

:root {
  --accent-red: #e6003c;
  --accent-red-bright: #ff174f;
  --accent-red-faded: rgba(230, 0, 60, 0.22);

  --background: #0b0b0b;
  --text-main: #ece8e1;
  --text-soft: #d9d5cf;
  --text-muted: #777;
  --text-dark: #666;
}


/* ---------- Global ---------- */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--text-main);
  font-family: "Courier New", monospace;
  overflow: hidden;
}


/* ========================================
   HOME PAGE
   ======================================== */


/* ---------- Main Screen ---------- */

.hero {
  min-height: 100vh;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      rgba(255,255,255,0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.025) 1px,
      transparent 1px
    ),
    var(--background);

  background-size:
    100% 72px,
    72px 100%;
}


/* ---------- Decorative Document Frame ---------- */

.hero::before {
  content: "";

  position: absolute;

  width: 78vw;
  height: 68vh;

  border: 1px solid rgba(255,255,255,0.10);

  transform: rotate(-2deg);

  pointer-events: none;
}


.hero::after {
  content: "ARCHIVE // PUBLIC ACCESS";

  position: absolute;

  top: 7%;
  left: 8%;

  font-size: 0.7rem;
  letter-spacing: 0.22em;

  color: #6f6f6f;
}


/* ---------- Navigation ---------- */

nav {
  position: absolute;

  top: 34px;
  right: 42px;

  z-index: 5;
}


nav a {
  color: var(--text-soft);

  text-decoration: none;

  margin-left: 28px;

  font-size: 0.72rem;
  letter-spacing: 0.16em;

  text-transform: uppercase;

  transition: 0.2s;
}


nav a::before {
  content: "./";

  color: var(--accent-red);

  margin-right: 5px;
}


nav a:hover {
  color: white;
}


/* ---------- Main Title ---------- */

.logo {
  position: relative;

  z-index: 3;

  width: min(760px, 80vw);

  text-align: left;
}


.logo h1 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;

  line-height: 0.8;

  letter-spacing: -0.045em;
}


.word-world {
  display: block;

  font-size: clamp(4rem, 10vw, 8.2rem);

  transform: translateX(-7%);
}


.word-archive {
  display: block;

  font-size: clamp(4rem, 10vw, 8.2rem);

  transform: translateX(15%);
}


.slash {
  font-family: "Courier New", monospace;

  font-size: 0.43em;

  color: var(--accent-red);

  letter-spacing: -0.22em;

  margin-right: 0.3em;

  vertical-align: middle;
}


/* ---------- Subtitle ---------- */

.subtitle {
  margin-top: 36px;
  margin-left: 18%;

  max-width: 430px;

  font-size: 0.72rem;

  letter-spacing: 0.24em;

  text-transform: uppercase;

  line-height: 1.8;

  color: var(--text-muted);
}


.subtitle::before {
  content: "FILE 000 / ";

  color: var(--accent-red);
}


/* ---------- Enter Link ---------- */

.enter-button {
  display: inline-block;

  position: relative;

  margin-top: 52px;
  margin-left: 18%;

  padding: 12px 6px;

  color: #dedad4;

  text-decoration: none;

  font-size: 0.78rem;

  letter-spacing: 0.19em;

  text-transform: uppercase;
}


.enter-button::before {
  content: "[";

  position: absolute;

  left: -16px;

  color: var(--accent-red);
}


.enter-button::after {
  content: "]";

  position: absolute;

  right: -16px;

  color: var(--accent-red);
}


.enter-button:hover {
  color: white;
}


.enter-button:hover::before,
.enter-button:hover::after {
  color: var(--accent-red-bright);
}


/* ---------- Floating Archive Label ---------- */

.file-label {
  position: absolute;

  right: 10%;
  bottom: 18%;

  z-index: 2;

  width: 180px;

  padding: 14px 16px;

  border-left: 3px solid var(--accent-red);

  background: rgba(255,255,255,0.025);

  font-size: 0.68rem;

  line-height: 1.8;

  color: var(--text-muted);

  transform: rotate(2deg);
}


.file-label strong {
  color: var(--text-soft);

  font-weight: normal;
}


/* ---------- Archive Status ---------- */

.archive-info {
  position: absolute;

  left: 36px;
  bottom: 28px;

  z-index: 4;

  font-size: 0.72rem;

  line-height: 1.8;

  color: var(--text-muted);
}


.archive-info strong {
  color: var(--accent-red);

  font-weight: normal;
}


/* ---------- Small Red Mark ---------- */

.warning-mark {
  position: absolute;

  top: 22%;
  right: 16%;

  z-index: 1;

  font-family: Georgia, serif;

  font-size: 5rem;

  color: var(--accent-red-faded);

  transform: rotate(12deg);

  user-select: none;
}


/* ---------- Responsive ---------- */

@media (max-width: 700px) {

  body {
    overflow-y: auto;
  }

  nav {
    top: 20px;
    right: 18px;
  }

  nav a {
    margin-left: 10px;

    font-size: 0.58rem;
  }

  .logo {
    width: 78vw;
  }

  .word-world,
  .word-archive {
    transform: none;
  }

  .subtitle,
  .enter-button {
    margin-left: 0;
  }

  .file-label {
    right: 20px;
    bottom: 100px;

    width: 150px;
  }

  .archive-info {
    left: 18px;
    bottom: 16px;
  }

  .hero::before {
    width: 88vw;
    height: 72vh;
  }
}


/* ========================================
   WORLD INDEX PAGE
   ======================================== */


/* ---------- Archive Page Background ---------- */

.archive-page {
  min-height: 100vh;

  overflow-y: auto;

  background:
    linear-gradient(
      rgba(255,255,255,0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.02) 1px,
      transparent 1px
    ),
    var(--background);

  background-size:
    100% 72px,
    72px 100%;
}


/* ---------- Header ---------- */

.topbar {
  width: 100%;

  padding: 28px 38px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom:
    1px solid rgba(255,255,255,0.08);
}


.site-title {
  font-family:
    Georgia,
    "Times New Roman",
    serif;

  color: var(--text-main);

  text-decoration: none;

  font-size: 1.2rem;

  letter-spacing: 0.02em;
}


.page-nav a {
  margin-left: 26px;

  color: var(--text-muted);

  text-decoration: none;

  font-size: 0.7rem;

  letter-spacing: 0.15em;

  text-transform: uppercase;

  transition: 0.2s;
}


.page-nav a::before {
  content: "./";

  color: var(--accent-red);

  margin-right: 5px;
}


.page-nav a:hover,
.page-nav a.active {
  color: var(--text-main);
}


/* ---------- Main Layout ---------- */

.world-index {
  width: min(1150px, 88vw);

  margin: 0 auto;

  padding: 90px 0 120px;
}


/* ---------- Page Heading ---------- */

.page-heading {
  position: relative;

  margin-bottom: 80px;
}


.page-code {
  margin: 0 0 14px;

  color: var(--accent-red);

  font-size: 0.68rem;

  letter-spacing: 0.22em;
}


.page-heading h1 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: normal;

  font-size:
    clamp(4rem, 9vw, 7rem);

  line-height: 0.9;

  letter-spacing: -0.04em;
}


.page-description {
  max-width: 520px;

  margin:
    28px 0 0 8%;

  color: var(--text-muted);

  font-size: 0.74rem;

  letter-spacing: 0.11em;

  line-height: 1.8;

  text-transform: uppercase;
}


/* ---------- World Grid ---------- */

.world-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 38px;
}


/* ---------- World Card ---------- */

.world-card {
  position: relative;

  min-height: 330px;

  padding: 30px;

  border:
    1px solid rgba(255,255,255,0.10);

  background:
    rgba(255,255,255,0.018);

  display: flex;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}


.world-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}


.world-card:nth-child(even) {
  transform: rotate(0.6deg);
}


.world-card:hover {
  transform:
    rotate(0deg)
    translateY(-5px);

  border-color:
    rgba(255,255,255,0.24);

  background:
    rgba(255,255,255,0.028);
}


/* ---------- World Number ---------- */

.world-number {
  min-width: 60px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 2rem;

  color:
    rgba(255,255,255,0.12);

  border-right:
    1px solid rgba(255,255,255,0.08);

  margin-right: 26px;
}


/* ---------- Card Content ---------- */

.world-card-content {
  display: flex;

  flex-direction: column;

  width: 100%;
}


.world-label {
  margin: 0 0 18px;

  color: var(--accent-red);

  font-size: 0.64rem;

  letter-spacing: 0.2em;
}


.world-card h2 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-weight: normal;

  font-size:
    clamp(2rem, 4vw, 3.2rem);

  line-height: 1;

  letter-spacing: -0.035em;
}


.world-summary {
  margin: 24px 0 30px;

  color: var(--text-muted);

  font-size: 0.74rem;

  line-height: 1.8;
}


/* ---------- Metadata ---------- */

.world-meta {
  margin-top: auto;

  display: flex;

  flex-direction: column;

  gap: 7px;

  color: var(--text-dark);

  font-size: 0.66rem;

  letter-spacing: 0.09em;
}


.world-meta strong {
  color: var(--accent-red);

  font-weight: normal;
}


/* ---------- Open Link ---------- */

.archive-link {
  width: fit-content;

  margin-top: 24px;

  color: #d8d4ce;

  text-decoration: none;

  font-size: 0.7rem;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}


.archive-link::before {
  content: "[ ";

  color: var(--accent-red);
}


.archive-link::after {
  content: " ]";

  color: var(--accent-red);
}


.archive-link:hover {
  color: white;
}

/* ---------- Wide Restricted Record ---------- */

.world-card-wide {
  grid-column:
    1 / -1;

  min-height:
    245px;
}


.world-card-wide .world-card-content {
  max-width:
    620px;
}


.world-card-wide.restricted {
  transform:
    none;
}


.world-card-wide.restricted:hover {
  transform:
    none;

  border-color:
    rgba(255,255,255,0.10);

  background:
    rgba(255,255,255,0.018);
}

/* ---------- Restricted Record ---------- */

.world-card.restricted {
  opacity: 0.58;
}


.world-card.restricted h2 {
  letter-spacing: 0.08em;
}


.archive-link.disabled {
  color: #555;

  cursor: default;
}


/* ---------- Footer ---------- */

.archive-footer {
  padding: 28px 36px;

  border-top:
    1px solid rgba(255,255,255,0.08);

  color: var(--text-dark);

  display: flex;

  justify-content: space-between;

  font-size: 0.67rem;

  line-height: 1.7;
}


.archive-footer strong {
  color: var(--accent-red);

  font-weight: normal;
}


.footer-right {
  text-align: right;
}


/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  
  .world-card-wide {
  grid-column:
    auto;

  min-height:
    290px;
}

  .topbar {
    padding: 22px 18px;

    align-items: flex-start;

    gap: 18px;
  }


  .page-nav {
    display: flex;

    flex-direction: column;

    gap: 8px;
  }


  .page-nav a {
    margin: 0;
  }


  .world-index {
    width: 86vw;

    padding-top: 65px;
  }


  .page-description {
    margin-left: 0;
  }


  .world-grid {
    grid-template-columns: 1fr;
  }


  .world-card {
    min-height: 290px;
  }


  .archive-footer {
    padding: 24px 18px;
  }

}

/* ========================================
   CHARACTER ARCHIVE
   Version 0.1
   ======================================== */


/* ---------- Character Page ---------- */

.character-page {
  overflow-y: auto;
}


/* ---------- Main Layout ---------- */

.character-index {
  width: min(1150px, 88vw);

  margin: 0 auto;

  padding: 90px 0 130px;
}


/* ========================================
   CABINET
   ======================================== */

.character-cabinet {
  margin-bottom: 110px;
}


/* ---------- Cabinet Header ---------- */

.cabinet-header {
  position: relative;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  margin-bottom: 38px;

  padding:
    0 10px
    18px 18px;

  border-bottom:
    1px solid rgba(255,255,255,0.12);
}


.cabinet-header::before {
  content: "";

  position: absolute;

  left: 0;
  bottom: -1px;

  width: 105px;
  height: 3px;

  background:
    var(--accent-red);
}


.cabinet-code {
  margin:
    0 0 8px;

  color:
    var(--accent-red);

  font-size:
    0.64rem;

  letter-spacing:
    0.22em;
}


.cabinet-header h2 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      2.2rem,
      5vw,
      4.2rem
    );

  font-weight:
    normal;

  line-height:
    0.95;

  letter-spacing:
    -0.04em;
}


.cabinet-meta {
  color:
    var(--text-dark);

  font-size:
    0.65rem;

  line-height:
    1.8;

  letter-spacing:
    0.1em;

  text-align:
    right;
}


/* ---------- Restricted Cabinet ---------- */

.restricted-cabinet
.cabinet-header::before {
  width: 45px;
}


/* ========================================
   CHARACTER GRID
   ======================================== */

.character-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(220px, 1fr)
    );

  gap: 34px;
}


/* ========================================
   CHARACTER CARD
   ======================================== */

.character-card {
  position: relative;

  max-width: 290px;

  padding: 16px;

  border:
    1px solid rgba(
      255,
      255,
      255,
      0.11
    );

  background:
    rgba(
      255,
      255,
      255,
      0.018
    );

  transform:
    rotate(-0.35deg);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}


.character-card:nth-child(even) {
  transform:
    rotate(0.35deg);
}


.character-card:hover {
  transform:
    rotate(0deg)
    translateY(-5px);

  border-color:
    rgba(
      255,
      255,
      255,
      0.25
    );

  background:
    rgba(
      255,
      255,
      255,
      0.028
    );
}


/* ---------- Card Top ---------- */

.character-card-top {
  display: flex;

  justify-content:
    space-between;

  margin-bottom:
    12px;

  color:
    var(--text-dark);

  font-size:
    0.58rem;

  letter-spacing:
    0.08em;
}


/* ---------- Status ---------- */

.status-active {
  color:
    var(--accent-red);
}


.status-unknown {
  color:
    var(--accent-red-bright);
}


/* ========================================
   PORTRAIT
   ======================================== */

.portrait-frame,
.file-portrait {
  position: relative;

  width: 100%;

  aspect-ratio: 3 / 4;

  overflow: hidden;

  border:
    1px solid rgba(
      255,
      255,
      255,
      0.12
    );

  background:
    rgba(
      255,
      255,
      255,
      0.018
    );
}


/* Actual Character Image */

.portrait-frame img,
.file-portrait img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* ---------- Placeholder ---------- */

.portrait-placeholder {
  display: flex;

  align-items: center;
  justify-content: center;

  text-align: center;

  color:
    rgba(
      255,
      255,
      255,
      0.18
    );

  font-size:
    0.65rem;

  line-height:
    1.8;

  letter-spacing:
    0.17em;

  background:
    linear-gradient(
      135deg,
      transparent 49.7%,
      rgba(
        255,
        255,
        255,
        0.055
      ) 50%,
      transparent 50.3%
    ),
    linear-gradient(
      45deg,
      transparent 49.7%,
      rgba(
        255,
        255,
        255,
        0.055
      ) 50%,
      transparent 50.3%
    ),
    rgba(
      255,
      255,
      255,
      0.012
    );
}


/* ---------- Portrait Unavailable ---------- */

.portrait-unavailable {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;

  color:
    var(--text-muted);

  background:
    repeating-linear-gradient(
      -45deg,
      rgba(
        255,
        255,
        255,
        0.015
      ),
      rgba(
        255,
        255,
        255,
        0.015
      ) 6px,
      transparent 6px,
      transparent 12px
    );
}


.unavailable-symbol {
  margin-bottom:
    12px;

  color:
    var(--accent-red);

  font-family:
    Georgia,
    serif;

  font-size:
    3rem;

  line-height: 1;
}


.portrait-unavailable span {
  font-size:
    0.68rem;

  line-height:
    1.8;

  letter-spacing:
    0.15em;
}


.portrait-unavailable small {
  position: absolute;

  left: 12px;
  bottom: 10px;

  color:
    #555;

  font-size:
    0.56rem;

  letter-spacing:
    0.1em;
}


/* ========================================
   CARD INFORMATION
   ======================================== */

.character-card-info {
  padding:
    21px 5px 6px;
}


.subject-label {
  margin:
    0 0 8px;

  color:
    var(--accent-red);

  font-size:
    0.58rem;

  letter-spacing:
    0.19em;
}


.character-card h3 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    2rem;

  font-weight:
    normal;

  letter-spacing:
    -0.035em;

  line-height:
    1;
}


.character-world-name {
  margin:
    9px 0 20px;

  color:
    var(--text-muted);

  font-size:
    0.66rem;

  letter-spacing:
    0.06em;
}


.character-mini-meta {
  color:
    var(--text-dark);

  font-size:
    0.6rem;

  line-height:
    1.8;

  letter-spacing:
    0.08em;
}


/* ---------- Open File Button ---------- */

.open-file {
  margin-top:
    22px;

  padding: 0;

  border: 0;

  background:
    transparent;

  color:
    #d8d4ce;

  font-family:
    "Courier New",
    monospace;

  font-size:
    0.67rem;

  letter-spacing:
    0.14em;

  text-transform:
    uppercase;

  cursor: pointer;
}


.open-file::before {
  content: "[ ";

  color:
    var(--accent-red);
}


.open-file::after {
  content: " ]";

  color:
    var(--accent-red);
}


.open-file:hover {
  color: white;
}


.open-file:hover::before,
.open-file:hover::after {
  color:
    var(--accent-red-bright);
}


/* ---------- Restricted Character ---------- */

.restricted-character {
  border-color:
    rgba(
      230,
      0,
      60,
      0.14
    );
}


.restricted-text {
  color:
    var(--accent-red);
}


/* ========================================
   MODAL
   ======================================== */

.character-modal {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 35px;

  visibility: hidden;

  opacity: 0;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}


/* ---------- Open State ---------- */

.character-modal.is-open {
  visibility: visible;

  opacity: 1;
}


/* ---------- Background Overlay ---------- */

.modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(
      0,
      0,
      0,
      0.82
    );

  backdrop-filter:
    blur(3px);
}


/* ---------- Stop Page Scrolling ---------- */

body.modal-open {
  overflow: hidden;
}


/* ========================================
   SUBJECT FILE
   ======================================== */

.subject-file {
  position: relative;

  z-index: 2;

  width:
    min(
      950px,
      94vw
    );

  max-height:
    88vh;

  overflow-y: auto;

  padding:
    30px;

  border:
    1px solid rgba(
      255,
      255,
      255,
      0.18
    );

  background:
    #0d0d0d;

  box-shadow:
    0 28px 90px
    rgba(
      0,
      0,
      0,
      0.65
    );

  transform:
    translateY(18px)
    rotate(-0.5deg);

  transition:
    transform 0.3s ease;
}


.character-modal.is-open
.subject-file {
  transform:
    translateY(0)
    rotate(-0.5deg);
}


/* ---------- Restricted File ---------- */

.restricted-file {
  border-color:
    rgba(
      230,
      0,
      60,
      0.28
    );
}


/* ---------- Close X ---------- */

.modal-x {
  position: absolute;

  top: 14px;
  right: 17px;

  z-index: 5;

  padding: 0;

  border: 0;

  background:
    transparent;

  color:
    var(--text-muted);

  font-family:
    Georgia,
    serif;

  font-size:
    1.7rem;

  cursor: pointer;

  transition:
    color 0.2s;
}


.modal-x:hover {
  color:
    var(--accent-red-bright);
}


/* ---------- File Heading ---------- */

.file-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding:
    0 42px 16px 0;

  margin-bottom:
    26px;

  border-bottom:
    1px solid rgba(
      255,
      255,
      255,
      0.1
    );
}


.file-heading p {
  margin: 0;

  color:
    var(--accent-red);

  font-size:
    0.66rem;

  letter-spacing:
    0.2em;
}


.file-heading span {
  color:
    var(--text-dark);

  font-size:
    0.59rem;

  letter-spacing:
    0.1em;
}


/* ========================================
   FILE LAYOUT
   ======================================== */

.file-layout {
  display: grid;

  grid-template-columns:
    minmax(
      220px,
      310px
    )
    1fr;

  gap: 42px;
}


/* ---------- Modal Portrait ---------- */

.file-portrait {
  align-self: start;
}


/* ========================================
   FILE INFORMATION
   ======================================== */

.file-information h2 {
  margin:
    4px 0 28px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      2.8rem,
      6vw,
      4.8rem
    );

  font-weight:
    normal;

  line-height:
    0.9;

  letter-spacing:
    -0.045em;
}


/* ---------- Data Grid ---------- */

.file-data {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap:
    1px;

  margin-bottom:
    30px;

  border:
    1px solid rgba(
      255,
      255,
      255,
      0.08
    );

  background:
    rgba(
      255,
      255,
      255,
      0.08
    );
}


.file-data div {
  min-height:
    58px;

  padding:
    11px 13px;

  background:
    #0d0d0d;
}


.file-data span {
  display: block;

  margin-bottom:
    7px;

  color:
    #555;

  font-size:
    0.53rem;

  letter-spacing:
    0.12em;
}


.file-data strong {
  color:
    #d8d4ce;

  font-size:
    0.68rem;

  font-weight:
    normal;

  line-height:
    1.5;
}


/* ---------- Tagline ---------- */

.character-tagline {
  position: relative;

  margin:
    34px 0;

  padding:
    20px 22px;

  border-left:
    2px solid
    var(--accent-red);

  color:
    #d8d4ce;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    1.15rem;

  font-style:
    italic;

  line-height:
    1.55;

  background:
    rgba(
      255,
      255,
      255,
      0.018
    );
}


/* ---------- Short Profile ---------- */

.short-profile {
  margin-top:
    30px;
}


.profile-label {
  margin:
    0 0 12px;

  color:
    var(--accent-red);

  font-size:
    0.58rem;

  letter-spacing:
    0.18em;
}


.short-profile > p:last-child {
  margin: 0;

  max-width:
    620px;

  color:
    var(--text-muted);

  font-size:
    0.72rem;

  line-height:
    1.9;

  letter-spacing:
    0.025em;
}


/* ========================================
   FILE ACTIONS
   ======================================== */

.file-actions {
  display: flex;

  align-items: center;
  justify-content:
    space-between;

  gap: 20px;

  margin-top:
    44px;

  padding-top:
    17px;

  border-top:
    1px solid rgba(
      255,
      255,
      255,
      0.08
    );
}


.complete-record,
.close-file {
  font-family:
    "Courier New",
    monospace;

  font-size:
    0.61rem;

  letter-spacing:
    0.12em;

  text-transform:
    uppercase;
}


/* ---------- Complete Record ---------- */

.complete-record {
  color:
    #555;

  text-decoration: none;
}


.complete-record::before {
  content: "[ ";
}


.complete-record::after {
  content: " ]";
}


/* ---------- Restricted ---------- */

.restricted-record {
  color:
    var(--accent-red);
}


/* ---------- Close ---------- */

.close-file {
  padding: 0;

  border: 0;

  background:
    transparent;

  color:
    #bbb;

  cursor: pointer;
}


.close-file::before {
  content: "[ ";
  color:
    var(--accent-red);
}


.close-file::after {
  content: " ]";
  color:
    var(--accent-red);
}


.close-file:hover {
  color: white;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 760px) {
  
  .world-card-wide {
  grid-column:
    auto;

  min-height:
    290px;
}

  .character-index {
    width: 86vw;

    padding-top:
      65px;
  }


  .character-cabinet {
    margin-bottom:
      80px;
  }


  .cabinet-header {
    align-items:
      flex-start;

    gap:
      20px;
  }


  .cabinet-meta {
    font-size:
      0.55rem;
  }


  .character-grid {
    grid-template-columns:
      repeat(
        auto-fill,
        minmax(
          180px,
          1fr
        )
      );

    gap:
      22px;
  }


  .character-card {
    max-width:
      none;
  }


  .character-modal {
    padding:
      18px;
  }


  .subject-file {
    padding:
      22px;

    max-height:
      92vh;
  }


  .file-layout {
    grid-template-columns:
      1fr;

    gap:
      28px;
  }


  .file-portrait {
    width:
      min(
        280px,
        100%
      );

    margin:
      0 auto;
  }


  .file-data {
    grid-template-columns:
      1fr 1fr;
  }

}


@media (max-width: 480px) {

  .character-grid {
    grid-template-columns:
      1fr;
  }


  .file-data {
    grid-template-columns:
      1fr;
  }


  .file-actions {
    flex-direction:
      column;

    align-items:
      flex-start;
  }

}

/* ========================================
   WORLD DETAIL
   ======================================== */

.world-file {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 100px;
}


/* HERO */

.world-file-hero {
  padding: 70px 0 60px;
  border-bottom: 1px solid #555;
}

.world-file-hero h1 {
  margin: 8px 0 18px;
  font-family: Georgia, serif;
  font-size: clamp(48px, 8vw, 100px);
  font-weight: normal;
  line-height: 0.95;
}

.world-tagline {
  max-width: 720px;
  margin: 28px 0 42px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
}

.world-file-meta {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
}

.world-file-meta div {
  padding: 16px 18px;
  border-right: 1px solid #555;
}

.world-file-meta div:last-child {
  border-right: none;
}

.world-file-meta span,
.ftf-classification span,
.story-card-meta span,
.story-file-meta span {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 1.5px;
  opacity: 0.55;
}

.world-file-meta strong {
  font-size: 12px;
  letter-spacing: 1px;
}


/* SECTIONS */

.world-section {
  padding: 75px 0;
  border-bottom: 1px solid #444;
}

.world-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 40px;
}

.world-section-heading > span {
  font-family: Georgia, serif;
  font-size: 42px;
  font-style: italic;
  line-height: 1;
  opacity: 0.35;
}

.world-section-heading p {
  margin: 0 0 4px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.world-section-heading h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: normal;
}


/* OVERVIEW */

.overview-copy {
  max-width: 850px;
  margin-left: 60px;
}

.overview-copy p {
  margin: 0 0 22px;
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.9;
}


/* FTF DOSSIER */

.ftf-dossier {
  margin-left: 60px;
  border: 1px solid #555;
}

.ftf-classification {
  display: grid;
  grid-template-columns:
    1fr 1.5fr 1fr;
  border-bottom: 1px solid #555;
}

.ftf-classification div {
  padding: 18px;
  border-right: 1px solid #555;
}

.ftf-classification div:last-child {
  border-right: none;
}

.ftf-classification strong {
  font-size: 12px;
  letter-spacing: 1px;
}

.ftf-record {
  padding: 10px 24px;
}

.ftf-record-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid #333;
}

.ftf-record-item:last-child {
  border-bottom: none;
}

.ftf-record-item > span {
  font-size: 11px;
  letter-spacing: 1.5px;
  opacity: 0.55;
}

.ftf-record-item p {
  margin: 0;
  font-family: Georgia, serif;
  line-height: 1.7;
}

.ftf-archive-note {
  margin: 0;
  padding: 24px;
  border-top: 1px solid #555;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 17px;
}


/* STORY RECORDS */

.story-record-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-record-card {
  min-height: 390px;
  padding: 22px;
  border: 1px solid #555;
  display: flex;
  flex-direction: column;
}

.story-record-code {
  padding-bottom: 12px;
  border-bottom: 1px solid #444;
  font-size: 10px;
  letter-spacing: 1.5px;
  opacity: 0.55;
}

.story-part {
  margin: 28px 0 6px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #ff3b3b;
}

.story-record-card h3 {
  margin: 0 0 28px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: normal;
}

.story-card-meta {
  margin-bottom: 24px;
}

.story-card-meta strong {
  font-size: 11px;
}

.story-record-card blockquote {
  margin: 0 0 28px;
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1.6;
  opacity: 0.8;
}

.open-story {
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid #777;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  letter-spacing: 1.5px;
  cursor: pointer;
}

.open-story:hover {
  border-color: #ff3b3b;
  color: #ff3b3b;
}


/* STORY MODAL */

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.story-modal.is-open {
  display: flex;
}

.story-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.story-file {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px;
  border: 1px solid #777;
  background: #111;
}

.story-modal-x {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 28px;
  cursor: pointer;
}

.story-file-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #555;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.story-file-heading p {
  margin: 0;
}

.story-file-part {
  margin: 32px 0 6px;
  color: #ff3b3b;
  font-size: 11px;
  letter-spacing: 2px;
}

.story-file h2 {
  margin: 0 0 28px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: normal;
}

.story-file-meta {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}

.story-file-meta div {
  padding: 14px;
  border-right: 1px solid #444;
}

.story-file-meta div:last-child {
  border-right: none;
}

.story-file-meta strong {
  font-size: 11px;
}

.story-file-tagline {
  margin: 32px 0;
  padding-left: 22px;
  border-left: 2px solid #ff3b3b;
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.7;
}

.story-synopsis > span,
.related-subjects > span,
.classified-related-data > span {
  display: block;
  margin-bottom: 12px;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: 0.5;
}

.story-synopsis p {
  font-family: Georgia, serif;
  line-height: 1.8;
}

.related-subjects {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #444;
}

.related-subjects p {
  letter-spacing: 1px;
  line-height: 1.7;
}

.classified-related-data {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid #6f2929;
}

.classified-related-data strong {
  color: #ff3b3b;
}

.classified-related-data p {
  letter-spacing: 3px;
  opacity: 0.5;
}

.classified-locked {
  padding: 10px 14px;
  border: 1px solid #555;
  background: transparent;
  color: #777;
  font: inherit;
  font-size: 10px;
  letter-spacing: 1.5px;
}

.close-story {
  display: block;
  margin: 34px 0 0 auto;
  padding: 11px 16px;
  border: 1px solid #777;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}


/* CHARACTER INDEX */

.subject-progress {
  margin: -18px 0 28px 60px;
  font-size: 10px;
  letter-spacing: 1.5px;
  opacity: 0.55;
}

.world-character-list {
  margin-left: 60px;
  border-top: 1px solid #555;
}

.world-character-record {
  display: grid;
  grid-template-columns:
    90px 1.4fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid #444;
}

.world-character-code {
  font-size: 10px;
  opacity: 0.45;
}

.world-character-main p,
.appearance-record p {
  margin: 0 0 6px;
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.45;
}

.world-character-main h3 {
  margin: 0 0 5px;
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: normal;
}

.world-character-main > span {
  font-size: 10px;
  opacity: 0.6;
}

.appearance-tags {
  display: flex;
  gap: 7px;
}

.appearance-tag {
  width: 34px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  font-size: 10px;
}

.appearance-tag.active {
  border-color: #ff3b3b;
  color: #ff3b3b;
}

.appearance-tag.inactive {
  border-color: #444;
  color: #555;
  opacity: 0.45;
}

.open-subject-link {
  color: inherit;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 1px;
}

.open-subject-link:hover {
  color: #ff3b3b;
}


/* ARCHIVE NOTES */

.archive-note-placeholder {
  margin-left: 60px;
  padding: 34px;
  border: 1px dashed #444;
}

.archive-note-placeholder span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.archive-note-placeholder small {
  opacity: 0.4;
  line-height: 1.6;
}

.return-world-index {
  display: inline-block;
  margin-top: 50px;
  color: inherit;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.return-world-index:hover {
  color: #ff3b3b;
}


/* RESPONSIVE */

@media (max-width: 800px) {

  .world-file {
    width: min(100% - 28px, 1180px);
  }

  .world-file-meta,
  .story-file-meta {
    grid-template-columns: 1fr 1fr;
  }

  .world-file-meta div:nth-child(2),
  .story-file-meta div:nth-child(2) {
    border-right: none;
  }

  .story-record-grid {
    grid-template-columns: 1fr;
  }

  .overview-copy,
  .ftf-dossier,
  .world-character-list,
  .archive-note-placeholder {
    margin-left: 0;
  }

  .subject-progress {
    margin-left: 0;
  }

  .ftf-classification {
    grid-template-columns: 1fr;
  }

  .ftf-classification div {
    border-right: none;
    border-bottom: 1px solid #555;
  }

  .ftf-classification div:last-child {
    border-bottom: none;
  }

  .ftf-record-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .world-character-record {
    grid-template-columns: 70px 1fr;
  }

  .appearance-record,
  .open-subject-link {
    grid-column: 2;
  }

}

/* ========================================
   CLEARANCE TERMINAL
   ======================================== */

.clearance-entry {
  margin-top: 22px;
  padding: 11px 14px;

  border:
    1px solid var(--accent-red);

  background:
    transparent;

  color:
    var(--text-main);

  font-family:
    "Courier New",
    monospace;

  font-size:
    0.65rem;

  letter-spacing:
    0.16em;

  cursor:
    pointer;
}


.clearance-entry::before {
  content: "[ ";
  color:
    var(--accent-red);
}


.clearance-entry::after {
  content: " ]";
  color:
    var(--accent-red);
}


.clearance-entry:hover {
  color:
    white;
}


.clearance-modal {
  position: fixed;

  inset: 0;

  z-index: 2000;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 30px;

  visibility: hidden;

  opacity: 0;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}


.clearance-modal.is-open {
  visibility: visible;
  opacity: 1;
}


.clearance-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.9);

  backdrop-filter:
    blur(4px);
}


.clearance-terminal {
  position: relative;

  z-index: 1;

  width:
    min(720px, 94vw);

  min-height: 390px;

  padding:
    34px;

  border:
    1px solid
    rgba(230, 0, 60, 0.45);

  background:
    #090909;

  box-shadow:
    0 30px 100px
    rgba(0, 0, 0, 0.75);
}


.clearance-close {
  position: absolute;

  top: 14px;
  right: 17px;

  border: 0;

  background:
    transparent;

  color:
    var(--text-muted);

  font-size:
    1.6rem;

  cursor: pointer;
}


.clearance-close:hover {
  color:
    var(--accent-red-bright);
}


.clearance-code {
  margin:
    0 0 18px;

  color:
    var(--accent-red);

  font-size:
    0.65rem;

  letter-spacing:
    0.2em;
}


.clearance-login h2 {
  margin:
    0 0 34px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      2rem,
      5vw,
      3.5rem
    );

  font-weight:
    normal;
}


.clearance-message {
  margin:
    0 0 10px;

  color:
    var(--text-muted);

  font-size:
    0.62rem;

  letter-spacing:
    0.15em;
}


#clearance-input {
  width:
    100%;

  padding:
    13px 14px;

  border:
    1px solid
    rgba(255,255,255,0.15);

  outline:
    none;

  background:
    rgba(255,255,255,0.02);

  color:
    var(--text-main);

  font-family:
    "Courier New",
    monospace;

  letter-spacing:
    0.15em;
}


#clearance-input:focus {
  border-color:
    var(--accent-red);
}


#verify-clearance {
  margin-top:
    18px;

  padding:
    10px 14px;

  border:
    1px solid
    var(--accent-red);

  background:
    transparent;

  color:
    var(--text-main);

  font-family:
    "Courier New",
    monospace;

  letter-spacing:
    0.14em;

  cursor:
    pointer;
}


#verify-clearance:hover {
  color:
    white;
}


.clearance-error {
  min-height:
    20px;

  margin-top:
    18px;

  color:
    var(--accent-red-bright);

  font-size:
    0.6rem;

  line-height:
    1.6;

  letter-spacing:
    0.08em;
}


.terminal-output {
  min-height:
    220px;

  padding:
    14px 0;

  color:
    #aaa;

  font-size:
    0.68rem;

  line-height:
    1.8;
}


.terminal-output p {
  margin:
    0 0 4px;
}


.progress-shell {
  width:
    100%;

  height:
    8px;

  border:
    1px solid
    rgba(255,255,255,0.15);

  overflow:
    hidden;
}


.progress-bar {
  width:
    0%;

  height:
    100%;

  background:
    var(--accent-red);

  transition:
    width 0.35s ease;
}


.progress-text {
  margin:
    10px 0 0;

  text-align:
    right;

  color:
    var(--text-dark);

  font-size:
    0.6rem;

  letter-spacing:
    0.12em;
}

/* ========================================
   DREAM CLASSIFIED ARCHIVE
   ======================================== */

.dream-archive-page {
  background:
    #070707;
}


.dream-archive {
  width:
    min(1250px, calc(100% - 54px));

  margin:
    0 auto;

  padding:
    60px 0 100px;
}


.dream-archive-hero {
  padding:
    40px 0 50px;

  border-bottom:
    1px solid #444;
}


.dream-archive-hero h1 {
  margin:
    8px 0 16px;

  font-family:
    Georgia, serif;

  font-size:
    clamp(48px, 8vw, 96px);

  font-weight:
    normal;

  line-height:
    0.95;
}


.dream-warning {
  margin:
    0 0 36px;

  color:
    var(--accent-red);

  font-size:
    10px;

  letter-spacing:
    0.2em;
}


.dream-archive-meta {
  display:
    grid;

  grid-template-columns:
    repeat(4, 1fr);

  border-top:
    1px solid #444;

  border-bottom:
    1px solid #444;
}


.dream-archive-meta div {
  padding:
    15px 18px;

  border-right:
    1px solid #444;
}


.dream-archive-meta div:last-child {
  border-right:
    none;
}


.dream-archive-meta span,
.dream-record-status span {
  display:
    block;

  margin-bottom:
    5px;

  font-size:
    9px;

  letter-spacing:
    0.18em;

  opacity:
    0.45;
}


.dream-archive-meta strong {
  font-size:
    11px;

  letter-spacing:
    0.1em;
}



.dream-record-section {
  padding:
    70px 0;
}


.dream-section-heading p {
  margin:
    0 0 6px;

  color:
    var(--accent-red);

  font-size:
    10px;

  letter-spacing:
    0.2em;
}


.dream-section-heading h2 {
  margin:
    0;

  font-family:
    Georgia, serif;

  font-size:
    38px;

  font-weight:
    normal;
}


.dream-integrity-note {
  max-width:
    700px;

  margin:
    26px 0 45px;

  color:
    #777;

  font-size:
    11px;

  line-height:
    1.8;

  letter-spacing:
    0.06em;
}


.dream-record-list {
  border-top:
    1px solid #444;
}


.dream-record {
  display:
    grid;

  grid-template-columns:
    70px 1.5fr 220px auto;

  gap:
    28px;

  align-items:
    center;

  min-height:
    145px;

  padding:
    24px 0;

  border-bottom:
    1px solid #3b3b3b;
}


.dream-record-number {
  font-family:
    Georgia, serif;

  font-size:
    26px;

  font-style:
    italic;

  opacity:
    0.35;
}


.dream-record-id {
  margin:
    0 0 7px;

  color:
    var(--accent-red);

  font-size:
    9px;

  letter-spacing:
    0.18em;
}


.dream-record-main h3 {
  margin:
    0 0 8px;

  font-family:
    Georgia, serif;

  font-size:
    25px;

  font-weight:
    normal;
}


.dream-record-original {
  margin:
    0;

  color:
    #777;

  font-size:
    11px;

  letter-spacing:
    0.04em;
}


.dream-record-status {
  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    12px 18px;
}


.dream-record-status strong {
  font-size:
    10px;

  letter-spacing:
    0.08em;
}


.dream-open-document {
  min-width:
    150px;

  padding:
    11px 14px;

  border:
    1px solid #555;

  background:
    transparent;

  color:
    #bbb;

  font-family:
    "Courier New",
    monospace;

  font-size:
    10px;

  letter-spacing:
    0.12em;
}


.dream-record.recovered
  .dream-open-document {

  border-color:
    var(--accent-red);

  color:
    #eee;
}


.dream-record.missing,
.dream-record.corrupted {
  opacity:
    0.42;
}


.dream-record.missing
  .dream-record-id,
.dream-record.corrupted
  .dream-record-id {

  color:
    #666;
}


.dream-return {
  display:
    inline-block;

  margin-top:
    30px;

  color:
    #999;

  text-decoration:
    none;

  font-size:
    10px;

  letter-spacing:
    0.14em;
}


.dream-return:hover {
  color:
    var(--accent-red);
}


/* ACCESS DENIED */

.dream-access-denied {
  min-height:
    100vh;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  justify-content:
    center;

  text-align:
    center;
}


.dream-access-denied p {
  color:
    var(--accent-red);

  font-size:
    10px;

  letter-spacing:
    0.2em;
}


.dream-access-denied h1 {
  margin:
    10px 0 20px;

  font-family:
    Georgia, serif;

  font-size:
    clamp(42px, 8vw, 80px);

  font-weight:
    normal;
}


.dream-access-denied span {
  display:
    block;

  margin:
    4px 0;

  color:
    #777;

  font-size:
    10px;

  letter-spacing:
    0.1em;
}


@media (max-width: 850px) {

  .dream-archive {
    width:
      min(100% - 28px, 1250px);
  }


  .dream-archive-meta {
    grid-template-columns:
      1fr 1fr;
  }


  .dream-record {
    grid-template-columns:
      50px 1fr;
  }


  .dream-record-status,
  .dream-open-document {
    grid-column:
      2;
  }

}

/* ========================================
   DREAM DOCUMENT VIEWER
   ======================================== */

.dream-document-modal {
  position:
    fixed;

  inset:
    0;

  z-index:
    3000;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  padding:
    30px;

  visibility:
    hidden;

  opacity:
    0;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}


.dream-document-modal.is-open {
  visibility:
    visible;

  opacity:
    1;
}


.dream-document-backdrop {
  position:
    absolute;

  inset:
    0;

  background:
    rgba(0, 0, 0, 0.92);

  backdrop-filter:
    blur(4px);
}


.dream-document-window {
  position:
    relative;

  z-index:
    1;

  width:
    min(1050px, 95vw);

  max-height:
    90vh;

  overflow-y:
    auto;

  border:
    1px solid #444;

  background:
    #0a0a0a;
}


.dream-document-header {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    space-between;

  gap:
    30px;

  padding:
    32px 36px;

  border-bottom:
    1px solid #333;
}


.dream-document-header p {
  margin:
    0 0 8px;

  color:
    var(--accent-red);

  font-size:
    9px;

  letter-spacing:
    0.2em;
}


.dream-document-header h2 {
  margin:
    0;

  font-family:
    Georgia, serif;

  font-size:
    clamp(30px, 5vw, 52px);

  font-weight:
    normal;
}


.dream-document-close {
  border:
    0;

  background:
    transparent;

  color:
    #777;

  font-size:
    28px;

  cursor:
    pointer;
}


.dream-document-close:hover {
  color:
    var(--accent-red);
}


.dream-document-meta {
  display:
    grid;

  grid-template-columns:
    repeat(4, 1fr);

  border-bottom:
    1px solid #333;
}


.dream-document-meta div {
  padding:
    16px 20px;

  border-right:
    1px solid #333;
}


.dream-document-meta div:last-child {
  border-right:
    0;
}


.dream-document-meta span {
  display:
    block;

  margin-bottom:
    6px;

  color:
    #666;

  font-size:
    8px;

  letter-spacing:
    0.16em;
}


.dream-document-meta strong {
  font-size:
    10px;

  letter-spacing:
    0.08em;
}


.dream-document-content {
  padding:
    45px 55px 65px;

  color:
    #d2d2d2;

  font-family:
    "Noto Serif TC",
    "Times New Roman",
    serif;

  font-size:
    16px;

  line-height:
    2;
}


.dream-document-content p {
  margin:
    0 0 24px;
}


.dream-document-content h3 {
  margin:
    35px 0 16px;

  color:
    #eee;

  font-size:
    19px;

  font-weight:
    normal;
}


.dream-document-content hr {
  margin:
    40px 0;

  border:
    0;

  border-top:
    1px solid #333;
}


.dream-document-footer {
  padding:
    18px 36px;

  border-top:
    1px solid #333;

  color:
    #555;

  font-size:
    8px;

  letter-spacing:
    0.18em;
}


@media (max-width: 700px) {

  .dream-document-modal {
    padding:
      12px;
  }


  .dream-document-meta {
    grid-template-columns:
      1fr 1fr;
  }


  .dream-document-content {
    padding:
      30px 24px 45px;
  }

}

.dream-corrupted-record {
  position: relative;
  overflow: hidden;
}


.dream-corruption-text {
  margin-top: 14px;

  font-family: monospace;
  font-size: 10px;
  line-height: 1.7;

  color: #555;
}


.dream-corruption-text span {
  display: block;
}


.dream-corruption-text .corrupt-line {
  color: #7a7a7a;
}


.dream-corrupted-record:hover .corrupt-line {
  animation: archive-corruption 0.18s steps(2) infinite;
}


.dream-corrupted-record:hover .status-error {
  animation: archive-error-blink 0.45s steps(1) infinite;
}


@keyframes archive-corruption {

  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(2px);
  }

  50% {
    transform: translateX(-1px);
  }

  75% {
    transform: translateX(3px);
  }

  100% {
    transform: translateX(0);
  }

}


@keyframes archive-error-blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0.25;
  }

}

.dream-recovery-error {
  margin-top: 12px;

  color: var(--accent-red);

  font-size: 8px;
  letter-spacing: 0.12em;

  opacity: 0;
}


.dream-corrupted-record:hover
.dream-recovery-error {
  opacity: 1;
}

.dream-record.corrupted.dream-corrupted-record {
  opacity: 0.78;
}

/* ========================================
   WORLD 002 // SOY CHARACTER DATA
======================================== */

.soy-character-data {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  margin-top: 0;
  margin-bottom: 34px;

  border-top:
    1px solid rgba(255, 255, 255, 0.12);

  border-bottom:
    1px solid rgba(255, 255, 255, 0.12);
}


.soy-character-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  margin-top: 0;
  margin-bottom: 34px;

  border:
    1px solid rgba(255, 255, 255, 0.12);
}

.soy-character-data > div {
  padding:
    17px 15px;

  border-right:
    1px solid rgba(255, 255, 255, 0.12);
}


.soy-character-data > div:last-child {
  border-right: none;
}


.soy-character-data span {
  display: block;

  margin-bottom: 7px;

  font-size: 8px;

  letter-spacing: 0.14em;

  color: rgba(255, 255, 255, 0.46);
}


.soy-character-data strong {
  display: block;

  font-size: 10px;

  font-weight: normal;

  letter-spacing: 0.08em;

  color: rgba(255, 255, 255, 0.9);
}


/* ARTIFICIAL */

.classification-modifier {
  margin-right: 6px;

  color: #b84a4a;

  font-style: normal;
}


/* Cello's former classification */

.soy-classification del {
  margin-right: 7px;

  color: rgba(184, 74, 74, 0.72);

  text-decoration-thickness: 1px;
}


/* SCENT */

.soy-scent > span {
  display: inline;

  margin: 0;

  color: inherit;

  font-size: inherit;

  letter-spacing: inherit;
}


.soy-scent small {
  display: block;

  margin:
    3px 0 9px;

  color: rgba(255, 255, 255, 0.38);

  font-size: 7px;

  font-weight: normal;

  letter-spacing: 0.12em;
}


.soy-scent small:last-child {
  margin-bottom: 0;
}


@media (max-width: 650px) {

  .soy-character-data {
    grid-template-columns: 1fr;
  }


  .soy-character-data > div {
    border-right: none;

    border-bottom:
      1px solid rgba(255, 255, 255, 0.12);
  }


  .soy-character-data > div:last-child {
    border-bottom: none;
  }

}

.scent-notes {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.scent-notes > div {
  min-width: 0;
}

.scent-notes span {
  display: block;
  margin-bottom: 3px;
}

.scent-notes small {
  display: block;
  margin: 0;
}

.scent-notes span {
  color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   WORLD003 ACCESS SYSTEM
   ======================================== */


/* ---------- World Card Actions ---------- */

.world003-actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 22px;
}


.world003-action {
  padding: 0;

  border: 0;

  background: transparent;

  font-family:
    "Courier New",
    monospace;

  cursor: pointer;
}


/* ---------- Current Access State ---------- */

.world003-access-indicator {
  margin:
    28px 0 0;

  padding-top:
    18px;

  border-top:
    1px solid
    rgba(255,255,255,0.08);

  color:
    var(--text-dark);

  font-size:
    0.6rem;

  letter-spacing:
    0.12em;
}


/* ---------- Result Records ---------- */

.world003-result-records {
  margin:
    8px 0 34px;

  border-top:
    1px solid
    rgba(255,255,255,0.10);
}


.world003-result-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 24px;

  padding:
    18px 0;

  border-bottom:
    1px solid
    rgba(255,255,255,0.10);
}


.world003-result-row span {
  color:
    var(--text-muted);

  font-size:
    0.64rem;

  letter-spacing:
    0.14em;
}


.world003-result-row strong {
  color:
    var(--accent-red);

  font-size:
    0.62rem;

  font-weight:
    normal;

  letter-spacing:
    0.12em;

  text-align: right;
}


/* ---------- Result Actions ---------- */

.world003-modal-actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 24px;
}


.world003-modal-actions
.archive-link {
  margin-top: 0;
}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .world003-result-row {
    align-items: flex-start;

    flex-direction: column;

    gap: 8px;
  }


  .world003-result-row strong {
    text-align: left;
  }

}

/* ========================================
   WORLD003 PROCESSING TERMINAL
   ======================================== */


/* ---------- Hidden State ---------- */

.world003-processing[hidden],
.world003-mounting[hidden] {
  display: none !important;
}


/* ---------- Processing View ---------- */

.world003-processing h2 {
  margin:
    0 0 26px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(
      1.7rem,
      4vw,
      2.6rem
    );

  font-weight:
    normal;

  letter-spacing:
    -0.025em;
}


/* ---------- Terminal Window ---------- */

.world003-terminal-window {
  position: relative;

  overflow: hidden;

  border:
    1px solid
    rgba(255,255,255,0.13);

  background:
    rgba(0,0,0,0.38);

  box-shadow:
    inset 0 0 45px
    rgba(0,0,0,0.42);
}


/* faint scan lines */

.world003-terminal-window::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  opacity: 0.15;

  background:
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.035) 0,
      rgba(255,255,255,0.035) 1px,
      transparent 1px,
      transparent 4px
    );
}


/* ---------- Terminal Header ---------- */

.world003-terminal-header {
  position: relative;

  z-index: 1;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
    13px 16px;

  border-bottom:
    1px solid
    rgba(255,255,255,0.10);

  color:
    var(--text-dark);

  font-size:
    0.57rem;

  letter-spacing:
    0.14em;
}


.world003-terminal-status {
  color:
    var(--accent-red);
}


/* ---------- Terminal Log ---------- */

.world003-terminal-log {
  position: relative;

  z-index: 1;

  min-height: 250px;

  padding:
    24px 20px;

  color:
    #aaa6a0;

  font-family:
    "Courier New",
    monospace;

  font-size:
    0.66rem;

  line-height:
    2;

  letter-spacing:
    0.035em;

  white-space:
    pre-wrap;
}


/* each JS-generated line */

.world003-log-line {
  min-height:
    1.4em;

  opacity: 0;

  transform:
    translateY(3px);

  animation:
    world003-log-in
    0.16s ease
    forwards;
}


.world003-log-line.is-command {
  color:
    #d8d4ce;
}


.world003-log-line.is-success {
  color:
    var(--accent-red);
}


.world003-log-line.is-muted {
  color:
    #686868;
}


.world003-log-line.is-error {
  color:
    var(--accent-red-bright);
}


@keyframes world003-log-in {

  from {
    opacity: 0;

    transform:
      translateY(3px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}


/* ---------- Mounting Area ---------- */

.world003-mounting {
  position: relative;

  z-index: 1;

  padding:
    0 20px 24px;
}


.world003-mounting-label {
  margin:
    0 0 13px;

  color:
    #b9b5ae;

  font-size:
    0.62rem;

  letter-spacing:
    0.08em;
}


/* ---------- Progress Bar ---------- */

.world003-progress-track {
  width: 100%;

  height: 5px;

  overflow: hidden;

  border:
    1px solid
    rgba(255,255,255,0.10);

  background:
    rgba(255,255,255,0.035);
}


.world003-progress-bar {
  width: 0%;
  height: 100%;

  background:
    var(--accent-red);

  transition:
    width 0.18s linear;
}


.world003-progress-percent {
  margin-top:
    9px;

  color:
    var(--text-dark);

  font-size:
    0.56rem;

  letter-spacing:
    0.12em;

  text-align:
    right;
}


/* ---------- Small Terminal Cursor ---------- */

.world003-terminal-log::after {
  content: "_";

  display: inline-block;

  margin-left:
    3px;

  color:
    var(--accent-red);

  animation:
    world003-terminal-cursor
    0.8s steps(1, end)
    infinite;
}


@keyframes world003-terminal-cursor {

  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }

}


/* ---------- Mobile ---------- */

@media (max-width: 600px) {

  .world003-terminal-header {
    align-items:
      flex-start;

    flex-direction:
      column;

    gap: 7px;
  }


  .world003-terminal-log {
    min-height:
      220px;

    padding:
      20px 16px;

    font-size:
      0.58rem;

    overflow-x:
      auto;
  }


  .world003-mounting {
    padding:
      0 16px 20px;
  }

}

/* ========================================
   WORLD003
   LOCKED SUBJECT CABINET
   ======================================== */


.world003-cabinet-lock {
  margin-left: 18px;

  padding:
    34px 28px;

  border:
    1px solid
    rgba(230, 0, 60, 0.18);

  background:
    rgba(230, 0, 60, 0.018);

  color:
    var(--text-muted);
}


.world003-lock-code {
  margin:
    0 0 24px;

  color:
    var(--accent-red);

  font-size:
    0.65rem;

  letter-spacing:
    0.17em;
}


.world003-cabinet-lock > p:not(.world003-lock-code) {
  margin:
    0 0 12px;

  font-size:
    0.67rem;

  line-height:
    1.8;

  letter-spacing:
    0.09em;
}


.world003-cabinet-lock > span {
  display:
    block;

  margin-bottom:
    26px;

  color:
    var(--text-dark);

  font-size:
    0.58rem;

  letter-spacing:
    0.13em;
}


.world003-cabinet-lock
.archive-link {
  margin-top:
    0;
}


@media (max-width: 760px) {
  
  .world-card-wide {
  grid-column:
    auto;

  min-height:
    290px;
}

  .world003-cabinet-lock {
    margin-left:
      0;
  }

}