/* =====================================================================
   PortalGames - folha de estilo principal
   Design system + componentes + responsivo (mobile first)
   ===================================================================== */

/* ---------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------- */
:root {
  /* Marca */
  --brand:        #e6273e;
  --brand-2:      #7c5cff;
  --brand-grad:   linear-gradient(120deg, #e6273e 0%, #ff4d2d 45%, #7c5cff 100%);

  /* Tema escuro (padrao) */
  --bg:           #0a0c11;
  --bg-alt:       #0f1218;
  --surface:      #141822;
  --surface-2:    #1b2029;
  --surface-3:    #232935;
  --border:       #252c3a;
  --border-soft:  #1c222d;
  --text:         #eef1f6;
  --text-2:       #b6bfcd;
  --text-3:       #7b8698;
  --shadow:       0 10px 30px -12px rgba(0,0,0,.75);
  --shadow-lg:    0 24px 60px -20px rgba(0,0,0,.85);

  /* Notas */
  --score-amazing: #00d47f;
  --score-great:   #8bd419;
  --score-good:    #ffc233;
  --score-ok:      #ff8a3d;
  --score-bad:     #ef3b4e;

  /* Medidas */
  --container:    1340px;
  --radius:       14px;
  --radius-sm:    9px;
  --radius-lg:    22px;
  --header-h:     64px;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  --font-head:    'Archivo', 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease:         cubic-bezier(.4, 0, .2, 1);
}

html[data-theme="light"] {
  --bg:           #f4f6fa;
  --bg-alt:       #ffffff;
  --surface:      #ffffff;
  --surface-2:    #f0f3f8;
  --surface-3:    #e4e9f2;
  --border:       #dde3ec;
  --border-soft:  #e9edf3;
  --text:         #0d121b;
  --text-2:       #47536a;
  --text-3:       #78849a;
  --shadow:       0 8px 24px -14px rgba(15,25,45,.28);
  --shadow-lg:    0 24px 56px -24px rgba(15,25,45,.3);
}

/* ---------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

::selection { background: var(--brand); color: #fff; }

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

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 3px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------
   3. LAYOUT
   --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }

.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;
}

.stack > * + * { margin-top: var(--gap, 24px); }

.layout-2col { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }

/* Itens de grid tem min-width:auto por padrao, o que faz conteudo largo
   (tabelas, blocos de codigo) estourar a pagina no mobile. */
.layout-2col > *, .hero > *, .grid > * { min-width: 0; }

@media (min-width: 1024px) {
  .layout-2col { grid-template-columns: minmax(0,1fr) 336px; gap: 40px; }
}

.sidebar { display: grid; gap: 24px; align-content: start; }

@media (min-width: 1024px) {
  .sidebar--sticky { position: sticky; top: calc(var(--header-h) + 20px); }
}

.section { margin-block: 48px; }
.section:first-of-type { margin-top: 32px; }

/* ---------------------------------------------------------------
   4. HEADER
   --------------------------------------------------------------- */
.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}
.topbar__inner { display: flex; align-items: center; gap: 12px; height: 34px; }
.topbar__tag {
  flex: none;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0,0,0,.28);
  padding: 3px 9px;
  border-radius: 4px;
}
.topbar__track { flex: 1; overflow: hidden; position: relative; height: 34px; }
.topbar__items { display: flex; align-items: center; height: 34px; gap: 34px; white-space: nowrap; animation: ticker 34s linear infinite; }
.topbar__items a { color: #fff; }
.topbar__items a:hover { text-decoration: underline; }
.topbar:hover .topbar__items { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 9px; min-width: 0; font-family: var(--font-head); }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--brand-grad);
  display: grid; place-items: center;
  color: #fff; font-weight: 900; font-size: 17px;
  box-shadow: 0 4px 14px -4px rgba(230,39,62,.7);
}
.logo__text {
  font-size: 20px; font-weight: 900; letter-spacing: -.03em; white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 400px) { .logo__text { font-size: 17px; } }
