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

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
}

.game-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.main-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    letter-spacing: 0.3em;
}

#game-canvas {
    border: 3px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: #000;
}

.side-panel {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #444;
}

.side-panel h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #00ffff;
}

#hold-canvas, #next-canvas {
    background: #111;
    border: 1px solid #333;
    display: block;
    margin: 0 auto;
}

.controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    background: linear-gradient(180deg, #00ffff, #0088aa);
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    transition: transform 0.1s, box-shadow 0.1s;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

button:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.info {
    margin-top: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.info p {
    margin: 5px 0;
}

.info span {
    color: #00ffff;
    font-weight: bold;
}

.instructions {
    margin-top: 20px;
}

.instructions h3 {
    margin-bottom: 10px;
}

.instructions p {
    font-size: 0.85rem;
    margin: 5px 0;
    color: #aaa;
}

#game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #ff0055;
    text-align: center;
    z-index: 100;
}

#game-over h2 {
    font-size: 2rem;
    color: #ff0055;
    margin-bottom: 15px;
}

#game-over p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#game-over #final-score {
    color: #00ffff;
}

.hidden {
    display: none !important;
}
