:root {
  color-scheme: dark;
  --blue: #087eff;
  --cyan: #39d8ff;
  --deep: #020817;
  --panel: #071a36;
  --line: #1677d9;
  --text: #f5f8ff;
  --muted: #b7c9e5;
}



* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #020713;
  color: var(--text);
  font: 16px Arial, Helvetica, sans-serif;
  background-image: radial-gradient(ellipse at 52% 0%, #163b71 0, transparent 48%), linear-gradient(180deg, #020817, #071b3b 70%, #020817);
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.console-shell {
  max-width: 1800px;
  min-height: 100vh;
  margin: auto;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #020b1bdf, #03132ce8 78%, #020918);
}

.console-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  opacity: .24;
  background: radial-gradient(ellipse at 80% 8%, #9acfff 0, transparent 22%), repeating-linear-gradient(115deg, transparent 0 70px, #278eff0a 71px 73px);
}

.console-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 31px;
  height: 56px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, transparent 0, #087dff22 64%, #04132988 100%);
  border-top: 1px solid #249cff77;
  box-shadow: 0 -5px 24px #087fff22;
}

/* Masthead / Banner Superior */
.masthead {
  height: clamp(96px, 13.2vw, 142px);
  min-height: 96px;
  padding: 8px clamp(12px, 3vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #020817;
  background-image: linear-gradient(180deg, #07142b, #020817);
  border-bottom: 1px solid #42b7ff;
  box-shadow: 0 4px 24px #007bff3a;
  animation: banner-neon-pulse 3.8s ease-in-out infinite;
}

.masthead::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -8px;
  right: -8px;
  bottom: -8px;
  left: -8px;
  pointer-events: none;
  background-image: url("assets/hades-home-banner-art.jpg");
  background-repeat: no-repeat;
  background-size: auto 128%;
  background-position: right center;
  transform-origin: 78% 50%;
  animation: banner-focus 12s ease-in-out infinite alternate;
}

.masthead::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 8, 22, .96) 0%, rgba(2, 8, 22, .84) 22%, rgba(3, 10, 25, .28) 42%, rgba(3, 10, 24, .08) 67%, rgba(2, 8, 20, .32) 100%), linear-gradient(105deg, transparent 35%, #247fff18 55%, transparent 75%);
  opacity: .94;
  animation: banner-sheen 4.2s ease-in-out infinite;
}

@keyframes banner-focus {
  0% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1.07) translateX(-6px);
  }
}

@keyframes banner-neon-pulse {
  0%, 100% {
    border-bottom-color: #42b7ff;
    box-shadow: 0 4px 22px #007bff35, 0 0 8px #0bbdff22;
  }
  50% {
    border-bottom-color: #a6f2ff;
    box-shadow: 0 4px 34px #078dff88, 0 0 25px #22dfff70;
  }
}

