/* ===== COMPACT DESIGN SYSTEM ===== */

/* Compact Header */
.header-compact {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.1);
    padding: 12px 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #00F5FF;
    letter-spacing: -0.5px;
}

.wallet-section-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wallet-info-compact {
    display: flex;
    align-items: center;
    gap: 16px;
}

.balance-compact {
    display: flex;
    gap: 16px;
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

.balance-value {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    line-height: 1;
}

.balance-label {
    font-size: 11px;
    color: #00F5FF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

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

.wallet-addr {
    font-size: 12px;
    color: #ccc;
    font-family: 'Monaco', monospace;
}

/* iPad/tablet adjustments */
@media (max-width: 1024px) {
    .logo-text { font-size: 18px; }
    .header-right-section { gap: 10px; }
    .wallet-info-compact { gap: 12px; }
    .balance-item { padding: 6px 8px; }
    .balance-value { font-size: 14px; }
}

/* Small tablets/phones */
@media (max-width: 834px) {
    .logo-text { font-size: 16px; }
    .header-right-section { gap: 8px; }
    .wallet-addr { display: none; }
}

/* Compact Button System */
.btn-compact {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    text-transform: none;
    letter-spacing: 0;
}

.btn-compact:hover {
    transform: translateY(-1px);
}

.btn-compact:active {
    transform: translateY(0);
}

/* Button Variants */
.btn-primary {
    background: linear-gradient(135deg, #00F5FF, #1E90FF);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 245, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Settings Controls */
.settings-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

/* Bet Presets */
.bet-presets {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-preset {
    padding: 8px 12px;
    background: transparent;
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    color: #00F5FF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 45px;
    flex: 1;
    max-width: 80px;
}

.btn-preset:hover {
    border-color: #00F5FF;
    background: rgba(0, 245, 255, 0.1);
}

.btn-preset.active {
    background: linear-gradient(135deg, #00F5FF, #1E90FF);
    color: white;
    border-color: #00F5FF;
}

.btn-preset:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Risk Buttons */
.risk-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.risk-btn {
    flex: 1;
    padding: 16px 12px;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0.7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.risk-btn[data-risk="low"] {
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.2), rgba(34, 139, 34, 0.2));
    border-color: rgba(50, 205, 50, 0.3);
}

.risk-btn[data-risk="medium"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.3);
}

.risk-btn[data-risk="high"] {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 71, 87, 0.2));
    border-color: rgba(255, 107, 107, 0.3);
}

.risk-btn.active {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.risk-btn[data-risk="low"].active {
    border-color: #32CD32;
    box-shadow: 0 4px 20px rgba(50, 205, 50, 0.4);
}

.risk-btn[data-risk="medium"].active {
    border-color: #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.risk-btn[data-risk="high"].active {
    border-color: #FF6B6B;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.risk-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.risk-label {
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.risk-multiplier {
    font-size: 12px;
    opacity: 0.8;
    color: #ccc;
}

/* Start Button */
.btn-start {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-start:not(.disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-start.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    color: #666;
}

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

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

/* Mobile Optimizations */
@media (max-width: 768px) {
    .header-content {
        padding: 0 12px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .balance-compact {
        gap: 8px;
    }
    
    .balance-item {
        padding: 6px 8px;
    }
    
    .balance-value {
        font-size: 14px;
    }
    
    .balance-label {
        font-size: 10px;
    }
    
    .wallet-addr {
        display: none;
    }
    
    .btn-compact {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 32px;
    }
    
    .settings-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .bet-presets {
        gap: 4px;
    }
    
    .btn-preset {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 40px;
        max-width: 60px;
    }
    
    .risk-buttons {
        gap: 8px;
    }
    
    .risk-btn {
        padding: 12px 8px;
    }
    
    .risk-icon {
        font-size: 18px;
    }
    
    .risk-label {
        font-size: 13px;
    }
    
    .risk-multiplier {
        font-size: 11px;
    }
    
    .btn-start {
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .header-content {
        padding: 0 8px;
    }
    
    .balance-compact {
        flex-direction: column;
        gap: 4px;
    }
    
    .balance-item {
        padding: 4px 6px;
        min-width: 60px;
    }
    
    .balance-value {
        font-size: 12px;
    }
    
    .balance-label {
        font-size: 9px;
    }
    
    .settings-controls {
        gap: 6px;
    }
    
    .btn-compact {
        padding: 6px 10px;
        font-size: 12px;
        min-height: 30px;
    }
    
    .risk-buttons {
        flex-direction: column;
        gap: 6px;
    }
    
    .bet-presets {
        gap: 3px;
    }
    
    .btn-preset {
        padding: 5px 6px;
        font-size: 11px;
        min-width: 35px;
        max-width: 50px;
    }
    
    .risk-btn {
        flex-direction: row;
        padding: 10px 12px;
        gap: 8px;
        text-align: left;
    }
    
    .risk-icon {
        font-size: 16px;
        margin-bottom: 0;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn-compact, .btn-preset, .risk-btn, .btn-start {
        border-width: 0.5px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .btn-compact, .btn-preset, .risk-btn, .btn-start {
        transition: none;
    }
    
    .btn-start::before {
        display: none;
    }
}/*
 Additional Compact Styles */

/* Game Controls */
.game-controls-compact {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* Claim Actions */
.claim-actions-compact {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

/* Result Actions */
.result-actions-compact {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Tutorial Controls */
.tutorial-controls-compact {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Loading state for buttons */
.btn-compact.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-compact.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    color: white;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .game-controls-compact {
        gap: 8px;
    }
    
    .claim-actions-compact {
        flex-direction: column;
        gap: 8px;
    }
    
    .result-actions-compact {
        flex-direction: column;
        gap: 8px;
    }
    
    .tutorial-controls-compact {
        gap: 8px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .game-controls-compact {
        flex-direction: column;
        gap: 6px;
    }
    
    .tutorial-controls-compact {
        flex-direction: column;
        gap: 6px;
    }
}

/* Focus states for accessibility */
.btn-compact:focus,
.btn-preset:focus,
.risk-btn:focus,
.btn-start:focus {
    outline: 2px solid #00F5FF;
    outline-offset: 2px;
}

/* Disabled states */
.btn-compact:disabled,
.btn-preset:disabled,
.risk-btn:disabled,
.btn-start:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Active states */
.btn-compact:active,
.btn-preset:active,
.btn-start:active {
    transform: scale(0.98);
}

/* Hover states for non-touch devices */
@media (hover: hover) and (pointer: fine) {
    .btn-compact:hover {
        transform: translateY(-1px);
    }
    
    .btn-preset:hover {
        transform: translateY(-1px);
    }
    
    .risk-btn:hover {
        transform: scale(1.02);
    }
    
    .btn-start:not(.disabled):hover {
        transform: translateY(-2px);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-compact,
    .btn-preset,
    .risk-btn,
    .btn-start {
        min-height: 44px; /* iOS recommended touch target size */
    }
    
    .btn-compact:active,
    .btn-preset:active,
    .risk-btn:active,
    .btn-start:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }
}/
* ===== LAYOUT IMPROVEMENTS ===== */

/* Container adjustments */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Game panel improvements */
.game-panel {
    background: rgba(26, 26, 46, 0.9);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 20px auto;
    max-width: 600px;
    backdrop-filter: blur(20px);
}

.panel-header {
    text-align: center;
    margin-bottom: 24px;
}

.panel-header h2 {
    font-size: 24px;
    color: #00F5FF;
    margin-bottom: 8px;
}

.panel-header p {
    color: #ccc;
    font-size: 14px;
}

/* Bet input improvements */
.bet-input-group {
    margin-bottom: 24px;
}

.bet-input-group label {
    display: block;
    color: #00F5FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.bet-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    text-align: center;
    margin-top: 12px;
}

.bet-input:focus {
    outline: none;
    border-color: #00F5FF;
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

/* Multiplier section */
.multiplier-section {
    margin-bottom: 24px;
}

.multiplier-section label {
    display: block;
    color: #00F5FF;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Mobile layout adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .game-panel {
        padding: 20px;
        margin: 16px auto;
        border-radius: 12px;
    }
    
    .panel-header h2 {
        font-size: 20px;
    }
    
    .panel-header p {
        font-size: 13px;
    }
    
    .bet-input {
        padding: 10px 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .game-panel {
        padding: 16px;
        margin: 12px auto;
    }
    
    .panel-header h2 {
        font-size: 18px;
    }
    
    .bet-input {
        padding: 8px 12px;
        font-size: 14px;
    }
}/* ===
== MAIN CONTENT ADJUSTMENTS ===== */

.main-content {
    padding-top: 20px;
    min-height: calc(100vh - 80px);
}

/* Connect required section */
.connect-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    text-align: center;
    padding: 20px;
}

.connect-content {
    max-width: 400px;
}

.connect-content img {
    max-width: 200px;
    height: auto;
    margin-bottom: 24px;
    opacity: 0.8;
}

.connect-content h2 {
    font-size: 24px;
    color: #00F5FF;
    margin-bottom: 12px;
}

.connect-content p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Mobile adjustments for connect screen */
@media (max-width: 768px) {
    .main-content {
        padding-top: 16px;
    }
    
    .connect-content img {
        max-width: 150px;
        margin-bottom: 20px;
    }
    
    .connect-content h2 {
        font-size: 20px;
    }
    
    .connect-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .connect-content img {
        max-width: 120px;
        margin-bottom: 16px;
    }
    
    .connect-content h2 {
        font-size: 18px;
    }
    
    .connect-content p {
        font-size: 12px;
        margin-bottom: 16px;
    }
}
/*
 Language Selector Styles */
.header-right-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    background: rgba(0, 245, 255, 0.1);
    color: #00F5FF;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-btn:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.5);
    transform: translateY(-1px);
}

.language-btn:active {
    transform: translateY(0);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 180px;
    overflow: hidden;
}

.language-dropdown.hidden {
    display: none;
}

.language-options {
    padding: 8px 0;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #fff;
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.language-option:hover {
    background: rgba(0, 245, 255, 0.1);
    color: #00F5FF;
}

.language-option.active {
    background: rgba(0, 245, 255, 0.2);
    color: #00F5FF;
}

.language-option-flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.language-option-name {
    flex: 1;
}

.language-option-code {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .header-right-section {
        gap: 10px;
    }
    
    .language-btn {
        min-width: 60px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .language-dropdown {
        min-width: 160px;
        right: -10px;
    }
    
    .language-option {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Animation for language switching */
.language-switching {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.language-switched {
    animation: languageSwitchPulse 0.6s ease-out;
}

@keyframes languageSwitchPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
