:root {
  --primary: #ee9b59;
  --secondary: #a45a09;
  --accent: #f6c177;
  --bg: #f0e4d7;
  --surface: #fff7ef;
  --card: #2f6fd6;
  --text: #2f241e;
  --shadow: 0 12px 24px rgba(91, 54, 17, 0.10);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

.container {
  width: min(1100px, calc(100% - 120px));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  background: var(--primary);
  position: relative;
  z-index: 20;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
}

.logo-image {
  height: 60px;
  object-fit: contain;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-select,
.header-search input,
.header-back {
  height: 40px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: #fff7f0;
  padding: 0 12px;
  color: var(--text);
}

.header-select {
  min-width: 240px;
  background: var(--secondary);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.header-search {
  display: flex;
  align-items: center;
}

.header-search input {
  min-width: 220px;
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #fff;
  outline: none;
}

.header-search button {
  height: 40px;
  border: none;
  background: #fff;
  border-radius: 0 8px 8px 0;
  padding: 0 12px;
  cursor: pointer;
}

.header-back {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  background: #fff;
}

/* PÁGINAS */

.home-page,
.game-page,
.category-page .game-page {
  padding: 20px 0 40px;
}

.block {
  margin-bottom: 28px;
}

.block-title {
  margin: 0 0 12px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

#popularSection[hidden],
#recommendedSection[hidden],
#newSection[hidden],
#favoritesSection[hidden],
#categoryRowsSection[hidden],
#announcementBox[hidden],
#resultsSection[hidden] {
  display: none;
}

/* HOME - HERO / MAIS JOGADOS */

#featuredWrap {
  width: 100%;
  margin: 0 auto;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 180px 180px 120px;
  grid-template-areas:
    "main main side1 side2"
    "main main side3 side4"
    "bottom1 bottom2 bottom3 bottom4";
  gap: 14px;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
}

.featured-main {
  grid-area: main;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.featured-thumb {
  height: 100%;
  min-height: 0;
  background: #ead6c5;
}

.featured-side-grid,
.featured-bottom-grid {
  display: contents;
}

.featured-side-grid .featured-side-card:nth-child(1) {
  grid-area: side1;
}

.featured-side-grid .featured-side-card:nth-child(2) {
  grid-area: side2;
}

.featured-side-grid .featured-side-card:nth-child(3) {
  grid-area: side3;
}

.featured-side-grid .featured-side-card:nth-child(4) {
  grid-area: side4;
}

.featured-bottom-grid .featured-side-card:nth-child(1) {
  grid-area: bottom1;
}

.featured-bottom-grid .featured-side-card:nth-child(2) {
  grid-area: bottom2;
}

.featured-bottom-grid .featured-side-card:nth-child(3) {
  grid-area: bottom3;
}

.featured-bottom-grid .featured-side-card:nth-child(4) {
  grid-area: bottom4;
}

.featured-side-card,
.game-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.side-thumb,
.game-thumb {
  background: #ead6c5;
}

.media {
  position: relative;
  overflow: hidden;
  background: #ead6c5;
}

.media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.03) 55%,
    rgba(255, 255, 255, 0.05)
  );
  opacity: 0.45;
  transition: opacity 0.16s ease-out;
}

.featured-thumb img,
.side-thumb img,
.game-thumb img,
.game-hero img,
.game-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.16s ease-out;
  will-change: transform;
}

.featured-main:hover img,
.featured-side-card:hover img,
.game-card:hover img,
.related-grid .game-card:hover img,
.category-games .game-card:hover img {
  transform: scale(1.08);
}

.featured-main:hover .media::after,
.featured-side-card:hover .media::after,
.game-card:hover .media::after {
  opacity: 0.72;
}

.featured-caption,
.game-caption {
  background: var(--card);
  color: #fff;
  padding: 8px 10px;
  font-size: 13px;
  min-height: 30px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.featured-caption strong,
.game-caption strong {
  display: block;
  width: 100%;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card > a,
.featured-side-card > a {
  display: block;
}

.game-card > a {
  display: grid;
  grid-template-rows: 1fr 34px;
  height: 100%;
}

.game-card .game-caption {
  background: var(--card);
  color: #fff;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.game-card .game-caption strong {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
}

.game-card .game-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}

.game-card .game-category,
.game-card .game-plays {
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card .game-category {
  font-weight: 700;
  max-width: 90px;
}

.game-card .game-plays {
  text-align: right;
  max-width: 90px;
}

.sidebar-game-title,
.sidebar-post-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* LISTAGENS */

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.game-grid.small-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#recommendedGrid,
#newGrid,
#favoriteGrid,
#searchResults,
.category-section .game-grid {
  width: 100%;
  margin: 0 auto;
}

.game-card .game-thumb {
  aspect-ratio: 16 / 9;
}

.game-meta {
  font-size: 12.5px;
  opacity: 0.84;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.game-category {
  font-weight: 700;
}

/* FAVORITOS REMOVIDOS */

.fav-btn {
  display: none !important;
}

.hover-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.16s ease-out;
  z-index: 2;
}

.featured-main:hover .hover-badge,
.featured-side-card:hover .hover-badge,
.game-card:hover .hover-badge {
  opacity: 1;
  transform: translateY(0);
}

.announcement {
  background: #fff1e3;
  border: 1px solid #ebb47a;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.category-section {
  margin-top: 22px;
}

.category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-head h3 {
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.view-all {
  font-size: 14px;
  font-weight: 700;
}

/* PÁGINA DO JOGO */

.game-page .block-title,
.game-page h1,
.game-page h2,
.game-page h3 {
  color: var(--text);
}

.game-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.game-hero-cover {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.game-hero-cover img {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.panel h1,
.panel h2,
.panel h3,
.panel p {
  margin-top: 0;
}

.game-page #gamePage > .panel {
  margin-bottom: 24px;
}

.game-page #gamePage > .panel:last-of-type {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  background: #ffe6cf;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.play-area {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 22px 0 0;
  box-shadow: var(--shadow);
}

.play-area.dos-player-preview {
  aspect-ratio: auto;
  min-height: 680px;
  height: 72vh;
}

.play-area.dos-player-preview #game-player-container,
.play-area.dos-player-preview .dos-player-shell,
.play-area.dos-player-preview .dos-player-shell iframe,
.play-area.dos-player-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 680px;
}

.play-area iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #111;
  display: block;
}

/* PREVIEW ANTES DE JOGAR */

.game-preview {
  position: relative;
  background: #000;
  display: grid;
  place-items: center;
}

.game-preview-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.game-preview-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.22));
}

