@font-face {
  font-family: 'Moku Brush Black';
  src: url('assets/font/MokuBrush-Black.woff2') format('woff2'),
    url('assets/font/MokuBrush-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Moku Brush Regular';
  src: url('assets/font/MokuBrush-Regular.woff2') format('woff2'),
    url('assets/font/MokuBrush-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Moku Brush SemiBold';
  src: url('assets/font/MokuBrush-SemiBold.woff') format('woff2'),
    url('assets/font/MokuBrush-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}



:root {
  --g1: #22C55E;
  --g2: #4ADE80;
  --lg: #7CFC00;
  --b1: #38BDF8;
  --b2: #0EA5E9;
  --ink: #0B1220;
  --r20: 20px;
  --r24: 24px;
  --shadow: 0 14px 50px rgba(16, 24, 40, .10);
  --shadow2: 0 10px 30px rgba(16, 24, 40, .12);
  --wrap: 1120px;
  --wave-y: 120px;
  /* vertical center of SVG wave */

}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

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

/* Add focus visible styles */
*:focus-visible {
  outline: 3px solid #38BDF8;
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 3px solid #0EA5E9;
  outline-offset: 3px;
}

.nav__link:focus-visible,
.faq-question:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #0EA5E9;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  top: 0;
}

html,
body {
  height: 100%
}

h1,
h2,
h3,

.nav__link {
  font-family: "Moku Brush SemiBold", sans-serif;
  color: #431d11;
}

footer .brand__name {
  font-family: "Moku Brush Black", sans-serif;
  color: #ddd;
}

body {
  margin: 0;
  font-family: "Cause", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);

}

section {
  padding: 80px 0px;
  scroll-margin-top: 90px;
}

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

button {
  font: inherit
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
      position: fixed;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, .80);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    width: 100%;
}

.topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900
}

.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--lg), var(--g1));
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .15);
}

.brand__name {
  letter-spacing: .2px;
  font-size: 1.5rem;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  position: static;
  top: 0;
  z-index: 9999;
  transition: all 0.3s ease; 
}

.nav__link {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1e293b;
  padding: 12px 8px;
  display: inline-block;
}

.nav__link:hover {
  color: rgba(11, 18, 32, .92)
}


#menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  padding: 0;
  flex-shrink: 0;
}

#menu-toggle span {
  display: block;             
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #431d11;      
  border-radius: 3px;
  transition: all 0.3s ease;
}

#menu-toggle span:nth-child(1) {
  top: 0;
}

#menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

#menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* Animated hamburger menu when open */
#menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

#menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

#menu-toggle.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

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

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
   
    border-bottom: 1px solid #e5e7eb;
     max-height: 0;  
    overflow: hidden;  
    opacity: 0;  
    transition: all 0.3s ease;  
  }

  .nav.open {
    display: flex;
    text-align: center;
     max-height: 400px; 
    opacity: 1;  
    padding: 12px 0;  
  }

  .nav__link {
    width: 100%;
    padding: 14px 20px;
  }
}




.topbar__cta {
  display: flex;
  align-items: center;
   gap: 12px;
   flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  min-height: 48px;
  padding: 0 20px;
}

.btn--pill {
  border-radius: 999px
}

.btn--primary {
  color: #0A1B10;
  background: linear-gradient(180deg, var(--lg), var(--g1));
  box-shadow: 0 14px 34px rgba(34, 197, 94, .45);
  font-size: 15px;
  padding: 0 22px;
  height: 48px;
}

.btn--primary:hover {
  filter: saturate(1.05) brightness(1.01)
}

.btn--soft {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .6);
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(56, 189, 248, .14);
}

.btn--ghost {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(15, 23, 42, .10);
}

.btn__icon {
  font-size: 12px;
  transform: translateY(-.5px)
}

