body {
  margin: 0;
  font-family: monospace;
  background: white;
}

nav {
  padding: 16px 20px;
}

nav a {
  font-family: monospace;
  font-size: 0.85em;
  color: #222;
  text-decoration: none;
}

nav a:hover {
  color: #aaa;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  font-size: 1.4em;
  margin: 0 0 48px;
  color: #222;
}

.demo-section {
  margin-bottom: 80px;
}

.demo-label {
  font-size: 0.75em;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 32px;
}

/* 3D Cube */
.scene {
  width: 160px;
  height: 160px;
  perspective: 600px;
  margin: 0 auto;
}

.cube {
  width: 160px;
  height: 160px;
  position: relative;
  transform-style: preserve-3d;
}

.face {
  position: absolute;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backface-visibility: visible;
  color: #fff;
}

.face.front {
  background: #222;
  transform: translateZ(80px);
}

.face.back {
  background: #333;
  transform: rotateY(180deg) translateZ(80px);
}

.face.left {
  background: #2a2a2a;
  transform: rotateY(-90deg) translateZ(80px);
}

.face.right {
  background: #2d2d2d;
  transform: rotateY(90deg) translateZ(80px);
}

.face.top {
  background: #1a1a1a;
  transform: rotateX(90deg) translateZ(80px);
}

.face.bottom {
  background: #282828;
  transform: rotateX(-90deg) translateZ(80px);
}

/* Flip Cards */
.cards-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.flip-card {
  width: 120px;
  height: 160px;
  perspective: 600px;
  cursor: pointer;
}

.flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  backface-visibility: hidden;
}

.flip-front {
  background: #222;
  color: #fff;
}

.flip-back {
  background: white;
  color: #222;
  border: 1px solid #e0e0e0;
  transform: rotateY(180deg);
}
}