.game-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
}

.game-preview .play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 56px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3b167 0%, #e79541 100%);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transform-origin: center;
  animation: playButtonPulse .9s ease-in-out infinite;
  transition: transform .10s ease, box-shadow .10s ease, filter .10s ease, opacity .10s ease;
  will-change: transform, box-shadow;
  position: relative;
  z-index: 5;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.game-preview .play-button:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.30);
  filter: brightness(1.03);
  animation-play-state: paused;
}

.game-preview .play-button:active {
  transform: translateY(0) scale(0.97);
  animation: none;
}

.game-preview.started .play-button {
  animation: none;
}

@keyframes playButtonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 17px 34px rgba(0, 0, 0, 0.31);
  }
}

.game-frame-shell,
.emulator-player-shell {
  width: 100%;
  height: 100%;
  background: #000;
}

.emulator-loading {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-weight: 700;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.95));
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.empty-box {
  padding: 18px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.game-page > .container > * {
  max-width: 100%;
}

.game-page .panel,
.game-page .play-area,
.game-page .empty-box,
.game-page .related-grid,
.game-page .game-hero {
  width: 100%;
}

.game-page iframe {
  max-width: 100%;
}

.game-page button,
.game-page .button,
.game-page .btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.game-page .favorite-button,
.game-page .fav-button,
.game-page [data-favorite],
.game-page [aria-label*="favorito"],
.game-page [aria-label*="favorite"] {
  display: none !important;
}

/* BLOCO EXTRA DA PÁGINA DO JOGO */

.game-extra-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 24px;
  margin: 26px 0;
  align-items: start;
}

.game-description-panel,
.game-rating-panel {
  min-width: 0;
}

.game-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  margin-bottom: 18px;
  color: rgba(47, 36, 30, 0.85);
}

.game-extra-title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.1;
}

.game-extra-text {
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.share-title {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
}

.share-subtitle {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.rating-bars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  flex: 1;
}

.rating-bar {
  height: 32px;
  background: #f1e4d3;
  border-radius: 2px;
}

.rating-bar.filled {
  background: #e7b14c;
}

.rating-score {
  min-width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--secondary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.share-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.share-twitter {
  background: #4ea4f1;
}

.share-facebook {
  background: #3b5998;
}

.share-whatsapp {
  background: #22c55e;
}

.game-discover-panel {
  margin: 28px 0;
}

.discover-title {
  margin: 0 0 18px;
  font-size: 22px;
}


/* UPGRADE PROFISSIONAL DA PÁGINA DO JOGO */

.game-hero-enhanced {
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.74fr);
  gap: 20px;
  align-items: stretch;
}

.game-hero-cover-enhanced {
  position: relative;
  min-height: 360px;
}

.game-hero-cover-enhanced::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.18) 0%, rgba(8, 8, 8, 0.12) 20%, rgba(8, 8, 8, 0.82) 100%);
  pointer-events: none;
}

.game-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.game-hero-content {
  width: min(100%, 640px);
  color: #fff;
}

.game-hero-category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.game-hero-category,
.game-hero-mini-stat {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.game-hero-dot {
  font-size: 18px;
  opacity: 0.8;
}

.game-hero-title {
  margin: 0 0 12px;
  color: #fff !important;
  font-size: 32px;
  line-height: 1.02;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
}

.game-hero-description {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-hero-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.game-hero-stat {
  min-width: 118px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.game-hero-stat strong,
.game-hero-stat em {
  display: block;
}

.game-hero-stat strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  opacity: 0.88;
}

.game-hero-stat em {
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
}

.game-hero-tags {
  margin-top: 0;
}

.game-hero-tags .tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 10px;
  font-size: 11px;
}

.game-side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 16px;
}

.game-breadcrumb-enhanced {
  margin-bottom: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.game-breadcrumb a {
  color: inherit;
}

.game-breadcrumb strong {
  color: var(--secondary);
}

.game-side-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.08;
}

.game-side-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 5);
}

.game-side-panel .game-breadcrumb {
  min-height: 20px;
}

.game-side-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-side-fact {
  background: #fff2e5;
  border-radius: 12px;
  padding: 10px 12px;
}

.game-side-fact span,
.game-side-fact strong {
  display: block;
}

.game-side-fact span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-bottom: 5px;
}

.game-side-fact strong {
  font-size: 14px;
  line-height: 1.15;
}

.game-side-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.game-favorite-toggle,
.game-secondary-link {
  justify-content: center;
}

.game-secondary-link {
  text-align: center;
}

.panel-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-subtext {
  margin: -2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.78;
}

.game-player-panel .play-area {
  margin-top: 18px;
}

.game-retention-area {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 34px 0 12px;
}

.game-extra-section {
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.game-extra-section[hidden] {
  display: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.76;
}

.game-extra-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-seo-content p:last-child {
  margin-bottom: 0;
}

.game-seo-content strong {
  color: var(--secondary);
}

/* PÁGINA DE CATEGORIA */

.category-page .game-page {
  padding-top: 18px;
}

.category-hero-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  margin-bottom: 28px;
  align-items: start;
}

.category-hero-main {
  background: var(--secondary);
  color: #fff;
  border-radius: 14px;
  padding: 22px 28px;
  box-shadow: var(--shadow);
}

.category-hero-label {
  font-size: 14px;
  opacity: 0.92;
  margin-bottom: 12px;
}

.category-hero-title {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff !important;
}

.category-hero-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-filter-chip {
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.category-filter-chip.active {
  background: var(--primary);
  color: #fff;
}

.category-layout-wrap {
  margin-bottom: 34px;
}

.category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
}

