
.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4ade80, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.game-area {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #1e293b;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.initial-state {
    padding: 20px;
}

.instruction-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.initial-state h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #4ade80;
}

.initial-state p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.start-button {
    background: linear-gradient(45deg, #4ade80, #22d3ee);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.6);
}


.prepare-state {
    background-color: #dc2626;
}

.prepare-state .prepare-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prepare-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.prepare-state h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.prepare-state p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.go-state {
    background-color: #16a34a;
}

.go-state .go-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.go-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    animation: pulse 1s infinite;
}

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

.go-state h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.too-soon-state {
    background-color: #eab308;
    color: #0a1929;
}

.too-soon-state .too-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.too-soon-state h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.too-soon-state p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.result-state {
    background-color: #2563eb;
}

.result-state .result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.result-time {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 15px 0;
}

.result-state p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.final-result-state {
    background-color: #3b82f6;
}

.final-result-state .final-result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.final-result-state h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.final-result-time {
    font-size: 3rem;
    font-weight: 700;
    margin: 15px 0;
}

.feedback-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

.try-again-button {
    background-color: #ffffff;
    color: #2563eb;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.try-again-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #1e293b;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22d3ee);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#progressPercentage {
    font-size: 1rem;
    color: #cbd5e1;
}

.reset-button {
    background-color: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.reset-button:hover {
    background-color: #334155;
    color: #ffffff;
}

.reset-icon {
    font-size: 1rem;
}

.results-container {
    background-color: #1e293b;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.results-area {
    text-align: center;
}

.results-area p {
    color: #cbd5e1;
    font-size: 1rem;
}


.attempts-list {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.attempt-item {
    background-color: #334155;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.attempt-item:hover {
    transform: scale(1.05);
    background-color: #475569;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .result-time,
    .final-result-time {
        font-size: 2.5rem;
    }
    
    .go-state h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    
    .initial-state h2,
    .too-soon-state h2 {
        font-size: 1.5rem;
    }
    
    .result-time,
    .final-result-time {
        font-size: 2rem;
    }
    
    .start-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

.reaction-info-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.info-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.info-section h2 {
    color: #4fc3f7;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-section h3 {
    color: #64b5f6;
    margin: 20px 0 10px;
    font-size: 1.3rem;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.info-section ul,
.info-section ol {
    margin: 15px 0 15px 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.info-section li {
    margin-bottom: 10px;
}

.benchmarks ul {
    list-style-type: none;
    margin: 15px 0;
}

.benchmarks li {
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 10px;
}

.age-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.age-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.age-table th,
.age-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.age-table th {
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
    font-weight: bold;
}

.age-table tr:last-child td {
    border-bottom: none;
}

.age-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.source {
    font-size: 0.9rem;
    font-style: italic;
    color: #9e9e9e;
    margin-top: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-card h3 {
    color: #4fc3f7;
    margin-bottom: 10px;
}

.benefits-list,
.factors-list,
.improvement-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.benefit-item,
.factor-item,
.tip-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.benefit-item:hover,
.factor-item:hover,
.tip-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.benefit-item h3,
.factor-item h3,
.tip-item h3 {
    color: #64b5f6;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .reaction-info-container {
        padding: 0 15px;
    }
    
    .info-section {
        padding: 20px 15px;
    }
    
    .info-section h2 {
        font-size: 1.5rem;
    }
    
    .info-section h3 {
        font-size: 1.2rem;
    }
    
    .info-section p,
    .info-section ul,
    .info-section ol {
        font-size: 1rem;
    }
    
    .benefits-grid,
    .benefits-list,
    .factors-list,
    .improvement-tips {
        grid-template-columns: 1fr;
    }
    
    .age-table {
        font-size: 0.9rem;
    }
    
    .age-table th,
    .age-table td {
        padding: 10px 8px;
    }
}