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

    .demo-back-link {
      position: absolute;
      top: 20px;
      left: 20px;
      color: #00F5FF;
      text-decoration: none;
      font-weight: 600;
    }
    
    body {
      font-family: 'Courier New', monospace;
      background: linear-gradient(135deg, #1a0033 0%, #000000 50%, #001a33 100%);
      color: #00F5FF;
      overflow: hidden;
    }
    
    .container {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      padding: 20px;
    }
    
    .title {
      font-size: 48px;
      font-weight: bold;
      text-align: center;
      margin-bottom: 20px;
      background: linear-gradient(135deg, #FF10F0, #FFD700);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: 0 0 30px rgba(255, 16, 240, 0.5);
    }
    
    .subtitle {
      text-align: center;
      color: #E0E0E0;
      margin-bottom: 40px;
      font-size: 14px;
      letter-spacing: 2px;
    }
    
    /* Gate Grid */
    .gates-grid {
      display: grid;
      grid-template-columns: repeat(11, 1fr);
      gap: 12px;
      margin-bottom: 40px;
      max-width: 1200px;
    }
    
    /* Individual Gate */
    .gate {
      position: relative;
      width: 90px;
      height: 120px;
      background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0f 100%);
      border: 3px solid #333;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 8px;
      transition: all 0.5s;
      cursor: pointer;
    }
    
    .gate:hover {
      border-color: #00F5FF;
      box-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
      transform: scale(1.05);
    }
    
    .gate.unlocked {
      border-color: #39FF14;
      box-shadow: 0 0 30px rgba(57, 255, 20, 0.8);
      background: linear-gradient(180deg, #1a2e1a 0%, #0f1a0f 100%);
    }
    
    .gate.failed {
      border-color: #FF0000;
      box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
      background: linear-gradient(180deg, #2e1a1a 0%, #1a0f0f 100%);
      animation: shake 0.5s;
    }
    
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      25% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
    }
    
    /* Gate Number */
    .gate-number {
      font-size: 12px;
      font-weight: bold;
      color: #666;
    }
    
    .gate.unlocked .gate-number {
      color: #39FF14;
    }
    
    /* Tumblers (5 per gate) */
    .tumblers {
      display: flex;
      gap: 4px;
      margin: 8px 0;
    }
    
    .tumbler {
      width: 10px;
      height: 30px;
      background: linear-gradient(180deg, #444 0%, #222 100%);
      border: 1px solid #666;
      border-radius: 2px;
      position: relative;
      overflow: hidden;
    }
    
    .tumbler::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 0%;
      background: linear-gradient(180deg, #39FF14 0%, #00FF00 100%);
      transition: height 0.3s;
    }
    
    .gate.unlocked .tumbler::after {
      height: 100%;
    }
    
    /* Lock Icon */
    .lock-icon {
      font-size: 24px;
      transition: all 0.3s;
    }
    
    /* Frequency Wave */
    .frequency-wave {
      width: 100%;
      height: 20px;
      margin-top: 4px;
    }
    
    .frequency-wave canvas {
      width: 100%;
      height: 100%;
    }
    
    /* Control Panel */
    .control-panel {
      background: rgba(0, 0, 0, 0.7);
      border: 2px solid #00F5FF;
      border-radius: 12px;
      padding: 24px;
      max-width: 600px;
      width: 100%;
    }
    
    .input-group {
      margin-bottom: 20px;
    }
    
    label {
      display: block;
      margin-bottom: 8px;
      color: #00F5FF;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    
    input {
      width: 100%;
      padding: 12px;
      background: rgba(0, 0, 0, 0.5);
      border: 2px solid #333;
      border-radius: 6px;
      color: #fff;
      font-family: 'Courier New', monospace;
      font-size: 16px;
    }
    
    input:focus {
      outline: none;
      border-color: #00F5FF;
      box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    }
    
    button {
      width: 100%;
      padding: 14px;
      background: linear-gradient(135deg, #00F5FF, #FF10F0);
      border: none;
      border-radius: 8px;
      color: #000;
      font-weight: bold;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    
    button:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 40px rgba(0, 245, 255, 0.5);
    }
    
    .status {
      margin-top: 20px;
      padding: 16px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 6px;
      text-align: center;
      font-size: 14px;
      min-height: 50px;
    }
    
    .status.success {
      border: 2px solid #39FF14;
      color: #39FF14;
    }
    
    .status.error {
      border: 2px solid #FF0000;
      color: #FF0000;
    }
    
    .stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 20px;
    }
    
    .stat {
      text-align: center;
      padding: 12px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 6px;
      border: 1px solid #333;
    }
    
    .stat-value {
      font-size: 24px;
      font-weight: bold;
      color: #00F5FF;
    }
    
    .stat-label {
      font-size: 12px;
      color: #999;
      text-transform: uppercase;
      margin-top: 4px;
    }
