/* ============================================================
 * 1xbet mirror - core basefile styles
 * All custom classes use the "g266-" prefix.
 * Palette: #9AFF9A #3A3A3A #FFB347 #FFB74D #FF4500 #D3D3D3
 * Dark surfaces hold content; light tones carry text.
 * Mobile-first: base styles target <=430px, progressive at >=769px.
 * ============================================================ */

:root {
  --g266-bg:        #3A3A3A;
  --g266-bg-deep:   #232323;
  --g266-bg-soft:   #4a4a4a;
  --g266-card:      #2c2c2c;
  --g266-line:      #555555;
  --g266-text:      #f3f3f3;
  --g266-text-dim:  #cfcfcf;
  --g266-accent:    #9AFF9A;
  --g266-accent-2:  #FFB347;
  --g266-accent-3:  #FFB74D;
  --g266-hot:       #FF4500;
  --g266-light:     #D3D3D3;
  --g266-radius:    14px;
  --g266-radius-sm: 10px;
  --g266-shadow:    0 6px 22px rgba(0,0,0,.35);
  --g266-header-h:  60px;
  --g266-nav-h:     62px;
}

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

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g266-text);
  background: var(--g266-bg-deep);
  background-image:
    radial-gradient(circle at 18% -10%, rgba(154,255,154,.10), transparent 55%),
    radial-gradient(circle at 95% 8%, rgba(255,69,0,.10), transparent 50%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--g266-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.g266-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 14px;
}

.g266-hidden { display: none !important; }
.g266-no-scroll { overflow: hidden; }

/* ============================================================
 * Header
 * ============================================================ */
.g266-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1f1f1f 0%, #2c2c2c 100%);
  border-bottom: 2px solid var(--g266-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.g266-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--g266-header-h);
  gap: 10px;
}
.g266-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--g266-text);
  letter-spacing: .3px;
}
.g266-logo img { width: 34px; height: 34px; border-radius: 8px; }
.g266-logo b { color: var(--g266-accent); }
.g266-logo span { color: var(--g266-accent-2); }

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

.g266-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 999px;
  padding: 9px 16px;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.g266-btn:hover { text-decoration: none; transform: translateY(-1px); }
.g266-btn:active { transform: translateY(0); }
.g266-btn--register {
  background: linear-gradient(135deg, var(--g266-hot), var(--g266-accent-2));
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(255,69,0,.45);
}
.g266-btn--login {
  background: transparent;
  color: var(--g266-accent);
  border: 2px solid var(--g266-accent);
}
.g266-btn--login:hover { background: rgba(154,255,154,.12); }
.g266-btn--block { display: flex; width: 100%; padding: 14px; font-size: 1.6rem; }

.g266-icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--g266-line);
  background: rgba(255,255,255,.04);
  color: var(--g266-text);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 2rem;
}
.g266-icon-btn:hover { background: rgba(154,255,154,.16); }

.g266-hamburger { display: inline-flex; }
.g266-desktop-nav { display: none; }

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

.g266-mobile-menu {
  position: fixed;
  top: 0; right: -82%;
  width: 78%; max-width: 320px;
  height: 100vh;
  background: #202020;
  border-left: 3px solid var(--g266-accent);
  padding: 22px 18px 40px;
  overflow-y: auto;
  transform: translateX(0);
  transition: right .28s ease;
  z-index: 9999;
}
.g266-mobile-menu.g266-menu-open { right: 0; }
.g266-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.g266-menu-head h3 { margin: 0; font-size: 1.8rem; color: var(--g266-accent); }
.g266-menu-close {
  background: transparent; border: 0; color: var(--g266-text);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
}
.g266-menu-actions { display: grid; gap: 10px; margin-bottom: 18px; }
.g266-menu-links { list-style: none; margin: 0; padding: 0; }
.g266-menu-links li { border-bottom: 1px solid var(--g266-line); }
.g266-menu-links a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 6px;
  color: var(--g266-text);
  font-size: 1.5rem;
}
.g266-menu-links a:hover { color: var(--g266-accent); text-decoration: none; }
.g266-menu-links .material-icons-outlined,
.g266-menu-links i { color: var(--g266-accent-2); font-size: 2rem; width: 24px; text-align: center; }

/* ============================================================
 * Hero carousel
 * ============================================================ */
.g266-hero {
  position: relative;
  margin: 16px 0 6px;
  border-radius: var(--g266-radius);
  overflow: hidden;
  box-shadow: var(--g266-shadow);
}
.g266-hero-track { position: relative; height: 230px; }
.g266-hero-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 18px;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .8s ease, transform .8s ease;
  background-size: cover; background-position: center;
  color: var(--g266-text);
}
.g266-hero-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.78) 100%);
}
.g266-hero-slide > * { position: relative; z-index: 2; }
.g266-hero-slide.g266-slide-active { opacity: 1; transform: scale(1); }
.g266-hero-tag {
  display: inline-block;
  background: var(--g266-hot);
  color: #fff;
  font-size: 1.1rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 8px; width: fit-content;
  text-transform: uppercase; letter-spacing: .5px;
}
.g266-hero-slide h2 { margin: 0 0 6px; font-size: 2.2rem; line-height: 1.2; }
.g266-hero-slide p { margin: 0 0 12px; font-size: 1.35rem; color: var(--g266-light); }
.g266-hero-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 5;
}
.g266-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s;
  border: 0; padding: 0;
}
.g266-hero-dot.g266-dot-active { background: var(--g266-accent); width: 22px; border-radius: 4px; }

