body {
    font-family: Arial, sans-serif !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
button, 
a, 
[ng-click], 
[onclick], 
.clickable,
.cursor-pointer {
    cursor: pointer !important;
}
/* Ячейки КенКен */
#board td:hover {
    background-color: #f0f8ff !important; /* светло-голубой */
    transition: background-color 0.2s;
}

/* Текущая ячейка с курсором */
#board td.cursor {

}
table {
    border-collapse: collapse;
    margin: 0 auto;
    min-width: 350px;
    min-height: 350px;
}
table:focus {
    outline: none;
}
td {
    position: relative;
    width: 60px;
    height: 60px;
    text-align: center;
    border: 1px solid black;
    box-sizing: border-box;
}

.label {
    position: absolute;
    top: -3px;
    left: 3px;
    font-size: 15px;
}
.label .operator {
    font-size: 18px;
}
.possible {
    font-size: 10px;
    color: gray;
}
.cursorShadow {
    background-color: lightyellow;
}
.cursor {
    background-color: #ffff0030;
}
.softLit {
    background-color: lightcyan;
}
.lit {
    background-color: cyan;
}
.good {
    background-color: lightgreen;
}
.bad {
    background-color: red;
}
.wall-top {
    border-top: 4px solid black;
}
.wall-left {
    border-left: 4px solid black;
}
.wall-bottom {
    border-bottom: 4px solid black;
}
.wall-right {
    border-right: 4px solid black;
}
.solver-message {
    text-align: center;
}
.solver .label {
    top: 0;
    text-align: left
}
.solver .message {
    font-size: 20px;
}
.solver .possibles {
    color: gray;
    font-size: 18px;
}

.help p, .solver p {
    margin: 0;
}


.number-btn {
    width: 60px;
    height: 60px;
    font-size: 30px;
    margin: 8px;
    border: 1px solid #6b6b6b;
    cursor: pointer;
}

.number-btn:hover {
    background: #f0f8ff;
}

/* На мобильных */
@media (max-width: 768px) {
    .number-btn {
        width: 60px;
        height: 60px;
        font-size: 30px;
        border-radius: 2px;
    }
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
}

.help {
    font-size: small;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: #e3f2fd;
    border-radius: 5px;
    justify-content: center;
    padding: 10px;
    margin: 10px;
}

@media (max-width: 768px) {
    .help {
        display: none; /* скрываем на телефонах */
    }
}

.controls {
    margin: 15px 0 15px 0;
    display: flex;
    align-items: center;
}
select {
    font-size: large;
}

.number-buttons {
    margin: 10px 0 10px 0;
}
.control-buttons button {
    margin: 5px;
    padding: 4px;
}
label {margin: 0 10px;}
.clock {margin: 10px;}

@media (max-width: 768px) {
    td {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    td {
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}