.example-page {
  min-height: 100vh;
}

.example-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.example-main {
  flex: 1;
  display: grid;
  align-items: center;
  padding: 16px 0 40px;
}

.example-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: center;
}

.example-copy {
  max-width: 520px;
}

.example-copy h1 {
  margin-bottom: 18px;
}

.example-copy .lead {
  font-size: 18px;
  line-height: 1.65;
}

.example-board-panel {
  border: 1px solid var(--line);
  background:
    radial-gradient(
      circle at top left,
      rgba(156, 184, 255, 0.14),
      transparent 34%
    ),
    var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(14px, 2.4vw, 24px);
  justify-self: center;
  width: min(72vmin, 720px, 100%);
}

.board-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.board-controls button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}

.board-controls button.button {
  background: var(--panel);
  border-color: var(--line);
}

.game-status {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

#board {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

#board svg {
  display: block;
  width: 100%;
  height: 100%;
}

.example-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 980px) {
  .example-main {
    align-items: start;
    padding-top: 0;
  }

  .example-layout {
    grid-template-columns: 1fr;
  }

  .example-copy {
    max-width: 760px;
  }

  .example-board-panel {
    width: min(82vmin, 680px, 100%);
  }
}

@media (max-width: 680px) {
  .example-board-panel {
    width: 100%;
    padding: 12px;
    border-radius: 20px;
  }

  .board-controls {
    gap: 10px;
  }

  .board-controls .button {
    flex: 1 1 auto;
    padding-inline: 12px;
  }
}
