body {
    margin: 0;
    background: white;
    font-family: monospace;
    overflow-x: hidden;
  }
  
  /* Blank page until camera enabled */
  #startScreen {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
  }
  
  #enableCamera {
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    font-family: monospace;
    border-radius: 0;
    border: 1px solid black;
  }
  
  /* Hidden scanning engine video */
  #video {
    display: none;
  }
  
  /* The glitch-capture canvas (also hidden) */
  #canvas {
    display: none;
  }
  
  /* The movement log, minimal and raw */
  #log {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 300px;
    max-height: 80vh;
    overflow-y: scroll;
    white-space: pre-line;
    font-size: 12px;
    background: none;
    padding: 0;
    border: none;
    z-index: 999999;
  }
  .scan {
    position: absolute;
    width: 380px;
    height: auto;
    opacity: 1;
  
    /* BASIC VERSION A — fast, mechanical, linear wipe */
    clip-path: inset(0 0 100% 0);    /* start fully hidden */
    animation: scanWipe 0.8s steps(18) forwards;
  }
  
  @keyframes scanWipe {
    to {
      clip-path: inset(0 0 0 0);
    }
  }
  #logStream {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
  
    z-index: 999999;     /* ABOVE EVERYTHING */
    pointer-events: none; /* text won’t block clicks */
    font-family: monospace;
    font-size: 14px;
    line-height: 1.2;
  
    column-count: 4;      
    column-gap: 10px;
    padding: 20px;
  }
  
  .logline {
    break-inside: avoid;
    margin-bottom: 6px;
    color: rgba(30,30,30,0.9);
    z-index: 200000;
    position: absolute;
  }
  #verseBox {
    position: fixed;
    bottom: 40px;
    right: 40px;
    max-width: 300px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }
  
  #verseBox.show {
    opacity: 1;
    pointer-events: auto;
  }
  
  .hidden { display: none; }
  /* Red biblical judgment overlay */
  .verse-float {
    position: fixed;
    color: red;
    font-family: "Garamond", serif;
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    z-index: 2147483647; /* always on top */
    pointer-events: none; /* does not block clicks */ 
    white-space: pre-wrap;
  }
  
  
  /* little deceptive X button on each scan */
  .scan-wrapper {
    position: absolute;
  }
  
  .scan-close {
    position: absolute;
    top: 6px;
    right: -30px;
    width: 22px;
    height: 22px;
    font-size: 14px;
    font-weight: bold;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
  }
  
  .scan-close:hover {
    background: rgba(255,0,0,0.9);
    color: white;
  }
  
  .info-button {
    position: fixed;
    bottom: 20px;
    right: 25px;
    background: lightgrey;
    color: black;
    border: 1px solid black;
    border-radius: 0%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    font-family: monospace;
    z-index: 10;
    transition: background 0.2s ease;
  }
  
  .info-button:hover {
    background: #f0f0f0;
  }
  
  /* Popup background (overlay) */
  .info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    z-index: 2000;
  }
  
  /* When active */
  .info-popup.show {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }
  
  /* Content box */
  .info-content {
    position: relative;
    background: white;
    color: black;
    width: 55%;
    overflow-y: auto;
    padding: 2em;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: thin; 
    font-size: 0.8em;
    line-height: 1.5em;
  }
  
  
  .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    color: black;
    cursor: pointer;
  }
  
  .close-btn:hover {
    opacity: 0.6;
  }
  

  
  
 
  

  
  