/* Tokens de design compartilhados entre o site público e o painel administrativo. */
:root {
  --c-black: #000000;
  --c-abyss: #020a1d;
  --c-deep: #06132e;
  --c-panel: #0a1c42;
  --c-edge: #16336e;
  --c-edge-strong: #24499a;
  --c-electric: #2b7bff;
  --c-neon: #5cb8ff;
  --c-white: #f3f7ff;
  --c-mist: #9db1d8;
  --c-danger: #ff7a8f;
  --c-success: #52e3b4;

  --font-display: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;

  --step--1: 0.85rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.6rem, 1.25rem + 1.4vw, 2.125rem);
  --step-4: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-5: clamp(2.2rem, 1.4rem + 3.4vw, 3.75rem);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --glow: 0 0 0 1px rgba(92, 184, 255, 0.7), 0 0 22px rgba(43, 123, 255, 0.35);
  --glow-soft: 0 0 18px rgba(43, 123, 255, 0.22);

  --container: 1240px;
  --container-text: 760px;
  --container-media: 980px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --header-h-condensed: 58px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

/* ==========================================================================
   Portal ALAM XD: design system neon
   OrganizaÃ§Ã£o: tokens, base, layout, componentes, pÃ¡ginas, utilitÃ¡rios.
   ========================================================================== */

/* Tokens: packages/shared/styles/tokens.css (anexado no build). */

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--c-neon);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-white);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--c-electric);
  color: var(--c-white);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-electric);
  color: var(--c-white);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

[hidden] {
  display: none !important;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--text {
  max-width: calc(var(--container-text) + var(--gutter) * 2);
}

.container--media {
  max-width: calc(var(--container-media) + var(--gutter) * 2);
}

.section {
  padding-block: clamp(40px, 6vw, 72px) 0;
}

.page {
  padding-block: clamp(32px, 5vw, 56px) 0;
}

main > :last-child {
  margin-bottom: clamp(56px, 8vw, 96px);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--articles {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.grid--covers {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 20px);
}

.grid--platforms {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

/* ---------- Faixa de demonstraÃ§Ã£o ---------- */
.demo-bar {
  padding: 8px var(--gutter);
  background: var(--c-deep);
  border-bottom: 1px solid var(--c-edge);
  color: var(--c-mist);
  font-size: var(--step--1);
  text-align: center;
}

/* ---------- CabeÃ§alho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--c-edge);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-condensed {
  border-bottom-color: rgba(92, 184, 255, 0.45);
  box-shadow: 0 1px 24px rgba(43, 123, 255, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: var(--header-h);
  transition: height 0.25s var(--ease);
}

.site-header.is-condensed .site-header__inner {
  height: var(--header-h-condensed);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand__mark {
  color: var(--c-neon);
  filter: drop-shadow(0 0 6px rgba(92, 184, 255, 0.65));
}

.brand__logo {
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  text-shadow: 0 0 14px rgba(92, 184, 255, 0.55);
}

.site-header .brand {
  animation: power-on 1.1s steps(1, end) 0.15s both;
}

@keyframes power-on {
  0% { opacity: 0.15; }
  12% { opacity: 1; }
  18% { opacity: 0.35; }
  26% { opacity: 1; }
  34% { opacity: 0.6; }
  42%, 100% { opacity: 1; }
}

.brand:hover {
  color: var(--c-white);
}

.main-nav__list {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__link {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: var(--c-mist);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-sm);
}

.main-nav__link:hover {
  color: var(--c-white);
}

.main-nav__link[aria-current='page'] {
  color: var(--c-white);
}

.main-nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-neon);
  box-shadow: 0 0 10px var(--c-electric);
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 380px;
  margin-left: auto;
  display: flex;
  align-items: center;
}

.header-search__icon {
  position: absolute;
  left: 12px;
  color: var(--c-mist);
  pointer-events: none;
}

.header-search__input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  background: var(--c-deep);
  border: 1px solid var(--c-edge);
  border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search__input::placeholder {
  color: var(--c-mist);
}

.header-search__input:focus {
  outline: none;
  border-color: var(--c-neon);
  box-shadow: var(--glow-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .header-search-toggle,
.header-actions .menu-toggle {
  display: none;
}

/* SugestÃµes da busca rÃ¡pida */
.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 300px;
  padding: 6px;
  background: var(--c-deep);
  border: 1px solid var(--c-edge-strong);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), var(--glow-soft);
}

.suggest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--r-sm);
  color: var(--c-white);
  text-decoration: none;
}

