:root {
  --v64-gold: #ffd54a;
  --v64-ink: #05080d;
  --v64-panel: rgba(7, 13, 22, 0.94);
}

.select-screen {
  background:
    linear-gradient(90deg, rgba(2, 5, 10, .96), rgba(4, 8, 14, .75) 45%, rgba(2, 5, 10, .96)),
    url("/arena-favela-v48.png") center / cover no-repeat;
}

.select-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .1) 3px 4px),
    radial-gradient(circle at 50% 45%, transparent 0 28%, rgba(0, 0, 0, .52) 90%);
}

.select-screen > * {
  z-index: 1;
  position: relative;
}

.select-title h1 {
  color: #fff;
  text-transform: uppercase;
  text-shadow: 3px 3px #d12c45, -2px -2px #111;
}

.select-title p {
  color: #d4dae3;
}

.roster-carousel {
  width: min(97vw, 860px);
  max-height: 238px;
}

.roster-carousel .roster {
  background: rgba(0, 0, 0, .2);
  border-block: 1px solid rgba(255, 213, 74, .22);
}

.fighter-card {
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  border-radius: 2px;
}

.fighter-card.selected {
  border-color: var(--v64-gold);
  box-shadow: 0 0 0 2px #a76a0a, 0 0 24px rgba(255, 213, 74, .55);
}

.fighter-card .cinematic-portrait {
  filter: saturate(.82) brightness(.78);
  transition: filter .18s ease, transform .18s ease;
}

.fighter-card.selected .cinematic-portrait {
  filter: saturate(1.12) brightness(1.04);
  transform: scale(1.025) !important;
}

.fighter-dossier {
  width: min(95vw, 820px);
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, .9fr);
  gap: 10px;
}

.fighter-bio,
.inline-skins {
  background: linear-gradient(135deg, rgba(15, 24, 36, .96), rgba(4, 8, 14, .96));
  border: 1px solid rgba(255, 255, 255, .2);
  border-left: 4px solid var(--v64-gold);
  padding: 8px 12px;
  min-width: 0;
}

.fighter-bio small,
.inline-skins > span,
.map-dossier small {
  color: var(--v64-gold);
  letter-spacing: .18em;
  font: 800 8px Arial, sans-serif;
}

.fighter-bio h2,
.map-dossier h2 {
  margin: 1px 0 2px;
  color: #fff;
  letter-spacing: .04em;
  font: 900 20px/1 Impact, sans-serif;
}

.fighter-bio p,
.map-dossier p {
  margin: 0;
  color: #cbd5e1;
  font: 600 10px/1.25 Arial, sans-serif;
}

.inline-skins > div {
  height: 50px;
  margin-top: 4px;
  display: flex;
  gap: 7px;
}

.skin-chip {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #07101d;
  border: 2px solid #6d7887;
  color: #fff;
}

.skin-chip.selected {
  border-color: var(--v64-gold);
  box-shadow: inset 0 0 0 1px #a76a0a, 0 0 10px rgba(255, 213, 74, .34);
}

.skin-chip.special::after {
  content: "★";
  color: #ff4d6d;
  position: absolute;
  top: 2px;
  right: 4px;
  font: 900 10px Arial;
}

.skin-chip .portrait {
  width: 44px;
  height: 48px;
  object-fit: cover;
  object-position: center 20%;
  position: absolute;
  inset: 0 auto 0 0;
  filter: brightness(.86);
}

.skin-chip b {
  display: block;
  padding: 0 5px 0 47px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  font: 900 10px Impact, sans-serif;
}

.map-select {
  gap: 3px;
}

.map-select .select-title p {
  display: none;
}

.map-carousel {
  display: block;
  width: min(97vw, 1060px);
  max-height: 226px;
  overflow: visible;
}

.map-carousel > .roster-arrow {
  display: none;
}

.map-carousel .map-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(82px, 1fr);
  gap: 7px;
  width: 100%;
  height: 100%;
  padding: 4px;
  overflow: auto;
  touch-action: pan-y;
}

.map-carousel .map-card {
  width: auto;
  min-width: 0;
  height: auto;
  border-radius: 2px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.map-card i {
  inset: 0 0 23px;
}

.map-card::after {
  height: 25px;
  background: linear-gradient(90deg, #080c13, #111b29);
}

.map-card b {
  bottom: 4px;
  font-size: clamp(8px, 1.25vw, 12px);
}

.map-card small {
  display: none;
}

.map-dossier {
  width: min(94vw, 760px);
  min-height: 72px;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 12px;
  align-items: center;
  padding: 6px;
  background: var(--v64-panel);
  border: 1px solid rgba(255, 255, 255, .24);
  border-left: 4px solid var(--v64-gold);
}

.map-dossier > i {
  display: block;
  align-self: stretch;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 213, 74, .6);
}

.map-dossier h2 {
  font-size: 18px;
}

@media (max-height: 430px) {
  .roster-carousel {
    max-height: 190px;
  }

  .fighter-dossier {
    min-height: 61px;
  }

  .fighter-bio,
  .inline-skins {
    padding: 5px 9px;
  }

  .fighter-bio h2 {
    font-size: 15px;
  }

  .fighter-bio p {
    font-size: 8px;
  }

  .inline-skins > div {
    height: 38px;
    margin-top: 2px;
  }

  .skin-chip .portrait {
    width: 35px;
    height: 36px;
  }

  .skin-chip b {
    padding-left: 38px;
    font-size: 8px;
  }

  .map-carousel {
    max-height: 176px;
  }

  .map-carousel .map-grid {
    grid-auto-rows: 76px;
  }

  .map-dossier {
    min-height: 58px;
    grid-template-columns: 110px 1fr;
  }

  .map-dossier h2 {
    font-size: 14px;
  }

  .map-dossier p {
    font-size: 8px;
  }
}

@media (orientation: portrait) {
  .fighter-dossier {
    grid-template-columns: 1fr;
    width: 97vw;
  }

  .fighter-bio p {
    display: none;
  }

  .map-carousel .map-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .map-dossier {
    width: 96vw;
  }
}


/* v65 — seletor de cenário com prévia principal e faixa de miniaturas reais */
.map-select {
  gap: 5px;
}

.map-select .select-title {
  order: 0;
}

.map-dossier {
  order: 1;
  width: min(96vw, 1040px);
  height: min(51vh, 282px);
  min-height: 150px;
  grid-template-columns: minmax(0, 2.25fr) minmax(225px, .85fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(7, 12, 20, .98), rgba(1, 4, 8, .98));
  border: 2px solid rgba(255, 255, 255, .48);
  border-left: 2px solid rgba(255, 255, 255, .48);
  box-shadow: 0 9px 24px rgba(0, 0, 0, .72);
}

.map-dossier > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center;
  border-right: 2px solid rgba(255, 213, 74, .62);
  background: #101723;
}

