html,body { margin:0; min-height:100%; background:#f2f1ec; color:#14140f; font-family:Arial,sans-serif; }
[hidden] { display:none !important; }
button { font:inherit; }

    /* AI Art Is (Not) Art — orbitable 3D bust + spatial debate audio */
    /* Vertical margins stay at 0: the module flow is a flex column that already
       supplies the gap between modules, so a margin here would double it. The
       horizontal calc is what pulls the block full-bleed out of the column. */
    .aaina-scene-block {
      position: relative;
      width: 90vw;
      margin: 0 calc(50% - 45vw);
    }
    /* The stage owns the aspect ratio so the transcript below it sits in normal
       flow instead of covering the sculpture. */
    /* Mute sits above the stage at the right, not over the sculpture. Muting is
       a gain change, so the debate keeps its pacing while silent. */
    .aaina-sound {
      margin: 0 0 14px auto;
    }
    /* The stage is something you turn, not something you read: OrbitControls
       doesn't preventDefault on pointerdown, so a drag starting here would begin
       a native text selection and run it straight down into the transcript,
       leaving the dispute line highlighted blue mid-orbit. The caption below
       stays selectable so a visitor can still quote a line. */
    .aaina-stage {
      position: relative;
      aspect-ratio: 4 / 3;
      border-radius: 6px;
      overflow: hidden;
      background: #f2f1ec;
      -webkit-user-select: none;
      user-select: none;
    }
    .aaina-canvas {
      display: block;
      width: 100%;
      height: 100%;
      /* pan-y keeps vertical page scroll working over the canvas (touch);
         horizontal drag still orbits. Wheel-zoom is disabled in JS. */
      touch-action: pan-y;
      cursor: grab;
    }
    .aaina-canvas:active { cursor: grabbing; }
    /* The line sits over the sculpture, bottom centre. Which side is speaking is
       carried by the panel's tint rather than a label: green for the one
       defending AI art, red for the one against. Click-through so it never gets
       in the way of turning the bust. */
    .aaina-caption {
      position: absolute;
      left: 50%;
      bottom: 22px;
      transform: translateX(-50%);
      z-index: 2;
      width: max-content;
      /* 80% of the stage, not of the window: the panel is positioned inside the
         stage, so this percentage resolves against the box the model renders in.
         border-box so the padding counts inside that 80% — without it the panel
         measured 83% of the stage. */
      box-sizing: border-box;
      max-width: 80%;
      /* Tight above and below: this is a subtitle bar, so the panel should sit
         close around the line rather than framing it. */
      padding: 8px 18px;
      border-radius: 8px;
      font-size: 16px;
      line-height: 1.55;
      color: #14140f;
      background: rgba(255, 255, 255, 0.55);
      backdrop-filter: blur(3px);
      -webkit-backdrop-filter: blur(3px);
      opacity: 0;
      transition: opacity 0.4s ease, background 0.4s ease;
      pointer-events: none;
    }
    .aaina-caption.is-visible { opacity: 1; }
    .aaina-caption.is-pro { background: rgba(86, 160, 92, 0.42); }
    .aaina-caption.is-anti { background: rgba(196, 78, 68, 0.42); }
    /* Loading / Play overlay. The overlay itself is click-through so dragging
       the canvas to look around still works while it's up; only the panel's
       interactive control captures clicks. */
    .aaina-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      opacity: 1;
      transition: opacity 0.5s ease;
    }
    .aaina-overlay.is-hidden { opacity: 0; visibility: hidden; }
    .aaina-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      text-align: center;
    }
    .aaina-spinner {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: 2px solid rgba(0, 0, 0, 0.18);
      border-top-color: rgba(0, 0, 0, 0.55);
      animation: aaina-spin 0.9s linear infinite;
    }
    @keyframes aaina-spin { to { transform: rotate(360deg); } }
    .aaina-status {
      margin: 0;
      font-size: 13px;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: rgba(0, 0, 0, 0.55);
    }
    .aaina-cta {
      pointer-events: auto;
      padding: 14px 30px;
      border-radius: 999px;
      border: 1px solid rgba(0, 0, 0, 0.85);
      background: rgba(0, 0, 0, 0.88);
      color: #fff;
      font-size: 15px;
      font-weight: 500;
      letter-spacing: 0.02em;
      cursor: pointer;
      transition: transform 0.2s ease, background 0.2s ease;
    }
    .aaina-cta:hover { background: #000; transform: translateY(-1px); }
    .aaina-hint {
      position: absolute;
      top: 16px;
      right: 18px;
      z-index: 2;
      font-size: 12px;
      letter-spacing: 0.02em;
      color: rgba(0, 0, 0, 0.5);
      pointer-events: none;
    }
    .aaina-caption-static {
      margin-top: 12px;
      font-size: 13px;
      color: var(--muted);
    }
    /* WebGL/Three.js unavailable: drop the canvas and hint, keep audio + captions. */
    .aaina-scene-block.aaina-no-3d .aaina-canvas,
    .aaina-scene-block.aaina-no-3d .aaina-hint {
      display: none;
    }
    .aaina-scene-block.aaina-no-3d .aaina-stage {
      aspect-ratio: auto;
      min-height: 96px;
    }
    /* No WebGL: there is no sculpture to sit over, so the line returns to normal
       flow and the stage grows with it instead of clipping it. */
    .aaina-scene-block.aaina-no-3d .aaina-caption {
      position: static;
      transform: none;
      width: auto;
      max-width: 100%;
    }

.aaina-scene-block { width:100%; margin:0; }
.aaina-stage { width:100%; height:100dvh; aspect-ratio:auto; border-radius:0; }
.aaina-sound { position:absolute; top:14px; left:16px; z-index:4; border:1px solid #aaa; border-radius:999px; background:#f2f1ec; padding:8px 14px; cursor:pointer; }
.aaina-caption { font-size:clamp(14px,1.5vw,20px); }
.aaina-scene-block.aaina-no-3d .aaina-stage { min-height:100dvh; }