.suggest__item[aria-selected='true'],
.suggest__item:hover {
  background: var(--c-panel);
  color: var(--c-white);
}

.suggest__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--c-panel);
}

.suggest__thumb--game {
  width: 32px;
  height: 46px;
}

.suggest__text {
  display: grid;
  min-width: 0;
}

.suggest__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.suggest__meta {
  color: var(--c-mist);
  font-size: var(--step--1);
}

.suggest__all {
  display: block;
  padding: 10px 8px 6px;
  margin-top: 4px;
  border-top: 1px solid var(--c-edge);
  font-size: var(--step--1);
  text-decoration: none;
}

.suggest__all[aria-selected='true'] {
  color: var(--c-white);
}

.suggest__empty {
  padding: 10px 8px;
  color: var(--c-mist);
  font-size: var(--step--1);
}

/* SessÃ£o (Ã¡rea do usuÃ¡rio) */
.session {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-electric), var(--c-panel));
  border: 1px solid var(--c-neon);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.avatar-btn {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--c-electric);
  color: var(--c-white);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 8px var(--c-electric);
}

.popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: min(320px, calc(100vw - 32px));
  padding: 8px;
  background: var(--c-deep);
  border: 1px solid var(--c-edge-strong);
  border-radius: var(--r-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), var(--glow-soft);
  /* Nunca passa da parte de baixo da tela: em janelas baixas, rola por dentro. */
  max-height: max(180px, calc(100vh - var(--header-h) - 24px));
  max-height: max(180px, calc(100dvh - var(--header-h) - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Notificações: o título fica fixo e a lista rola; o rodapé (Marcar todas /
   Ver todas) gruda embaixo, sempre à vista. */
#painel-notificacoes {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#painel-notificacoes .popover__title {
  flex-shrink: 0;
}

#painel-notificacoes [data-notifications-body] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#painel-notificacoes .popover__foot {
  position: sticky;
  bottom: 0;
  background: var(--c-deep);
  box-shadow: 0 -6px 0 var(--c-deep); /* cobre a margem de cima ao rolar */
}

/* Celular: o sino e o avatar não ficam na borda, então os painéis alinhados
   a eles sairiam pela esquerda. Ocupam a largura da tela, com as margens do site. */
@media (max-width: 600px) {
  #painel-notificacoes,
  #menu-usuario {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
  }
}

.popover__title {
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.popover__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.popover__item {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--c-white);
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
}

.popover__item:hover {
  background: var(--c-panel);
  color: var(--c-white);
}

.popover__item small {
  display: block;
  color: var(--c-mist);
  font-size: var(--step--1);
}

.popover__item--unread {
  border-left: 2px solid var(--c-neon);
}

.popover__user {
  padding: 10px;
  border-bottom: 1px solid var(--c-edge);
  margin-bottom: 4px;
}

.popover__user small {
  display: block;
  color: var(--c-mist);
}

