
html,
body,
button {
  touch-action: manipulation;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #071827;
  color: white;
  text-align: center;
}

.arrows-page {
  max-width: 430px;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
}

.top-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.top-box {
  min-height: 58px;
  background: #102f4a;
  border: 2px solid #2b90d9;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.2;
  box-sizing: border-box;
}

.top-box strong {
  font-size: 20px;
  margin-top: 4px;
}

.green-box {
  background: linear-gradient(#19b65a, #0b823c);
  border-color: #27e37a;
  cursor: pointer;
}

h1 {
  font-size: 22px;
  margin: 14px 0 10px;
}

.mini-grid {
  width: 210px;
  height: 210px;
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.main-grid {
  width: 312px;
  height: 312px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.tile {
  border-radius: 8px;
  border: 2px solid #777;
  box-sizing: border-box;
}

.tile.white {
  background: #f1f1f1;
}

.tile.black {
  background: #050505;
}

.play-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.middle-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
}

.column-arrows {
  width: 312px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  margin: 5px 0;
}


.side-arrows {
  height: 312px;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 5px;
}

.side-arrows .arrow-btn {
  height: 100%;
}

.arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 2px solid #2b90d9;
  background: #102f4a;
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.arrow-btn:active {
  transform: scale(0.94);
  background: #1e5f91;
}

.message {
  min-height: 28px;
  font-size: 18px;
  font-weight: bold;
  color: #7cff7c;
  margin: 12px 0;
}

.bottom-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.bottom-buttons button {
  background: linear-gradient(#19b65a, #0b823c);
  border: 2px solid #27e37a;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.home-link {
  display: block;
  color: #8bd1ff;
  margin-top: 12px;
  font-size: 16px;
}
#bigFlash {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: bold;
  color: white;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#bigFlash.show {
  opacity: 1;
  transform: scale(1);
}
html, body {
  touch-action: manipulation;
}
.difficulty-select button {
  padding: 8px 14px;
  margin: 4px;
  border-radius: 8px;
  border: 2px solid #2b90d9;
  background: #102f4a;
  color: white;
  cursor: pointer;
}

.difficulty-select .difficulty-btn.active {
  background: #2ecc71 !important;
  border-color: #27ae60 !important;
  color: black !important;
}