/* =========================================
   LAPTOP FULLSCREEN - Ajuste automático
   Linux Ubuntu, Windows, Mac - Chrome, Firefox
   1920×1080, 1366×768, 1536×864, 1440×900, 1280×720
   Maximize / Minimize / F11 fullscreen
   ========================================= */

/* Base: desktop/laptop - Windows (HP ZR24w, Xiaomi), Linux, Mac */
@media (min-width: 1024px) and (min-height: 600px) {
  html {
    height: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: -webkit-fill-available !important;
    overflow: hidden;
  }

  body {
    width: 100vw !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    overflow: hidden;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
  }

  #root {
    width: 100% !important;
    width: 100vw !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important;
    max-width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    -ms-transform: none !important;
    -webkit-transform: none !important;
  }
}

/* 1366×768 - muy común en HP, Dell, Lenovo, Ubuntu */
@media (min-width: 1280px) and (max-width: 1440px) and (min-height: 700px) {
  #app {
    max-height: 82vh !important;
    max-height: 82dvh !important;
  }
  .reto-zona-superior {
    height: 50vh !important;
    height: 50dvh !important;
    padding-top: 24vh !important;
    padding-top: 24dvh !important;
  }
  .reto-zona-inferior {
    top: 50vh !important;
    top: 50dvh !important;
  }
}

/* 1920×1080 y 1920×1200 (HP ZR24w, Xiaomi, Full HD) */
@media (min-width: 1280px) and (min-height: 720px) {
  html, body, #root {
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }
  #app {
    max-width: 500px !important;
    max-height: 85vh !important;
    max-height: 85dvh !important;
    width: 95% !important;
  }
  #root {
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
}

@media (min-width: 1800px) and (min-height: 900px) {
  #app {
    max-height: 88vh !important;
    max-height: 88dvh !important;
    max-width: 550px !important;
  }
}

/* F11 fullscreen: Chrome, Firefox, Linux/Windows/Mac */
html:fullscreen,
html:-webkit-full-screen,
html:-moz-full-screen,
html:-ms-fullscreen {
  width: 100% !important;
  height: 100% !important;
}
html:fullscreen body,
html:-webkit-full-screen body,
html:-moz-full-screen body,
html:-ms-fullscreen body,
html:fullscreen #root,
html:-webkit-full-screen #root,
html:-moz-full-screen #root,
html:-ms-fullscreen #root {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
}

@media (display-mode: fullscreen), (display-mode: standalone) {
  html, body, #root {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
  }
}
