/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-anchor: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #090d1d !important;
    background-color: #090d1d !important;
    color: #ffffff;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    scroll-behavior: auto;
    overflow-anchor: none;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none !important;
}

/* Modal Base Styles */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-content {
    background: #070b23 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 !important;
    width: 400px !important;
    max-width: 90vw !important;
    color: #fff !important;
    position: relative !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    line-height: 1;
    font-weight: 300;
    transition: opacity 0.2s ease;
    opacity: 0.8;
}

.modal-close:hover {
    opacity: 1;
}

/* Force modal styles to override any conflicts */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.modal-content {
    background: #070b23 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 !important;
    width: 400px !important;
    max-width: 90vw !important;
    color: #fff !important;
    position: relative !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
    margin: 0 !important;
    transform: none !important;
}

/* Friends Modal Override - Seamless Single Container */
.modal-content.friends-modal {
    width: 800px !important;
    background: #262522 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
}

/* HEADER IS TRANSPARENT - NO BACKGROUND - NO BORDER */
.friends-modal .modal-header {
    background: transparent !important;
    background-color: transparent !important;
    padding: 20px 24px !important;
    border: 0 !important;
    border-bottom: 0 !important;
}

.friends-modal .modal-header h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #fff !important;
    letter-spacing: -0.02em !important;
}

.friends-modal .close-btn {
    color: #8b96a5 !important;
    font-size: 24px !important;
    transition: all 0.2s !important;
}

/* Login Modal Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
}

.form-group input {
    background: #090d1d;
    border: 1px solid #2a3845;
    border-radius: 8px;
    padding: 12px 14px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    border-color: #4a7dff;
}

.form-group input::placeholder {
    color: #6b8199;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.success-message {
    background: rgba(115, 221, 42, 0.1);
    border: 1px solid rgba(115, 221, 42, 0.3);
    color: #73dd2a;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.submit-button {
    background: #73dd2a !important;
    color: #000000 !important;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-button:hover {
    background: #66c625 !important;
    transform: translateY(-1px);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
    color: #6b8199;
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a3845;
}

.provider-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.provider-button {
    background: #090d1d;
    border: 1px solid #2a3845;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-button:hover {
    background: #2a3845;
    border-color: #3a4855;
}

.switch-mode {
    color: #9ca3af;
    font-size: 13px;
    text-align: center;
    margin-top: 16px;
}

.switch-button {
    background: none;
    border: none;
    color: #4a7dff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    transition: opacity 0.2s ease;
}

.switch-button:hover {
    opacity: 0.8;
}

.friends-modal .close-btn:hover {
    color: #fff !important;
    transform: rotate(90deg) !important;
}

.friends-tabs {
    padding: 0 24px !important;
    background: #262522 !important;
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    display: flex !important;
    gap: 0 !important;
    margin-bottom: 8px !important;
}

.tab-btn {
    padding: 12px 20px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: #8b96a5 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    position: relative !important;
}

.tab-btn:hover:not(.active) {
    color: #b1bad3 !important;
    background: transparent !important;
}

.tab-btn.active {
    color: #3a3a3a !important;
    border-bottom-color: #3a3a3a !important;
    background: transparent !important;
}

.friends-content {
    padding: 0 !important;
    background: #262522 !important;
    min-height: 400px !important;
    border: none !important;
}

.friends-modal .friend-item,
.friends-list .friend-item,
.search-results .friend-item {
    padding: 16px 24px !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: all 0.2s !important;
}

.friends-modal .friend-item:hover,
.friends-list .friend-item:hover,
.search-results .friend-item:hover {
    background: rgba(0, 231, 1, 0.05) !important;
    padding-left: 24px !important;
}

.friend-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #00e701 0%, #00b001 100%) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(0, 231, 1, 0.3) !important;
}

.friend-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
}

.friend-status {
    font-size: 13px !important;
    color: #8b96a5 !important;
}

.friend-status.online {
    color: #00e701 !important;
}

.search-box {
    background: transparent !important;
    padding: 16px 24px !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: none !important;
    gap: 12px !important;
    display: flex !important;
    margin-bottom: 16px !important;
}

.search-input {
    flex: 1 !important;
    padding: 12px 16px !important;
    background: #1a2c38 !important;
    border: 1px solid #1a2c38 !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
}

.search-input:focus {
    outline: none !important;
    border-color: #3a3a3a !important;
    background: #0c0e1d !important;
    box-shadow: 0 0 0 3px rgba(58, 58, 58, 0.1) !important;
}

.search-input::placeholder {
    color: #6b7280 !important;
}

.search-btn {
    padding: 12px 28px !important;
    border-radius: 8px !important;
    background: #00e701 !important;
    color: #000 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.search-btn:hover:not(:disabled) {
    background: #00ff11 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 231, 1, 0.4) !important;
}

.search-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-add,
.btn-accept {
    background: #1475e1 !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-add:hover:not(:disabled),
.btn-accept:hover:not(:disabled) {
    background: #1a85ff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(20, 117, 225, 0.3) !important;
}

.btn-remove,
.btn-reject,
.btn-cancel {
    background: #253544 !important;
    color: #9ca3af !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-remove:hover:not(:disabled),
.btn-reject:hover:not(:disabled),
.btn-cancel:hover:not(:disabled) {
    background: #2d3f51 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.friends-list,
.search-results,
.search-results-list {
    gap: 0 !important;
    border: none !important;
}

.friends-modal .message {
    padding: 12px 24px !important;
    border-radius: 6px !important;
    margin: 0 24px 16px 24px !important;
    border: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.message-success {
    background: rgba(0, 231, 1, 0.12) !important;
    color: #00e701 !important;
}

.message-success::before {
    content: "✓" !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.message-error {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
}

.message-error::before {
    content: "⚠" !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.message-info {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #3b82f6 !important;
}

.message-info::before {
    content: "ℹ" !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

.empty-state,
.loading {
    text-align: center !important;
    padding: 80px 40px !important;
    color: #6b7280 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
}

.friends-content::-webkit-scrollbar {
    width: 8px !important;
}

.friends-content::-webkit-scrollbar-track {
    background: transparent !important;
}

.friends-content::-webkit-scrollbar-thumb {
    background: rgba(0, 231, 1, 0.2) !important;
    border-radius: 4px !important;
}

.friends-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 231, 1, 0.3) !important;
}

/* Header Styles */
.app-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #070b23 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    padding: 12px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    width: 100% !important;
    overflow: visible !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
    min-width: 150px;
}

.menu-btn {
    background: none;
    border: none;
    color: #b1bad3;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.nav-tabs {
    display: flex;
    gap: 8px;
}

.nav-tab {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-tab.active {
    background: #3673d9;
    color: #000;
}

.nav-tab:not(.active) {
    background: #1a2c38;
    color: #b1bad3;
}

.stake-logo {
    display: flex;
    align-items: baseline;
}

.stake-logo .logo-main {
    font-family: 'Brush Script MT', cursive;
    font-size: 28px;
    color: #ffffff;
    font-weight: normal;
    letter-spacing: 0.5px;
}

.stake-logo .logo-sub {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #ffffff;
    margin-left: 3px;
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 150px;
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: nowrap;
}

.balance-display {
    color: #00d4aa;
    font-weight: 600;
    font-size: 16px;
}

.header-btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: #1576e2;
    color: #ffffff;
    min-width: 70px;
    text-align: center;
    white-space: nowrap;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-btn:hover {
    background: #0d5bb8 !important;
    background-color: #0d5bb8 !important;
    transform: translateY(-1px);
}

.login-btn {
    background: #1576e2 !important;
    background-color: #1576e2 !important;
    color: #ffffff !important;
    border: none;
}

.header-right .register-btn {
    background: #1576e2 !important;
    background-color: #1576e2 !important;
    color: #ffffff !important;
    /* Override any other register-btn styles to match header buttons */
    padding: 8px 12px !important;
    height: 36px !important;
    min-width: 70px !important;
    font-size: 13px !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

/* Main Layout */
.app-layout {
    display: flex;
    height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    padding: 16px 0;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .sidebar-item span:not(.sidebar-icon) {
    display: none;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    color: #556b7d;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 16px;
    margin-bottom: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    margin: 2px 8px;
}

.sidebar-item:hover { background: inherit; color: inherit; }

.sidebar-item.active {
    background: #e0e0e0;
    color: #333;
    border-right: 3px solid #3a3a3a;
}

.sidebar-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

/* Dropdown Styles */
.sidebar-dropdown {
    margin-bottom: 8px;
}

.sidebar-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #a8b2c8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
    margin: 2px 8px;
}

.sidebar-dropdown-header:hover { background: inherit; color: inherit; }

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.2s;
    font-size: 10px;
}

.sidebar-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 20px;
}

.sidebar-dropdown.open .sidebar-dropdown-content {
    max-height: 200px;
}

/* Wallet Modal Styles */
.wallet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.wallet-modal {
    background: #02031c;
    border-radius: 16px;
    padding: 24px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.wallet-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.wallet-icon {
    font-size: 20px;
}

.wallet-actions {
    display: flex;
    gap: 12px;
}

.wallet-action-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.wallet-action-btn:hover { color: inherit; }

.copy-icon, .refresh-icon {
    font-size: 14px;
}

.wallet-balance {
    text-align: center;
    margin-bottom: 24px;
}

.balance-usd {
    font-size: 36px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
}

.balance-sol {
    font-size: 16px;
    color: #999;
    font-weight: 500;
}

.wallet-address {
    text-align: center;
    margin-bottom: 24px;
}

.address-display {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #fff;
    word-break: break-all;
}

.no-wallet {
    color: #666;
    font-style: italic;
}

.wallet-buttons {
    display: flex;
    gap: 12px;
}

.wallet-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid;
    background: #1a1a1a;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.add-funds-btn {
    border-color: #00d4aa;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.3);
}

