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

body {
    font-family: 'Space Mono', monospace;
    background: #000;
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.balance-section {
    margin: 1rem 0;
    padding: 0;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 8px;
    display: block;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    justify-content: space-between;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s;
    order: 1;
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger-btn:hover span {
    background: #4ade80;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0;
    order: 2;
    margin-left: auto;
}

.balance-label-small {
    font-size: 0.625rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: none;
}

.balance-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.balance-details.expanded {
    max-height: 500px;
    padding: 0 1rem 1rem 1rem;
}

.balance-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #222;
}

.balance-row-middle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.mode-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: #000;
    border-radius: 6px;
    border: 1px solid #222;
}

.mode-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #666;
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mode-btn:hover {
    color: #888;
}

.mode-btn.active {
    background: #4ade80;
    color: #000;
    box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}

.balance-main {
    text-align: center;
    flex: 1;
}

.balance-label {
    font-size: 0.625rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.balance-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.user-info {
    margin: 0;
    padding: 0;
    border-bottom: none;
    flex: 1;
}

.user-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.phone-label {
    color: #666;
    text-transform: uppercase;
    font-size: 0.625rem;
    letter-spacing: 0.05em;
}

.phone-number {
    color: #fff;
    font-weight: 600;
}

.set-phone-btn {
    padding: 0.25rem 0.75rem;
    background: #333;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: none;
}

.set-phone-btn:hover {
    background: #444;
    border-color: #555;
}

.balance-stats {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: flex-end;
}

.balance-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-label-small {
    font-size: 0.625rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profit-loss {
    font-size: 1.125rem;
    font-weight: 600;
}

.profit-loss.positive {
    color: #4ade80;
}

.profit-loss.negative {
    color: #f87171;
}

.profit-loss.neutral {
    color: #888;
}

.win-rate {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fbbf24;
}

h1 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    background: #222;
}

.status.connected {
    background: #1a4d2e;
}

.status.error {
    background: #4d1a1a;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.current-price {
    font-size: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.price-change {
    text-align: center;
    font-size: 1.25rem;
    margin-top: -1rem;
}

.price-change.positive {
    color: #4ade80;
}

.price-change.negative {
    color: #f87171;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-box {
    background: #111;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #222;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.tick-stream {
    margin-top: 1rem;
}

.tick-stream h2 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #888;
}

.tick-list {
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    max-height: 400px;
    overflow-y: auto;
}

.tick-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.875rem;
    animation: tickFadeIn 0.3s ease;
}

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

.tick-time {
    color: #666;
}

.tick-price {
    font-weight: 600;
}

.tick-price.up {
    color: #4ade80;
}

.tick-price.down {
    color: #f87171;
}

.odds-section {
    margin-top: 1rem;
}

.odds-section h2 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #888;
}

.odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.odds-box {
    background: #111;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #222;
}

.odds-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.odds-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.odds-time {
    font-size: 0.625rem;
    color: #666;
    margin-top: 0.25rem;
}

.odds-higher {
    color: #4ade80;
    font-size: 1.5rem;
}

.odds-lower {
    color: #888;
    font-size: 0.75rem;
    line-height: 1.4;
}

.game-section {
    margin-top: 1rem;
}

.game-canvas-wrapper {
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.game-multiplier {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.8), 0 0 40px rgba(74, 222, 128, 0.4);
    pointer-events: none;
    transition: all 0.1s ease;
    letter-spacing: -0.02em;
}

.game-multiplier.crashed {
    color: #f87171;
    text-shadow: 0 0 20px rgba(248, 113, 113, 0.8), 0 0 40px rgba(248, 113, 113, 0.4);
    animation: crashPulse 0.5s ease;
}

.game-status {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: #888;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    pointer-events: none;
}

.game-status.flying {
    color: #4ade80;
}

.game-status.crashed {
    color: #f87171;
}

.betting-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.5rem;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
}

.stake-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stake-input-wrapper label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#stakeInput {
    padding: 0.875rem 1rem;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 1.125rem;
    font-weight: 600;
}

#stakeInput:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.bet-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
}

