/* PlataBet Casino Colombia — Café Esmeralda */
:root {
  --bg: #120c09;
  --bg-deep: #0a0705;
  --header: #1a110d;
  --header-2: #241810;
  --surface: #221610;
  --surface-2: #2c1c14;
  --border: #4a3424;
  --text: #f3ead8;
  --text-muted: #c4b49a;
  --gold: #e0b44a;
  --gold-soft: #f0d078;
  --gold-deep: #b8862a;
  --emerald: #1a8a5c;
  --emerald-deep: #0d5c3d;
  --terracotta: #d4652f;
  --cream: #f7efe0;
  --ink: #140e0a;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --max: 1140px;
  --font: "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 45% at 8% -8%, rgba(224, 180, 74, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 95% 8%, rgba(26, 138, 92, 0.14), transparent 48%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--cream);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 200;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, #1e140f 0%, var(--header) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  background: none;
  padding: 0;
  box-shadow: none;
}

.logo img {
  display: block;
  height: 54px;
  width: auto;
  max-height: 54px;
  max-width: min(220px, 36vw);
  object-fit: contain;
  image-rendering: auto;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
}

.site-nav {
  margin-left: auto;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 0.35rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(224, 180, 74, 0.28);
  white-space: nowrap;
}

.header-cta:hover {
  color: var(--ink);
  filter: brightness(1.06);
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.site-nav .has-submenu {
  position: relative;
}

.site-nav .nav-parent {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav .submenu-toggle {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--gold-soft);
  border-radius: 6px;
  padding: 0.25rem 0.45rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.site-nav .submenu-toggle:hover {
  border-color: var(--border);
  background: var(--header-2);
}

.site-nav .submenu {
  display: block;
  flex-direction: column;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  min-width: 11.5rem;
  background: var(--header);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-nav .submenu a {
  display: block;
  font-size: 0.9rem;
  padding: 0.4rem 0.7rem;
  border-bottom: none;
}

@media (min-width: 981px) {
  .site-nav .submenu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 120;
  }

  .site-nav .has-submenu:hover > .submenu,
  .site-nav .has-submenu:focus-within > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav .has-submenu.is-active > .nav-parent > a {
    color: var(--gold);
    border-bottom-color: var(--gold);
  }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.6;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

/* Hero */
.page-hero {
  padding: 1.1rem 0 0.4rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.2;
  color: var(--cream);
  margin: 0 0 0.85rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0 0 1.15rem;
}

.hero-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 40%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 0 0 1.4rem;
  box-shadow: var(--shadow);
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #f0c860 0%, var(--gold-deep) 100%);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(224, 180, 74, 0.25);
}

.btn-primary:hover {
  color: var(--ink);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-secondary:hover {
  background: rgba(224, 180, 74, 0.1);
  color: var(--cream);
}

.btn-emerald {
  background: linear-gradient(180deg, #27a86e 0%, var(--emerald-deep) 100%);
  color: #fff;
}

.btn-emerald:hover {
  color: #fff;
  filter: brightness(1.06);
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 2rem;
  overflow: hidden;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--surface-2);
}

.toc-header h2 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--cream);
}

.toc-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold-soft);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.toc-body {
  display: none;
  padding: 0.75rem 1.1rem 1.1rem;
}

.toc.is-open .toc-body {
  display: block;
}

.toc-body ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.toc-body a {
  color: var(--text);
  text-decoration: none;
}

.toc-body a:hover {
  color: var(--gold);
}

/* Article */
.article {
  padding-bottom: 3rem;
}

.article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--cream);
  margin: 2.3rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(224, 180, 74, 0.28);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.article h3 {
  font-size: 1.16rem;
  color: var(--gold-soft);
  margin: 1.5rem 0 0.55rem;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.article p {
  margin: 0 0 1rem;
}

.article ul,
.article ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.article li {
  margin-bottom: 0.35rem;
}

.article,
.article section,
.clearfix {
  display: flow-root;
}

.article h2 {
  clear: both;
}

.float-media {
  max-width: min(36%, 320px);
  margin: 0.15rem 1.75rem 0.85rem 0;
  float: left;
  shape-outside: margin-box;
  shape-margin: 0.4rem;
}

.float-media.right {
  float: right;
  margin: 0.15rem 0 0.85rem 1.75rem;
  shape-outside: margin-box;
  shape-margin: 0.4rem;
}

.float-media img,
.article .float-media img,
.prose img {
  width: 100%;
  height: 180px;
  max-height: 190px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Short copy beside a float: image matches text height, table/CTA go full width */
.article section:has(> .float-media:not(.right) + p + .table-wrap),
.article section:has(> .float-media:not(.right) + p + .cta-row),
.article section:has(> .float-media:not(.right) + p:last-child) {
  display: grid;
  grid-template-columns: minmax(168px, 32%) minmax(0, 1fr);
  column-gap: 1.75rem;
  align-items: stretch;
}

.article section:has(> .float-media.right + p + .table-wrap),
.article section:has(> .float-media.right + p + .cta-row),
.article section:has(> .float-media.right + p:last-child) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 32%);
  column-gap: 1.75rem;
  align-items: stretch;
}

