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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f9fa;
}


.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.4s;
}

.logo:hover{
    transform: translateY(-2px);
}

.logo svg {
    color: #1a1a1a;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #6b7280;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

.nav-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: #f3f4f6;
}

.lang-btn {
    gap: 0.375rem;
}


.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}


.hero-section {
    text-align: center;
    margin: 2rem 0 3rem 0;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.main-description {
    font-size: 1.05rem;
    color: #6b7280;
    line-height: 1.8;
}


.game-section {
    margin-bottom: 3rem;
}

.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.game-mode-card,
.game-result-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
}

.mode-icon {
    width: 3rem;
    height: 3rem;
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.mode-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.mode-description {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

.result-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    text-align: center;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: end;
    gap: 1rem;
}

.result-item {
    text-align: center;
}

.result-label {
    display: block;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}


.timer-display-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.timer-single {
    display: block;
}

.timer-multi {
    display: none;
}

.multi-timers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.multi-timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-display {
    font-size: 6rem;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timer-display.small {
    font-size: 3.5rem;
}

.target-time-label {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.target-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    white-space: nowrap;
}

.button-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.start-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    border: none;
    padding: 0.875rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.start-btn:hover {
    background-color: #374151;
}

.start-btn.active {
    background-color: #dc2626;
}

.start-btn.active:hover {
    background-color: #b91c1c;
}

.help-btn {
    background: none;
    border: 1px solid #e5e7eb;
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: background-color 0.2s;
}

.help-btn:hover {
    background-color: #f9fafb;
}

.instruction-text {
    color: #6b7280;
    font-size: 0.9rem;
}

.key-highlight {
    font-weight: 600;
    color: #1a1a1a;
}


.stats-history-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-card,
.history-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background-color: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab.active {
    background-color: #ffffff;
    color: #1a1a1a;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.stat-value.stat-best {
    color: #10b981;
}

.stat-value.stat-avg {
    color: #3b82f6;
}

.stat-value.stat-error {
    color: #f59e0b;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.history-list {
    
    
    
    
}

.empty-message {
    color: #9ca3af;
    font-size: 0.95rem;
}


.rules-section {
    margin-bottom: 3rem;
}

.rules-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
}

.rules-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.rules-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

.bullet {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.bullet.green {
    background-color: #10b981;
}

.bullet.blue {
    background-color: #3b82f6;
}

.bullet.orange {
    background-color: #f59e0b;
}

.bullet.purple {
    background-color: #8b5cf6;
}


.game-modes-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.mode-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.mode-card:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mode-card.highlighted {
    border-color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mode-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.mode-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    color: #1a1a1a;
}

.mode-card-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.mode-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #ffffff;
}

.tag-green {
    background-color: #10b981;
}

.tag-purple {
    background-color: #8b5cf6;
}

.tag-red {
    background-color: #ef4444;
}

.tag-orange {
    background-color: #f59e0b;
}


.about-section {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
    text-align: center;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}


.core-features-section {
    margin-bottom: 4rem;
}

.feature-item {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.feature-description {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.8;
}


.key-features-section {
    margin-bottom: 4rem;
}

.key-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.key-feature-card {
    text-align: left;
}

.key-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.key-feature-text {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
}


.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 2rem 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: #1a1a1a;
}

.footer-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #1a1a1a;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}


@media (max-width: 1024px) {
    .game-modes-section,
    .key-features-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container,
    .stats-history-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .timer-display {
        font-size: 4rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

