﻿/* ==========================================================================
   SunWin — sunwinbet88.com
   Premium casino affiliate stylesheet. Mobile-first, no external requests.
   ========================================================================== */

:root{
  --bg:#120507;
  --bg-2:#1b080c;
  --bg-3:#2a0d13;
  --surface:rgba(255,241,210,.055);
  --surface-2:rgba(255,210,110,.105);
  --border:rgba(255,210,120,.14);
  --border-2:rgba(255,202,70,.42);
  --gold:#ffd34d;
  --gold-2:#f39a1f;
  --gold-soft:#fff1b8;
  --red:#ff6b7a;
  --green:#32c678;
  --blue:#f35a31;
  --text:#fff3df;
  --muted:#d7bfa0;
  --dim:#a98f72;
  --radius:16px;
  --radius-lg:24px;
  --maxw:1200px;
  --shadow:0 10px 40px rgba(0,0,0,.45);
  --font:'Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,'Noto Sans',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:88px}
body{
  margin:0;
  font-family:var(--font);
  font-size:17px;
  line-height:1.75;
  color:var(--text);
  background:var(--bg);
  background-image:
    radial-gradient(900px 500px at 12% -8%,rgba(255,211,77,.18),transparent 60%),
    radial-gradient(800px 460px at 92% 4%,rgba(231,25,53,.18),transparent 62%);
  background-repeat:no-repeat;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:none}
h1,h2,h3,.h4{line-height:1.25;margin:0 0 .6em;font-weight:800;letter-spacing:-.015em}
h1{font-size:clamp(1.9rem,5.2vw,3.1rem)}
h2{font-size:clamp(1.5rem,3.6vw,2.15rem);margin-top:2.2em}
h3{font-size:clamp(1.15rem,2.4vw,1.4rem);margin-top:1.7em;color:var(--gold-soft)}
.h4{display:block;font-size:1.05rem;margin-top:1.4em;color:#fff}
p{margin:0 0 1.15em}
ul,ol{margin:0 0 1.2em;padding-left:1.35em}
li{margin-bottom:.5em}
strong{color:#fff;font-weight:700}
hr{border:0;border-top:1px solid var(--border);margin:2.5rem 0}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 clamp(12px,4vw,18px)}
.skip-link{position:absolute;left:-999px;top:0;z-index:999;background:var(--gold);color:#111;padding:12px 18px;font-weight:700;border-radius:0 0 10px 0}
.skip-link:focus{left:0}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  background:rgba(18,5,7,.88);
  border-bottom:1px solid var(--border);
}
.nav{display:flex;align-items:center;gap:clamp(8px,2.4vw,14px);min-height:64px;padding:8px 0}
.brand{display:flex;align-items:center;color:#fff;text-decoration:none;flex:0 1 auto;min-width:0}
.brand:hover{text-decoration:none}
.brand-logo{width:clamp(94px,31vw,136px);height:44px;object-fit:contain;object-position:left center;display:block}
.nav-menu{display:none;margin-left:auto;align-items:center;gap:4px;list-style:none;padding:0;margin-bottom:0}
.nav-menu a{
  display:block;padding:9px 13px;border-radius:10px;color:var(--text);
  font-size:.95rem;font-weight:600;transition:background .18s,color .18s;
}
.nav-menu a:hover,.nav-menu a[aria-current="page"]{background:var(--surface-2);color:var(--gold);text-decoration:none}
.nav-cta{margin-left:auto;white-space:nowrap;flex:0 0 auto;min-height:44px}
.nav-toggle{
  margin-left:0;display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;
  background:var(--surface);border:1px solid var(--border);border-radius:12px;color:#fff;cursor:pointer;
}
.nav-toggle span{display:block;width:19px;height:2px;background:currentColor;box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor}
.mobile-menu{display:none;border-top:1px solid var(--border);padding:8px 0 14px}
.mobile-menu.open{display:block}
.mobile-menu ul{list-style:none;padding:0;margin:0}
.mobile-menu a{display:block;padding:13px 4px;color:var(--text);font-weight:700;border-bottom:1px solid rgba(255,255,255,.06)}

@media (max-width:420px){
  html{scroll-padding-top:74px}
  .nav{min-height:60px;gap:7px}
  .brand-logo{width:92px;height:40px}
  .nav-cta.btn-sm{padding:9px 13px;font-size:.86rem;min-height:40px;box-shadow:0 6px 18px rgba(255,177,40,.32)}
  .nav-toggle{width:40px;height:40px;flex-basis:40px;border-radius:10px}
  .nav-toggle span{width:18px}
}

@media (max-width:340px){
  .brand-logo{width:82px}
  .nav-cta.btn-sm{padding:8px 11px;font-size:.82rem}
}
/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 26px;border-radius:999px;font-weight:800;font-size:1rem;
  border:1px solid transparent;cursor:pointer;text-align:center;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.btn:hover{text-decoration:none;transform:translateY(-2px)}
.btn-primary{background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#191203;box-shadow:0 8px 26px rgba(255,177,40,.36)}
.btn-primary:hover{box-shadow:0 12px 34px rgba(255,177,40,.52)}
.btn-ghost{background:var(--surface-2);color:#fff;border-color:var(--border-2)}
.btn-ghost:hover{background:rgba(255,211,77,.16)}
.btn-sm{padding:10px 18px;font-size:.92rem}
.btn-block{display:flex;width:100%}

/* ---------- Hero ---------- */
.hero{padding:56px 0 44px;position:relative}
.hero-grid{display:grid;gap:34px;align-items:center}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,211,77,.14);border:1px solid var(--border-2);
  color:var(--gold-soft);font-size:.82rem;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;padding:7px 15px;border-radius:999px;margin-bottom:18px;
}
.hero h1{margin-bottom:.5em}
.hero h1 em{font-style:normal;background:linear-gradient(120deg,var(--gold),#fff8e0);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-lead{font-size:1.1rem;color:var(--muted);max-width:60ch}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px;margin:26px 0 24px}
.trust-row{display:flex;flex-wrap:wrap;gap:10px 22px;list-style:none;padding:0;margin:0;font-size:.9rem;color:var(--muted)}
.trust-row li{display:flex;align-items:center;gap:8px;margin:0}
.trust-row li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}
.hero-art{
  border-radius:var(--radius-lg);border:1px solid var(--border-2);
  background:linear-gradient(160deg,rgba(255,211,77,.13),rgba(231,25,53,.10));
  padding:22px;box-shadow:var(--shadow);
}
.hero-art svg{width:100%;height:auto}

/* ---------- Stats strip ---------- */
.stats-wrap{
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,rgba(255,211,77,.10),rgba(231,25,53,.035));
  margin-bottom:8px;
}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:0;margin:0;padding:0}
.stat{padding:20px 18px;border-right:1px solid var(--border);border-bottom:1px solid var(--border)}
.stat:nth-child(2n){border-right:0}
.stat:nth-last-child(-n+2){border-bottom:0}
.stat dt{
  font-size:.76rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:var(--gold);margin:0 0 6px;
}
.stat dd{margin:0}
.stat strong{
  display:block;font-size:1.85rem;line-height:1.1;font-weight:900;color:#fff;
  letter-spacing:-.02em;margin-bottom:4px;
}
.stat strong em{font-style:normal;font-size:.95rem;font-weight:700;color:var(--muted);margin-left:3px}
.stat span{display:block;font-size:.84rem;color:var(--muted);line-height:1.45}

/* ---------- Feature card grid ---------- */
.feature-grid{margin:1.6em 0 2em}
.feature-grid .h4{display:block;font-size:1.02rem;color:#fff;margin-bottom:.45em}
.feature-grid p{font-size:.95rem;color:var(--muted);margin:0}

/* ---------- Category chips ---------- */
.cat-grid{
  list-style:none;padding:0;margin:1.6em 0 2em;
  display:grid;grid-template-columns:repeat(2,1fr);gap:10px;
}
.cat-grid li{
  display:flex;align-items:center;gap:10px;margin:0;
  padding:13px 15px;border-radius:14px;font-weight:700;font-size:.95rem;
  background:var(--surface);border:1px solid var(--border);
  transition:border-color .18s,background .18s,transform .18s;
}
.cat-grid li:hover{border-color:var(--border-2);background:var(--surface-2);transform:translateY(-2px)}
.cat-grid span{font-size:1.3rem;line-height:1}

/* ---------- Cards / glass ---------- */
.card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  padding:22px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.card:hover{transform:translateY(-4px);border-color:var(--border-2);background:var(--surface-2)}
.card h3{margin-top:0}
.card p:last-child{margin-bottom:0}
.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}
.grid-4{grid-template-columns:1fr 1fr}
.card-icon{font-size:1.7rem;line-height:1;margin-bottom:10px;display:block}

/* ---------- Content boxes ---------- */
.box{border-radius:var(--radius);padding:20px 22px;margin:1.8em 0;border:1px solid var(--border);background:var(--surface)}
.box p:last-child,.box ul:last-child,.box ol:last-child{margin-bottom:0}
.box-title{display:block;font-weight:800;color:#fff;margin-bottom:.5em;font-size:1.02rem}
.box-answer{border-left:4px solid var(--gold);background:rgba(255,211,77,.10)}
.box-tip{border-left:4px solid var(--green);background:rgba(47,191,113,.08)}
.box-warn{border-left:4px solid var(--red);background:rgba(231,25,53,.11)}
.box-def{border-left:4px solid var(--blue);background:rgba(243,90,49,.10)}
.box-key{border:1px solid var(--border-2);background:linear-gradient(150deg,rgba(255,211,77,.13),rgba(231,25,53,.04))}

/* ---------- AI Overview ---------- */
.ai-overview{
  border-radius:var(--radius-lg);border:1px solid var(--border-2);
  background:linear-gradient(155deg,rgba(255,211,77,.11),rgba(42,13,19,.72));
  padding:26px 24px;margin:2em 0;
}
.ai-overview h2{margin-top:0}
.ai-overview dt{font-weight:800;color:var(--gold-soft);margin-top:1.1em}
.ai-overview dd{margin:.35em 0 0;color:var(--muted)}

/* ---------- TOC ---------- */
.toc{background:var(--bg-2);border:1px solid var(--border);border-radius:var(--radius);padding:22px 24px;margin:2em 0}
.toc h2{margin:0 0 .7em;font-size:1.15rem}
.toc ol{columns:1;margin:0;padding-left:1.2em;font-size:.96rem}
.toc li{margin-bottom:.4em}
.toc a{color:var(--text);text-decoration:none}
.toc a:hover{color:var(--gold)}

/* ---------- Tables ---------- */
.table-wrap{overflow-x:auto;margin:1.6em 0;border:1px solid var(--border);border-radius:var(--radius);background:var(--bg-2)}
table{width:100%;border-collapse:collapse;min-width:520px;font-size:.95rem}
caption{caption-side:top;text-align:left;padding:14px 16px 4px;color:var(--muted);font-size:.9rem}
th,td{padding:13px 16px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}
thead th{background:rgba(255,211,77,.12);color:var(--gold-soft);font-weight:800;font-size:.88rem;text-transform:uppercase;letter-spacing:.03em}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:var(--surface)}
.yes{color:var(--green);font-weight:700}
.no{color:#ff8a97;font-weight:800}

/* ---------- Pros / cons ---------- */
.proscons{display:grid;gap:18px;margin:1.8em 0}
.pros,.cons{border-radius:var(--radius);padding:20px 22px;border:1px solid var(--border)}
.pros{background:rgba(47,191,113,.08);border-color:rgba(47,191,113,.3)}
.cons{background:rgba(231,25,53,.10);border-color:rgba(231,25,53,.34)}
.pros h3,.cons h3{margin-top:0}
.pros ul,.cons ul{list-style:none;padding:0;margin:0}
.pros li,.cons li{padding-left:26px;position:relative}
.pros li::before{content:"✔";position:absolute;left:0;color:var(--green);font-weight:900}
.cons li::before{content:"✕";position:absolute;left:0;color:var(--red);font-weight:900}

/* ---------- Rating ---------- */
.rating-card{display:grid;gap:20px;align-items:center;border:1px solid var(--border-2);border-radius:var(--radius-lg);padding:26px;background:linear-gradient(150deg,rgba(255,211,77,.13),rgba(231,25,53,.04));margin:2em 0}
.score{font-size:3.2rem;font-weight:900;line-height:1;color:var(--gold)}
.score small{font-size:1.1rem;color:var(--muted);font-weight:600}
.stars{color:var(--gold);letter-spacing:2px;font-size:1.15rem}
.bar{height:9px;border-radius:99px;background:rgba(255,255,255,.09);overflow:hidden;margin:6px 0 14px}
.bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--gold-2),var(--gold))}
.bar-label{display:flex;justify-content:space-between;font-size:.9rem;color:var(--muted)}