.article section:has(> .float-media + p + .table-wrap) > h2,
.article section:has(> .float-media + p + .cta-row) > h2,
.article section:has(> .float-media + p:last-child) > h2,
.article section:has(> .float-media + p + .table-wrap) > .table-wrap,
.article section:has(> .float-media + p + .cta-row) > .table-wrap,
.article section:has(> .float-media + p + .table-wrap) > .cta-row,
.article section:has(> .float-media + p + .cta-row) > .cta-row,
.article section:has(> .float-media + p + .table-wrap) > .feature-strip,
.article section:has(> .float-media + p + .cta-row) > .feature-strip,
.article section:has(> .float-media + p + .table-wrap) > .games-showcase,
.article section:has(> .float-media + p + .cta-row) > .games-showcase,
.article section:has(> .float-media + p + .table-wrap) > .pros-cons,
.article section:has(> .float-media + p + .cta-row) > .pros-cons,
.article section:has(> .float-media + p + .table-wrap) > .faq-list,
.article section:has(> .float-media + p + .cta-row) > .faq-list {
  grid-column: 1 / -1;
}

.article section:has(> .float-media:not(.right) + p + .table-wrap) > .float-media,
.article section:has(> .float-media:not(.right) + p + .cta-row) > .float-media,
.article section:has(> .float-media:not(.right) + p:last-child) > .float-media {
  float: none;
  position: relative;
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  shape-outside: none;
  shape-margin: 0;
}

.article section:has(> .float-media.right + p + .table-wrap) > .float-media.right,
.article section:has(> .float-media.right + p + .cta-row) > .float-media.right,
.article section:has(> .float-media.right + p:last-child) > .float-media.right {
  float: none;
  position: relative;
  grid-column: 2;
  grid-row: 2;
  align-self: stretch;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  shape-outside: none;
  shape-margin: 0;
}

.article section:has(> .float-media:not(.right) + p + .table-wrap) > .float-media + p,
.article section:has(> .float-media:not(.right) + p + .cta-row) > .float-media + p,
.article section:has(> .float-media:not(.right) + p:last-child) > .float-media + p {
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 0;
}

.article section:has(> .float-media.right + p + .table-wrap) > .float-media.right + p,
.article section:has(> .float-media.right + p + .cta-row) > .float-media.right + p,
.article section:has(> .float-media.right + p:last-child) > .float-media.right + p {
  grid-column: 1;
  grid-row: 2;
  margin-bottom: 0;
}

.article section:has(> .float-media + p + .table-wrap) > .float-media img,
.article section:has(> .float-media + p + .cta-row) > .float-media img,
.article section:has(> .float-media + p:last-child) > .float-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

/* Two paragraphs beside a float: image spans both, no well above the table */
.article section:has(> .float-media:not(.right) + p + p + .table-wrap),
.article section:has(> .float-media:not(.right) + p + p + .cta-row) {
  display: grid;
  grid-template-columns: minmax(168px, 32%) minmax(0, 1fr);
  column-gap: 1.75rem;
  align-items: stretch;
}

.article section:has(> .float-media.right + p + p + .table-wrap),
.article section:has(> .float-media.right + p + p + .cta-row) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 32%);
  column-gap: 1.75rem;
  align-items: stretch;
}

.article section:has(> .float-media + p + p + .table-wrap) > h2,
.article section:has(> .float-media + p + p + .cta-row) > h2,
.article section:has(> .float-media + p + p + .table-wrap) > .table-wrap,
.article section:has(> .float-media + p + p + .cta-row) > .table-wrap,
.article section:has(> .float-media + p + p + .table-wrap) > .cta-row,
.article section:has(> .float-media + p + p + .cta-row) > .cta-row,
.article section:has(> .float-media + p + p + .cta-row) > .feature-strip {
  grid-column: 1 / -1;
}

