/* Mayın Tarlası — board and cells. The page layout comes from play-page.css. */
body[data-game='mayin-tarlasi'] { --frame: #1768a0; --title: #1768a0; --title-shadow: #0d3f63; }

.board-scroll { width: fit-content; max-width: 100%; margin-inline: auto; overflow: auto; overscroll-behavior: contain; border-radius: 12px; scrollbar-color: rgb(255 255 255 / .5) transparent; }
.board-scroll:focus-visible { outline: 3px solid #fecf40; outline-offset: 3px; }
/* Cells grow to fill the panel (up to 56px) and never shrink below 28px; wider boards scroll sideways. */
.board-frame { container-type: inline-size; }
.board { --columns: 9; --gap: 4px; --cell: clamp(28px, calc((100cqw - (var(--columns) - 1) * var(--gap)) / var(--columns)), 56px); display: grid; grid-template-columns: repeat(var(--columns), var(--cell)); gap: var(--gap); width: max-content; }
.cell { width: var(--cell); height: var(--cell); display: grid; place-items: center; border: 0; border-radius: 7px; background: #bfe2f6; color: #2671bf; font: 700 calc(var(--cell) * .48) 'Fredoka', sans-serif; cursor: pointer; box-shadow: inset 0 -4px 0 #8dc3e2; }
.cell:not(.revealed):not(:disabled):hover { background: #d9effb; }
.cell:disabled { cursor: default; }
.cell.revealed { background: #fffaf0; box-shadow: none; }
.cell.flagged { background: #ffe39a; color: #a95425; }
.cell.mine { background: #f3b6a3; color: #852e18; }
.cell.exploded { background: #df513d; color: #fff; }
.cell.wrong-flag { background: #f2d4ce; color: #a62317; }
.number-1 { color: #2671bf; }
.number-2 { color: #318449; }
.number-3 { color: #d24e3c; }
.number-4 { color: #7243a5; }
.number-5, .number-6, .number-7, .number-8 { color: #624438; }
.goal-equation .goal-num { color: #2671bf; }
.goal-equation .goal-mine { color: #d24e3c; }

@media (max-width: 760px) {
  .board { --gap: 3px; --cell: clamp(22px, calc((100cqw - (var(--columns) - 1) * var(--gap)) / var(--columns)), 56px); }
}

/* Tam ekran: tahta çerçeve genişliğinden boyutlanır; game-shell.js çerçeveyi ekrana sığdırır. */
.play-panel.is-fullscreen .board { --cell: clamp(22px, calc((100cqw - (var(--columns) - 1) * var(--gap)) / var(--columns)), 84px); }
