/* ============================================================
   Casino Plus Apps - mobile-first layout
   Prefix: g8f2-  (classes + CSS variables)
   Palette: #2E4057 (deep slate bg) | #D8BFD8 (light thistle text)
            #CD853F (peru accent) | #6A5ACD (slate blue) | #FFCC33 (gold)
   Canvas: 320-430px mobile, centered on wide screens.
   ============================================================ */

:root{
  --g8f2-bg:        #2E4057;
  --g8f2-bg-2:      #243345;
  --g8f2-bg-3:      #1a2632;
  --g8f2-card:      #344a63;
  --g8f2-card-2:    #3d5573;
  --g8f2-text:      #D8BFD8;
  --g8f2-text-soft: #b9a4c4;
  --g8f2-text-mute: #8a7d99;
  --g8f2-accent:    #CD853F;
  --g8f2-blue:      #6A5ACD;
  --g8f2-gold:      #FFCC33;
  --g8f2-white:     #ffffff;
  --g8f2-border:    rgba(216,191,216,0.14);
  --g8f2-shadow:    0 6px 22px rgba(0,0,0,0.35);
  --g8f2-radius:    14px;
  --g8f2-radius-sm: 10px;
  --g8f2-max:       430px;
  --g8f2-header-h:  58px;
  --g8f2-nav-h:     64px;
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{overflow-x:hidden;}
html{scroll-behavior:smooth;}
body{
  font-family:"Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",Arial,sans-serif;
  background:var(--g8f2-bg);
  color:var(--g8f2-text);
  line-height:1.55;
  font-size:15px;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  padding-bottom:calc(var(--g8f2-nav-h) + 14px);
}
img{display:block;max-width:100%;}
a{color:var(--g8f2-gold);text-decoration:none;}
a:focus-visible{outline:2px solid var(--g8f2-gold);outline-offset:2px;border-radius:4px;}

/* Page shell - centered mobile canvas on wide screens */
.g8f2-shell{
  max-width:var(--g8f2-max);
  margin:0 auto;
  background:linear-gradient(180deg,var(--g8f2-bg) 0%,var(--g8f2-bg-2) 100%);
  min-height:100vh;
  position:relative;
  box-shadow:0 0 60px rgba(0,0,0,0.45);
}

/* ============= Header ============= */
.g8f2-header{
  position:sticky;
  top:0;
  z-index:50;
  height:var(--g8f2-header-h);
  background:linear-gradient(90deg,var(--g8f2-bg-3) 0%,var(--g8f2-bg-2) 100%);
  border-bottom:1px solid var(--g8f2-border);
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
}
.g8f2-brand{
  display:flex;align-items:center;gap:8px;flex:1;min-width:0;
}
.g8f2-brand img.g8f2-logo{
  width:36px;height:36px;
  border-radius:9px;object-fit:cover;
  border:1px solid var(--g8f2-gold);
  flex-shrink:0;background:var(--g8f2-bg-3);
}
.g8f2-brand-text{display:flex;flex-direction:column;line-height:1.1;min-width:0;}
.g8f2-brand-text strong{
  color:var(--g8f2-white);font-size:14px;letter-spacing:.2px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.g8f2-brand-text small{color:var(--g8f2-gold);font-size:10px;letter-spacing:.5px;text-transform:uppercase;}

.g8f2-header-actions{display:flex;align-items:center;gap:6px;}
.g8f2-btn{
  border:none;cursor:pointer;
  font-weight:700;font-size:12px;
  padding:8px 12px;min-height:36px;min-width:44px;
  border-radius:999px;
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  transition:transform .15s ease, filter .15s ease;
}
.g8f2-btn:active{transform:scale(.95);}
.g8f2-btn-register{
  background:linear-gradient(135deg,var(--g8f2-gold) 0%,var(--g8f2-accent) 100%);
  color:#3a2400;
}
.g8f2-btn-login{
  background:transparent;color:var(--g8f2-text);
  border:1px solid var(--g8f2-border);
}
.g8f2-btn-menu{
  background:transparent;color:var(--g8f2-text);
  border:1px solid var(--g8f2-border);
  width:38px;height:38px;border-radius:10px;
  font-size:18px;line-height:1;padding:0;
}
.g8f2-btn-menu:hover{background:var(--g8f2-card);}

/* ============= Layered dropdown menu ============= */
.g8f2-menu{
  position:absolute;
  top:var(--g8f2-header-h);
  left:0;right:0;
  background:var(--g8f2-bg-3);
  border-bottom:1px solid var(--g8f2-border);
  padding:10px 14px 16px;
  display:none;
  z-index:49;
  box-shadow:var(--g8f2-shadow);
}
.g8f2-menu.open{display:block;}
.g8f2-menu-section h4{
  font-size:11px;letter-spacing:1px;text-transform:uppercase;
  color:var(--g8f2-gold);margin:10px 0 6px 2px;font-weight:700;
}
.g8f2-menu-section h4:first-child{margin-top:0;}
.g8f2-menu-section ul{list-style:none;display:flex;flex-direction:column;gap:2px;}
.g8f2-menu-section li a{
  display:block;padding:10px 12px;
  color:var(--g8f2-text);font-size:14px;
  border-radius:8px;
  border-left:3px solid transparent;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.g8f2-menu-section li a:hover,
.g8f2-menu-section li a.active{
  background:var(--g8f2-card);
  border-left-color:var(--g8f2-gold);
  color:var(--g8f2-white);
}

/* ============= Hero carousel ============= */
.g8f2-hero{
  position:relative;
  margin:12px;
  border-radius:var(--g8f2-radius);
  overflow:hidden;
  box-shadow:var(--g8f2-shadow);
  background:#000;
}
.g8f2-hero-track{
  display:flex;
  transition:transform .45s cubic-bezier(.25,.8,.35,1);
  will-change:transform;
}
.g8f2-hero-slide{
  flex:0 0 100%;
  position:relative;
  aspect-ratio:16/9;
}
.g8f2-hero-slide img{width:100%;height:100%;object-fit:cover;}
.g8f2-hero-cap{
  position:absolute;left:0;right:0;bottom:0;
  padding:14px;
  background:linear-gradient(180deg,transparent 0%,rgba(20,28,38,.85) 70%);
}
.g8f2-hero-cap h2{color:var(--g8f2-white);font-size:16px;line-height:1.25;margin-bottom:6px;}
.g8f2-hero-cap .g8f2-btn{margin-top:4px;font-size:12px;padding:8px 16px;}
.g8f2-hero-dots{position:absolute;bottom:8px;right:12px;display:flex;gap:5px;}
.g8f2-hero-dot{
  width:7px;height:7px;border-radius:50%;
  background:rgba(255,255,255,.45);cursor:pointer;
  border:none;padding:0;transition:all .25s ease;
}
.g8f2-hero-dot.active{background:var(--g8f2-gold);width:18px;border-radius:4px;}

/* ============= Section heading ============= */
.g8f2-section{margin:18px 12px 6px;}
.g8f2-section-head{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:10px;gap:8px;
}
.g8f2-section-head h2{
  font-size:16px;color:var(--g8f2-white);font-weight:700;
  position:relative;padding-left:12px;line-height:1.2;
}
.g8f2-section-head h2::before{
  content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;
  border-radius:2px;background:linear-gradient(180deg,var(--g8f2-gold),var(--g8f2-accent));
}
.g8f2-section-head .g8f2-more{font-size:12px;color:var(--g8f2-gold);white-space:nowrap;}
.g8f2-section-intro{font-size:13px;color:var(--g8f2-text-soft);margin:0 2px 8px;}
.g8f2-section-intro a{text-decoration:underline;}

/* ============= Category strip ============= */
.g8f2-cat-strip{
  display:flex;gap:8px;overflow-x:auto;
  padding:4px 12px 10px;
  scrollbar-width:none;-ms-overflow-style:none;
}
.g8f2-cat-strip::-webkit-scrollbar{display:none;}
.g8f2-cat-pill{
  flex-shrink:0;
  padding:7px 14px;border-radius:999px;
  font-size:12px;font-weight:600;
  background:var(--g8f2-card);color:var(--g8f2-text);
  border:1px solid var(--g8f2-border);
  cursor:pointer;transition:all .15s ease;
}
.g8f2-cat-pill.active{
  background:linear-gradient(135deg,var(--g8f2-gold),var(--g8f2-accent));
  color:#3a2400;border-color:transparent;
}

/* ============= Game grid ============= */
.g8f2-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  padding:0 12px;
}
@media (min-width:400px){.g8f2-grid{grid-template-columns:repeat(5,1fr);gap:10px;}}
.g8f2-game{
  background:var(--g8f2-card);
  border-radius:var(--g8f2-radius-sm);
  overflow:hidden;cursor:pointer;
  border:1px solid var(--g8f2-border);
  transition:transform .15s ease, border-color .15s ease;
  display:flex;flex-direction:column;
}
.g8f2-game:hover{border-color:var(--g8f2-gold);transform:translateY(-2px);}
.g8f2-game:active{transform:scale(.97);}
.g8f2-game-thumb{position:relative;aspect-ratio:1/1;background:var(--g8f2-bg-3);}
.g8f2-game-thumb img{width:100%;height:100%;object-fit:cover;}
.g8f2-game-tag{
  position:absolute;top:4px;left:4px;
  background:var(--g8f2-accent);color:#1c1206;
  font-size:9px;font-weight:700;
  padding:2px 6px;border-radius:6px;letter-spacing:.4px;
}
.g8f2-game-tag.hot{background:linear-gradient(135deg,#ff5b5b,#cd853f);}
.g8f2-game-name{
  padding:6px 6px 7px;
  font-size:11px;text-align:center;color:var(--g8f2-text);
  line-height:1.25;min-height:30px;
  display:flex;align-items:center;justify-content:center;
  background:var(--g8f2-card-2);word-break:break-word;
}

/* ============= Info cards / winners ============= */
.g8f2-cards-row{
  display:grid;grid-template-columns:repeat(2,1fr);gap:10px;
  padding:4px 12px 8px;
}
.g8f2-info-card{
  background:var(--g8f2-card);
  border:1px solid var(--g8f2-border);
  border-radius:var(--g8f2-radius-sm);
  padding:12px;display:flex;flex-direction:column;gap:6px;
  position:relative;overflow:hidden;
}
.g8f2-info-card::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--g8f2-gold),var(--g8f2-blue));
}
.g8f2-info-card h3{font-size:13px;color:var(--g8f2-white);}
.g8f2-info-card p{font-size:12px;color:var(--g8f2-text-soft);line-height:1.5;}
.g8f2-info-card .g8f2-amount{color:var(--g8f2-gold);font-weight:700;font-size:15px;}
.g8f2-info-card .g8f2-meta{color:var(--g8f2-text-mute);font-size:10px;}

.g8f2-winners{
  background:var(--g8f2-bg-3);
  border:1px solid var(--g8f2-border);
  border-radius:var(--g8f2-radius-sm);
  padding:10px 12px;
  margin:0 12px 8px;
}
.g8f2-winners ul{list-style:none;display:flex;flex-direction:column;gap:6px;}
.g8f2-winners li{
  display:flex;align-items:center;gap:8px;
  font-size:12px;color:var(--g8f2-text-soft);
  padding:5px 0;border-bottom:1px dashed var(--g8f2-border);
}
.g8f2-winners li:last-child{border-bottom:none;}
.g8f2-winners .g8f2-wname{color:var(--g8f2-white);font-weight:600;}
.g8f2-winners .g8f2-wgame{flex:1;color:var(--g8f2-text-soft);}
.g8f2-winners .g8f2-wamt{color:var(--g8f2-gold);font-weight:700;}

/* How-to-play steps */
.g8f2-steps{display:flex;flex-direction:column;gap:8px;padding:0 12px;}
.g8f2-step{
  display:flex;gap:12px;align-items:flex-start;
  background:var(--g8f2-card);
  border:1px solid var(--g8f2-border);
  border-radius:var(--g8f2-radius-sm);
  padding:12px;
}
.g8f2-step-num{
  flex-shrink:0;width:30px;height:30px;border-radius:50%;
  background:linear-gradient(135deg,var(--g8f2-gold),var(--g8f2-accent));
  color:#3a2400;font-weight:700;font-size:14px;
  display:flex;align-items:center;justify-content:center;
}
.g8f2-step h4{font-size:13px;color:var(--g8f2-white);margin-bottom:2px;}
.g8f2-step p{font-size:12px;color:var(--g8f2-text-soft);line-height:1.5;}

/* Category highlight tiles */
.g8f2-cat-tiles{
  display:grid;grid-template-columns:repeat(2,1fr);gap:10px;
  padding:4px 12px 10px;
}
.g8f2-cat-tile{
  background:var(--g8f2-card);
  border:1px solid var(--g8f2-border);
  border-radius:var(--g8f2-radius-sm);
  padding:14px 12px;
  position:relative;overflow:hidden;
  cursor:pointer;transition:transform .15s ease;
}
.g8f2-cat-tile:active{transform:scale(.97);}
.g8f2-cat-tile h3{color:var(--g8f2-white);font-size:14px;margin-bottom:4px;}
.g8f2-cat-tile p{color:var(--g8f2-text-soft);font-size:11px;line-height:1.4;}
.g8f2-cat-ico{
  width:34px;height:34px;border-radius:8px;
  background:linear-gradient(135deg,var(--g8f2-blue),var(--g8f2-accent));
  color:var(--g8f2-white);
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:700;margin-bottom:8px;
}

/* SEO content block */
.g8f2-seo{
  padding:8px 14px 18px;
  font-size:13px;color:var(--g8f2-text-soft);line-height:1.7;
}
.g8f2-seo h2{color:var(--g8f2-white);font-size:16px;margin:14px 0 6px;font-weight:700;}
.g8f2-seo h2:first-child{margin-top:0;}
.g8f2-seo p{margin-bottom:8px;}
.g8f2-seo ul{margin:6px 0 10px 18px;}
.g8f2-seo li{margin-bottom:4px;}
.g8f2-seo a{color:var(--g8f2-gold);text-decoration:underline;}

/* Extended footer */
.g8f2-ext-footer{
  margin:18px 0 0;
  padding:18px 14px 16px;
  background:var(--g8f2-bg-3);
  border-top:1px solid var(--g8f2-border);
}
.g8f2-ext-footer h3{
  color:var(--g8f2-gold);font-size:12px;letter-spacing:1px;text-transform:uppercase;
  margin:14px 0 8px;font-weight:700;
}
.g8f2-ext-footer h3:first-child{margin-top:0;}
.g8f2-ext-footer p{font-size:12px;color:var(--g8f2-text-soft);line-height:1.6;}
.g8f2-ext-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px;}
.g8f2-ext-grid a{
  display:block;font-size:12px;color:var(--g8f2-text);
  padding:6px 0;border-bottom:1px dashed var(--g8f2-border);
}
.g8f2-ext-grid a:hover{color:var(--g8f2-gold);}
.g8f2-ext-promos{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px;}
.g8f2-ext-promo{
  background:linear-gradient(135deg,var(--g8f2-card),var(--g8f2-card-2));
  border:1px solid var(--g8f2-border);
  border-radius:var(--g8f2-radius-sm);
  padding:10px 12px;font-size:12px;color:var(--g8f2-text);
  text-align:center;cursor:pointer;font-weight:600;
  transition:transform .15s ease, border-color .15s ease;
}
.g8f2-ext-promo:active{transform:scale(.96);}
.g8f2-ext-promo:hover{border-color:var(--g8f2-gold);color:var(--g8f2-white);}
.g8f2-ext-promo span{display:block;color:var(--g8f2-gold);font-size:10px;margin-top:2px;}
.g8f2-disclaimer{
  margin-top:14px;padding:10px 12px;
  background:rgba(106,90,205,.08);
  border-left:3px solid var(--g8f2-blue);
  border-radius:6px;
  font-size:11px;color:var(--g8f2-text-mute);line-height:1.5;
}