.hero {
 position: relative;
  padding: 120px 0 100px;
  padding-bottom: 200px;
  min-height: 100vh;
  display: flex;  
  align-items: center;  
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 50% 50%,
      rgba(10, 30, 25, .15),
      rgba(10, 30, 25, .45) 85%),
    radial-gradient(900px 360px at 50% 0,
      rgba(56, 189, 248, .2),
      transparent 65%),
    url("/assets/hero-bg.jpg");
  background-size: cover;
  background-position: center center;
    overflow: hidden;

}

.hero__inner {
  position: relative;
  width: 100%;;
}

.hero__center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero__chip {
  display: flex;
  justify-content: center;
  margin: 16px 0 16px 0;
}

.chip {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(255, 255, 255, .70));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .6);
}

.chip__spark {
  color: var(--b2)
}

.hero__title {
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: -1.8px;
  font-weight: 1000;
}


.hero__sub {
  margin: 20px auto 0;
  font-size: 1.5rem;
  line-height: 1.65;
  max-width: 780px;
  color: rgba(255, 255, 255, 1);
  font-weight: 650;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero__buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.hero__mini {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(15, 23, 42, .08);
}

.strip {
  padding: 24px;
  position: static;
  left: 0;
  right: 0;
  bottom: 10%;
  margin-top: 40px;
  padding: 0;
}



.strip__rail {

  background: rgba(255, 255, 255, .78);
  border: 2px solid #fff;
  border-radius: var(--r24);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  position: relative;
  z-index: 10;
}

.stat {
  background: rgba(255, 255, 255, .86);
  border: 2px solid #38bff8;
  border-radius: var(--r20);
  padding: 14px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 70px;
}

.stat__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(56, 189, 248, .25), rgba(34, 197, 94, .12));
  border: 1px solid rgba(15, 23, 42, .06);
}

.stat__k {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(11, 18, 32, .85)
}

.stat__v {
  font-size: 0.9rem;
  font-weight: 750;
  color: #475569;
  margin-top: 2px
}

.h2 {
  margin: 20px 0;
  font-size: 42px;
  letter-spacing: -0.8px;
  font-weight: 1000;
  text-align: center;
}



.what-is__inner {
  max-width: 900px;
}

.what-is__text p {
  font-size: 18px;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 18px;
  margin-top: 10px;
}

.what-is__summary {
  font-weight: 900;
  font-size: 19px;
}

 .what-is img {
    width: 100%;
    max-width: 100%;
  }


.why-layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 32px;
  align-items: center;
}

.why-col {
  display: grid;
  gap: 20px
}

.why-card {
  background: rgba(255, 255, 255, .88);
  border-radius: 18px;
  padding: 15px 22px;
  border: 1px solid #38bff8;
  background: #38bff818;

}

.why-card h3,
.wide h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 950;
}

.why-card p,
.wide p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #475569;
}

.why-center {
  position: relative;
  border-radius: 24px;
  overflow: hidden;

}

.why-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}

.wide {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  margin: 15px 0px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(56, 189, 248, .18), rgba(34, 197, 94, .18));

  border: 1px solid #38bff8;
}

.wide__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 10px;

  background: rgba(255, 255, 255, .8);
}

.wide__title {
  font-weight: 950
}

.wide__text {
  font-size: 13.5px;
  color: #475569;
}

/* =========================
   GAME MODES SECTION
========================= */

.game-modes {

  position: relative;
  background: transparent;
}

/* Cards */
.game-modes-card {
  margin-top: 28px;
  background: rgba(255, 255, 255, .85);

  padding: 26px 28px;
}

/* Grid (support BOTH class spellings safely) */
.game-modes-grid,
.games-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

/* Reverse layout */
.game-modes-card.reverse .game-modes-grid,
.game-modes-card.reverse .games-mode-grid {
  grid-template-columns: 1fr 1fr;
}

.game-modes-card.reverse .games-mode-media {
  order: -1;
}

/* Text */
.games-mode-text h3 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 950;
  letter-spacing: -0.3px;
}

.games-mode-text p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(11, 18, 32, .68);

}

/* Media placeholder */


