body {
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

.controls {
    margin-bottom: 12px;
    font-size: 14px;
}

.controls input {
    width: 60px;
    margin: 0 6px;
    padding: 4px;
    background: #fff;
    border: 1px solid #bbb;
    border-radius: 4px;
    text-align: center;
}

.controls label {
    margin-right: 12px;
    cursor: pointer;
}

.card {
    width: 380px;
    min-height: 180px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 28px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.actions {
    margin-top: 12px;
    display: flex;
    gap: 14px;
}

.square-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid #bbb;
    background: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: background 0.15s ease, transform 0.1s ease;
}

.square-btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.square-btn.active {
    background: #c8f7c5;
    border-color: #6bbf6b;
}

.square-btn.danger {
    background: #ffeaea;
    border-color: #e5a1a1;
}

.square-btn.danger:hover {
    background: #ffdede;
}

.hint {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}