/* Footer */
.g8f2-footer{
  padding:14px 14px calc(var(--g8f2-nav-h) + 18px);
  text-align:center;font-size:11px;color:var(--g8f2-text-mute);
  border-top:1px solid var(--g8f2-border);
  background:var(--g8f2-bg-3);
}
.g8f2-footer small{display:block;line-height:1.5;}

/* Mobile bottom nav (layered) */
.g8f2-nav{
  position:fixed;
  left:50%;transform:translateX(-50%);
  bottom:0;
  width:100%;max-width:var(--g8f2-max);
  height:var(--g8f2-nav-h);
  background:linear-gradient(180deg,var(--g8f2-bg-3) 0%,#101820 100%);
  border-top:1px solid var(--g8f2-border);
  display:grid;grid-template-columns:repeat(5,1fr);
  z-index:60;
  box-shadow:0 -4px 20px rgba(0,0,0,0.4);
}
.g8f2-nav::before{
  content:"";position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--g8f2-gold),transparent);
}
.g8f2-nav-btn{
  background:transparent;border:none;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;color:var(--g8f2-text-mute);
  font-size:10px;font-weight:500;
  padding:6px 2px 8px;position:relative;
  transition:color .15s ease;min-height:44px;
}
.g8f2-nav-btn svg{width:22px;height:22px;transition:transform .2s ease;}
.g8f2-nav-btn:hover{color:var(--g8f2-text);}
.g8f2-nav-btn:active svg{transform:scale(.85);}
.g8f2-nav-btn.active{color:var(--g8f2-gold);}
.g8f2-nav-btn.active svg{transform:translateY(-2px) scale(1.08);}
.g8f2-nav-btn.active::after{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:26px;height:3px;border-radius:0 0 4px 4px;background:var(--g8f2-gold);
}
.g8f2-nav-btn.g8f2-nav-cta{color:var(--g8f2-gold);}
.g8f2-nav-btn.g8f2-nav-cta svg{
  background:linear-gradient(135deg,var(--g8f2-gold),var(--g8f2-accent));
  color:#3a2400;border-radius:50%;padding:3px;
  width:30px;height:30px;margin-top:-6px;
  box-shadow:0 3px 10px rgba(255,204,51,.35);
}

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