/* ---------- BotÃµes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.btn--primary {
  background: var(--c-electric);
  color: var(--c-white);
  box-shadow: 0 0 20px rgba(43, 123, 255, 0.35);
}

.btn--primary:hover {
  background: #4a8fff;
  color: var(--c-white);
}

.btn--ghost {
  background: var(--c-deep);
  border-color: var(--c-edge-strong);
  color: var(--c-white);
}

.btn--ghost:hover {
  border-color: var(--c-neon);
  box-shadow: var(--glow-soft);
  color: var(--c-white);
}

.btn[aria-pressed='true'] {
  border-color: var(--c-neon);
  background: var(--c-panel);
}

.btn[aria-pressed='true'] .icon {
  fill: var(--c-neon);
  color: var(--c-neon);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: var(--c-white);
}

.icon-btn:hover {
  background: var(--c-deep);
  border-color: var(--c-edge);
}

/* ---------- PÃ­lulas, chips, campos ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--c-edge-strong);
  background: rgba(10, 28, 66, 0.75);
  color: var(--c-neon);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.pill--solid {
  background: var(--c-electric);
  border-color: var(--c-electric);
  color: var(--c-white);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--c-mist);
  font-size: var(--step--1);
}

.chips,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--c-edge);
  border-radius: 999px;
  background: var(--c-abyss);
  color: var(--c-mist);
  font-family: var(--font-display);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.chip:hover {
  color: var(--c-white);
  border-color: var(--c-edge-strong);
}

.chip[aria-pressed='true'] {
  background: var(--c-panel);
  border-color: var(--c-neon);
  color: var(--c-white);
  box-shadow: var(--glow-soft);
}

.field {
  display: grid;
  gap: 6px;
}

.field--inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field__label {
  color: var(--c-mist);
  font-size: var(--step--1);
}

.input {
  height: 44px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--c-edge);
  border-radius: 8px;
  background: var(--c-abyss);
  color: var(--c-white);
}

.input::placeholder {
  color: #7186b0;
}

.input:focus {
  outline: none;
  border-color: var(--c-neon);
  box-shadow: var(--glow-soft);
}

.input--large {
  height: 54px;
  font-size: var(--step-1);
}

.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239db1d8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

textarea.input {
  height: auto;
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 16px 20px;
  padding: 18px;
  margin-bottom: 20px;
  background: var(--c-abyss);
  border: 1px solid var(--c-edge);
  border-radius: var(--r-md);
}

.toolbar--compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
}

.toolbar .chips {
  align-self: end;
}

.result-count {
  min-height: 1.5em;
  margin-bottom: 16px;
  color: var(--c-mist);
  font-size: var(--step--1);
}

/* ---------- TÃ­tulos de seÃ§Ã£o e pÃ¡gina ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.section-title {
  font-size: var(--step-3);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.page-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-title {
  font-size: var(--step-5);
  font-weight: 700;
}

.page-lead {
  max-width: 62ch;
  margin-top: 12px;
  color: var(--c-mist);
  font-size: var(--step-1);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  color: var(--c-mist);
  font-size: var(--step--1);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 4px;
  color: var(--c-edge-strong);
}

.breadcrumb a {
  color: var(--c-mist);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--c-white);
}

/* ---------- Hero da Home ---------- */
.hero {
  padding-top: clamp(20px, 3vw, 36px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.hero__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-edge);
  background: var(--c-deep);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hero-card:hover,
.hero-card:focus-within {
  border-color: var(--c-neon);
  box-shadow: var(--glow);
}

.hero-card__link {
  display: block;
  height: 100%;
  min-height: 100%;
  color: var(--c-white);
  text-decoration: none;
}

.hero-card__link:focus-visible {
  outline: none;
}

.hero-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.6s var(--ease);
}

.hero-card:hover .hero-card__img {
  transform: scale(1.03);
}

.hero-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2.4vw, 32px);
  padding-top: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.94) 10%, rgba(0, 0, 0, 0.55) 60%, transparent);
}

.hero-card__title {
  font-size: var(--step-1);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-card--main .hero-card__title {
  font-size: var(--step-5);
  font-weight: 700;
  max-width: 20ch;
}

.hero-card__summary {
  max-width: 56ch;
  color: #d6e2fa;
  font-size: var(--step-1);
}

.hero-card .meta-row {
  color: #c9d6f2;
}

/* ---------- Card de matÃ©ria ---------- */
.article-card {
  position: relative;
  border-radius: var(--r-md);
  border: 1px solid var(--c-edge);
  background: var(--c-abyss);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.article-card:hover,
.article-card:focus-within {
  border-color: var(--c-neon);
  box-shadow: var(--glow);
}

.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--c-white);
  text-decoration: none;
}

