/* Shared 1920x1080 canvas styles for the static-layout screens
   (mapselect.html, and the fixed chrome around index.html's map viewport).
   Pixel values are taken directly from the Penpot boards. */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@600;800&display=swap");

body.screen-page {
  overflow: hidden;
  margin: 0;
  height: 100vh;
  width: 100vw;
  background: #171717;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-canvas {
  position: relative;
  width: 1920px;
  height: 1080px;
  background: #171717;
  overflow: hidden;
  flex: none;
  transform-origin: center center;
}

.screen-overwatch-logo {
  position: absolute;
  top: 30px;
  left: 57px;
  font-family: "Kenyan Coffee", system-ui, sans-serif;
  font-size: 24px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
}
.screen-overwatch-logo:hover { opacity: 0.8; }

.screen-settings {
  position: absolute;
  top: 101px;
  left: 1742px;
  width: 24px;
  height: 24px;
  z-index: 2;
  cursor: pointer;
}

/* --- Left sidebar: hero card + Change Hero / Change Map buttons --- */
.hero-card {
  position: absolute;
  top: 163px;
  left: 79px;
  width: 217px;
  height: 258px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  z-index: 2;
}
.hero-card-portrait {
  width: 217px;
  height: 216px;
  background-size: cover;
  background-position: center;
  background-color: #656565;
}
.hero-card-name {
  position: absolute;
  top: 227px;
  left: 0;
  width: 217px;
  text-align: center;
  font-family: "Noto Sans", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #000;
}

.change-hero-btn,
.change-map-btn {
  position: absolute;
  left: 79px;
  width: 216px;
  height: 53px;
  display: flex;
  align-items: center;
  padding-left: 37px;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #fff;
  font-family: "Noto Sans", system-ui, sans-serif;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  z-index: 2;
}
.change-hero-btn { top: 432px; background: #eb6e46; }
.change-map-btn { top: 494px; background: #282726; }

/* --- Abilities section (below sidebar) --- */
.abilities-label {
  position: absolute;
  top: 580px;
  left: 79px;
  font-family: "Kenyan Coffee", system-ui, sans-serif;
  font-style: italic;
  font-size: 48px;
  color: #fff;
  z-index: 2;
}
.abilities-row {
  position: absolute;
  top: 656px;
  left: 79px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 217px;
}
.ability-icon {
  width: 64px;
  height: 64px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: none;
  border-radius: 0;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.15s ease;
}
.ability-icon.selected { opacity: 1; }

/* --- Map Select: carousel of area thumbnails inside the viewport box --- */
.map-select-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  background: #05070a;
}
.map-select-overlay[hidden] { display: none; }
.map-select-grid {
  position: relative;
  width: 100%;
  height: 100%;
}
.area-card {
  position: absolute;
  top: 0;
  height: 754px;
  display: block;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.area-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #000 0%, rgba(69, 69, 72, 0) 38%, #000 100%);
}
.area-card-label {
  position: absolute;
  top: 511.5px;
  left: 105px;
  font-size: 36px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 1.2px;
  color: #fff;
  font-family: "Noto Sans", system-ui, sans-serif;
  z-index: 1;
}

/* --- Change Hero tray (Penpot's "CHANGE HERO" board rectangle) ---
   1340x257, flush to the viewport's bottom edge, #0e0e12 @ 80% opacity.
   Not a full-screen modal: the map stays visible above/behind it. */
.hero-overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 257px;
  background: rgba(14, 14, 18, 0.8);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 40px;
  overflow-x: auto;
}
.hero-overlay[hidden] { display: none; }
.hero-overlay-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hero-overlay-row {
  display: flex;
  gap: 20px;
}
.hero-overlay-role-group {
  display: flex;
  gap: 2px;
}
.hero-overlay-row .hero-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
}

/* --- Map viewport region (fixed box matching Penpot's Viewport group) --- */
.screen-viewport {
  position: absolute;
  top: 164px;
  left: 440px;
  width: 1340px;
  height: 754px;
  overflow: hidden;
  background: #05070a;
  z-index: 1;
}

/* --- Rotate-to-landscape prompt (MOBA-mobile pattern): the whole design
   is a fixed landscape canvas, so portrait mode shows this instead of
   trying to reflow a 1920x1080 layout into a tall, narrow screen. --- */
.rotate-prompt {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d1117;
  color: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: "Kenyan Coffee", system-ui, sans-serif;
}
.rotate-prompt .rotate-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: rotate-hint 1.6s ease-in-out infinite;
}
.rotate-prompt .rotate-text {
  font-size: 20px;
  letter-spacing: 0.03em;
}
@keyframes rotate-hint {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

/* JS (responsive-canvas.js) toggles this class immediately on load and on
   every resize/orientationchange, this is the real, reliable switch.
   The @media rule below is just a no-JS/no-flash-of-canvas fallback for
   the instant before the JS check runs. */
body.is-portrait .rotate-prompt { display: flex; }
body.is-portrait .screen-canvas { display: none; }

@media (orientation: portrait) {
  .rotate-prompt { display: flex; }
  .screen-canvas { display: none; }
}

.viewport-toggles {
  flex: none;
  display: flex;
  gap: 12px;
  background: rgba(22, 27, 34, 0.85);
  padding: 6px 12px;
  border-radius: 6px;
}

.jump-spots-btn {
  display: block;
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  color: #fff;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
}
