/* ============================================
   SATS FLIP - Bitcoin Trading Arcade Game
   Premium Dark Theme with Bitcoin Orange Accents
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-glass: rgba(20, 20, 30, 0.85);

    --bitcoin-orange: #f7931a;
    --bitcoin-orange-light: #ffaa33;
    --bitcoin-orange-dark: #cc7a15;

    --buy-green: #00d26a;
    --buy-green-light: #33ff99;
    --buy-green-dark: #00a854;

    --sell-red: #ff4757;
    --sell-red-light: #ff6b7a;
    --sell-red-dark: #cc3a47;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606075;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(247, 147, 26, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(247, 147, 26, 0.2);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(247, 147, 26, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 210, 106, 0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(255, 71, 87, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

/* Mobile Blocker */
.mobile-blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
}

.mobile-blocker-content {
    max-width: 400px;
}

.mobile-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
}

.mobile-blocker h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--bitcoin-orange);
    margin-bottom: var(--space-md);
}

.mobile-blocker p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.mobile-btc {
    font-size: 5rem;
    color: var(--bitcoin-orange);
    opacity: 0.3;
    margin-top: var(--space-xl);
    animation: float 3s ease-in-out infinite;
}

/* Typography */
.font-display {
    font-family: 'Orbitron', monospace;
}

/* ============================================
   Header
   ============================================ */
.game-header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) var(--space-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    font-size: 2rem;
    color: var(--bitcoin-orange);
    text-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bitcoin-orange), var(--bitcoin-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.header-stats {
    display: flex;
    gap: var(--space-lg);
}

.stat-box {
    display: flex;
    align-items: baseline;
    gap: var(--space-xs);
    background: var(--bg-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-unit {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   Main Game Area
   ============================================ */
.game-main {
    padding: var(--space-lg);
    max-width: 1600px;
    margin: 0 auto;
}

/* Info Bar */
.info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-color);
}

.timer-section {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.timer-icon {
    font-size: 1.5rem;
}

.timer-display {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--bitcoin-orange);
    min-width: 80px;
}

.timer-bar {
    width: 120px;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--bitcoin-orange), var(--bitcoin-orange-light));
    transition: width 1s linear;
    border-radius: 4px;
}

.combo-section {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-tertiary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.combo-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.combo-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
}

.event-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    transition: var(--transition-normal);
}

.event-indicator.news {
    background: rgba(255, 71, 87, 0.15);
    border-color: var(--sell-red);
    animation: pulse-border 0.5s ease infinite;
}

.event-indicator.low-liquidity {
    background: rgba(247, 147, 26, 0.15);
    border-color: var(--bitcoin-orange);
}

.event-icon {
    font-size: 1.2rem;
}

.event-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ============================================
   Chart Container
   ============================================ */
.chart-container {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chart-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-change {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.price-change.positive {
    color: var(--buy-green);
    background: rgba(0, 210, 106, 0.15);
}

.price-change.negative {
    color: var(--sell-red);
    background: rgba(255, 71, 87, 0.15);
}

#price-chart {
    width: 100%;
    height: 350px;
    display: block;
}

/* ============================================
   Control Panel
   ============================================ */
.control-panel,
.active-trade-panel,
.recent-trades-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.panel-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

.control-group {
    margin-bottom: var(--space-lg);
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.control-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.control-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bitcoin-orange);
}

.custom-range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bitcoin-orange), var(--bitcoin-orange-light));
    cursor: pointer;
    box-shadow: 0 0 10px rgba(247, 147, 26, 0.5);
    transition: var(--transition-fast);
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(247, 147, 26, 0.7);
}

.custom-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bitcoin-orange), var(--bitcoin-orange-light));
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(247, 147, 26, 0.5);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* Trade Buttons */
.trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn-buy,
.btn-sell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-buy {
    background: linear-gradient(135deg, var(--buy-green-dark), var(--buy-green));
    color: white;
    box-shadow: 0 4px 20px rgba(0, 210, 106, 0.3);
}

.btn-buy:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 210, 106, 0.5);
}

.btn-buy:active:not(:disabled) {
    transform: translateY(0);
}

.btn-sell {
    background: linear-gradient(135deg, var(--sell-red-dark), var(--sell-red));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
}

.btn-sell:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
}

.btn-sell:active:not(:disabled) {
    transform: translateY(0);
}

.btn-buy:disabled,
.btn-sell:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.btn-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.btn-subtext {
    font-size: 0.7rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* Start Game Button */
.btn-start-game {
    width: 100%;
    margin-top: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, var(--bitcoin-orange-dark), var(--bitcoin-orange));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 25px rgba(247, 147, 26, 0.4);
}

.btn-start-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(247, 147, 26, 0.6);
}

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

.btn-start-game:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-start-game.hidden {
    display: none;
}

/* ============================================
   Active Trade Panel
   ============================================ */
.active-trade-panel {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.trade-info {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.trade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.trade-row:last-of-type {
    border-bottom: none;
}

.trade-row.large {
    padding: var(--space-md) 0;
}

.trade-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.trade-row.large .trade-label {
    font-size: 1rem;
    font-weight: 600;
}

.trade-value {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.trade-row.large .trade-value {
    font-size: 1.3rem;
}

.trade-time-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
    margin-top: var(--space-sm);
}

.trade-time-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--bitcoin-orange), var(--bitcoin-orange-light));
    transition: width 0.1s linear;
}