.add-funds-btn:hover { background: inherit; box-shadow: none; }

.cash-out-btn {
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.cash-out-btn:hover { background: inherit; box-shadow: none; }

.wallet-loading {
    text-align: center;
    margin-top: 16px;
    color: #999;
    font-size: 14px;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top: 2px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Animated Minesweeper Background */
/* Removed minesweeper background */

.grid-container {
    display: grid;
    grid-template-columns: repeat(50, 1fr);
    grid-template-rows: repeat(35, 1fr);
    width: 100%;
    height: 100%;
    gap: 8px;
    padding: 5px;
}

.grid-tile {
    background: #262522;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-height: 12px;
    cursor: pointer;
    box-shadow: 0 4px 0 0 #1d1d1b, 0 6px 8px rgba(0, 0, 0, 0.3);
}

.grid-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 0 #1d1d1b, 0 8px 12px rgba(0, 0, 0, 0.35);
}

.grid-tile:active,
.grid-tile.pressed {
    background: #1e3a1e;
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.grid-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.1), transparent);
    transition: left 0.6s ease;
}

.grid-tile.clicking::before {
    left: 100%;
}

.grid-tile.revealed {
    background: #1e3a1e;
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.grid-tile.bomb {
    background: #302e2b;
    color: #fff;
    animation: bombReveal 0.8s ease-out, bombPulse 4s ease-in-out infinite 0.8s;
    box-shadow: 0 0 25px rgba(255, 68, 68, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9);
}

.grid-tile.diamond {
    background: #302e2b;
    color: #000;
    animation: diamondReveal 1s ease-out, diamondSparkle 5s ease-in-out infinite 1s;
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.grid-tile.number {
    background: linear-gradient(135deg, #2a3441, #364555, #2a3441);
    color: #00d4aa;
    font-weight: 800;
    animation: numberReveal 0.5s ease-out;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 8px rgba(0, 212, 170, 0.8);
}

.grid-tile.clicking {
    animation: tileClick 0.3s ease-out;
}

/* Enhanced Background Animations */
@keyframes gridFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.25; 
        filter: brightness(1);
    }
    20% { 
        transform: translateY(-2px) translateX(1px) rotate(0.2deg); 
        opacity: 0.30; 
        filter: brightness(1.1);
    }
    40% { 
        transform: translateY(1px) translateX(-1px) rotate(-0.1deg); 
        opacity: 0.28; 
        filter: brightness(0.95);
    }
    60% { 
        transform: translateY(-1px) translateX(2px) rotate(0.3deg); 
        opacity: 0.32; 
        filter: brightness(1.05);
    }
    80% { 
        transform: translateY(2px) translateX(-0.5px) rotate(-0.2deg); 
        opacity: 0.22; 
        filter: brightness(0.9);
    }
}

@keyframes tileClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); background: #2a2a2a; }
    100% { transform: scale(0.95); }
}

@keyframes bombReveal {
    0% { 
        transform: scale(1); 
        background: #1a1a1a; 
        box-shadow: none; 
    }
    30% { 
        transform: scale(1.15); 
        background: #ff6666; 
        box-shadow: 0 0 25px rgba(255, 68, 68, 0.6); 
    }
    100% { 
        transform: scale(0.95); 
        background: linear-gradient(135deg, #ff4444, #cc0000); 
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.3); 
    }
}

@keyframes bombPulse {
    0%, 100% { 
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.3); 
        transform: scale(0.95); 
    }
    50% { 
        box-shadow: 0 0 25px rgba(255, 68, 68, 0.5); 
        transform: scale(1); 
    }
}

@keyframes diamondReveal {
    0% { 
        transform: scale(1) rotate(0deg); 
        background: #1a1a1a; 
        box-shadow: none; 
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
        background: #00f5cc; 
        box-shadow: 0 0 30px rgba(0, 212, 170, 0.6); 
    }
    100% { 
        transform: scale(0.95) rotate(360deg); 
        background: linear-gradient(135deg, #00d4aa, #00f5cc, #00d4aa); 
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.4); 
    }
}

@keyframes diamondSparkle {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 212, 170, 0.4); 
        filter: brightness(1); 
    }
    25% { 
        box-shadow: 0 0 30px rgba(0, 245, 204, 0.6); 
        filter: brightness(1.2); 
    }
    50% { 
        box-shadow: 0 0 35px rgba(0, 212, 170, 0.7); 
        filter: brightness(1.3); 
    }
    75% { 
        box-shadow: 0 0 25px rgba(0, 245, 204, 0.5); 
        filter: brightness(1.1); 
    }
}

@keyframes numberReveal {
    0% { 
        transform: scale(1); 
        background: #1a1a1a; 
        color: transparent; 
    }
    50% { 
        transform: scale(1.05); 
        background: #404040; 
    }
    100% { 
        transform: scale(0.95); 
        background: linear-gradient(135deg, #333333, #404040); 
        color: #00d4aa; 
    }
}

@keyframes sparkleFloat {
    0% { 
        transform: translateY(0px) scale(0);
        opacity: 0;
    }
    20% { 
        transform: translateY(-10px) scale(1);
        opacity: 1;
    }
    100% { 
        transform: translateY(-30px) scale(0);
        opacity: 0;
    }
}

/* Homepage styles moved to homescrean.css */

/* Homepage responsive styles moved to homescrean.css */

/* Game Screen - prevent scrolling and extra content */
#gameScreen {
    min-height: 100vh;
    height: auto;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

#gameScreen .app-header {
    flex-shrink: 0;
}

/* Game Layout with Chat - Main container for game + chat */
.game-layout-with-chat {
    display: flex !important;
    flex-direction: row !important;
    flex: 1 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    position: relative;
    z-index: 5;
}

/* Show footer on both homepage and game page */
footer {
    display: block !important;
    margin-top: auto !important;
}

/* Ensure footer is visible on both pages */
#homeScreen footer,
#gameScreen footer,
body footer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-top: auto !important;
}

/* Ensure nothing appears below game-layout-with-chat except modals, footer, and recent games */
.game-layout-with-chat ~ *:not(.modal-overlay):not(footer):not(.recent-games-section) {
    display: none !important;
}

/* Game Chat Panel - Now inside left sidebar, should take full width */
.game-sidebar-left .game-chat-panel {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    position: relative !important;
    padding: 0 !important;
}

/* Old standalone game-chat-panel (shouldn't exist, but just in case) */
.game-layout-with-chat > .game-chat-panel {
    display: none !important;
}

/* Game Layout - Left side (controls + board) */
.game-layout {
    display: flex !important;
    flex: 1;
    height: 100%;
    overflow: visible !important;
    flex-shrink: 1;
    min-width: 0;
    background-color: #090d1d !important;
    position: relative;
    z-index: 6;
}

/* Game Controls Sidebar */
.game-controls {
    width: 320px;
    background: #262522 !important;
    background-color: #262522 !important;
    border-right: 1px solid #262522;
    padding: 20px;
    overflow-y: auto;
}

/* First control group needs extra margin to clear header */
.game-controls .control-group:first-child {
    margin-top: 70px;
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    background: #1a1a1a !important;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    border: 2px solid #0f0f0f;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.game-controls .mode-toggle {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
}

.control-group .mode-toggle {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
}

div.mode-toggle {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
}

/* Hero Widgets */
.hero-widget {
    background: #262522 !important;
    background-color: #262522 !important;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #3a3a3a;
}

.hero-widget-header {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.widget-btn {
    width: 100%;
    padding: 10px 16px;
    background: #00e701;
    color: #000000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.widget-btn:hover {
    background: #00ff44;
}

.mode-btn {
    flex: 1;
    padding: 10px 8px;
    background: rgba(0, 0, 0, 0.15) !important;
    background-color: rgba(0, 0, 0, 0.15) !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    color: #8b96a5 !important;
    cursor: pointer;
    border-radius: 0;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.1s;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -1px 0 rgba(0,0,0,0.6) !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
}

.mode-btn:hover:not(.active):not(:disabled) {
    background: rgba(0, 0, 0, 0.25) !important;
    background-color: rgba(0, 0, 0, 0.25) !important;
    color: #8b96a5 !important;
}

.mode-btn:focus,
.mode-btn:focus-visible,
.mode-btn:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
}

.mode-btn.active {
    background: #8bc35d !important;
    background-color: #8bc35d !important;
    color: #000 !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.35) !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
}

.mode-btn.active:focus,
.mode-btn.active:focus-visible,
.mode-btn.active:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
}

.mode-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Control Groups */
.control-group {
    margin-bottom: 20px;
}

.control-label {
    color: #8b96a5;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.bet-input-container {
    position: relative;
    background: #0f2e16;
    border: 1px solid #1a2c38;
    border-radius: 6px;
    display: flex;
    align-items: center;
    height: 40px;
}

.bet-currency {
    padding: 0 12px;
    color: #b1bad3;
    font-weight: 600;
    font-size: 14px;
}