@media (max-width: 340px) { .logo__text { font-size: 15px; } .header__actions { gap: 2px; } }
.logo__text span { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: none; flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }

/* As editorias extras entram uma a uma, conforme sobra espaco. Sem isso elas
   ficam por baixo dos botoes de busca e tema, que sao ancorados a direita.
   nth-last-child conta a partir do fim, entao nao depende de quantos links
   fixos existem antes. */
.nav__extra { display: none; }
@media (min-width: 1180px) { .nav__extra:nth-last-child(3) { display: block; } }
@media (min-width: 1280px) { .nav__extra:nth-last-child(2) { display: block; } }
@media (min-width: 1380px) { .nav__extra:nth-last-child(1) { display: block; } }
.nav__link {
  display: block; padding: 8px 11px; border-radius: 8px;
  font-size: 14px; font-weight: 650; color: var(--text-2);
  white-space: nowrap; transition: .18s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: var(--surface-2); }
.nav__link.is-active { box-shadow: inset 0 -2px 0 var(--brand); }

.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: .18s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.icon-btn svg { width: 19px; height: 19px; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .btn-menu { display: none; }
}

/* Busca */
.search { position: relative; }
.search__panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: min(520px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 12px; display: none; z-index: 120;
}
.search.is-open .search__panel { display: block; }
.search__field { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 0 12px; }
/* min-width:0 e essencial: o <input> tem largura minima intrinseca (~20 caracteres)
   e sem isso ele empurra o botao "Buscar" para fora da tela em 320px. */
.search__field input { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 0; outline: none; font-size: 15px; }
.search__field .btn { flex: none; }
.search__results { margin-top: 10px; max-height: 60vh; overflow-y: auto; }
.search__group-title { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 800; padding: 10px 6px 6px; }
.search__item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 9px; }
.search__item:hover { background: var(--surface-2); }
.search__item img { width: 60px; height: 38px; object-fit: cover; border-radius: 6px; flex: none; }
.search__item-t { font-size: 14px; font-weight: 650; line-height: 1.35; }
.search__item-m { font-size: 12px; color: var(--text-3); }
.search__empty { padding: 18px; text-align: center; color: var(--text-3); font-size: 14px; }

/* Menu mobile */
.drawer {
  position: fixed; inset: 0; z-index: 200; overflow: hidden;
  background: rgba(3,5,9,.65); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: .25s var(--ease);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; inset-block: 0; right: 0; width: min(340px, 88vw);
  background: var(--bg-alt); border-left: 1px solid var(--border);
  padding: 18px; overflow-y: auto;
  transform: translateX(100%); transition: transform .28s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 10px; font-weight: 650; font-size: 15px;
  color: var(--text-2);
}
.drawer__link:hover, .drawer__link.is-active { background: var(--surface-2); color: var(--text); }
.drawer__sep { height: 1px; background: var(--border); margin: 12px 0; }
.drawer__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 800; padding: 6px 14px; }

