/*
 * CLANNAD Web Port - Visual Styling
 * Pure Full-Screen Canvas with Centered Loading Screen
 */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Full Screen Game Container */
#game-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  z-index: 1;
}

.canvas-container {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
}

#clannad-canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

/* In-Game HUD Controls (Autohiding) */
.game-hud {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.4s ease;
}

.game-hud.faded {
  opacity: 0;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hud-btn {
  background: rgba(18, 21, 31, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f0f2f8;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #f7a8b8;
}

.hud-btn.active {
  background: #f7a8b8;
  color: #000000;
}

/* Pure Black Loading Screen with Centered Text */
.loading-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-text {
  color: #ffffff;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
}
