:root {
  --tg-theme-bg-color: #ffffff;
  --tg-theme-text-color: #000000;
  --tg-theme-hint-color: #999999;
  --tg-theme-secondary-bg-color: #f0f0f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--tg-theme-bg-color);
  color: var(--tg-theme-text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 16px;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}

#board {
  width: min(90vw, 90vh, 500px);
  height: min(90vw, 90vh, 500px);
  margin: 0 auto;
}

#info {
  margin-top: 12px;
  font-size: 16px;
  color: var(--tg-theme-hint-color);
  text-align: center;
}

#error {
  display: none;
  margin-top: 40px;
  padding: 16px;
  background: var(--tg-theme-secondary-bg-color);
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  color: var(--tg-theme-text-color);
}

#status {
  display: none;
  margin-top: 12px;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--tg-theme-text-color);
  background: var(--tg-theme-secondary-bg-color);
}

#status.solved {
  background: #27ae60;
  color: #fff;
}