.category-main {
  min-width: 0;
}

.category-sidebar {
  min-width: 0;
}

.category-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.category-games .game-card .game-thumb {
  aspect-ratio: 16 / 9;
}

.category-pagination {
  display: flex;
  gap: 0;
  margin: 8px 0 28px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 54px;
  height: 54px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #182638;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.category-text-block {
  margin-bottom: 30px;
}

.category-section-title {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.1;
  color: #182638;
}

.category-seo-text p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-box {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.sidebar-title {
  background: var(--secondary);
  color: #fff;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.sidebar-content {
  padding: 0;
}

.sidebar-ad-box {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
  background: #f5f5f5;
  font-size: 18px;
  text-align: center;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
}

.sidebar-game-item,
.sidebar-post-item {
  display: block;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebar-game-item:last-child,
.sidebar-post-item:last-child {
  border-bottom: none;
}

.sidebar-game-thumb,
.sidebar-post-thumb {
  aspect-ratio: 16 / 7;
  background: #ead6c5;
}

.sidebar-game-thumb img,
.sidebar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-game-title,
.sidebar-post-title {
  background: var(--primary);
  color: #2f241e;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.3;
}

.discover-list {
  display: flex;
  flex-direction: column;
}

.discover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 18px;
  background: #fff;
}

.discover-item:last-child {
  border-bottom: none;
}

.discover-arrow {
  font-size: 36px;
  line-height: 1;
  color: #999;
}

/* FOOTER */

.site-footer.footer-modelo-JOGOSNAWEB {
  margin-top: 40px;
  background: #efefef;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 0;
}

.footer-top-band {
  background: #ee9b59;
  padding: 6px 0;
}

.footer-top-band-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-top-title {
  margin: 0;
  font-size: 23px;
  font-weight: 600; /* equilíbrio perfeito */
  color: #182638;
  text-transform: uppercase;
  letter-spacing: 0.3px; /* menos espaçado que antes */
  line-height: 1.2;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social .social-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-social .social-circle:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.social-twitter {
  background: #4ea4f1;
}

.social-facebook {
  background: #3b5998;
}

.social-youtube {
  background: #ff2d20;
}

.social-instagram {
  background: #d96adf;
}

.footer-links-row {
  background: #f3e0cf;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-links-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.footer-links-inner a {
  font-size: 18px;
  color: #231f20;
}

.footer-links-inner a:hover {
  text-decoration: underline;
}

.footer-main {
  background: #efefef;
  padding: 18px 0 0;
}

.footer-main-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
  align-items: start;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.1;
  color: #18314a;
  text-transform: uppercase;
}

.footer-col p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #1f2a35;
}

.footer-mascot {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-size: 180px;
  line-height: 1;
  user-select: none;
}

