:root {
      --bg: #0D0E12;
      --surface: #141720;
      --surface-hover: #1C202C;
      --border: #242938;
      --text-main: #F4F5F7;
      --text-muted: #8E9BAE;
      --accent: #D4FF00;
      --accent-glow: rgba(212, 255, 0, 0.18);
      --amber: #FF9F0A;
      --amber-glow: rgba(255, 159, 10, 0.18);
      --warn: #FF453A;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--bg);
      background-image: 
        linear-gradient(to right, rgba(36, 41, 56, 0.25) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(36, 41, 56, 0.25) 1px, transparent 1px);
      background-size: 48px 48px;
      color: var(--text-main);
      font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      font-weight: 400;
      font-size: 16px;
      line-height: 1.65;
      min-height: 100vh;
      overflow-x: hidden;
    }

    h1, h2, h3, h4 {
      font-weight: 700;
      letter-spacing: -0.03em;
    }

    h1 {
      font-size: clamp(38px, 5.2vw, 68px);
      line-height: 1.08;
    }

    h2 {
      font-size: clamp(26px, 3.6vw, 40px);
      line-height: 1.18;
    }

    h3 {
      font-size: 21px;
      line-height: 1.3;
    }

    p {
      color: var(--text-muted);
    }

    p strong, p b {
      color: var(--text-main);
    }

    .mono {
      font-family: 'JetBrains Mono', monospace;
    }

    /* Bento Grid Layout */
    .bento-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 28px;
      max-width: 1320px;
      margin: 0 auto;
    }

    .bento-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 32px;
      position: relative;
      overflow: hidden;
      transition: border-color 0.25s ease, transform 0.25s ease;
    }

    .bento-card:hover {
      border-color: rgba(212, 255, 0, 0.3);
    }

    /* Navigation Bar */
    .nav-wrapper {
      position: sticky;
      top: 0;
      z-index: 100;
      backdrop-filter: blur(16px);
      background: rgba(13, 14, 18, 0.88);
      border-bottom: 1px solid var(--border);
      padding: 16px 24px;
    }

    .nav-container {
      max-width: 1320px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      color: var(--text-main);
      cursor: pointer;
    }

    .brand-icon {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      background: var(--accent);
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 18px;
      box-shadow: 0 0 20px var(--accent-glow);
    }

    .brand-name {
      font-weight: 800;
      font-size: 20px;
      letter-spacing: -0.02em;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .nav-link {
      display: inline-block;
      background: transparent;
      border: 1px solid transparent;
      color: var(--text-muted);
      font-family: inherit;
      font-weight: 600;
      font-size: 13.5px;
      padding: 8px 14px;
      border-radius: 999px;
      cursor: pointer;
      transition: all 0.2s ease;
      text-decoration: none;
      white-space: nowrap;
    }

    .nav-link:hover {
      color: var(--text-main);
      background: var(--surface-hover);
    }

    .nav-link.active {
      background: var(--accent);
      color: #000;
      font-weight: 700;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .user-pill {
      display: none;
      align-items: center;
      gap: 8px;
      padding: 8px 14px;
      border-radius: 999px;
      background: var(--surface);
      border: 1px solid var(--border);
      font-size: 13px;
      font-weight: 600;
      color: var(--text-main);
    }

    .user-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent);
    }

    .burger-btn {
      display: none;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-main);
      width: 42px;
      height: 42px;
      border-radius: 12px;
      cursor: pointer;
      align-items: center;
      justify-content: center;
    }

    .mobile-drawer {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      padding: 20px;
      flex-direction: column;
      gap: 10px;
      z-index: 99;
    }

    .mobile-drawer.open {
      display: flex;
    }

    .mobile-drawer .nav-link {
      width: 100%;
      text-align: left;
      padding: 12px 16px;
      border-radius: 10px;
    }

    .mobile-drawer .nav-link.active {
      background: var(--accent);
      color: #000;
    }

    /* Main Container & Views */
    .main-container {
      max-width: 1320px;
      margin: 0 auto;
      padding: 40px 24px 80px 24px;
    }

    .view-section {
      display: none;
      animation: fadeIn 0.28s ease;
    }

    .view-section.active {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Hero & Slot Bento Section */
    .hero-col {
      grid-column: span 7;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 32px;
    }

    .slot-col {
      grid-column: span 5;
    }

    .badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: 999px;
      background: rgba(212, 255, 0, 0.08);
      border: 1px solid rgba(212, 255, 0, 0.25);
      color: var(--accent);
      font-size: 13px;
      font-weight: 600;
      width: fit-content;
    }

    .badge-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 10px var(--accent);
    }

    .hero-subtitle {
      font-size: 17px;
      line-height: 1.65;
      margin-top: 18px;
      max-width: 580px;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-family: inherit;
      font-weight: 700;
      font-size: 15px;
      padding: 14px 28px;
      border-radius: 14px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
      user-select: none;
    }

    .btn-accent {
      background: var(--accent);
      color: #000000;
      box-shadow: 0 4px 24px var(--accent-glow);
    }

    .btn-accent:hover {
      background: #e2ff33;
      transform: translateY(-2px);
      box-shadow: 0 6px 30px var(--accent-glow);
    }

    .btn-outline {
      background: transparent;
      color: var(--text-main);
      border: 1px solid var(--border);
    }

    .btn-outline:hover {
      background: var(--surface-hover);
      border-color: var(--text-muted);
    }

    /* Slot Machine UI */
    .slot-device {
      background: #0F1117;
      border: 1px solid var(--border);
      border-radius: 22px;
      padding: 24px;
    }

    .slot-top-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .slot-status-pill {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      padding: 5px 12px;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-muted);
    }

    .slot-telemetry {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-bottom: 20px;
    }

    .telemetry-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 12px;
      text-align: center;
    }

    .telemetry-lbl {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 4px;
    }

    .telemetry-val {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-main);
    }

    .telemetry-val.highlight {
      color: var(--accent);
    }

    /* Reels Viewport */
    .reels-viewport {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 16px;
      position: relative;
      margin-bottom: 20px;
    }

    .payline-glow {
      position: absolute;
      left: 12px;
      right: 12px;
      top: 50%;
      height: 2px;
      background: var(--accent);
      opacity: 0.4;
      transform: translateY(-50%);
      pointer-events: none;
    }

    .reels-flex {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .reel-col {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .symbol-cell {
      height: 60px;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      background: rgba(0,0,0,0.25);
      transition: all 0.2s ease;
    }

    .symbol-cell.active-row {
      background: rgba(255,255,255,0.04);
      color: var(--text-main);
      border: 1px solid rgba(255,255,255,0.08);
    }

    .symbol-cell.win-pop {
      color: var(--accent);
      border-color: var(--accent);
      box-shadow: 0 0 15px var(--accent-glow);
    }

    .symbol-cell svg {
      width: 24px;
      height: 24px;
      stroke-width: 2;
    }

    .symbol-name {
      font-size: 9px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-top: 2px;
    }

    .slot-message-bar {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 16px;
      font-size: 13.5px;
      font-weight: 500;
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 20px;
      min-height: 48px;
    }

    .controls-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 20px;
    }

    .control-box {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 12px 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .control-header {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
    }

    /* Slider */
    input[type="range"].custom-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: var(--bg);
      outline: none;
    }

    input[type="range"].custom-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--accent);
      cursor: pointer;
      box-shadow: 0 0 12px var(--accent-glow);
    }

    /* Toggle Switch */
    .switch-wrap {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 100%;
    }

    .switch-label {
      font-size: 12.5px;
      font-weight: 600;
    }

    .switch-sub {
      font-size: 10.5px;
      color: var(--text-muted);
    }

    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 46px;
      height: 24px;
      flex-shrink: 0;
    }

    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .toggle-slider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 999px;
      transition: 0.2s;
    }

    .toggle-slider::before {
      content: "";
      position: absolute;
      height: 16px;
      width: 16px;
      left: 3px;
      bottom: 3px;
      background: var(--text-muted);
      border-radius: 50%;
      transition: 0.2s;
    }

    .toggle-switch input:checked + .toggle-slider {
      background: var(--accent);
      border-color: var(--accent);
    }

    .toggle-switch input:checked + .toggle-slider::before {
      transform: translateX(22px);
      background: #000;
    }

    .slot-actions {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 12px;
    }

    /* Bento Grid Spans */
    .col-4 { grid-column: span 4; }
    .col-6 { grid-column: span 6; }
    .col-8 { grid-column: span 8; }
    .col-12 { grid-column: span 12; }

    .bento-card h3 {
      margin-bottom: 12px;
      color: var(--text-main);
    }

    .bento-card p {
      font-size: 15px;
      line-height: 1.65;
    }

    .icon-box {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      margin-bottom: 20px;
    }

    .warning-card {
      border-color: rgba(255, 69, 58, 0.35);
      background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 69, 58, 0.06) 100%);
    }

    .warning-card .icon-box {
      color: var(--warn);
      background: rgba(255, 69, 58, 0.1);
      border-color: rgba(255, 69, 58, 0.25);
    }

    /* Article & Info Pages */
    .article-content h3 {
      margin-top: 28px;
      margin-bottom: 10px;
      color: var(--text-main);
    }

    .article-content h3:first-child {
      margin-top: 0;
    }

    .article-content p, .article-content li {
      margin-bottom: 14px;
    }

    .article-content ul {
      padding-left: 20px;
      margin-bottom: 16px;
      color: var(--text-muted);
    }

    .callout-box {
      background: var(--bg);
      border-left: 3px solid var(--accent);
      border-top: 1px solid var(--border);
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 20px 24px;
      border-radius: 0 14px 14px 0;
      margin: 20px 0;
    }

    .contact-strip {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 24px;
    }

    .contact-item {
      padding: 22px;
      border-radius: 16px;
      background: var(--bg);
      border: 1px solid var(--border);
    }

    .contact-item-lbl {
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 6px;
    }

    .contact-item-val {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-main);
      word-break: break-word;
    }

    /* Registration Form Styling */
    .form-card {
      max-width: 620px;
      margin: 0 auto;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      display: block;
      font-size: 13.5px;
      font-weight: 600;
      margin-bottom: 8px;
      color: var(--text-main);
    }

    .neu-input {
      width: 100%;
      padding: 14px 18px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: var(--bg);
      color: var(--text-main);
      font-family: inherit;
      font-size: 15px;
      outline: none;
      transition: border-color 0.2s ease;
    }

    .neu-input:focus {
      border-color: var(--accent);
    }

    .checkbox-label {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      cursor: pointer;
      font-size: 14px;
      color: var(--text-muted);
      user-select: none;
    }

    .checkbox-label input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 20px;
      height: 20px;
      border-radius: 6px;
      border: 1px solid var(--border);
      background: var(--bg);
      cursor: pointer;
      flex-shrink: 0;
      margin-top: 2px;
      position: relative;
    }

    .checkbox-label input[type="checkbox"]:checked {
      background: var(--accent);
      border-color: var(--accent);
    }

    .checkbox-label input[type="checkbox"]:checked::after {
      content: "";
      position: absolute;
      left: 6px;
      top: 2px;
      width: 5px;
      height: 10px;
      border: solid #000;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    /* Footer */
    .footer-wrapper {
      border-top: 1px solid var(--border);
      background: var(--surface);
      margin-top: 80px;
      padding: 60px 24px;
    }

    .footer-container {
      max-width: 1320px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
      gap: 36px;
    }

    .footer-links {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .footer-link {
      background: none;
      border: none;
      text-align: left;
      color: var(--text-muted);
      font-family: inherit;
      font-size: 14px;
      cursor: pointer;
      padding: 0;
      text-decoration: none;
      transition: color 0.18s ease;
    }

    .footer-link:hover {
      color: var(--accent);
    }

    .footer-bottom {
      max-width: 1320px;
      margin: 40px auto 0 auto;
      padding-top: 24px;
      border-top: 1px solid var(--border);
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      font-size: 13.5px;
      color: var(--text-muted);
    }

    /* Toast Notification */
    .toast-popup {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-main);
      padding: 16px 22px;
      border-radius: 14px;
      font-weight: 600;
      font-size: 14px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 1000;
      opacity: 0;
      transform: translateY(16px);
      pointer-events: none;
      transition: all 0.25s ease;
    }

    .toast-popup.show {
      opacity: 1;
      transform: translateY(0);
    }

    .stack { display: flex; flex-direction: column; gap: 32px; }
    .col-5 { grid-column: span 5; }
    .col-7 { grid-column: span 7; }

    .compliance-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 22px;
      align-items: center;
      padding: 14px 18px;
      border-radius: 16px;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 14px;
    }

    .compliance-bar strong { color: var(--text-main); }

    .age-chip {
      font-size: 12px;
      font-weight: 800;
      color: #1a0a08;
      background: var(--warn);
      border-radius: 999px;
      padding: 6px 10px;
      letter-spacing: 0.02em;
    }

    .photo-frame {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #0b0d12;
    }

    .photo-frame img {
      display: block;
      width: 100%;
      height: 320px;
      object-fit: cover;
    }

    .caption { margin-top: 14px; font-size: 14.5px; }

    .help-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .ext-link {
      display: flex;
      flex-direction: column;
      gap: 6px;
      padding: 18px;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: var(--bg);
      text-decoration: none;
    }

    .ext-link:hover { border-color: rgba(212, 255, 0, 0.4); }
    .ext-name { color: var(--text-main); font-weight: 700; font-size: 15.5px; }
    .ext-meta { color: var(--accent); font-size: 13px; font-weight: 600; }
    .ext-desc { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

    .symbol-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
    .symbol-table th, .symbol-table td {
      text-align: left;
      padding: 12px 14px;
      border-bottom: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 14.5px;
    }
    .symbol-table th {
      color: var(--text-main);
      font-size: 12px;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

    .age-gate {
      position: fixed;
      inset: 0;
      z-index: 3000;
      background: rgba(8, 9, 12, 0.94);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }
    .age-gate[hidden] { display: none !important; }
    .age-card {
      width: min(560px, 100%);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 32px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .age-card[hidden] { display: none !important; }
    .age-actions { display: flex; flex-wrap: wrap; gap: 12px; }

    .footer-help {
      max-width: 1320px;
      margin: 36px auto 0;
      padding-top: 28px;
      border-top: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* Responsive Breakpoints */
    @media (max-width: 1024px) {
      .hero-col { grid-column: span 12; }
      .slot-col { grid-column: span 12; }
      .col-4 { grid-column: span 12; }
      .col-6 { grid-column: span 12; }
      .col-8 { grid-column: span 12; }
      .nav-menu { display: none; }
      .burger-btn { display: flex; }
      .footer-container { grid-template-columns: 1fr; }
      .contact-strip { grid-template-columns: 1fr; }
      .col-5, .col-7 { grid-column: span 12; }
      .help-grid { grid-template-columns: 1fr; }
      .photo-frame img { height: 220px; }
    }
