
  @font-face {
    font-family: 'C64';
    src: url('C64_Pro-STYLE.ttf') format('truetype');
  }

  :root {
    --green-dark: #0a2a0a;
    --green-mid: #1a4a1a;
    --green-light: #c8e6c8;
    --green-bright: #7fff7f;
    --scanline-opacity: 0.08;
  }

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

  html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--green-dark);
    font-family: 'C64', monospace;
    color: var(--green-light);
    overflow-x: hidden;
  }

  /* CRT scanlines overlay */
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(0,0,0,var(--scanline-opacity)) 3px,
      rgba(0,0,0,var(--scanline-opacity)) 4px
    );
    pointer-events: none;
    z-index: 9999;
  }

  /* CRT vignette */
  body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center,
      transparent 60%,
      rgba(0,0,0,0.5) 100%
    );
    pointer-events: none;
    z-index: 9998;
  }

  .page {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  /* ── LOGO ── */
  .logo-wrap {
    width: 320px;
    height: 320px;
    margin: 40px auto 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
  }

  .logo-img {
    width: 320px;
    height: 320px;
    object-fit: contain;
    animation: spinY 4s linear infinite;
    transform-origin: center center;
    filter: drop-shadow(0 0 18px rgba(100,200,100,0.35));
  }

  @keyframes spinY {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
  }

  /* Glow pulse around logo */
  .logo-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100,200,100,0.08) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes glowPulse {
    0%,100% { opacity: 0.5; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
  }

  /* ── RASTER RAINBOW BAR ── */
  .raster-bar {
    width: 100%;
    height: 6px;
    margin: 40px 0 20px;
    background: linear-gradient(to right,
      #004400, #007700, #00bb00, #7fff7f, #00bb00, #007700, #004400
    );
    animation: rasterScroll 2s linear infinite;
    background-size: 200% 100%;
  }

  @keyframes rasterScroll {
    0%   { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
  }

  /* ── SECTIONS ── */
  .section {
    width: 100%;
    max-width: 520px;
    margin: 24px 0;
    text-align: left;
  }

  .section-heading {
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    color: var(--green-bright);
    margin-bottom: 16px;
    text-shadow: 0 0 12px rgba(127,255,127,0.7);
    position: relative;
    display: inline-block;
    overflow: hidden;
  }

  /* Heading "load" animation — characters scramble then resolve */
  .section-heading.loaded {
    animation: none;
  }

  .section-gap {
    height: 60px;
  }

  /* ── LINKS ── */
  .link-list {
    list-style: none;
  }

  .link-list li {
    margin: 8px 0;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    opacity: 0;
    transform: translateX(-20px);
    transition: color 0.2s;
  }

  .link-list li.visible {
    animation: slideIn 0.4s ease forwards;
  }

  @keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
  }

  .link-list li a {
    color: var(--green-light);
    text-decoration: none;
    position: relative;
  }

  .link-list li a::before {
    content: '- ';
    color: var(--green-bright);
  }

  .link-list li a:hover {
    color: var(--green-bright);
    text-shadow: 0 0 10px rgba(127,255,127,0.9);
  }

  /* Character scramble effect on hover for links */
  .link-list li a:hover .link-text {
    animation: scramble 0.4s steps(1) forwards;
  }

  /* ── SCROLLING TICKER (C64 demoscene bottom scroller) ── */
  .ticker-wrap {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: rgba(0, 30, 0, 0.92);
    border-top: 2px solid var(--green-bright);
    padding: 8px 0;
    overflow: hidden;
    z-index: 1000;
  }

  .ticker-inner {
    display: inline-block;
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: var(--green-bright);
    text-shadow: 0 0 8px rgba(127,255,127,0.8);
    animation: tickerScroll 30s linear infinite;
    padding-left: 100%;
  }

  @keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }

  /* ── CURSOR BLINK ── */
  .cursor {
    display: inline-block;
    width: 10px; height: 1.1em;
    background: var(--green-bright);
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 0.85s step-end infinite;
  }

  @keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0; }
  }

  /* ── SCREEN FLICKER ── */
  @keyframes screenFlicker {
    0%,100% { opacity: 1; }
    93%      { opacity: 1; }
    94%      { opacity: 0.85; }
    95%      { opacity: 1; }
    97%      { opacity: 0.9; }
    98%      { opacity: 1; }
  }

  .page { animation: screenFlicker 8s infinite; }

  /* ── BOOT OVERLAY ── */
  #boot {
    position: fixed;
    inset: 0;
    background: var(--green-dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--green-bright);
  }

  #boot .boot-line {
    opacity: 0;
    animation: bootLine 0.05s forwards;
  }

  #boot-bar {
    width: 280px;
    height: 12px;
    border: 2px solid var(--green-bright);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
  }

  #boot-bar-fill {
    height: 100%;
    background: var(--green-bright);
    width: 0%;
    transition: width 0.05s linear;
    box-shadow: 0 0 10px rgba(127,255,127,0.8);
  }

  @keyframes bootLine {
    to { opacity: 1; }
  }