.bet-amount-input {
    flex: 1;
    padding: 0 8px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.bet-amount-input:focus {
    outline: none;
}

.bet-amount-display {
    padding: 0 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    background: #fbbf24;
    border-radius: 4px;
    margin-right: 8px;
}

.bet-modifiers {
    display: flex;
    border-left: 1px solid #1a2c38;
}

.bet-modifier {
    padding: 0 12px;
    background: transparent;
    border: none;
    color: #b1bad3;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    height: 100%;
    transition: all 0.2s;
}

.bet-modifier:first-child {
    border-right: 1px solid #1a2c38;
}

.bet-modifier:hover { background: inherit; color: inherit; }

/* Select Dropdown */
.mines-select {
    width: 100%;
    padding: 10px 12px;
    background: #0f2e16;
    border: 1px solid #1a2c38;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}

/* Game Action Button */
.game-action-btn {
    width: 100%;
    padding: 14px;
    background: #4a7dff !important;
    background-color: #4a7dff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 20px;
    box-shadow: none !important;
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
}

.game-action-btn:focus,
.game-action-btn:focus-visible,
.game-action-btn:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    border: none !important;
}

.game-action-btn:hover:not(:disabled) {
    background: #3a6def !important;
    background-color: #3a6def !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.game-action-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none !important;
}

.game-action-btn:disabled {
    background: rgba(0, 0, 0, 0.15) !important;
    color: #5f6c7a !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Cancel Search Button - Red styling */
.game-action-btn.cancel-search-btn {
    background: #ef4444 !important;
    background-color: #ef4444 !important;
    box-shadow: none !important;
}

.game-action-btn.cancel-search-btn:hover {
    background: #f87171 !important;
    background-color: #f87171 !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

.game-action-btn.cancel-search-btn:active {
    transform: translateY(0);
    box-shadow: none !important;
}

/* Cancel search button should be red */
.game-window-sidebar-left .game-action-btn.cancel-search-btn,
#gameScreen .game-window-sidebar-left .game-action-btn.cancel-search-btn {
    background: #ff4444 !important;
    background-color: #ff4444 !important;
    color: #ffffff !important;
}

/* Game Board Container */
#gameScreen .game-content {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #090d1d !important;
    background-color: #090d1d !important;
    padding: 40px;
    position: relative;
    overflow: visible !important;
    width: 100%;
    min-height: 100vh;
    z-index: 5;
    visibility: visible !important;
    opacity: 1 !important;
}

.game-content::before {
    display: none;
}

#gameScreen .game-content > * {
    position: relative;
    z-index: 10 !important;
}

/* Game Board */
.game-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 12px;
    width: 600px;
    height: 600px;
    margin-top: 100px;
    margin-bottom: 28px;
    box-sizing: border-box;
}

/* Game Tiles */
.game-tile {
    background: #1a2743 !important;
    background-color: #1a2743 !important;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 0 0 #1d1d1b, 0 6px 8px rgba(0, 0, 0, 0.3);
}

.game-tile:hover { border-color: #535353; transform: translateY(-2px); box-shadow: 0 6px 0 0 #1d1d1b, 0 8px 12px rgba(0, 0, 0, 0.35); }

.game-tile.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.game-tile.shake {
    animation: shake 0.4s ease-in-out;
}

.game-tile.revealed {
    background: #101010;
    cursor: default;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(2px);
}

.game-tile.revealed:hover {
    transform: translateY(2px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    border-color: transparent;
}

.game-tile.revealed.own-mine {
    background: #101010;
    opacity: 0.7;
}

.game-tile.safe {
    background-image: url('dia.png');
    background-size: 70% 70%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #101010;
}

.game-tile.mine {
    background-image: url('bomb2.png');
    background-size: 70% 70%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #101010;
}

.game-tile.mine-placed {
    background-image: url('bomb2.png');
    background-size: 70% 70%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.game-tile.own-mine {
    background-image: url('bomb2.png');
    background-size: 70% 70%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
}

/* Login Screen */
#loginScreen {
    align-items: center;
    justify-content: center;
    background: #0f2e16;
}

#loginScreen.active {
    display: flex;
}

.login-container {
    text-align: center;
    background: #1a2c38;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #1a2c38;
    width: 400px;
}

.stake-brand h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    font-style: italic;
}

.stake-brand p {
    color: #b1bad3;
    margin-bottom: 32px;
    font-size: 16px;
}

.form-tabs {
    display: flex;
    margin-bottom: 24px;
    background: #0f2e16;
    border-radius: 6px;
    padding: 3px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    color: #b1bad3;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #1a2c38;
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content input {
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    background: #0f2e16;
    border: 1px solid #1a2c38;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.tab-content input:focus {
    outline: none;
    border-color: #3a3a3a;
}

/* Primary Button */
.primary-btn {
    width: 100%;
    padding: 14px;
    background: #00e701;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover { background: inherit; }

.google-btn {
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #333;
    border: 1px solid #dadce0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.google-btn:hover { background: inherit; box-shadow: none; }

.auth-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 8px 0;
    font-style: italic;
}

.divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: #b1bad3;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #1a2c38;
}

.divider span {
    padding: 0 16px;
}

/* Homepage layout styles moved to homescrean.css */

.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
    width: 100%;
}

.game-card {
    background: #1a2c38;
    border: 1px solid #1a2c38;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.game-card:hover { border-color: inherit; transform: none; }

.game-card-image {
    width: 100%;
    height: 180px;
    background: #0f2e16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card-footer {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-card-icon {
    font-size: 20px;
}

.game-card-title {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.game-card-users {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #00e701;
    border-radius: 50%;
}

.user-count {
    color: #00e701;
    font-size: 14px;
    font-weight: 600;
}

/* Game Mode Screen */
.mode-selection-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.mode-tabs {
    display: flex;
    background: #0f2e16;
    border-radius: 6px;
    padding: 3px;
    margin-bottom: 32px;
}

.mode-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #b1bad3;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.mode-tab.active {
    background: #1a2c38;
    color: #fff;
}

.time-controls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.time-control-card {
    background: #1a2c38;
    border: 1px solid #1a2c38;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-control-card:hover { border-color: inherit; transform: none; }

.time-icon {
    font-size: 32px;
}

.time-details {
    text-align: center;
}

.time-value {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.time-name {
    font-size: 14px;
    color: #b1bad3;
    font-weight: 500;
}

.players-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.players-count .count {
    color: #00e701;
    font-size: 14px;
    font-weight: 600;
}

/* Deathmatch Pairing Grid */
.deathmatch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 24px;
    margin: 40px auto;
    max-width: 480px;
    width: 100%;
    justify-items: center;
    align-items: center;
}

.deathmatch-cell {
    background: #1a2c38;
    border: 2px solid #1a2c38;
    border-radius: 12px;
    width: 120px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    position: relative;
}

.deathmatch-cell:hover { border-color: inherit; box-shadow: none; background: inherit; color: inherit; }

.cell-bet {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #00e701;
}

.cell-time {
    font-size: 15px;
    color: #b1bad3;
    font-weight: 500;
}

@media (max-width: 600px) {
    .deathmatch-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(5, 1fr);
        gap: 16px;
        max-width: 100%;
    }
    .deathmatch-cell {
        width: 100px;
        height: 80px;
        font-size: 16px;
    }
    .cell-bet {
        font-size: 18px;
    }
    .cell-time {
        font-size: 13px;
    }
}

/* Clocks Row */
.clocks-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}
.clock-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.clock {
    background: #1a2c38;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    padding: 8px 18px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #1a2c38;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.clock-player.active {
    background: #3a3a3a;
    color: #ffffff;
    border-color: #3a3a3a;
}
.clock-player.low {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}
.clock-player.paused {
    opacity: 0.6;
}
.clock-placement {
    background: #22384a;
    color: #fff;
    border-color: #3a3a3a;
}
@media (max-width: 600px) {
    .clocks-row {
        flex-direction: column;
        gap: 12px;
    }
    .clock {
        min-width: 90px;
        font-size: 15px;
        padding: 6px 10px;
    }
}

/* PvP Status Bar - Hexagonal badge style matching reference (visual-only) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&display=swap');
@import url('./homepage-cyberpunk.css');

.pvp-status-bar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: min(20px, 2vw);
    width: 100%;
    max-width: min(550px, 100%, 60vh);
    margin: 0 auto min(15px, 1.5vh) auto;
    padding: 0;
    box-sizing: border-box;
}

.pvp-status-bar .player-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(60px, 8vh);
    min-width: 0;
    overflow: hidden;
}

.pvp-status-bar .hex-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.pvp-status-bar .badge-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: min(12px, 1.5vw);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.2) 0%,
        rgba(0, 150, 120, 0.3) 25%,
        rgba(0, 212, 170, 0.2) 50%,
        rgba(0, 150, 120, 0.3) 75%,
        rgba(0, 212, 170, 0.2) 100%);
    clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
    padding: min(8px, 1vh) min(12px, 1.5vw);
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
    box-shadow:
        0 0 20px rgba(0, 212, 170, 0.3),
        inset 0 0 20px rgba(0, 150, 120, 0.2);
    min-width: 0;
    overflow: hidden;
}

/* Opponent badge (right panel) - Red gradient */
.pvp-status-bar .player-panel.right .badge-content {
    background: linear-gradient(135deg, 
        rgba(255, 68, 68, 0.3) 0%, 
        rgba(220, 38, 38, 0.4) 25%, 
        rgba(255, 68, 68, 0.3) 50%, 
        rgba(220, 38, 38, 0.4) 75%, 
        rgba(255, 68, 68, 0.3) 100%);
    box-shadow: 
        0 0 20px rgba(255, 68, 68, 0.4),
        inset 0 0 20px rgba(220, 38, 38, 0.3);
}