/* ---------------------------------------------------------------
   5. BOTOES E BADGES
   --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  font-weight: 700; font-size: 14px; line-height: 1;
  border: 1px solid transparent; transition: .18s var(--ease); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn:active { transform: none; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px rgba(230,39,62,.8); }
.btn--primary:hover { background: #f0384f; color: #fff; }
.btn--grad { background: var(--brand-grad); color: #fff; }
.btn--grad:hover { color: #fff; filter: brightness(1.08); }
.btn--ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-3); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--block { width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--surface-3); color: var(--text-2);
}
.badge--brand    { background: var(--brand); color: #fff; }
.badge--live     { background: #ef3b4e; color: #fff; }
.badge--exclusiva{ background: var(--brand-2); color: #fff; }
.badge--rumor    { background: #ff8a3d; color: #10131a; }
.badge--video    { background: rgba(0,0,0,.72); color: #fff; }
.badge--essencial      { background: linear-gradient(120deg,#00d47f,#00a86b); color: #06210f; }
.badge--recomendado    { background: linear-gradient(120deg,#8bd419,#5fb000); color: #10210a; }
.badge--evitar         { background: var(--score-bad); color: #fff; }
.badge--editors_choice { background: linear-gradient(120deg,#ffc233,#ff8a3d); color: #26170a; }

.kicker {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 8px;
}

/* Notas */
.score {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 900; font-size: 22px;
  color: #08110c; line-height: 1;
}
.score--amazing { background: var(--score-amazing); }
.score--great   { background: var(--score-great); }
.score--good    { background: var(--score-good); }
.score--ok      { background: var(--score-ok); }
.score--bad     { background: var(--score-bad); color: #fff; }
.score--sm { width: 40px; height: 40px; font-size: 16px; border-radius: 9px; }
.score--lg { width: 96px; height: 96px; font-size: 40px; border-radius: 20px; }

/* ---------------------------------------------------------------
   6. TITULOS DE SECAO
   --------------------------------------------------------------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
  border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.section-head__title {
  font-size: clamp(20px, 3vw, 27px); margin: 0;
  display: flex; align-items: center; gap: 11px;
}
.section-head__title::before {
  content: ''; width: 5px; height: 1.05em; border-radius: 3px;
  background: var(--accent, var(--brand)); flex: none;
}
.section-head__link { font-size: 13px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.section-head__link:hover { color: var(--brand); }
.section-head__sub { font-size: 14px; color: var(--text-3); margin: 4px 0 0; font-weight: 500; }

/* ---------------------------------------------------------------
   7. CARDS
   --------------------------------------------------------------- */
.card { display: flex; flex-direction: column; min-width: 0; }

.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--surface-2); aspect-ratio: 16/9;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.card:hover .card__media img { transform: scale(1.055); }

.card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 55%);
  opacity: 0; transition: .3s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }

.card__flag { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.card__duration {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(0,0,0,.78); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 3px 7px; border-radius: 4px;
}
.card__score { position: absolute; right: 10px; bottom: 10px; z-index: 2; box-shadow: var(--shadow); }

.card__play {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  transition: .25s var(--ease);
}
.card__play span {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(230,39,62,.94); display: grid; place-items: center;
  box-shadow: 0 8px 26px -8px rgba(0,0,0,.7);
  transition: .25s var(--ease);
}
.card__play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.card:hover .card__play span { transform: scale(1.13); background: var(--brand); }

.card__body { padding-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.card__cat {
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent, var(--brand));
}
.card__title {
  font-size: 17px; line-height: 1.28; margin: 0; font-weight: 750;
  font-family: var(--font-head); letter-spacing: -.015em;
}
.card__title a { background-image: linear-gradient(var(--brand), var(--brand)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease); }
.card:hover .card__title a { background-size: 100% 2px; }
.card__excerpt { font-size: 14px; color: var(--text-2); margin: 0; line-height: 1.55; }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.card__meta svg { width: 13px; height: 13px; opacity: .75; }
.card__dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* Card grande (hero) */
.card--hero .card__media { aspect-ratio: 16/9; border-radius: var(--radius-lg); }
.card--hero .card__title { font-size: clamp(24px, 4.2vw, 40px); line-height: 1.08; }
.card--hero .card__excerpt { font-size: 16px; }
.card--hero .card__body { padding-top: 16px; gap: 10px; }

/* Card horizontal */
.card--h { flex-direction: row; gap: 13px; align-items: flex-start; }
.card--h .card__media { width: 118px; flex: none; aspect-ratio: 16/10; border-radius: var(--radius-sm); }
.card--h .card__body { padding-top: 0; gap: 5px; }
.card--h .card__title { font-size: 14.5px; line-height: 1.35; font-weight: 700; }
.card--h .card__meta { font-size: 12px; }

/* Card compacto de lista numerada */
.card--rank { display: flex; gap: 13px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
.card--rank:last-child { border-bottom: 0; }
.card--rank .rank-n {
  font-family: var(--font-head); font-size: 26px; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--text-3); flex: none; width: 30px;
}
.card--rank:hover .rank-n { -webkit-text-stroke-color: var(--brand); }

/* Card sobreposto (imagem com texto por cima) */
.card--overlay { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; }
.card--overlay .card__media { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; height: 100%; }
.card--overlay .card__media::after { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.92) 8%, rgba(0,0,0,.45) 48%, transparent 78%); }
.card--overlay .card__body { position: relative; z-index: 3; margin-top: auto; padding: 18px; color: #fff; }
.card--overlay .card__title { color: #fff; }
.card--overlay .card__meta { color: rgba(255,255,255,.72); }
.card--overlay .card__excerpt { color: rgba(255,255,255,.82); }

/* Grades */
.grid { display: grid; gap: 26px 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 16px; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
}

/* ---------------------------------------------------------------
   8. HERO DA HOME
   --------------------------------------------------------------- */
.hero { display: grid; gap: 26px; grid-template-columns: 1fr; margin-top: 26px; }

@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 30px; }
}

