:root {
  --bg: #0d0d0b;
  --bg-soft: #151511;
  --surface: #1d1c17;
  --surface-2: #242116;
  --text: #f8f5ea;
  --muted: #c7c1ae;
  --line: rgba(248, 211, 113, 0.22);
  --gold: #f4c74b;
  --gold-strong: #ffd76a;
  --teal: #2fb79b;
  --rose: #e66a73;
  --shadow: rgba(0, 0, 0, 0.34);
  --container: 1180px;
  --article: 900px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  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;
  min-width: 320px;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

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

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

.skip-link:focus {
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #0c0c08;
  background: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 11, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

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

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

.brand-name {
  font-size: 1.28rem;
  font-weight: 850;
  color: var(--text);
}

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

.brand-logo img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17140c;
}

.primary-navigation {
  margin-left: auto;
}

.menu,
.footer-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a,
.footer-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 680;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.menu a:hover,
.menu a:focus,
.footer-menu a:hover,
.footer-menu a:focus,
.current-menu-item > a {
  color: var(--text);
  background: rgba(244, 199, 75, 0.12);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #15130d;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.site-main {
  padding: 42px 0 88px;
}

.front-page-main {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

.front-page-content > * {
  width: min(var(--container), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.wp-block-group {
  margin-top: 0;
}

.home-hero {
  width: 100%;
  max-width: none;
  padding: 72px 20px 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(244, 199, 75, 0.08), rgba(13, 13, 11, 0) 34%),
    var(--bg);
}

.home-hero .wp-block-group__inner-container {
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.home-hero .eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 820;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 18px;
  font-size: 3.1rem;
}

h2 {
  margin: 0 0 18px;
  font-size: 2rem;
}

h3 {
  margin: 24px 0 10px;
  font-size: 1.28rem;
}

p {
  margin: 0 0 18px;
}

.home-hero p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.wp-block-button__link,
.entry-button,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--gold);
  color: #17120a;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 38px var(--shadow);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
.entry-button:hover,
.entry-button:focus,
.search-submit:hover,
.search-submit:focus {
  background: var(--gold-strong);
  color: #0d0d0b;
}

.wp-block-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 26px 0;
}

.home-hero .wp-block-image,
.home-hero figure {
  margin: 34px auto 0;
}

.home-hero img,
.image-anchor img,
.large-image img,
.page-featured-image img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.section-band {
  padding: 76px 0;
}

.section-band.is-soft {
  width: 100%;
  max-width: none;
  padding-left: 20px;
  padding-right: 20px;
  background: var(--bg-soft);
}

.section-band.is-soft > .wp-block-group__inner-container {
  width: min(var(--container), 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
}

.quick-grid,
.feature-grid,
.game-grid,
.review-grid,
.step-grid {
  display: grid;
  gap: 18px;
}

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

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

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

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

.info-card,
.game-card,
.review-card,
.step-card,
.notice-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.info-card p,
.game-card p,
.review-card p,
.step-card p,
.notice-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  font-weight: 850;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 34px;
}

.split-panel.reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.split-panel__content {
  min-width: 0;
}

.split-panel__content p,
.article-shell p,
.page-shell__content p {
  color: var(--muted);
}

.split-panel__image img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.payment-methods li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(244, 199, 75, 0.08);
  font-weight: 780;
}

.article-shell {
  width: 100%;
  max-width: none;
  padding: 84px 20px;
  background: #11110e;
}

.article-shell > .wp-block-group__inner-container {
  width: min(var(--article), 100%);
  margin: 0 auto;
}

.article-shell .toc-list {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--surface);
}

.article-shell .toc-list li {
  margin: 6px 0;
}

.faq-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 88px;
}

.faq-shell details,
.page-shell__content details {
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--surface);
}

.faq-shell summary,
.page-shell__content summary {
  padding: 18px 20px;
  color: var(--text);
  font-weight: 820;
  cursor: pointer;
}

.faq-shell details > p,
.page-shell__content details > p {
  padding: 0 20px 20px;
  color: var(--muted);
}

.page-main,
.archive-main {
  padding-top: 54px;
}

.page-shell,
.archive-header {
  width: min(920px, 100%);
  margin: 0 auto;
}

.page-shell__header,
.archive-header {
  padding: 42px 0 30px;
  text-align: center;
}

.page-shell__content {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--surface);
}

.page-shell__content > .wp-block-image:first-child {
  margin-top: 0;
}

.page-shell__content .wp-block-image img {
  width: 100%;
  border-radius: 8px;
}

.page-shell__content ul,
.article-shell ul {
  color: var(--muted);
}

.page-shell__content li,
.article-shell li {
  margin: 7px 0;
}

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

.listing-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.listing-card__body {
  padding: 22px;
}

.site-footer {
  padding: 54px 0 92px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #090907;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.7fr) minmax(220px, 0.7fr);
  gap: 32px;
}

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

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.footer-link-group h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-menu {
  display: grid;
  align-items: flex-start;
  gap: 4px;
}

.footer-menu a {
  min-height: 30px;
  padding: 3px 0;
  border-radius: 0;
}

.footer-menu a:hover,
.footer-menu a:focus {
  background: transparent;
  text-decoration: underline;
}

.floating-entry {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 60;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid rgba(244, 199, 75, 0.36);
  border-radius: 8px;
  background: rgba(12, 12, 9, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.floating-entry__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  background: var(--gold);
  color: #131006;
  font-weight: 900;
  text-decoration: none;
}

.search-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.search-field {
  width: min(420px, 100%);
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .primary-navigation {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    display: none;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #10100d;
  }

  .primary-navigation.is-open {
    display: block;
  }

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

  .quick-grid,
  .feature-grid,
  .game-grid,
  .review-grid,
  .step-grid,
  .listing-grid,
  .footer-link-groups,
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-panel,
  .split-panel.reverse {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body {
    font-size: 16px;
  }

  .site-header__inner,
  .site-footer__inner,
  .site-main,
  .front-page-content > *,
  .faq-shell {
    width: min(100% - 28px, var(--container));
  }

  .site-header__inner {
    min-height: 64px;
  }

  .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: 140px;
    max-height: 44px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .home-hero {
    padding: 50px 14px 36px;
  }

  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.48rem;
  }

  .section-band,
  .article-shell,
  .faq-shell {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .quick-grid,
  .feature-grid,
  .game-grid,
  .review-grid,
  .step-grid,
  .listing-grid,
  .footer-link-groups,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .page-shell__content {
    padding: 22px;
  }

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

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