.pvp-status-bar .badge-content > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.pvp-status-bar .player-name {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-weight: 700;
    font-size: min(13px, 2vh);
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pvp-status-bar .player-coins {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: min(8px, 1vh);
    flex-shrink: 0;
}

.pvp-status-bar .coin-icon {
    width: min(18px, 2.5vh);
    height: min(18px, 2.5vh);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 900;
    color: #000;
    text-shadow: none;
}

.pvp-status-bar .coin-icon.gc-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border: 1.5px solid #ffe55c;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.pvp-status-bar .coin-icon.dc-icon {
    background: linear-gradient(135deg, #00e701 0%, #00b001 100%);
    border: 1.5px solid #00ff44;
    box-shadow: 0 0 8px rgba(0, 231, 1, 0.5);
}

.pvp-status-bar .coin-amount {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-weight: 700;
    font-size: min(14px, 2vh);
    letter-spacing: 0.3px;
}

.pvp-status-bar .player-coins .gc-icon ~ .coin-amount {
    color: #ffd700;
}

/* Opponent badge specific styling - keeping original coin colors */

.pvp-status-bar .player-coins .dc-icon ~ .coin-amount {
    color: #00e701;
}

.pvp-status-bar .round-timer {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    text-align: center;
    min-width: min(180px, 20vw);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: min(12px, 1.5vw);
    flex-shrink: 0;
}

.pvp-status-bar .timer-single {
    font-size: min(52px, 7vh);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.pvp-status-bar .timer-player {
    font-size: min(28px, 4vh);
    color: #b1bad3;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 10px rgba(177, 186, 211, 0.3);
}

.pvp-status-bar .timer-player.active {
    font-size: 32px;
    color: #00e701;
    text-shadow: 0 0 20px rgba(0, 231, 1, 0.6);
}

.pvp-status-bar .timer-separator {
    font-size: 16px;
    color: #556b7d;
    font-weight: 700;
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-layout-with-chat {
        flex-direction: column;
    }

    .game-sidebar-left {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        height: 400px;
        border-right: none;
        border-bottom: 1px solid #1a1816;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #1a2c38;
    }

    .game-layout {
        flex-direction: column;
    }

    .game-controls {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #1a2c38;
    }

    .game-board {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }

    .game-sidebar-left {
        height: 300px;
    }
}

/* Enhanced Wallet Modal Styles */
.wallet-modal .modal-content {
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.wallet-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #444;
}

.wallet-modal .modal-header {
    background: linear-gradient(90deg, #00d4aa, #00b894);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 20px;
}

.wallet-modal .modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wallet-address-section {
    background: #1a2c38;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #1a2c38;
}

.wallet-address-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #b1bad3;
}

.wallet-address-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-address {
    flex: 1;
    padding: 8px 12px;
    background: #0f2e16;
    border: 1px solid #1a2c38;
    border-radius: 6px;
    color: #b1bad3;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

.copy-btn {
    background: #1a2c38;
    border: 1px solid #3e5564;
    color: #b1bad3;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.copy-btn:hover { background: inherit; }

.balances-section {
    background: #1a2c38;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #1a2c38;
}

.balances-section h3 {
    margin-bottom: 12px;
    color: #b1bad3;
    font-size: 16px;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #1a2c38;
}

.balance-item:last-child {
    border-bottom: none;
}

.balance-label {
    font-weight: 500;
    color: #b1bad3;
}

.balance-value {
    font-weight: 600;
    color: #00d4aa;
}

.wallet-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wallet-actions .primary-btn {
    flex: 1;
    min-width: 120px;
}

.wallet-actions .secondary-btn {
    flex: 1;
    min-width: 120px;
    background: #1a2c38;
    border: 1px solid #3e5564;
    color: #b1bad3;
}

.wallet-actions .secondary-btn:hover { background: inherit; }

/* Funding Modal Styles */
.funding-modal .modal-content {
    max-width: 600px;
}

.funding-modal ol {
    margin: 16px 0;
    padding-left: 20px;
}

.funding-modal li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.funding-modal code {
    background: #1a2c38;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #00d4aa;
    word-break: break-all;
}

.funding-options {
    background: #1a2c38;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #1a2c38;
    margin-top: 16px;
}

.funding-options ul {
    list-style: none;
    padding: 0;
}

.funding-options li {
    margin-bottom: 8px;
}

.funding-options a {
    color: #00d4aa;
    text-decoration: none;
}

.funding-options a:hover { text-decoration: none; }

/* Withdraw Modal Styles */
.withdraw-modal .form-group {
    margin-bottom: 16px;
}

.withdraw-modal label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #b1bad3;
}

.withdraw-modal input {
    width: 100%;
    padding: 10px 12px;
    background: #1a2c38;
    border: 1px solid #1a2c38;
    border-radius: 6px;
    color: #b1bad3;
    font-size: 14px;
}

.withdraw-modal input:focus {
    outline: none;
    border-color: #00d4aa;
}

.withdraw-modal .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.withdraw-modal .form-actions button {
    flex: 1;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

/* Enhanced Wallet Components */
.wallet-connected {
    padding: 20px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.address-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.network-badge {
    background: #00d4aa;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.balances-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.balances-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.refresh-btn {
    background: #444;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 16px;
}

.refresh-btn:hover { color: inherit; }

.friends-count {
    color: #999;
    white-space: nowrap;
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.balance-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.balance-card:hover { transform: none; box-shadow: none; }

.balance-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.balance-details {
    text-align: center;
}

.balance-label {
    color: #999;
    font-size: 12px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    color: #00d4aa;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.balance-symbol {
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

.total-value {
    background: linear-gradient(90deg, #00d4aa, #00b894);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.total-label {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.total-amount {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    min-width: 140px;
}

.primary-action {
    background: linear-gradient(90deg, #00d4aa, #00b894);
    color: white;
}

.primary-action:hover { transform: none; box-shadow: none; }

.secondary-action {
    background: #444;
    color: #ccc;
    border: 1px solid #666;
}

.secondary-action:hover { background: inherit; color: inherit; border-color: inherit; }

.wallet-disconnected {
    padding: 40px;
    text-align: center;
}

.no-wallet-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.wallet-disconnected h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 20px;
}

.wallet-disconnected p {
    color: #999;
    margin-bottom: 30px;
    line-height: 1.5;
}

.fallback-section {
    border-top: 1px solid #444;
    padding-top: 30px;
    margin-top: 30px;
}

.fallback-section h4 {
    color: #fff;
    margin-bottom: 15px;
}

.fallback-balance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.balance-amount {
    font-size: 20px;
    font-weight: 700;
    color: #00d4aa;
}

.toast-success {
    background: #00d4aa;
}

.toast-error {
    background: #ff6b35;
}

.toast-info {
    background: #1e90ff;
}

/* Wallet Modal Styling */
.wallet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.wallet-modal {
    background: #02031c;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.wallet-icon {
    font-size: 24px;
}

.wallet-actions {
    display: flex;
    gap: 12px;
}

.wallet-action-btn {
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #cccccc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-action-btn:hover { background: inherit; border-color: inherit; color: inherit; }

.wallet-balance {
    text-align: center;
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #0a1419 0%, #1a1a23 100%);
    border-radius: 12px;
    border: 1px solid #2a2a35;
}

.balance-usd {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.balance-sol {
    font-size: 16px;
    color: #888888;
}

.wallet-address {
    text-align: center;
    margin: 16px 0;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.address-display {
    font-family: 'Courier New', monospace;
    color: #00d4aa;
    font-size: 14px;
}

.no-wallet {
    color: #888888;
    font-style: italic;
}

.wallet-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.wallet-btn {
    padding: 16px 24px;
    border-radius: 12px;
    border: 2px solid #00d4aa;
    background: transparent;
    color: #00d4aa;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wallet-btn:hover { background: inherit; color: inherit; transform: none; box-shadow: none; }

.wallet-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cash-out-btn {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.cash-out-btn:hover { background: inherit; color: inherit; box-shadow: none; }

.transactions-btn {
    border-color: #64748b;
    color: #64748b;
    font-size: 14px;
    padding: 12px 20px;
}

.transactions-btn:hover { background: inherit; color: inherit; box-shadow: none; }

.transaction-history {
    margin-top: 24px;
    border-top: 1px solid #2a2a2a;
    padding-top: 24px;
}

.transaction-header h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.transaction-list {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 8px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #3a3a3a;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-type {
    font-weight: 600;
    color: #00d4aa;
    font-size: 14px;
}

.transaction-amount {
    color: #ffffff;
    font-weight: 500;
}

.transaction-details {
    text-align: right;
}

.transaction-date {
    color: #888888;
    font-size: 12px;
    margin-bottom: 4px;
}

.transaction-status {
    color: #00d4aa;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
}

.no-transactions {
    text-align: center;
    padding: 32px;
    color: #888888;
}

.wallet-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    color: #888888;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #3a3a3a;
    border-top: 2px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Game History Modal Styling */
.game-history-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.game-history-modal {
    background: #1a1a1a;
    border-radius: 16px;
    border: 1px solid #2a2a2a;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.game-history-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}

.game-history-modal h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: #888888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-modal-btn:hover { background: inherit; color: inherit; }

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #2a2a2a;
    border-radius: 8px;
}

.stats-summary .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-summary .stat-label {
    color: #888888;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.stats-summary .stat-value {
    color: #00d4aa;
    font-size: 18px;
    font-weight: 600;
}

.game-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.game-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 8px;
    background: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.game-history-item:hover { background: inherit; }

.game-history-item.win {
    border-left-color: #00d4aa;
}

.game-history-item.loss {
    border-left-color: #ff6b35;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-info .opponent {
    color: #ffffff;
    font-weight: 500;
}

.game-info .result {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.game-info .result.win {
    color: #00d4aa;
}

.game-info .result.loss {
    color: #ff6b35;
}

.game-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.game-details .bet-amount {
    color: #ffffff;
    font-weight: 500;
}

.game-details .game-date {
    color: #888888;
    font-size: 12px;
}

.no-games {
    text-align: center;
    padding: 40px;
    color: #888888;
}

.no-games p {
    margin: 0;
    font-size: 16px;
}

/* Leaderboard Modal Styling - Retro Aesthetic */
.leaderboard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    backdrop-filter: blur(4px);
}

.leaderboard-modal {
    background: #2e2c2a;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid rgba(0, 0, 0, 0.5);
    padding: 0;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.leaderboard-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 20px 24px;
    background: #7a8c5e;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

.leaderboard-modal h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.leaderboard-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-type-modal {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.leaderboard-type-modal:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.leaderboard-full-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px 24px;
    background: #2e2c2a;
}

.leaderboard-full-list::-webkit-scrollbar {
    width: 8px;
}

.leaderboard-full-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.leaderboard-full-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.leaderboard-full-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Removed conflicting leaderboard-item styles */

.no-data {
    text-align: center;
    padding: 40px;
    color: #888888;
    font-style: italic;
}

/* Statistics Display Styling */
.stat-display {
    display: inline-block;
    padding: 4px 8px;
    background: #2a2a2a;
    border-radius: 4px;
    color: #00d4aa;
    font-weight: 600;
    font-size: 14px;
}

.stat-label {
    color: #888888;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    margin-right: 8px;
}

/* Analytics Styling */
.opponent-analysis-list,
.time-of-day-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.opponent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #2a2a2a;
    border-radius: 6px;
}

.opponent-name {
    color: #ffffff;
    font-weight: 500;
}

.opponent-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 12px;
}

.opponent-stats .games {
    color: #888888;
}

.opponent-stats .win-rate {
    color: #00d4aa;
    font-weight: 600;
}

.time-of-day-stats {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    height: 100px;
    padding: 16px;
    background: #2a2a2a;
    border-radius: 8px;
}

.hour-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px;
}

.hour-bar {
    background: linear-gradient(to top, #00d4aa, #00f5cc);
    width: 20px;
    min-height: 4px;
    border-radius: 2px 2px 0 0;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.hour-label {
    color: #888888;
    font-size: 10px;
    margin-bottom: 2px;
}

.hour-games {
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
}

/* Loading States and Animations */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2a2a2a;
    border-top: 2px solid #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.skeleton {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error States */
.error-message {
    background: linear-gradient(135deg, #ff4444, #cc3333);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin: 8px 0;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    animation: errorSlideIn 0.3s ease-out;
}

.error-message.success {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.error-message.warning {
    background: linear-gradient(135deg, #ffa726, #ff9800);
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

@keyframes errorSlideIn {
    0% { transform: translateY(-10px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Enhanced Button States */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: none !important;
}

.btn:hover::before { left: 100%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #333333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}

/* Theme Toggle */
.theme-toggle {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.theme-toggle:hover { border-color: inherit; box-shadow: none; }

.theme-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #00d4aa;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.theme-toggle.light .theme-icon {
    transform: translateX(40px);
    background: #ffa726;
}

/* Homepage responsive styles moved to homescrean.css */ 
/* Profile Modal Styles */
#profileModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

#profileModal .wallet-modal-content {
    max-width: 700px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    background: #1a2c38;
    border-radius: 12px;
    border: 1px solid #1a2c38;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

#profileModal .modal-view {
    padding: 24px;
}

.profile-section {
    background: #0f2e16;
    border: 1px solid #1a2c38;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-user-section {
    background: linear-gradient(135deg, #1a2c38 0%, #1a2c38 100%);
    border: 1px solid #3a5568;
}

.profile-header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 231, 1, 0.3);
    border: 3px solid #00e701;
}

.avatar-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

.profile-details {
    flex: 1;
}

.profile-username {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.profile-email {
    font-size: 14px;
    color: #b1bad3;
    margin-bottom: 4px;
}

.profile-user-id {
    font-size: 12px;
    color: #7c8a9b;
    font-family: monospace;
}

.section-title {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a2c38;
}

.section-title-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.earnings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.earnings-item {
    text-align: center;
    padding: 18px 12px;
    background: #1a2c38;
    border: 1px solid #1a2c38;
    border-radius: 8px;
    transition: all 0.2s;
}

.earnings-item:hover {
    border-color: #3a5568;
    transform: translateY(-2px);
}

.earnings-label {
    font-size: 12px;
    color: #b1bad3;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.earnings-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.earnings-value.positive {
    color: #00e701;
}

.earnings-value.negative {
    color: #ff4757;
}

.earnings-value.neutral {
    color: #b1bad3;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #0f0f0f;
    padding: 12px;
    border-radius: 0;
    transition: all 0.1s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 8px;
}

.stat-item .control-label {
    color: #c7d0db;
    font-size: 12px;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item.highlight {
    background: rgba(0, 0, 0, 0.4);
    border-color: #0f0f0f;
}

.stat-label {
    font-size: 11px;
    color: #b1bad3;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.performance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #1a2c38;
    border: 1px solid #1a2c38;
    border-radius: 8px;
    transition: all 0.2s;
}

.performance-item:hover {
    border-color: #3a5568;
    transform: translateY(-2px);
}

.performance-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f2e16;
    border-radius: 8px;
}

.performance-details {
    flex: 1;
}

.performance-label {
    font-size: 11px;
    color: #b1bad3;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.account-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #1a2c38;
    border: 1px solid #1a2c38;
    border-radius: 8px;
}

.info-label {
    font-size: 13px;
    color: #b1bad3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.status-badge {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(0, 150, 120, 0.3) 100%);
    color: #00d4aa !important;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(0, 212, 170, 0.3);
    box-shadow: 0 2px 4px rgba(0, 212, 170, 0.2);
}

/* Scrollbar styling for profile modal */
#profileModal .wallet-modal-content::-webkit-scrollbar {
    width: 8px;
}

#profileModal .wallet-modal-content::-webkit-scrollbar-track {
    background: #0f2e16;
}

#profileModal .wallet-modal-content::-webkit-scrollbar-thumb {
    background: #1a2c38;
    border-radius: 4px;
}

#profileModal .wallet-modal-content::-webkit-scrollbar-thumb:hover {
    background: #3a5568;
}

/* Universal Currency Icon Component */
.currency-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

.currency-icon.gc-icon {
    background: #ffd700;
    box-shadow: 0 1px 3px rgba(255, 215, 0, 0.4);
}

.currency-icon.dc-icon {
    background: #00e701;
    box-shadow: 0 1px 3px rgba(0, 231, 1, 0.4);
}

/* Wallet Balance Display */
.wallet-balance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.balance-dc, .balance-gc, .balance-usd {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.balance-dc {
    color: #00ff00; /* Green for DC */
}

.balance-gc {
    color: #ffd700; /* Gold for GC */
}

.balance-usd {
    color: #ffffff; /* White for USD */
}

/* Header Currency Display */

.currency-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    justify-content: center;
}

.currency-balance {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    min-width: 60px;
    text-align: center;
}

.currency-symbol {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
}

/* Currency Switcher Styles - EXACT COPY of mode-btn styles */
.currency-switcher {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

.currency-switcher-home {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    width: 300px !important;
    margin-left: auto;
    margin-right: auto;
}

.currency-switcher-home .currency-switcher-buttons {
    display: flex;
    background: #090d1d;
    border-radius: 6px;
    padding: 3px;
    gap: 0;
    width: 100%;
}

.currency-switcher-buttons {
    display: flex;
    background: #090d1d;
    border-radius: 6px;
    padding: 3px;
    gap: 0;
}

.currency-switch-btn {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #b1bad3;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.currency-switch-btn.active {
    background: #4a7dff;
    color: #fff;
    border: 1px solid #4a7dff;
}

/* Currency switcher specific spacing */
.currency-switcher .currency-icon,
.currency-switcher-home .currency-icon {
    margin-right: 4px;
}

/* Game Currency Switcher - matches game controls styling */
.currency-switcher-game {
    margin-bottom: 20px;
}

.currency-switcher-game .currency-switcher-buttons {
    display: flex;
    background: #090d1d;
    border-radius: 6px;
    padding: 3px;
    gap: 0;
}

.currency-switcher-game .currency-switch-btn {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #b1bad3;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.currency-switcher-game .currency-switch-btn.active {
    background: #4a7dff;
    color: #fff;
    border: 1px solid #4a7dff;
}

.currency-switcher-game .currency-icon {
    margin-right: 4px;
}

/* Bet Amount Currency Icon */
.bet-currency-icon {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.bet-currency-icon .currency-icon {
    margin-right: 8px;
}

/* Expandable Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 60px;
    background: #070b23;
    border-right: 1px solid #1a2c38;
    transition: width 0.3s ease;
    z-index: 900;
    overflow: hidden;
}

.sidebar:hover {
    width: 200px;
}

.sidebar-toggle {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #1a2c38;
    background: #02031c;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-toggle:hover {
    background: #1a2c38;
}

.sidebar-toggle .hamburger {
    font-size: 24px;
    color: #b1bad3;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sidebar-toggle:hover .hamburger {
    color: #ffffff;
}

.sidebar-content {
    padding: 10px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.sidebar-item:hover {
    background: #1a2c38;
}

.sidebar-item.active {
    background: #1a2c38;
    border-left: 3px solid #00ff00;
}

.sidebar-icon {
    font-size: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-label {
    margin-left: 15px;
    color: #b1bad3;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-label {
    opacity: 1;
}

/* All elements always visible - no conditional hiding */

/* Header elements always visible with consistent dimensions */
.header-center {
    display: flex !important;
    flex: 1;
    justify-content: center;
    align-items: center;
    overflow: visible !important;
    position: relative;
    z-index: 10000;
    min-width: 0;
}

/* Currency Switcher Styles */
.currency-switcher-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency-switcher-wrapper {
    display: inline-flex !important;
    align-items: center;
    background-color: #1a1d29 !important;
    border-radius: 6px !important;
    overflow: hidden;
}

.currency-switcher-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: white !important;
    padding: 10px 12px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    font-size: 14px !important;
    font-family: inherit !important;
}

.currency-switcher-btn:hover {
    opacity: 0.8 !important;
}

.currency-dropdown {
    position: absolute !important;
    left: 0 !important;
    background-color: #1a1d29 !important;
    top: calc(100% + 8px) !important;
    min-width: 220px !important;
    z-index: 99999 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    border: 1px solid #374151 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

.currency-dropdown button {
    width: 100% !important;
    padding: 12px 16px !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: white !important;
    font-family: inherit !important;
}

.currency-dropdown button:hover {
    background-color: #1f2937 !important;
}

.wallet-btn-header {
    color: white !important;
    padding: 10px 20px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    background: #1576e2 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    border-radius: 0 6px 6px 0 !important;
    font-family: inherit !important;
}

.wallet-btn-header:hover {
    background: #0d5bb8 !important;
    filter: none !important;
}


/* Removed conditional layout rules */

#homepageScreen {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #090d1d !important;
    background-color: #090d1d !important;
}

#homepageScreen .homepage-layout,
#homepageScreen header {
    position: relative;
    z-index: 2;
}

#homepageScreen > footer {
    position: relative;
    z-index: 2;
}

.homepage-layout {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.homepage-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.sidebar.hidden {
    display: none !important;
}

/* Removed conditional styles */

/* Pre-login action buttons */
.pre-login-actions {
    display: flex;
    gap: 15px;
    margin: 15px 0 20px 0;
}

.pre-login-btn {
    padding: 14px 48px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pre-login-btn.signup-btn {
    background: linear-gradient(135deg, #00ff00, #00cc00);
    color: #000;
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.4);
}

.pre-login-btn.signup-btn:hover {
    background: linear-gradient(135deg, #00e600, #00b300);
    box-shadow: 0 8px 30px rgba(0, 255, 0, 0.6);
    transform: translateY(-3px);
}

.pre-login-btn.login-btn {
    background: transparent;
    color: #fff;
    border: 3px solid #00ff00;
}

.pre-login-btn.login-btn:hover {
    background: rgba(0, 255, 0, 0.15);
    border-color: #00e600;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-3px);
}

/* Professional Pre-Login Container - Full Width Leaderboard with Stats Underneath */
.pre-login-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    height: auto;
    flex-shrink: 0;
}


/* Leaderboard - EXACT match to provided HTML - MAXIMUM SPECIFICITY */
body #homepageScreen .pre-login-container .leaderboard {
    background: #1a2634 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    width: 100% !important;
    max-width: none !important;
}

body #homepageScreen .pre-login-container .leaderboard #preLoginLeaderboardList {
    max-height: 144px !important;
    min-height: 144px !important;
    height: 144px !important;
    overflow: hidden !important;
}

/* Logged-in leaderboard widget - AGGRESSIVE HEIGHT LIMIT */
body #homepageScreen .leaderboard-section .leaderboard,
body .leaderboard-section .leaderboard,
.leaderboard-section .leaderboard,
#homepageScreen .leaderboard-section .leaderboard {
    max-height: 200px !important;
    overflow: hidden !important;
}

body #homepageScreen .leaderboard-section .leaderboard,
body .leaderboard-section .leaderboard,
.leaderboard-section .leaderboard,
#homepageScreen .leaderboard-section .leaderboard {
    max-height: 200px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

body #homepageScreen .dashboard-section .leaderboard,
body .dashboard-section .leaderboard,
.dashboard-section .leaderboard,
#homepageScreen .dashboard-section .leaderboard {
    max-height: 200px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

body #homepageScreen .dashboard-section.leaderboard-section .leaderboard,
body .dashboard-section.leaderboard-section .leaderboard,
.dashboard-section.leaderboard-section .leaderboard {
    max-height: 200px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove padding from the section itself */
body #homepageScreen .leaderboard-section,
body .leaderboard-section,
.dashboard-section.leaderboard-section,
#homepageScreen .leaderboard-section {
    padding: 12px !important;
    padding-bottom: 8px !important;
    gap: 6px !important;
    min-height: auto !important;
    height: auto !important;
}

body #homepageScreen .leaderboard-section .section-header,
body .leaderboard-section .section-header {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
}

body #homepageScreen .leaderboard-section .section-button,
body .leaderboard-section .section-button,
.dashboard-section.leaderboard-section .section-button {
    margin-top: 6px !important;
    padding: 8px !important;
    font-size: 12px !important;
}

/* Let JavaScript handle the 3-row limit */

/* Copy exact styles from pre-login leaderboard */
body #homepageScreen .leaderboard-section .leaderboard .row,
body #homepageScreen .dashboard-section .leaderboard .row,
body .leaderboard-section .leaderboard .row,
body .dashboard-section .leaderboard .row,
.leaderboard-section .leaderboard .row,
.dashboard-section .leaderboard .row {
    display: grid !important;
    grid-template-columns: 50px 1fr 90px 70px !important;
    gap: 10px !important;
    padding: 16px 15px !important;
    background: #262522 !important;
    border-bottom: 1px solid #818181 !important;
    align-items: center !important;
}

body #homepageScreen .leaderboard-section .leaderboard .row:nth-child(odd),
body #homepageScreen .dashboard-section .leaderboard .row:nth-child(odd),
body .leaderboard-section .leaderboard .row:nth-child(odd),
body .dashboard-section .leaderboard .row:nth-child(odd),
.leaderboard-section .leaderboard .row:nth-child(odd),
.dashboard-section .leaderboard .row:nth-child(odd) {
    background: #262522 !important;
}

body #homepageScreen .leaderboard-section .leaderboard .row:nth-child(even),
body #homepageScreen .dashboard-section .leaderboard .row:nth-child(even),
body .leaderboard-section .leaderboard .row:nth-child(even),
body .dashboard-section .leaderboard .row:nth-child(even),
.leaderboard-section .leaderboard .row:nth-child(even),
.dashboard-section .leaderboard .row:nth-child(even) {
    background: #302e2b !important;
}

body #homepageScreen .leaderboard-section .leaderboard .row:last-child,
body #homepageScreen .dashboard-section .leaderboard .row:last-child,
body .leaderboard-section .leaderboard .row:last-child,
body .dashboard-section .leaderboard .row:last-child,
.leaderboard-section .leaderboard .row:last-child,
.dashboard-section .leaderboard .row:last-child {
    border-bottom: none !important;
}

body #homepageScreen .pre-login-container .leaderboard .header {
    display: grid !important;
    grid-template-columns: 50px 1fr 90px 70px !important;
    gap: 10px !important;
    padding: 10px 15px !important;
    background: #262522 !important;
    border-bottom: 1px solid #818181 !important;
}

body #homepageScreen .pre-login-container .leaderboard .header-item {
    color: #8b96a5 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

body #homepageScreen .pre-login-container .leaderboard .row {
    display: grid !important;
    grid-template-columns: 50px 1fr 90px 70px !important;
    gap: 10px !important;
    padding: 16px 15px !important;
    background: #262522 !important;
    border-bottom: 1px solid #818181 !important;
    align-items: center !important;
}

body #homepageScreen .pre-login-container .leaderboard .row:nth-child(odd) {
    background: #262522 !important;
}

body #homepageScreen .pre-login-container .leaderboard .row:nth-child(even) {
    background: #302e2b !important;
}

body #homepageScreen .pre-login-container .leaderboard .row:last-child {
    border-bottom: none !important;
}

body #homepageScreen .pre-login-container .leaderboard .rank {
    color: #d1d5db !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

body #homepageScreen .pre-login-container .leaderboard .name {
    color: #e5e9f0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body #homepageScreen .pre-login-container .leaderboard .earnings {
    color: #22c55e !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

body #homepageScreen .pre-login-container .leaderboard .earnings.negative {
    color: #ef4444 !important;
}

body #homepageScreen .pre-login-container .leaderboard .dollar-icon,
body #homepageScreen .pre-login-container .leaderboard .dc-icon {
    width: 14px !important;
    height: 14px !important;
    background: #22c55e !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0f1923 !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

body #homepageScreen .pre-login-container .leaderboard .earnings.negative .dollar-icon,
body #homepageScreen .pre-login-container .leaderboard .earnings.negative .dc-icon {
    background: #ef4444 !important;
}

body #homepageScreen .pre-login-container .leaderboard .win-rate {
    color: #d1d5db !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* Stats Widget - Horizontal layout underneath leaderboard */
.pre-login-stats-widget {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
}

.pre-login-stats-widget .stat-box {
    flex: 1;
    min-width: 0;
}

.stat-box {
    background: linear-gradient(180deg, #1a2c38 0%, #0f2e16 100%);
    border: 1px solid #1a2c38;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: #00ff00;
    box-shadow: 0 4px 16px rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

.stat-box.primary {
    border-color: #00ff00;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.05), rgba(0, 204, 0, 0.02));
    padding: 16px 18px;
}

.stat-icon-large {
    display: none;
}

.stat-icon-small {
    display: none;
}

.stat-content {
    flex: 1;
}

.stat-label {
    color: #7f8ea3;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Inter', sans-serif;
}

.stat-value-large {
    color: #00ff00;
    font-size: 26px;
    font-weight: 900;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 16px rgba(0, 255, 0, 0.4);
}

/* Removed conditional hiding */

/* Post-login homepage styles */

/* Removed sidebar margin rules */

/* Removed legacy pre-login footer/leaderboard styles */

/* Game End Modal - Cyberpunk Style */
.game-end-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 68, 68, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(10, 22, 40, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(15px);
}

.game-end-content {
    background: 
        linear-gradient(135deg, #1a2c38 0%, #041024 50%, #1a2c38 100%);
    border: 3px solid;
    border-image: linear-gradient(45deg, #00d9ff, #00e701, #ff4444, #00d9ff) 1;
    border-radius: 0;
    padding: 0;
    width: 600px;
    max-width: 90vw;
    box-shadow: 
        0 0 60px rgba(0, 217, 255, 0.4),
        0 0 120px rgba(0, 231, 1, 0.2),
        inset 0 0 30px rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.game-end-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(0, 217, 255, 0.08) 3px,
            rgba(0, 217, 255, 0.08) 6px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 3px,
            rgba(0, 231, 1, 0.08) 3px,
            rgba(0, 231, 1, 0.08) 6px
        );
    pointer-events: none;
    z-index: 0;
}

.game-end-content > * {
    position: relative;
    z-index: 1;
}

.game-result-title {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 64px;
    font-weight: 900;
    margin: 40px 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 6px;
    position: relative;
    padding: 20px 40px;
    border: 2px solid;
    display: inline-block;
}

.game-result-title.victory {
    color: #00e701;
    border-color: #00e701;
    text-shadow: 
        0 0 20px rgba(0, 231, 1, 1),
        0 0 40px rgba(0, 231, 1, 0.8),
        0 0 80px rgba(0, 231, 1, 0.4);
    box-shadow: 
        0 0 30px rgba(0, 231, 1, 0.6),
        inset 0 0 20px rgba(0, 231, 1, 0.1);
    animation: victoryPulse 1.5s ease-in-out infinite;
}

.game-result-title.defeat {
    color: #ff4444;
    border-color: #ff4444;
    text-shadow: 
        0 0 20px rgba(255, 68, 68, 1),
        0 0 40px rgba(255, 68, 68, 0.8),
        0 0 80px rgba(255, 68, 68, 0.4);
    box-shadow: 
        0 0 30px rgba(255, 68, 68, 0.6),
        inset 0 0 20px rgba(255, 68, 68, 0.1);
    animation: defeatPulse 1.2s ease-in-out infinite;
}

.game-result-title.abort {
    color: #00d9ff;
    border-color: #00d9ff;
    text-shadow: 
        0 0 20px rgba(0, 217, 255, 1),
        0 0 40px rgba(0, 217, 255, 0.8),
        0 0 80px rgba(0, 217, 255, 0.4);
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.6),
        inset 0 0 20px rgba(0, 217, 255, 0.1);
    animation: abortPulse 2s ease-in-out infinite;
}

.game-result-amount {
    margin: 30px 0;
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.amount-label {
    display: block;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-family: 'Orbitron', 'Inter', sans-serif;
}

.amount-value {
    display: block;
    font-size: 48px;
    font-weight: 900;
    font-family: 'Orbitron', 'Inter', sans-serif;
    text-shadow: 0 0 30px currentColor;
    margin-bottom: 10px;
}

.amount-value.win {
    color: #00e701;
    animation: winPulse 2s ease-in-out infinite;
}

.amount-value.loss {
    color: #ff4444;
    animation: lossPulse 1.5s ease-in-out infinite;
}

.amount-value.refund {
    color: #00d9ff;
    animation: refundPulse 2s ease-in-out infinite;
}

.abort-reason {
    margin-top: 15px;
    font-size: 16px;
    color: #ffffff;
    font-style: italic;
    text-align: center;
    opacity: 0.8;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    padding: 0 40px;
}

.play-again-btn {
    background: linear-gradient(135deg, #00e701 0%, #00d4aa 100%);
    color: #000;
    border: 2px solid #00e701;
    border-radius: 0;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 900;
    font-family: 'Orbitron', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 30px rgba(0, 231, 1, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.play-again-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.play-again-btn:hover::before {
    left: 100%;
}

.play-again-btn:hover {
    background: linear-gradient(135deg, #00d4aa 0%, #00e701 100%);
    transform: translateY(-5px);
    box-shadow: 
        0 0 40px rgba(0, 231, 1, 0.8),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

.secondary-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #00d9ff;
    border-radius: 0;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Orbitron', 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 231, 1, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.secondary-btn:hover::before {
    opacity: 1;
}

.secondary-btn:hover {
    color: #00d9ff;
    border-color: #00e701;
    box-shadow: 
        0 0 30px rgba(0, 217, 255, 0.6),
        0 0 60px rgba(0, 231, 1, 0.3);
    transform: translateY(-3px);
}

/* Cyberpunk Animations */
@keyframes victoryPulse {
    0%, 100% { 
        text-shadow: 
            0 0 20px rgba(0, 231, 1, 1),
            0 0 40px rgba(0, 231, 1, 0.8),
            0 0 80px rgba(0, 231, 1, 0.4);
        box-shadow: 
            0 0 30px rgba(0, 231, 1, 0.6),
            inset 0 0 20px rgba(0, 231, 1, 0.1);
    }
    50% { 
        text-shadow: 
            0 0 30px rgba(0, 231, 1, 1),
            0 0 60px rgba(0, 231, 1, 1),
            0 0 120px rgba(0, 231, 1, 0.6);
        box-shadow: 
            0 0 50px rgba(0, 231, 1, 0.8),
            inset 0 0 30px rgba(0, 231, 1, 0.2);
    }
}

@keyframes defeatPulse {
    0%, 100% { 
        text-shadow: 
            0 0 20px rgba(255, 68, 68, 1),
            0 0 40px rgba(255, 68, 68, 0.8),
            0 0 80px rgba(255, 68, 68, 0.4);
        box-shadow: 
            0 0 30px rgba(255, 68, 68, 0.6),
            inset 0 0 20px rgba(255, 68, 68, 0.1);
    }
    50% { 
        text-shadow: 
            0 0 30px rgba(255, 68, 68, 1),
            0 0 60px rgba(255, 68, 68, 1),
            0 0 120px rgba(255, 68, 68, 0.6);
        box-shadow: 
            0 0 50px rgba(255, 68, 68, 0.8),
            inset 0 0 30px rgba(255, 68, 68, 0.2);
    }
}

@keyframes abortPulse {
    0%, 100% { 
        text-shadow: 
            0 0 20px rgba(0, 217, 255, 1),
            0 0 40px rgba(0, 217, 255, 0.8),
            0 0 80px rgba(0, 217, 255, 0.4);
        box-shadow: 
            0 0 30px rgba(0, 217, 255, 0.6),
            inset 0 0 20px rgba(0, 217, 255, 0.1);
    }
    50% { 
        text-shadow: 
            0 0 30px rgba(0, 217, 255, 1),
            0 0 60px rgba(0, 217, 255, 1),
            0 0 120px rgba(0, 217, 255, 0.6);
        box-shadow: 
            0 0 50px rgba(0, 217, 255, 0.8),
            inset 0 0 30px rgba(0, 217, 255, 0.2);
    }
}

@keyframes winPulse {
    0%, 100% { 
        text-shadow: 0 0 30px rgba(0, 231, 1, 0.8);
    }
    50% { 
        text-shadow: 0 0 50px rgba(0, 231, 1, 1);
    }
}

@keyframes lossPulse {
    0%, 100% { 
        text-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
    }
    50% { 
        text-shadow: 0 0 50px rgba(255, 68, 68, 1);
    }
}

@keyframes refundPulse {
    0%, 100% {
        text-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
    }
    50% {
        text-shadow: 0 0 50px rgba(0, 217, 255, 1);
    }
}

/* ========================================
   LEADERBOARD - Large Format (1400x60)
   ======================================== */

.leaderboard-section-spacing {
    margin: 60px auto;
    max-width: 1400px;
    padding: 0 20px;
}

.section-header-large {
    margin-bottom: 24px;
}

.section-header-large h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.trending-section-compact {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.leaderboard-widget {
    width: 100%;
    background: #1a1939;
    border-radius: 12px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.leaderboard-widget-header {
    display: grid;
    grid-template-columns: 60px 80px 80px 60px;
    padding: 16px 20px;
    background: #2d2853;
    border-bottom: 3px solid #6D5FED;
    font-weight: 700;
    font-size: 11px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    justify-content: space-between;
}

.leaderboard-widget-header > div:first-child {
    text-align: center;
}

.leaderboard-widget-header > div:last-child {
    text-align: right;
}

.leaderboard-widget-row {
    display: grid;
    grid-template-columns: 60px 80px 80px 60px;
    padding: 20px;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid #252244;
    font-size: 14px;
    color: #fff;
    transition: all 0.2s ease;
    flex: 1;
    justify-content: space-between;
}

.leaderboard-widget-row > div:first-child {
    text-align: center;
}

.leaderboard-widget-row > div:nth-child(3) span,
.leaderboard-widget-row > div:nth-child(3) img {
    display: inline-block;
    vertical-align: middle;
}

.leaderboard-widget-row > div:nth-child(3) img {
    margin-left: 4px;
}

.leaderboard-widget-row > div:last-child {
    text-align: right;
}

.leaderboard-widget-row:hover {
    background: rgba(45, 40, 83, 0.3);
}

.leaderboard-widget-row:last-child {
    border-bottom: 1px solid #252244;
}

.leaderboard-large {
    width: 100%;
    max-width: 1400px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 100px 200px 150px 100px;
    width: 100%;
    max-width: 1400px;
    height: 50px;
    background: #262522 !important;
    background-color: #262522 !important;
    border-bottom: 2px solid #3a3a3a;
    padding: 0 40px;
    align-items: center;
    column-gap: 80px;
    font-weight: 700;
    font-size: 14px;
    color: #8b96a5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.leaderboard-header > div:nth-child(1) {
    justify-self: start;
}

.leaderboard-header > div:nth-child(2) {
    justify-self: start;
}

.leaderboard-header > div:nth-child(3) {
    justify-self: start;
}

.leaderboard-header > div:nth-child(4) {
    justify-self: start;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 100px 200px 150px 100px;
    width: 100%;
    max-width: 1400px;
    height: 60px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 40px;
    align-items: center;
    column-gap: 80px;
    transition: all 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(0, 231, 1, 0.05);
}

.leaderboard-row:nth-child(1) .rank-col {
    color: #ffd700;
    font-size: 20px;
    font-weight: 900;
}

.leaderboard-row:nth-child(2) .rank-col {
    color: #c0c0c0;
    font-size: 18px;
    font-weight: 800;
}

.leaderboard-row:nth-child(3) .rank-col {
    color: #cd7f32;
    font-size: 18px;
    font-weight: 800;
}

.leaderboard-col {
    display: flex;
    align-items: center;
    width: 100%;
}

.leaderboard-row > div:nth-child(1) {
    justify-self: start;
    justify-content: flex-start;
}

.leaderboard-row > div:nth-child(2) {
    justify-self: start;
    justify-content: flex-start;
}

.leaderboard-row > div:nth-child(3) {
    justify-self: start;
    justify-content: flex-start;
}

.leaderboard-row > div:nth-child(4) {
    justify-self: start;
    justify-content: flex-start;
}

.rank-col {
    font-size: 16px;
    font-weight: 700;
    color: #6b7280;
    justify-content: flex-start;
}

.name-col {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.earnings-col {
    font-weight: 500;
    justify-content: flex-start;
    gap: 8px;
    display: flex;
    align-items: center;
}

.gc-value {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
}

.gc-coin-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background-color: #f7c734;
    font-size: 10px;
}

.winrate-col {
    font-size: 14px;
    font-weight: 600;
    color: #00e701;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 1480px) {
    .leaderboard-large,
    .leaderboard-header,
    .leaderboard-row {
        width: 100%;
        max-width: 100%;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 100px 200px 150px 100px;
        padding: 0 40px;
        column-gap: 80px;
    }
}

/* FORCE SLIDER BACKGROUNDS - HIGHEST PRIORITY */
.mode-toggle,
.game-controls .mode-toggle,
.control-group .mode-toggle,
div.mode-toggle {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
}

/* Game page specific overrides */
#gameScreen .mode-toggle,
#gameScreen .game-controls .mode-toggle,
#gameScreen .control-group .mode-toggle,
#gameScreen div.mode-toggle {
    background: #2a2a2a !important;
    background-color: #2a2a2a !important;
}

/* FORCE TOP BAR BUTTON COLORS - HIGHEST PRIORITY */
.header-btn,
.login-btn,
.register-btn,
.wallet-btn-header,
button.header-btn,
button.login-btn,
button.register-btn,
button.wallet-btn-header {
    background: #1576e2 !important;
    background-color: #1576e2 !important;
    color: #ffffff !important;
}

.header-btn:hover,
.login-btn:hover,
.register-btn:hover,
.wallet-btn-header:hover {
    background: #0d5bb8 !important;
    background-color: #0d5bb8 !important;
}

/* HOMEPAGE SLIDERS */
.slider-container {
    background: transparent !important;
    background-color: transparent !important;
    border: none;
    padding: 0;
    margin: 0;
}

.slider-wrapper {
    background: #262522 !important;
    background-color: #262522 !important;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #3a3a3a;
}

.slider-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

/* ULTIMATE WALLET BUTTON OVERRIDE */
.wallet-btn-header,
button.wallet-btn-header,
a.wallet-btn-header,
div.wallet-btn-header,
#gameScreen .wallet-btn-header,
#gameScreen button.wallet-btn-header,
#gameScreen a.wallet-btn-header,
#gameScreen div.wallet-btn-header,
.app-header .wallet-btn-header,
.app-header button.wallet-btn-header,
.app-header a.wallet-btn-header,
.app-header div.wallet-btn-header,
button[onclick*="openWalletModal"],
button[onclick*="openWalletModal"]:hover {
    background: #1576e2 !important;
    background-color: #1576e2 !important;
    color: #ffffff !important;
}

.wallet-btn-header:hover,
button.wallet-btn-header:hover,
a.wallet-btn-header:hover,
div.wallet-btn-header:hover,
#gameScreen .wallet-btn-header:hover,
#gameScreen button.wallet-btn-header:hover,
#gameScreen a.wallet-btn-header:hover,
#gameScreen div.wallet-btn-header:hover,
.app-header .wallet-btn-header:hover,
.app-header button.wallet-btn-header:hover,
.app-header a.wallet-btn-header:hover,
.app-header div.wallet-btn-header:hover {
    background: #0d5bb8 !important;
    background-color: #0d5bb8 !important;
}

/* ULTIMATE SIDEBAR BACKGROUND OVERRIDE */
.game-sidebar-left,
.game-controls,
.game-sidebar-left .game-chat-panel .game-chat-container {
    background: #0c0e1d !important;
    background-color: #0c0e1d !important;
}

.game-window-chat,
.game-window-chat .game-chat-container {
    background: #0c0e1d !important;
    background-color: #0c0e1d !important;
}

/* ULTIMATE SIDEBAR BORDER OVERRIDE */
.game-sidebar-left {
    border-right: 1px solid #3a3a3a !important;
    border-left: none !important;
    border-top: 1px solid #3a3a3a !important;
    border-bottom: 1px solid #3a3a3a !important;
}

.game-controls {
    border-right: 1px solid #3a3a3a !important;
    border-left: 1px solid #3a3a3a !important;
    border-top: 1px solid #3a3a3a !important;
    border-bottom: 1px solid #3a3a3a !important;
}

/* ABSOLUTE FINAL WALLET BUTTON OVERRIDE - MAXIMUM SPECIFICITY */
.app-header .header-center button[onclick*="openWalletModal"],
#gameScreen .app-header .header-center button[onclick*="openWalletModal"],
header .header-center button[onclick*="openWalletModal"],
#gameScreen header .header-center button[onclick*="openWalletModal"] {
    background: #1576e2 !important;
    background-color: #1576e2 !important;
    color: #ffffff !important;
}

.app-header .header-center button[onclick*="openWalletModal"]:hover,
#gameScreen .app-header .header-center button[onclick*="openWalletModal"]:hover,
header .header-center button[onclick*="openWalletModal"]:hover,
#gameScreen header .header-center button[onclick*="openWalletModal"]:hover {
    background: #0d5bb8 !important;
    background-color: #0d5bb8 !important;
}

/* NUCLEAR OPTION - TARGET ALL POSSIBLE WALLET BUTTON SELECTORS */
button[onclick*="openWalletModal"],
button[onclick*="openWalletModal"]:hover,
button[onclick*="openWalletModal"]:focus,
button[onclick*="openWalletModal"]:active,
#gameScreen button[onclick*="openWalletModal"],
#gameScreen button[onclick*="openWalletModal"]:hover,
#gameScreen button[onclick*="openWalletModal"]:focus,
#gameScreen button[onclick*="openWalletModal"]:active,
.app-header button[onclick*="openWalletModal"],
.app-header button[onclick*="openWalletModal"]:hover,
.app-header button[onclick*="openWalletModal"]:focus,
.app-header button[onclick*="openWalletModal"]:active,
#gameScreen .app-header button[onclick*="openWalletModal"],
#gameScreen .app-header button[onclick*="openWalletModal"]:hover,
#gameScreen .app-header button[onclick*="openWalletModal"]:focus,
#gameScreen .app-header button[onclick*="openWalletModal"]:active {
    background: #1576e2 !important;
    background-color: #1576e2 !important;
    color: #ffffff !important;
}

/* ABSOLUTE FINAL OVERRIDE - THIS MUST BE THE LAST RULE */
#gameScreen button:not([class])[onclick*="openWalletModal"],
button:not([class])[onclick*="openWalletModal"] {
    background: #1576e2 !important;
    background-color: #1576e2 !important;
    color: #ffffff !important;
}

#gameScreen button:not([class])[onclick*="openWalletModal"]:hover,
button:not([class])[onclick*="openWalletModal"]:hover {
    background: #0d5bb8 !important;
    background-color: #0d5bb8 !important;
}


/* Game Page Wallet Button Override */
.game-wallet-btn,
button.game-wallet-btn,
#gameScreen .game-wallet-btn,
.game-wallet-btn:hover,
button.game-wallet-btn:hover {
    background: #4a7dff !important;
    background-color: #4a7dff !important;
    color: white !important;
}



/* Remove all browser default focus outlines for game controls */
.game-controls button,
.game-controls button:focus,
.game-controls button:focus-visible,
.game-controls button:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
}

.mode-toggle button,
.mode-toggle button:focus,
.mode-toggle button:focus-visible,
.mode-toggle button:active {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
}

/* Hide all scrollbars globally but keep scroll functionality */
* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
