/* Crypto Trading Simulator Özel Stilleri */

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a;
    color: white;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.trade-brand {
    position: fixed;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-weight: 800;
    text-transform: lowercase;
    color: #ffffff;
    letter-spacing: 0.04em;
    z-index: 2000;
    pointer-events: none;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.trade-brand-lead {
    font-size: clamp(1.2rem, 4vw, 2rem);
}

.trade-brand-trade {
    font-size: clamp(0.9rem, 3vw, 1.4rem);
    letter-spacing: 0.2em;
}

.trade-brand.hidden {
    display: none !important;
}

/* Force English characters */
.stat-label, .stat-value {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
    font-variant: normal !important;
    text-transform: none !important;
}

#game-container {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vh, 14px);
    padding: clamp(10px, 3vw, 14px);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.94) 0%, rgba(22, 33, 62, 0.94) 100%);
    width: min(260px, 88vw);
    flex: 1 1 auto;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}


.game-ui {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: clamp(4px, 1.6vw, 8px) clamp(6px, 2vw, 12px);
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: 12px;
    border: 1.5px solid rgba(247, 147, 26, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    width: 100%;
}


.crypto-info {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}

.price-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5px;
}

.current-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-timer {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #00ff88 0deg, #00ff88 0deg, rgba(255, 255, 255, 0.2) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.circular-timer::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1;
}

.timer-text {
    font-size: 0.75rem;
    font-weight: bold;
    color: #00ff88;
    z-index: 2;
    position: relative;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 60px;
}

.crypto-symbol {
    display: flex;
    align-items: center;
    gap: 8px;
}

.symbol-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #f7931a, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
}
.symbol-text {
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.price-change {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 3px;
    border-radius: 4px;
    min-width: 42px;
    text-align: center;
}

.price-change.positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.price-change.negative {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.balance-info, .profit-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.balance-label, .profit-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.balance-amount, .profit-amount {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

.profit-amount.positive {
    color: #00ff88;
}

.profit-amount.negative {
    color: #ff4757;
}


/* Chart Container */
#chart-container {
    margin: 6px 4px 0 4px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: 15px;
    padding: 18px;
    border: 2px solid rgba(247, 147, 26, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

#chart-area {
    position: relative;
    height: 300px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(247, 147, 26, 0.2);
    flex: 1;
    width: 100%;
    min-height: 280px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25);
}

#price-chart {
    width: 100%;
    height: 100%;
    background: transparent;
}

.current-price-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00ff88, #ff4757);
    left: 90%;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Trading Controls */
.trading-controls {
    margin: clamp(6px, 1.6vh, 10px) 0 0 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(22, 33, 62, 0.88) 100%);
    border-radius: 12px;
    padding: clamp(8px, 2.4vw, 12px);
    border: 1.5px solid rgba(247, 147, 26, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: clamp(6px, 1.8vh, 10px);
    flex: 0 0 auto;
    width: 100%;
    position: relative;
}

.left-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.right-section {
    display: none;
}

.position-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(247, 147, 26, 0.18);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
}

.position-label {
    font-size: 0.7rem;
    color: #ccc;
    font-weight: 500;
}

.position-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f7931a;
    text-shadow: 0 0 5px rgba(247, 147, 26, 0.3);
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.sell-hand-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: sellHandClick 2s ease-in-out forwards;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.sell-hand-effect::before {
    content: '👆';
    font-size: 1.5rem;
    animation: sellHandPulse 0.5s ease-in-out infinite;
}

@keyframes sellHandClick {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    30% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    40% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.9);
    }
    80% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes sellHandPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-3px) scale(1.1);
    }
}

.sell-emoji { display: none; }

.sell-hand-effect {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.sell-hand-effect.animate {
    animation: sellHandTap 1s ease-in-out;
}

@keyframes sellPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.sell-button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 190px;
    box-shadow: 0 6px 14px rgba(255, 71, 87, 0.4);
    margin: 0 auto;
    flex: 0 0 auto;
}

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

.sell-button:hover::before {
    left: 100%;
}

.sell-button {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
}

.sell-button.sold {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    box-shadow: 0 6px 14px rgba(34, 197, 94, 0.35);
    cursor: default;
}

.sell-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 71, 87, 0.6);
}

.sell-button:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.8);
}

.button-text {
    display: inline-block;
    margin-right: 4px;
}

.tap-emoji {
    display: inline-block;
    font-size: 1rem;
    animation: tapBounce 2s ease-in-out infinite;
    margin-left: 4px;
}