.hero__side { display: grid; gap: 16px; align-content: start; }
.hero__side .card--h .card__media { width: 132px; }

.hero__latest {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.hero__latest h3 {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 10px; display: flex; align-items: center; gap: 7px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,39,62,.6); } 50% { box-shadow: 0 0 0 7px rgba(230,39,62,0); } }

.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding: 9px 0 9px 17px; border-bottom: 1px solid var(--border-soft); }
.tl li:last-child { border-bottom: 0; padding-bottom: 0; }
.tl li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--surface-3); border: 2px solid var(--border);
}
.tl li:hover::before { background: var(--brand); border-color: var(--brand); }
.tl__time { font-size: 11.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tl__title { font-size: 14px; font-weight: 650; line-height: 1.4; margin-top: 2px; display: block; }

/* ---------------------------------------------------------------
   9. WIDGETS DA SIDEBAR
   --------------------------------------------------------------- */
.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.widget__title {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800;
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.widget__title span { color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 650; color: var(--text-2);
  transition: .18s var(--ease);
}
.chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Newsletter */
.newsletter { background: var(--brand-grad); border: 0; color: #fff; }
.newsletter .widget__title { color: #fff; border-color: rgba(255,255,255,.28); }
.newsletter p { font-size: 14px; opacity: .92; margin-bottom: 14px; }
.newsletter input {
  width: 100%; padding: 11px 14px; border-radius: 9px; border: 0;
  background: rgba(255,255,255,.16); color: #fff; outline: none; margin-bottom: 9px;
  border: 1px solid rgba(255,255,255,.28);
}
.newsletter input::placeholder { color: rgba(255,255,255,.72); }
.newsletter input:focus { background: rgba(255,255,255,.24); }
.newsletter button { width: 100%; background: #fff; color: #12151d; font-weight: 800; padding: 11px; border-radius: 9px; }
.newsletter button:hover { background: rgba(255,255,255,.9); }
.newsletter__msg { font-size: 13px; margin-top: 9px; font-weight: 600; }

/* Lancamentos */
.release { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.release:last-child { border-bottom: 0; }
.release__date {
  flex: none; width: 46px; text-align: center; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border); padding: 5px 0;
}
.release__day { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 900; line-height: 1; }
.release__mon { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 800; margin-top: 2px; }
.release__title { font-size: 14px; font-weight: 650; line-height: 1.35; }
.release__plat { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ---------------------------------------------------------------
   10. ANUNCIOS
   --------------------------------------------------------------- */
.ad { display: block; text-align: center; margin-inline: auto; }
.ad__label {
  display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px; font-weight: 700;
}
.ad__body { display: flex; justify-content: center; }
.ad__body img { border-radius: var(--radius-sm); }

.ad__placeholder {
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, transparent, transparent 9px, var(--surface) 9px, var(--surface) 18px);
  color: var(--text-3); padding: 26px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 12.5px;
}
.ad__placeholder strong { font-size: 13px; color: var(--text-2); }

.ad--header        { margin-block: 18px; }
.ad--home_hero,
.ad--home_inline,
.ad--listagem,
.ad--article_top,
.ad--article_bottom,
.ad--footer        { margin-block: 34px; }
.ad--article_inline{ margin-block: 30px; }
.ad--sidebar_sticky{ position: sticky; top: calc(var(--header-h) + 20px); }

.ad--mobile_sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 6px; box-shadow: 0 -6px 20px -10px rgba(0,0,0,.6);
}
.ad--mobile_sticky .ad__label { display: none; }
@media (min-width: 900px) { .ad--mobile_sticky { display: none; } }

/* ---------------------------------------------------------------
   11. PAGINA DE MATERIA
   --------------------------------------------------------------- */
.post-hero { margin-top: 22px; }
.post-hero__breadcrumb { font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.post-hero__breadcrumb a:hover { color: var(--brand); }

.post-title { font-size: clamp(27px, 5vw, 48px); line-height: 1.06; margin: 0 0 14px; }
.post-sub { font-size: clamp(16px, 2vw, 20px); color: var(--text-2); font-weight: 450; line-height: 1.45; margin: 0 0 20px; max-width: 70ch; }

.post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0; border-block: 1px solid var(--border); margin-bottom: 24px;
  font-size: 13.5px; color: var(--text-3);
}
.post-meta__author { display: flex; align-items: center; gap: 9px; }
.post-meta__author img, .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.post-meta__author b { color: var(--text); font-weight: 700; font-size: 14px; display: block; }
.post-meta__author span { font-size: 12.5px; }
.post-meta__stats { display: flex; gap: 14px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.post-meta__stats span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta__stats svg { width: 15px; height: 15px; opacity: .7; }

.post-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 10px; background: var(--surface-2); }
.post-cover img { width: 100%; }
.post-cover__credit { font-size: 12px; color: var(--text-3); margin-bottom: 26px; font-style: italic; }

.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share__btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  transition: .18s var(--ease);
}
.share__btn:hover { transform: translateY(-2px); color: #fff; }
.share__btn svg { width: 17px; height: 17px; fill: currentColor; }
.share__btn--x:hover  { background: #000; border-color: #000; }
.share__btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.share__btn--wa:hover { background: #25d366; border-color: #25d366; }
.share__btn--tg:hover { background: #29a9eb; border-color: #29a9eb; }
.share__btn--link:hover { background: var(--brand); border-color: var(--brand); }

/* Conteudo editorial */
.prose { font-size: 17.5px; line-height: 1.78; color: var(--text); max-width: 74ch; }
.prose > * + * { margin-top: 1.3em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(22px, 3.2vw, 30px); margin-top: 1.9em; margin-bottom: .55em; }
.prose h3 { font-size: clamp(19px, 2.6vw, 23px); margin-top: 1.7em; margin-bottom: .5em; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-thickness: 2.5px; }
.prose img { border-radius: var(--radius); width: 100%; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 13.5px; color: var(--text-3); text-align: center; margin-top: 9px; font-style: italic; }
.prose blockquote {
  margin: 1.9em 0; padding: 4px 0 4px 22px;
  border-left: 4px solid var(--brand);
  font-size: 20px; font-weight: 600; font-style: italic; line-height: 1.5; color: var(--text);
}
.prose blockquote footer { font-size: 14px; font-style: normal; font-weight: 500; color: var(--text-3); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--brand); font-weight: 700; }
.prose code {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .15em .4em; border-radius: 5px; font-size: .87em;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
.prose pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; overflow-x: auto; font-size: 14px;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 11px 13px; border: 1px solid var(--border); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 750; }
.prose hr { margin: 2.4em 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2em 0; }

/* Caixa de veredito da review */
.verdict {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin: 36px 0;
  position: relative; overflow: hidden;
}
.verdict::before { content: ''; position: absolute; inset-block: 0; left: 0; width: 5px; background: var(--brand-grad); }
.verdict__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.verdict__grade b { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 800; }
.verdict__grade span { font-size: 13px; color: var(--text-3); }
.verdict__text { font-size: 16.5px; line-height: 1.62; color: var(--text-2); margin: 0; }
.verdict__cols { display: grid; gap: 18px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .verdict__cols { grid-template-columns: 1fr 1fr; } }
.pc { border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.pc h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 11px; display: flex; align-items: center; gap: 7px; }
.pc--pros h4 { color: var(--score-amazing); }
.pc--cons h4 { color: var(--score-bad); }
.pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.pc li::before { position: absolute; left: 0; top: -1px; font-weight: 900; font-size: 15px; }
.pc--pros li::before { content: '+'; color: var(--score-amazing); }
.pc--cons li::before { content: '-'; color: var(--score-bad); }

/* Ficha do jogo dentro da materia */
.gamecard {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px; margin: 32px 0;
}
@media (min-width: 560px) { .gamecard { grid-template-columns: 130px 1fr; } }
.gamecard__cover { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 3/4; }
.gamecard__cover img { width: 100%; height: 100%; object-fit: cover; }
.gamecard h3 { font-size: 21px; margin: 0 0 4px; }
.gamecard dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 12px 0 0; font-size: 13.5px; }
.gamecard dt { color: var(--text-3); font-weight: 700; }
.gamecard dd { margin: 0; color: var(--text-2); }

/* Tabela Digital Foundry */
.tech-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 640px; }
.tech-table th, .tech-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.tech-table thead th {
  background: var(--surface-2); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); font-weight: 800; white-space: nowrap;
}
.tech-table tbody tr:hover { background: var(--surface); }
.tech-table td:first-child { font-weight: 750; }
.tech-table .tech-tag {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  background: var(--surface-3); font-size: 12px; font-weight: 700;
}

/* Passos do tutorial */
.steps { counter-reset: step; display: grid; gap: 20px; margin: 32px 0; }
.step {
  position: relative; padding: 20px 20px 20px 62px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 900; font-size: 15px;
}
.step h3 { font-size: 18px; margin: 0 0 7px; }
.step p { font-size: 15px; color: var(--text-2); margin: 0; }
.step img { border-radius: var(--radius-sm); margin-top: 14px; }

/* Barra de progresso da leitura */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 150;
  background: var(--brand-grad); width: 0; transition: width .1s linear;
}

/* Galeria + lightbox */
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 30px 0; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; cursor: zoom-in; background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.gallery__item:hover img { transform: scale(1.07); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(4,6,10,.96);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox__cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cfd6e2; font-size: 14px; padding-inline: 24px; }
.lightbox__close { position: absolute; top: 18px; right: 20px; color: #fff; font-size: 32px; line-height: 1; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12);
  color: #fff; display: grid; place-items: center; font-size: 24px;
}
.lightbox__nav:hover { background: rgba(255,255,255,.24); color: #fff; }
.lightbox__prev { left: 18px; }
.lightbox__next { right: 18px; }

/* Video responsivo */
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 26px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Navegacao anterior/proximo */
.postnav { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 40px 0; }
@media (min-width: 640px) { .postnav { grid-template-columns: 1fr 1fr; } }
.postnav__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: .2s var(--ease);
}
.postnav__item:hover { border-color: var(--brand); transform: translateY(-2px); }
.postnav__label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 800; }
.postnav__title { font-size: 15px; font-weight: 700; margin-top: 5px; line-height: 1.38; }
.postnav__item--next { text-align: right; }

/* Caixa do autor */
.authorbox {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin: 36px 0;
}
.authorbox .avatar { width: 62px; height: 62px; }
.authorbox h4 { margin: 0 0 3px; font-size: 17px; }
.authorbox p { font-size: 14px; color: var(--text-2); margin: 6px 0 0; }
.authorbox__role { font-size: 12px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

/* Comentarios */
.comments { margin-top: 44px; }
.comment { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.comment__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--brand-grad); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.comment__head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 4px; }
.comment__name { font-weight: 750; font-size: 14.5px; }
.comment__time { font-size: 12.5px; color: var(--text-3); }
.comment__body { font-size: 15px; color: var(--text-2); line-height: 1.6; margin: 0; white-space: pre-line; }
.comment__actions { margin-top: 7px; display: flex; gap: 14px; font-size: 12.5px; color: var(--text-3); font-weight: 650; }
.comment__replies { margin-left: 30px; margin-top: 6px; padding-left: 16px; border-left: 2px solid var(--border); }

.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.input, .textarea, .select {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); outline: none; transition: .18s var(--ease); font-size: 15px;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); background: var(--surface); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------------------------------------------------------------
   12. LISTAGENS / ARQUIVO
   --------------------------------------------------------------- */
