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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.game-header {
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-panel {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.score-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 30px;
    border-radius: 12px;
    color: white;
    min-width: 140px;
}

.score-item .label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.score-item .value {
    font-size: 1.8rem;
    font-weight: bold;
}

.game-area {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

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

.game-over-overlay,
.start-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.game-over-overlay.show,
.start-overlay.show {
    opacity: 1;
    visibility: visible;
}

.game-over-content,
.start-content {
    text-align: center;
    color: white;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.game-over-content h2,
.start-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #ff6b6b;
}

.start-content h2 {
    color: #4ecdc4;
}

.game-over-content p,
.start-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

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

.instructions {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: left;
}

.instructions h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.instructions ul {
    list-style: none;
    padding-left: 0;
}

.instructions li {
    padding: 8px 0;
    color: #666;
    font-size: 0.9rem;
    padding-left: 20px;
    position: relative;
}

.instructions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

@media (max-width: 480px) {
    .game-container {
        padding: 20px;
        border-radius: 15px;
    }

    .game-header h1 {
        font-size: 1.8rem;
    }

    .score-panel {
        gap: 20px;
    }

    .score-item {
        padding: 10px 20px;
        min-width: 100px;
    }

    .score-item .value {
        font-size: 1.4rem;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .game-controls {
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .game-header h1 {
        font-size: 1.5rem;
    }

    .score-panel {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .score-item {
        min-width: 120px;
        text-align: center;
    }
}
#vipBtn{

  position:fixed;
  top:20px;
  right:20px;

  padding:12px 24px;

  border:none;
  border-radius:10px;

  background:#ffd700;
  color:#000;

  font-size:18px;
  font-weight:bold;

  cursor:pointer;

  z-index:999;
}

#vipBtn:hover{
  opacity:.9;
}