.article-card__link:focus-visible {
  outline: none;
}

.article-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-deep);
  border-bottom: 1px solid var(--c-edge);
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.article-card:hover .article-card__media img {
  transform: scale(1.04);
}

.article-card__body {
  display: grid;
  gap: 10px;
  padding: 16px 18px 20px;
}

.article-card__title {
  font-size: var(--step-1);
  font-weight: 600;
}

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--c-edge-strong);
  background: rgba(0, 0, 0, 0.7);
  color: var(--c-white);
  backdrop-filter: blur(6px);
}

.fav-btn:hover {
  border-color: var(--c-neon);
}

.fav-btn[aria-pressed='true'] {
  border-color: var(--c-neon);
  color: var(--c-neon);
}

.fav-btn[aria-pressed='true'] .icon {
  fill: currentColor;
}

/* ---------- Cards de console ---------- */
.platform-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 2px;
  min-height: 170px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--c-edge);
  background: radial-gradient(120% 120% at 100% 0%, var(--c-panel), var(--c-abyss) 60%);
  color: var(--c-white);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.platform-card:hover,
.platform-card:focus-visible {
  border-color: var(--c-neon);
  box-shadow: var(--glow);
  color: var(--c-white);
}

.platform-card__glyph {
  position: absolute;
  top: -0.12em;
  right: -0.04em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 7.5rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(92, 184, 255, 0.45);
  transition: -webkit-text-stroke-color 0.25s, text-shadow 0.25s;
}

.platform-card:hover .platform-card__glyph,
.platform-card:focus-visible .platform-card__glyph {
  -webkit-text-stroke-color: var(--c-neon);
  text-shadow: 0 0 24px rgba(43, 123, 255, 0.5);
}

.platform-card__name {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
}

.platform-card__count {
  position: relative;
  color: var(--c-mist);
}

/* ---------- Capas de jogos ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.game-cover {
  display: grid;
  gap: 4px;
  align-content: start;
  color: var(--c-white);
  text-decoration: none;
}

.game-cover:focus-visible {
  outline: none;
}

.game-cover__frame {
  display: block;
  aspect-ratio: 7 / 10;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-edge);
  background: var(--c-deep);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}

.game-cover__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-cover:hover .game-cover__frame,
.game-cover:focus-visible .game-cover__frame {
  border-color: var(--c-neon);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.game-cover__name {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}

.game-cover__meta {
  color: var(--c-mist);
  font-size: var(--step--1);
}

/* ---------- Estados ---------- */
.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(32px, 6vw, 64px) 20px;
  border: 1px dashed var(--c-edge-strong);
  border-radius: var(--r-md);
  background: var(--c-abyss);
  text-align: center;
}

.empty-state__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
}

.empty-state__text {
  max-width: 48ch;
  color: var(--c-mist);
}

.empty-state .btn {
  margin-top: 8px;
}

.notice {
  padding: 18px 20px;
  border: 1px solid var(--c-edge-strong);
  border-left: 3px solid var(--c-neon);
  border-radius: var(--r-sm);
  background: var(--c-abyss);
  color: var(--c-mist);
}

.notice--error {
  border-left-color: var(--c-danger);
}

.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--c-abyss) 0%, var(--c-deep) 50%, var(--c-abyss) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton--comment {
  height: 92px;
  margin-bottom: 12px;
}

