/* Локальные стили для тренажера Go/No-Go */
:root {
    --card-bg: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.2);
    --shape-green: #2ECC71;
    --shape-red: #E74C3C;
}

[data-theme="dark"] {
    --card-bg: rgba(20, 20, 25, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
}

.instruction {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.settings-container {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
    text-align: left;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.custom-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    outline: none;
    cursor: pointer;
}

[data-theme="dark"] .custom-select {
    background: rgba(30, 30, 35, 0.8);
    color: #fff;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    user-select: none;
}

.checkbox-label input {
    display: none;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input:checked + .custom-checkbox {
    background-color: var(--primary-color);
}

.checkbox-label input:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Game Area */
.game-header {
    display: flex;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.shape {
    display: none;
    cursor: pointer;
    animation: fadeIn 0.05s ease-in;
    -webkit-tap-highlight-color: transparent;
}

.shape.active {
    display: block;
}

/* Desktop size */
@media (min-width: 768px) {
    .shape {
        width: 160px;
        height: 160px;
    }
}

/* Mobile size */
@media (max-width: 767px) {
    .shape {
        width: 100px;
        height: 100px;
    }
}

.shape.circle {
    border-radius: 50%;
}

.shape.square {
    border-radius: 12px; /* Slightly rounded square */
}

.shape.green {
    background-color: var(--shape-green);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.shape.red {
    background-color: var(--shape-red);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

/* Flash feedback */
.flash-red {
    background-color: rgba(231, 76, 60, 0.2);
    opacity: 1 !important;
}

.flash-green {
    background-color: rgba(46, 204, 113, 0.2);
    opacity: 1 !important;
}

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

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}


.app-container {
    width: 95%;
    max-width: 1000px;
    min-height: 85vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 30px;
    margin: 40px auto;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    flex: 1;
    transition: opacity 0.3s ease;
}

.screen.hidden {
    display: none !important;
    opacity: 0;
}

.screen.active {
    display: flex;
    opacity: 1;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(70, 114, 48, 0.3);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 114, 48, 0.4);
}

.btn.outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn.outline:hover {
    background: var(--primary-color);
    color: white;
}
