.title-area {
    margin-bottom: 30px;
}

.title-box {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #0099ff, #00d2ff);
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(0, 153, 255, 0.4);
    position: relative;
    animation: titleBoxBounce 2s ease-in-out infinite;
}

.title-box::after {
    content: '• •';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    letter: 4px;
}

@keyframes titleBoxBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.game-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: #00d2ff;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.game-subtitle {
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.menu-btn {
    width: 240px;
    padding: 14px 24px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.menu-btn:hover, .menu-btn:focus {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.03);
}

.menu-btn:active {
    transform: scale(0.97);
}

.primary-btn {
    background: linear-gradient(135deg, #0099ff, #00d2ff);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(0, 153, 255, 0.3);
}

.primary-btn:hover, .primary-btn:focus {
    background: linear-gradient(135deg, #00aaff, #00e2ff);
    box-shadow: 0 4px 25px rgba(0, 153, 255, 0.5);
}

.start-best {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 900;
}

#new-best-banner {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    animation: newBestPulse 1s ease-in-out infinite alternate;
}

@keyframes newBestPulse {
    from { transform: scale(1); box-shadow: 0 0 20px rgba(255,215,0,0.4); }
    to { transform: scale(1.05); box-shadow: 0 0 30px rgba(255,215,0,0.7); }
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
}

.setting-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.toggle-btn {
    padding: 6px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.toggle-btn.active {
    background: rgba(0, 210, 255, 0.3);
    border-color: #00d2ff;
}

.radio-group {
    display: flex;
    gap: 6px;
}

.radio-btn {
    padding: 6px 14px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.radio-btn.active {
    background: rgba(0, 210, 255, 0.3);
    border-color: #00d2ff;
    color: #fff;
}

.howto-content {
    text-align: left;
    margin-bottom: 20px;
}

.howto-section {
    margin-bottom: 18px;
}

.howto-section h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #00d2ff;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.howto-section p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
    line-height: 1.5;
}

.control-row {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 4px;
    line-height: 1.6;
}

kbd {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #fff;
}

.shop-coins-text {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

#shop-coins-display {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.skin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.skin-card:hover {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
}

.skin-card.selected {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.15);
}

.skin-card.locked {
    opacity: 0.5;
    cursor: default;
}

.skin-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.skin-name {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.skin-price {
    font-size: 0.7rem;
    color: #ffd700;
}