.btn-close-trade {
    width: 100%;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-close-trade:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--bitcoin-orange);
}

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

/* ============================================
   Recent Trades
   ============================================ */
.trades-list {
    max-height: 200px;
    overflow-y: auto;
}

.trades-list::-webkit-scrollbar {
    width: 6px;
}

.trades-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.trades-list::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

.trade-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--space-lg);
}

.trade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    border-left: 3px solid;
    animation: slideIn 0.3s ease;
}

.trade-item.win {
    border-left-color: var(--buy-green);
}

.trade-item.loss {
    border-left-color: var(--sell-red);
}

.trade-item-direction {
    font-weight: 600;
    font-size: 0.85rem;
}

.trade-item-direction.long {
    color: var(--buy-green);
}

.trade-item-direction.short {
    color: var(--sell-red);
}

.trade-item-pnl {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ============================================
   PnL Colors
   ============================================ */
.pnl-positive {
    color: var(--buy-green) !important;
}

.pnl-negative {
    color: var(--sell-red) !important;
}

.pnl-neutral {
    color: var(--text-secondary);
}

/* ============================================
   Modals
   ============================================ */
.game-modal {
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.game-modal .modal-body {
    padding: var(--space-xl);
}

.modal-icon {
    font-size: 4rem;
    color: var(--bitcoin-orange);
    text-shadow: 0 0 40px rgba(247, 147, 26, 0.6);
    margin-bottom: var(--space-md);
    animation: float 3s ease-in-out infinite;
}

.modal-icon-small {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.modal-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--bitcoin-orange), var(--bitcoin-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
}

.modal-rules {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.rule {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-tertiary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
}

.rule-icon {
    font-size: 1.3rem;
}

.btn-start {
    width: 100%;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--bitcoin-orange-dark), var(--bitcoin-orange));
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 25px rgba(247, 147, 26, 0.4);
}

.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(247, 147, 26, 0.6);
}

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

/* Final Score */
.final-score {
    background: var(--bg-tertiary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.final-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.final-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.final-value.positive {
    color: var(--buy-green);
    text-shadow: 0 0 30px rgba(0, 210, 106, 0.5);
}

.final-value.negative {
    color: var(--sell-red);
    text-shadow: 0 0 30px rgba(255, 71, 87, 0.5);
}

.final-unit {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.stat-item {
    background: var(--bg-tertiary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    margin-bottom: var(--space-xs);
}

.stat-name {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Leaderboard */
.leaderboard {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.leaderboard-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--bitcoin-orange);
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.leaderboard-item.current {
    border: 1px solid var(--bitcoin-orange);
    background: rgba(247, 147, 26, 0.1);
}

.leaderboard-rank {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--text-secondary);
    width: 30px;
}

.leaderboard-rank.gold {
    color: #ffd700;
}

.leaderboard-rank.silver {
    color: #c0c0c0;
}

.leaderboard-rank.bronze {
    color: #cd7f32;
}

.leaderboard-score {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

.leaderboard-score.positive {
    color: var(--buy-green);
}

.leaderboard-score.negative {
    color: var(--sell-red);
}

/* ============================================
   Animations
   ============================================ */
@keyframes pulse-glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(247, 147, 26, 0.8);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-border {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
    }

    50% {
        box-shadow: 0 0 10px 2px rgba(255, 71, 87, 0.6);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes winFlash {

    0%,
    100% {
        box-shadow: inset 0 0 100px rgba(0, 210, 106, 0);
    }

    50% {
        box-shadow: inset 0 0 100px rgba(0, 210, 106, 0.15);
    }
}

@keyframes loseFlash {

    0%,
    100% {
        box-shadow: inset 0 0 100px rgba(255, 71, 87, 0);
    }

    50% {
        box-shadow: inset 0 0 100px rgba(255, 71, 87, 0.15);
    }
}

.flash-win {
    animation: winFlash 0.5s ease;
}

.flash-lose {
    animation: loseFlash 0.5s ease;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 991px) {
    .game-header {
        padding: var(--space-sm) var(--space-md);
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    .header-stats {
        gap: var(--space-sm);
    }

    .stat-box {
        padding: var(--space-xs) var(--space-sm);
    }

    .stat-value {
        font-size: 0.95rem;
    }

    .game-main {
        padding: var(--space-md);
    }

    .info-bar {
        flex-wrap: wrap;
        gap: var(--space-md);
        justify-content: center;
    }

    #price-chart {
        height: 250px;
    }
}

@media (max-width: 767px) {
    .header-stats {
        display: none;
    }

    .timer-bar {
        display: none;
    }

    .timer-display {
        font-size: 1.4rem;
    }

    #price-chart {
        height: 200px;
    }

    .trade-buttons {
        gap: var(--space-sm);
    }

    .btn-buy,
    .btn-sell {
        padding: var(--space-md);
    }

    .btn-text {
        font-size: 1rem;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .final-value {
        font-size: 2.5rem;
    }
}