:root {
  color-scheme: dark;
  --bg: #010503;
  --panel: rgba(1, 15, 7, 0.92);
  --green: #a9ffc0;
  --muted: #68786c;
  --red: #e48b8b;
  --line: rgba(90, 255, 132, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  background:
    linear-gradient(
      rgba(0, 12, 5, 0.8),
      rgba(0, 3, 2, 0.98)
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 3px,
      rgba(80, 255, 130, 0.025) 4px
    );
}

.system {
  width: min(960px, calc(100% - 28px));
  margin: 24px auto;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    0 0 55px rgba(0, 255, 100, 0.07),
    inset 0 0 35px rgba(0, 255, 100, 0.025);
}

.boot,
.classified {
  min-height: 92vh;
  padding: clamp(30px, 8vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.label {
  color: var(--muted);
  letter-spacing: 0.22em;
}

h1 {
  margin: 12px 0 38px;
  font-size: clamp(3rem, 12vw, 7rem);
  letter-spacing: 0.14em;
}

h2 {
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.messages {
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.warning {
  color: var(--red);
}

button,
.game-link {
  width: fit-content;
  margin-top: 30px;
  padding: 14px 20px;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font: inherit;
  text-decoration: none;
  letter-spacing: 0.08em;
  cursor: pointer;
}

button:hover,
button:focus-visible,
.game-link:hover,
.game-link:focus-visible {
  background: var(--green);
  color: var(--bg);
}

.classified {
  display: none;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.8;
}

.classified.visible {
  display: flex;
}

/* HAKER-ZIL-LANGUAGE-SWITCH */

.boot {
  position: relative;
}

.language-switch {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.language-button {
  margin: 0;
  padding: 7px 9px;
  border: 0;
  color: var(--muted);
  background: transparent;
  opacity: 0.65;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--green);
  background: transparent;
  opacity: 1;
}

.language-button.active {
  color: var(--green);
  border-bottom: 1px solid var(--green);
  opacity: 1;
}

@media (max-width: 560px) {
  .language-switch {
    top: 16px;
    right: 16px;
  }

  .boot {
    padding-top: 90px;
  }
}

/* HZ-CLASSIFIED-STYLE-BEGIN */

body {
  overflow-x: hidden;
}

body::before {
  content:
    "01011010 01001001 01001100  ZERO_IDENTITY_LAYER  "
    "ROUTE://UNKNOWN  TRACE:NULL  NET-ID:[REDACTED]  "
    "SIGNATURE_MISMATCH  ACCESS_LEVEL_00";
  position: fixed;
  inset: 0;
  z-index: -2;
  padding: 5vh 4vw;
  color: rgba(119, 255, 155, 0.035);
  font-size: clamp(0.68rem, 1.6vw, 0.92rem);
  line-height: 3.8;
  letter-spacing: 0.22em;
  word-spacing: 1.4em;
  pointer-events: none;
  transform: rotate(-4deg) scale(1.08);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
}

.classified {
  background:
    linear-gradient(
      180deg,
      rgba(1, 10, 5, 0.97),
      rgba(1, 5, 3, 0.99)
    );
}

.story-block {
  position: relative;
  min-height: 82vh;
  padding: clamp(44px, 9vw, 108px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.story-block::before {
  content: "CLASSIFIED";
  position: absolute;
  top: 28px;
  right: -22px;
  padding: 7px 34px;
  border: 1px solid rgba(226, 116, 116, 0.28);
  color: rgba(226, 116, 116, 0.24);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  transform: rotate(7deg);
}

.story-block::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 22px;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      var(--line),
      transparent
    );
}

.story-block h2 {
  max-width: 760px;
  margin: 14px 0 38px;
  line-height: 1.18;
  letter-spacing: 0.07em;
}

.story-block > p:not(.label):not(.file-index) {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(191, 219, 197, 0.78);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.95;
}

.file-index {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}

blockquote {
  position: relative;
  max-width: 700px;
  margin: 42px 0 0;
  padding: 24px 28px;
  border-left: 3px solid var(--red);
  background:
    linear-gradient(
      90deg,
      rgba(140, 34, 34, 0.14),
      transparent
    );
  color: var(--red);
  font-size: clamp(1rem, 3vw, 1.28rem);
  line-height: 1.7;
  letter-spacing: 0.1em;
}

blockquote::before {
  content: "INTERCEPTED MESSAGE";
  display: block;
  margin-bottom: 13px;
  color: rgba(229, 139, 139, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
}

.dossier-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 54px;
}

.dossier-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(157, 255, 181, 0.2);
  background:
    linear-gradient(
      145deg,
      rgba(9, 27, 15, 0.88),
      rgba(2, 9, 5, 0.96)
    );
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.32),
    inset 0 0 24px rgba(89, 255, 129, 0.02);
}

.dossier-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 14px;
  width: 9px;
  height: 28px;
  border: 1px solid rgba(190, 190, 190, 0.3);
  border-radius: 8px;
  transform: rotate(8deg);
}

.dossier-card h3 {
  margin: 9px 0 20px;
  color: var(--green);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  letter-spacing: 0.08em;
}

.dossier-card > p:not(.dossier-story) {
  margin: 8px 0;
  color: rgba(184, 207, 188, 0.66);
  font-size: 0.76rem;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.dossier-story {
  margin-top: 24px;
  padding-top: 18px;
  border-top:
    1px dashed rgba(157, 255, 181, 0.16);
  color: rgba(194, 219, 199, 0.76);
  line-height: 1.75;
}

.passport-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(174, 219, 184, 0.24);
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(105, 143, 113, 0.17),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      rgba(127, 164, 136, 0.08),
      rgba(0, 0, 0, 0.45)
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 7px,
      rgba(150, 210, 164, 0.025) 8px
    );
}

.passport-placeholder::before {
  content: "";
  position: absolute;
  top: 16%;
  left: 50%;
  width: 32%;
  aspect-ratio: 1;
  border: 1px solid rgba(167, 210, 176, 0.19);
  border-radius: 50%;
  transform: translateX(-50%);
}

.passport-placeholder::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: 24%;
  width: 50%;
  height: 28%;
  border: 1px solid rgba(167, 210, 176, 0.16);
  border-radius: 50% 50% 8% 8%;
}