.footer-bottom {
  background: #f6f6f6;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
  padding: 14px 0;
  margin-top: 18px;
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo-image {
  max-width: 280px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-copy {
  text-align: center;
  font-size: 18px;
  color: #2f2f2f;
}

/* FOOTER FALLBACK */

#footerLogoImage:not([src]),
#footerLogoImage[src=""] {
  display: none;
}

.footer-brand:has(#footerLogoImage[src=""]),
.footer-brand:has(#footerLogoImage:not([src])) {
  min-height: 80px;
}

.footer-brand::before {
  content: "JOGOSNAWEB";
  display: none;
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  color: #6b2c11;
  letter-spacing: -0.04em;
}

.footer-brand:has(#footerLogoImage[src=""])::before,
.footer-brand:has(#footerLogoImage:not([src]))::before {
  display: block;
}

/* RESPONSIVO */

@media (max-width: 1180px) {
  .container {
    width: min(1000px, calc(100% - 40px));
  }

  .featured-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 280px 150px 150px 120px 120px;
    grid-template-areas:
      "main main"
      "side1 side2"
      "side3 side4"
      "bottom1 bottom2"
      "bottom3 bottom4";
    gap: 16px;
  }

  .category-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
  }

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

@media (max-width: 1080px) {
  .game-hero {
    grid-template-columns: 1fr;
  }

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

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

  .game-grid,
  .game-grid.small-cards,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-hero-cover {
    min-height: 260px;
  }

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

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

  .footer-mascot {
    justify-content: flex-start;
    font-size: 140px;
  }

  .footer-bottom-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 980px) {
  .game-extra-share {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 920px) {
  .category-hero-box {
    grid-template-columns: 1fr;
  }

  .category-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .game-hero-overlay {
    padding: 18px;
  }

  .game-hero-title {
    font-size: 28px;
  }

  .game-hero-description {
    font-size: 13px;
  }

  .game-extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .container {
    width: min(100%, calc(100% - 24px));
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .header-tools {
    width: 100%;
  }

  .header-select,
  .header-search input {
    min-width: 0;
    width: 100%;
  }

  .header-search {
    width: 100%;
  }

  .featured-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 260px 140px 140px 110px 110px;
    grid-template-areas:
      "main main"
      "side1 side2"
      "side3 side4"
      "bottom1 bottom2"
      "bottom3 bottom4";
    gap: 14px;
  }

  .game-grid,
  .game-grid.small-cards,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .block-title {
    font-size: 18px;
  }

  .logo-image {
    height: 56px;
  }

  .play-area {
    aspect-ratio: 16 / 10;
  }

  .play-area.dos-player-preview {
    aspect-ratio: auto;
    min-height: 560px;
    height: 68vh;
  }

  .game-preview .play-button {
    min-width: 180px;
    min-height: 50px;
    font-size: 17px;
    padding: 0 22px;
  }

  .footer-top-band-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .footer-top-title {
    font-size: 18px;
  }

  .footer-links-inner {
    gap: 18px;
  }

  .footer-links-inner a {
    font-size: 16px;
  }

  .footer-col h3 {
    font-size: 20px;
  }

  .footer-col p,
  .footer-copy {
    font-size: 16px;
  }

  .footer-logo-image {
    max-width: 220px;
  }

  .footer-mascot {
    font-size: 110px;
  }
}

@media (max-width: 640px) {
  .category-hero-title {
    font-size: 28px;
  }

  .category-games {
    grid-template-columns: 1fr;
  }

  .category-section-title {
    font-size: 24px;
  }

  .discover-item {
    font-size: 16px;
  }

  .rating-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .rating-bars {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .game-hero-title {
    font-size: 28px;
  }

  .game-hero-stats,
  .game-side-facts,
  .game-extra-grid {
    grid-template-columns: 1fr;
  }

  .game-side-facts {
    display: grid;
  }


  .container {
    width: calc(100% - 20px);
  }

  .featured-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "main"
      "side1"
      "side2"
      "side3"
      "side4"
      "bottom1"
      "bottom2"
      "bottom3"
      "bottom4";
  }

  .featured-thumb,
  .side-thumb {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .game-grid,
  .game-grid.small-cards,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .play-area {
    aspect-ratio: 16 / 11;
  }

  .play-area.dos-player-preview {
    aspect-ratio: auto;
    min-height: 500px;
    height: 66vh;
  }

  .game-preview .play-button {
    min-width: 160px;
    min-height: 46px;
    font-size: 16px;
    padding: 0 18px;
  }

  .footer-links-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
  }

  .footer-mascot {
    font-size: 84px;
  }

  .footer-brand::before {
    font-size: 56px;
  }
}


/* NOVOS JOGOS ONLINE GRATIS */
.novos-online-section{
  margin-bottom: 30px;
}

.novos-online-shell{
  background: rgba(255, 247, 239, 0.64);
  border: 1px solid rgba(164, 90, 9, 0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(91, 54, 17, 0.06);
}

.novos-online-header{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:18px;
}

.novos-online-header .block-title{
  margin:0;
}

.novos-online-pai{
  display:grid;
  grid-template-columns:minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap:22px;
  align-items:stretch;
}

.novos-online-coluna-esquerda,
.novos-online-coluna-direita{
  min-width:0;
}

.novos-online-coluna-esquerda{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  height:100%;
}

#novosOnlineMainCard,
#novosOnlineBottomGrid,
#novosOnlineGrid{
  min-width:0;
}

.novos-card-main .game-thumb{
  aspect-ratio:16 / 10.5;
}

.novos-grid-duplo{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  align-items:stretch;
}

.novos-grid-duplo .game-thumb,
.novos-grid-nove .game-thumb{
  aspect-ratio:16 / 9;
}

.novos-online-coluna-direita{
  display:grid;
  grid-template-rows:auto auto 1fr;
  gap:14px;
  align-content:start;
}

.novos-info-topo{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 108px;
  gap:14px;
  align-items:start;
}

.novos-info-texto{
  min-width:0;
}

.novos-info-texto h3{
  margin:0 0 10px;
  font-size:22px;
  line-height:1.15;
  font-weight:700;
  color:#14213d;
}

.novos-info-texto p{
  margin:0;
  font-size:16px;
  line-height:1.48;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:6;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
}

.novos-info-mascote{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  font-size:84px;
  line-height:1;
}

.novos-subtitulo{
  margin:0;
  font-size:18px;
  line-height:1.1;
  color:#14213d;
  font-weight:700;
  text-transform:uppercase;
}

.novos-grid-nove{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
}

.novos-online-shell .game-card{
  height:100%;
}

.novos-online-shell .game-card > a,
.novos-online-shell .novos-card-link{
  display:grid;
  grid-template-rows:1fr 34px;
  height:100%;
}

.novos-online-shell .game-caption{
  background:var(--card);
  color:#fff;
  height:34px;
  min-height:34px;
  max-height:34px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:10px;
  overflow:hidden;
}

.novos-online-shell .game-caption strong{
  margin:0;
  font-size:12px;
  line-height:1;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1 1 auto;
  min-width:0;
}

.novos-online-shell .game-meta{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  min-width:0;
  margin:0;
}

.novos-online-shell .game-category,
.novos-online-shell .game-plays{
  font-size:12px;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.novos-online-shell .game-category{
  font-weight:700;
  max-width:90px;
}

.novos-online-shell .game-plays{
  text-align:right;
  max-width:96px;
}

@media (max-width: 1100px){
  .novos-online-pai{
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px){
  .novos-info-topo{
    grid-template-columns:1fr;
  }

  .novos-info-mascote{
    justify-content:flex-start;
    font-size:72px;
  }

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

@media (max-width: 560px){
  .novos-online-shell{
    padding:16px;
  }

  .novos-grid-duplo,
  .novos-grid-nove{
    grid-template-columns:1fr;
  }
}



/* ajuste fino para alinhar os 2 cards inferiores com a base da coluna direita */
#novosOnlineMainCard{
  flex:1 1 auto;
}

#novosOnlineBottomGrid{
  flex:0 0 auto;
}

.novos-grid-duplo .game-card,
.novos-grid-duplo .novos-card-link{
  height:100%;
}


.game-preview {
  overflow: hidden;
  min-height: 420px;
}

.game-preview-cover,
.game-preview-overlay {
  transition: opacity .28s ease, visibility .28s ease, transform .28s ease, filter .28s ease;
}

.game-preview.is-launching .game-preview-cover {
  opacity: .88;
  filter: blur(2px) brightness(.7);
  transform: scale(1.02);
}

.game-preview.is-launching .game-preview-overlay {
  opacity: 1;
  visibility: visible;
  background: linear-gradient(to top, rgba(0,0,0,.48), rgba(0,0,0,.18));
}

.game-preview.started .game-preview-cover,
.game-preview.started .game-preview-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-preview .play-button {
  gap: 12px;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}

.game-preview.is-launching .play-button,
.game-preview.started .play-button {
  animation: none !important;
}

.game-preview.is-launching .play-button {
  min-width: 250px;
  cursor: default;
  box-shadow: 0 18px 38px rgba(0,0,0,.30);
  filter: saturate(.95);
}

.play-spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.42);
  border-top-color: #fff;
  animation: playSpin .8s linear infinite;
}

@keyframes playSpin {
  to { transform: rotate(360deg); }
}

.emulator-loading {
  display: grid;
  place-items: center;
}

.emulator-loading-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(0,0,0,.32);
  color: #fff;
  font-weight: 700;
}

.game-preview.started #game-player-container {
  position: relative;
  z-index: 3;
}