/* ---------- Steps ---------- */
.steps{counter-reset:step;list-style:none;padding:0;margin:1.6em 0}
.steps li{
  counter-increment:step;position:relative;padding:16px 18px 16px 62px;margin-bottom:12px;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
}
.steps li::before{
  content:counter(step);position:absolute;left:16px;top:16px;
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--gold),var(--gold-2));color:#191203;font-weight:900;font-size:.95rem;
}
.steps strong{display:block;margin-bottom:2px}

/* ---------- FAQ ---------- */
.faq details{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin-bottom:12px;overflow:hidden}
.faq summary{padding:16px 20px;font-weight:700;cursor:pointer;color:#fff;list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:flex-start}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--gold);font-size:1.4rem;line-height:1;font-weight:400;flex:0 0 auto}
.faq details[open] summary::after{content:"−"}
.faq details[open] summary{background:rgba(255,211,77,.10)}
.faq .faq-body{padding:4px 20px 18px;color:var(--muted)}
.faq .faq-body p:last-child{margin-bottom:0}

/* ---------- Blog cards ---------- */
.post-card{display:flex;flex-direction:column;height:100%;padding-top:0;overflow:hidden}
.post-card .thumb{
  display:block;margin:-22px -22px 16px;border-bottom:1px solid var(--border);
  background:var(--bg-2);
}
.post-card .thumb img{
  width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;
}
.post-card .tag{font-size:.76rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--gold);margin-bottom:8px;display:block}
.post-card h3{font-size:1.1rem;margin:0 0 .5em}
.post-card h3 a{color:#fff}
.post-card h3 a:hover{color:var(--gold)}
.post-card p{color:var(--muted);font-size:.95rem;flex:1}
.post-meta{font-size:.85rem;color:var(--muted);margin:0}

/* ---------- Breadcrumb ---------- */
.breadcrumb{font-size:.88rem;color:var(--muted);padding:16px 0 0}
.breadcrumb ol{list-style:none;display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0}
.breadcrumb li{margin:0}
.breadcrumb li+li::before{content:"/";margin-right:8px;color:rgba(255,255,255,.28)}

/* ---------- Article meta / author ---------- */
.article-meta{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.9rem;color:var(--muted);margin:0 0 1.6em;padding-bottom:1.2em;border-bottom:1px solid var(--border)}

/* ---------- Featured image ---------- */
.featured{margin:0 0 2em;padding:0}
.featured img{
  width:100%;height:auto;aspect-ratio:1200/630;
  border-radius:var(--radius);border:1px solid var(--border-2);
  box-shadow:var(--shadow);background:var(--bg-2);
}
.featured figcaption{
  margin-top:.7em;font-size:.88rem;color:var(--muted);
  line-height:1.6;border-left:3px solid var(--border-2);padding-left:12px;
}
.author-box{display:grid;gap:16px;border:1px solid var(--border);border-radius:var(--radius);padding:22px;background:var(--bg-2);margin:2.4em 0}
.author-avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--gold-2));display:grid;place-items:center;color:#191203;font-weight:900;font-size:1.4rem}
.author-box h3{margin:0 0 .3em}
.author-box p{margin:0 0 .6em;color:var(--muted);font-size:.95rem}

