:root {
  --bg: #071214;
  --bg-strong: #0b1d24;
  --surface: #10282f;
  --surface-soft: #15343c;
  --surface-light: #eaf7f0;
  --text: #f4fbf8;
  --muted: #aac2bf;
  --ink: #102027;
  --ink-muted: #445b5d;
  --lime: #b7f34a;
  --teal: #21c6a8;
  --amber: #f8c04e;
  --rose: #f06b7b;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(8, 30, 36, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --container: 1180px;
}

* {
  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.68;
  overflow-x: hidden;
  padding-bottom: 86px;
}

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

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

a:hover,
a:focus {
  color: var(--lime);
}

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

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

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(33, 198, 168, 0.11), transparent 520px),
    linear-gradient(135deg, #071214 0%, #0d1b2a 45%, #0a211d 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 18, 20, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.wp-block-group__inner-container,
.section-inner,
.page-shell {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

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

.site-branding,
.brand-logo,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  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: 180px;
  max-height: 56px;
  object-fit: contain;
}

.footer-brand img {
  max-width: 150px;
  max-height: 48px;
}

.brand-wordmark {
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

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

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.91rem;
  color: var(--muted);
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-action,
.wp-block-button__link,
.entry-button,
.floating-entry a,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: #102000;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 12px 26px rgba(183, 243, 74, 0.2);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-action:hover,
.wp-block-button__link:hover,
.entry-button:hover,
.floating-entry a:hover,
.search-form button:hover,
.nav-action:focus,
.wp-block-button__link:focus,
.entry-button:focus,
.floating-entry a:focus,
.search-form button:focus {
  background: var(--amber);
  color: #141000;
  box-shadow: 0 12px 28px rgba(248, 192, 78, 0.22);
}

.nav-action-soft {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.front-page-content > .wp-block-group {
  padding: clamp(64px, 7vw, 92px) 0;
}

.front-page-content > .wp-block-group.alignfull,
.page-content > .wp-block-group.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.hero-section {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 42px 0;
  background:
    linear-gradient(135deg, rgba(33, 198, 168, 0.24), rgba(183, 243, 74, 0.04) 42%, rgba(240, 107, 123, 0.12)),
    #09181d;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(38px, 5vw, 68px);
  align-items: center;
}

.kicker,
.page-kicker {
  color: var(--lime);
  font-size: 0.82rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  line-height: 1.13;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.6rem);
  max-width: 880px;
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 3rem);
}

h3 {
  font-size: clamp(1.22rem, 2vw, 1.62rem);
}

p {
  margin-top: 0;
}

.hero-copy p {
  max-width: 660px;
  color: #d3e4e1;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.secondary-link,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  color: var(--text);
  border-bottom: 1px solid var(--teal);
  font-weight: 800;
}

.hero-note,
.trust-strip,
.responsible-strip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
}

.hero-note {
  max-width: 650px;
  padding: 14px 16px;
  margin-top: 20px;
  color: #d6e5df;
  font-size: 0.94rem;
}

.hero-visual {
  padding: clamp(10px, 1.4vw, 16px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  justify-self: end;
  width: min(100%, 560px);
}

.hero-visual .wp-block-image,
.section-image {
  margin: 0;
}

.hero-visual img,
.image-card img,
.section-image img,
.article-visual img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: center;
}

.hero-visual img {
  aspect-ratio: 16 / 11;
  max-height: 510px;
}

.section-image img {
  aspect-ratio: 16 / 10;
  max-height: 460px;
}

.split-section .section-image img,
.app-section .section-image img {
  aspect-ratio: 4 / 3;
  max-height: 500px;
}

.payment-section .section-image {
  max-width: 440px;
  margin-left: auto;
}

.payment-section .section-image img {
  aspect-ratio: 1 / 1;
  max-height: 420px;
}

.article-visual img {
  aspect-ratio: 16 / 8.5;
  max-height: 380px;
}

.quick-access .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.quick-card,
.feature-card,
.game-card,
.review-card,
.step-card,
.info-card,
.faq-card,
.wp-block-column.is-style-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
  background: rgba(255, 255, 255, 0.06);
}

.quick-card {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
}

.quick-card::before {
  content: "";
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--teal);
  margin-bottom: 16px;
}

.quick-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.quick-card p {
  margin-bottom: 0;
}

.quick-card a,
.game-card a,
.inline-link {
  color: var(--lime);
  font-weight: 800;
}

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

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

.light-band {
  background: var(--surface-light);
  color: var(--ink);
}

.light-band .section-heading p,
.light-band p,
.light-band li {
  color: var(--ink-muted);
}

.light-band .quick-card,
.light-band .feature-card,
.light-band .game-card,
.light-band .step-card,
.light-band .info-card,
.light-band .faq-card {
  background: #fff;
  border-color: var(--line-dark);
  box-shadow: 0 18px 48px rgba(10, 40, 46, 0.1);
}