.article section:has(> .float-media:not(.right) + p + p + .table-wrap) > .float-media,
.article section:has(> .float-media:not(.right) + p + p + .cta-row) > .float-media {
  float: none;
  position: relative;
  grid-column: 1;
  grid-row: 2 / 4;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  shape-outside: none;
  shape-margin: 0;
}

.article section:has(> .float-media.right + p + p + .table-wrap) > .float-media.right,
.article section:has(> .float-media.right + p + p + .cta-row) > .float-media.right {
  float: none;
  position: relative;
  grid-column: 2;
  grid-row: 2 / 4;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  shape-outside: none;
  shape-margin: 0;
}

.article section:has(> .float-media:not(.right) + p + p + .table-wrap) > .float-media + p,
.article section:has(> .float-media:not(.right) + p + p + .cta-row) > .float-media + p,
.article section:has(> .float-media:not(.right) + p + p + .table-wrap) > .float-media + p + p,
.article section:has(> .float-media:not(.right) + p + p + .cta-row) > .float-media + p + p {
  grid-column: 2;
}

.article section:has(> .float-media.right + p + p + .table-wrap) > .float-media.right + p,
.article section:has(> .float-media.right + p + p + .cta-row) > .float-media.right + p,
.article section:has(> .float-media.right + p + p + .table-wrap) > .float-media.right + p + p,
.article section:has(> .float-media.right + p + p + .cta-row) > .float-media.right + p + p {
  grid-column: 1;
}

.article section:has(> .float-media + p + p + .table-wrap) > .float-media + p + p,
.article section:has(> .float-media + p + p + .cta-row) > .float-media + p + p {
  margin-bottom: 0;
}

.article section:has(> .float-media + p + p + .table-wrap) > .float-media img,
.article section:has(> .float-media + p + p + .cta-row) > .float-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.table-wrap,
.spec,
.ficha,
.article .table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  clear: both;
  overflow-x: auto;
  margin: 1rem 0 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.table-wrap table,
.spec table,
.ficha table,
.article table,
table {
  display: table;
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.cta-row,
.feature-strip,
.games-showcase,
.faq-list,
.pros-cons {
  clear: both;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.2rem 0 1.6rem;
}

.pros-cons > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
}

.pros-cons h3 {
  margin-top: 0;
  border: 0;
  padding: 0;
}

th,
td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-2);
  color: var(--gold-soft);
  font-size: 0.92rem;
}

td {
  background: rgba(34, 22, 16, 0.55);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}

.feature-strip a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.feature-strip a:hover {
  border-color: var(--gold);
  color: var(--text);
}