.page-head { padding: 34px 0 26px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.page-head h1 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 8px; }
.page-head p { color: var(--text-2); font-size: 16px; margin: 0; max-width: 66ch; }
.page-head--cover { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 46px 30px; border: 0; margin-top: 22px; }
.page-head--cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.45)); z-index: 1; }
.page-head--cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head--cover > * { position: relative; z-index: 2; color: #fff; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar__count { font-size: 13.5px; color: var(--text-3); }
.toolbar__right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) { .toolbar__right { margin-left: 0; width: 100%; } }

.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 44px 0 12px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding-inline: 12px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--text-2);
  transition: .18s var(--ease);
}
.pagination a:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-3); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { opacity: .38; pointer-events: none; }

.empty { text-align: center; padding: 70px 20px; color: var(--text-3); }
.empty svg { width: 56px; height: 56px; opacity: .35; margin: 0 auto 16px; }
.empty h3 { color: var(--text-2); font-size: 20px; }

/* ---------------------------------------------------------------
   13. JOGOS
   --------------------------------------------------------------- */
.game-grid { display: grid; gap: 20px 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .game-grid { grid-template-columns: repeat(5, 1fr); } }

.game-tile__cover { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--surface-2); }
.game-tile__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.game-tile:hover .game-tile__cover img { transform: scale(1.06); }
.game-tile__score { position: absolute; top: 8px; right: 8px; }
.game-tile h3 { font-size: 14.5px; margin: 10px 0 2px; line-height: 1.3; }
.game-tile p { font-size: 12px; color: var(--text-3); margin: 0; }

