* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f172a;
  margin: 0;
  padding: 16px;
  color: #f1f5f9;
}
.wrap { max-width: 420px; margin: 0 auto; text-align: center; }
.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}
#newbtn {
  background: #4f46e5; color: white; border: 0; padding: 8px 14px;
  border-radius: 6px; cursor: pointer; font-family: inherit;
}
#newbtn:hover { background: #4338ca; }
.board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  aspect-ratio: 1;
  user-select: none;
  margin: 0 auto;
  max-width: 360px;
}
.cell {
  aspect-ratio: 1;
  border-radius: 12px;
  background: #1e293b;
  border: 2px solid #334155;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}
.cell.on {
  background: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(251,191,36,0.6);
}
.cell:active { transform: scale(0.97); }
.result {
  margin-top: 16px;
  padding: 12px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
}
.result.win { background: #d1fae5; color: #065f46; }
.result.hidden { display: none; }
