/* ============================================================
 * STYLE
 * UI text and controls stay at native resolution. Only the 3D
 * canvas is low-res (handled in main.js).
 * ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: 'MingLiU-ExtB', 'MingLiU', serif;
  letter-spacing: 0.25em;
  user-select: none;
}

/* Low-res 3D scene, upscaled to fill the window. */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Native-resolution UI overlay. */
#ui {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 3vh 4vw;
}

#title {
  font-size: 1.1rem;
  opacity: 0.6;
}

/* Carousel row: arrows + empty stage (objects render behind). */
#carousel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  pointer-events: none;
}

#stage {
  flex: 1;
}

.arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #4da6ff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.arrow:hover {
  background: rgba(77, 166, 255, 0.15);
  border-color: #4da6ff;
}

.arrow:active {
  transform: scale(0.94);
}

/* Selected section label. */
#label {
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  text-align: center;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
}

/* Model attribution below the label. */
#attribution {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-align: center;
  opacity: 0.45;
}

/* Fade-to-black overlay. */
#fade {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

/* Placeholder for the eventual destination page. */
#placeholder {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* Respect the hidden attribute (display:flex above would override it). */
#placeholder[hidden] {
  display: none;
}

#placeholder-box {
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  padding: 3rem 4rem;
}

#placeholder-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

#placeholder-box p {
  opacity: 0.6;
  font-size: 0.9rem;
}
