#canvas-bg { position: fixed; inset: 0; z-index: 0; }
  #canvas-logo { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
  #canvas-fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

  #rss-badge {
    position: fixed;
    left: 50%; bottom: 10px;
    transform: translateX(-50%);
    z-index: 11;
    pointer-events: none;
    font: 8px/1 'Share Tech Mono', monospace;
    letter-spacing: .12em;
    color: rgba(180,255,180,.72);
    text-shadow: 0 0 8px rgba(0,255,65,.25);
    opacity: .72;
    mix-blend-mode: screen;
  }

  #cursor {
    position: fixed;
    width: 24px; height: 24px;
    border: 1px solid var(--acid);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: screen;
    transition: width .1s, height .1s, border-color .1s;
  }
  #cursor::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--acid);
    border-radius: 50%;
    opacity: .6;
  }
  #cursor.active {
    width: 48px; height: 48px;
    border-color: var(--magenta);
  }

  #hud {
    position: fixed; inset: 0; z-index: 10;
    display: flex; flex-direction: column;
    justify-content: space-between;
    padding: 18px 24px;
    pointer-events: none;
  }

  #hud-top {
    display: flex; justify-content: space-between; align-items: flex-start;
  }

  .tis-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(9px, 1.4vw, 18px);
    letter-spacing: .25em;
    color: var(--acid);
    text-shadow: 0 0 8px var(--acid), 0 0 30px rgba(0,255,65,.3);
    line-height: 1.6;
  }
  .tis-title span {
    display: block;
    font-size: .55em;
    letter-spacing: .4em;
    color: var(--cyan);
    opacity: .8;
  }

  .status-block {
    font-size: clamp(7px, .85vw, 11px);
    color: var(--acid);
    opacity: .7;
    text-align: right;
    line-height: 1.9;
  }
  .status-block .label { color: var(--cyan); }
  .blink { animation: blink 1.1s step-end infinite; }#hud-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
  }
  .center-label {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: clamp(6px, .9vw, 12px);
    letter-spacing: .5em;
    color: var(--gold);
    opacity: .5;
    text-transform: uppercase;
    margin-top: 240px;
    transition: opacity 1.2s ease;
  }
  .center-label.hidden { opacity: 0 !important; }

  /* ── Loading / Entry Screen ── */
  #loading-screen {
    position: fixed; inset: 0;
    z-index: 200;
    background: #000200;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 1.2s ease;
  }
  #loading-screen.fade-out { opacity: 0; pointer-events: none; }

  #ls-canvas { display: block; }

  #ls-title {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(11px, 2vw, 24px);
    letter-spacing: .55em;
    color: var(--acid);
    text-shadow: 0 0 18px rgba(0,255,65,.4);
    margin-top: 22px;
    opacity: 0;
    transition: opacity 1.4s ease;
    text-align: center;
  }
  #ls-sub {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(7px, .9vw, 10px);
    letter-spacing: .38em;
    color: var(--cyan);
    opacity: 0;
    margin-top: 6px;
    transition: opacity 1.4s ease;
    text-align: center;
  }
  #ls-class {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(6px, .7vw, 9px);
    letter-spacing: .22em;
    color: rgba(0,255,65,.35);
    opacity: 0;
    margin-top: 4px;
    transition: opacity 1.4s ease;
  }

  #ls-buttons {
    display: flex; flex-direction: column; gap: 12px;
    margin-top: 36px;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
  }
  #ls-buttons.visible { opacity: 1; pointer-events: all; }

  .ls-btn {
    background: transparent;
    border: 1px solid rgba(0,255,65,0.35);
    color: var(--acid);
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(8px, .9vw, 11px);
    letter-spacing: .14em;
    padding: 14px 28px;
    cursor: none;
    text-align: left;
    transition: border-color .3s, box-shadow .3s, background .3s;
    position: relative;
    min-width: clamp(260px, 38vw, 520px);
  }
  .ls-btn:hover {
    border-color: var(--acid);
    background: rgba(0,255,65,0.04);
    box-shadow: 0 0 22px rgba(0,255,65,0.15);
  }
  .ls-btn.offline {
    border-color: rgba(0,229,255,0.25);
    color: var(--cyan);
  }
  .ls-btn.offline:hover {
    border-color: var(--cyan);
    background: rgba(0,229,255,0.04);
    box-shadow: 0 0 22px rgba(0,229,255,0.12);
  }
  .ls-btn-num {
    font-family: 'Orbitron', monospace;
    font-size: .8em;
    opacity: .5;
    margin-right: 10px;
  }
  .ls-btn-sub {
    display: block;
    font-size: .75em;
    opacity: .45;
    margin-top: 4px;
    letter-spacing: .1em;
    padding-left: 32px;
  }

  #ls-scan-line {
    position: absolute; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,65,.35), transparent);
    top: 0;
    animation: lsscan 4s linear infinite;
    pointer-events: none;
  }
  @keyframes lsscan {
    0%   { top: 0%; opacity: .8; }
    100% { top: 100%; opacity: .2; }
  }

  #hud-bottom {
    display: flex; justify-content: space-between; align-items: flex-end;
  }

  .data-stream {
    font-size: clamp(6px, .75vw, 9px);
    color: var(--acid);
    opacity: .45;
    line-height: 1.8;
    max-width: 260px;
    overflow: hidden;
    height: 90px;
  }

  .coords {
    font-size: clamp(7px, .85vw, 10px);
    color: var(--cyan);
    opacity: .6;
    text-align: right;
    line-height: 2;
  }

  /* scanlines *//* corner brackets */#msg {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 272px;
    max-width: min(72vw, 900px);
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(8px, 1vw, 12px);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,215,0,0.82);
    opacity: 0;
    z-index: 15;
    text-align: center;
    text-shadow: 0 0 10px rgba(255,215,0,0.28), 0 0 22px rgba(255,215,0,0.16);
    pointer-events: none;
    transition: opacity 2.8s ease, filter 2.8s ease;
    filter: blur(3px);
    white-space: normal;
    line-height: 1.6;
  }

  #audio-btn {
    position: fixed;
    bottom: 100px; right: 28px;
    z-index: 50;
    background: transparent;
    border: 1px solid rgba(0,255,65,0.4);
    color: var(--acid);
    font-family: 'Orbitron', monospace;
    font-size: clamp(7px, .8vw, 10px);
    letter-spacing: .2em;
    padding: 6px 14px;
    cursor: none;
    pointer-events: all;
    transition: border-color .3s, color .3s, box-shadow .3s;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
  }
  #audio-btn:hover {
    border-color: var(--acid);
    box-shadow: 0 0 12px rgba(0,255,65,0.3);
  }
  #audio-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 18px rgba(255,215,0,0.25);
  }
  #audio-btn.active:hover {
    box-shadow: 0 0 24px rgba(255,215,0,0.4);
  }
  #audio-icon { font-size: 1.1em; }

  #geo-btn {
    position: fixed;
    bottom: 54px; right: 28px;
    z-index: 50;
    background: transparent;
    border: 1px solid rgba(0,229,255,0.38);
    color: var(--cyan);
    font-family: 'Orbitron', monospace;
    font-size: clamp(7px, .8vw, 10px);
    letter-spacing: .2em;
    padding: 6px 14px;
    cursor: none;
    pointer-events: all;
    transition: border-color .3s, color .3s, box-shadow .3s;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 8px;
  }
  #geo-btn:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(0,229,255,0.28);
  }

  /* ── Init terminal ── */
  #init-terminal {
    position: fixed;
    bottom: 28px; left: 28px;
    width: clamp(260px, 28vw, 420px);
    background: rgba(0,5,0,0.82);
    border: 1px solid rgba(0,255,65,0.35);
    box-shadow: 0 0 24px rgba(0,255,65,0.08);
    padding: 14px 18px;
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(8px, .85vw, 11px);
    color: var(--acid);
    letter-spacing: .08em;
    z-index: 60;
    pointer-events: none;
    line-height: 1.8;
  }
  #init-terminal .it-line { opacity: 0; transition: opacity .15s; }
  #init-terminal .it-line.show { opacity: 1; }
  #init-terminal .it-line.dim  { opacity: 0.38; }
  #init-terminal .it-line.gold { color: var(--gold); }
  #init-terminal .it-line.cyan { color: var(--cyan); }
  #init-terminal .cursor-blink::after {
    content: '▮';
    animation: blink .7s step-end infinite;
  }
  #init-terminal.done { opacity: 0; transition: opacity 2s ease; pointer-events: none; }

  #init-btn {
    position: fixed;
    bottom: 100px; right: 28px;
    z-index: 60;
    background: transparent;
    border: 1px solid rgba(0,255,65,0.5);
    color: var(--acid);
    font-family: 'Orbitron', monospace;
    font-size: clamp(7px, .85vw, 11px);
    letter-spacing: .25em;
    padding: 8px 20px;
    cursor: none;
    pointer-events: all;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(0,255,65,0.15);
    transition: box-shadow .3s, border-color .3s;
  }
  #init-btn:hover {
    border-color: var(--acid);
    box-shadow: 0 0 22px rgba(0,255,65,0.35);
  }

  /* Observation line — appears after 4.096s iris dwell */
  #observation-line {
    position: fixed;
    left: 50%; bottom: 100px;
    transform: translateX(-50%);
    font-family: 'Orbitron', monospace;
    font-size: clamp(7px, .9vw, 11px);
    letter-spacing: .4em;
    color: var(--gold);
    text-shadow: 0 0 14px var(--gold);
    opacity: 0;
    pointer-events: none;
    z-index: 30;
    white-space: nowrap;
    transition: opacity 1.8s ease;
  }
  #observation-line.visible { opacity: 0.85; }

  /* Mirror flip — whole HUD scaleX(-1) for 400ms */
  #hud.mirrored { transform: scaleX(-1); }
  #hud { transition: none; }

  /* ── Mobile tap-to-begin overlay ── */
  #tap-overlay {
    position: fixed; inset: 0;
    z-index: 180;
    background: rgba(0,3,0,0.92);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 18px;
    transition: opacity .8s ease;
  }
  #tap-overlay.hidden { opacity: 0; pointer-events: none; }
  #tap-icon {
    font-family: 'Orbitron', monospace;
    font-size: clamp(28px, 6vw, 54px);
    color: var(--acid);
    text-shadow: 0 0 30px rgba(0,255,65,.5);
    animation: tapPulse 1.8s ease-in-out infinite;
  }
  @keyframes tapPulse {
    0%,100% { opacity:.5; transform:scale(.95); }
    50%     { opacity:1;  transform:scale(1.05); }
  }
  #tap-label {
    font-family: 'Orbitron', monospace;
    font-size: clamp(10px, 1.8vw, 16px);
    letter-spacing: .4em;
    color: var(--acid);
    text-align: center;
  }
  #tap-sub {
    font-size: clamp(8px, 1.1vw, 11px);
    letter-spacing: .18em;
    color: rgba(0,255,65,.45);
    text-align: center;
  }
  #tgt-panel {
    position: fixed;
    width: 280px;
    background: rgba(0,4,0,0.88);
    border: 1px solid rgba(0,255,65,0.4);
    box-shadow: 0 0 28px rgba(0,255,65,0.08), inset 0 0 20px rgba(0,0,0,0.6);
    z-index: 55;
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: var(--acid);
    letter-spacing: .07em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    overflow: hidden;
  }
  #tgt-panel.visible { opacity: 1; }

  #tgt-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0,255,65,0.2);
    font-family: 'Orbitron', monospace;
    font-size: 8px;
    letter-spacing: .25em;
    color: var(--cyan);
  }
  #tgt-header .tgt-blink { animation: blink .6s step-end infinite; color: var(--red); }

  #tgt-canvas-wrap {
    position: relative;
    width: 100%; height: 210px;
    overflow: hidden;
  }
  #tgt-canvas { display: block; width: 100%; height: 100%; }

  /* Satellite tile layer — fades in over wireframe */
  #tgt-sat {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
  }
  #tgt-sat.visible { opacity: 0.72; }

  /* Targeting reticle overlay */
  #tgt-reticle {
    position: absolute; inset: 0;
    pointer-events: none;
  }

  #tgt-footer {
    padding: 7px 10px;
    border-top: 1px solid rgba(0,255,65,0.15);
    line-height: 1.9;
  }
  #tgt-status {
    font-family: 'Orbitron', monospace;
    font-size: 9px;
    letter-spacing: .2em;
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold);
    min-height: 14px;
  }
  .tgt-field { color: rgba(0,255,65,0.55); }
  .tgt-val   { color: var(--acid); }