/* CONTAINERS PAI DA HOME */
.home-page > .block:not(.novos-online-section):not(#categoryRowsSection) {
  background: rgba(255, 247, 239, 0.64);
  border: 1px solid rgba(164, 90, 9, 0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(91, 54, 17, 0.06);
}

.home-page > .block:not(.novos-online-section):not(#categoryRowsSection) > .block-title {
  margin-bottom: 18px;
}

.home-page > #categoryRowsSection {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.home-page #categoryRows {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.home-page .category-section {
  margin-top: 0;
  background: rgba(255, 247, 239, 0.64);
  border: 1px solid rgba(164, 90, 9, 0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(91, 54, 17, 0.06);
}

.home-page .category-section .category-head {
  margin-bottom: 18px;
}

@media (max-width: 560px) {
  .home-page > .block:not(.novos-online-section):not(#categoryRowsSection),
  .home-page .category-section {
    padding: 16px;
  }

  .home-page #categoryRows {
    gap: 16px;
  }
}


.game-preview{
  isolation: isolate;
  touch-action: manipulation;
}

.game-preview-overlay{
  pointer-events: none;
}

.game-preview-overlay .play-button{
  pointer-events: auto;
}

.game-preview-cover,
.game-preview-overlay,
#game-player-container,
.game-frame-shell,
.emulator-player-shell{
  width: 100%;
}

.game-frame-shell iframe,
#game-player-container iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

@media (max-width: 720px){
  .game-preview .play-button{
    animation-duration: .8s;
  }
}


/* CORRECAO: remover respiro entre thumb e faixa laranja nos cards da direita */
.novos-online-shell .game-card{
  display:flex;
  flex-direction:column;
  gap:0;
}

.novos-online-shell .game-card > a,
.novos-online-shell .novos-card-link{
  display:flex;
  flex-direction:column;
  height:100%;
  gap:0;
}

.novos-online-shell .game-thumb{
  flex:1 1 auto;
  min-height:0;
  height:100%;
  aspect-ratio:auto;
  margin:0;
}

.novos-grid-duplo .game-thumb,
.novos-grid-nove .game-thumb{
  aspect-ratio:auto;
  height:100%;
}

.novos-online-shell .game-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

.novos-online-shell .game-caption{
  flex:0 0 34px;
  margin:0;
}



/* AJUSTE DO MODAL DO PLAYER SEM AFETAR CATEGORIAS */
.game-preview {
  position: relative;
  isolation: isolate;
}

.game-preview #game-player-container[hidden] {
  display: none !important;
}

.game-preview #game-player-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.game-preview-cover {
  z-index: 2;
}

.game-preview-overlay {
  z-index: 3;
  pointer-events: auto;
}

.game-preview.is-launching .game-preview-overlay {
  pointer-events: none;
}

.game-preview.is-launching .play-button {
  opacity: 0;
  transform: scale(0.96);
}

.game-preview.started .game-preview-cover,
.game-preview.started .game-preview-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* CORRECAO CIRURGICA DO MODAL DO PLAYER */
.game-preview.preview-dismissed .game-preview-cover,
.game-preview.preview-dismissed .game-preview-overlay,
.game-preview.is-launching .game-preview-cover,
.game-preview.is-launching .game-preview-overlay {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.game-preview.preview-dismissed #game-player-container,
.game-preview.is-launching #game-player-container,
.game-preview.started #game-player-container {
  position: relative;
  z-index: 5;
}


/* ==========================================================
   MOBILE FIRST — JOGOS NA WEB
   Revisão 2026-08-02
   Mantém desktop e lógica dos jogos intactos.
   ========================================================== */