/* ---------- CTA banner ---------- */
.cta-banner{
  border-radius:var(--radius-lg);padding:34px 26px;text-align:center;margin:2.6em 0;
  background:linear-gradient(140deg,rgba(255,211,77,.18),rgba(231,25,53,.12));
  border:1px solid var(--border-2);
}
.cta-banner h2{margin-top:0}
.cta-banner p{color:var(--muted);max-width:62ch;margin-left:auto;margin-right:auto}

/* ---------- Sections ---------- */
main{padding-bottom:40px}
.section{padding:26px 0}
.section-head{max-width:70ch;margin-bottom:1.2em}
.section-head p{color:var(--muted)}
.lead{font-size:1.08rem;color:var(--muted)}
.prose{max-width:78ch}
.home-content.prose{max-width:var(--maxw)}
.home-content > section,.home-content > nav{max-width:980px;margin-left:auto;margin-right:auto}
.home-content > .ai-overview dl{display:grid;grid-template-columns:1fr;gap:14px 24px}
.home-content > .ai-overview dt{margin-top:0}
.home-content > .ai-overview dd{margin-bottom:.5em}

@media (min-width:900px){
  .home-content > .ai-overview{padding:30px 34px}
  .home-content > .ai-overview dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-content > .ai-overview dt{align-self:end}
  .home-content > .ai-overview dd{margin:0 0 1.1em}
}