.feature-strip h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.feature-strip p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Games */
.games-showcase {
  margin: 2.4rem 0;
  padding: 1.4rem;
  background:
    linear-gradient(165deg, rgba(44, 28, 20, 0.92) 0%, rgba(10, 7, 5, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.games-showcase h2 {
  margin-top: 0;
}

.games-category {
  margin-top: 1.6rem;
}

.games-category h3 {
  margin: 0 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

.games-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.game-card {
  margin: 0;
}

.game-card__media {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  cursor: pointer;
}

.game-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.game-card__actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  background: rgba(12, 8, 6, 0.82);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.game-card__media:hover .game-card__actions,
.game-card__media:focus-within .game-card__actions,
.game-card__media.is-active .game-card__actions {
  opacity: 1;
}

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

.game-card__btn {
  display: block;
  width: min(100%, 9.4rem);
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
}

.game-card__btn--demo {
  background: linear-gradient(45deg, #1e4d8c, #3a7fd4);
}

.game-card__btn--play {
  background: linear-gradient(45deg, #9a4b12, var(--gold));
  color: var(--ink);
}

.game-card__name {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  color: var(--cream);
}

/* Author */
.author-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin: 1.2rem 0;
}

.author-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

/* Form */
.contact-form {
  display: grid;
  gap: 0.8rem;
  max-width: 560px;
  margin: 1rem 0;
}

.contact-form label {
  font-weight: 700;
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
}

.form-note {
  color: var(--gold-soft);
  min-height: 1.3em;
}

/* Footer */
.site-footer {
  background: var(--header);
  border-top: 1px solid var(--border);
  padding: 2.4rem 0 1.4rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.footer-brand {
  margin: 0 0 0.7rem;
  background: none;
  padding: 0;
}

.footer-brand img {
  display: block;
  height: 40px;
  width: auto;
  max-height: 40px;
  object-fit: contain;
  image-rendering: auto;
  background: none;
  padding: 0;
  border: none;
  box-shadow: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}

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

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.footer-partners a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-partners img {
  height: 36px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.footer-partners a:hover img {
  opacity: 1;
  filter: brightness(1.2);
}

.footer-partners .age-mark img {
  height: 34px;
  max-width: 40px;
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  line-height: 1.55;
}

.age-badge {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.3rem;
  font-size: 0.8rem;
}

.back-to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--header);
  color: var(--cream);
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin: 0 0 0.65rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--cream);
}

.game-demo {
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: hidden;
}

.game-demo h2 {
  margin-top: 0;
}

.game-demo__frame-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 1.25rem 0 1rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  background: #0d0d0d;
}

@supports (aspect-ratio: 16 / 9) {
  .game-demo__frame-wrap {
    height: auto;
    padding-bottom: 0;
    aspect-ratio: 16 / 9;
    min-height: 480px;
  }
}

.game-demo__frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

.game-demo__note {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

@media (min-width: 980px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
    margin-left: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--header-2);
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 1rem 1rem;
  }

  .nav-toggle {
    margin-left: auto;
  }

  .header-cta {
    margin-left: 0;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0.2rem;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .nav-parent {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav .nav-parent > a {
    flex: 1;
  }

  .site-nav .submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
  }

  .site-nav .submenu {
    display: none;
    position: static;
    margin: 0.15rem 0 0.35rem 0.75rem;
    padding: 0.25rem;
    border: none;
    background: var(--surface);
    box-shadow: none;
  }

  .site-nav .has-submenu.is-open > .submenu {
    display: block;
  }

  .site-nav .submenu-toggle[aria-expanded="true"] {
    background: var(--header-2);
    border-color: var(--border);
  }

  .site-nav .submenu a {
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .feature-strip,
  .footer-grid,
  .author-card,
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .author-card img {
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .article section:has(> .float-media:not(.right) + p + .table-wrap),
  .article section:has(> .float-media:not(.right) + p + .cta-row),
  .article section:has(> .float-media:not(.right) + p:last-child),
  .article section:has(> .float-media.right + p + .table-wrap),
  .article section:has(> .float-media.right + p + .cta-row),
  .article section:has(> .float-media.right + p:last-child),
  .article section:has(> .float-media:not(.right) + p + p + .table-wrap),
  .article section:has(> .float-media:not(.right) + p + p + .cta-row),
  .article section:has(> .float-media.right + p + p + .table-wrap),
  .article section:has(> .float-media.right + p + p + .cta-row) {
    display: block;
    grid-template-columns: none;
    column-gap: 0;
  }

  .float-media,
  .float-media.right,
  .article section:has(> .float-media:not(.right)) > .float-media,
  .article section:has(> .float-media.right) > .float-media.right {
    float: none;
    display: block;
    position: static;
    overflow: visible;
    align-self: auto;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 1rem;
    shape-outside: none;
    shape-margin: 0;
  }

  .float-media img,
  .article .float-media img,
  .prose img,
  .article section:has(> .float-media + p + .table-wrap) > .float-media img,
  .article section:has(> .float-media + p + .cta-row) > .float-media img,
  .article section:has(> .float-media + p:last-child) > .float-media img,
  .article section:has(> .float-media + p + p + .table-wrap) > .float-media img,
  .article section:has(> .float-media + p + p + .cta-row) > .float-media img {
    position: static;
    inset: auto;
    height: 200px;
    max-height: 200px;
  }

  .article section:has(> .float-media:not(.right)) > .float-media + p,
  .article section:has(> .float-media.right) > .float-media + p,
  .article section:has(> .float-media:not(.right)) > .float-media + p + p,
  .article section:has(> .float-media.right) > .float-media + p + p {
    margin-bottom: 1rem;
  }

  .header-cta {
    padding: 0.48rem 0.8rem;
    font-size: 0.84rem;
  }

  .logo img {
    height: 38px;
    max-height: 38px;
    max-width: 148px;
  }

  .hero-banner {
    aspect-ratio: 16 / 9;
  }

  .game-demo {
    padding: 1rem;
  }

  .game-demo__frame-wrap {
    padding-bottom: 75%;
    min-height: 520px;
  }

  @supports (aspect-ratio: 4 / 3) {
    .game-demo__frame-wrap {
      padding-bottom: 0;
      aspect-ratio: 4 / 3;
      min-height: 520px;
    }
  }
}

@media (max-width: 400px) {
  .logo img {
    height: 34px;
    max-height: 34px;
    max-width: 120px;
  }

  .header-cta {
    padding: 0.42rem 0.68rem;
    font-size: 0.8rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .game-card__actions {
    pointer-events: none;
  }

  .game-card__media.is-active .game-card__actions {
    pointer-events: auto;
  }
}
