/**
 * Fullscreen mode styles
 */

/* Fullscreen toggle button - moved to bottom left to not obstruct UI */
.fullscreen-toggle {
  position: fixed;
  bottom: 90px;
  left: 12px;
  top: auto;
  right: auto;
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
}

.fullscreen-toggle:hover,
.fullscreen-toggle:active {
  background: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(0.92);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Hide on desktop */
@media (min-width: 901px) {
  .fullscreen-toggle {
    display: none;
  }
}

/* Fullscreen active state */
body.fullscreen-active {
  overflow: hidden;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  body.fullscreen-active {
    position: fixed;
    width: 100%;
    height: 100%;
  }
}

/* Hide browser UI in fullscreen */
body.fullscreen-active #game-container {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height */
}

/* No adjustment needed - buttons are in opposite corners */

/* Fullscreen mode - maximize space */
:fullscreen,
:-webkit-full-screen,
:-moz-full-screen,
:-ms-fullscreen {
  width: 100%;
  height: 100%;
  background: #0f0f0f;
}

:fullscreen #game-container,
:-webkit-full-screen #game-container,
:-moz-full-screen #game-container,
:-ms-fullscreen #game-container {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
}

/* Hide scrollbars in fullscreen */
:fullscreen body,
:-webkit-full-screen body,
:-moz-full-screen body,
:-ms-fullscreen body {
  overflow: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

:fullscreen body::-webkit-scrollbar,
:-webkit-full-screen body::-webkit-scrollbar {
  display: none;
}