.passport-placeholder span,
.passport-placeholder small {
  position: relative;
  z-index: 2;
}

.passport-placeholder span {
  color: rgba(175, 255, 194, 0.76);
  font-size: 1.08rem;
  letter-spacing: 0.16em;
}

.passport-placeholder small {
  margin-top: 6px;
  color: rgba(183, 203, 187, 0.42);
  font-size: 0.56rem;
  line-height: 1.45;
  letter-spacing: 0.12em;
}

.corrupted {
  border-color: rgba(230, 123, 123, 0.22);
}

.corrupted .passport-placeholder {
  filter: contrast(1.12);
}

.corrupted .passport-placeholder::after {
  box-shadow:
    8px 0 rgba(214, 74, 74, 0.07),
    -7px 0 rgba(65, 255, 123, 0.06);
}

.corrupted h3 {
  text-shadow:
    2px 0 rgba(231, 87, 87, 0.28),
    -2px 0 rgba(67, 255, 119, 0.22);
}

.operator-block {
  text-align: center;
  align-items: center;
}

.operator-block > p,
.operator-block h2 {
  margin-left: auto;
  margin-right: auto;
}

.operator-block .warning {
  margin-top: 36px;
  color: var(--red);
  letter-spacing: 0.08em;
}

.public-footer {
  padding: 54px 30px 70px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.9;
  letter-spacing: 0.14em;
}

.reveal-block {
  opacity: 0;
  transform: translateY(44px);
  filter: blur(5px);
  transition:
    opacity 900ms ease,
    transform 900ms ease,
    filter 900ms ease;
}

.reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-block.is-visible h2 {
  animation: hz-title-reveal 850ms ease both;
}

@keyframes hz-title-reveal {
  0% {
    opacity: 0;
    letter-spacing: 0.2em;
    transform: translateX(-18px);
  }

  100% {
    opacity: 1;
    letter-spacing: 0.07em;
    transform: translateX(0);
  }
}

@media (max-width: 850px) {
  .dossier-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .dossier-card {
    padding: 18px;
  }

  .passport-placeholder {
    max-height: 430px;
  }
}

@media (max-width: 560px) {
  .system {
    width: calc(100% - 18px);
    margin: 9px auto;
  }

  .story-block {
    min-height: auto;
    padding:
      70px 24px
      82px;
  }

  .story-block::before {
    top: 20px;
    right: -35px;
    font-size: 0.62rem;
  }

  blockquote {
    padding: 20px;
  }

  .dossier-grid {
    gap: 18px;
  }

  .public-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-block,
  .reveal-block.is-visible,
  .reveal-block.is-visible h2 {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }
}