@media (max-width: 720px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100% - 28px);
    max-width: none;
  }

  /* Cabeçalho compacto */
  .header-inner {
    min-height: auto;
    padding: 12px 0 14px;
    gap: 10px;
    align-items: center;
  }

  .logo-wrap {
    justify-content: center;
    width: 100%;
  }

  .logo-image {
    width: auto;
    max-width: min(280px, 78vw);
    height: 52px;
  }

  .header-tools {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .header-select,
  .header-search input,
  .header-search button {
    height: 46px;
  }

  .header-select {
    width: 100%;
    min-width: 0;
    padding: 0 34px 0 12px;
    border-radius: 9px;
    font-size: 15px;
    text-overflow: ellipsis;
  }

  .header-search {
    min-width: 0;
    width: 100%;
  }

  .header-search input {
    width: 100%;
    min-width: 0;
    padding-left: 12px;
    font-size: 15px;
  }

  .header-search button {
    flex: 0 0 44px;
    padding: 0;
    font-size: 20px;
  }

  /* Conteúdo mais denso */
  .home-page,
  .game-page,
  .category-page .game-page {
    padding: 16px 0 30px;
  }

  .block {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 16px;
  }

  .block-title {
    margin-bottom: 12px;
    font-size: clamp(20px, 5.7vw, 25px);
    line-height: 1.05;
  }

  /* Destaques: 1 grande + cards em 2 colunas */
  .featured-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "main main"
      "side1 side2"
      "side3 side4"
      "bottom1 bottom2"
      "bottom3 bottom4";
    gap: 10px;
  }

  .featured-main {
    min-height: 0;
  }

  .featured-main .featured-thumb {
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .featured-side-card .side-thumb {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .featured-caption {
    min-height: 38px;
    padding: 8px 10px;
  }

  .featured-caption strong {
    font-size: 13px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }

  .hover-badge {
    padding: 7px 10px;
    font-size: 12px;
  }

  /* Grades gerais sempre em duas colunas no telefone */
  .game-grid,
  .game-grid.small-cards,
  .related-grid,
  .category-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-card {
    border-radius: 10px;
  }

  .game-thumb {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .game-caption {
    min-height: 42px;
    padding: 7px 8px;
    gap: 5px;
  }

  .game-caption strong {
    font-size: 12px;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow: hidden;
  }

  .game-meta {
    gap: 4px;
  }

  .game-category,
  .game-plays {
    font-size: 10px;
  }

  /* Linhas de categorias */
  .category-section {
    margin-bottom: 20px;
  }

  .category-head {
    margin-bottom: 10px;
  }

  .category-head h3 {
    font-size: 20px;
  }

  .view-all {
    font-size: 13px;
  }

  /* Bloco Novos Jogos Online */
  .novos-online-shell {
    padding: 14px;
    border-radius: 16px;
  }

  .novos-online-pai {
    gap: 14px;
  }

  .novos-info-topo {
    grid-template-columns: 1fr 54px;
    gap: 8px;
  }

  .novos-info-mascote {
    justify-content: center;
    font-size: 48px;
  }

  .novos-info-texto h3 {
    font-size: 20px;
  }

  .novos-info-texto p {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }

  .novos-grid-duplo,
  .novos-grid-nove {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .novos-online-shell .game-caption {
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    padding: 0 8px;
  }

  .novos-online-shell .game-caption strong {
    font-size: 11px;
  }

  .novos-online-shell .game-category,
  .novos-online-shell .game-plays {
    font-size: 9px;
  }

  /* Página individual do jogo */
  .game-hero,
  .game-hero-enhanced {
    gap: 14px;
  }

  .game-hero-cover {
    min-height: 230px;
    border-radius: 14px;
  }

  .game-hero-overlay {
    padding: 16px;
  }

  .game-hero-title {
    font-size: clamp(25px, 7vw, 32px);
  }

  .game-hero-description {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .game-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .game-stat-card {
    padding: 10px 8px;
  }

  .game-side,
  .game-content-box,
  .play-section,
  .related-section {
    padding: 14px;
    border-radius: 15px;
  }

  .game-side-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .play-area {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: 12px;
  }

  .play-area.dos-player-preview {
    height: min(70vh, 610px);
    min-height: 430px;
  }

  .game-preview .play-button {
    min-width: 150px;
    min-height: 46px;
    font-size: 15px;
  }

  .game-extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Rodapé menos alto */
  .footer-top-band-inner,
  .footer-main,
  .footer-bottom {
    padding-left: 0;
    padding-right: 0;
  }

  .footer-main {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer-col p,
  .footer-copy {
    font-size: 14px;
    line-height: 1.5;
  }

  .footer-mascot {
    display: none;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 20px);
  }

  .header-inner {
    padding-top: 9px;
  }

  .logo-image {
    height: 46px;
    max-width: 76vw;
  }

  .header-tools {
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.3fr);
    gap: 6px;
  }

  .header-select,
  .header-search input,
  .header-search button {
    height: 43px;
  }

  .header-select,
  .header-search input {
    font-size: 14px;
  }

  .block {
    padding: 12px;
    margin-bottom: 16px;
  }

  .featured-layout,
  .game-grid,
  .game-grid.small-cards,
  .related-grid,
  .category-games,
  .novos-grid-duplo,
  .novos-grid-nove {
    gap: 8px;
  }

  .featured-main .featured-thumb {
    aspect-ratio: 16 / 10.5;
  }

  .featured-side-card .side-thumb,
  .game-thumb {
    aspect-ratio: 1 / 1;
  }

  .featured-caption {
    min-height: 36px;
    padding: 7px 8px;
  }

  .featured-caption strong {
    font-size: 12px;
  }

  .game-caption {
    min-height: 40px;
    padding: 6px 7px;
  }

  .game-caption strong {
    font-size: 11px;
  }

  /* Em telas muito estreitas, priorizar o título */
  .game-meta {
    display: none;
  }

  .category-head h3 {
    font-size: 18px;
  }

  .play-area.dos-player-preview {
    height: 64vh;
    min-height: 390px;
  }
}

@media (max-width: 340px) {
  .header-tools {
    grid-template-columns: 1fr;
  }

  .game-grid,
  .game-grid.small-cards,
  .related-grid,
  .category-games,
  .novos-grid-duplo,
  .novos-grid-nove {
    grid-template-columns: 1fr;
  }

  .featured-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side1"
      "side2"
      "side3"
      "side4"
      "bottom1"
      "bottom2"
      "bottom3"
      "bottom4";
  }

  .featured-side-card .side-thumb,
  .game-thumb {
    aspect-ratio: 16 / 9;
  }
}

/* Melhor suporte a toque */
@media (hover: none) and (pointer: coarse) {
  a,
  button,
  select,
  input {
    -webkit-tap-highlight-color: transparent;
  }

  .game-card,
  .featured-main,
  .featured-side-card {
    transition: transform .15s ease;
  }

  .game-card:active,
  .featured-main:active,
  .featured-side-card:active {
    transform: scale(.985);
  }

  .media::after {
    display: none;
  }
}


/* Correção mobile do botão Jogar agora */
.mobile-play-hint{
  display:none;
}

@media (max-width:720px){
  .game-preview{
    min-height:360px;
  }

  .game-preview-cover::after{
    background:linear-gradient(to top, rgba(0,0,0,.70), rgba(0,0,0,.12) 55%, rgba(0,0,0,.12));
  }

  .game-preview-overlay{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    padding:18px;
  }

  .game-preview .play-button{
    display:inline-flex !important;
    min-width:190px;
    min-height:52px;
    padding:0 24px;
    opacity:1;
    visibility:visible;
    font-size:17px;
    background:#ef291f;
    box-shadow:0 10px 24px rgba(0,0,0,.35);
  }

  .play-button-icon{
    font-size:18px;
  }

  .mobile-play-hint{
    display:block;
    color:#fff;
    font-size:12px;
    font-weight:700;
    text-shadow:0 2px 6px rgba(0,0,0,.8);
  }

  .game-preview.started,
  .game-preview.preview-dismissed{
    height:65vh;
    min-height:440px;
  }

  .game-preview.started #game-player-container,
  .game-preview.preview-dismissed #game-player-container{
    height:100%;
  }
}


/* Player mobile priorizando modo vertical */
@media (max-width:720px) and (orientation:portrait){
  .game-preview.started,
  .game-preview.preview-dismissed{
    height:72vh;
    min-height:540px;
  }

  .game-preview.started #game-player-container,
  .game-preview.preview-dismissed #game-player-container{
    height:100%;
  }
}