@media (max-width:520px){
  .home-content > .ai-overview,.home-content > .toc{border-radius:14px;padding:18px 16px}
  .home-content > .ai-overview h2{font-size:1.35rem}
}

/* ---------- Related ---------- */
.related ul{list-style:none;padding:0}
.related li{padding:11px 0;border-bottom:1px solid var(--border)}
.related li:last-child{border:0}
.related .grid + .text-center{display:flex;justify-content:center;margin:26px 0 0}
.related .grid + .text-center .btn{min-width:min(100%,220px)}
.related .post-card{min-height:100%}

/* ---------- Footer ---------- */
.site-footer{border-top:1px solid var(--border);background:var(--bg-2);padding:44px 0 26px;margin-top:40px;font-size:.94rem}
.footer-grid{display:grid;gap:28px;margin-bottom:28px}
.site-footer h3{font-size:1rem;color:#fff;margin:0 0 .8em}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:.55em}
.footer-utility-links{display:none}
.site-footer a{color:var(--gold-soft);text-decoration:none}
.site-footer a:hover{color:var(--gold)}
.footer-bottom{border-top:1px solid var(--border);padding-top:20px;color:var(--muted);font-size:.87rem}
.age-badge{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff3df;border:2px solid #fff3df;color:#7a0010;font-weight:900;font-size:.8rem;margin-right:10px;vertical-align:middle}
.footer-disclaimer{background:rgba(231,25,53,.10);border:1px solid rgba(231,25,53,.32);border-radius:var(--radius);padding:16px 18px;margin-bottom:22px;color:var(--muted);font-size:.88rem}

/* ---------- Utilities ---------- */
.text-center{text-align:center}
.mt-0{margin-top:0}
.muted{color:var(--muted)}
.small{font-size:.9rem}
.updated{font-size:.85rem;color:var(--muted)}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Responsive ---------- */
@media (min-width:640px){
  .grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .proscons{grid-template-columns:1fr 1fr}
  .toc ol{columns:2;column-gap:32px}
  .author-box{grid-template-columns:64px 1fr;align-items:start}
  .rating-card{grid-template-columns:180px 1fr}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:640px){
  .cat-grid{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:900px){
  .stats{grid-template-columns:repeat(4,1fr)}
  .stat{border-bottom:0}
  .stat:nth-child(2n){border-right:1px solid var(--border)}
  .stat:last-child{border-right:0}
  .stat{padding:24px 22px}
  .nav-menu{display:flex}
  .nav-toggle{display:none}
  .mobile-menu{display:none !important}
  .grid-3{grid-template-columns:repeat(3,1fr)}
  .grid-4{grid-template-columns:repeat(4,1fr)}
  .hero-grid{grid-template-columns:1.15fr .85fr}
  .hero{padding:74px 0 56px}
  .footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr}
}

@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important;scroll-behavior:auto !important}
  .card:hover,.btn:hover{transform:none}
}

@media print{
  .site-header,.site-footer,.cta-banner,.btn{display:none}
  body{background:#fff;color:#000}
}