.skeleton--result {
  height: 76px;
  margin-bottom: 10px;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Aviso do portal ao vivo (fica até a pessoa agir; os toasts somem sozinhos) ---------- */
.live-pill {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 85;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border: 1px solid var(--c-edge-strong);
  border-radius: var(--r-sm);
  background: var(--c-deep);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
}

/* ---------- Toasts ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(440px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border: 1px solid var(--c-edge-strong);
  border-left: 3px solid var(--c-neon);
  border-radius: var(--r-sm);
  background: var(--c-deep);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  animation: toast-in 0.25s var(--ease);
}

.toast--success { border-left-color: var(--c-success); }
.toast--error { border-left-color: var(--c-danger); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* ---------- PÃ¡gina da matÃ©ria ---------- */
.article__head {
  padding-top: clamp(28px, 5vw, 56px);
}

.article__title {
  font-size: var(--step-5);
  font-weight: 700;
}

.article__summary {
  margin-top: 16px;
  color: #c7d4f0;
  font-size: var(--step-1);
  line-height: 1.5;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--c-edge);
  color: var(--c-mist);
  font-size: var(--step--1);
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: clamp(24px, 4vw, 40px);
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-edge-strong);
  background: var(--c-deep);
  box-shadow: var(--glow-soft);
}

/* Short: em pé, sem passar da altura da tela nem ficar enorme no computador. */
.video--vertical {
  aspect-ratio: 9 / 16;
  width: min(100%, 45vh, 420px);
  margin-inline: auto;
}

.video__poster,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video__poster {
  filter: brightness(0.7);
}

.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding: 0 0 0 4px;
  border: 1px solid var(--c-neon);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: var(--c-white);
  transform: translate(-50%, -50%);
  box-shadow: var(--glow);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.video__play:hover {
  background: var(--c-electric);
  transform: translate(-50%, -50%) scale(1.06);
}

.video__note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: var(--c-mist);
  font-size: var(--step--1);
  text-align: center;
}

.video.is-playing .video__poster,
.video.is-playing .video__play,
.video.is-playing .video__note {
  display: none;
}

/* Texto editorial */
.prose {
  padding-top: clamp(28px, 4vw, 44px);
  font-size: 1.125rem;
  line-height: 1.7;
}

.prose-section + .prose-section {
  margin-top: 2.4em;
}

.prose h2 {
  margin-bottom: 0.6em;
  font-size: var(--step-3);
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: var(--step-2);
}

.prose h4 {
  margin: 1.4em 0 0.4em;
  font-size: var(--step-1);
}

.prose p + p,
.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p {
  margin-top: 1em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 1em 0;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose li::marker {
  color: var(--c-neon);
}

.prose strong {
  color: var(--c-white);
  font-weight: 600;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--c-neon);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
}

.prose-figure {
  margin: 1.8em 0;
}

.prose-figure img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--c-edge);
}

.prose-figure figcaption {
  margin-top: 10px;
  color: var(--c-mist);
  font-size: var(--step--1);
}

.article__foot {
  display: grid;
  gap: 24px;
  margin-top: clamp(36px, 5vw, 56px);
}

.game-ref {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--c-edge-strong);
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--c-deep), var(--c-abyss));
}

.game-ref__cover {
  flex-shrink: 0;
  width: 92px;
}

.game-ref__cover img {
  border-radius: var(--r-sm);
  border: 1px solid var(--c-edge);
}

.game-ref__body {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.game-ref__kicker {
  color: var(--c-neon);
  font-size: var(--step--1);
  font-weight: 600;
}

.game-ref__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
}

.game-ref__facts {
  margin-bottom: 8px;
  color: var(--c-mist);
  font-size: var(--step--1);
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.post-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-mist);
  text-decoration: none;
}

.social-link:hover {
  color: var(--c-white);
}

/* ComentÃ¡rios */
.comments {
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--c-edge);
}

.comments__title {
  margin-bottom: 20px;
  font-size: var(--step-3);
}

.comments__count {
  color: var(--c-mist);
  font-weight: 500;
}

.composer {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.composer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--c-mist);
  font-size: var(--step--1);
}

.comment-thread {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
}

