/* ============================================================
   color game online - ui-87ed.css
   Mobile-first Philippine casino guide stylesheet.
   All custom classes & CSS variables use the "ged9-" prefix.
   Palette: #212F3D (deep ink) / #C9C9FF (lavender text)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  --ged9-bg:#0f1a26;
  --ged9-bg-2:#172738;
  --ged9-surface:#212F3D;
  --ged9-surface-2:#2a3b4f;
  --ged9-text:#C9C9FF;
  --ged9-text-soft:#a8a8d8;
  --ged9-muted:#7a8aa3;
  --ged9-accent:#C9C9FF;
  --ged9-accent-2:#8d8dff;
  --ged9-warm:#ffd76b;
  --ged9-pink:#ff8fb0;
  --ged9-green:#5fe0a8;
  --ged9-line:rgba(201,201,255,.14);
  --ged9-line-strong:rgba(201,201,255,.28);
  --ged9-shadow:0 14px 30px rgba(0,0,0,.35);
  --ged9-shadow-soft:0 6px 18px rgba(0,0,0,.28);
  --ged9-radius:14px;
  --ged9-radius-lg:20px;
  --ged9-radius-pill:999px;
  --ged9-header-h:58px;
  --ged9-bnav-h:72px;
  --ged9-max:430px;
  --ged9-tap:44px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; scroll-behavior:smooth; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  background:radial-gradient(120% 80% at 50% -10%, #1b2c3f 0%, var(--ged9-bg) 55%, #0b1320 100%);
  color:var(--ged9-text);
  line-height:1.55;
  font-size:15px;
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{display:block;max-width:100%;height:auto}
a{color:var(--ged9-accent);text-decoration:none}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
ul,ol{list-style:none}

/* ---------- Mobile canvas frame ---------- */
.ged9-shell{
  max-width:var(--ged9-max);
  margin:0 auto;
  min-height:100vh;
  background:linear-gradient(180deg,#15263a 0%, #11202f 40%, #0e1a27 100%);
  position:relative;
  box-shadow:var(--ged9-shadow);
  padding-bottom:calc(var(--ged9-bnav-h) + 24px);
}

/* ---------- Header ---------- */
.ged9-header{
  position:sticky;top:0;z-index:60;
  height:var(--ged9-header-h);
  background:linear-gradient(180deg, rgba(33,47,61,.96), rgba(33,47,61,.86));
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--ged9-line);
}
.ged9-header-inner{
  height:100%;
  display:flex;align-items:center;gap:10px;
  padding:0 12px;
}
.ged9-brand{
  display:flex;align-items:center;gap:8px;
  flex:1;min-width:0;
}
.ged9-brand-logo{
  width:36px;height:36px;
  border-radius:10px;
  object-fit:cover;
  background:var(--ged9-surface-2);
  border:1px solid var(--ged9-line-strong);
  box-shadow:0 0 0 2px rgba(201,201,255,.08) inset;
  flex:none;
}
.ged9-brand-name{
  font-weight:800;
  font-size:15px;
  letter-spacing:.3px;
  line-height:1.1;
  color:#fff;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
.ged9-brand-name span{display:block;font-size:10px;font-weight:600;color:var(--ged9-accent);letter-spacing:1.2px;text-transform:uppercase}
.ged9-header-actions{display:flex;align-items:center;gap:6px}
.ged9-btn{
  min-height:var(--ged9-tap);
  padding:0 14px;
  border-radius:var(--ged9-radius-pill);
  font-weight:700;font-size:13px;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  transition:transform .18s ease, background .25s ease, color .2s ease;
  white-space:nowrap;
}
.ged9-btn:active{transform:translateY(1px) scale(.98)}
.ged9-btn-ghost{
  color:var(--ged9-text);
  border:1px solid var(--ged9-line-strong);
  background:rgba(201,201,255,.06);
}
.ged9-btn-solid{
  color:#0f1a26;
  background:linear-gradient(135deg,#d8d8ff 0%, var(--ged9-accent) 100%);
  box-shadow:0 6px 14px rgba(141,141,255,.32);
}
.ged9-menu-btn{
  width:var(--ged9-tap);height:var(--ged9-tap);
  border-radius:12px;
  display:grid;place-items:center;
  background:rgba(201,201,255,.06);
  border:1px solid var(--ged9-line);
}
.ged9-menu-btn span{display:block;width:18px;height:2px;background:var(--ged9-accent);border-radius:2px;position:relative}
.ged9-menu-btn span::before,.ged9-menu-btn span::after{content:"";position:absolute;left:0;width:18px;height:2px;background:var(--ged9-accent);border-radius:2px}
.ged9-menu-btn span::before{top:-6px}
.ged9-menu-btn span::after{top:6px}

/* ---------- Expandable nav menu ---------- */
.ged9-nav-wrap{
  position:sticky;top:var(--ged9-header-h);z-index:55;
  max-height:0;overflow:hidden;
  transition:max-height .32s ease;
  background:linear-gradient(180deg, rgba(15,26,38,.98), rgba(15,26,38,.92));
  border-bottom:1px solid transparent;
}
.ged9-nav-wrap.ged9-is-open{max-height:520px;border-bottom-color:var(--ged9-line);box-shadow:var(--ged9-shadow-soft)}
.ged9-nav{
  padding:14px 12px 18px;
  display:grid;grid-template-columns:repeat(2,1fr);gap:8px;
}
.ged9-nav a,.ged9-nav button{
  display:flex;align-items:center;gap:8px;
  min-height:42px;padding:0 12px;
  border-radius:10px;
  font-size:13px;font-weight:600;color:var(--ged9-text-soft);
  background:rgba(201,201,255,.04);
  border:1px solid var(--ged9-line);
  text-align:left;
  transition:background .2s ease, color .2s ease, transform .18s ease;
}
.ged9-nav a:active,.ged9-nav button:active{transform:scale(.98)}
.ged9-nav .ged9-dot{width:6px;height:6px;border-radius:50%;background:var(--ged9-accent-2);flex:none}
.ged9-nav a[aria-current="page"]{color:#fff;background:rgba(141,141,255,.18);border-color:var(--ged9-line-strong)}

/* ---------- Sections ---------- */
.ged9-main{padding:14px 12px 8px}
.ged9-section{margin-bottom:22px}
.ged9-section-head{
  display:flex;align-items:center;justify-content:space-between;
  margin:0 2px 10px;
}
.ged9-section-title{
  font-size:16px;font-weight:800;color:#fff;
  display:flex;align-items:center;gap:8px;
}
.ged9-section-title::before{
  content:"";width:4px;height:16px;border-radius:2px;
  background:linear-gradient(180deg,var(--ged9-accent),var(--ged9-accent-2));
}
.ged9-section-more{font-size:12px;color:var(--ged9-text-soft);font-weight:600}

/* ---------- Hero carousel ---------- */
.ged9-hero{
  position:relative;
  border-radius:var(--ged9-radius-lg);
  overflow:hidden;
  box-shadow:var(--ged9-shadow);
  margin-bottom:18px;
}
.ged9-hero-track{
  display:flex;
  transition:transform .45s cubic-bezier(.25,.8,.3,1);
}
.ged9-hero-slide{
  flex:0 0 100%;
  position:relative;
  aspect-ratio:16/9;
}
.ged9-hero-slide img{width:100%;height:100%;object-fit:cover}
.ged9-hero-overlay{
  position:absolute;inset:0;
  background:linear-gradient(90deg, rgba(11,19,32,.86) 0%, rgba(11,19,32,.45) 55%, rgba(11,19,32,.05) 100%);
  padding:18px 16px;
  display:flex;flex-direction:column;justify-content:flex-end;
}
.ged9-hero-tag{
  align-self:flex-start;
  font-size:10px;letter-spacing:1.2px;text-transform:uppercase;font-weight:700;
  color:#0f1a26;background:var(--ged9-accent);
  padding:3px 8px;border-radius:6px;margin-bottom:8px;
}
.ged9-hero-title{font-size:18px;font-weight:800;color:#fff;line-height:1.25;margin-bottom:4px}
.ged9-hero-text{font-size:12px;color:var(--ged9-text-soft);margin-bottom:10px;max-width:90%}
.ged9-hero-cta{
  align-self:flex-start;
  min-height:36px;padding:0 16px;
  border-radius:var(--ged9-radius-pill);
  background:linear-gradient(135deg,#d8d8ff,var(--ged9-accent));
  color:#0f1a26;font-weight:800;font-size:12px;
  display:inline-flex;align-items:center;gap:6px;
  box-shadow:0 6px 14px rgba(141,141,255,.32);
}
.ged9-hero-dots{
  position:absolute;bottom:8px;right:12px;
  display:flex;gap:5px;
}
.ged9-hero-dots button{
  width:7px;height:7px;border-radius:50%;
  background:rgba(201,201,255,.35);
  transition:all .25s ease;
}
.ged9-hero-dots button.ged9-is-active{background:var(--ged9-accent);width:18px;border-radius:4px}

/* ---------- Action strip ---------- */
.ged9-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:8px;
  margin-bottom:18px;
}
.ged9-strip-item{
  background:rgba(201,201,255,.05);
  border:1px solid var(--ged9-line);
  border-radius:12px;
  padding:10px 6px;
  text-align:center;
  transition:transform .18s ease, background .2s ease;
}
.ged9-strip-item:active{transform:translateY(1px)}
.ged9-strip-ic{
  width:30px;height:30px;margin:0 auto 4px;
  border-radius:8px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(141,141,255,.25),rgba(201,201,255,.12));
  font-size:16px;
}
.ged9-strip-label{font-size:10.5px;font-weight:700;color:var(--ged9-text)}

/* ---------- Game grid ---------- */
.ged9-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}
.ged9-game{
  display:block;
  background:rgba(201,201,255,.04);
  border:1px solid var(--ged9-line);
  border-radius:12px;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  text-align:center;
}
.ged9-game:active{transform:translateY(2px) scale(.97);border-color:var(--ged9-line-strong)}
.ged9-game-img{
  position:relative;
  aspect-ratio:1/1;
  background:linear-gradient(135deg,#1a2c40,#27394e);
}
.ged9-game-img img{width:100%;height:100%;object-fit:cover}
.ged9-game-badge{
  position:absolute;top:4px;left:4px;
  font-size:9px;font-weight:800;letter-spacing:.4px;
  padding:2px 6px;border-radius:5px;
  background:linear-gradient(135deg,#ff8fb0,#ff6f91);
  color:#fff;
}
.ged9-game-badge.ged9-hot{background:linear-gradient(135deg,#ffd76b,#ff9f4a)}
.ged9-game-badge.ged9-new{background:linear-gradient(135deg,#5fe0a8,#27c08a);color:#0f1a26}
.ged9-game-name{
  font-size:10.5px;font-weight:600;color:var(--ged9-text);
  padding:5px 4px 6px;
  line-height:1.25;
  min-height:30px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}

/* ---------- Category label pills ---------- */
.ged9-cat-row{
  display:flex;gap:6px;overflow-x:auto;
  padding:2px 2px 10px;
  scrollbar-width:none;
}
.ged9-cat-row::-webkit-scrollbar{display:none}
.ged9-cat-pill{
  flex:none;
  padding:6px 12px;
  border-radius:var(--ged9-radius-pill);
  font-size:11.5px;font-weight:700;
  background:rgba(201,201,255,.06);
  border:1px solid var(--ged9-line);
  color:var(--ged9-text-soft);
}

/* ---------- Promo banner row ---------- */
.ged9-promo-row{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px;
}
.ged9-promo-card{
  border-radius:14px;overflow:hidden;position:relative;
  background:linear-gradient(135deg,#2a3b4f,#1a2c40);
  border:1px solid var(--ged9-line);
  padding:12px;
  min-height:88px;
  display:flex;flex-direction:column;justify-content:space-between;
}
.ged9-promo-card h3{font-size:13px;font-weight:800;color:#fff;margin-bottom:2px}
.ged9-promo-card p{font-size:11px;color:var(--ged9-text-soft)}
.ged9-promo-card .ged9-mini-btn{
  align-self:flex-start;font-size:11px;font-weight:800;color:#0f1a26;
  background:var(--ged9-accent);padding:4px 10px;border-radius:var(--ged9-radius-pill);
}

/* ---------- Info / winners / achievements ---------- */
.ged9-cards-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ged9-cards-3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ged9-info-card{
  background:rgba(201,201,255,.05);
  border:1px solid var(--ged9-line);
  border-radius:14px;
  padding:12px;
}
.ged9-info-card h4{font-size:13px;font-weight:800;color:#fff;margin-bottom:4px}
.ged9-info-card p{font-size:11.5px;color:var(--ged9-text-soft);line-height:1.5}
.ged9-stat-num{font-size:18px;font-weight:800;color:var(--ged9-accent)}
.ged9-stat-label{font-size:10px;color:var(--ged9-muted);text-transform:uppercase;letter-spacing:.6px}

.ged9-winners{
  background:linear-gradient(135deg,#1c2f44,#15263a);
  border:1px solid var(--ged9-line);
  border-radius:14px;
  padding:10px 12px;
}
.ged9-winner{
  display:flex;align-items:center;gap:10px;
  padding:7px 0;
  border-bottom:1px dashed var(--ged9-line);
}
.ged9-winner:last-child{border-bottom:none}
.ged9-winner-avatar{
  width:30px;height:30px;border-radius:50%;
  background:linear-gradient(135deg,var(--ged9-accent-2),var(--ged9-accent));
  color:#0f1a26;font-weight:800;font-size:12px;
  display:grid;place-items:center;flex:none;
}
.ged9-winner-info{flex:1;min-width:0}
.ged9-winner-name{font-size:12px;font-weight:700;color:#fff}
.ged9-winner-game{font-size:10.5px;color:var(--ged9-muted)}
.ged9-winner-amt{font-size:13px;font-weight:800;color:var(--ged9-green);white-space:nowrap}

/* ---------- Steps / checklist ---------- */
.ged9-steps{counter-reset:step;display:grid;gap:8px}
.ged9-step{
  display:flex;gap:10px;align-items:flex-start;
  background:rgba(201,201,255,.04);
  border:1px solid var(--ged9-line);
  border-radius:12px;
  padding:10px 12px;
}
.ged9-step-num{
  flex:none;
  width:26px;height:26px;border-radius:50%;
  background:linear-gradient(135deg,var(--ged9-accent-2),var(--ged9-accent));
  color:#0f1a26;font-weight:800;font-size:12px;
  display:grid;place-items:center;
}
.ged9-step-title{font-size:13px;font-weight:700;color:#fff;margin-bottom:2px}
.ged9-step-text{font-size:11.5px;color:var(--ged9-text-soft);line-height:1.5}

.ged9-check{display:flex;gap:8px;align-items:flex-start;padding:6px 0;font-size:12px;color:var(--ged9-text)}
.ged9-check::before{content:"\2713";color:var(--ged9-green);font-weight:800;flex:none}

/* ---------- SEO prose ---------- */
.ged9-prose{
  background:rgba(201,201,255,.04);
  border:1px solid var(--ged9-line);
  border-radius:14px;
  padding:14px;
  font-size:13px;line-height:1.65;color:var(--ged9-text-soft);
}
.ged9-prose h2{font-size:15px;font-weight:800;color:#fff;margin:12px 0 6px}
.ged9-prose h2:first-child{margin-top:0}
.ged9-prose h3{font-size:13px;font-weight:700;color:var(--ged9-accent);margin:10px 0 4px}
.ged9-prose p{margin-bottom:8px}
.ged9-prose a{color:var(--ged9-accent);font-weight:600;border-bottom:1px dashed rgba(201,201,255,.4)}
.ged9-prose strong{color:#fff}

/* ---------- CTA block ---------- */
.ged9-cta{
  background:linear-gradient(135deg,#243a55,#1a2c40);
  border:1px solid var(--ged9-line-strong);
  border-radius:18px;
  padding:16px;
  text-align:center;
  position:relative;overflow:hidden;
}
.ged9-cta::before{
  content:"";position:absolute;top:-30%;right:-20%;
  width:160px;height:160px;border-radius:50%;
  background:radial-gradient(circle,rgba(141,141,255,.35),transparent 70%);
}
.ged9-cta h3{position:relative;font-size:16px;font-weight:800;color:#fff;margin-bottom:6px}
.ged9-cta p{position:relative;font-size:12px;color:var(--ged9-text-soft);margin-bottom:12px}
.ged9-cta .ged9-btn-solid{position:relative;min-height:42px;padding:0 22px;font-size:13px}

/* ---------- Extended footer ---------- */
.ged9-ext-footer{
  margin-top:8px;
  border-top:1px solid var(--ged9-line);
  padding:18px 12px 6px;
}
.ged9-ext-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.ged9-ext-tile{
  background:rgba(201,201,255,.05);
  border:1px solid var(--ged9-line);
  border-radius:10px;
  padding:10px 6px;
  text-align:center;
  font-size:11px;font-weight:700;color:var(--ged9-text);
}
.ged9-ext-tile-ic{font-size:16px;margin-bottom:3px}
.ged9-ext-brand{font-size:12px;color:var(--ged9-text-soft);line-height:1.6;margin-bottom:12px}
.ged9-ext-dir h4{font-size:12px;color:#fff;font-weight:800;margin-bottom:8px;letter-spacing:.4px}
.ged9-ext-dir ul{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ged9-ext-dir a{font-size:11.5px;color:var(--ged9-text-soft);padding:4px 0;border-bottom:1px dashed var(--ged9-line)}
.ged9-ext-disclaimer{font-size:10.5px;color:var(--ged9-muted);margin-top:14px;line-height:1.6;border-top:1px dashed var(--ged9-line);padding-top:10px}

/* ---------- Footer ---------- */
.ged9-footer{
  padding:14px 12px 6px;
  text-align:center;
  border-top:1px solid var(--ged9-line);
}
.ged9-footer-brand{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:6px}
.ged9-footer-brand img{width:24px;height:24px;border-radius:6px}
.ged9-footer-brand b{font-size:12px;color:#fff;font-weight:800}
.ged9-footer-copy{font-size:10.5px;color:var(--ged9-muted);line-height:1.6}

/* ---------- Mobile bottom nav (center raised) ---------- */
.ged9-bnav{
  position:fixed;
  bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:var(--ged9-max);
  height:var(--ged9-bnav-h);
  background:linear-gradient(180deg, rgba(23,39,56,.96), rgba(15,26,38,.99));
  backdrop-filter:blur(12px);
  border-top:1px solid var(--ged9-line-strong);
  display:flex;align-items:flex-end;justify-content:space-around;
  padding:0 6px 8px;
  z-index:70;
  box-shadow:0 -8px 24px rgba(0,0,0,.35);
}
.ged9-bnav-item{
  flex:1;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  gap:3px;height:100%;
  color:var(--ged9-muted);
  font-size:9.5px;font-weight:700;letter-spacing:.3px;
  padding-top:6px;
  position:relative;
  transition:color .2s ease, transform .18s ease;
}
.ged9-bnav-item.ged9-is-active{color:var(--ged9-accent)}
.ged9-bnav-ic{
  width:26px;height:26px;
  display:grid;place-items:center;
  border-radius:9px;
  margin-bottom:1px;
  transition:transform .2s ease, background .25s ease;
}
.ged9-bnav-item.ged9-is-active .ged9-bnav-ic{transform:translateY(-3px)}
.ged9-bnav-item svg{width:20px;height:20px;display:block;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ged9-bnav-item.ged9-is-active svg{fill:rgba(201,201,255,.12);stroke:var(--ged9-accent)}

/* Raised center promo button */
.ged9-bnav-item.ged9-raised{flex:1.15}
.ged9-bnav-item.ged9-raised .ged9-bnav-ic{
  width:46px;height:46px;
  background:linear-gradient(135deg,#d8d8ff,var(--ged9-accent));
  color:#0f1a26;
  border-radius:50%;
  margin-top:-22px;
  box-shadow:0 8px 18px rgba(141,141,255,.45), 0 0 0 4px rgba(33,47,61,1);
}
.ged9-bnav-item.ged9-raised svg{stroke:#0f1a26;stroke-width:2;fill:none}
.ged9-bnav-item.ged9-raised.ged9-is-active .ged9-bnav-ic{transform:translateY(-2px) scale(1.04)}
.ged9-bnav-item.ged9-raised.ged9-is-active svg{fill:none;stroke:#0f1a26}
.ged9-bnav-item.ged9-raised{color:var(--ged9-accent)}

/* ---------- Responsive tweaks ---------- */
@media (min-width:375px){
  .ged9-grid{grid-template-columns:repeat(4,1fr)}
  .ged9-hero-title{font-size:20px}
}
@media (min-width:414px){
  .ged9-grid{gap:10px}
  .ged9-hero-title{font-size:22px}
}
/* On wider screens, keep mobile canvas centered with side gutlets */
@media (min-width:480px){
  body{background:#070d15}
  .ged9-shell{margin-top:0;border-left:1px solid var(--ged9-line);border-right:1px solid var(--ged9-line)}
}

/* ---------- Utility ---------- */
.ged9-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}
.ged9-hide{display:none}