/* ============================================================
 * Marquee / notice strip
 * ============================================================ */
.g266-notice {
  display: flex; align-items: center; gap: 10px;
  background: #181818;
  border: 1px solid var(--g266-line);
  border-radius: var(--g266-radius-sm);
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 1.3rem;
  color: var(--g266-text-dim);
  overflow: hidden;
}
.g266-notice .material-icons-outlined { color: var(--g266-hot); font-size: 2rem; }
.g266-notice b { color: var(--g266-accent-2); }

/* ============================================================
 * Section headings
 * ============================================================ */
.g266-section { margin: 24px 0; }
.g266-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
  border-left: 4px solid var(--g266-accent);
  padding-left: 10px;
}
.g266-section-head h2 {
  margin: 0; font-size: 1.9rem; color: var(--g266-text);
}
.g266-section-head h2 em { color: var(--g266-accent-2); font-style: normal; }
.g266-section-head a { font-size: 1.3rem; color: var(--g266-accent); }

/* ============================================================
 * Quick category cards
 * ============================================================ */
.g266-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.g266-cat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  background: linear-gradient(140deg, var(--g266-card), #1c1c1c);
  border: 1px solid var(--g266-line);
  border-radius: var(--g266-radius);
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, border-color .2s ease;
}
.g266-cat-card:hover { transform: translateY(-3px); border-color: var(--g266-accent); text-decoration: none; }
.g266-cat-card i, .g266-cat-card .material-icons-outlined {
  font-size: 2.8rem; color: var(--g266-accent-2);
}
.g266-cat-card span { color: var(--g266-text); font-weight: 600; font-size: 1.4rem; }

/* ============================================================
 * Filter tabs
 * ============================================================ */
.g266-filter {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.g266-filter::-webkit-scrollbar { display: none; }
.g266-filter-tab {
  flex: 0 0 auto;
  border: 1px solid var(--g266-line);
  background: #262626;
  color: var(--g266-text-dim);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.3rem; font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.g266-filter-tab.g266-tab-active,
.g266-filter-tab:hover {
  background: var(--g266-accent);
  color: #1a1a1a;
  border-color: var(--g266-accent);
}

/* ============================================================
 * Game grid & cards
 * ============================================================ */
.g266-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.g266-game-card {
  position: relative;
  border-radius: var(--g266-radius-sm);
  overflow: hidden;
  background: var(--g266-card);
  border: 1px solid var(--g266-line);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.g266-game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.5); border-color: var(--g266-accent); }
.g266-game-card .g266-game-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111;
  overflow: hidden;
}
.g266-game-card .g266-game-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.g266-game-card:hover .g266-game-thumb img { transform: scale(1.08); }
.g266-game-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.55);
  opacity: 0; transition: opacity .25s ease;
}
.g266-game-card:hover .g266-game-overlay { opacity: 1; }
.g266-play-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g266-accent);
  color: #1a1a1a;
  padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: 1.25rem;
}
.g266-game-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--g266-hot);
  color: #fff;
  font-size: 1rem; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
  text-transform: uppercase;
}
.g266-game-badge--new { background: var(--g266-accent); color: #1a1a1a; }
.g266-game-name {
  padding: 8px 10px;
  font-size: 1.25rem;
  color: var(--g266-text);
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}

/* ============================================================
 * Feature / promo banner
 * ============================================================ */
.g266-promo {
  display: block;
  background: linear-gradient(135deg, #ff4500 0%, #ffb347 100%);
  color: #1a1a1a;
  border-radius: var(--g266-radius);
  padding: 18px;
  margin: 22px 0;
  box-shadow: var(--g266-shadow);
}
.g266-promo h3 { margin: 0 0 4px; font-size: 1.8rem; }
.g266-promo p { margin: 0 0 12px; font-size: 1.3rem; }
.g266-promo .g266-btn--register { background: #1a1a1a; color: var(--g266-accent); }

/* SEO long-form content */
.g266-content {
  background: #262626;
  border: 1px solid var(--g266-line);
  border-radius: var(--g266-radius);
  padding: 18px 16px;
  margin: 22px 0;
  color: var(--g266-text-dim);
  font-size: 1.45rem; line-height: 1.7;
}
.g266-content h2 { color: var(--g266-text); font-size: 1.9rem; margin: 18px 0 8px; }
.g266-content h2:first-child { margin-top: 0; }
.g266-content h3 { color: var(--g266-accent-2); font-size: 1.6rem; margin: 14px 0 6px; }
.g266-content p { margin: 0 0 12px; }
.g266-content ul { margin: 0 0 12px; padding-left: 20px; }
.g266-content li { margin-bottom: 6px; }
.g266-content a { color: var(--g266-accent); font-weight: 600; }
.g266-content strong { color: var(--g266-accent); }

/* ============================================================
 * FAQ
 * ============================================================ */
.g266-faq-list { display: grid; gap: 10px; }
.g266-faq-item {
  background: #262626;
  border: 1px solid var(--g266-line);
  border-radius: var(--g266-radius-sm);
  overflow: hidden;
}
.g266-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: 0; cursor: pointer;
  color: var(--g266-text);
  text-align: left;
  font-size: 1.5rem; font-weight: 600;
  padding: 14px 16px;
}
.g266-faq-q .material-icons-outlined { color: var(--g266-accent); transition: transform .25s; }
.g266-faq-item.g266-faq-open .g266-faq-q .material-icons-outlined { transform: rotate(180deg); }
.g266-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--g266-text-dim);
  font-size: 1.4rem; line-height: 1.6;
  padding: 0 16px;
}
.g266-faq-item.g266-faq-open .g266-faq-a { max-height: 360px; padding: 0 16px 14px; }

