:root {
  --bg: #08090d;
  --bg-soft: #111318;
  --surface: #161922;
  --surface-2: #1e2330;
  --text: #f7f3e8;
  --muted: #c7c1b2;
  --line: rgba(240, 202, 99, 0.22);
  --gold: #f0c65a;
  --gold-dark: #8f6218;
  --teal: #32c6b1;
  --rose: #e76f86;
  --focus: #8fd8ff;
  --radius: 8px;
  --container: 1180px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(50, 198, 177, 0.14), transparent 34rem),
    linear-gradient(180deg, #090a0f 0%, #111318 46%, #08090d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

a:hover,
a:focus {
  color: #ffe397;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  background: var(--gold);
  color: #141006;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 9, 13, 0.92);
  border-bottom: 1px solid rgba(240, 202, 99, 0.16);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.site-main > .hero,
.site-main > .page-hero,
.homepage-content,
.page-shell,
.post-list {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header__inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-branding,
.brand-link,
.custom-logo-link {
  flex: 0 0 auto;
  min-width: 0;
  max-width: min(48vw, 220px);
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo img,
.footer-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 178px;
  max-height: 54px;
  object-fit: contain;
}

.footer-brand img {
  max-width: 148px;
  max-height: 46px;
}

.brand-logo--text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.brand-logo--text span {
  font-size: 1.55rem;
  line-height: 1;
}

.brand-logo--text small {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
}

.primary-navigation ul,
.footer-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.2rem;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  content: "";
  transition: transform 180ms ease;
}

.menu-toggle__bar::before {
  transform: translateY(-7px);
}

.menu-toggle__bar::after {
  transform: translateY(5px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 2rem;
  align-items: center;
  padding: 4rem 0 2rem;
}

.hero__content {
  min-width: 0;
}

.hero__eyebrow,
.page-hero__eyebrow,
.section-kicker {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: 3.1rem;
}

h2 {
  font-size: 2.05rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

.hero__summary {
  max-width: 620px;
  color: #e5dfcf;
  font-size: 1.13rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin: 1.5rem 0 1rem;
}

.button,
.wp-block-button__link,
.floating-entry__button,
button,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--gold);
  color: #141006;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.floating-entry__button:hover,
.floating-entry__button:focus,
button:hover,
.search-form button:hover {
  background: #ffe08a;
  color: #100c03;
  box-shadow: 0 0 0 4px rgba(240, 198, 90, 0.16);
}

.hero__text-link {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.hero__note {
  max-width: 620px;
  color: #bdb5a5;
  font-size: 0.94rem;
}

.hero__media {
  margin: 0;
  position: relative;
}

.hero__media img,
.entry-content .wp-block-image img,
.content-image img,
.image-led-card img,
.page-visual img {
  display: block;
  width: 100%;
  border: 1px solid rgba(240, 202, 99, 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
}

.entry-content .games-intro-visual {
  max-width: 820px;
}

.entry-content .games-intro-visual img {
  aspect-ratio: 16 / 9;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
}

.editorial-trust {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid rgba(240, 202, 99, 0.18);
  border-radius: var(--radius);
  background: rgba(22, 25, 34, 0.88);
  color: var(--muted);
  font-size: 0.92rem;
}

.editorial-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.homepage-content,
.page-shell,
.post-list {
  padding-bottom: 4rem;
}

.page-main {
  padding-top: 2.5rem;
}

.page-hero {
  padding: 2.2rem 0 1.4rem;
}

.page-hero h1 {
  max-width: 900px;
}

.entry-content {
  color: #eee6d5;
}

.entry-content > * {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .wp-block-group.alignwide,
.entry-content > .wp-block-columns,
.entry-content > .section-band,
.entry-content > .image-led-section {
  max-width: 1120px;
}

.entry-content h2 {
  margin-top: 3rem;
}

.entry-content h3 {
  margin-top: 1.6rem;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
}

.section-band,
.image-led-section,
.trust-strip,
.review-section,
.faq-section,
.responsible-panel {
  margin-top: 2rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(240, 202, 99, 0.15);
  border-radius: var(--radius);
  background: rgba(17, 19, 24, 0.82);
}

.section-band--subtle {
  background: rgba(30, 35, 48, 0.72);
}

.feature-grid,
.game-grid,
.steps-grid,
.review-grid,
.sitemap-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.feature-card,
.game-card,
.step-card,
.review-card,
.sitemap-card,
.info-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(240, 202, 99, 0.14);
  border-radius: var(--radius);
  background: rgba(30, 35, 48, 0.78);
}

.feature-card h3,
.game-card h3,
.step-card h3,
.review-card h3,
.sitemap-card h3,
.info-card h3 {
  margin-top: 0;
  font-size: 1.12rem;
}

.feature-card img,
.game-card img,
.step-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  display: block;
}

.image-led-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.4rem;
  align-items: center;
}

.image-led-card + .image-led-card {
  margin-top: 1.4rem;
}

.image-led-card:nth-child(even) .image-led-card__media {
  order: -1;
}

.image-led-card__body > :first-child,
.image-led-card__media > :first-child {
  margin-top: 0;
}

.image-led-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.toc-list {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.2rem;
}

.toc-list li {
  break-inside: avoid;
  margin-bottom: 0.35rem;
}

.faq-section details,
.faq-list details {
  padding: 1rem;
  margin: 0 0 0.8rem;
  border: 1px solid rgba(240, 202, 99, 0.14);
  border-radius: var(--radius);
  background: rgba(30, 35, 48, 0.78);
}

.faq-section summary,
.faq-list summary {
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.rating {
  color: var(--gold);
  font-weight: 900;
}

.page-shell {
  max-width: 980px;
}

.post-card {
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 680px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d0f15;
  color: var(--text);
}

.site-footer {
  padding: 3rem 0 5.4rem;
  border-top: 1px solid rgba(240, 202, 99, 0.16);
  background: #050609;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-email a {
  color: var(--accent);
  text-decoration: none;
}

.footer-email a:hover,
.footer-email a:focus {
  color: var(--text);
}

.footer-navigation ul {
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.footer-navigation a:hover,
.footer-navigation a:focus {
  color: var(--text);
}

.floating-entry {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 90;
  width: min(420px, calc(100% - 32px));
  padding: 0.55rem;
  border: 1px solid rgba(240, 202, 99, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 9, 13, 0.9);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, 150%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-entry.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-entry__button {
  width: 100%;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.6rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .feature-grid,
  .game-grid,
  .steps-grid,
  .review-grid,
  .sitemap-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-led-card {
    grid-template-columns: 1fr;
  }

  .image-led-card:nth-child(even) .image-led-card__media {
    order: 0;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .site-footer__inner,
  .site-main > .hero,
  .site-main > .page-hero,
  .homepage-content,
  .page-shell,
  .post-list,
  .editorial-trust {
    width: min(100% - 24px, var(--container));
  }

  .site-branding,
  .brand-link,
  .custom-logo-link {
    max-width: min(58vw, 160px);
  }

  .custom-logo,
  .custom-logo-link img,
  .site-branding img,
  .brand-logo img {
    max-width: 138px;
    max-height: 42px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-navigation {
    position: fixed;
    inset: 74px 0 auto 0;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    padding: 1rem;
    background: rgba(8, 9, 13, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .menu-open .primary-navigation {
    transform: translateY(0);
  }

  .primary-navigation ul {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .primary-navigation a {
    min-height: 46px;
    padding: 0.65rem 0.25rem;
    font-size: 1rem;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

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

  .button,
  .wp-block-button__link {
    width: 100%;
  }

  .feature-grid,
  .game-grid,
  .steps-grid,
  .review-grid,
  .sitemap-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .toc-list {
    columns: 1;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-navigation ul {
    justify-content: flex-start;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