/* Leia mais da descrição do jogo */
.game-description-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:7px 0 14px;
  padding:0;
  border:0;
  background:transparent;
  color:#a34a00;
  font:700 14px/1.3 inherit;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}

.game-description-toggle:hover{
  color:#d45f00;
}

.game-description-toggle:focus-visible{
  outline:2px solid #d45f00;
  outline-offset:4px;
  border-radius:4px;
}

.game-side-description{
  transition:max-height .25s ease;
}

@media (max-width:720px){
  .game-description-toggle{
    min-height:36px;
    margin-top:4px;
    font-size:15px;
  }
}


/* ==========================================================
   DESCRIÇÃO ANIMADA — LEIA MAIS / MOSTRAR MENOS
   ========================================================== */
.game-description-expandable{
  position:relative;
  overflow:hidden;
  max-height:520px;
  opacity:1;
  transition:
    max-height .48s cubic-bezier(.22,.61,.36,1),
    opacity .28s ease,
    transform .38s ease;
  transform:translateY(0);
}

.game-description-expandable.is-collapsed{
  max-height:4.9em;
}

.game-description-expandable.is-collapsed::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2.2em;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(255,247,239,0), rgba(255,247,239,1) 78%);
}

.game-description-expandable.is-expanded{
  max-height:520px;
  animation:descriptionDrop .48s cubic-bezier(.22,.61,.36,1);
}

@keyframes descriptionDrop{
  0%{
    opacity:.76;
    transform:translateY(-8px);
  }
  100%{
    opacity:1;
    transform:translateY(0);
  }
}

.game-side-description{
  margin-bottom:0;
}

.game-description-toggle-animated{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:122px;
  min-height:34px;
  margin:9px 0 14px;
  padding:6px 16px;
  border:1px solid rgba(60,60,60,.24);
  border-radius:999px;
  background:rgba(255,255,255,.58);
  color:#2b241f;
  font:700 13px/1.2 inherit;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(70,45,25,.08);
  transition:
    transform .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.game-description-toggle-animated:hover{
  background:#fff;
  transform:translateY(-1px);
  box-shadow:0 7px 16px rgba(70,45,25,.13);
}

.game-description-toggle-animated:active{
  transform:translateY(1px);
}

.game-description-toggle-animated .toggle-arrow{
  display:inline-block;
  font-size:18px;
  line-height:1;
  transition:transform .38s cubic-bezier(.22,.61,.36,1);
}

.game-description-toggle-animated[aria-expanded="true"] .toggle-arrow{
  transform:rotate(180deg) translateY(-1px);
}

.game-description-toggle-animated:focus-visible{
  outline:3px solid rgba(255,122,0,.32);
  outline-offset:3px;
}

@media (max-width:720px){
  .game-description-expandable.is-collapsed{
    max-height:5.1em;
  }

  .game-description-toggle-animated{
    min-height:38px;
    font-size:14px;
  }
}

@media (prefers-reduced-motion:reduce){
  .game-description-expandable,
  .game-description-toggle-animated,
  .game-description-toggle-animated .toggle-arrow{
    transition:none !important;
    animation:none !important;
  }
}


/* Leia mais em formato de texto, elegante e discreto */
.game-description-toggle-text{
  display:inline;
  min-width:0;
  min-height:0;
  margin:0 0 12px 6px;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  color:#9a4f18;
  font:700 13px/1.35 inherit;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  transition:color .18s ease, opacity .18s ease;
}

.game-description-toggle-text:hover{
  color:#d16618;
  background:none;
  box-shadow:none;
  transform:none;
}

.game-description-toggle-text:active{
  transform:none;
  opacity:.72;
}

.game-description-toggle-text::after{
  content:"›";
  display:inline-block;
  margin-left:4px;
  transition:transform .28s ease;
}

.game-description-toggle-text[aria-expanded="true"]::after{
  transform:rotate(90deg);
}

.game-description-toggle-text:focus-visible{
  outline:1px dashed #b55e20;
  outline-offset:3px;
}

@media (max-width:720px){
  .game-description-toggle-text{
    min-height:0;
    margin-left:5px;
    font-size:13px;
  }
}


/* ==========================================================
   LEIA MAIS — EFEITO SUTIL COMO NO VÍDEO
   ========================================================== */
.game-description-expandable{
  overflow:hidden;
  transition:height .38s cubic-bezier(.22,.61,.36,1);
}

.game-description-expandable.is-collapsed{
  max-height:4.85em;
}

.game-description-expandable.is-collapsed::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1.5em;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(255,247,239,0), rgba(255,247,239,1) 88%);
}

.game-description-toggle-inline{
  display:inline;
  appearance:none;
  -webkit-appearance:none;
  margin:0 0 12px 0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#a5541c;
  font:600 13px/1.45 inherit;
  cursor:pointer;
  text-decoration:none;
  transition:color .18s ease, opacity .18s ease;
}

.game-description-toggle-inline:hover{
  color:#d06a20;
  text-decoration:underline;
  text-underline-offset:3px;
}

.game-description-toggle-inline:active{
  opacity:.68;
}

.game-description-toggle-inline:focus-visible{
  outline:1px dashed #b45d20;
  outline-offset:3px;
}

.game-description-toggle-inline::before,
.game-description-toggle-inline::after{
  content:none !important;
}

.game-description-toggle-inline .toggle-label{
  display:inline;
}

@media (max-width:720px){
  .game-description-expandable.is-collapsed{
    max-height:5.1em;
  }

  .game-description-toggle-inline{
    font-size:13px;
  }
}

@media (prefers-reduced-motion:reduce){
  .game-description-expandable{
    transition:none !important;
  }
}


/* ==========================================================
   CORREÇÃO DEFINITIVA DA DESCRIÇÃO EXPANSÍVEL
   O recorte passa a ser controlado somente pelo contêiner externo.
   ========================================================== */