.map-dossier > div {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(255, 213, 74, .08), transparent 42%),
    rgba(3, 7, 12, .97);
}

.map-dossier h2 {
  color: #101010;
  background: linear-gradient(90deg, #ffd54a, #d99a18);
  width: fit-content;
  max-width: 100%;
  margin: 7px 0 12px;
  padding: 6px 14px 4px;
  font-size: clamp(18px, 2.6vw, 30px);
  line-height: 1;
  transform: skew(-4deg);
}

.map-dossier p {
  color: #e4e9ef;
  font-size: clamp(10px, 1.25vw, 14px);
  line-height: 1.4;
}

.map-carousel {
  order: 2;
  flex: none;
  width: min(97vw, 1110px);
  height: min(18vh, 98px);
  min-height: 70px;
  max-height: 98px;
  overflow: hidden;
}

.map-carousel .map-grid {
  grid-template-columns: repeat(11, minmax(82px, 1fr));
  grid-auto-rows: 1fr;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ffd54a #07101d;
}

.map-carousel .map-card {
  display: block;
  width: auto;
  min-width: 0;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  background: #101723;
  border: 2px solid #6f7a88;
  box-shadow: 0 4px #020407;
}

.map-card img {
  position: absolute;
  z-index: 0;
  inset: 0 0 22px;
  display: block;
  width: 100%;
  height: calc(100% - 22px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(.88) brightness(.8);
}

.map-card::after {
  z-index: 1;
  height: 24px;
}

.map-card b {
  z-index: 2;
  bottom: 4px;
  padding-inline: 3px;
  font-size: clamp(7px, 1vw, 11px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-card.selected {
  border-color: #ffd54a;
  box-shadow: 0 0 0 2px #9b650b, 0 0 17px rgba(255, 213, 74, .7);
}

.map-card.selected img {
  filter: saturate(1.12) brightness(1.04);
}

.map-select .select-actions {
  order: 3;
}

@media (max-height: 430px) {
  .map-dossier {
    width: min(94vw, 920px);
    height: min(45vh, 194px);
    min-height: 132px;
    grid-template-columns: minmax(0, 2.4fr) minmax(190px, .8fr);
  }

  .map-dossier > div {
    padding: 8px 12px;
  }

  .map-dossier h2 {
    margin: 4px 0 7px;
    padding: 4px 10px 3px;
    font-size: 17px;
  }

  .map-dossier p {
    font-size: 8px;
  }

  .map-carousel {
    width: min(96vw, 1040px);
    height: 69px;
    min-height: 69px;
    max-height: 69px;
  }

  .map-carousel .map-grid {
    grid-template-columns: repeat(11, minmax(72px, 1fr));
    grid-auto-rows: 63px;
  }

  .map-card img {
    bottom: 18px;
    height: calc(100% - 18px);
  }

  .map-card::after {
    height: 20px;
  }

  .map-card b {
    bottom: 3px;
    font-size: 7px;
  }
}

@media (orientation: portrait) {
  .map-dossier {
    width: 96vw;
    height: min(50vh, 310px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .map-dossier > img {
    border-right: 0;
    border-bottom: 2px solid rgba(255, 213, 74, .62);
  }

  .map-dossier > div {
    padding: 7px 11px;
  }

  .map-dossier h2 {
    margin: 3px 0 5px;
    padding: 4px 9px 3px;
    font-size: 16px;
  }

  .map-dossier p {
    font-size: 8px;
  }

  .map-carousel {
    width: 97vw;
  }

  .map-carousel .map-grid {
    grid-template-columns: repeat(11, 100px);
  }
}


/* v66 — prévia principal usa o cenário original 1920×1080 sem recorte. */
.map-dossier {
  width: min(94vw, 850px);
  grid-template-columns: minmax(0, 16fr) minmax(245px, 9fr);
}

.map-dossier > img {
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  background: #02050b;
}

@media (max-height: 430px) {
  .map-dossier {
    width: min(92vw, 780px);
    grid-template-columns: minmax(0, 16fr) minmax(205px, 9fr);
  }
}

@media (orientation: portrait) {
  .map-dossier {
    width: 96vw;
    grid-template-columns: 1fr;
  }
}


/* v67 — enquadramento único para todos os retratos cinematográficos do grid. */
.fighter-card .cinematic-portrait,
.skin-grid .skin-card .cinematic-portrait {
  object-position: center 20%;
  image-rendering: auto;
}
