    @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Orbitron:wght@500;700;900&display=swap');

    :root {
      --bg-dark: #080414; /* Dark violet/black background */
      --bg-card: #130a2a; /* Card background deep violet */
      --bg-panel: #0d071f; /* Left sidebar panel background */
      --primary-purple: #b600ff; /* Neon purple */
      --primary-slime: #b600ff; /* Retargeted slime green to neon purple for compatibility */
      --primary-glow: rgba(182, 0, 255, 0.45);
      --cyan-accent: #00ffcc; /* Cyber cyan */
      --pink-accent: #ff00cc; /* Neon fuchsia-pink */
      --gold-coin: #ffcc00; /* Gold */
      --gold-multiplier: #ffcc00;
      --blue-usd: #3a86ff;
      --border-glow: rgba(182, 0, 255, 0.2);
      --text-primary: #ffffff;
      --text-muted: #8e8a9f;
      --font-family: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
      --font-header: 'Orbitron', 'Montserrat', sans-serif;
    }

    body {
      margin: 0;
      padding: 0;
      background-color: var(--bg-dark);
      background-image: radial-gradient(circle at 40% 30%, #1c0e3e 0%, var(--bg-dark) 85%);
      color: var(--text-primary);
      font-family: var(--font-family);
      overflow: hidden;
      height: 100vh;
      display: flex;
    }

    /* Layout Containers */
    #app-container {
      display: flex;
      width: 100vw;
      height: 100vh;
      overflow: hidden;
    }

    #sidebar-left {
      width: 260px;
      background: var(--bg-panel);
      border-right: 1.5px solid rgba(182, 0, 255, 0.15);
      padding: 24px 20px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      gap: 20px;
      height: 100vh;
      flex-shrink: 0;
      z-index: 10;
      overflow-y: auto;
    }

    #main-layout-container {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
    }

    /* Left Sidebar Brand */
    .sidebar-brand {
      display: flex;
      flex-direction: column;
      padding: 5px 0 15px 0;
      cursor: pointer;
    }
    .brand-title {
      font-family: var(--font-header);
      font-weight: 900;
      font-size: 1.3rem;
      line-height: 1.1;
      letter-spacing: -0.5px;
      color: #ffffff;
      text-transform: uppercase;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    .brand-subtitle {
      font-family: var(--font-header);
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--pink-accent);
      letter-spacing: 2px;
      margin-top: 4px;
      text-transform: uppercase;
      text-shadow: 0 0 12px rgba(255, 0, 204, 0.6);
    }

    /* Navigation Menu */
    .menu-header {
      font-size: 0.7rem;
      font-weight: 800;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 5px;
    }
    .menu-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .menu-item {
      background: rgba(255, 255, 255, 0.01);
      border: 1px solid rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      padding: 11px 18px;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.85rem;
      font-weight: 600;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 12px;
      box-sizing: border-box;
    }
    .menu-item:hover, .menu-item.active {
      background: rgba(182, 0, 255, 0.08);
      border-color: var(--primary-purple);
      color: #ffffff;
      text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
      box-shadow: 0 0 15px rgba(182, 0, 255, 0.15);
    }
    .menu-item svg {
      width: 18px;
      height: 18px;
      stroke: var(--text-muted);
      stroke-width: 2.2px;
      transition: all 0.2s;
    }
    .menu-item:hover svg, .menu-item.active svg {
      stroke: var(--pink-accent);
      filter: drop-shadow(0 0 4px var(--pink-accent));
    }

    /* Player HUD card in sidebar */
    #sidebar-player-hud {
      background: rgba(182, 0, 255, 0.04);
      border-radius: 14px;
      border: 1.5px solid rgba(255, 0, 204, 0.2);
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      box-shadow: 0 0 15px rgba(182, 0, 255, 0.08), inset 0 0 10px rgba(182, 0, 255, 0.05);
    }

    /* App Header Bar */
    #app-header {
      height: 75px;
      background: rgba(13, 7, 31, 0.85);
      backdrop-filter: blur(12px);
      border-bottom: 1.5px solid rgba(182, 0, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: flex-end; /* Align stats to the right, sidebar takes the left space */
      padding: 0 24px;
      box-sizing: border-box;
      z-index: 9;
      flex-shrink: 0;
      gap: 20px;
    }

    /* Stats bar styling */
    .stats-bar {
      display: flex;
      gap: 14px;
      align-items: center;
    }
    .stat-item {
      background: #130a2a;
      border: 1.5px solid rgba(182, 0, 255, 0.15);
      border-radius: 20px;
      padding: 6px 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transition: all 0.2s;
    }
    .stat-item:hover {
      border-color: var(--primary-purple);
      box-shadow: 0 0 8px rgba(182, 0, 255, 0.3);
    }
    .stat-icon {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      font-size: 0.8rem;
    }
    .stat-icon svg {
      width: 100%;
      height: 100%;
    }
    .stat-label {
      color: var(--text-muted);
      font-size: 0.65rem;
      font-weight: 800;
      letter-spacing: 0.5px;
    }
    .stat-val {
      color: #ffffff;
      font-family: monospace;
      font-size: 0.85rem;
      font-weight: 700;
      /* V4.086 - exact balances (e.g. "10,015.00") are wider than the old
         abbreviated "10.02K", so keep each amount on a single line. */
      white-space: nowrap;
    }

    /* Profile Widget Header */
    .profile-widget {
      border: none;
      border-radius: 8px; /* Changed from 50% to beautiful square 8px rounded */
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 0 10px rgba(255, 0, 204, 0.3);
      background: #130a2a;
      overflow: hidden;
      font-size: 1.3rem;
    }
    .profile-widget:hover {
      box-shadow: 0 0 15px rgba(255, 0, 204, 0.8);
      transform: scale(1.05);
    }
    .profile-avatar {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* App Body Area */
    #app-body {
      flex-grow: 1;
      display: flex;
      min-height: 0; /* Let Flexbox calculate the height dynamically to handle top banners gracefully! */
      position: relative;
      box-sizing: border-box;
      overflow: hidden;
    }

    #center-content {
      flex-grow: 1;
      padding: 24px;
      box-sizing: border-box;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    /* View Panels */
    .view-panel {
      width: 100%;
      display: flex;
      flex-direction: column;
    }
    .center-header {
      font-family: var(--font-header);
      font-weight: 700;
      font-size: 1.6rem;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin: 0 0 20px 0;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    }

    /* Tournament Countdown Hero Card (dgu3.png style) */
    .tournament-hero-card {
      background: radial-gradient(circle at 30% 30%, #1e0e3e 0%, #100824 100%);
      border: 1.5px solid var(--pink-accent);
      border-radius: 16px;
      padding: 22px 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
      box-shadow: 0 0 25px rgba(255, 0, 204, 0.15), inset 0 0 15px rgba(182, 0, 255, 0.1);
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }
    .tournament-hero-card::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: radial-gradient(circle, rgba(182, 0, 255, 0.08) 0%, transparent 60%);
      pointer-events: none;
    }
    .tournament-info-left {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .tournament-trophy-box {
      font-size: 2.8rem;
      filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.6));
      animation: float 3s ease-in-out infinite;
    }
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-5px); }
    }
    .tournament-timer-area {
      display: flex;
      flex-direction: column;
    }
    .tournament-title-tag {
      color: var(--pink-accent);
      font-family: var(--font-header);
      font-size: 0.85rem;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .tournament-ends-label {
      color: #ffffff;
      font-size: 0.7rem;
      font-weight: 700;
      letter-spacing: 0.5px;
      margin-top: 4px;
      text-transform: uppercase;
    }
    .tournament-countdown-display {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-top: 8px;
    }
    .countdown-unit {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .countdown-digits {
      font-size: 1.8rem;
      font-weight: 800;
      color: #ffffff;
      text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
      font-family: var(--font-header);
    }
    .countdown-separator {
      font-size: 1.6rem;
      font-weight: 800;
      color: rgba(255, 255, 255, 0.3);
      line-height: 1;
    }
    .countdown-lbl {
      font-size: 0.55rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-top: 2px;
    }
    .tournament-pool-right {
      text-align: right;
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .pool-label {
      color: var(--text-muted);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 1px;
      text-transform: uppercase;
    }
    .pool-amount {
      color: #ffffff;
      font-size: 1.5rem;
      font-weight: 800;
      text-shadow: 0 0 10px rgba(182, 0, 255, 0.5);
      margin-top: 4px;
    }

    /* Featured Games Grid */
    .featured-row-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
      flex-shrink: 0;
    }
    .featured-row-title {
      font-size: 0.95rem;
      font-weight: 800;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      color: #ffffff;
    }
    .view-all-link {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--pink-accent);
      text-decoration: none;
      cursor: pointer;
      transition: text-shadow 0.2s;
    }
    .view-all-link:hover {
      text-shadow: 0 0 8px rgba(255, 0, 204, 0.6);
    }
    .featured-games-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 15px;
      margin-bottom: 25px;
      flex-shrink: 0;
    }
    .f-game-card {
      background: #130a2a;
      border: 1.5px solid rgba(182, 0, 255, 0.15);
      border-radius: 14px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      aspect-ratio: 1 / 1.15;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      overflow: hidden;
      box-sizing: border-box;
    }
    .f-game-card:hover {
      transform: translateY(-5px);
      border-color: var(--pink-accent);
      box-shadow: 0 0 20px rgba(255, 0, 127, 0.25), inset 0 0 10px rgba(182, 0, 255, 0.1);
    }
    .f-game-art {
      width: 65px;
      height: 65px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(182, 0, 255, 0.15) 0%, transparent 70%);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.5rem;
      margin-bottom: 5px;
      transition: transform 0.3s;
    }
    .f-game-card:hover .f-game-art {
      transform: scale(1.1);
    }
    .f-game-title {
      font-size: 0.8rem;
      font-weight: 800;
      color: #ffffff;
      text-align: center;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 10px;
      width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .f-multiplier-tag {
      background: rgba(255, 204, 0, 0.08);
      border: 1px solid #ffcc00;
      border-radius: 20px;
      padding: 3px 10px;
      font-size: 0.6rem;
      font-weight: 800;
      color: #ffcc00;
      letter-spacing: 0.5px;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 4px;
      box-shadow: 0 0 6px rgba(255, 204, 0, 0.1);
    }

    /* Standard Games Grid at bottom */
    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 20px;
      width: 100%;
    }
    .game-card {
      background: var(--bg-card);
      border: 1.5px solid rgba(182, 0, 255, 0.15);
      border-radius: 16px;
      aspect-ratio: 1 / 1.45;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 0;
      box-sizing: border-box;
      position: relative;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.25);
      overflow: hidden;
    }
    .game-card:hover {
      transform: translateY(-5px);
      border-color: var(--pink-accent);
      box-shadow: 0 8px 24px rgba(255, 0, 204, 0.3);
    }
    .game-card.locked {
      opacity: 0.7;
    }
    .game-card.locked:hover {
      border-color: var(--pink-accent);
      box-shadow: 0 8px 24px rgba(255, 0, 127, 0.2);
    }
    .game-icon-container {
      width: 100%;
      height: 60%;
      border-radius: 0;
      background: #000;
      border: none;
      border-bottom: 1.5px solid rgba(182, 0, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0;
      transition: all 0.2s;
      overflow: hidden;
      position: relative;
    }
    .game-card:hover .game-icon-container {
      border-color: var(--pink-accent);
    }
    .badge-top-right {
      position: absolute;
      top: -6px;
      right: -6px;
      background: #1e0e33;
      border: 1px solid var(--pink-accent);
      color: var(--pink-accent);
      border-radius: 20px;
      padding: 2px 8px;
      font-size: 0.65rem;
      font-weight: 800;
      box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    }
    .game-card.locked .badge-top-right {
      background: #4a0d24;
      border-color: var(--pink-accent);
      color: var(--pink-accent);
    }
    .game-title-label {
      font-size: 0.75rem;
      font-weight: bold;
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
      color: #fff;
    }

    /* Play View Layout */
    .play-layout {
      display: flex;
      flex-direction: row;
      gap: 20px;
      height: 100%;
      width: 100%;
    }
    .game-iframe-wrapper {
      flex-grow: 1;
      background: #000;
      border-radius: 12px;
      border: 2px solid var(--primary-purple);
      overflow: hidden;
      position: relative;
      box-shadow: 0 0 25px rgba(182, 0, 255, 0.2);
      display: flex;
      flex-direction: column;
    }
    .game-iframe-header {
      height: 40px;
      background: #0d071f;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 15px;
      border-bottom: 1.5px solid rgba(182, 0, 255, 0.15);
      z-index: 5;
    }
    iframe.game-iframe {
      width: 100%;
      flex-grow: 1;
      border: none;
    }
    .side-leaderboard {
      width: 250px;
      background: var(--bg-card);
      border-radius: 12px;
      border: 1px solid rgba(182, 0, 255, 0.15);
      display: flex;
      flex-direction: column;
      padding: 15px;
      box-sizing: border-box;
    }
    .side-leaderboard h3 {
      margin: 0 0 15px 0;
      font-size: 1rem;
      color: var(--cyan-accent);
      text-transform: uppercase;
      border-bottom: 1px solid rgba(182, 0, 255, 0.1);
      padding-bottom: 8px;
      text-align: center;
    }
    .lead-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      overflow-y: auto;
      flex-grow: 1;
    }
    .lead-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(255,255,255,0.02);
      border-radius: 8px;
      padding: 8px 10px;
      font-size: 0.85rem;
      border: 1.5px solid transparent;
    }
    .lead-item.top-user {
      border-color: var(--primary-purple);
      background: rgba(182, 0, 255, 0.05);
    }
    .lead-user-info {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .lead-rank {
      font-weight: 800;
      width: 16px;
      color: var(--text-muted);
    }
    .lead-rank.rank-1 { color: #ffb700; }
    .lead-rank.rank-2 { color: #c0c0c0; }
    .lead-rank.rank-3 { color: #cd7f32; }
    .lead-name {
      font-weight: 600;
      max-width: 100px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .lead-score {
      font-family: monospace;
      font-weight: bold;
      color: var(--cyan-accent);
    }

    /* Right Sidebar Chat (dgu3.png style) */
    #sidebar-right {
      width: 260px;
      background: var(--bg-panel);
      border-left: 1.5px solid rgba(182, 0, 255, 0.15);
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      height: 100%;
      flex-shrink: 0;
      z-index: 8;
    }
    #menu-extras {
      display: none !important;
    }
    #sidebar-extras {
      display: none !important;
    }
    .chat-header {
      padding: 18px 16px;
      border-bottom: 1.5px solid rgba(182, 0, 255, 0.15);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .chat-title-box {
      display: flex;
      flex-direction: column;
    }
    .chat-title {
      font-family: var(--font-family);
      font-size: 0.95rem;
      font-weight: 800;
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin: 0;
    }
    .chat-status {
      font-size: 0.7rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 2px;
    }
    .status-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--cyan-accent);
      box-shadow: 0 0 6px var(--cyan-accent);
    }
    .chat-close-btn {
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.1rem;
      cursor: pointer;
    }
    .chat-close-btn:hover {
      color: #fff;
    }
    .chat-history {
      flex-grow: 1;
      padding: 16px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* Chat Messages styling */
    .chat-bubble-container {
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    .chat-avatar {
      width: 30px;
      height: 30px;
      border-radius: 8px; /* Changed from 50% to beautiful square 8px rounded corners */
      background: #130a2a;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      border: none;
      box-shadow: 0 0 8px rgba(255, 0, 204, 0.2);
      flex-shrink: 0;
    }
    .chat-content-box {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
      max-width: 80%;
    }
    .chat-meta {
      display: flex;
      align-items: baseline;
      gap: 6px;
      padding: 0 2px;
    }
    .chat-username {
      font-size: 0.75rem;
      font-weight: 800;
      color: var(--cyan-accent);
    }
    .chat-username.admin {
      color: var(--pink-accent);
    }
    .chat-time {
      font-size: 0.6rem;
      color: var(--text-muted);
    }
    .chat-bubble {
      background: #130a2a;
      border: 1px solid rgba(182, 0, 255, 0.1);
      border-radius: 0 12px 12px 12px;
      padding: 8px 12px;
      font-size: 0.8rem;
      color: #ffffff;
      line-height: 1.4;
      word-break: break-word;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .chat-bubble-container.system-msg .chat-username {
      color: var(--pink-accent);
    }
    .chat-bubble-container.system-msg .chat-bubble {
      background: rgba(255, 0, 204, 0.05);
      border: 1px solid rgba(255, 0, 204, 0.15);
      color: #fff;
    }

    /* Chat send input block */
    .chat-input-area {
      padding: 15px;
      border-top: 1.5px solid rgba(182, 0, 255, 0.15);
      display: flex;
      gap: 8px;
    }
    .chat-input-wrapper {
      flex-grow: 1;
      background: rgba(255, 255, 255, 0.02);
      border: 1.5px solid rgba(182, 0, 255, 0.15);
      border-radius: 25px;
      padding: 2px 6px 2px 14px;
      display: flex;
      align-items: center;
      transition: all 0.2s;
    }
    .chat-input-wrapper:focus-within {
      border-color: var(--pink-accent);
      box-shadow: 0 0 10px rgba(255, 0, 204, 0.2);
    }
    .chat-input {
      background: none;
      border: none;
      color: #fff;
      font-size: 0.8rem;
      width: 100%;
      outline: none;
      padding: 6px 0;
    }
    .chat-send-btn {
      background: none;
      border: none;
      color: var(--pink-accent);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      transition: transform 0.1s;
    }
    .chat-send-btn:hover {
      transform: scale(1.1);
      color: var(--cyan-accent);
    }

    /* Modals styling */
    .overlay-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(3, 2, 8, 0.9);
      backdrop-filter: blur(5px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .modal-content {
      background: var(--bg-card);
      border: 1.5px solid rgba(182, 0, 255, 0.25);
      border-radius: 16px;
      width: 90%;
      max-width: 400px;
      padding: 30px;
      box-sizing: border-box;
      box-shadow: 0 10px 30px rgba(0,0,0,0.5);
      position: relative;
    }
    .modal-title {
      font-size: 1.4rem;
      color: var(--pink-accent);
      margin-top: 0;
      margin-bottom: 20px;
      text-align: center;
      font-weight: bold;
      text-shadow: 0 0 8px rgba(255, 0, 204, 0.3);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 1.2rem;
      cursor: pointer;
    }
    .modal-close:hover {
      color: #fff;
    }

    /* Standard Forms styling */
    .form-group {
      margin-bottom: 15px;
    }
    .form-label {
      display: block;
      font-size: 0.75rem;
      text-transform: uppercase;
      color: var(--text-muted);
      margin-bottom: 6px;
      font-weight: bold;
      letter-spacing: 0.5px;
    }
    .form-input {
      width: 100%;
      background: rgba(255,255,255,0.02);
      border: 1.5px solid rgba(182, 0, 255, 0.15);
      border-radius: 8px;
      padding: 10px 12px;
      box-sizing: border-box;
      color: #fff;
      font-size: 0.9rem;
      outline: none;
      transition: all 0.2s;
    }
    .form-input:focus {
      border-color: var(--pink-accent);
      box-shadow: 0 0 8px rgba(255, 0, 204, 0.2);
    }
    .form-submit-btn {
      background: linear-gradient(135deg, var(--primary-purple) 0%, var(--pink-accent) 100%);
      color: #fff;
      border: none;
      padding: 12px;
      border-radius: 8px;
      font-weight: bold;
      font-size: 0.95rem;
      cursor: pointer;
      width: 100%;
      margin-top: 10px;
      transition: all 0.2s;
    }
    .form-submit-btn:hover:not(:disabled) {
      box-shadow: 0 0 15px var(--primary-purple);
    }

    /* Avatar switch details */
    .avatar-selector {
      display: flex;
      justify-content: space-around;
      margin-bottom: 15px;
      background: rgba(0,0,0,0.2);
      padding: 8px;
      border-radius: 8px;
      flex-wrap: wrap;
      gap: 5px;
    }
    .avatar-option {
      font-size: 1.5rem;
      cursor: pointer;
      padding: 4px;
      border-radius: 50%;
      border: 2px solid transparent;
      transition: all 0.2s;
      overflow: hidden;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      box-sizing: border-box;
    }
    .avatar-option:hover {
      background: rgba(255, 255, 255, 0.05);
    }
    .avatar-option.selected {
      border-color: var(--pink-accent);
      background: rgba(255, 0, 204, 0.1);
    }

    /* Results log Tables styling */
    .results-container {
      width: 100%;
      max-width: 800px;
      margin: 0 auto;
    }
    .results-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 15px;
      font-size: 0.85rem;
    }
    .results-table th, .results-table td {
      padding: 12px;
      text-align: left;
      border-bottom: 1px solid rgba(182, 0, 255, 0.1);
    }
    .results-table th {
      color: var(--text-muted);
      font-weight: bold;
      text-transform: uppercase;
      font-size: 0.7rem;
      letter-spacing: 0.5px;
    }
    .results-table tr:hover {
      background: rgba(182, 0, 255, 0.02);
    }

    /* Floating / Standard alerts (kept active but styled nicely) */
    .news-ticker-container {
      background: rgba(182, 0, 255, 0.05);
      border: 1.5px solid rgba(255, 0, 204, 0.2);
      border-radius: 10px;
      padding: 10px 16px;
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      overflow: hidden;
      box-shadow: 0 0 15px rgba(255, 0, 204, 0.05), inset 0 0 10px rgba(182, 0, 255, 0.05);
      box-sizing: border-box;
      flex-shrink: 0;
    }
    .news-ticker-label {
      color: var(--pink-accent);
      font-weight: 800;
      text-transform: uppercase;
      font-size: 0.75rem;
      letter-spacing: 1px;
      display: flex;
      align-items: center;
      gap: 6px;
      border-right: 1.5px solid rgba(182, 0, 255, 0.2);
      padding-right: 15px;
      margin-right: 15px;
      white-space: nowrap;
      font-family: var(--font-header);
    }
    .news-ticker-content {
      flex-grow: 1;
      overflow: hidden;
      white-space: nowrap;
      position: relative;
    }
    .news-ticker-text {
      display: inline-block;
      padding-left: 100%;
      animation: marquee 25s linear infinite;
      color: var(--cyan-accent);
      font-size: 0.85rem;
      font-weight: bold;
    }
    .news-ticker-text:hover {
      animation-play-state: paused;
      cursor: pointer;
    }
    @keyframes marquee {
      0% { transform: translate3d(0, 0, 0); }
      100% { transform: translate3d(-100%, 0, 0); }
    }

    /* Dev Upload Dashboard */
    .dev-upload-card {
      background: linear-gradient(135deg, #18112d 0%, #0c081b 100%);
      border: 2px dashed rgba(182, 0, 255, 0.4);
      border-radius: 12px;
      padding: 25px;
      text-align: center;
      margin-top: 15px;
    }
    .dev-upload-card:hover {
      border-color: var(--pink-accent);
    }

    /* Token Shop Cards Grid */
    .shop-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 20px;
      margin-top: 20px;
    }
    .shop-card {
      background: var(--bg-card);
      border: 1.5px solid rgba(182, 0, 255, 0.15);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.3);
      transition: all 0.25s;
    }
    .shop-card:hover {
      border-color: var(--pink-accent);
      box-shadow: 0 0 15px rgba(255, 0, 204, 0.15);
    }
    .shop-card-avatar {
      font-size: 2.8rem;
      background: #130a2a; /* Unified background color matching inventory and marketplace */
      width: 65px;
      height: 65px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px; /* Square layout consistent across site */
      border: 1.5px solid rgba(182, 0, 255, 0.15); /* Sleek, subtle purple border */
    }
    .shop-card-cost {
      font-size: 0.85rem;
      font-weight: bold;
    }
    .shop-buy-btn {
      width: 100%;
      padding: 10px;
      border-radius: 6px;
      font-weight: bold;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
    }
    .shop-buy-btn:disabled {
      background: rgba(255,255,255,0.04) !important;
      color: var(--text-muted) !important;
      cursor: not-allowed;
      border: 1px solid rgba(255,255,255,0.03);
    }

    /* Admin configuration view tabs */
    .admin-tabs-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      border-bottom: 2px solid rgba(182, 0, 255, 0.15);
      padding-bottom: 10px;
      margin-bottom: 20px;
    }
    .admin-tab-btn {
      background: rgba(255,255,255,0.02);
      border: 1px solid rgba(182, 0, 255, 0.1);
      color: var(--text-muted);
      padding: 8px 16px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.85rem;
      font-weight: bold;
      transition: all 0.2s;
    }
    .admin-tab-btn.active {
      background: rgba(182, 0, 255, 0.15);
      color: #ffffff;
      border-color: var(--primary-purple);
      box-shadow: 0 0 10px rgba(182, 0, 255, 0.2);
    }
    .category-tabs-container {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 25px;
      overflow-x: auto;
      max-width: 100%;
      -webkit-overflow-scrolling: touch;
      flex-wrap: nowrap;
    }
    .category-tabs-container::-webkit-scrollbar {
      height: 4px;
    }
    .category-tabs-container::-webkit-scrollbar-thumb {
      background: rgba(182, 0, 255, 0.4);
      border-radius: 2px;
    }
    .admin-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.8rem;
      background: rgba(255,255,255,0.01);
      border-radius: 8px;
      overflow: hidden;
    }
    .admin-table th, .admin-table td {
      padding: 10px;
      text-align: left;
      border-bottom: 1px solid rgba(182, 0, 255, 0.1);
    }
    .admin-table th {
      background: rgba(0,0,0,0.4);
      font-weight: bold;
      color: var(--text-muted);
    }
    .admin-badge-word {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(255, 0, 127, 0.08);
      border: 1px solid var(--pink-accent);
      color: var(--pink-accent);
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 0.75rem;
      margin: 4px;
      cursor: pointer;
    }
    .admin-badge-word:hover {
      background: var(--pink-accent);
      color: #fff;
    }

    .btn {
      background: var(--bg-card);
      border: 1.5px solid rgba(182, 0, 255, 0.2);
      color: #fff;
      padding: 6px 14px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.2s;
    }
    .btn:hover {
      border-color: var(--pink-accent);
      box-shadow: 0 0 8px rgba(255, 0, 204, 0.3);
    }

    /* Scrollbars customization */
    ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    ::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.15);
    }
    ::-webkit-scrollbar-thumb {
      background: rgba(182, 0, 255, 0.2);
      border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: rgba(182, 0, 255, 0.45);
    }

    /* Hide helper */
    .hidden {
      display: none !important;
    }
    .dropdown-item:hover {
      background: rgba(182, 0, 255, 0.15) !important;
    }
    .clickable-player-name {
      cursor: pointer !important;
      transition: all 0.2s;
      text-decoration: underline dotted rgba(182, 0, 255, 0.45);
    }
    .clickable-player-name:hover {
      color: var(--pink-accent) !important;
      text-shadow: 0 0 10px rgba(255, 0, 204, 0.5);
    }
    .chat-channel-tab.active {
      background: rgba(182, 0, 255, 0.2) !important;
      color: var(--cyan-accent) !important;
      box-shadow: 0 0 8px rgba(182, 0, 255, 0.25);
    }

    /* --- CYBERPUNK MOBILE RESPONSIVE ADAPTATIONS (V4.032) --- */
    /* top mobile action bar display properties */
    #mobile-action-bar {
      display: none;
    }

    @media (max-width: 1200px) {
      body {
        flex-direction: column !important;
      }
      /* Mobile top Action Bar styling */
      #mobile-action-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 60px;
        background: #0d071f;
        border-bottom: 1.5px solid rgba(182, 0, 255, 0.25);
        padding: 0 15px;
        box-sizing: border-box;
        z-index: 1010;
        width: 100%;
        position: relative;
      }
      .mobile-menu-btn {
        background: none;
        border: none;
        color: var(--cyan-accent);
        font-size: 1.6rem;
        cursor: pointer;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-shadow: 0 0 8px rgba(0, 255, 204, 0.4);
      }
      .mobile-logo-text {
        font-family: var(--font-header);
        font-weight: 900;
        font-size: 0.95rem;
        letter-spacing: 1px;
        color: #fff;
        text-transform: uppercase;
        text-align: center;
        line-height: 1.2;
      }
      .mobile-logo-text span {
        color: var(--pink-accent);
        text-shadow: 0 0 8px rgba(255, 0, 204, 0.6);
      }

      /* Grid layout container wrapping sidebars + center content */
      #app-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        height: calc(100vh - 60px) !important;
        overflow: hidden !important;
      }
      #main-layout-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100vw !important;
        height: 100% !important;
        overflow: hidden !important;
      }
      #app-body {
        display: flex !important;
        width: 100vw !important;
        height: 100% !important;
        position: relative !important;
        overflow: hidden !important;
      }

      /* Hide desktop elements on mobile */
      #app-header {
        display: none !important;
      }

      /* Enable news ticker on mobile with optimized dimensions */
      #site-news-ticker-hud {
        display: flex !important;
        padding: 8px 12px !important;
        margin-bottom: 15px !important;
        border-radius: 8px !important;
      }
      .news-ticker-label {
        font-size: 0.65rem !important;
        padding-right: 10px !important;
        margin-right: 10px !important;
      }
      .news-ticker-text {
        font-size: 0.75rem !important;
      }

      /* Collapse left sidebar off-screen */
      #sidebar-left {
        position: fixed !important;
        display: none !important;
        top: 60px !important;
        left: 0 !important;
        width: 260px !important;
        height: calc(100vh - 60px) !important;
        z-index: 1009 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-right: 1.5px solid rgba(182, 0, 255, 0.35) !important;
        box-shadow: 10px 0 25px rgba(0, 0, 0, 0.5) !important;
      }
      #sidebar-left.mobile-open {
        display: flex !important;
        transform: translateX(0) !important;
      }

      /* Collapse right sidebar chat panel off-screen */
      #sidebar-right {
        position: fixed !important;
        display: none !important;
        top: 60px !important;
        right: 0 !important;
        width: 280px !important;
        height: calc(100vh - 60px) !important;
        z-index: 1009 !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-left: 1.5px solid rgba(182, 0, 255, 0.35) !important;
        box-shadow: -10px 0 25px rgba(0, 0, 0, 0.5) !important;
      }
      #sidebar-right.mobile-open {
        display: flex !important;
        transform: translateX(0) !important;
      }
      #menu-extras {
        display: flex !important;
      }
      #sidebar-extras {
        position: fixed !important;
        display: none !important;
        top: 60px !important;
        right: 0 !important;
        width: 260px !important;
        height: calc(100vh - 60px) !important;
        z-index: 1009 !important;
        background: var(--bg-panel) !important;
        border-left: 1.5px solid rgba(182, 0, 255, 0.35) !important;
        box-shadow: -10px 0 25px rgba(0, 0, 0, 0.5) !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        flex-direction: column !important;
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        gap: 20px !important;
        overflow-y: auto !important;
      }
      #sidebar-extras.mobile-open {
        display: flex !important;
        transform: translateX(0) !important;
      }

      /* Center main section adaptive scrolling */
      #center-content {
        padding: 15px !important;
        overflow-y: auto !important;
        width: 100% !important;
        box-sizing: border-box;
      }
      .category-tabs-container {
        justify-content: flex-start !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-bottom: 15px !important;
        flex-wrap: nowrap !important;
        scroll-behavior: smooth;
        scrollbar-width: thin;
      }

      /* Mobile Symmetrical Grid layouts */
      .featured-games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
      }
      .games-grid, .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 12px !important;
      }
      .tournament-hero-card {
        grid-template-columns: 1fr !important;
        padding: 15px !important;
        gap: 15px !important;
        text-align: center;
      }
      .tournament-info-left {
        flex-direction: column !important;
        gap: 10px !important;
        border-right: none !important;
        padding-right: 0 !important;
      }
      .tournament-countdown-display {
        justify-content: center !important;
      }

      /* Modals adaptive sizing */
      .modal-content {
        width: 95% !important;
        max-width: 100% !important;
        padding: 15px !important;
        margin: 10px auto !important;
      }
      #game-details-modal .modal-content {
        flex-direction: column !important;
        height: auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
      }

      /* Hide side leaderboards during active mobile play focus */
      .play-layout {
        flex-direction: column !important;
      }
      .side-leaderboard {
        display: none !important;
      }
      .game-iframe-wrapper {
        width: 100% !important;
        height: 100% !important;
      }
    }

/* CSP migration: replaces the legacy onfocus/onblur border swap on the
   dashboard games search input (#dashboard-games-search). The !important
   beats the data-style applied border, matching the original inline order. */
#dashboard-games-search:focus {
  border-color: var(--pink-accent) !important;
}