.game-description-expandable .game-side-description{
  display:block !important;
  -webkit-box-orient:initial !important;
  -webkit-line-clamp:unset !important;
  line-clamp:unset !important;
  overflow:visible !important;
  min-height:0 !important;
  max-height:none !important;
  white-space:normal !important;
  text-overflow:clip !important;
}

.game-description-expandable.is-expanded{
  max-height:none !important;
}

.game-description-expandable.is-expanded::after{
  display:none !important;
}

/* O Leia mais continua sendo apenas texto, sem aparência de botão. */
.game-description-toggle-inline{
  display:inline !important;
  width:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:2px 0 12px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#9d501b !important;
  font-size:13px !important;
  font-weight:600 !important;
  line-height:1.4 !important;
}


/* Nova logo HD: preserva o tamanho visual da logo anterior */
.logo-image{
  width:auto;
  height:60px;
  object-fit:contain;
}

.footer-logo-image{
  object-fit:contain;
}

@media (max-width:720px){
  .logo-image{
    width:auto;
    height:52px;
    max-width:min(280px, 78vw);
  }
}

@media (max-width:420px){
  .logo-image{
    height:46px;
    max-width:76vw;
  }
}


/* ==========================================================
   LEIA MAIS PREMIUM — compacto e elegante
   ========================================================== */
.game-description-toggle-inline{
  position:relative;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:auto !important;
  min-width:104px !important;
  min-height:34px !important;
  margin:8px 0 14px !important;
  padding:7px 15px !important;
  border:1px solid rgba(171,83,20,.32) !important;
  border-radius:999px !important;
  background:
    linear-gradient(#fff8f1,#fff8f1) padding-box,
    linear-gradient(110deg,#f5a15d,#a94f16,#ffd0a8) border-box !important;
  color:#8f430f !important;
  box-shadow:
    0 5px 14px rgba(110,57,22,.10),
    inset 0 1px 0 rgba(255,255,255,.9) !important;
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:.01em;
  line-height:1 !important;
  text-decoration:none !important;
  overflow:hidden;
  cursor:pointer;
  transition:
    transform .18s ease,
    box-shadow .22s ease,
    color .18s ease !important;
}

.game-description-toggle-inline::before{
  content:"";
  position:absolute;
  top:-70%;
  left:-45%;
  width:32%;
  height:240%;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.72),
    transparent
  );
  transform:rotate(20deg);
  transition:left .55s ease;
}

.game-description-toggle-inline::after{
  content:"›" !important;
  position:relative;
  display:inline-block;
  margin-left:7px;
  font-size:17px;
  line-height:1;
  transition:transform .28s ease;
}

.game-description-toggle-inline:hover{
  color:#bb5918 !important;
  transform:translateY(-1px);
  box-shadow:
    0 8px 20px rgba(110,57,22,.16),
    inset 0 1px 0 rgba(255,255,255,.95) !important;
}

.game-description-toggle-inline:hover::before{
  left:120%;
}

.game-description-toggle-inline:active{
  transform:translateY(1px) scale(.985);
}

.game-description-toggle-inline[aria-expanded="true"]::after{
  transform:rotate(90deg);
}

.game-description-toggle-inline:focus-visible{
  outline:3px solid rgba(235,126,48,.25);
  outline-offset:3px;
}

/* Logo premium: mesma área visual do cabeçalho antigo */
.logo-wrap{
  display:flex;
  align-items:center;
  overflow:visible;
}

.logo-image{
  display:block;
  width:230px !important;
  max-width:230px !important;
  height:58px !important;
  max-height:58px !important;
  object-fit:contain !important;
  object-position:left center;
}

.footer-logo-image{
  width:min(310px,100%) !important;
  height:auto !important;
  object-fit:contain !important;
}

@media (max-width:720px){
  .logo-image{
    width:250px !important;
    max-width:72vw !important;
    height:52px !important;
    max-height:52px !important;
    object-position:center;
  }

  .game-description-toggle-inline{
    min-height:36px !important;
    padding:8px 16px !important;
  }
}

@media (max-width:420px){
  .logo-image{
    width:230px !important;
    max-width:74vw !important;
    height:47px !important;
    max-height:47px !important;
  }
}


/* Identidade Jogos na Web e mascote/favicone */
.footer-mascot img{width:190px;height:190px;object-fit:contain;display:block;}
@media(max-width:720px){.footer-mascot img{width:140px;height:140px;}}

.game-description-expandable .game-side-description{
  display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;
  overflow:visible!important;max-height:none!important;white-space:normal!important;text-overflow:clip!important
}
.game-description-expandable.is-expanded{max-height:none!important}
.game-description-expandable.is-expanded::after{display:none!important}
.game-description-toggle-inline{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:auto!important;min-width:106px!important;min-height:34px!important;
  margin:8px 0 14px!important;padding:7px 15px!important;
  border:1px solid rgba(167,78,17,.3)!important;border-radius:999px!important;
  background:linear-gradient(180deg,#fffdf9,#fff3e8)!important;color:#99470f!important;
  box-shadow:0 5px 14px rgba(92,45,15,.11)!important;
  font-size:13px!important;font-weight:700!important;text-decoration:none!important;
  cursor:pointer;transition:.18s ease!important
}
.game-description-toggle-inline::after{
  content:"›"!important;display:inline-block;margin-left:7px;font-size:17px;transition:transform .28s ease
}
.game-description-toggle-inline:hover{color:#c25c16!important;transform:translateY(-1px)}
.game-description-toggle-inline[aria-expanded="true"]::after{transform:rotate(90deg)}


/* Logo 4K oficial */
.logo-image,
.site-logo,
.header-logo{
  display:block;
  width:auto;
  height:58px;
  max-width:260px;
  object-fit:contain;
  object-position:left center;
}

.footer-logo-image{
  display:block;
  width:auto;
  height:62px;
  max-width:300px;
  object-fit:contain;
}

@media (max-width:720px){
  .logo-image,
  .site-logo,
  .header-logo{
    height:52px;
    max-width:min(280px,76vw);
    object-position:center;
  }

  .footer-logo-image{
    height:54px;
    max-width:76vw;
  }
}