.games-mode-media img {
  width: 100%;
  /* Ensure image fills the container width */
  height: auto;
  /* Maintain aspect ratio */
  max-height: none;
  /* Remove the 35rem limit for mobile stacking */
  object-fit: contain;
  display: block;
}


/* Rewards card (reused from your system but tightened) */
.reward-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg,
      rgba(34, 197, 94, .18),
      rgba(56, 189, 248, .14));
  border: 1px solid rgba(15, 23, 42, .08);
}

.reward-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(15, 23, 42, .06);
}

.reward-card strong {
  font-weight: 950;
}

.reward-sub {
  font-size: 13.5px;
  color: rgba(11, 18, 32, .65);
  font-weight: 650;
  margin-top: 2px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  .game-modes-grid,
  .games-mode-grid {
    grid-template-columns: 1fr;
  }

  .game-modes-card.reverse .games-mode-media {
    order: 0;
  }

  .games-mode-media {
    height: 170px;
  }
}

@media (max-width: 640px) {
  .games-mode-text h3 {
    font-size: 19px;
  }

  .games-mode-text p {
    font-size: 14.5px;
  }
}

/* SECTION */
.how-wave {
  background: #86b334;

  position: relative;
  overflow: hidden;
}

/* GRID */
.how-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      #85ad33 0,
      #85ad33 3px,
      transparent 3px,
      transparent 64px),
    repeating-linear-gradient(0deg,
      #85ad33 0,
      #85ad33 3px,
      transparent 3px,
      transparent 64px);
  z-index: 0;
}

/* INNER */
.how-inner {
  position: relative;
  z-index: 2;
}

/* HEADING */
.how-heading {
  color: #fff;
  font-size: 40px;
  font-weight: 1000;
  margin: 0;
  margin-bottom: 25px;
}

/* SVG PATH */
.how-path {
  position: absolute;
  top: var(--wave-y);
  left: 0;
  width: 100%;
  height: 285px;
  pointer-events: none;
}

.how-steps {
  position: relative;
    height: 300px;
    margin-bottom: 4rem;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.how-step {
  position: absolute;
  top: var(--wave-y);
  transform: translateX(-50%);
  width: 240px;
  text-align: center;
}


.how-step.up {
  top: 7rem;
}

.how-step.down {
  bottom: -2rem;
}

.step-circle img {
  height: 9rem;
}


/* TEXT */
.step-num {
  display: block;
  font-size: 13px;
  font-weight: 900;
  opacity: .85;
  margin-bottom: 6px;
}

.how-step h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 1000;
}

.how-step p {
  margin: 6px 0 0;
  font-size: 1.2rem;
  opacity: .9;
}


.how-step .step-num,
.how-step h3,
.how-step p {
  margin-top: 10px;
}

.how-step.down .step-num,
.how-step.down h3,
.how-step.down p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
}

/* Vertical offsets ABOVE the icon */
.how-step.down .step-num {
  top: -140px;
}

.how-step.down h3 {
  top: -120px;
}

.how-step.down p {
  top: -85px;
}


.compare-modes {
  background: #38bff818;
}

.compare-title {
  font-size: 32px;
  font-weight: 1000;
  margin-bottom: 24px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding: 10px 20px;
  border: 1px solid #38bff8;
}

.cell {
  padding: 14px 14px;
  font-size: 1.05rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cell.head {
  font-weight: 900;
  background: #f8fafc;
}

.cell.feature {
  font-weight: 800;
  color: #0f172a;
}

.cell.yes {
  color: #16a34a;
  font-weight: 700;
}

.cell.no {
  color: #e11d48;
  font-weight: 700;
}

.compare-tip {
  margin-top: 18px;
  font-size: 14px;
  color: #334155;
}

/* Responsive */
@media (max-width: 900px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .cell.head {
    display: none;
  }

  .cell.feature {
    background: #f8fafc;
  }
}


.chessboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1153px) {
  .chessboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}


