/* ===========================================================
   emoji kitchen - Base stylesheet
   All custom classes use the dynamic prefix `g256-`.
   Palette: #228B22 (green) | #EEE8AA (light) | #0F0F23 (dark) | #808080 (gray)
   Mobile-first. Root font-size 62.5% so 1rem = 10px.
   =========================================================== */

:root {
  --g256-green: #228B22;
  --g256-light: #EEE8AA;
  --g256-dark: #0F0F23;
  --g256-gray: #808080;
  --g256-green-d: #1b6f1b;
  --g256-light-d: #d8d08a;
  --g256-bg: #0F0F23;
  --g256-card: #161635;
  --g256-card-2: #1d1d45;
  --g256-border: rgba(238, 232, 170, 0.14);
  --g256-text: #EEE8AA;
  --g256-text-mute: #b9b39a;
  --g256-radius: 14px;
  --g256-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --g256-max: 430px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% -10%, #1c1c4a 0%, var(--g256-bg) 55%);
  color: var(--g256-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--g256-light); text-decoration: none; }
a:hover { color: #ffffff; }

/* ============ Header ============ */
.g256-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.96);
  border-bottom: 2px solid var(--g256-green);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.g256-header-inner {
  max-width: var(--g256-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  gap: 0.8rem;
}
.g256-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.g256-logo img {
  width: 3rem; height: 3rem;
  border-radius: 8px;
  background: var(--g256-green);
}
.g256-logo .g256-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--g256-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g256-logo .g256-brand span { color: var(--g256-green); }

.g256-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.g256-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
  text-transform: capitalize;
}
.g256-btn:active { transform: scale(0.95); }
.g256-btn-primary {
  background: linear-gradient(135deg, var(--g256-green), #2fb02f);
  color: #fff;
  box-shadow: 0 4px 10px rgba(34, 139, 34, 0.45);
}
.g256-btn-secondary {
  background: transparent;
  color: var(--g256-light);
  border: 1.5px solid var(--g256-light);
}
.g256-btn-block { width: 100%; padding: 1.3rem; font-size: 1.6rem; }

.g256-menu-btn {
  width: 3.6rem; height: 3.6rem;
  border-radius: 10px;
  border: 1px solid var(--g256-border);
  background: var(--g256-card);
  color: var(--g256-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
}

/* ============ Mobile slide-in menu ============ */
.g256-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.g256-overlay.g256-overlay-show { opacity: 1; visibility: visible; }

.g256-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--g256-card);
  z-index: 9999;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  transition: right 0.28s ease;
  border-left: 2px solid var(--g256-green);
}
.g256-mobile-menu.g256-menu-open { right: 0; }
.g256-menu-close {
  background: transparent;
  border: none;
  color: var(--g256-light);
  font-size: 2.4rem;
  cursor: pointer;
  float: right;
  line-height: 1;
}
.g256-mobile-menu h3 {
  color: var(--g256-green);
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.g256-mobile-menu a {
  display: block;
  padding: 1rem 0.4rem;
  border-bottom: 1px solid var(--g256-border);
  font-size: 1.45rem;
  color: var(--g256-light);
}
.g256-mobile-menu a:hover { color: #fff; background: rgba(34,139,34,0.15); }

/* ============ Layout ============ */
.g256-main {
  max-width: var(--g256-max);
  margin: 0 auto;
  padding: 7rem 1.2rem 9rem;
}
@media (max-width: 768px) {
  .g256-main { padding-bottom: 9rem; }
}

.g256-section { margin: 2.4rem 0; }
.g256-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0 0 1.2rem;
  color: var(--g256-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g256-section-title i { color: var(--g256-green); }

/* ============ Hero / Carousel ============ */
.g256-carousel {
  position: relative;
  border-radius: var(--g256-radius);
  overflow: hidden;
  box-shadow: var(--g256-shadow);
  background: var(--g256-card);
}
.g256-carousel-track { position: relative; }
.g256-carousel-slide {
  position: relative;
  display: none;
  cursor: pointer;
}
.g256-carousel-slide.g256-slide-active { display: block; }
.g256-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.g256-slide-caption {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(15, 15, 35, 0.78);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border-left: 3px solid var(--g256-green);
}
.g256-slide-caption strong { color: #fff; font-size: 1.5rem; display: block; }
.g256-slide-caption span { color: var(--g256-light); font-size: 1.25rem; }

.g256-carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.g256-carousel-nav button {
  pointer-events: auto;
  width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  border: none;
  background: rgba(15,15,35,0.7);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  margin: 0 0.6rem;
}
.g256-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 0;
}
.g256-carousel-dot {
  width: 0.8rem; height: 0.8rem;
  border-radius: 50%;
  background: var(--g256-gray);
  cursor: pointer;
  transition: background 0.2s ease;
}
.g256-carousel-dot.g256-dot-active { background: var(--g256-green); }

/* ============ CTA banner ============ */
.g256-cta {
  background: linear-gradient(135deg, var(--g256-green), #1b6f1b);
  border-radius: var(--g256-radius);
  padding: 1.6rem;
  text-align: center;
  margin: 2rem 0;
  box-shadow: var(--g256-shadow);
}
.g256-cta h2 { color: #fff; font-size: 1.9rem; margin: 0 0 0.5rem; }
.g256-cta p { color: rgba(255,255,255,0.9); margin: 0 0 1.2rem; font-size: 1.35rem; }
.g256-cta .g256-btn { background: #fff; color: var(--g256-green); }

/* ============ Game grid ============ */
.g256-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.g256-filter-chip {
  flex: 0 0 auto;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--g256-card);
  color: var(--g256-text-mute);
  border: 1px solid var(--g256-border);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.g256-filter-chip.g256-chip-active {
  background: var(--g256-green);
  color: #fff;
  border-color: var(--g256-green);
}

.g256-game-group { margin: 1.6rem 0; }
.g256-game-group h3 {
  font-size: 1.55rem;
  color: var(--g256-light);
  margin: 1.2rem 0 0.8rem;
  border-left: 4px solid var(--g256-green);
  padding-left: 0.8rem;
}
.g256-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.g256-game-card {
  background: var(--g256-card);
  border: 1px solid var(--g256-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
  display: block;
}
.g256-game-card:hover, .g256-game-card:active {
  transform: translateY(-3px);
  border-color: var(--g256-green);
}
.g256-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.g256-game-card .g256-game-name {
  font-size: 1.1rem;
  color: var(--g256-text);
  text-align: center;
  padding: 0.4rem 0.2rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Info / content cards ============ */
.g256-card {
  background: var(--g256-card);
  border: 1px solid var(--g256-border);
  border-radius: var(--g256-radius);
  padding: 1.5rem;
  margin: 1.2rem 0;
  box-shadow: var(--g256-shadow);
}
.g256-card h2 { color: var(--g256-light); font-size: 1.7rem; margin-top: 0; }
.g256-card h3 { color: var(--g256-green); font-size: 1.45rem; margin: 1.2rem 0 0.5rem; }
.g256-card p { color: var(--g256-text-mute); margin: 0.6rem 0; font-size: 1.35rem; }
.g256-card ul { padding-left: 1.6rem; color: var(--g256-text-mute); }
.g256-card li { margin: 0.4rem 0; }

.g256-promo-text a {
  color: var(--g256-green);
  font-weight: 700;
  border-bottom: 1.5px dashed var(--g256-green);
}
.g256-promo-text a:hover { color: #fff; border-color: #fff; }

.g256-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}
.g256-feature-item {
  background: var(--g256-card-2);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--g256-border);
}
.g256-feature-item i { font-size: 2.2rem; color: var(--g256-green); }
.g256-feature-item strong { display: block; color: var(--g256-light); margin-top: 0.4rem; font-size: 1.3rem; }
.g256-feature-item span { color: var(--g256-text-mute); font-size: 1.15rem; }

/* ============ Testimonials ============ */
.g256-testimonials { display: grid; gap: 0.8rem; margin-top: 1rem; }
.g256-testimonial {
  background: var(--g256-card-2);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--g256-green);
}
.g256-testimonial p { margin: 0 0 0.5rem; font-size: 1.3rem; color: var(--g256-text); }
.g256-testimonial .g256-author { color: var(--g256-light-d); font-size: 1.15rem; font-weight: 700; }

/* ============ Payment row ============ */
.g256-payment-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.g256-payment {
  flex: 1 1 calc(50% - 0.6rem);
  background: var(--g256-card-2);
  border: 1px solid var(--g256-border);
  border-radius: 10px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.g256-payment i { color: var(--g256-green); font-size: 1.8rem; }
.g256-payment span { font-size: 1.25rem; color: var(--g256-text); }

/* ============ Winners ticker ============ */
.g256-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--g256-border);
  font-size: 1.25rem;
}
.g256-winner span:last-child { color: var(--g256-green); font-weight: 700; }

/* ============ Footer ============ */
.g256-footer {
  background: var(--g256-card);
  border-top: 2px solid var(--g256-green);
  padding: 2rem 1.2rem;
  margin-top: 2rem;
}
.g256-footer-inner { max-width: var(--g256-max); margin: 0 auto; }
.g256-footer h4 { color: var(--g256-light); font-size: 1.35rem; margin: 1.2rem 0 0.6rem; }
.g256-footer a { color: var(--g256-text-mute); display: block; padding: 0.35rem 0; font-size: 1.25rem; }
.g256-footer a:hover { color: var(--g256-green); }
.g256-footer-bottom {
  text-align: center;
  color: var(--g256-gray);
  font-size: 1.15rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--g256-border);
  padding-top: 1rem;
}

/* ============ Mobile bottom nav ============ */
.g256-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 6.2rem;
  background: linear-gradient(180deg, #1a1a40 0%, var(--g256-bg) 100%);
  border-top: 2px solid var(--g256-green);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0.4rem 0.2rem;
}
.g256-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--g256-text-mute);
  font-size: 1.05rem;
  min-width: 6rem;
  border-radius: 10px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.g256-bottom-nav a i { font-size: 2rem; }
.g256-bottom-nav a:active { transform: scale(0.9); }
.g256-bottom-nav a:hover { color: var(--g256-light); }
.g256-bottom-nav a.g256-nav-current { color: var(--g256-green); }
.g256-bottom-nav a.g256-nav-promo {
  color: var(--g256-light);
  background: rgba(34,139,34,0.18);
}

@media (min-width: 769px) {
  .g256-bottom-nav { display: none; }
  .g256-main { padding-bottom: 4rem; }
}

/* ============ Helpers ============ */
.g256-hide-desktop { display: block; }
@media (min-width: 769px) {
  .g256-hide-desktop { display: none; }
}
.g256-text-center { text-align: center; }
.g256-mt-2 { margin-top: 2rem; }
