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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a1628;
  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: #0a1628;
}

/* 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: #0a1628;
  color: #66ccff;
  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;
}

/* Back to Game Center link — underwater bubble */
#game-center-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: monospace;
  font-size: 14px;
  font-weight: bold;
  color: #e0f4ff;
  background: rgba(10, 40, 80, 0.85);
  border: 1px solid #66ccff;
  border-radius: 6px;
  text-decoration: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

#game-center-link:hover,
#game-center-link:focus {
  color: #ffffff;
  background: rgba(20, 80, 140, 0.95);
  border-color: #b4e6ff;
  outline: none;
}

#game-center-link .gcl-icon {
  font-size: 14px;
  line-height: 1;
}

/* Hide on very narrow screens where space is tight */
@media (max-width: 480px) {
  #game-center-link .gcl-text {
    display: none;
  }
  #game-center-link {
    padding: 5px 7px;
  }
}
