/* style.css */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0420;
  font-family: monospace;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

#game-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gameCanvas {
  display: block;
  background: #0a0420;
}

#game-center-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  color: #ffd24a;
  text-decoration: none;
  font-family: monospace;
  font-size: 14px;
  padding: 6px 10px;
  background: rgba(10, 4, 32, 0.72);
  border: 1px solid #7744ff;
  border-radius: 6px;
  pointer-events: auto;
}

#game-center-link:hover {
  background: rgba(60, 20, 120, 0.92);
  color: #ffffff;
}

/* Hide the dev-style "Back to Game Center" chrome during immersive
   cutscenes so the storybook moments stay uncluttered. The body class
   is toggled by the engine each frame based on the current State. */
body.cutscene-mode #game-center-link {
  display: none;
}

/* Once the player is in-game (anywhere past the title screen) the
   browser chrome shouldn't compete with gameplay either. The engine
   adds .in-game whenever the state isn't TITLE / CUSTOMIZE / INTRO. */
body.in-game #game-center-link {
  display: none;
}

/* Orientation hint for portrait phones/tablets */
@media (orientation: portrait) and (max-width: 900px) {
  #rotate-hint {
    display: flex !important;
  }
  #game-container {
    display: none;
  }
  #game-center-link {
    display: none;
  }
}

#rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  background: #0a0420;
  color: #bb88ff;
  font-family: monospace;
  font-size: 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px;
  z-index: 9999;
}

#rotate-hint .icon {
  font-size: 60px;
}

#rotate-hint .hint-line {
  line-height: 1.4;
  max-width: 90%;
}

#rotate-hint .hint-line-ja {
  color: #ff9ec4;
  font-size: 18px;
}
