/* ============================================================
   LAYER 1 — Garuda-style gaming frontend
   Dark navy + gold + red. Change palette via :root vars.
   ============================================================ */
:root{
  /* palette matched to real garuda138 promo page: deep violet bg,
     teal action tabs, yellow register CTA, green/orange prize numbers */
  --bg:#140a28; --bg2:#1c1140; --card:#231650; --line:#372a63;
  --gold:#ffd60a; --gold2:#f5b400; --red:#e5252a; --red2:#ff3b3f;
  --teal:#14b8a6; --teal2:#0d9488; --violet:#7c3aed; --violet2:#a855f7;
  --green:#2ee6b0; --orange:#f5a623;
  --txt:#ece8fb; --mut:#a99fce; --white:#fff;
  --rad:14px; --shadow:0 10px 30px rgba(0,0,0,.5);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Segoe UI',system-ui,-apple-system,Roboto,sans-serif;
  background:radial-gradient(1200px 600px at 50% -10%,#16224a 0%,var(--bg) 60%);
  color:var(--txt); min-height:100vh; line-height:1.5;
}
a{color:inherit;text-decoration:none}
.container{max-width:1180px;margin:0 auto;padding:0 18px}
.btn{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;border:0;
  padding:10px 18px;border-radius:10px;font-weight:700;font-size:14px;
  transition:.18s transform,.18s box-shadow;
}
.btn:hover{transform:translateY(-2px)}
.btn-gold{background:linear-gradient(180deg,var(--gold),var(--gold2));color:#20160a;box-shadow:0 8px 18px rgba(255,214,10,.28)}
.btn-teal{background:linear-gradient(180deg,var(--teal),var(--teal2));color:#04211d;box-shadow:0 8px 18px rgba(20,184,166,.3)}
.btn-red{background:linear-gradient(180deg,var(--red2),var(--red));color:#fff;box-shadow:0 8px 18px rgba(229,37,42,.3)}
.btn-ghost{background:transparent;border:1px solid var(--line);color:var(--txt)}

/* ---- header ---- */
header{position:sticky;top:0;z-index:40;background:rgba(11,16,32,.86);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:66px}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;font-size:22px;letter-spacing:.5px}
.logo .mark{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,var(--violet2),var(--teal));display:grid;place-items:center;color:#fff;font-size:20px}
.logo b{background:linear-gradient(90deg,var(--violet2),#fff);-webkit-background-clip:text;background-clip:text;color:transparent}
.menu{display:flex;gap:6px}
.menu a{padding:8px 14px;border-radius:9px;color:var(--mut);font-weight:600;font-size:14px}
.menu a:hover,.menu a.active{color:var(--white);background:var(--bg2)}
.auth{display:flex;gap:10px}
@media(max-width:860px){.menu{display:none}}

/* ---- marquee (RTP ticker) ---- */
.marquee{background:linear-gradient(90deg,#1a1206,#2a1c08);border-bottom:1px solid var(--line);overflow:hidden;white-space:nowrap}
.marquee span{display:inline-block;padding:7px 0;color:var(--gold);font-size:13px;font-weight:600;animation:scroll 26s linear infinite}
@keyframes scroll{from{transform:translateX(100%)}to{transform:translateX(-100%)}}

/* ---- hero ---- */
.hero{margin:26px 0;border-radius:20px;overflow:hidden;position:relative;
  background:linear-gradient(120deg,#1b2550 0,#151d3a 100%),var(--card);
  border:1px solid var(--line);box-shadow:var(--shadow)}
.hero-inner{display:grid;grid-template-columns:1.15fr .85fr;gap:20px;padding:38px}
.hero h1{font-size:38px;line-height:1.1;margin-bottom:12px}
.hero h1 em{font-style:normal;color:var(--gold)}
.hero p{color:var(--mut);max-width:460px;margin-bottom:20px}
.hero .cta{display:flex;gap:12px}
.hero-art{border-radius:16px;background:
  radial-gradient(circle at 70% 30%,rgba(245,197,24,.25),transparent 60%),
  linear-gradient(135deg,#25326a,#0f1730);border:1px solid var(--line);
  display:grid;place-items:center;font-size:96px}
@media(max-width:760px){.hero-inner{grid-template-columns:1fr}.hero h1{font-size:28px}.hero-art{min-height:160px;font-size:64px}}

/* ---- section ---- */
.sec{margin:40px 0}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.sec-head h2{font-size:22px}
.sec-head h2 span{color:var(--gold)}

/* ---- provider / game grid ---- */
.grid{display:grid;gap:14px}
.grid.p6{grid-template-columns:repeat(6,1fr)}
.grid.c4{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.grid.p6{grid-template-columns:repeat(3,1fr)}.grid.c4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.grid.p6{grid-template-columns:repeat(2,1fr)}.grid.c4{grid-template-columns:1fr}}
.tile{background:var(--card);border:1px solid var(--line);border-radius:var(--rad);padding:20px;text-align:center;transition:.18s;cursor:pointer}
.tile:hover{transform:translateY(-4px);border-color:var(--teal);box-shadow:var(--shadow)}
.tile .ic{font-size:34px;margin-bottom:8px}
.tile .nm{font-weight:700;font-size:14px}
.tile .rtp{color:var(--green);font-size:12px;font-weight:700;margin-top:4px}

/* ---- promo cards ---- */
.promo{background:var(--card);border:1px solid var(--line);border-radius:var(--rad);overflow:hidden;display:flex;flex-direction:column}
.promo .banner{height:150px;display:grid;place-items:center;font-size:56px;
  background:linear-gradient(135deg,#2a1550,#3a1d6b)}
.promo:nth-child(2n) .banner{background:linear-gradient(135deg,#0f3a37,#12504a)}
.promo:nth-child(3n) .banner{background:linear-gradient(135deg,#3a2410,#4a2f14)}
.promo .body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1}
.promo .tag{align-self:flex-start;font-size:11px;font-weight:800;color:#04211d;background:var(--teal);padding:3px 9px;border-radius:99px}
.promo h3{font-size:17px;color:var(--orange)}
.promo p{color:var(--mut);font-size:13px}
.promo p b{color:var(--green)}
.promo .foot{display:flex;gap:8px;margin-top:6px}
.promo details{margin:4px 0}
.promo summary{cursor:pointer;color:var(--teal);font-size:13px;font-weight:700;list-style:none;padding:6px 0}
.promo summary::-webkit-details-marker{display:none}
.promo summary::before{content:'▸ ';}
.promo details[open] summary::before{content:'▾ ';}
.ptable{width:100%;border-collapse:collapse;margin:6px 0;font-size:12px}
.ptable th{background:#1c1140;color:var(--teal);padding:6px 8px;text-align:left;border-bottom:1px solid var(--line)}
.ptable td{padding:5px 8px;border-bottom:1px solid var(--line);color:var(--txt)}
.tc{font-size:11px;color:var(--mut);line-height:1.5;margin-top:6px}

/* ---- footer ---- */
footer{margin-top:60px;border-top:1px solid var(--line);background:var(--bg2)}
.foot-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:24px;padding:40px 0}
.foot-grid h4{margin-bottom:12px;font-size:14px;color:var(--white)}
.foot-grid a,.foot-grid p{display:block;color:var(--mut);font-size:13px;margin-bottom:8px}
.copy{border-top:1px solid var(--line);padding:16px 0;text-align:center;color:var(--mut);font-size:12px}
@media(max-width:760px){.foot-grid{grid-template-columns:1fr 1fr}}

/* ---- disclaimer ---- */
.disc{background:#1a0e0e;border:1px solid #5a1f1f;color:#ffb4b4;border-radius:12px;padding:14px 18px;font-size:12px;margin:24px 0}

/* ============================================================
   LIVECHAT WIDGET
   ============================================================ */
#gc-fab[hidden],#gc-panel[hidden]{display:none!important}  /* id selectors beat the [hidden] default; force it */
#gc-fab{position:fixed;right:20px;bottom:20px;z-index:60;width:60px;height:60px;border:0;border-radius:50%;
  background:linear-gradient(180deg,var(--gold),var(--gold2));color:#20160a;font-size:26px;cursor:pointer;
  box-shadow:0 10px 26px rgba(245,197,24,.4);display:grid;place-items:center}
#gc-fab .dot{position:absolute;top:8px;right:8px;width:12px;height:12px;border-radius:50%;background:#25e07f;border:2px solid #20160a}
#gc-panel{position:fixed;right:20px;bottom:20px;z-index:61;width:360px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 40px);
  background:var(--bg2);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}
#gc-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:linear-gradient(90deg,#1a1206,#241a09);border-bottom:1px solid var(--line)}
#gc-head .t{display:flex;align-items:center;gap:10px}
#gc-head .av{width:36px;height:36px;border-radius:50%;background:#0f1730;display:grid;place-items:center;font-size:20px;border:1px solid var(--line)}
#gc-head b{display:block;font-size:14px;color:var(--white)}
#gc-head i{font-style:normal;font-size:11px;color:#25e07f}
#gc-x{background:none;border:0;color:var(--mut);font-size:16px;cursor:pointer}
#gc-body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px}
.gc-msg{max-width:80%;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.gc-msg.me{align-self:flex-end;background:linear-gradient(180deg,var(--red2),var(--red));color:#fff;border-bottom-right-radius:4px}
.gc-msg.bot{align-self:flex-start;background:var(--card);border:1px solid var(--line);border-bottom-left-radius:4px}
.gc-msg.human{align-self:flex-start;background:linear-gradient(180deg,#1c3a24,#12301c);border:1px solid #2a6b3f;border-bottom-left-radius:4px}
.gc-msg.typing{opacity:.6;font-style:italic}
#gc-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--line)}
#gc-in{flex:1;background:var(--bg);border:1px solid var(--line);color:var(--txt);border-radius:10px;padding:10px 12px;font-size:13px;outline:none}
#gc-in:focus{border-color:var(--gold)}
#gc-form .send{border:0;border-radius:10px;padding:0 14px;background:linear-gradient(180deg,var(--gold),var(--gold2));color:#20160a;font-weight:800;cursor:pointer}