@media (max-width: 640px) {
  .chessboard {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


.t-card {
  aspect-ratio: 1 / 1;
  display: grid;
  
  place-items: center;
 
  padding: 30px;
  text-align: center;
  border-radius: 25px;
}


.t-card:nth-child(odd) {
  background: #8b5129;
  color: #fff;
}

.t-card:nth-child(even) {
  background: #e9e2d2;
  color: #000;
  border: 2px solid #8b5129;
}

.t-card:nth-child(odd) span {
  color: #e9e2d2;

}

.t-card:nth-child(even) span {
  color: #8b5129;
}



/* Testimonial text */
.testimonials {
  font-family: 'Moku Brush SemiBold', sans-serif !important;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Author */
.testimonials span {
  display: block;
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
}

/* Images stay centered */
.t-image img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}


.faq-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #38bff8
}

.faq-media {
  position: relative
}

.faq-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.faq-panel {

  color: #000000;
  padding: 36px 32px;
}

.faq-title {
  margin: 0 0 24px;

  font-weight: 1000;
}

.faq-list {
  display: grid;
  gap: 10px
}

.faq-item {
  background: rgba(255, 255, 255, .06);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #000000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  min-height: 48px;
  padding: 16px;
}

.chevron {
  transition: transform .25s ease;
  opacity: .7;
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1e293b;
  display: none;
}

.faq-item.open .faq-answer {
  display: block
}

.faq-item.open .chevron {
  transform: rotate(180deg)
}

.footer {
  background: #071022;
  color: rgba(241, 245, 249, .78);
  padding: 26px 0;
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.footer__brand {
  font-weight: 950
}

.footer__small {
  margin-top: 8px;
  font-weight: 650;
  font-size: 12px;
  opacity: .85;
}

.footer__cols {
  display: flex;
  gap: 46px
}

.footer__col {
  display: grid;
  gap: 8px;
  font-weight: 750;
  font-size: 13px;
  align-content: baseline;
}

.footer__h {
  font-weight: 950;
  opacity: .9;
  margin-bottom: 4px;
}

.footer__col a {
  opacity: .9
}

.footer__col a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .strip__rail {
    grid-template-columns: 1fr 1fr
  }

  

  .how-grid {
    grid-template-columns: 1fr
  }

  .how-media {
    width: 100%
  }
}

@media (max-width: 900px) {
  .why-layout {
    grid-template-columns: 1fr
  }

  .why-center {
    order: -1
  }

  .how-svg {
    height: auto
  }

  foreignObject {
    position: static
  }

  .faq-card {
    grid-template-columns: 1fr
  }

  .faq-media {
    height: 220px
  }
}

@media (max-width: 640px) {
  .hero__title {
    font-size: 46px;
    letter-spacing: -1px;
  }

  .hero__sub {
    font-size: 16px
  }

  .h2 {
    font-size: 32px
  }
}

@media (max-width: 560px) {
  .strip__rail {
    grid-template-columns: 1fr
  }
}

@media (max-width: 900px) {
  .games-mode-media {
    height: 160px;
  }
}

@media (max-width: 640px) {
  .games-mode-media {
    height: 140px;
  }
}

.gallery-section {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
  overflow: hidden;
  /* Prevents horizontal scroll on small screens */
}

.gallery-header {
  margin-bottom: 8rem;
}

.gallery-subtitle {
  font-size: 12px;
  letter-spacing: 3px;
  color: #999;
  text-transform: uppercase;
}

.gallery-title {
  font-size: 32px;
  margin: 10px 0;
  color: #1a1a1a;
}

.gallery-desc {
  color: #666;
  max-width: 500px;
  margin: 0 auto;
}

/* Carousel Container */
.gallery-slider-wrapper {
  position: relative;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  /* Crucial for the 3D depth effect */
}

.gallery-item {
  position: absolute;
  width: auto;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Positioning Logic */
.gallery-item.is-active {
  opacity: 1;
  z-index: 10;
  transform: translateX(0) scale(1.1);
  pointer-events: auto;
}

.gallery-item.is-prev {
  opacity: 0.7;
  z-index: 5;
  transform: translateX(-200px) scale(0.85);
}

.gallery-item.is-next {
  opacity: 0.7;
  z-index: 5;
  transform: translateX(200px) scale(0.85);
}

.gallery-item.is-far-prev {
  opacity: 0.3;
  z-index: 1;
  transform: translateX(-350px) scale(0.7);
}

.gallery-item.is-far-next {
  opacity: 0.3;
  z-index: 1;
  transform: translateX(350px) scale(0.7);
}

.gallery-controls button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #38bff8;
  background: #fff;
  cursor: pointer;
  margin: 8rem 10px 0 10px;
  font-size: 35px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
  display: inline-flex;
  justify-content: center;
  color: #0EA5E9;
  font-weight: bold;
}

.gallery-controls button:hover {
  background: linear-gradient(180deg, #38BDF8, #0EA5E9);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
  border-color: #0EA5E9;
}

.gallery-controls button:active {
  transform: scale(0.95);
}


/* Tablets and below (980px) */
@media (max-width: 980px) {
  .strip__rail {
    grid-template-columns: repeat(2, 1fr);
  }

  

  .topbar__cta .btn {
    font-size: 12px;
    padding: 0 14px;
    height: 40px;
  }
}

/* Medium devices (900px) */
@media (max-width: 900px) {
  section {
    padding: 60px 0;
  }

  .gallery-section {
  padding: 60px 20px;
  
}

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

  .why-center {
    order: -1;
  }

  .game-modes-grid,
  .games-mode-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-modes-card.reverse .games-mode-media {
    order: 0;
  }


  .compare-grid {
    grid-template-columns: 1fr;
  }

  .cell.head:not(.cell.feature) {
    display: none;
  }

  .cell.feature {
    background: #f8fafc;
    font-weight: 900;
    border-top: 2px solid #e2e8f0;
    margin-top: 8px;
  }

  .cell {
    padding: 12px;
    font-size: 0.95rem;
  }

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

  .faq-media {
    height: 220px;
  }

  /* Simplified How It Works for mobile */
  .how-steps {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
  }

  .how-path {
    display: none;
  }

  .how-step {
    position: static !important;
    transform: none !important;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
  }

  .how-step.down .step-num,
  .how-step.down h3,
  .how-step.down p {
    position: static !important;
    transform: none !important;
    width: 100%;
    top: auto !important;
  }



  .gallery-item {
    height: 350px;
  }

  .gallery-item.is-prev {
    transform: translateX(-120px) scale(0.85);
  }

  .gallery-item.is-next {
    transform: translateX(120px) scale(0.85);
  }

  .gallery-item.is-far-prev,
  .gallery-item.is-far-next {
    opacity: 0;
    transform: translateX(0) scale(0.5);
  }

  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__cols {
    gap: 32px;
  }
}

/* Small tablets (768px) */
@media (max-width: 768px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .topbar__inner {
    height: 56px;
  }

  .brand__name {
    font-size: 18px;
  }

  .h2 {
    font-size: 36px;
  }

  .hero {
    padding: 80px 0 60px;
    min-height: 70vh;
  }

  .hero__title {
    font-size: 52px;
    letter-spacing: -1.2px;
  }

  .hero__sub {
    font-size: 1.2rem;
  }

  .strip {
    position: static;
    padding: 20px 0;
    margin-top: 20px;
  }

  .strip__rail {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat {
    min-height: auto;
    padding: 12px;
  }

  .stat__icon {
    width: 36px;
    height: 36px;
  }

  .stat__k {
    font-size: 1rem;
  }

  .stat__v {
    font-size: 0.85rem;
  }

  .gallery-slider-wrapper {
    height: 350px;
  }

  .gallery-track {
    height: 250px;
  }

  .gallery-header {
    margin-bottom: 4rem;
  }

  .gallery-controls {
    margin-top: 4rem;
  }

  .wide {
    flex-direction: column;
    align-items: baseline;
    gap: 12px;
  }

  .faq-panel {
    padding: 28px 24px;
  }

  .faq-title {
    font-size: 24px;
  }

  .faq-question {
    font-size: 1.05rem;
    padding: 12px 14px;
    text-align: left;
  }
}

/* Mobile devices (640px) */
@media (max-width: 640px) {
  section {
    padding: 50px 0;
  }

    .gallery-section {
  padding: 50px 20px;
  
}

  .btn {
    min-height: 48px;
    padding: 14px 20px;
  }

  .nav__link {
    padding: 16px 12px;
  }


  .wrap {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero__title {
    font-size: 3rem;
    margin-top: 40px;
    letter-spacing: -1px;
    line-height: 1.05;
  }

  .hero__titleAccent {
    display: inline;
  }

  .hero__sub {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
  }

  .chip {
    font-size: 11px;
    padding: 0 14px;
    height: 34px;
  }

  .btn--primary {
    font-size: 14px;
    height: 44px;
    padding: 0 18px;
  }

  .btn--soft {
    font-size: 13px;
    height: 42px;
  }

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

  .what-is__text p {
    font-size: 1.06rem;
  }

  .what-is__summary {
    font-size: 17px;
  }

  .what-is img {
    width: 100%;
    max-width: 100%;
  }

  .why-card h3 {
    font-size: 1.3rem;
  }

  .why-card p,
  .wide p {
    font-size: 1.05rem;
  }

  .games-mode-text h3 {
    font-size: 1.3rem;
  }

  .games-mode-text p {
    font-size: 1.1rem;
  }


  .how-heading {
    font-size: 2rem;
  }

  .how-step p {
    font-size: 1.1rem;
  }

  .step-circle img {
    height: 10rem;
  }

  .chessboard {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .t-card {
    padding: 20px;
  }



  .gallery-item {
    height: 350px;
  }

  .gallery-item.is-prev,
  .gallery-item.is-next {
    opacity: 0;
  }

  .gallery-item.is-active {
    transform: scale(1);
  }

  .faq-panel {
    padding: 24px 20px;
  }

  .faq-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .faq-question {
    font-size: 1.35rem;
    padding: 12px;
    text-align: left;
  }

  .faq-answer {
    font-size: 1.1rem;
    padding: 0 12px 12px;
  }

  .footer__cols {
    flex-direction: column;
    gap: 20px;
  }

  .compare-tip {
    font-size: 13px;
  }
}


@media (max-width: 480px) {
  .hero__title {
    font-size: 36px;
  }

  .hero__sub {
    font-size: 0.95rem;
  }

  .h2 {
    font-size: 26px;
  }

  .stat__k {
    font-size: 0.9rem;
  }

  .stat__v {
    font-size: 0.8rem;
  }

  .chip {
    font-size: 10px;
    height: 32px;
  }

  .game-modes-card {
    padding: 20px 16px;
  }

   .gallery-controls button {
    width: 44px;
    height: 44px;
    font-size: 18px;
    margin: 0 8px;
    padding-top: 0.35rem;
    touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;

  }

  .how-step {
    max-width: 300px;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 60px 0 40px;
  }

  .strip {
    position: static;
    margin-top: 20px;
  }
}



img,
.t-card {

  transition: all 0.3s ease;

}



.t-card:hover,
img:hover {
  transform: scale(1.05);
  z-index: 10;
}

@media (max-width: 900px) {

  .game-modes-grid,
  .games-mode-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  .games-mode-media {
    height: auto !important;
    width: 100%;
  }

  .game-modes-card.reverse .games-mode-media {
    order: 1;
  }

  .game-modes-card.reverse .games-mode-text {
    order: 0;
  }
}

@media (max-width: 900px) {
  .why-center img {
    width: 10rem;
    margin-left: auto;
    margin-right: auto;
  }
}


.compare-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #38bff8;
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 900px) {
  .compare-grid {
    display: grid !important;
    grid-template-columns: 140px repeat(4, 160px) !important;
    min-width: 780px;
  }

  .cell.head {
    display: block !important;
   
  }
}

@media (max-width: 900px) {
  .footer__inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
  }
}