.comment-thread > li + li {
  border-top: 1px solid rgba(22, 51, 110, 0.6);
}

.comment__replies {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--c-edge);
  grid-column: 2;
}

.comment__replies .comment {
  padding: 10px 0;
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}

.comment__author {
  font-weight: 600;
}

.comment__time {
  color: var(--c-mist);
  font-size: var(--step--1);
}

.comment__text {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.comment__actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  margin-left: -8px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  color: var(--c-mist);
  font-size: var(--step--1);
}

.text-btn:hover {
  color: var(--c-white);
  background: var(--c-deep);
}

/* ---------- PÃ¡gina do jogo ---------- */
.game-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 64px);
  border-bottom: 1px solid var(--c-edge);
  background: radial-gradient(90% 120% at 80% 0%, var(--c-deep), var(--c-black) 70%);
}

.game-hero__banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.game-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
}

.game-hero__cover img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--c-neon);
  box-shadow: var(--glow), 0 24px 50px rgba(0, 0, 0, 0.7);
}

.game-hero__title {
  font-size: var(--step-5);
  font-weight: 700;
  margin-bottom: 20px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px 28px;
  margin: 0;
}

.facts__row {
  display: grid;
  gap: 2px;
}

.facts dt {
  color: var(--c-mist);
  font-size: var(--step--1);
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

.game-about__text {
  max-width: 68ch;
  margin-top: 14px;
  color: #cfdaf2;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ---------- Busca ---------- */
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

/* Os resultados chegam depois do índice: a página já ocupa a tela inteira,
   então o rodapé começa abaixo da dobra e não salta à vista (CLS). */
[data-search-page] {
  min-height: 100vh;
}

.search-results {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--c-edge);
  border-radius: var(--r-md);
  background: var(--c-abyss);
  color: var(--c-white);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.result:hover,
.result:focus-visible {
  border-color: var(--c-neon);
  box-shadow: var(--glow-soft);
  color: var(--c-white);
  outline: none;
}

.result__img {
  flex-shrink: 0;
  width: 112px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--c-deep);
}

.result__img--game {
  width: 56px;
  aspect-ratio: 7 / 10;
}

.result__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.result__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
}

.result__meta {
  color: var(--c-mist);
  font-size: var(--step--1);
}

/* ---------- Sobre / 404 ---------- */
.about-social {
  margin-top: 40px;
}

.about-social .section-title {
  margin-bottom: 16px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-list--large .social-link {
  padding: 12px 18px;
  border: 1px solid var(--c-edge-strong);
  border-radius: var(--r-md);
  background: var(--c-abyss);
  color: var(--c-white);
}

.social-list--large .social-link:hover {
  border-color: var(--c-neon);
  box-shadow: var(--glow-soft);
}

.not-found {
  text-align: left;
}

.not-found__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-neon);
  text-shadow: 0 0 40px rgba(43, 123, 255, 0.45);
  margin-bottom: 12px;
}

.not-found .search-form {
  margin-top: 28px;
}

/* ---------- RodapÃ© ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--c-edge);
  background: linear-gradient(to bottom, var(--c-abyss), var(--c-black));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  padding-block: clamp(40px, 6vw, 64px);
}

.footer-about p {
  max-width: 40ch;
  margin-top: 14px;
  color: var(--c-mist);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 1rem;
  color: var(--c-white);
}

.footer-links {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--c-mist);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--c-white);
}

/* Botão com cara de link no rodapé (abre as preferências de privacidade). */
.footer-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-mist);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-link-button:hover,
.footer-link-button:focus-visible {
  color: var(--c-white);
}

/* ---------- Aviso de privacidade (Fase 6) ---------- */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(720px, calc(100vw - 32px));
  padding: 18px 20px;
  transform: translateX(-50%);
  border: 1px solid var(--c-edge-strong);
  border-left: 3px solid var(--c-neon);
  border-radius: var(--r-md);
  background: var(--c-deep);
  color: var(--c-white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), var(--glow-soft);
}

