.portal.mines { left: 37.8%; top: 47%; width: 3%; height: 6%; border: 0; padding: 0; cursor: default; }
#mine-controls[hidden] { display: none; }
#mine-controls { position: fixed; top: 16px; left: 20px; z-index: 6; color: #c4d3a7; font: 12px/1.5 system-ui, sans-serif; }
#mine-controls button { border: 1px solid #8b9b6366; border-radius: 6px; padding: 6px 10px; background: #080b08dd; color: inherit; font: inherit; cursor: pointer; }
#mine-controls button:hover, #mine-controls button:focus-visible, #mine-flag[aria-pressed="true"] { background: #35432a; border-color: #b4cc86; }
#mine-tools { display: inline; }
#mine-tools[hidden], #minefield[hidden] { display: none; }
#mine-status { margin: 6px 0 0; }
#mine-tools small { color: #91a17b; }
#minefield { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.mine-cell { position: absolute; width: 74px; height: 64px; padding: 0; border: 0; clip-path: polygon(100% 50%,75% 100%,25% 100%,0 50%,25% 0,75% 0); background: #8b9b6317; color: #d4e6b3; font: 500 18px system-ui, sans-serif; pointer-events: auto; cursor: default; touch-action: manipulation; }
.mine-cell:hover, .mine-cell:focus-visible { background: #8b9b6355; outline: none; }
.mine-cell.open { background: #080b0899; }
.mine-cell.flagged { color: #e2bd73; background: #8b9b6333; }
.mine-cell.mine { color: #ffb2a4; background: #74372e99; }
.mine-cell[data-count="2"] { color: #85c5da; }
.mine-cell[data-count="3"], .mine-cell[data-count="4"] { color: #e2bd73; }
.mine-cell[data-count="5"], .mine-cell[data-count="6"] { color: #ee9b89; }
body.mines-playing .landing-stage { z-index: 3; }
.logo img, .logo::after { transition: opacity 900ms ease; }
body.mines-playing .logo img, body.mines-playing .logo::after { opacity: .18; }
@media (prefers-reduced-motion: reduce) {
  .logo img, .logo::after { transition: none; }
}

body.mines-playing .portal, body.mines-playing #thanks-trigger { visibility: hidden; pointer-events: none; }

#minefield.leaving { opacity: 0; transition: opacity 3s ease; }
#minefield.leaving .mine-cell { pointer-events: none; }
body.mines-playing.mines-leaving .logo img, body.mines-playing.mines-leaving .logo::after { opacity: 1; transition: opacity 3s ease; }