/* HZ-CLASSIFIED-STYLE-END */

/* HZ-GAME-GUIDE-STYLE-BEGIN */

.protocol-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.protocol-step {
  position: relative;
  padding: 24px;
  border:
    1px solid rgba(157, 255, 181, 0.18);
  background:
    linear-gradient(
      135deg,
      rgba(7, 25, 13, 0.76),
      rgba(2, 8, 4, 0.94)
    );
}

.protocol-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 34px;
  height: 3px;
  background: var(--green);
  opacity: 0.55;
}

.protocol-step strong {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.88rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.protocol-step p {
  margin: 0;
  color: rgba(191, 219, 197, 0.7);
  line-height: 1.75;
}

.command-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.command-card {
  padding: 18px 20px;
  border-left:
    2px solid rgba(169, 255, 192, 0.42);
  background:
    rgba(6, 23, 12, 0.55);
}

.command-card code {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
  font-family:
    "Courier New",
    Courier,
    monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.command-card p {
  margin: 0;
  color: rgba(189, 214, 194, 0.66);
  font-size: 0.87rem;
  line-height: 1.65;
}

.commands-warning {
  max-width: 760px;
  margin-top: 40px !important;
  padding: 18px 20px;
  border:
    1px dashed rgba(229, 139, 139, 0.34);
  color: var(--red) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em;
}

@media (max-width: 680px) {
  .protocol-grid,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .protocol-step {
    padding: 20px;
  }
}

/* HZ-GAME-GUIDE-STYLE-END */

/* HZ-ECONOMY-SOLANA-STYLE-BEGIN */

.subfile-title {
  margin: 50px 0 22px;
  color: var(--green);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.resource-grid,
.fragment-cycle,
.hybrid-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resource-grid p,
.fragment-cycle article,
.hybrid-grid article {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(157, 255, 181, 0.17);
  background: rgba(5, 22, 11, 0.58);
  color: rgba(193, 218, 198, 0.72);
  line-height: 1.7;
}

.fragment-cycle strong,
.hybrid-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  letter-spacing: 0.12em;
}

.economy-warning,
.wallet-warning {
  margin-top: 30px !important;
  padding: 18px 20px;
  border: 1px dashed rgba(229, 139, 139, 0.36);
  color: var(--red) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em;
}

.solana-node {
  width: min(360px, 100%);
  margin: 42px auto;
  padding: 34px 20px;
  border: 1px solid rgba(169, 255, 192, 0.28);
  text-align: center;
  background:
    radial-gradient(
      circle,
      rgba(84, 255, 160, 0.09),
      transparent 66%
    );
  box-shadow:
    0 0 45px rgba(73, 255, 144, 0.06);
}

.solana-node span {
  display: block;
  font-size: clamp(1.8rem, 8vw, 3.5rem);
  letter-spacing: 0.2em;
}

.solana-node small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  letter-spacing: 0.18em;
}

.network-status,
.wallet-flow {
  display: grid;
  gap: 12px;
}

.network-status p,
.wallet-flow p {
  margin: 0;
  padding: 16px 18px;
  border-left: 2px solid rgba(169, 255, 192, 0.38);
  background: rgba(5, 21, 11, 0.52);
  color: rgba(193, 218, 198, 0.72);
  line-height: 1.65;
}

.security-boundary {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(229, 139, 139, 0.27);
  background: rgba(57, 11, 16, 0.13);
}

.security-boundary strong {
  display: block;
  margin-bottom: 13px;
  color: var(--red);
  letter-spacing: 0.15em;
}

.security-boundary p {
  margin: 0;
  color: rgba(216, 190, 193, 0.74);
  line-height: 1.75;
}

@media (max-width: 680px) {
  .resource-grid,
  .fragment-cycle,
  .hybrid-grid {
    grid-template-columns: 1fr;
  }
}

/* HZ-ECONOMY-SOLANA-STYLE-END */

/* HZ-ORIGIN-FOOTER-STYLE-BEGIN */

.architect-file {
  display: grid;
  grid-template-columns:
    minmax(220px, 0.72fr)
    minmax(0, 1.28fr);
  gap: 30px;
  margin-top: 48px;
  padding: 24px;
  border: 1px solid rgba(157, 255, 181, 0.2);
  background:
    linear-gradient(
      135deg,
      rgba(7, 24, 13, 0.8),
      rgba(2, 8, 4, 0.96)
    );
}

.architect-portrait {
  position: relative;
  min-height: 430px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(184, 217, 190, 0.25);
  background:
    radial-gradient(
      ellipse at 50% 27%,
      rgba(181, 203, 185, 0.19) 0,
      rgba(181, 203, 185, 0.08) 17%,
      transparent 34%
    ),
    radial-gradient(
      ellipse at 50% 68%,
      rgba(159, 181, 163, 0.13) 0,
      transparent 42%
    ),
    repeating-linear-gradient(
      165deg,
      transparent 0,
      transparent 5px,
      rgba(214, 226, 216, 0.035) 6px
    ),
    #07100a;
  filter: grayscale(1);
}

.architect-portrait::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 50%;
  width: 34%;
  aspect-ratio: 0.78;
  border: 1px solid rgba(206, 220, 209, 0.16);
  border-radius: 48% 48% 42% 42%;
  transform: translateX(-50%);
  box-shadow:
    -8px 4px rgba(220, 225, 221, 0.018),
    7px -3px rgba(220, 225, 221, 0.025);
}