@keyframes tapBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    10% {
        transform: translateY(-5px) scale(1.1);
    }
    30% {
        transform: translateY(-3px) scale(1.05);
    }
}





/* Coin Selection Screen */
.coin-selection-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.88) 0%, rgba(22, 33, 62, 0.88) 100%);
    padding: clamp(6px, 2vw, 10px);
    border-radius: 10px;
    text-align: center;
    width: min(240px, 80vw);
    max-height: 88vh;
    overflow-y: auto;
    border: 2px solid rgba(247, 147, 26, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.7), 0 0 15px rgba(247, 147, 26, 0.3);
    position: relative;
}



.coin-selection-content h1 {
    color: white;
    font-size: clamp(0.95rem, 4.2vw, 1.3rem);
    margin-bottom: 3px;
    background: linear-gradient(45deg, #f7931a, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #ccc;
    font-size: clamp(0.65rem, 2.2vw, 0.8rem);
    margin-bottom: clamp(6px, 2vh, 9px);
    font-style: italic;
}

.coin-selection-content h2 {
    color: white;
    font-size: clamp(0.75rem, 3vw, 0.95rem);
    margin-bottom: clamp(6px, 2vh, 10px);
}

.coins-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(4px, 1.6vw, 8px);
    margin-bottom: clamp(6px, 1.8vh, 12px);
    max-width: min(230px, 78vw);
    margin-left: auto;
    margin-right: auto;
}

.coin-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(247, 147, 26, 0.12) 50%, rgba(255, 107, 53, 0.12) 100%);
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: clamp(5px, 1.8vw, 8px);
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 14px rgba(0,0,0,0.2);
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.coin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(247, 147, 26, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coin-card:hover::before {
    opacity: 1;
}

.coin-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(247, 147, 26, 0.5);
    box-shadow: 0 10px 30px rgba(247, 147, 26, 0.3);
}

.coin-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(247, 147, 26, 0.4);
}

.coin-card.selected {
    border-color: #f7931a;
    background: rgba(247, 147, 26, 0.2);
    transform: scale(1.05);
}

.coin-icon {
    font-size: clamp(0.85rem, 3.2vw, 1.1rem);
    margin-bottom: 2px;
    color: #f7931a;
}

.coin-symbol {
    font-size: clamp(0.65rem, 2.4vw, 0.85rem);
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
}

.coin-name {
    font-size: clamp(0.5rem, 2vw, 0.7rem);
    color: #ccc;
    margin-bottom: 4px;
}

.coin-price {
    font-size: clamp(0.55rem, 2.2vw, 0.75rem);
    font-weight: bold;
    color: #00ff88;
}



@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(247, 147, 26, 0.3); }
    50% { box-shadow: 0 0 30px rgba(247, 147, 26, 0.6); }
}

/* Screen Styles */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
}

.screen.hidden {
    display: none;
}

.start-content, .game-over-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    padding: clamp(8px, 2.4vw, 14px);
    border-radius: 10px;
    text-align: center;
    width: min(260px, 84vw);
    max-height: 88vh;
    overflow-y: auto;
    border: 1.5px solid rgba(0, 255, 136, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.6), 0 0 12px rgba(0, 255, 136, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(10px, 3vh, 14px);
}


.start-content h1 {
    color: white;
    margin-bottom: 8px;
    font-size: clamp(1rem, 4vw, 1.3rem);
}

.start-content p {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.35;
}

.game-rules {
    margin: 20px 0;
    text-align: left;
}

.game-rules h3 {
    color: white;
    margin-bottom: 10px;
}

.game-rules ul {
    color: #ccc;
    padding-left: 20px;
}

.game-rules li {
    margin-bottom: 8px;
}

.start-button, .restart-button, .cta-button {
    background: linear-gradient(45deg, #f7931a, #ff6b35);
    color: white;
    border: none;
    padding: clamp(10px, 2.4vw, 14px) clamp(18px, 7vw, 26px);
    border-radius: 20px;
    cursor: pointer;
    font-size: clamp(0.85rem, 3vw, 0.95rem);
    font-weight: 600;
    margin: 8px;
    transition: all 0.3s ease;
}

.start-button:hover, .restart-button:hover, .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(247, 147, 26, 0.4);
}

.cta-button {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
}

.cta-button:hover {
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}