.consent-banner__title {
  font-size: var(--step-0);
}

.consent-banner__text {
  color: var(--c-mist);
  font-size: var(--step--1);
}

.consent-banner__text a {
  color: var(--c-neon);
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.consent-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.consent-option__title {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 600;
}

@media (max-width: 600px) {
  .consent-banner {
    bottom: 8px;
    padding: 16px;
  }

  .consent-banner__actions .btn {
    flex: 1 1 auto;
  }
}

.footer-bottom {
  padding-block: 20px 28px;
  border-top: 1px solid rgba(22, 51, 110, 0.6);
  color: #7186b0;
  font-size: var(--step--1);
}

/* ---------- Responsivo ---------- */
/* ---------- Comunidade (Fase 5) ---------- */
.comment__text {
  white-space: pre-line;
}

.comment__text--removed {
  color: var(--c-mist);
  font-style: italic;
}

.comment__actions .text-btn.is-active {
  color: var(--c-danger);
}

.comment__actions .text-btn.is-active .icon {
  fill: currentColor;
}

.comment__actions .text-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.comment__more-replies {
  margin: 6px 0 0;
}

.comment__reply-slot:not(:empty) {
  margin-top: 10px;
}

.composer--reply {
  margin-bottom: 4px;
}

.composer__buttons {
  display: flex;
  gap: 8px;
}

.popover__empty {
  padding: 10px 12px;
  color: var(--c-mist);
  font-size: var(--step--1);
}

.popover__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--c-edge);
}

.btn--danger {
  background: transparent;
  border: 1px solid var(--c-danger);
  color: var(--c-danger);
}

.btn--danger:hover:not(:disabled) {
  background: rgba(255, 122, 143, 0.12);
  color: var(--c-white);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.check input {
  margin-top: 4px;
  accent-color: var(--c-electric);
}

.check--block {
  padding: 14px 16px;
  border: 1px solid var(--c-edge);
  border-radius: var(--r-md);
  background: var(--c-abyss);
}

.check--block span {
  display: grid;
  gap: 2px;
}

.check--block small {
  color: var(--c-mist);
}

/* Janela modal (denúncia) */
.dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--c-edge-strong);
  border-radius: var(--r-lg);
  background: var(--c-deep);
  color: var(--c-white);
  box-shadow: var(--glow-soft);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.dialog__body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.dialog__title {
  font-size: var(--step-1);
}

.dialog__text {
  color: var(--c-mist);
  font-size: var(--step--1);
}

.dialog__options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Minha área */
.avatar--large {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
}

.account__profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account__title {
  font-size: var(--step-4);
}

.account__lead {
  margin-top: 4px;
}

.account__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.account__nav ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account__tab {
  display: block;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: var(--c-mist);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}

.account__tab:hover {
  color: var(--c-white);
  background: var(--c-deep);
}

.account__tab[aria-selected='true'] {
  color: var(--c-white);
  background: var(--c-panel);
  border-color: var(--c-edge-strong);
  box-shadow: var(--glow-soft);
}

.account__panel {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.account__panel[hidden] {
  display: none;
}

.account__status {
  color: var(--c-mist);
}

.account__toolbar {
  display: flex;
  justify-content: flex-end;
}

.account-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--c-edge);
  border-radius: var(--r-md);
  background: var(--c-abyss);
}

.account-item--unread {
  border-left: 3px solid var(--c-neon);
}

