/* page styles extracted from xemcity/index.html — overrides/extensions of /css/global.css */
:root {
      --bg0: #07010f;
      --bg1: #12061f;
      --neon: #39f3ff;
      --hot: #ff2bd6;
      --acid: #b8ff3c;
      --gold: #ffc857;
      --fog: rgba(255, 255, 255, 0.72);
      --panel: rgba(18, 8, 36, 0.72);
      --line: rgba(57, 243, 255, 0.35);
      --font-display: "Orbitron", sans-serif;
      --font-body: "Share Tech Mono", ui-monospace, monospace;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; }

    body {
      min-height: 100vh;
      color: var(--fog);
      font-family: var(--font-body);
      background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 43, 214, 0.18), transparent 55%),
        radial-gradient(900px 500px at 90% 0%, rgba(57, 243, 255, 0.16), transparent 50%),
        linear-gradient(180deg, var(--bg0), var(--bg1) 40%, #05020c 100%);
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      background-image:
        linear-gradient(rgba(57, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 43, 214, 0.04) 1px, transparent 1px);
      background-size: 48px 48px;
      mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 50;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 3px
      );
      opacity: 0.35;
      animation: scan 9s linear infinite;
    }

    @keyframes scan {
      from { transform: translateY(0); }
      to { transform: translateY(12px); }
    }

    @keyframes flicker {
      0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
      20%, 24%, 55% { opacity: 0.55; }
    }

    @keyframes floaty {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }

    @keyframes pulse-glow {
      0%, 100% { text-shadow: 0 0 12px var(--neon), 0 0 40px rgba(57, 243, 255, 0.35); }
      50% { text-shadow: 0 0 22px var(--hot), 0 0 60px rgba(255, 43, 214, 0.45); }
    }

    .wrap {
      position: relative;
      z-index: 1;
      width: min(920px, calc(100% - 2rem));
      margin: 0 auto;
      padding: 2.5rem 0 4rem;
    }

    .skyline {
      position: absolute;
      left: 50%;
      top: 7.5rem;
      transform: translateX(-50%);
      width: min(920px, calc(100% - 2rem));
      height: 110px;
      opacity: 0.35;
      pointer-events: none;
      background:
        linear-gradient(90deg, transparent, rgba(57, 243, 255, 0.2), transparent),
        repeating-linear-gradient(
          90deg,
          transparent 0 18px,
          rgba(255, 43, 214, 0.35) 18px 22px,
          transparent 22px 40px,
          rgba(57, 243, 255, 0.4) 40px 46px,
          transparent 46px 70px
        );
      clip-path: polygon(
        0% 100%, 0% 70%, 6% 70%, 6% 40%, 12% 40%, 12% 55%, 18% 55%, 18% 20%,
        24% 20%, 24% 60%, 32% 60%, 32% 35%, 40% 35%, 40% 10%, 48% 10%, 48% 45%,
        56% 45%, 56% 25%, 64% 25%, 64% 65%, 72% 65%, 72% 30%, 80% 30%, 80% 50%,
        88% 50%, 88% 15%, 94% 15%, 94% 55%, 100% 55%, 100% 100%
      );
      animation: floaty 6s ease-in-out infinite;
    }

    header.hero {
      text-align: center;
      padding: 1.5rem 0 2.75rem;
      position: relative;
    }

    .badge {
      display: inline-block;
      margin-bottom: 1rem;
      padding: 0.35rem 0.75rem;
      border: 1px solid var(--line);
      color: var(--neon);
      font-size: 0.75rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      background: rgba(57, 243, 255, 0.06);
    }

    h1 {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: clamp(2.6rem, 10vw, 5.2rem);
      letter-spacing: 0.08em;
      color: #fff;
      animation: pulse-glow 3.5s ease-in-out infinite, flicker 8s infinite;
      line-height: 1.05;
    }

    .subtitle {
      margin-top: 1rem;
      font-size: clamp(0.95rem, 2.6vw, 1.15rem);
      color: var(--gold);
      max-width: 34ch;
      margin-left: auto;
      margin-right: auto;
      line-height: 1.45;
    }

    nav.toc {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;
      margin: 1.75rem 0 0;
    }

    nav.toc a {
      color: var(--neon);
      text-decoration: none;
      border: 1px solid var(--line);
      padding: 0.35rem 0.65rem;
      font-size: 0.78rem;
      background: rgba(0, 0, 0, 0.25);
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    nav.toc a:hover,
    nav.toc a:focus-visible {
      background: rgba(255, 43, 214, 0.18);
      border-color: var(--hot);
      color: #fff;
      outline: none;
    }

    section {
      margin: 1.25rem 0;
      padding: 1.25rem 1.2rem 1.35rem;
      background: var(--panel);
      border: 1px solid var(--line);
      box-shadow:
        0 0 0 1px rgba(255, 43, 214, 0.08) inset,
        0 18px 50px rgba(0, 0, 0, 0.35);
      backdrop-filter: blur(6px);
      position: relative;
      overflow: hidden;
    }

    section::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--neon), var(--hot), transparent);
    }

    h2 {
      font-family: var(--font-display);
      font-size: clamp(1.1rem, 3.5vw, 1.45rem);
      color: var(--neon);
      letter-spacing: 0.06em;
      margin-bottom: 0.75rem;
      text-transform: uppercase;
    }

    h2 span.tag {
      display: inline-block;
      margin-left: 0.4rem;
      font-family: var(--font-body);
      font-size: 0.7rem;
      color: var(--hot);
      letter-spacing: 0.12em;
      vertical-align: middle;
    }

    p, li {
      font-size: 0.95rem;
      line-height: 1.65;
      color: rgba(255, 255, 255, 0.82);
    }

    p + p { margin-top: 0.7rem; }

    .creators {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0.85rem;
    }

    @media (min-width: 640px) {
      .creators { grid-template-columns: 1fr 1fr; }
    }

    .creator {
      border: 1px dashed rgba(255, 43, 214, 0.35);
      padding: 0.9rem;
      background: rgba(255, 43, 214, 0.05);
    }

    .creator strong {
      display: block;
      font-family: var(--font-display);
      color: #fff;
      font-size: 1.05rem;
      margin-bottom: 0.25rem;
    }

    .creator em {
      color: var(--acid);
      font-style: normal;
      font-size: 0.82rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    ul.lore-bits {
      margin-top: 0.75rem;
      padding-left: 1.1rem;
    }

    ul.lore-bits li { margin: 0.35rem 0; }

    .statbar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 0.9rem;
    }

    .stat {
      border: 1px solid rgba(184, 255, 60, 0.35);
      color: var(--acid);
      padding: 0.25rem 0.55rem;
      font-size: 0.75rem;
    }

    .egg {
      color: var(--hot);
      cursor: pointer;
      border-bottom: 1px dotted rgba(255, 43, 214, 0.5);
    }

    .egg:hover { color: #fff; }

    #konami-toast {
      position: fixed;
      left: 50%;
      bottom: 1.25rem;
      transform: translateX(-50%) translateY(120%);
      z-index: 100;
      background: rgba(7, 1, 15, 0.92);
      border: 1px solid var(--acid);
      color: var(--acid);
      padding: 0.75rem 1rem;
      font-size: 0.85rem;
      transition: transform 0.35s ease;
      max-width: min(90vw, 420px);
      text-align: center;
    }

    #konami-toast.show { transform: translateX(-50%) translateY(0); }

    footer {
      margin-top: 2.5rem;
      text-align: center;
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.45);
      line-height: 1.6;
    }

    footer a {
      color: var(--neon);
      text-decoration: none;
    }

    footer a:hover { color: var(--hot); }

    .secret-door {
      position: absolute;
      width: 12px;
      height: 12px;
      right: 10px;
      bottom: 10px;
      opacity: 0.08;
      background: var(--gold);
      border: none;
      cursor: crosshair;
    }

    .secret-door:focus-visible {
      opacity: 1;
      outline: 1px solid var(--gold);
    }

    .hidden-note {
      display: none;
      margin-top: 0.75rem;
      padding: 0.65rem;
      border-left: 3px solid var(--gold);
      color: var(--gold);
      font-size: 0.85rem;
    }

    .hidden-note.open { display: block; }

    .marquee {
      margin-top: 1.5rem;
      overflow: hidden;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: rgba(0, 0, 0, 0.35);
      white-space: nowrap;
    }

    .marquee span {
      display: inline-block;
      padding: 0.45rem 0;
      animation: scroll-x 22s linear infinite;
      color: var(--neon);
      font-size: 0.8rem;
      letter-spacing: 0.04em;
    }

    @keyframes scroll-x {
      from { transform: translateX(0); }
      to { transform: translateX(-50%); }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
      body::after { display: none; }
    }