.download-button {
    background: linear-gradient(45deg, #3b82f6, #9333ea);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

.download-button:hover {
    box-shadow: 0 12px 28px rgba(147, 51, 234, 0.45);
}

/* Breathing Animation */
.breathing-title, .breathing-button {
    animation: breathing 2s ease-in-out infinite alternate;
}

@keyframes breathing {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.final-stats {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-label {
    color: #888;
    font-size: 0.75rem;
}

.stat-row .stat-value {
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.stat-row.highlight {
    background: rgba(247, 147, 26, 0.1);
    border-radius: 8px;
    padding: 8px;
    margin: 4px 0;
}

.stat-row.highlight .stat-value {
    color: #f7931a;
    font-size: 1rem;
}

.performance-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0;
    padding: 8px 10px;
    background: rgba(247, 147, 26, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(247, 147, 26, 0.25);
}

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

.badge-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: #f7931a;
}

.buttons {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

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

.popup-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(247, 147, 26, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    max-width: 400px;
    width: 90%;
    animation: popupSlideIn 0.5s ease-out;
}

.popup-content h3 {
    color: #f7931a;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.popup-content p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.popup-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(247, 147, 26, 0.3);
    border-top: 3px solid #f7931a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.popup-loading span {
    color: #f7931a;
    font-size: 1rem;
    font-weight: bold;
}


@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes messageAppear {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes messagePulse {
    0%, 100% {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.8),
            0 0 50px rgba(247, 147, 26, 0.3),
            inset 0 0 20px rgba(247, 147, 26, 0.1);
    }
    50% {
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.9),
            0 0 80px rgba(247, 147, 26, 0.5),
            inset 0 0 30px rgba(247, 147, 26, 0.2);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 20px rgba(247, 147, 26, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(247, 147, 26, 0.8), 0 0 40px rgba(247, 147, 26, 0.3);
    }
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Selection Message Styles */
.selection-message {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-radius: 25px;
    border: 3px solid #f7931a;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(247, 147, 26, 0.3),
        inset 0 0 20px rgba(247, 147, 26, 0.1);
    animation: messageAppear 0.8s ease-out, messagePulse 2s ease-in-out infinite 1s;
    position: relative;
    overflow: hidden;
}

.selection-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(247, 147, 26, 0.1), transparent);
    animation: shimmer 3s linear infinite;
    z-index: 0;
}

.selection-message > * {
    position: relative;
    z-index: 1;
}

.selection-message h2,
.selection-message h2 *,
.selection-message h2:before,
.selection-message h2:after {
    color: #f7931a !important;
    font-size: 4.5rem !important;
    margin-bottom: 30px;
    font-weight: 900 !important;
    font-style: italic !important;
    text-shadow: 
        0 0 40px rgba(247, 147, 26, 1),
        0 0 80px rgba(247, 147, 26, 0.6),
        0 0 120px rgba(247, 147, 26, 0.3) !important;
    animation: textGlow 2s ease-in-out infinite alternate;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    line-height: 1.2;
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.2) 0%, rgba(247, 147, 26, 0.1) 100%) !important;
    border: 3px solid #f7931a !important;
    border-radius: 20px !important;
    padding: 20px 40px !important;
    display: inline-block !important;
    box-shadow: 
        0 10px 30px rgba(247, 147, 26, 0.3),
        inset 0 0 20px rgba(247, 147, 26, 0.1) !important;
}

/* Daha spesifik selector */
div.selection-message h2 {
    color: #f7931a !important;
    font-size: 4.5rem !important;
    font-weight: 900 !important;
    font-style: italic !important;
}

.selection-message p {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

.purchase-info {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(247, 147, 26, 0.3);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
}

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

.info-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: normal;
}

.info-value {
    color: #f7931a;
    font-size: 1.2rem;
    font-weight: bold;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.loading-message .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(247, 147, 26, 0.3);
    border-top: 3px solid #f7931a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-message span {
    color: #f7931a;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Interaction Blocker */
.interaction-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    pointer-events: all;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    #game-container {
        padding: 10px;
    }
    
    .game-ui {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        top: 10px;
        left: 10px;
        right: 10px;
    }
    
    .crypto-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .trading-stats {
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .stat-item {
        min-width: 70px;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .chart-stats {
        justify-content: center;
    }
    
    #chart-container {
        margin: 5px;
        padding: 10px;
        min-height: 150px;
    }
    
    #chart-area {
        height: 100px;
        min-height: 80px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .sell-button {
        padding: 12px 25px;
        font-size: 1.1rem;
        min-width: 140px;
        max-width: 160px;
        flex: 0 0 auto;
    }
    
    .trading-controls {
        margin: 5px;
        padding: 15px 10px;
        min-height: 70px;
        flex-direction: row;
        gap: 15px;
        justify-content: space-between;
    }
    
    .left-section {
        gap: 10px;
    }
    
    .right-section {
        min-width: 80px;
    }
    
    .position-info {
        flex-direction: column;
        gap: 4px;
        min-width: 100px;
        padding: 6px 8px;
    }
    
    .position-label {
        font-size: 0.8rem;
    }
    
    .position-value {
        font-size: 0.9rem;
    }
    
    .coins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        max-width: min(220px, 76vw);
    }
    
    .coin-card {
        padding: clamp(6px, 2vw, 9px);
        min-height: 56px;
    }
    
    .coin-icon {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
    }
    
    .coin-selection-content {
        padding: clamp(10px, 3vw, 14px);
        width: min(240px, 82vw);
    }
    
    .coin-selection-content h1 {
        font-size: clamp(1rem, 4.6vw, 1.3rem);
    }
    
    .start-content, .game-over-content {
        padding: 30px 20px;
    }
    
    .start-content h1, .game-over-content h2 {
        font-size: 1.5rem;
    }
    
    .performance-badge {
        flex-direction: column;
        gap: 10px;
    }
    
    .badge-text {
        font-size: 1.2rem;
    }
}

/* Tablet Optimization */
@media (max-width: 1024px) and (min-width: 769px) {
    #game-container {
        padding: 15px;
        max-width: 95vw;
    }
    
    .game-ui {
        padding: 10px 12px;
        gap: 12px;
    }
    
    #chart-container {
        min-height: 180px;
        padding: 12px;
    }
    
    #chart-area {
        height: 130px;
        min-height: 110px;
    }
    
    .trading-controls {
        padding: 18px 20px;
        min-height: 80px;
        gap: 25px;
        justify-content: space-between;
    }
    
    .left-section {
        gap: 15px;
    }
    
    .right-section {
        min-width: 120px;
    }
    
    .sell-button {
        padding: 15px 35px;
        font-size: 1.3rem;
        min-width: 180px;
    }
    
    .coins-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .coin-card {
        padding: 30px;
    }
    
    .coin-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 480px) {
    .symbol-icon {
        width: 24px;
        height: 24px;
        font-size: 1rem;
    }
    
    .trading-controls {
        padding: 10px 8px;
        gap: 8px;
        min-height: 56px;
        justify-content: space-between;
    }
    
    .left-section {
        gap: 6px;
    }
    
    .right-section {
        min-width: 56px;
    }
    
    .sell-button {
        padding: 8px 16px;
        font-size: 0.95rem;
        min-width: 110px;
        max-width: 130px;
    }
    
    .position-info {
        min-width: 72px;
        padding: 4px 6px;
    }
    
    .position-label {
        font-size: 0.65rem;
    }
    
    .position-value {
        font-size: 0.75rem;
    }
    
    .symbol-text {
        font-size: 0.9rem;
    }
    
    .price-change {
        font-size: 1rem;
        min-width: 56px;
    }
    
    #chart-area {
        height: 160px;
    }
    
    .coin-selection-content {
        padding: 8px;
        margin: 4px;
        max-width: 88vw;
        width: min(220px, 88vw);
    }
    
    .coin-selection-content h1 {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
    
    .coin-selection-content h2 {
        font-size: 0.9rem;
    }
    
    .coins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .coin-card {
        padding: 6px;
        min-height: 52px;
    }
    
    .coin-icon {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .coin-symbol {
        font-size: 0.85rem;
    }
    
    .coin-name {
        font-size: 0.65rem;
    }
    
    .coin-price {
        font-size: 0.75rem;
    }
    
    .start-content, .game-over-content {
        padding: 12px;
        margin: 4px;
        max-width: 92vw;
        width: min(240px, 92vw);
    }
    
    .start-content h1, .game-over-content h2 {
        font-size: 1.2rem;
    }
}

@keyframes sellHandTap {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0) scale(0.8);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px) scale(1.2);
    }
    20% {
        transform: translateX(-50%) translateY(-8px) scale(1);
    }
    30% {
        transform: translateX(-50%) translateY(-5px) scale(1.1);
    }
    40% {
        transform: translateX(-50%) translateY(-8px) scale(0.9);
    }
    50% {
        transform: translateX(-50%) translateY(-5px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px) scale(0.8);
    }
}