.architect-portrait::after {
  content: "";
  position: absolute;
  left: 19%;
  right: 19%;
  bottom: 18%;
  height: 39%;
  border: 1px solid rgba(206, 220, 209, 0.12);
  border-radius: 48% 48% 8% 8%;
}

.portrait-noise {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 9px,
      rgba(255, 255, 255, 0.025) 10px
    );
  mix-blend-mode: screen;
}

.portrait-code,
.architect-portrait small {
  position: relative;
  z-index: 2;
}

.portrait-code {
  color: rgba(178, 255, 197, 0.75);
  letter-spacing: 0.18em;
}

.architect-portrait small {
  margin-top: 8px;
  color: rgba(189, 210, 194, 0.43);
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.architect-data h3 {
  margin: 12px 0 28px;
  color: var(--green);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  letter-spacing: 0.08em;
}

.architect-data > p:not(.file-index) {
  margin: 9px 0;
  color: rgba(189, 212, 194, 0.62);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.architect-story {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed rgba(157, 255, 181, 0.18);
}

.architect-story p {
  color: rgba(197, 219, 201, 0.76);
  line-height: 1.8;
}

.architect-warning,
.channels-warning {
  margin-top: 32px !important;
  padding: 18px 20px;
  border: 1px dashed rgba(229, 139, 139, 0.36);
  color: var(--red) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em;
}

.channel-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.channel-card {
  padding: 28px;
  border: 1px solid rgba(157, 255, 181, 0.18);
  background:
    linear-gradient(
      145deg,
      rgba(7, 24, 13, 0.72),
      rgba(2, 8, 4, 0.95)
    );
}

.sketch-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 219, 197, 0.35);
  border-radius: 50%;
  color: rgba(193, 225, 201, 0.74);
  font-size: 2rem;
  transform: rotate(-3deg);
  box-shadow:
    3px 2px rgba(193, 225, 201, 0.05),
    -2px -3px rgba(193, 225, 201, 0.035);
}

.channel-card h3 {
  margin: 24px 0 10px;
  color: var(--green);
  letter-spacing: 0.14em;
}

.channel-card p {
  color: rgba(194, 217, 199, 0.7);
  line-height: 1.7;
}

.channel-card small {
  color: rgba(226, 139, 139, 0.55);
  letter-spacing: 0.08em;
}

.final-access {
  min-height: 78vh;
  padding: clamp(60px, 10vw, 130px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--line);
  text-align: center;
}

.final-access h2 {
  max-width: 800px;
  color: var(--green);
  font-size: clamp(2rem, 7vw, 4.3rem);
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.final-access > p:not(.file-index) {
  max-width: 680px;
  color: rgba(194, 217, 199, 0.7);
  line-height: 1.8;
}

.final-game-link {
  margin-top: 42px;
}

.classified-footer {
  padding: 48px 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: rgba(140, 162, 145, 0.58);
  font-size: 0.7rem;
  line-height: 1.9;
  letter-spacing: 0.1em;
}

.classified-footer small {
  color: rgba(140, 162, 145, 0.4);
}

@media (max-width: 720px) {
  .architect-file {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .architect-portrait {
    min-height: 390px;
  }

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

/* HZ-ORIGIN-FOOTER-STYLE-END */
