:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --dark: #2d3436;
    --light: #f5f6fa;
    --success: #00b894;
    --danger: #d63031;
    --warning: #fdcb6e;
    --info: #0984e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    padding: 30px;
    text-align: center;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.game-info {
    display: flex;
    justify-content: space-around;
    background-color: var(--light);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.game-info div {
    font-weight: 600;
}

.game-info span:first-child {
    color: var(--primary);
    margin-right: 5px;
}

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

.target-instruction {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.target-example {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    vertical-align: middle;
    margin: 0 5px;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 0 auto;
    max-width: 500px;
}

.shape {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.shape:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.controls {
    margin-top: 20px;
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

.btn:hover {
    background-color: #5649c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
}

.round-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

.round-result.success {
    background-color: rgba(0, 184, 148, 0.2);
    color: var(--success);
}

.round-result.error {
    background-color: rgba(214, 48, 49, 0.2);
    color: var(--danger);
}

.hidden {
    display: none !important;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    color: white;
}

.game-over h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--warning);
}

.game-over p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.performance {
    animation: pulse 2s infinite;
    color: var(--warning);
    margin-top: 10px;
    font-size: 1.2rem;
}

/* Shape specific styles */
.circle {
    border-radius: 50%;
}

.triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.square {
    border-radius: 10px;
}

.diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.correct {
    animation: correctAnswer 0.5s;
    box-shadow: 0 0 0 4px rgba(0, 184, 148, 0.5);
}

.incorrect {
    animation: incorrectAnswer 0.5s;
    box-shadow: 0 0 0 4px rgba(214, 48, 49, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes correctAnswer {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes incorrectAnswer {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@media (max-width: 600px) {
    .game-board {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .game-container {
        padding: 20px;
    }
}
header {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
  }
  
  .site-logo {
    height: 150px;
    width: auto;
  }
  
  .site-title {
    font-size: 0ch;
    color: var(--dark);
    font-weight: bold;
  }
  .final-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--light);
    font-weight: 600;
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.final-stats div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
}
body.high-focus #game-box {
    border: 3px solid #00c853;
  }
  
  body.low-focus #game-box {
    border: 3px solid #d50000;
  }
  .shape.correct {
    border: 3px solid #2ecc71;
    transform: scale(1.1);
  }
  
  .shape.incorrect {
    border: 3px solid #e74c3c;
    animation: shake 0.3s;
  }
  
  @keyframes shake {
    0% { transform: translateX(0px); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0px); }
  }
  