.bet-button {
    padding: 1rem;
    border: none;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bet-button.place-bet {
    background: #4ade80;
    color: #000;
}

.bet-button.place-bet:hover:not(:disabled) {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.bet-button.cashout {
    background: #fbbf24;
    color: #000;
    position: relative;
}

.bet-button.cashout span {
    opacity: 0;
}

.bet-button.cashout:hover:not(:disabled) {
    background: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.bet-button:active:not(:disabled) {
    transform: translateY(0);
}

.bet-button:disabled {
    background: #1a1a1a;
    color: #555;
    cursor: not-allowed;
    border: 1px solid #222;
}

.bet-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bet-info {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    background: #1a1a1a;
    color: #888;
    border: 1px solid #222;
}

.bet-info.pending {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.bet-info.active {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: #4ade80;
    animation: pulse 2s ease-in-out infinite;
}

.bet-info.win {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.4);
    color: #4ade80;
}

.bet-info.loss {
    background: rgba(248, 113, 113, 0.1);
    border-color: rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.potential-win {
    font-size: 0.875rem;
    color: #000;
    font-weight: 700;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
}

.potential-win.success {
    color: #000;
}

.players-simulation {
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #111;
    border-bottom: 1px solid #222;
}

.players-title {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.players-count {
    font-size: 0.75rem;
    color: #4ade80;
    font-weight: 600;
}

.players-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 0.75rem;
    animation: playerSlideIn 0.3s ease;
}

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

.player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.player-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: #000;
}

.player-name {
    color: #fff;
    font-weight: 600;
}

.player-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.player-bet {
    color: #888;
}

.player-result {
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.625rem;
}

.player-result.win {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.player-result.cashout {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.player-result.betting {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.round-history {
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-title {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.history-items {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.history-item {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 60px;
    text-align: center;
    animation: historySlideIn 0.3s ease;
}

.history-item.low {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.history-item.medium {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.history-item.high {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

@keyframes playerSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(74, 222, 128, 0);
    }
}

@keyframes tickFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes historySlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes crashPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.2);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0.5rem;
    }

    .balance-section {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .balance-row-top {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .mode-toggle {
        width: 100%;
    }

    .balance-main {
        width: 100%;
    }

    .balance-amount {
        font-size: 1.75rem;
    }

    .balance-row-middle {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .user-info {
        width: 100%;
    }

    .user-phone {
        justify-content: flex-start;
        font-size: 0.75rem;
    }

    .balance-stats {
        width: 100%;
        justify-content: space-around;
    }

    .balance-stat {
        flex: 1;
    }

    .stat-label-small {
        font-size: 0.5rem;
    }

    .profit-loss,
    .win-rate {
        font-size: 0.875rem;
    }

    .balance-actions {
        gap: 0.5rem;
    }

    .balance-btn {
        font-size: 0.75rem;
        padding: 0.625rem 0.75rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .odds-grid {
        grid-template-columns: 1fr;
    }
    
    .bet-controls {
        grid-template-columns: 1fr;
    }
    
    .round-history {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .history-items {
        width: 100%;
        justify-content: flex-start;
    }
    
    .history-item {
        min-width: 55px;
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}

.balance-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #222;
}

.balance-btn {
    padding: 0.625rem 0.875rem;
    border: none;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.deposit-btn {
    background: #4ade80;
    color: #000;
}

.deposit-btn:hover {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.withdraw-btn {
    background: #fbbf24;
    color: #000;
}

.withdraw-btn:hover {
    background: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

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

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.2s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.deposit-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
}

.deposit-method {
    flex: 1;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.deposit-method:hover {
    border-color: #444;
}

.deposit-method.active {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.method-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    padding: 0.875rem 1rem;
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.error-message {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.payment-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#confirmDepositBtn {
    width: 100%;
    margin-top: 0.5rem;
}

#confirmDepositBtn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

#confirmDepositBtn.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

.payment-status-check {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 4px;
    text-align: center;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.countdown-text {
    font-size: 0.875rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown-timer {
    font-size: 2rem;
    font-weight: 700;
    color: #4ade80;
}

.status-message {
    font-size: 0.875rem;
    color: #fff;
}

.reference {
    font-size: 0.625rem;
    color: #666;
    margin-top: 0.5rem;
}

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#confirmWithdrawBtn {
    width: 100%;
    margin-top: 0.5rem;
}

#confirmWithdrawBtn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

#confirmWithdrawBtn.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

.tutorial-modal {
    z-index: 2000;
}

.tutorial-content {
    max-width: 600px;
    text-align: center;
    padding: 3rem 2rem 2rem 2rem;
}

.tutorial-step h2 {
    font-size: 1.75rem;
    color: #fff;
    margin-bottom: 1rem;
}

.tutorial-step p {
    font-size: 1rem;
    color: #888;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tutorial-image {
    font-size: 4rem;
    margin: 2rem 0;
}

.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

.tutorial-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skip-btn {
    background: transparent;
    color: #666;
    border: 1px solid #333;
}

.skip-btn:hover {
    color: #888;
    border-color: #444;
}

.next-btn {
    background: #4ade80;
    color: #000;
}

.next-btn:hover {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

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

.tutorial-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s;
}

.dot.active {
    background: #4ade80;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .tutorial-content {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .tutorial-step h2 {
        font-size: 1.25rem;
    }
    
    .tutorial-step p {
        font-size: 0.875rem;
    }
    
    .tutorial-image {
        font-size: 3rem;
        margin: 1.5rem 0;
    }
    
    .tutorial-btn {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
}

#bgMusic {
    display: none;
}