@keyframes banner-sheen {
  0%, 100% {
    opacity: .78;
  }
  50% {
    opacity: 1;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: clamp(54px, 8vw, 84px);
  height: clamp(54px, 8vw, 84px);
  object-fit: contain;
  filter: drop-shadow(0 0 10px #168aff);
}

.brand strong {
  display: block;
  font-size: clamp(24px, 3.8vw, 46px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -1.1px;
  text-shadow: 0 3px 8px #000, 0 0 18px #087fff;
}

.brand small {
  display: block;
  margin-top: 2px;
  font-size: clamp(8px, 1.1vw, 12px);
  letter-spacing: 1.4px;
  color: #c6dcf8;
}

.masthead-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 18px);
}

.platform-mark {
  padding-right: 4px;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(15px, 2vw, 24px);
  color: #dcecff;
  text-shadow: 0 0 12px #2c91ff;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #59baff;
  border-radius: 4px;
  background: linear-gradient(180deg, #0b2c53dd, #020a18e8);
  color: #d9ecff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .7px;
  cursor: pointer;
  box-shadow: 0 0 10px #087fff33;
}

.sound-toggle > span:first-child {
  font-size: 18px;
  line-height: 12px;
  color: #72d9ff;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  border-color: #c3f4ff;
  box-shadow: 0 0 13px #168fff;
  outline: none;
}

.sound-toggle.is-enabled {
  background: linear-gradient(180deg, #087d9c, #073f79);
  color: #fff;
  border-color: #91efff;
}

/* Abas de Categorias */
.top-nav {
  position: relative;
  z-index: 2;
  margin-left: clamp(100px, 15vw, 190px);
  width: calc(100% - clamp(100px, 15vw, 190px));
  height: 39px;
  min-height: 39px;
  padding: 3px clamp(5px, 1.1vw, 14px);
  display: flex;
  gap: 2px;
  justify-content: space-around;
  align-items: stretch;
  overflow: visible;
  border: 1px solid #168fff;
  border-bottom: 2px solid #36b6ff;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, #0c2b55, #020a1a);
  box-shadow: 0 0 18px #087fff66, inset 0 0 12px #138bff22;
}

.nav-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  min-height: 30px;
  flex: 1 1 0;
  max-width: 210px;
  min-width: 0;
  padding: 3px clamp(3px, .8vw, 12px);
  border: 1px solid #1674c5;
  background: linear-gradient(180deg, #0a1a33, #030a18);
  color: #edf6ff;
  font-size: clamp(9px, 1.05vw, 13px);
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  text-shadow: 0 1px 3px #000;
}

.nav-tab span {
  margin: 0;
  line-height: 1;
}

.nav-icon {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon.solid {
  fill: currentColor;
  stroke: none;
}

.nav-tab.active,
.nav-tab.active:hover,
.nav-tab:focus-visible {
  background: linear-gradient(180deg, #27adff, #0752ba);
  border-color: #b3eeff;
  box-shadow: 0 0 17px #098fff, inset 0 0 10px #ffffff45;
  color: #fff;
  outline: none;
}

.nav-tab:hover:not(.active) {
  background: linear-gradient(180deg, #0d3f7b, #061b3a);
  border-color: #49aaff;
  box-shadow: inset 0 0 9px #168fff44;
  color: #fff;
}

/* Layout Principal e Barra Lateral */
.console-layout {
  display: grid;
  grid-template-columns: clamp(100px, 15vw, 190px) minmax(0, 1fr);
  min-height: calc(100vh - 184px);
  position: relative;
  z-index: 1;
}

.sidebar {
  padding: 9px 8px 14px;
  background: linear-gradient(90deg, #020817f4, #061a38df);
  border-right: 1px solid #178bff88;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.profile {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3px;
  padding: 0 0 12px;
  text-align: center;
}

.profile img {
  display: block;
  width: clamp(84px, 11vw, 132px);
  height: clamp(84px, 11vw, 132px);
  border-radius: 50%;
  object-fit: contain;
  background: #020817;
  box-shadow: 0 0 22px #087fff;
}

.profile strong {
  font-size: 11px;
  letter-spacing: 2px;
}

.profile small {
  font-size: 10px;
  color: #b7c9e5;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #f6fbff;
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 700;
  letter-spacing: .15px;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 1px 3px #001126;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.side-icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #f7fbff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-link.selected,
.side-link[aria-pressed="true"],
.side-link:hover,
.side-link:focus-visible {
  background: linear-gradient(90deg, #1597ff, #0750b4);
  border-color: #71d9ff;
  box-shadow: 0 0 15px #087fff99, inset 0 0 10px #ffffff22;
  color: #fff;
  outline: none;
}

.side-link:not(.selected):not([aria-pressed="true"]):hover {
  background: #0a3771;
  border-color: #348ddb;
  box-shadow: 0 0 9px #087fff55;
}

.ps-symbol {
  margin: auto auto 0;
  font-size: 39px;
  font-weight: 900;
  font-style: italic;
  color: #168eff;
  text-shadow: 0 0 14px #078cff;
}

.ps-symbol span {
  font-size: 27px;
}

/* Painel Principal e Cenário */
.main-panel {
  min-width: 0;
  padding: 8px clamp(8px, 1.7vw, 22px) 12px;
  position: relative;
  isolation: isolate;
  background-color: #0b0d18;
  background-image: linear-gradient(180deg, rgba(4, 10, 25, .58), rgba(5, 10, 22, .72) 48%, rgba(5, 8, 17, .82)), url("assets/hades-underworld-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.catalog-backdrop {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.catalog-backdrop-layer {
  position: absolute;
  top: -3%;
  right: -3%;
  bottom: -3%;
  left: -3%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.78);
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .8s ease, transform 1.4s ease;
}

.catalog-backdrop-layer.is-visible {
  opacity: .78;
  transform: scale(1);
}

.catalog-section {
  position: relative;
  z-index: 1;
  padding: 4px 0 18px;
}

.catalog-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 6px;
min-height: 31px;
}
.catalog-heading h1 {
margin: 0;
display: flex;
align-items: center;
gap: 10px;
font-size: clamp(18px, 2.2vw, 27px);
font-style: italic;
letter-spacing: 2px;
text-shadow: 0 2px 8px #000;
}
.catalog-heading h1 i {
display: block;
width: 5px;
height: 22px;
background: #139cff;
transform: skew(-18deg);
box-shadow: 0 0 12px #159bff;
}
.catalog-tools {
display: flex;
align-items: center;
gap: 8px;
}
.search {
display: flex;
align-items: center;
gap: 7px;
padding: 7px 10px;
background: #03122be8;
border: 1px solid #167ee4;
border-radius: 4px;
color: #64dfff;
box-shadow: inset 0 0 12px #007bff18;
}
.search span {
font-size: 20px;
}
.search input {
width: clamp(120px, 19vw, 250px);
border: 0;
outline: 0;
background: transparent;
color: #fff;
font-size: 13px;
}
.sort-control select {
max-width: 130px;
padding: 8px 5px;
border: 1px solid #167ee4;
background: #061832;
color: #eaf4ff;
border-radius: 4px;
font-size: 12px;
}
.catalog-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
color: #bcd6f6;
font-size: 10px;
margin: 2px 0 7px;
}
.catalog-meta p {
margin: 0;
display: block;
font-size: 11px;
color: #9fc7f5;
}
.status {
display: inline-flex;
align-items: center;
gap: 7px;
margin: 2px 0 10px;
color: #8ecbff;
font-size: 10px;
letter-spacing: 1.4px;
}
.status i {
width: 7px;
height: 7px;
border-radius: 50%;
background: #27e5a2;
box-shadow: 0 0 9px #27e5a2;
}
.status.error {
color: #ff9cae;
}
.status.error i {
background: #ff5577;
box-shadow: 0 0 9px #ff5577;
}
/* Controles e Carrossel Horizontal */
.carousel-controls {
display: flex;
align-items: center;
gap: 9px;
color: #d8efff;
font-size: 11px;
font-weight: 900;
letter-spacing: 1px;
}
#page-count {
font-size: 11px;
font-weight: 900;
letter-spacing: 1px;
}
.carousel-controls button {
width: 27px;
height: 25px;
border: 1px solid #249cff;
border-radius: 4px;
background: linear-gradient(180deg, #0b3971, #04142b);
color: #fff;
font-size: 22px;
line-height: 18px;
cursor: pointer;
}
.carousel-controls button:hover:not(:disabled),
.carousel-controls button:focus-visible {
background: linear-gradient(180deg, #159fff, #0754b7);
border-color: #b3eeff;
box-shadow: 0 0 10px #098fff;
}
.carousel-controls button:disabled {
opacity: .35;
cursor: default;
}
.game-grid {
display: flex;
overflow-x: auto;
overscroll-behavior-inline: contain;
scroll-snap-type: x mandatory;
scrollbar-width: thin;
scrollbar-color: #168fff #06142a;
padding: 4px 3px 10px;
scroll-behavior: smooth;
}
.game-grid::after {
content: "";
flex: 0 0 var(--carousel-trailing-space, 0px);
pointer-events: none;
}
.game-grid > .app-card {
flex: 0 0 calc((100% - 32px) / 4);
margin-right: 8px;
min-width: 0;
scroll-snap-align: start;
}
/* Cartões do Catálogo */
.app-card {
position: relative;
min-height: 0;
padding: 3px;
border: 1px solid #248df0;
border-radius: 3px;
background: linear-gradient(180deg, #0c3e79, #06162d 74%);
box-shadow: 0 4px 14px #000a, 0 0 9px #007bff42;
cursor: pointer;
display: flex;
flex-direction: column;
transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
overflow: hidden;
}
.app-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #b5f2ff, #168fff, #b5f2ff);
z-index: 2;
}
.app-card:hover,
.app-card:focus-visible,
.app-card.selected {
transform: translateY(-3px) scale(1.015);
border-color: #8eeaff;
box-shadow: 0 0 0 2px #42c9ff, 0 0 22px #098dff, 0 8px 20px #000b;
outline: none;
}
.favorite-toggle {
position: absolute;
z-index: 5;
top: 7px;
right: 7px;
width: 25px;
height: 25px;
border: 1px solid #b7dcff99;
border-radius: 50%;
background: #00142ddd;
color: #ffe58a;
font-size: 15px;
cursor: pointer;
display: grid;
place-items: center;
}
.favorite-toggle[aria-pressed="true"] {
background: #124d8c;
color: #fff;
}
.game-physical,
.software-art {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 0 0 6px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(145deg, #092142, #040a17);
  border: 1px solid #49b6ff88;
  box-shadow: inset 0 0 14px #000c, 0 4px 10px #0008;
}

.game-cover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ps4-band {
  height: 26px;
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  padding: 0 9px;
  background: linear-gradient(90deg, #087be8, #073f91);
  border-bottom: 1px solid #b8eaff;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.game-cover-art {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 26px);
  object-fit: cover;
  object-position: center top;
  background: #05070d;
  transition: transform 0.25s ease;
}

.app-card:hover .game-cover-art,
.app-card:focus-visible .game-cover-art {
  transform: scale(1.04);
}

.software-art {
  display: block;
  border-color: #65caff;
  background: linear-gradient(145deg, #0b192e, #050811);
}

.software-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.game-cover {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
overflow: hidden;
background: linear-gradient(145deg, #0b5bb1, #06142a);
}
.ps4-band {
height: 29px;
position: absolute;
z-index: 2;
left: 0;
right: 0;
top: 0;
display: flex;
align-items: center;
padding: 0 9px;
background: linear-gradient(90deg, #087be8, #073f91);
border-bottom: 1px solid #b8eaff;
color: #fff;
font-size: 16px;
font-weight: 900;
letter-spacing: 1.8px;
}
.game-cover-art {
position: absolute;
top: 29px;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: calc(100% - 29px);
object-fit: contain;
object-position: center;
background: #05070d;
}
.game-cover-art:not([src]) {
display: none;
}
.cover-fallback {
display: none;
position: absolute;
top: 29px;
left: 0;
right: 0;
bottom: 0;
place-items: center;
padding: 8px;
text-align: center;
color: #fff;
font-size: 15px;
font-weight: 900;
background: linear-gradient(145deg, #174e88, #081329);
}
.cover-image-missing .cover-fallback {
display: grid;
}
.software-art {
display: block;
border-color: #65caff;
background: linear-gradient(145deg, #08182e, #050913);
}
.software-art img {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
background: transparent;
}
.software-art span {
position: absolute;
left: 8px;
bottom: 8px;
padding: 5px 9px;
background: #030b19d9;
border: 1px solid #61caff;
color: #fff;
font-size: 10px;
font-weight: 900;
letter-spacing: 1.5px;
}
.software-art.art-image-missing::after {
content: attr(data-fallback-name);
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: grid;
place-items: center;
padding: 18px;
background: linear-gradient(145deg, #174e88, #081329);
color: #fff;
text-align: center;
font-size: clamp(15px, 2vw, 24px);
font-weight: 900;
text-shadow: 0 2px 6px #000;
}
.app-card h3 {
margin: 0;
padding: 5px 4px 2px;
color: #fff;
font-size: clamp(16px, 1.6vw, 21px);
line-height: 1.18;
text-align: center;
text-shadow: 0 1px 4px #000;
overflow-wrap: anywhere;
}
.app-card p,
.card-bottom,
.tag,
.version {
display: none;
}
.app-card:not([data-cover]) .game-physical {
display: none;
}
.app-icon {
height: 110px;
display: grid;
place-items: center;
color: #73dfff;
font-size: 42px;
}
/* Badges de Idioma */
.card-language-badges,
.detail-language-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.card-language-badges {
justify-content: center;
padding: 2px 4px 5px;
}
.language-badge {
display: inline-flex;
align-items: center;
justify-content: center;
max-width: 100%;
padding: 5px 8px;
border: 1px solid #4ad9ff;
border-radius: 999px;
background: linear-gradient(135deg, #073457, #075f7a);
color: #d8fbff;
font-size: clamp(9px, .78vw, 11px);
font-weight: 900;
line-height: 1.2;
letter-spacing: .35px;
text-align: center;
box-shadow: 0 0 12px #11bfff30;
}
.audio-badge {
border-color: #49ecb2;
background: linear-gradient(135deg, #064631, #087b60);
color: #d8fff0;
box-shadow: 0 0 12px #18d99a30;
}
.empty {
padding: 30px;
color: #d6e8ff;
}
/* Barra Inferior do Controle */
.controller-bar {
position: sticky;
bottom: 0;
z-index: 5;
display: flex;
align-items: center;
gap: clamp(12px, 2.5vw, 35px);
min-height: 34px;
padding: 5px clamp(8px, 2vw, 24px);
background: linear-gradient(180deg, #073066, #020817);
border-top: 2px solid #188eff;
box-shadow: 0 -5px 22px #087fff35;
color: #e0efff;
font-size: 10px;
}
.controller-bar .shoulder-hint b {
font-size: 10px;
letter-spacing: .5px;
}
.controller-bar span,
.controller-bar a {
white-space: nowrap;
}
.controller-bar b {
font-size: 17px;
margin-right: 4px;
}
.cross {
color: #27baff;
}
.circle {
color: #ff477b;
}
.triangle {
color: #00e6a4;
}
.controller-bar a {
color: #fff;
text-decoration: none;
}
.controller-bar strong {
margin-left: auto;
color: #9ccaff;
font-size: 10px;
letter-spacing: 2px;
white-space: nowrap;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
:focus-visible {
outline: 2px solid #8deaff;
outline-offset: 3px;
}
/* Modal de Detalhes e Links */
dialog {
width: min(560px, 92vw);
max-height: 88vh;
overflow-y: auto;
background: linear-gradient(145deg, #0b2b53, #061226);
color: #f5f8ff;
border: 1px solid #4bc8ff;
border-radius: 8px;
padding: 26px;
box-shadow: 0 0 35px #087fff66;
}
dialog::backdrop {
background: rgba(1, 7, 20, .86);
}
.close {
float: right;
background: transparent;
border: 0;
color: #fff;
font-size: 28px;
cursor: pointer;
}
.detail-icon {
width: 90px;
height: 90px;
margin-bottom: 12px;
}
.detail-icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
.eyebrow {
color: #68dfff;
letter-spacing: 2px;
font-size: 11px;
}
.detail-meta {
display: flex;
flex-wrap: wrap;
gap: 9px;
margin: 14px 0;
color: #b8cce7;
font-size: 13px;
line-height: 1.5;
}
.detail-fact {
display: grid;
gap: 3px;
min-width: 92px;
padding: 9px 11px;
border: 1px solid #277fba;
border-radius: 5px;
background: #061a34;
color: #f0f7ff;
}
.detail-fact strong {
color: #71d9ff;
font-size: 9px;
letter-spacing: 1px;
}
.detail-fact > span {
font-size: 14px;
font-weight: 800;
}
.detail-meta .detail-language-badges {
flex-basis: 100%;
gap: 8px;
}
.detail-meta .language-badge {
padding: 8px 12px;
font-size: 12px;
}
.dialog-note {
color: #b8cce7;
font-size: 13px;
line-height: 1.5;
}
.detail-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 18px;
}
.detail-actions[hidden] {
display: none !important;
}
.package-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 12px;
}
.package-links[hidden] {
display: none !important;
}
.package-links-heading {
flex-basis: 100%;
margin: 0 0 4px;
font-size: 11px;
letter-spacing: 1.2px;
color: #76dfff;
}
.download-password {
margin: 12px 0 0;
padding: 10px 12px;
border: 1px solid #2c83c9;
border-radius: 5px;
background: #071a36;
color: #dcecff;
font-size: 13px;
}
.download-password code {
margin-left: 6px;
color: #8de5ff;
font-size: 15px;
font-weight: 900;
}
.primary-btn,
.secondary-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 11px 15px;
border: 1px solid #4bc8ff;
background: linear-gradient(180deg, #168df3, #064b9e);
color: white;
text-decoration: none;
font-weight: 900;
font-size: 12px;
cursor: pointer;
}
.secondary-btn {
background: #071a36;
}
.emulator-games {
margin-top: 22px;
padding: 16px;
border: 1px solid #248df0;
border-radius: 6px;
background: linear-gradient(145deg, #071d3b, #040d1d);
box-shadow: inset 0 0 18px #087fff16;
}
.emulator-games h3 {
margin: 0 0 6px;
color: #76dfff;
font-size: 14px;
letter-spacing: 2px;
}
.emulator-games-note {
margin: 0 0 12px;
color: #b8cce7;
font-size: 12px;
line-height: 1.5;
}
.emulator-games ul {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.emulator-games li {
display: flex;
flex-direction: column;
gap: 4px;
padding: 9px;
border: 1px solid #1d5d9c;
background: #06162d;
border-radius: 4px;
min-width: 0;
}
.emulator-games li strong {
font-size: 12px;
color: #fff;
line-height: 1.3;
}
.emulator-games li span {
font-size: 10px;
color: #79caff;
}
/* Responsividade (Tablets e Celulares) */
@media (max-width: 900px) {
.masthead {
height: clamp(96px, 13.2vw, 120px);
min-height: 96px;
}
.console-layout {
grid-template-columns: clamp(100px, 15vw, 135px) minmax(0, 1fr);
}
.game-grid > .app-card {
flex-basis: calc((100% - 16px) / 2);
}
}
@media (max-width: 560px) {
.masthead {
height: 94px;
min-height: 94px;
padding: 7px;
}
.masthead::before {
background-size: auto 124%;
background-position: right center;
}
.brand-mark {
width: 48px;
height: 48px;
}
.brand strong {
font-size: 20px;
}
.brand small {
font-size: 7px;
letter-spacing: .8px;
}
.masthead-actions {
gap: 6px;
}
.sound-toggle {
gap: 4px;
padding: 6px 7px;
font-size: 9px;
}
.sound-toggle > span:first-child {
font-size: 16px;
}
.platform-mark {
font-size: 13px;
}
.top-nav {
margin-left: 0;
width: 100%;
height: auto;
min-height: 48px;
padding: 4px;
gap: 2px;
flex-wrap: wrap;
border-radius: 0;
}
.nav-tab {
flex: 1 1 30%;
height: 22px;
min-height: 22px;
gap: 3px;
}
.nav-icon {
width: 12px;
height: 12px;
flex-basis: 12px;
}
.console-layout {
grid-template-columns: clamp(112px, 30vw, 140px) minmax(0, 1fr);
}
.profile img {
width: 92px;
height: 92px;
}
.profile strong {
font-size: 10px;
letter-spacing: 1.6px;
}
.profile small {
font-size: 9px;
}
.side-nav {
gap: 8px;
margin-top: 8px;
}
.side-link {
min-height: 35px;
justify-content: flex-start;
gap: 8px;
padding: 6px 7px;
font-size: 10px;
}
.side-icon {
width: 15px;
height: 15px;
flex: 0 0 15px;
}
.side-link span {
display: inline;
}
.main-panel {
padding: 6px;
}
.catalog-heading h1 {
font-size: 17px;
}
.catalog-tools {
width: 100%;
}
.catalog-tools .search {
flex: 1;
}
.game-grid > .app-card {
flex-basis: 82%;
}
.ps4-band {
height: 30px;
font-size: 16px;
}
.game-cover-art {
top: 30px;
height: calc(100% - 30px);
}
.cover-fallback {
top: 30px;
}
.app-card h3 {
font-size: 18px;
line-height: 1.2;
}
.card-language-badges {
gap: 4px;
}
.language-badge {
font-size: 9px;
padding: 5px 7px;
}
.detail-meta {
gap: 6px;
}
.detail-fact {
min-width: calc(50% - 6px);
flex: 1;
}
.detail-meta .language-badge {
font-size: 11px;
}
.controller-bar strong,
.controller-bar a {
display: none;
}
.controller-bar {
justify-content: space-around;
}
.emulator-games ul {
grid-template-columns: 1fr;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
.masthead::before {
transform: none;
}
.game-grid {
scroll-behavior: auto;
}
}

/* Margens mantêm o espaçamento em navegadores sem gap para Flexbox. */
@supports not (gap: 1px) {
  .brand > * + *,
  .masthead-actions > * + * { margin-left: 8px; }
  .top-nav > * + * { margin-left: 2px; }
  .nav-tab > * + * { margin-left: 5px; }
  .profile > * + * { margin-top: 3px; }
  .side-nav { display: block; }
  .side-nav > * + * { margin-top: 7px; }
  .side-link > * + * { margin-left: 11px; }
  .catalog-heading > * + * { margin-left: 10px; }
  .catalog-heading h1 > * + * { margin-left: 10px; }
  .catalog-tools > * + * { margin-left: 8px; }
  .search > * + * { margin-left: 7px; }
  .catalog-meta > * + * { margin-left: 10px; }
  .carousel-controls > * + * { margin-left: 9px; }
  .detail-meta > * + * { margin: 9px 0 0 9px; }
  .detail-fact > * + * { margin-top: 3px; }
  .detail-actions > *,
  .package-links > * { margin: 0 10px 10px 0; }
  .card-language-badges > * + *,
  .detail-language-badges > * + * { margin: 6px 0 0 6px; }
  .emulator-games li > * + * { margin-top: 4px; }
  .controller-bar > * + * { margin-left: 20px; }
  @media (max-width: 900px) {
    .game-grid > .app-card { flex-basis: calc((100% - 16px) / 2); }
  }
  @media (max-width: 760px) {
    .controller-bar > * + * { margin-left: 10px; }
  }
  @media (max-width: 560px) {
    .top-nav > * + * { margin-bottom: 2px; }
    .game-grid > .app-card { flex-basis: 82%; margin-right: 8px; }
    .card-language-badges > * + * { margin: 4px 0 0 4px; }
    .detail-meta > * + * { margin: 6px 0 0 6px; }
    .controller-bar > * + * { margin-left: 4px; }
  }
}

/* Moldura e proporção únicas para todas as capas do carrossel. */
.game-physical,
.software-art {
  width: 100%;
  height: auto !important;
  aspect-ratio: 3 / 4;
  margin: 0 0 6px;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(145deg, #092142, #040a17);
  border: 1px solid #49b6ff99;
  box-shadow: inset 0 0 14px #000c, 0 4px 12px #0009;
}

.game-cover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ps4-band {
  height: 26px;
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  padding: 0 9px;
  background: linear-gradient(90deg, #087be8, #073f91);
  border-bottom: 1px solid #b8eaff;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
}

.game-cover-art {
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 26px);
  object-fit: cover;
  object-position: center top;
  background: #05070d;
  transition: transform 0.25s ease;
}

.app-card:hover .game-cover-art,
.app-card:focus-visible .game-cover-art {
  transform: scale(1.04);
}

.software-art {
  display: block;
  border-color: #65caff;
  background: linear-gradient(145deg, #0b192e, #050811);
}

.emulator-physical .game-cover-art,
.software-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.app-card:hover .software-art img {
  transform: scale(1.04);
}

/* HADES Store — vitrine editorial */
:root {
  --blue: #e25b3c;
  --cyan: #ffc078;
  --deep: #100e12;
  --panel: #1c171a;
  --line: #6f382d;
  --text: #fff8f0;
  --muted: #c5b7ae;
  color-scheme: dark;
}

body {
  background: #100e12;
  background-image: radial-gradient(ellipse at 52% 0%, #40201e 0, transparent 46%), linear-gradient(180deg, #100e12, #171316 68%, #100e12);
}

.console-shell {
  max-width: 1920px;
  background: #141114;
}

.console-shell::before {
  opacity: .12;
  background: radial-gradient(ellipse at 82% 10%, #f4a264 0, transparent 25%), repeating-linear-gradient(115deg, transparent 0 86px, #ffc07808 87px 89px);
}

.console-shell::after { display: none; }

.masthead {
  height: clamp(100px, 10vw, 132px);
  min-height: 100px;
  padding-inline: clamp(22px, 5vw, 76px);
  border-bottom: 1px solid #ffffff14;
  box-shadow: 0 8px 38px #0005;
  animation: none;
  background: #100e12;
}

.masthead::before {
  background-size: auto 170%;
  opacity: .9;
  animation: none;
}

.masthead::after {
  background: linear-gradient(90deg, #100e12 0%, #100e12e8 24%, #100e1266 54%, #100e1233 100%);
  animation: none;
}

.brand { gap: 14px; }
.brand-mark { filter: drop-shadow(0 0 14px #db603c55); }
.brand strong {
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: 1.5px;
  font-style: normal;
  text-shadow: 0 2px 14px #000;
}
.brand small { color: #d6bcae; letter-spacing: 2px; }

.sound-toggle {
  padding: 10px 13px;
  border-color: #ffffff30;
  border-radius: 999px;
  background: #100e12aa;
  color: #ead9ce;
  box-shadow: none;
}
.sound-toggle > span:first-child { color: #ffc078; }
.sound-toggle:hover, .sound-toggle:focus-visible { border-color: #ffc078; box-shadow: 0 0 18px #e25b3c33; }
.sound-toggle.is-enabled { background: #633322; border-color: #ffc078; }
.platform-mark { color: #f8e6d8; text-shadow: none; }

.top-nav {
  width: auto;
  height: 58px;
  margin: 0;
  padding: 7px clamp(18px, 5vw, 76px);
  justify-content: flex-start;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid #ffffff12;
  border-radius: 0;
  background: #171417;
  box-shadow: none;
}
.nav-tab {
  height: 42px;
  min-height: 42px;
  padding-inline: 18px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #c9bdb6;
  font-size: 11px;
  letter-spacing: 1.1px;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.nav-icon { width: 16px; height: 16px; flex-basis: 16px; color: inherit; }
.nav-icon.solid { fill: currentColor; }
.nav-tab.active, .nav-tab.active:hover, .nav-tab:focus-visible {
  background: #5b2925;
  border-color: #b94d38;
  box-shadow: inset 0 1px #ffc07830;
  color: #fff4e9;
}
.nav-tab:hover:not(.active) { background: #ffffff08; border-color: #ffffff18; box-shadow: none; color: white; }

.console-layout {
  grid-template-columns: clamp(170px, 17vw, 230px) minmax(0, 1fr);
  min-height: calc(100vh - 190px);
}
.sidebar {
  padding: 26px 18px;
  background: #171417;
  border-right: 1px solid #ffffff12;
}
.profile { gap: 7px; padding-bottom: 24px; }
.profile img {
  width: 88px; height: 88px;
  border: 1px solid #f3a35a66;
  background: #21191a;
  box-shadow: 0 8px 25px #0007;
}
.profile strong { color: #fff1e4; font-size: 12px; letter-spacing: 2.5px; }
.profile small { color: #bcaea6; font-size: 11px; }
.side-nav { gap: 6px; }
.side-link {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #c9bdb6;
  font-weight: 600;
  text-shadow: none;
}
.side-icon { color: inherit; stroke: currentColor; }
.side-link.selected, .side-link[aria-pressed="true"], .side-link:hover, .side-link:focus-visible {
  background: #572923;
  border-color: #9b4937;
  box-shadow: inset 3px 0 #f0a45c;
  color: #fff4e9;
}
.side-link:not(.selected):not([aria-pressed="true"]):hover { background: #ffffff09; border-color: #ffffff15; box-shadow: none; }
.ps-symbol { color: #d86943; text-shadow: 0 0 20px #d8694355; }

.main-panel {
  padding: 0 clamp(22px, 4.2vw, 64px) 44px;
  background-color: #141114;
  background-image: linear-gradient(180deg, #141114b8, #141114eb 65%, #141114f5), url("assets/hades-underworld-bg.svg");
}
.catalog-backdrop-layer { filter: saturate(.55) blur(2px); }
.catalog-backdrop-layer.is-visible { opacity: .12; }

.store-intro {
  position: relative;
  min-height: clamp(220px, 24vw, 340px);
  margin: 0 calc(clamp(22px, 4.2vw, 64px) * -1) 42px;
  padding: clamp(32px, 5vw, 70px) clamp(22px, 4.2vw, 64px) 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(90deg, #1b1518 4%, #1b1518ed 30%, #1b151899 58%, #1b151820 100%), url("assets/hades-home-banner-art.jpg") 66% 45% / cover no-repeat;
  border-bottom: 1px solid #d5895640;
}
.store-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #141114bb, transparent 40%), radial-gradient(ellipse at 72% 50%, #ed67401b, transparent 45%);
}
.store-intro-copy { position: relative; z-index: 1; }
.store-kicker, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e9a467;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
}
.store-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #e47846; box-shadow: 0 0 12px #e47846; }
.store-intro h1 {
  margin: 14px 0 10px;
  color: #fff8f0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -1.7px;
  text-shadow: 0 3px 24px #0009;
}
.store-intro h1 em { color: #f1a762; font-weight: 500; }
.store-intro p { margin: 0; color: #e0d0c5; font-size: clamp(13px, 1.3vw, 16px); }
.store-intro-mark {
  position: absolute;
  top: 50%; right: clamp(30px, 12vw, 190px);
  width: clamp(90px, 13vw, 170px);
  transform: translateY(-50%);
  opacity: .46;
  filter: drop-shadow(0 0 35px #e27743aa);
}
.store-intro-mark img { display: block; width: 100%; }
.store-intro-foot {
  position: absolute;
  right: clamp(22px, 4.2vw, 64px); bottom: 17px; left: clamp(22px, 4.2vw, 64px);
  display: flex; justify-content: space-between;
  color: #e1c5b3aa;
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
}

.catalog-section { padding-top: 0; }
.catalog-heading {
  min-height: 0;
  margin: 0 0 15px;
  gap: 18px;
}
.catalog-title-group { display: grid; gap: 6px; }
.section-kicker { color: #c58f6b; font-size: 9px; letter-spacing: 2px; }
.catalog-heading h2 {
  margin: 0;
  color: #fff7f0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -.4px;
}
.catalog-heading h1 i { display: none; }
.catalog-tools { gap: 10px; }
.search {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  background: #201b1f;
  color: #e5a66e;
  box-shadow: none;
}
.search:focus-within { border-color: #d4784e; box-shadow: 0 0 0 3px #d4784e20; }
.search input { width: clamp(170px, 18vw, 250px); color: #fff8f0; }
.search input::placeholder { color: #a99a92; }
.sort-control select {
  min-height: 42px;
  padding: 8px 28px 8px 12px;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  background: #201b1f;
  color: #e9ddd5;
}
.status { color: #c9aaa0; font-size: 9px; letter-spacing: 1.3px; }
.status i { background: #e6a267; box-shadow: 0 0 8px #e6a26766; }
.catalog-meta { margin: 9px 0 13px; color: #a99a92; }
.catalog-meta p { color: #b7aaa2; font-size: 12px; }
.carousel-controls { color: #e5d8d0; }
.carousel-controls button {
  width: 32px; height: 32px;
  border: 1px solid #ffffff22;
  border-radius: 50%;
  background: #251e22;
  color: #f1c291;
}
.carousel-controls button:hover:not(:disabled), .carousel-controls button:focus-visible {
  border-color: #e18a56; background: #542b25; box-shadow: none;
}
.game-grid {
  gap: 16px;
  padding: 6px 3px 22px;
  scrollbar-color: #754637 #201b1f;
}
.game-grid > .app-card {
  flex-basis: calc((100% - 48px) / 4);
  margin-right: 0;
}
.app-card {
  padding: 9px;
  border: 1px solid #ffffff16;
  border-radius: 12px;
  background: #211c20;
  box-shadow: 0 8px 24px #0003;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card::before { display: none; }
.app-card:hover, .app-card:focus-visible, .app-card.selected {
  transform: translateY(-4px);
  border-color: #d17a4c;
  box-shadow: 0 16px 35px #0007, 0 0 0 1px #d17a4c66;
}
.game-physical, .software-art {
  margin-bottom: 10px;
  border: 1px solid #ffffff17;
  border-radius: 8px;
  box-shadow: none;
  background: #171417;
}
.ps4-band {
  height: 25px;
  padding-inline: 10px;
  background: #131114df;
  border-bottom: 1px solid #ffffff16;
  color: #f7d7bd;
  font-size: 10px;
  letter-spacing: 1.3px;
  backdrop-filter: blur(8px);
}
.game-cover-art { top: 25px; height: calc(100% - 25px); }
.cover-fallback { top: 25px; background: linear-gradient(145deg, #5b2b26, #201a1e); }
.software-art span {
  border: 1px solid #ffffff20;
  border-radius: 999px;
  background: #171417d9;
  color: #f2c091;
  font-size: 8px;
  letter-spacing: 1.3px;
}
.app-card h3 {
  padding: 4px 4px 3px;
  color: #fff6ee;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.16;
  text-shadow: none;
}
.app-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 5px 4px 10px;
  color: #bdafa6;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}
.card-language-badges { min-height: 0; gap: 5px; padding: 3px 4px; }
.language-badge {
  padding: 4px 7px;
  border: 1px solid #9d714b66;
  background: #34271f;
  color: #f2d7bd;
  font-size: 8px;
  letter-spacing: .25px;
  box-shadow: none;
}
.audio-badge { border-color: #548a6c66; background: #1e3329; color: #c8e6cf; box-shadow: none; }
.favorite-toggle {
  top: 17px; right: 17px;
  width: 34px; height: 34px;
  border: 1px solid #ffffff38;
  background: #171417d9;
  color: #fff1dc;
  font-size: 19px;
  backdrop-filter: blur(8px);
}
.favorite-toggle[aria-pressed="true"] { background: #71382b; color: #ffd093; }
.card-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: auto 3px 2px;
  padding-top: 9px;
  border-top: 1px solid #ffffff12;
}
.tag, .version {
  display: inline-flex;
  color: #c5a895;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
}
.version { margin-left: auto; color: #9b8c84; }
.card-details {
  padding: 6px 8px;
  border: 1px solid #a4553b88;
  border-radius: 999px;
  background: #4d2823;
  color: #f4c39a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
}
.card-details:hover { background: #6a3327; border-color: #df8b5d; }

.controller-bar {
  min-height: 42px;
  padding-inline: clamp(18px, 4vw, 60px);
  border-top: 1px solid #ffffff13;
  background: #171417;
  box-shadow: none;
  color: #c9bdb6;
}
.controller-bar strong { color: #bc9072; }
.controller-bar a { color: #e9c5a8; }
.cross { color: #ed9784; }
.circle { color: #9aaee2; }
.triangle { color: #87c8a0; }
:focus-visible { outline-color: #ffc078; }

dialog {
  border-color: #a95b40;
  border-radius: 14px;
  background: linear-gradient(145deg, #2a2022, #171417);
  box-shadow: 0 24px 80px #000b;
}
dialog::backdrop { background: #0b080bdc; backdrop-filter: blur(6px); }
.eyebrow, .detail-fact strong, .package-links-heading, .emulator-games h3 { color: #e9a467; }
.detail-fact, .download-password, .secondary-btn, .emulator-games, .emulator-games li {
  border-color: #ffffff1c;
  border-radius: 8px;
  background: #211b1f;
}
.primary-btn { border: 1px solid #e98a5a; border-radius: 999px; background: #71382b; }
.secondary-btn { border-radius: 999px; }

@media (max-width: 1100px) {
  .game-grid > .app-card { flex-basis: calc((100% - 32px) / 3); }
}
@media (max-width: 760px) {
  .top-nav {
    min-height: 58px; height: 58px;
    flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none;
    padding-inline: 14px;
  }
  .top-nav::-webkit-scrollbar { display: none; }
  .nav-tab { flex: 0 0 auto; padding-inline: 14px; }
  .console-layout { display: block; min-height: calc(100vh - 200px); }
  .sidebar { display: none; }
  .main-panel { padding-inline: 20px; }
  .store-intro { margin-inline: -20px; padding-inline: 24px; }
  .store-intro-foot { left: 24px; right: 24px; }
  .store-intro-mark { right: 7%; opacity: .3; }
  .catalog-heading { align-items: flex-start; }
  .catalog-tools { width: 100%; }
  .catalog-tools .search { flex: 1; }
  .game-grid > .app-card { flex-basis: calc((100% - 16px) / 2); }
  .controller-bar { gap: 8px; font-size: 9px; }
}
@media (max-width: 520px) {
  .masthead { height: 82px; min-height: 82px; padding-inline: 14px; }
  .brand { gap: 8px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand strong { font-size: 19px; letter-spacing: .5px; }
  .brand small { font-size: 6px; letter-spacing: 1px; }
  .masthead-actions { gap: 5px; }
  .sound-toggle { padding: 7px 8px; font-size: 8px; }
  .sound-toggle > span:first-child { font-size: 15px; }
  .platform-mark { font-size: 11px; }
  .top-nav { min-height: 52px; height: 52px; padding-block: 5px; }
  .nav-tab { min-height: 38px; height: 38px; padding-inline: 12px; font-size: 9px; }
  .nav-icon { width: 14px; height: 14px; flex-basis: 14px; }
  .main-panel { padding-inline: 15px; }
  .store-intro { min-height: 225px; margin: 0 -15px 30px; padding: 28px 20px 43px; background-position: 60% center; }
  .store-intro h1 { font-size: 43px; }
  .store-intro p { max-width: 240px; font-size: 12px; line-height: 1.5; }
  .store-intro-foot { left: 20px; right: 20px; bottom: 14px; font-size: 7px; }
  .store-intro-mark { right: 4%; width: 90px; opacity: .24; }
  .catalog-heading { gap: 13px; }
  .catalog-heading h2 { font-size: 27px; }
  .section-kicker { font-size: 8px; }
  .catalog-tools { gap: 6px; }
  .search { min-height: 40px; padding-inline: 10px; }
  .search input { min-width: 0; width: 100%; font-size: 12px; }
  .sort-control select { min-height: 40px; max-width: 115px; font-size: 10px; }
  .game-grid { gap: 10px; margin-inline: -3px; }
  .game-grid > .app-card { flex-basis: calc((100% - 10px) / 2); }
  .app-card { padding: 6px; border-radius: 9px; }
  .app-card h3 { font-size: 16px; }
  .app-card p { font-size: 10px; }
  .favorite-toggle { top: 12px; right: 12px; width: 30px; height: 30px; }
  .card-bottom { flex-wrap: wrap; gap: 5px; }
  .tag, .version { font-size: 8px; }
  .card-details { font-size: 7px; padding: 5px 6px; }
  .controller-bar { min-height: 38px; padding-inline: 8px; }
  .controller-bar > span { white-space: nowrap; }
  .controller-bar b { margin-right: 2px; font-size: 14px; }
}

/* Acabamento noturno azul, adaptado aos seletores reais da loja. */
body {
  background-color: #0b1116;
  color: #e0e6ed;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .9);
}

.masthead {
  background-color: #0b1116;
  border-bottom: 2px solid rgba(255, 255, 255, .05);
  box-shadow: inset 0 -40px 60px #0b1116, 0 10px 30px rgba(0, 0, 0, .8);
}

.masthead::before {
  background-image: url("assets/hades-home-banner-art.jpg");
  background-size: cover;
  background-position: center 42%;
}

.masthead::after {
  background: linear-gradient(90deg, rgba(7, 13, 18, .84), rgba(7, 13, 18, .18) 68%, rgba(7, 13, 18, .48));
}

.top-nav {
  background: linear-gradient(180deg, rgba(20, 32, 43, .85), rgba(13, 21, 29, .95));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .7);
  backdrop-filter: blur(5px);
}

.nav-tab {
  transition: all .3s ease;
  text-shadow: 0 0 8px rgba(0, 0, 0, .8);
}

.nav-tab:hover:not(.active),
.nav-tab:focus-visible:not(.active) {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .1);
  color: #fff;
}

.nav-tab.active,
.nav-tab.active:hover,
.nav-tab.active:focus-visible {
  background: linear-gradient(180deg, rgba(31, 67, 88, .98), rgba(13, 31, 43, .98));
  border-color: rgba(118, 191, 215, .48);
  box-shadow: inset 0 0 14px rgba(125, 204, 229, .13), 0 0 16px rgba(0, 168, 204, .12);
  color: #edf8fc;
}

.app-card {
  background: linear-gradient(135deg, rgba(25, 38, 51, .6), rgba(16, 25, 34, .8));
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 4px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .85), inset 0 1px rgba(255, 255, 255, .1);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease;
}

.app-card:hover,
.app-card:focus-visible,
.app-card.selected {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 168, 204, .4);
  box-shadow: 0 20px 35px rgba(0, 0, 0, .95), 0 0 15px rgba(0, 168, 204, .2);
}

.sidebar {
  background: rgba(9, 14, 19, .85);
  border-right: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 5px 0 25px rgba(0, 0, 0, .8);
}

.side-link.selected,
.side-link[aria-pressed="true"],
.side-link:hover,
.side-link:focus-visible {
  background: rgba(34, 69, 87, .84);
  border-color: rgba(95, 171, 197, .48);
  box-shadow: inset 3px 0 rgba(112, 205, 228, .9), 0 0 16px rgba(0, 168, 204, .12);
  color: #fff;
}

.store-intro h1 em,
.store-kicker,
.section-kicker { color: #9cc8d9; }
.store-kicker i { background: #67b8d2; box-shadow: 0 0 12px #67b8d2; }
.store-intro-mark { filter: drop-shadow(0 0 35px #5aaed577); }
.store-intro { border-bottom-color: rgba(140, 198, 220, .22); }

.controller-bar {
  background: linear-gradient(0deg, rgba(7, 11, 15, .95), rgba(13, 21, 29, .8));
  border-top: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .9);
}

/* Composição alinhada ao mockup enviado: cabeçalho, banner e vitrine. */
.masthead {
  height: 58px;
  min-height: 58px;
  padding: 4px clamp(14px, 2.5vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 -20px 28px #0b1116aa, 0 5px 18px #0009;
  background: #0b1116;
}
.masthead::before {
  background-image: linear-gradient(120deg, #0c141a, #1c2b35 48%, #0b1116);
  background-size: cover;
  background-position: center;
  opacity: .58;
  transform: none;
}
.masthead::after {
  background: linear-gradient(90deg, #0b1116 0%, #0b1116b8 45%, #0b111655 100%);
}
.brand { gap: 9px; }
.brand-mark { width: 46px; height: 46px; }
.brand strong { font-size: 21px; letter-spacing: 1px; }
.brand small { margin-top: 0; font-size: 7px; letter-spacing: 1.1px; }
.masthead-actions { gap: 8px; }
.sound-toggle {
  padding: 7px 10px;
  border-color: #c6deeb35;
  background: #0b1116b8;
  color: #d2e5ee;
}
.platform-mark { font-size: 15px; color: #d5e7ef; }

.store-intro {
  height: clamp(160px, 16.2vw, 224px);
  min-height: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(166, 210, 228, .24);
  background: #0b1116;
}
.store-intro::before { display: none; }
.store-banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  filter: saturate(.88) contrast(1.04);
}

.top-nav {
  min-height: 54px;
  height: 54px;
  padding: 5px clamp(10px, 2.2vw, 30px);
  gap: 7px;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(20, 32, 43, .93), rgba(13, 21, 29, .98));
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom-color: rgba(255, 255, 255, .12);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .7);
  backdrop-filter: blur(5px);
}
.nav-tab {
  flex: 1 1 0;
  justify-content: center;
  min-width: max-content;
  height: 40px;
  min-height: 40px;
  padding-inline: clamp(8px, 1.4vw, 20px);
  border: 1px solid transparent;
  border-radius: 4px;
  color: #c2d4df;
  text-shadow: 0 0 8px rgba(0, 0, 0, .8);
  transition: all .3s ease;
}
.nav-tab.active, .nav-tab.active:hover, .nav-tab.active:focus-visible {
  background: linear-gradient(180deg, rgba(34, 67, 86, .98), rgba(13, 28, 39, .98));
  border-color: rgba(164, 211, 229, .4);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .1), 0 0 14px rgba(0, 168, 204, .13);
  color: #f2f8fb;
}
.nav-tab:hover:not(.active), .nav-tab:focus-visible:not(.active) {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .1);
  color: #fff;
}

.console-layout {
  grid-template-columns: clamp(190px, 19vw, 255px) minmax(0, 1fr);
  min-height: 0;
}
.sidebar.details-sidebar {
  display: flex;
  gap: 10px;
  padding: 16px 14px;
  background: rgba(9, 14, 19, .9);
  border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 5px 0 25px rgba(0, 0, 0, .8);
}
.featured-kicker {
  color: #9fc8d9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.featured-category {
  color: #91b8c9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.featured-title {
  margin: 0;
  color: #e7eff3;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.12;
}
.featured-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  color: #bac8ce;
  font-size: 12px;
  line-height: 1.48;
}
.featured-open {
  margin-top: auto;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(126, 193, 214, .4);
  border-radius: 4px;
  background: linear-gradient(180deg, #1b3948, #10212b);
  color: #e0f0f5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
}
.featured-open:hover:not(:disabled), .featured-open:focus-visible:not(:disabled) {
  background: #234859;
  box-shadow: 0 0 14px rgba(0, 168, 204, .18);
}
.featured-open:disabled { opacity: .45; cursor: default; }
.featured-search {
  display: flex;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 4px;
  color: #bdcdd4;
  font-size: 10px;
}
.featured-search:hover, .featured-search:focus-visible {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(121, 189, 210, .28);
  box-shadow: none;
}

.main-panel {
  padding: 9px clamp(9px, 1.4vw, 19px) 16px;
  background: linear-gradient(180deg, #111a21, #0d1318);
}
.catalog-backdrop { display: none; }
.catalog-section { padding: 0; }
.catalog-heading {
  min-height: 36px;
  margin: 0 0 5px;
  flex-wrap: nowrap;
  gap: 12px;
}
.catalog-title-group { gap: 0; }
.catalog-title-group .section-kicker { display: none; }
.catalog-heading h2 { font: 800 13px/1.2 Arial, Helvetica, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: #c4d3db; }
.catalog-tools { gap: 6px; }
.search, .sort-control select { min-height: 32px; padding-block: 5px; border-radius: 4px; }
.search, .sort-control select { border-color: rgba(255, 255, 255, .14); background-color: #111a21; color: #c8d7de; box-shadow: none; }
.search { color: #a6c9d7; }
.search:focus-within { border-color: #6da9bf; box-shadow: 0 0 0 2px rgba(72, 160, 189, .14); }
.search input { color: #e0e6ed; }
.search input::placeholder { color: #84959d; }
.carousel-controls { color: #b7c8d0; }
.carousel-controls button { border-color: rgba(255, 255, 255, .16); background: #18242c; color: #b8d2dc; }
.carousel-controls button:hover:not(:disabled), .carousel-controls button:focus-visible { border-color: #6da9bf; background: #203b48; box-shadow: 0 0 12px rgba(0, 168, 204, .14); }
.search input { width: clamp(118px, 14vw, 205px); }
.search span { font-size: 17px; }
.sort-control select { max-width: 118px; font-size: 10px; }
.status { display: inline-flex; margin: 0 0 4px; font-size: 8px; letter-spacing: 1px; color: #9aadb6; }
.catalog-meta { min-height: 25px; margin: 1px 0 5px; font-size: 9px; }
.catalog-meta p { font-size: 10px; color: #9eb0b9; }
.carousel-controls { gap: 6px; font-size: 9px; }
.carousel-controls button { width: 25px; height: 24px; font-size: 18px; line-height: 16px; }

.game-grid { gap: 9px; padding: 3px 2px 10px; }
.game-grid > .app-card { margin-right: 0; min-width: 0; }
.app-card {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(25, 38, 51, .6), rgba(16, 25, 34, .8));
  box-shadow: 0 12px 24px rgba(0, 0, 0, .85), inset 0 1px rgba(255, 255, 255, .1);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, border-color .25s ease;
}
.app-card:hover, .app-card:focus-visible, .app-card.selected {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0, 168, 204, .4);
  box-shadow: 0 20px 35px rgba(0, 0, 0, .95), 0 0 15px rgba(0, 168, 204, .2);
}
.game-physical, .software-art {
  margin-bottom: 5px;
  border-radius: 3px;
  border-color: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 5px 12px rgba(0, 0, 0, .55);
}
.ps4-band {
  height: 24px;
  padding-inline: 7px;
  background: linear-gradient(90deg, rgba(15, 29, 40, .96), rgba(30, 47, 59, .88));
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #b8cbd5;
  font-size: 11px;
  letter-spacing: 1.2px;
}
.game-cover-art { top: 24px; height: calc(100% - 24px); }
.cover-fallback { top: 24px; background: linear-gradient(145deg, #233b4a, #10181f); }
.app-card h3 {
  padding: 4px 3px 2px;
  color: #dce7ec;
  font: 600 clamp(13px, 1.1vw, 16px)/1.2 Arial, Helvetica, sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .9);
}
.app-card p {
  margin: 4px 3px 6px;
  color: #9eafb8;
  font-size: 10px;
}
.card-language-badges { gap: 3px; }
.language-badge { padding: 3px 5px; font-size: 7px; }
.favorite-toggle {
  top: 9px; right: 9px; width: 26px; height: 26px;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(7, 15, 21, .85);
}
.favorite-toggle[aria-pressed="true"] { background: #345568; color: #e8f7fb; }
.card-bottom { margin: auto 2px 1px; padding-top: 5px; border-top-color: rgba(255, 255, 255, .07); }
.tag, .version { color: #91a5af; font-size: 7px; }
.card-details { border-radius: 3px; background: #172c37; border-color: #557d8c88; color: #c7e1ea; }
.language-badge { border-color: rgba(120, 175, 194, .36); background: #192933; color: #c4dbe3; }
.audio-badge { border-color: rgba(118, 177, 142, .42); background: #1b2b24; color: #cde2d3; }

.controller-bar {
  min-height: 40px;
  padding: 5px clamp(12px, 2.2vw, 30px);
  background: linear-gradient(0deg, rgba(7, 11, 15, .98), rgba(13, 21, 29, .9));
  border-top: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .9);
  color: #bdcbd2;
}

/* Ajustes finais do mockup: logo em destaque, abas inclinadas e arte viva. */
.masthead {
  position: relative;
  z-index: 4;
  overflow: visible;
  isolation: isolate;
  height: 62px;
  min-height: 62px;
  padding-inline: clamp(16px, 3vw, 42px);
  background: linear-gradient(180deg, #233641, #101a21 65%, #0b1116);
  border-top: 2px solid rgba(170, 218, 236, .46);
  border-bottom: 2px solid rgba(170, 218, 236, .24);
  box-shadow: inset 0 0 24px rgba(136, 191, 212, .14), 0 7px 24px #000b;
}
.masthead::before {
  z-index: -1;
  opacity: .34;
  background-image: url("assets/hades-underworld-bg.svg");
  background-size: cover;
  background-position: center 37%;
}
.masthead::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 17, 23, .28), rgba(8, 17, 23, .58) 55%, rgba(8, 17, 23, .24));
}
.brand { position: relative; z-index: 2; gap: 11px; }
.brand-mark {
  position: relative;
  z-index: 3;
  width: 76px;
  height: 76px;
  margin-block: 4px -13px;
  filter: drop-shadow(0 0 9px rgba(110, 207, 235, .6));
  animation: avatar-aura 3.4s ease-in-out infinite;
}
.brand strong {
  color: #d9e9f0;
  font-size: clamp(21px, 2.5vw, 31px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .8px;
  text-shadow: 0 2px 7px #000, 0 0 16px rgba(134, 201, 224, .36);
}
.brand small { display: none; }
.masthead-actions { position: relative; z-index: 2; }
.platform-mark { color: #d3e2e9; font-size: clamp(12px, 1.5vw, 17px); }
.sound-toggle { border-color: rgba(191, 222, 235, .28); }

.store-intro {
  position: relative;
  z-index: 1;
  height: clamp(184px, 19vw, 258px);
  overflow: hidden;
  border: 2px solid rgba(127, 178, 198, .43);
  border-top: 0;
  border-bottom: 3px solid rgba(157, 203, 221, .38);
  box-shadow: inset 0 -28px 40px rgba(5, 12, 17, .48), 0 12px 24px rgba(0, 0, 0, .55);
}
.store-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 13, 18, .06), transparent 65%, rgba(7, 13, 18, .2));
  box-shadow: inset 0 0 30px rgba(136, 198, 220, .12);
}
.store-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  transform: scale(1.055) translate3d(var(--banner-x, 0px), var(--banner-y, 0px), 0);
  transform-origin: center;
  animation: banner-pan 30s ease-in-out infinite alternate;
  will-change: transform, object-position;
}

.top-nav {
  min-height: 60px;
  height: 60px;
  padding: 6px clamp(12px, 2vw, 28px);
  gap: 3px;
  border: 2px solid rgba(111, 157, 177, .38);
  border-top: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(27, 46, 59, .97), rgba(9, 18, 25, .99));
  box-shadow: inset 0 0 22px rgba(132, 193, 215, .12), 0 8px 20px rgba(0, 0, 0, .55);
}
.nav-tab {
  min-height: 44px;
  height: 44px;
  padding-inline: clamp(12px, 2vw, 28px);
  gap: 9px;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(39, 64, 80, .9), rgba(14, 28, 38, .94));
  color: #b9cbd4;
  font-size: clamp(10px, 1.2vw, 14px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: .6px;
}
.nav-tab.active, .nav-tab.active:hover, .nav-tab.active:focus-visible {
  background: linear-gradient(180deg, rgba(69, 119, 145, .92), rgba(21, 49, 64, .98));
  color: #e2f4fa;
  box-shadow: inset 0 0 18px rgba(164, 226, 247, .16), 0 0 14px rgba(101, 184, 211, .2);
}
.nav-tab:hover:not(.active), .nav-tab:focus-visible:not(.active) {
  background: linear-gradient(180deg, rgba(67, 99, 116, .8), rgba(24, 42, 53, .95));
  color: #fff;
  box-shadow: inset 0 0 14px rgba(215, 240, 249, .12);
}

.controller-bar {
  min-height: 52px;
  border-top: 2px solid rgba(112, 170, 192, .38);
  background: linear-gradient(180deg, rgba(21, 37, 48, .98), rgba(6, 12, 17, .99));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .8), inset 0 1px rgba(213, 238, 247, .08);
  color: #cad9df;
  font-size: 11px;
}
.controller-bar strong { color: #d6e8ef; font-style: italic; }

@keyframes avatar-aura {
  0%, 100% { transform: translateY(7px) scale(1); filter: drop-shadow(0 0 7px rgba(94, 184, 214, .5)); }
  50% { transform: translateY(2px) scale(1.05); filter: drop-shadow(0 0 16px rgba(153, 225, 246, .92)); }
}
@keyframes banner-pan {
  0% { object-position: 43% 45%; }
  100% { object-position: 57% 52%; }
}

@media (max-width: 760px) {
  .masthead { height: 58px; min-height: 58px; overflow: visible; }
  .brand-mark { width: 62px; height: 62px; margin-block: 3px -8px; }
  .store-intro { height: clamp(138px, 35vw, 200px); }
  .top-nav { min-height: 52px; height: 52px; }
  .nav-tab { min-height: 38px; height: 38px; }
}
@media (max-width: 520px) {
  .masthead { padding-inline: 8px; }
  .brand { gap: 5px; }
  .brand-mark { width: 50px; height: 50px; margin-block: 2px -5px; }
  .brand strong { font-size: 17px; }
  .masthead-actions { gap: 4px; }
  .sound-toggle { padding: 5px 6px; font-size: 7px; }
  .platform-mark { font-size: 10px; }
  .store-intro { height: 132px; }
  .nav-tab { padding-inline: 11px; font-size: 9px; }
  .controller-bar { min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark, .store-banner { animation: none !important; }
  .store-banner { transform: none !important; }
}

@media (min-width: 1101px) {
  .game-grid > .app-card { flex-basis: calc((100% - 45px) / 6); }
}
@media (max-width: 760px) {
  .masthead { height: 58px; min-height: 58px; }
  .store-intro { height: clamp(132px, 35vw, 190px); }
  .top-nav { min-height: 52px; height: 52px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .nav-tab { flex: 0 0 auto; }
  .console-layout { display: block; }
  .sidebar.details-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px 12px;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .featured-kicker { grid-column: 1; }
  .featured-category { grid-column: 1; }
  .featured-title { grid-column: 1; font-size: 17px; }
  .featured-description { grid-column: 1; -webkit-line-clamp: 2; font-size: 10px; }
  .featured-open { grid-column: 2; grid-row: 2 / span 2; min-width: 110px; }
  .featured-search { grid-column: 2; grid-row: 4; }
  .main-panel { padding-inline: 12px; }
}
@media (max-width: 520px) {
  .masthead { padding-inline: 10px; }
  .brand { gap: 6px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 6px; }
  .sound-toggle { padding: 6px 7px; font-size: 7px; }
  .platform-mark { font-size: 11px; }
  .store-intro { height: 132px; }
  .nav-tab { padding-inline: 10px; font-size: 9px; }
  .catalog-heading h2 { display: none; }
  .catalog-tools { width: 100%; }
  .catalog-tools .search { flex: 1; }
  .search input { width: 100%; }
  .game-grid > .app-card { flex-basis: calc((100% - 10px) / 2); }
  .controller-bar { justify-content: space-between; gap: 3px; font-size: 8px; }
}

/* Home em tela cheia inspirado no layout de console enviado como referência. */
@media (min-width: 761px) {
  html, body { height: 100%; overflow: hidden; }
  .console-shell {
    display: grid;
    grid-template-rows: 60px clamp(190px, 30vh, 258px) 64px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(180deg, #111c23, #071016 60%, #0b141a);
  }
  .console-shell::after { display: none; }
  .masthead {
    height: 60px;
    min-height: 60px;
    padding-inline: 18px;
    overflow: visible;
  }
  .brand-mark { width: 76px; height: 76px; }
  .brand strong { font-size: clamp(22px, 2.2vw, 30px); }
  .store-intro { height: auto; min-height: 0; }
  .top-nav {
    height: 64px;
    min-height: 64px;
    padding: 7px 15px;
    justify-content: stretch;
  }
  .nav-tab { flex: 1 1 0; min-width: 0; }
  .console-layout {
    display: grid;
    grid-template-columns: clamp(230px, 18vw, 280px) minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #0a1218, #071016);
  }
  .sidebar.details-sidebar {
    align-self: center;
    height: min(350px, calc(100% - 24px));
    margin: 0 8px 0 18px;
    padding: 15px 16px;
    gap: 9px;
    border: 1px solid rgba(148, 196, 215, .25);
    border-radius: 5px;
    background: linear-gradient(145deg, rgba(18, 31, 40, .98), rgba(7, 14, 19, .98));
    box-shadow: 0 10px 25px #000a, inset 0 1px rgba(255, 255, 255, .07);
  }
  .featured-kicker, .featured-open, .featured-search { display: none; }
  .featured-category { font-size: 10px; }
  .featured-title { font-size: clamp(17px, 1.5vw, 22px); }
  .featured-description { font-size: 13px; line-height: 1.5; }
  .main-panel {
    display: flex;
    align-items: center;
    min-height: 0;
    height: 100%;
    padding: 10px 18px 10px 0;
    overflow: hidden;
    background: transparent;
  }
  .catalog-backdrop, .catalog-heading, .catalog-meta, .status { display: none !important; }
  .catalog-section { width: 100%; min-width: 0; height: 100%; display: flex; align-items: center; }
  .game-grid {
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    gap: 10px;
    padding: 8px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .game-grid::-webkit-scrollbar { display: none; }
  .game-grid > .app-card {
    flex: 0 0 clamp(170px, 15vw, 232px);
    height: min(350px, calc(100% - 12px));
    min-height: 0;
    margin: 0;
  }
  .app-card { padding: 4px; }
  .game-physical, .software-art {
    flex: 1 1 auto;
    width: 100%;
    height: 0;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
  }
  .ps4-band { background: linear-gradient(90deg, #182b36, #344b59); }
  .app-card h3 {
    flex: 0 0 31px;
    display: grid;
    align-items: center;
    padding: 3px 4px 0;
    font: 500 clamp(12px, 1.05vw, 15px)/1.15 Arial, Helvetica, sans-serif;
  }
  .favorite-toggle { width: 22px; height: 22px; top: 31px; right: 8px; font-size: 14px; }
  .empty { align-self: center; }
}

/* A barra de comandos pertence ao PKG nativo; a versão web segue sem rodapé de controle. */
.controller-bar { display: none !important; }

/* Continuidade dos fundos: usa a mesma arte e a mesma paleta azul do banner do avatar. */
.console-shell {
  background-color: #09151e;
  background-image: linear-gradient(180deg, rgba(5, 13, 19, .76), rgba(5, 13, 19, .92)),
    url("assets/avatar_banner.png");
  background-position: center, center 48%;
  background-size: cover;
  background-attachment: scroll;
}
.console-shell::before {
  opacity: .16;
  background: linear-gradient(115deg, rgba(8, 20, 29, .16), rgba(58, 110, 132, .12), rgba(5, 13, 19, .28)),
    repeating-linear-gradient(115deg, transparent 0 74px, rgba(155, 210, 230, .035) 75px 77px);
}
.masthead::before {
  background-image: url("assets/avatar_banner.png");
  background-size: cover;
  background-position: center 40%;
}
.masthead::after {
  background: linear-gradient(90deg, rgba(6, 15, 22, .7), rgba(7, 18, 26, .38) 54%, rgba(6, 15, 22, .62));
}
.console-layout {
  background-color: rgba(6, 14, 20, .46);
  background-image: linear-gradient(180deg, rgba(7, 17, 24, .58), rgba(5, 13, 19, .78)),
    url("assets/avatar_banner.png");
  background-position: center, center 56%;
  background-size: cover;
}
.main-panel { background: transparent; }
.sidebar.details-sidebar {
  background: linear-gradient(145deg, rgba(22, 43, 56, .87), rgba(7, 16, 23, .94)),
    url("assets/avatar_banner.png") center / cover;
  border-color: rgba(143, 199, 220, .32);
}
.app-card {
  background: linear-gradient(145deg, rgba(26, 50, 65, .78), rgba(8, 18, 25, .9)),
    url("assets/avatar_banner.png") center / cover;
  border-color: rgba(146, 198, 217, .2);
}

/* Emblema original enviado pelo usuário, com halo e relevo em azul gelo. */
.brand { isolation: isolate; }
.brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: -8px;
  width: 96px;
  height: 96px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84, 197, 233, .42), rgba(39, 124, 161, .18) 48%, transparent 74%);
  filter: blur(4px);
  animation: emblem-halo 3s ease-in-out infinite;
  pointer-events: none;
}
.brand-mark {
  position: relative;
  z-index: 1;
  width: 94px;
  height: 94px;
  margin-block: 4px -20px;
  object-fit: contain;
  image-rendering: auto;
  mix-blend-mode: screen;
  filter: brightness(1.14) contrast(1.12) saturate(1.22)
    drop-shadow(0 0 5px rgba(108, 218, 247, .86))
    drop-shadow(0 0 13px rgba(38, 145, 189, .58));
  animation: emblem-float 3.4s ease-in-out infinite;
}
@keyframes emblem-float {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-2px); }
}
@keyframes emblem-halo {
  0%, 100% { opacity: .62; transform: translateY(-50%) scale(.92); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.08); }
}
@media (max-width: 760px) {
  .brand::before { width: 74px; height: 74px; left: -5px; }
  .brand-mark { width: 72px; height: 72px; margin-block: 2px -10px; }
}
@media (max-width: 520px) {
  .brand::before { width: 60px; height: 60px; left: -3px; }
  .brand-mark { width: 58px; height: 58px; margin-block: 1px -7px; }
}
@media (min-width: 761px) {
  .brand::before { width: 102px; height: 102px; left: -8px; }
  .brand-mark { width: 100px; height: 100px; margin-block: 3px -24px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand::before, .brand-mark { animation: none !important; }
}

/* Cartões sem chamadas sobre a arte: a capa deve aparecer por inteiro. */
.app-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.app-card > .game-physical,
.app-card > .software-art,
.app-card > .app-icon {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #07131b;
  box-shadow: none;
}
.app-card > .game-physical .game-cover {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #07131b;
  box-shadow: none;
}
.app-card .ps4-band,
.app-card .software-art > span,
.app-card > .favorite-toggle,
.app-card > p,
.app-card > .card-language-badges,
.app-card > .card-bottom { display: none !important; }
.app-card .ps4-band { display: none !important; }
.app-card .game-cover.has-ps4-band .ps4-band { display: block !important; }
.app-card > .game-physical {
  border: 2px solid rgba(105, 193, 232, .9);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(219, 247, 255, .24), 0 5px 14px rgba(0, 0, 0, .7);
}
.app-card .ps4-band {
  top: 0;
  left: 0;
  right: 0;
  height: 35px;
  border: 0;
  border-bottom: 1px solid rgba(182, 230, 247, .72);
  background: #087be8 url("assets/ps4-cover-band.png") center / cover no-repeat;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
}
.app-card .game-cover::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: var(--cover-art-src);
  background-position: center;
  background-size: cover;
  filter: blur(14px) brightness(.42) saturate(.85);
  opacity: .8;
  transform: scale(1.06);
  pointer-events: none;
}
.app-card .game-cover.has-ps4-band::before { inset: 35px 0 0; }
.app-card .game-cover-art,
.app-card .software-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  z-index: 1;
}
.app-card .game-cover-art { top: 0; height: 100%; }
.app-card .game-cover.has-ps4-band .game-cover-art { top: 35px; height: calc(100% - 35px); }
.app-card .game-cover.padded-cover-art .game-cover-art { object-fit: cover; object-position: center; }
.app-card .cover-fallback { inset: 0; }
.app-card .game-cover.has-ps4-band .cover-fallback { inset: 35px 0 0; }
.noscript-warning {
  margin: 18px auto;
  max-width: 640px;
  padding: 16px 20px;
  border: 1px solid rgba(213, 137, 86, .34);
  border-radius: 10px;
  background: rgba(27, 21, 24, .94);
  color: #f2ded1;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.app-card > h3 {
  flex: 0 0 auto;
  min-height: 28px;
  margin: 0;
  padding: 5px 3px 2px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Realça o arquivo de emblema enviado, mantendo o brilho azul em movimento. */
.brand-mark {
  mix-blend-mode: normal;
  object-fit: contain;
  border: 1px solid rgba(143, 222, 248, .56);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 41, 58, .28), rgba(5, 14, 22, .7));
  filter: brightness(1.32) contrast(1.24) saturate(1.4)
    drop-shadow(0 0 7px rgba(108, 218, 247, .95))
    drop-shadow(0 0 18px rgba(38, 145, 189, .8));
}

/* Abas de categoria em azul gelo, seguindo o brilho do emblema enviado. */
.top-nav {
  gap: 5px;
  border: 2px solid rgba(113, 190, 220, .62);
  background: linear-gradient(180deg, rgba(74, 119, 143, .92), rgba(14, 36, 51, .98));
  box-shadow: inset 0 0 20px rgba(163, 226, 247, .16), 0 5px 20px rgba(0, 0, 0, .58), 0 0 15px rgba(82, 184, 221, .18);
}
.nav-tab {
  border: 1px solid rgba(162, 216, 237, .32);
  background: linear-gradient(180deg, rgba(39, 77, 98, .94), rgba(8, 25, 38, .98));
  color: #bfeeff;
  text-shadow: 0 1px 4px #06131d, 0 0 10px rgba(89, 207, 244, .42);
}
.nav-tab.active, .nav-tab.active:hover, .nav-tab.active:focus-visible {
  border-color: rgba(183, 241, 255, .9);
  background: linear-gradient(180deg, rgba(110, 183, 211, .92), rgba(27, 77, 101, .98));
  color: #e8fbff;
  text-shadow: 0 1px 4px #06131d, 0 0 12px rgba(121, 227, 255, .88);
  box-shadow: inset 0 0 18px rgba(204, 245, 255, .23), 0 0 13px rgba(88, 204, 242, .35);
}
.nav-tab:hover:not(.active), .nav-tab:focus-visible:not(.active) {
  border-color: rgba(170, 230, 249, .68);
  background: linear-gradient(180deg, rgba(68, 125, 152, .95), rgba(19, 52, 70, .98));
  color: #f0fcff;
}

/* Mantém a paginação acessível no modo de vitrine em tela inteira. */
@media (min-width: 761px) {
  .catalog-section {
    position: relative;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .catalog-section > .catalog-meta {
    position: relative;
    z-index: 5;
    top: auto;
    right: auto;
    display: flex !important;
    flex: 0 0 auto;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 3px clamp(8px, 2vw, 20px);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: auto;
  }
  .catalog-section > .catalog-meta > p {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #bceeff;
    font-size: clamp(10px, .78vw, 13px);
    font-weight: 800;
    letter-spacing: .35px;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px #06131d, 0 0 10px rgba(89, 207, 244, .35);
    white-space: nowrap;
  }
  .catalog-section .carousel-controls {
    flex: 0 0 auto;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid rgba(149, 217, 239, .36);
    border-radius: 24px;
    background: rgba(5, 19, 29, .78);
    color: #bceeff;
    text-shadow: 0 0 8px rgba(81, 200, 239, .65);
    backdrop-filter: blur(5px);
    pointer-events: auto;
  }
  .catalog-section .carousel-controls button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(149, 217, 239, .65);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(62, 119, 145, .96), rgba(10, 35, 49, .98));
    color: #e3faff;
    box-shadow: 0 0 10px rgba(59, 174, 214, .3), inset 0 1px rgba(255, 255, 255, .2);
  }
  .catalog-section .carousel-controls button:hover:not(:disabled),
  .catalog-section .carousel-controls button:focus-visible {
    border-color: #d2f7ff;
    background: linear-gradient(180deg, #69b9d8, #18516c);
    box-shadow: 0 0 14px rgba(96, 213, 249, .65);
    outline: 2px solid rgba(183, 241, 255, .7);
    outline-offset: 2px;
  }
  .catalog-section .carousel-controls button:disabled { opacity: .45; }
  .catalog-section > .game-grid {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding-top: 7px;
  }
}

/* Remove o painel promocional lateral e libera toda a largura para as capas. */
.details-sidebar { display: none !important; }
.console-layout { grid-template-columns: minmax(0, 1fr) !important; }
.main-panel { grid-column: 1 / -1; min-width: 0; }

/* Deixa a textura do cabeçalho aparecer sem enfraquecer sua moldura. */
.masthead {
  background: linear-gradient(180deg, rgba(35, 58, 72, .58), rgba(13, 28, 38, .66) 65%, rgba(8, 19, 27, .62));
}
.masthead::before { opacity: .62; }
.masthead::after {
  background: linear-gradient(90deg, rgba(6, 15, 22, .2), rgba(7, 18, 26, .3) 54%, rgba(6, 15, 22, .18));
}

/* O avatar fica atrás do conteúdo ao abrir qualquer capa. */
#details {
  position: fixed;
  isolation: isolate;
  overflow-x: hidden;
  background: rgba(12, 22, 30, .42);
  border-color: rgba(137, 210, 235, .55);
  box-shadow: 0 24px 80px #000b, 0 0 30px rgba(67, 175, 211, .22);
}
#details::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(145deg, rgba(9, 20, 28, .76), rgba(8, 17, 24, .62) 48%, rgba(8, 16, 23, .8)),
    url("assets/avatar_banner.png");
  background-size: cover, auto 150%;
  background-position: center, 58% center;
  background-repeat: no-repeat;
  opacity: .92;
  transform: scale(1.03);
  animation: detail-avatar-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
#details > * { position: relative; z-index: 1; }
@keyframes detail-avatar-drift {
  0% { background-position: center, 55% center; transform: scale(1.03) translateX(-3px); }
  100% { background-position: center, 62% center; transform: scale(1.08) translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  #details::before { animation: none; transform: none; }
}


/* Destaque da senha para download */
.download-password {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 22px 0;
  padding: 20px 16px;
  border: 2px solid #55dfff;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(4,39,59,.98), rgba(28,17,65,.96));
  box-shadow: 0 0 18px rgba(45,205,255,.45), inset 0 0 18px rgba(100,90,255,.2);
  color: #eafaff;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}
.download-password strong {
  color: #9deeff;
  text-transform: uppercase;
}
.download-password code {
  display: inline-block;
  padding: 8px 24px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  background: rgba(0,0,0,.42);
  color: #fff;
  font-size: clamp(30px,5vw,42px);
  font-weight: 900;
  letter-spacing: 5px;
  text-shadow: 0 0 12px #35dfff;
}