/* ============================================================
 * Footer
 * ============================================================ */
.g266-footer {
  background: #1a1a1a;
  border-top: 3px solid var(--g266-accent);
  padding: 26px 0 30px;
  margin-top: 30px;
  color: var(--g266-text-dim);
}
.g266-footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.g266-footer h4 {
  color: var(--g266-accent-2);
  font-size: 1.5rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.g266-footer ul { list-style: none; margin: 0; padding: 0; }
.g266-footer li { margin-bottom: 7px; }
.g266-footer a { color: var(--g266-text-dim); font-size: 1.35rem; }
.g266-footer a:hover { color: var(--g266-accent); }
.g266-footer p { font-size: 1.3rem; line-height: 1.6; margin: 0 0 8px; }
.g266-footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.g266-footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.g266-footer-brand b { color: var(--g266-text); font-size: 1.7rem; }
.g266-footer-bottom {
  border-top: 1px solid var(--g266-line);
  margin-top: 20px; padding-top: 16px;
  text-align: center;
  font-size: 1.25rem;
  color: #999;
}
.g266-ssl-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 12px;
}
.g266-ssl-row span {
  display: inline-flex; align-items: center; gap: 6px;
  background: #262626;
  border: 1px solid var(--g266-line);
  padding: 5px 10px; border-radius: 6px;
  font-size: 1.2rem;
}
.g266-ssl-row i { color: var(--g266-accent); }

/* ============================================================
 * Mobile bottom nav (5 buttons)
 * ============================================================ */
.g266-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--g266-nav-h);
  background: linear-gradient(180deg, #2a2a2a, #161616);
  border-top: 2px solid var(--g266-accent);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,.5);
}
.g266-bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--g266-text-dim);
  font-size: 1.1rem; font-weight: 600;
  text-decoration: none;
  position: relative;
  min-width: 60px; min-height: 60px;
  padding: 6px 2px;
  transition: color .2s ease;
}
.g266-bottom-nav a:hover { text-decoration: none; color: var(--g266-accent); }
.g266-bottom-nav a i,
.g266-bottom-nav a .material-icons-outlined,
.g266-bottom-nav a ion-icon {
  font-size: 2.4rem;
}
.g266-bottom-nav a.g266-nav-active { color: var(--g266-accent); }
.g266-bottom-nav a.g266-nav-active::before {
  content: "";
  position: absolute; top: -2px; left: 30%; right: 30%;
  height: 3px; border-radius: 0 0 4px 4px;
  background: var(--g266-accent);
}
.g266-bottom-nav a.g266-nav-hot i { color: var(--g266-hot); }

/* Back to top button */
.g266-to-top {
  position: fixed;
  bottom: calc(var(--g266-nav-h) + 14px);
  right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--g266-accent);
  color: #1a1a1a;
  border: 0; cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.5);
  z-index: 999;
  font-size: 2.2rem;
}

/* Main content offset so bottom nav never overlaps content */
main { padding-bottom: calc(var(--g266-nav-h) + 18px); }

/* ============================================================
 * Desktop / tablet >= 769px
 * ============================================================ */
@media (min-width: 769px) {
  .g266-hamburger { display: none; }
  .g266-desktop-nav { display: flex; align-items: center; gap: 18px; }
  .g266-desktop-nav a {
    color: var(--g266-text-dim);
    font-size: 1.4rem; font-weight: 600;
    padding: 6px 2px;
    position: relative;
  }
  .g266-desktop-nav a:hover { color: var(--g266-accent); text-decoration: none; }
  .g266-desktop-nav a.g266-nav-active { color: var(--g266-accent); }
  .g266-desktop-nav a.g266-nav-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--g266-accent);
  }
  .g266-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
  .g266-cat-grid { grid-template-columns: repeat(5, 1fr); }
  .g266-game-grid { grid-template-columns: repeat(5, 1fr); }
  .g266-hero-track { height: 340px; }
  .g266-hero-slide h2 { font-size: 3rem; }
  .g266-hero-slide p { font-size: 1.6rem; }
  .g266-footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .g266-container { padding: 0 22px; }
}