.game-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-top: 22px; min-height: 320px; display: flex; align-items: flex-end; }
.game-hero__bg { position: absolute; inset: 0; }
.game-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.game-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,8,12,.97) 5%, rgba(6,8,12,.6) 45%, rgba(6,8,12,.25)); }
.game-hero__body { position: relative; z-index: 2; padding: 28px; display: grid; gap: 20px; grid-template-columns: 1fr; width: 100%; color: #fff; }
@media (min-width: 700px) { .game-hero__body { grid-template-columns: 160px 1fr; align-items: end; } }
.game-hero__cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; box-shadow: var(--shadow-lg); }
.game-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.game-hero h1 { font-size: clamp(26px, 5vw, 44px); margin: 0 0 8px; color: #fff; }
.game-hero__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: rgba(255,255,255,.8); }

.month-block { margin-bottom: 40px; }
.month-block h2 { font-size: 22px; text-transform: capitalize; padding-bottom: 10px; border-bottom: 2px solid var(--brand); display: inline-block; }

/* ---------------------------------------------------------------
   14. AVISOS
   --------------------------------------------------------------- */
.alert {
  padding: 13px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
  border: 1px solid; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start;
}
.alert--sucesso { background: rgba(0,212,127,.1);  border-color: rgba(0,212,127,.42);  color: #23d68d; }
.alert--erro    { background: rgba(239,59,78,.1);  border-color: rgba(239,59,78,.42);  color: #ff6274; }
.alert--info    { background: rgba(124,92,255,.1); border-color: rgba(124,92,255,.42); color: #a08cff; }
.alert--aviso   { background: rgba(255,194,51,.1); border-color: rgba(255,194,51,.42); color: #ffc233; }

/* Aviso de rumor / credibilidade */
.rumor-box {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: rgba(255,138,61,.08); border: 1px solid rgba(255,138,61,.35);
  border-radius: var(--radius); padding: 16px; margin-bottom: 26px;
}
.rumor-box strong { color: #ff8a3d; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.rumor-box p { margin: 3px 0 0; font-size: 14px; color: var(--text-2); }
.cred { display: flex; gap: 4px; margin-left: auto; }
.cred i { width: 20px; height: 6px; border-radius: 3px; background: var(--surface-3); }
.cred i.on { background: #ff8a3d; }

/* ---------------------------------------------------------------
   15. RODAPE
   --------------------------------------------------------------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 70px; padding: 46px 0 26px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer a { font-size: 14px; color: var(--text-2); }
.footer a:hover { color: var(--brand); }
.footer__about { font-size: 14px; color: var(--text-2); max-width: 42ch; margin-top: 14px; }
.footer__social { display: flex; gap: 8px; margin-top: 16px; }
.footer__bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--text-3);
}
.footer__bottom nav { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }

/* Botao voltar ao topo */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: .25s var(--ease);
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { color: #fff; background: #f0384f; }
body.has-sticky-ad .totop { bottom: 76px; }

/* ---------------------------------------------------------------
   16. UTILITARIOS
   --------------------------------------------------------------- */
.text-muted { color: var(--text-3); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

/* ---------------------------------------------------------------
   17. AJUSTES DE MOBILE (por ultimo, para vencer as regras acima)
   --------------------------------------------------------------- */
@media (max-width: 720px) {
  /* Abaixo de 16px o Safari do iOS da zoom sozinho ao focar o campo
     e a pagina "pula" — problema classico de formulario em celular. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea,
  select {
    font-size: 16px !important;
  }

  /* Titulos um pouco menores para caber sem quebrar palavra */
  .post-title { font-size: clamp(24px, 7vw, 34px); }
  .card--hero .card__title { font-size: clamp(21px, 6.2vw, 30px); }

  /* Leitura mais confortavel em tela pequena */
  .prose { font-size: 16.5px; line-height: 1.72; }
  .prose blockquote { font-size: 17.5px; padding-left: 16px; }

  /* Caixa de veredito da review */
  .verdict { padding: 18px; }
  .verdict__head { gap: 12px; }
  .score--lg { width: 76px; height: 76px; font-size: 31px; border-radius: 16px; }

  /* Compartilhar: alvos maiores para o dedo */
  .share__btn { width: 42px; height: 42px; }

  /* Paginacao com alvo de toque adequado */
  .pagination a, .pagination span { min-width: 42px; height: 42px; }

  /* Passos do tutorial ocupam menos margem lateral */
  .step { padding: 16px 16px 16px 54px; }
  .step::before { left: 14px; top: 16px; }

  /* Rodape em coluna unica com respiro */
  .footer { padding-top: 34px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__bottom nav { margin-left: 0; }
}

/* Palavras muito longas (URLs, nomes de arquivo) nao podem furar o layout */
.prose, .card__title, .card__excerpt, .post-title, .post-sub,
.comment__body, .widget, .release__title {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .header, .topbar, .footer, .sidebar, .ad, .totop, .share, .comments, .postnav { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}
