* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

.scene {
  min-height: 100vh;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, #e2e8f0 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, #e2e8f0 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  transform: translateZ(-300px);
}

.desk {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  transform-style: preserve-3d;
}

.card {
  background: white;
  padding: 2rem;
  border-radius: 18px;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.08),
    0 30px 60px rgba(0,0,0,0.05);
  transform-style: preserve-3d;
  transition: transform 0.15s ease;
}

.identity {
  grid-column: span 3;
  text-align: center;
}

.subtitle {
  color: #475569;
}

.description {
  margin: 1rem 0 1.5rem;
}

.cta {
  text-decoration: none;
  font-weight: 600;
  color: #2563eb;
}

.notes h2,
.game h2 {
  margin-top: 0;
}

/* Tic Tac Toe */
.board {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 8px;
  justify-content: center;
  margin: 1rem 0;
}

.cell {
  width: 60px;
  height: 60px;
  background: #f1f5f9;
  border-radius: 10px;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.cell:hover {
  background: #e2e8f0;
}

.hint {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 900px) {
  .desk {
    grid-template-columns: 1fr;
  }
}
