/* Modernized rebuild of nurikabe-puzzle.com's inline styles.
   Same palette/identity as the original: light toolbox panel (blue border,
   pale blue fill), centered puzzle grid. Replaces the old mobile.asp split
   with responsive rules in this one stylesheet. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #EEEEFF;
  font-family: Arial, Helvetica, sans-serif;
  color: #000;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

h1 {
  text-align: center;
  font-size: 1.6rem;
}

.landing-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.landing-links a {
  display: block;
  padding: 1.5rem 2.5rem;
  background-color: #ECF8FF;
  border: thin solid #B4D0DC;
  border-radius: 4px;
  text-decoration: none;
  color: #000;
  font-size: 1.2rem;
  text-align: center;
}

.landing-links a:hover {
  background-color: #DCF0FF;
}

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

.toolbox {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: thin solid #B4D0DC;
  background-color: #ECF8FF;
  border-radius: 4px;
}

.toolbox button {
  font-size: 1rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

.puzzle-label {
  margin: 0.75rem 0;
  font-weight: bold;
}

.nurikabe-grid {
  border-collapse: collapse;
  margin: 0 auto;
}

.nurikabe-cell {
  width: 2.2em;
  height: 2.2em;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #000;
  text-align: center;
  vertical-align: middle;
  font-size: 24pt;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
}

.how-to-play {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.how-to-play td {
  padding: 0.5rem;
  vertical-align: top;
}

.how-to-play td.narr {
  text-align: left;
}

.how-to-play img {
  display: block;
  margin: 0 auto;
}

.ad-slot {
  margin: 1.5rem 0;
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  text-align: center;
}

footer {
  text-align: center;
  font-size: 0.85rem;
  margin: 2rem 0 1rem;
  color: #444;
}

footer a {
  color: #444;
}

@media (max-width: 699px) {
  .nurikabe-cell {
    font-size: 18pt;
  }

  .landing-links {
    flex-direction: column;
  }
}
