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

html,
body {
  width: 100%;
  height: 100%;
  /* overflow: hidden; */
  background: #fff;
  font-family: "Pangolin", cursive;
  user-select: none;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

/* ------------------------------------------------------------------ */
/* Overlays — absolutely fill the viewport, hidden by default          */
/* ------------------------------------------------------------------ */

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
}

.overlay.visible {
  display: flex;
}

/* ------------------------------------------------------------------ */
/* #loading                                                            */
/* ------------------------------------------------------------------ */

#loading p {
  font-size: clamp(16px, 2.5vw, 22px);
  color: #535353;
  letter-spacing: 0.03em;
}

/* ------------------------------------------------------------------ */
/* #intro                                                              */
/* ------------------------------------------------------------------ */

#intro .guest-name {
  font-size: clamp(28px, 6vw, 64px);
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

#intro .guest-figure {
  max-height: 42vh;
  width: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

#intro .hint {
  font-size: clamp(13px, 1.8vw, 17px);
  color: #777;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------------ */
/* #victory                                                            */
/* ------------------------------------------------------------------ */

#victory .victory-text {
  font-size: clamp(20px, 3.5vw, 36px);
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

#victory .hosts-figure {
  max-height: 38vh;
  width: auto;
  margin-bottom: 24px;
  object-fit: contain;
}

/* ------------------------------------------------------------------ */
/* #error                                                              */
/* ------------------------------------------------------------------ */

#error p {
  font-size: clamp(15px, 2vw, 20px);
  color: #c0392b;
  max-width: 480px;
  line-height: 1.6;
}

/* ------------------------------------------------------------------ */
/* #orientation                                                        */
/* ------------------------------------------------------------------ */

#orientation {
  z-index: 20;
}

#orientation .orientation-title {
  font-size: clamp(26px, 7vw, 48px);
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------------ */
/* Shared button style                                                 */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: #222;
  color: #fff;
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}

.btn:hover {
  background: #444;
}