/* Character artwork and mobile refinements. The game remains fully offline. */
.hero-option,
.hero-option:hover,
.hero-option.selected {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  justify-content: flex-end;
  background-color: #152932;
  background-image: linear-gradient(0deg, #07171e 0%, #0a1a22d9 26%, #0a1a2200 78%), url('assets/heroes-atlas.png');
  background-size: 100% 100%, 300% 200%;
  background-position: center, var(--art-x) var(--art-y);
  background-repeat: no-repeat;
}
.hero-option::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffffff28, transparent 30%, transparent 72%, #0006);
  pointer-events: none;
}
.hero-option .glyph { display: none; }
.hero-option strong,
.hero-option small {
  z-index: 1;
  text-shadow: 0 2px 5px #000, 0 1px 2px #000;
}
.hero-option strong { font-size: 19px; }
.hero-option small { color: #edf9f7; }
.hero-option.selected { border-color: #ffe1a0; box-shadow: 0 0 0 1px #ffe1a0, 0 0 18px #f7cf773d; }
.portrait {
  background-color: #173742;
  background-image: url('assets/heroes-atlas.png');
  background-size: 300% 200%;
  background-position: var(--art-x) var(--art-y);
  background-repeat: no-repeat;
  font-size: 0;
  box-shadow: inset 0 0 9px #0008;
}
.hero-hud { backdrop-filter: blur(8px); }
.skill { backdrop-filter: blur(3px); }
.player-ui.blue .mobile-controls { padding-left: max(14px, env(safe-area-inset-left)); }
.player-ui.red .mobile-controls { padding-right: max(14px, env(safe-area-inset-right)); }
.android-app #fullscreen-button { display: none; }

@media (max-width: 900px) {
  .hero-option, .hero-option:hover, .hero-option.selected { min-height: 72px; }
  .hero-option strong { font-size: 15px; }
}
@media (max-height: 700px) and (orientation: landscape) {
  .overlay { padding: 8px; }
  .menu-card { padding: 10px 18px; }
  .menu-card h1 { font-size: 36px; margin: 2px 0 4px; }
  .eyebrow { font-size: 10px; }
  .lead { margin-bottom: 6px; font-size: 12px; }
  .hero-select h2 { margin-bottom: 4px; font-size: 17px; }
  .hero-select h2 small { font-size: 9px; }
  .hero-list { gap: 5px; }
  .hero-option, .hero-option:hover, .hero-option.selected { min-height: 68px; padding: 5px; }
  .hero-option strong { font-size: 14px; }
  .hero-option small { font-size: 9px; }
  .menu-bottom { margin-top: 6px; }
  .menu-bottom p { font-size: 10px; }
  .primary { padding: 7px 14px; font-size: 14px; }
}
@media (max-width: 650px) {
  .hero-option, .hero-option:hover, .hero-option.selected { min-height: 50px; }
  .hero-option strong { font-size: 13px; }
  .hero-hud { min-width: 0; }
  .player-ui.blue .mobile-controls { padding-left: max(7px, env(safe-area-inset-left)); }
  .player-ui.red .mobile-controls { padding-right: max(7px, env(safe-area-inset-right)); }
}

/* A portrait phone gets two full-width views, one above the other. */
#game-shell.portrait #split-line {
  left: 0;
  right: 0;
  top: calc(50% - 2px);
  bottom: auto;
  width: 100%;
  height: 4px;
}
#game-shell.portrait .player-ui { left: 0; right: 0; top: 0; bottom: auto; width: 100%; height: 50%; }
#game-shell.portrait .player-ui.red { top: 50%; }
#game-shell.portrait .hero-hud { top: max(7px, env(safe-area-inset-top)); width: min(48%, 240px); }
#game-shell.portrait .red .hero-hud { top: 10px; }
#game-shell.portrait .mobile-controls { bottom: 5px; }
#game-shell.portrait #global-bar {
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 6px;
  gap: 5px;
  height: 26px;
}
#game-shell.portrait #global-bar .brand { display: none; }
#game-shell.portrait #global-bar button { width: 19px; height: 19px; font-size: 11px; }
#game-shell.portrait #match-clock,
#game-shell.portrait #match-score { font-size: 12px; }
#game-shell.portrait .toast { bottom: 90px; }
@media (max-width: 500px) and (orientation: portrait) {
  #game-shell.portrait .hero-hud { width: 47%; }
  #game-shell.portrait .mobile-controls { padding-left: 7px; padding-right: 7px; }
  #game-shell.portrait .stick { width: 63px; height: 63px; }
  #game-shell.portrait .actions { gap: 3px; }
  #game-shell.portrait .skill { width: 31px; height: 31px; }
  #game-shell.portrait .skill.attack { width: 39px; height: 39px; }
  #game-shell.portrait .skill.ultimate { width: 36px; height: 36px; }
}