.split-section .wp-block-columns,
.app-section .wp-block-columns,
.payment-section .wp-block-columns,
.article-intro .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(36px, 5vw, 68px);
}

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

.method-chips,
.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.method-chips li,
.toc-links a,
.trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(33, 198, 168, 0.14);
  color: inherit;
  border: 1px solid rgba(33, 198, 168, 0.28);
  font-weight: 700;
}

.payment-section .info-card {
  margin-top: 14px;
}

.light-band .method-chips li,
.light-band .toc-links a,
.light-band .trust-pill {
  background: #e0f5ed;
  border-color: #b9e5d7;
}

.steps-grid,
.reviews-grid,
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card,
.review-card {
  min-height: 100%;
}

.game-card,
.step-card,
.review-card {
  display: flex;
  flex-direction: column;
}

.game-card {
  min-height: 164px;
  justify-content: space-between;
}

.step-card {
  position: relative;
  padding-top: 34px;
}

.step-card::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
}

.review-card {
  gap: 8px;
}

.review-card p:last-child,
.step-card p:last-child,
.game-card p:last-child {
  margin-bottom: 0;
}

.stars {
  color: var(--amber);
  font-weight: 900;
}

.responsible-strip {
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-radius: var(--radius-lg);
}

.article-band {
  background: #f8fbf7;
  color: var(--ink);
}

.article-shell {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(30px, 5vw, 58px);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(8, 32, 39, 0.12);
}

.article-shell p,
.article-shell li {
  color: #2f494b;
}

.article-shell h2,
.article-shell h3 {
  color: #102027;
}

.article-shell .wp-block-image {
  margin: 34px 0;
}

.article-shell .wp-block-image img {
  border-radius: var(--radius);
}

.faq-section .section-inner {
  max-width: 900px;
}

.faq-section details,
.page-content details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.light-band details,
.article-band details,
.page-content details {
  border-color: var(--line-dark);
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

summary:focus {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.page-shell {
  padding: 62px 0 82px;
}

.page-hero {
  padding: 48px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

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

.page-content {
  max-width: 900px;
}

.page-content .wp-block-image {
  margin: 28px 0;
}

.page-content .wp-block-image img {
  border-radius: var(--radius);
  display: block;
  width: 100%;
  max-height: 480px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.page-content h2 {
  margin-top: 48px;
}

.page-content a {
  color: var(--lime);
  font-weight: 750;
}

.page-content .wp-block-group {
  margin: 28px 0;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #061012;
  padding: 52px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(280px, 1.8fr) minmax(180px, 0.8fr);
  gap: 34px;
}

.footer-brand p,
.footer-contact p {
  color: var(--muted);
  margin: 14px 0 0;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  color: var(--muted);
}

.floating-entry {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(7, 18, 20, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.floating-entry[hidden] {
  display: none;
}

.floating-entry a {
  min-width: min(78vw, 320px);
}

.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-field {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

@media (max-width: 1100px) {
  .quick-access .wp-block-columns,
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .primary-menu {
    gap: 9px;
    font-size: 0.84rem;
  }
}

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

  .primary-navigation {
    position: absolute;
    inset: 74px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: var(--radius);
    background: #071214;
    border: 1px solid var(--line);
  }

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

  .primary-menu,
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-menu a,
  .nav-action {
    width: 100%;
    justify-content: center;
  }
}

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

  .hero-section {
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .hero-grid,
  .split-section .wp-block-columns,
  .app-section .wp-block-columns,
  .payment-section .wp-block-columns,
  .article-intro .wp-block-columns {
    grid-template-columns: 1fr;
  }

  .feature-list,
  .steps-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .quick-access .wp-block-columns,
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    width: 100%;
    justify-self: stretch;
  }

  .section-image img,
  .article-visual img {
    max-height: none;
  }

  .payment-section .section-image {
    margin-inline: auto;
  }

  .responsible-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner,
  .footer-inner,
  .wp-block-group__inner-container,
  .section-inner,
  .page-shell {
    width: min(calc(100% - 24px), var(--container));
  }

  .site-branding,
  .brand-logo,
  .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-wordmark {
    font-size: 0.96rem;
  }

  .front-page-content > .wp-block-group {
    padding: 44px 0;
  }

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

  .quick-card,
  .feature-card,
  .game-card,
  .review-card,
  .step-card,
  .info-card,
  .faq-card,
  .article-shell {
    padding: 20px;
  }

  .quick-access .wp-block-columns,
  .games-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img,
  .section-image img,
  .article-visual img,
  .page-content .wp-block-image img {
    aspect-ratio: 4 / 3;
  }

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

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