 * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background: #000;
      color: #aefcff;
      font-family: "Inter", sans-serif;
      min-height: 100vh;
      overflow-x: hidden;
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    /* CANVAS */
    #bg {
      position: fixed;
      inset: 0;
      z-index: 0;
    }

    /* INTRO OVERLAY */
    #introOverlay {
      position: fixed;
      inset: 0;
      z-index: 10;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 24px;
      transition: opacity 1.4s ease;
    }

    #introOverlay.fade-out {
      opacity: 0;
      pointer-events: none;
    }

    /* HAND LABEL — letter-by-letter cinematic reveal */
    #handLabel {
      font-size: clamp(28px, 3.8vw, 58px);
      letter-spacing: 0.42em;
      text-align: center;
      white-space: normal;
      position: relative;
      overflow: visible;
    }

    /* Each character span */
    #handLabel .ch {
      display: inline-block;
      opacity: 0;
      transform: translateY(18px) scale(0.85);
      filter: blur(8px);
      color: #00ffff;
      text-shadow: none;
      transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.7s ease,
        text-shadow 1.1s ease;
    }

    #handLabel .ch.on {
      opacity: 1;
      transform: translateY(0) scale(1);
      filter: blur(0);
      text-shadow:
        0 0 14px rgba(0, 255, 255, 1),
        0 0 40px rgba(0, 200, 255, 0.75),
        0 0 90px rgba(0, 130, 255, 0.45);
    }

    /* Space char — visible but no glow needed */
    #handLabel .ch.sp {
      opacity: 1;
      transform: none;
      filter: none;
    }

    /* Light-sweep shimmer after all letters land */
    #handLabel.sweep::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg,
          transparent 0%,
          rgba(255, 255, 255, 0.22) 50%,
          transparent 100%);
      background-size: 300% 100%;
      animation: lsweep 1.5s ease forwards;
      pointer-events: none;
    }

    @keyframes lsweep {
      from {
        background-position: 260% 0;
      }

      to {
        background-position: -260% 0;
      }
    }

    /* Subtitle */
    #handSub {
      font-size: clamp(10px, 1.25vw, 15px);
      letter-spacing: 0.38em;
      color: transparent;
      text-align: center;
      text-transform: uppercase;
      transition: color 1.6s ease;
    }

    #handSub.on {
      color: rgba(124, 234, 255, 0.5);
    }

    /* HUD */
    .hud {
      position: fixed;
      top: 0;
      width: 100%;
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      padding: 12px 22px;
      background: rgba(0, 15, 30, 0.7);
      border-bottom: 1px solid rgba(0, 255, 255, 0.2);
      backdrop-filter: blur(14px);
      font-size: 11px;
      z-index: 5;
      opacity: 0;
      transition: opacity 1s ease;
    }

    .hud.visible {
      opacity: 1;
    }

    .hud b {
      color: #00ffff;
    }

    /* LOGIN BOX */
    .login {
      position: fixed;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: min(380px, 90vw);
      padding: 36px;
      border-radius: 18px;
      background: rgba(0, 25, 45, 0.55);
      border: 1px solid rgba(0, 255, 255, 0.3);
      box-shadow:
        0 0 60px rgba(0, 255, 255, 0.2),
        0 0 120px rgba(0, 100, 200, 0.1);
      text-align: center;
      backdrop-filter: blur(18px);
      z-index: 4;
      opacity: 0;
      transition: opacity 1.2s ease;
    }

    .login.visible {
      opacity: 1;
    }

    .login h2 {
      color: #00f7ff;
      margin-bottom: 22px;
      letter-spacing: 0.25em;
      font-weight: 600;
      font-size: 22px;
      text-shadow: 0 0 20px #00ffff66;
    }

    .login input {
      width: 100%;
      padding: 13px 16px;
      margin: 8px 0;
      border-radius: 8px;
      border: 1px solid rgba(0, 255, 255, 0.25);
      background: rgba(0, 0, 0, 0.55);
      color: #e6ffff;
      font-size: 13px;
      outline: none;
      transition: border-color 0.3s;
    }

    .login input:focus {
      border-color: #00ffff;
      box-shadow: 0 0 12px #00ffff33;
    }

    .login button {
      width: 100%;
      padding: 13px;
      margin-top: 12px;
      border-radius: 8px;
      border: 1px solid #00ffff;
      background: transparent;
      color: #00ffff;
      cursor: pointer;
      font-size: 13px;
      letter-spacing: 0.12em;
      transition: all 0.25s;
    }

    .login button:hover {
      background: #00ffff;
      color: #001018;
      box-shadow: 0 0 30px #00ffff88;
    }

    .info {
      margin-top: 10px;
      font-size: 11px;
      color: #7ceaff88;
    }

    /* FACE SCAN */
    #faceScan {
      position: fixed;
      inset: 0;
      background: rgba(0, 5, 15, 0.95);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 15;
    }

    .faceBox {
      width: 200px;
      height: 200px;
      border: 1px solid rgba(0, 255, 255, 0.5);
      position: relative;
      box-shadow:
        0 0 40px #00ffff33 inset,
        0 0 40px #00ffff22;
    }

    .scanLine {
      position: absolute;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, transparent, #00ffff, transparent);
      animation: scan 2s linear infinite;
      box-shadow: 0 0 10px #00ffff;
    }

    @keyframes scan {
      from {
        top: 0;
      }

      to {
        top: 100%;
      }
    }

    .scanLabel {
      margin-top: 20px;
      font-size: 12px;
      letter-spacing: 0.2em;
      color: #00ffff88;
      animation: blink 1s step-end infinite;
    }

    @keyframes blink {
      50% {
        opacity: 0;
      }
    }

    /* CHAT */
    .chat {
      position: fixed;
      right: 28px;
      bottom: 28px;
      width: 255px;
      border-radius: 14px;
      background: rgba(0, 18, 35, 0.75);
      border: 1px solid rgba(0, 255, 255, 0.35);
      box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
      backdrop-filter: blur(14px);
      overflow: hidden;
      z-index: 6;
      opacity: 0;
      transition: opacity 1s ease;
    }

    .chat.visible {
      opacity: 1;
    }

    .chatHeader {
      padding: 11px 14px;
      background: rgba(0, 255, 255, 0.08);
      cursor: pointer;
      font-size: 12px;
      letter-spacing: 0.1em;
      color: #00ffff;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .chatBody {
      display: none;
      flex-direction: column;
      height: 220px;
    }

    .chatMessages {
      flex: 1;
      padding: 10px;
      font-size: 11px;
      overflow: auto;
      color: #aefcff88;
      line-height: 1.6;
    }

    .chatInput {
      display: flex;
      border-top: 1px solid rgba(0, 255, 255, 0.15);
    }

    .chatInput input {
      flex: 1;
      border: none;
      padding: 9px;
      background: transparent;
      color: #cfffff;
      font-size: 11px;
      outline: none;
    }

    .chatInput button {
      border: none;
      background: #00ffff11;
      color: #00ffff;
      padding: 9px 13px;
      cursor: pointer;
      font-size: 11px;
      border-left: 1px solid rgba(0, 255, 255, 0.15);
    }

    .chatInput button:hover {
      background: #00ffff22;
    }

    .connectlogo {
      position: fixed;
      top: 3rem;
      right: 2rem;
    }

    .inputBox {
      display: flex;
      align-items: center;
    }

    .inputBox .icon {
      position: absolute;
      color: #088192;
      right: 3rem;
    }

    .login-icon {
      text-align: -webkit-center;
    }
    .ajax-msg p{
      font-size: 12px!important;
      margin-top: 10px;
    }