.account-item__img {
  flex: 0 0 auto;
  width: 112px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.account-item__body {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}

.account-item__title {
  color: var(--c-white);
  font-family: var(--font-display);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-item__quote {
  color: var(--c-white);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.account-item__meta {
  color: var(--c-mist);
  font-size: var(--step--1);
}

.badge-inline {
  justify-self: start;
  padding: 2px 10px;
  border: 1px solid var(--c-edge-strong);
  border-radius: 999px;
  font-size: var(--step--1);
}

.badge-inline--warning {
  border-color: var(--c-danger);
  color: var(--c-danger);
}

.account-form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.account-form .btn {
  justify-self: start;
}

.account-facts {
  margin-bottom: 4px;
}

.danger-zone {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 122, 143, 0.5);
  border-radius: var(--r-md);
  background: rgba(255, 122, 143, 0.05);
}

.danger-zone__title {
  color: var(--c-danger);
  font-size: var(--step-1);
}

.danger-zone__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--c-mist);
}

.danger-zone__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

@media (max-width: 760px) {
  /* minmax(0, 1fr): as abas em linha rolam dentro da faixa em vez de alargar a página. */
  .account__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .account__nav {
    min-width: 0;
  }

  .account__nav ul {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .account__tab {
    white-space: nowrap;
  }

  .account-item {
    align-items: flex-start;
  }

  .account-item__img {
    width: 84px;
  }
}

@media (max-width: 1100px) {
  .shelf {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .shelf > :nth-child(n + 7) {
    display: none;
  }
}

@media (max-width: 960px) {
  .header-search {
    max-width: 280px;
  }
  .main-nav__link {
    padding-inline: 9px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 62px;
    --header-h-condensed: 54px;
  }

  .header-actions .menu-toggle,
  .header-actions .header-search-toggle {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--gutter) 16px;
    background: var(--c-black);
    border-bottom: 1px solid var(--c-edge-strong);
  }

  .site-header.is-menu-open .main-nav {
    display: block;
  }

  .main-nav__list {
    flex-direction: column;
  }

  .main-nav__link {
    padding: 14px 4px;
    font-size: var(--step-1);
    border-bottom: 1px solid rgba(22, 51, 110, 0.6);
    border-radius: 0;
  }

  .main-nav__link[aria-current='page']::after {
    left: 0;
    right: auto;
    top: 14px;
    bottom: 14px;
    width: 3px;
    height: auto;
  }

  .main-nav__link[aria-current='page'] {
    padding-left: 14px;
  }

  .header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: none;
    display: none;
    padding: 10px var(--gutter) 14px;
    background: var(--c-black);
    border-bottom: 1px solid var(--c-edge-strong);
  }

  .header-search__icon {
    left: calc(var(--gutter) + 12px);
  }

  .site-header.is-search-open .header-search {
    display: flex;
  }

  .suggest {
    left: var(--gutter);
    right: var(--gutter);
    min-width: 0;
  }

  .session .btn span {
    display: none;
  }

  .session .btn {
    width: 42px;
    padding: 0;
    border-radius: 50%;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar .field--search {
    grid-column: 1 / -1;
  }

  .game-hero__inner {
    grid-template-columns: 150px 1fr;
    align-items: start;
  }
}

@media (max-width: 600px) {
  .hero__side {
    grid-template-columns: 1fr;
  }

  .hero-card--main .hero-card__img {
    aspect-ratio: 4 / 5;
  }

  .hero-card--main .hero-card__summary {
    display: none;
  }

  .toolbar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .shelf {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 8px;
  }

  .shelf > * {
    flex: 0 0 136px;
    scroll-snap-align: start;
  }

  .shelf > :nth-child(n + 7) {
    display: grid;
  }

  .grid--covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-hero__inner {
    grid-template-columns: 1fr;
  }

  .game-hero__cover {
    width: 160px;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .game-ref {
    align-items: flex-start;
  }

  .game-ref__cover {
    width: 72px;
  }

  .post-links {
    margin-left: 0;
  }

  .search-form {
    flex-direction: column;
  }

  .result__img {
    width: 88px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-wrap: wrap;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .site-header .brand {
    animation: none;
  }
  .hero-card:hover .hero-card__img,
  .article-card:hover .article-card__media img,
  .game-cover:hover .game-cover__frame {
    transform: none;
  }
}

img.avatar {
  object-fit: cover;
}
