/* 77W — "deep blue, sleek". Colours from the 77W logo (cyan 77, yellow W) and 77w19.com's sky background.
   Hairlines, soft shadows, straight edges, tight type. Nothing tilted, no hard offset shadows. Yellow = Play Now only.
   Text runs the full content width (--edge); only the desktop hero text is narrowed, because the art sits beside it. */
:root{
  --root:clamp(13.5px,min(.8vw + 4.5px,1.6vh + 2px),22px);
  --blue:#1463E6; --blue-deep:#0A3C96; --navy:#071634; --navy2:#0C2257; --cyan:#19B4E6; --sky:#F2F7FC;
  --ink:#0B1020; --ink2:#4A5470; --line:rgba(11,16,32,.1); --line-d:rgba(255,255,255,.12); --white:#fff;
  --play:#FFD23F; /* Play Now only (the logo's W) */
  --soft:0 1.6rem 3.5rem -1.4rem rgba(7,22,52,.35);
  --soft-s:0 .6rem 1.6rem -.6rem rgba(7,22,52,.25);
  --r:1rem;
  --edge:max(4vw,calc((100% - 74rem)/2));
}
@media (max-width:760px){:root{--root:clamp(13px,min(4.2667vw,1.97vh),18px)}}
html{font-size:var(--root);scroll-behavior:smooth;scroll-padding-top:6rem}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:Archivo,system-ui,sans-serif;color:var(--ink);background:var(--white);line-height:1.65;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue);font-weight:600;text-decoration-thickness:.08em;text-underline-offset:.2em}
a:hover{color:var(--blue-deep)}
h1,h2{font-weight:800;line-height:1.06;letter-spacing:-.035em;margin:0 0 1.3rem;text-wrap:balance}
h1{font-size:clamp(2.4rem,1.3rem + 3.2vw,4.8rem)}
h2{font-size:clamp(1.8rem,1.2rem + 1.8vw,3rem)}
p{margin:0 0 1rem}
strong{font-weight:700}
code{font-family:inherit;font-weight:600;font-size:max(.9em,.9rem);background:rgba(20,99,230,.08);color:var(--blue-deep);padding:.1em .45em;border-radius:.35rem;word-break:break-word}
:focus-visible{outline:.15rem solid var(--blue);outline-offset:.2rem}
body>a[href="#main"]{position:absolute;left:1rem;top:-4rem;z-index:100;background:var(--ink);color:#fff;padding:.6rem 1rem}
body>a[href="#main"]:focus{top:1rem}

/* ---------- header: frosted white bar ---------- */
header{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:2rem;padding:.75rem var(--edge);background:rgba(255,255,255,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
[data-brand] img{height:2.4rem;width:auto}
header nav{margin-left:auto}
header ul{list-style:none;margin:0;padding:0;display:flex;gap:1.8rem}
header nav a{display:block;max-width:16rem;font-size:.9rem;font-weight:500;line-height:1.25;color:var(--ink2);text-decoration:none;padding:.3rem 0;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
header nav a:hover{color:var(--ink)}
header nav a[aria-current="page"]{border-color:var(--blue);color:var(--ink)}

/* ---------- Play Now: the one yellow thing ---------- */
[data-cta="primary"],main>section>p>a[href^="http"]:only-child,section blockquote a,.float-cta{
  display:inline-flex;align-items:center;gap:.7rem;font-weight:800;font-size:1.05rem;letter-spacing:-.01em;line-height:1;
  color:var(--ink);text-decoration:none;padding:1.05rem 1.9rem;background:var(--play);border:0;border-radius:999px;box-shadow:0 .8rem 2rem -.8rem rgba(255,190,0,.75),inset 0 -.15rem 0 rgba(0,0,0,.12);transition:transform .2s,box-shadow .2s}
[data-cta="primary"]::after,main>section>p>a[href^="http"]:only-child::after,section blockquote a::after,.float-cta::after{content:"→";font-weight:700;transition:transform .2s}
[data-cta="primary"]:hover,main>section>p>a[href^="http"]:only-child:hover,section blockquote a:hover,.float-cta:hover{color:var(--ink);transform:translateY(-.12rem);box-shadow:0 1.1rem 2.4rem -.8rem rgba(255,190,0,.85),inset 0 -.15rem 0 rgba(0,0,0,.12)}
[data-cta="primary"]:hover::after,main>section>p>a[href^="http"]:only-child:hover::after,section blockquote a:hover::after,.float-cta:hover::after{transform:translateX(.2rem)}

/* ---------- section rhythm ---------- */
main{display:block;overflow-x:clip}
main>section{padding:clamp(3.5rem,7vw,6rem) var(--edge)}
main>section[data-section-kind="MAIN_BLOCK"]:nth-of-type(odd){background:var(--sky)}
main>section[data-section-kind="COMPARISON_TABLE"],main>section[data-section-kind="FAQ"]{background:var(--sky)}
main>section+section{border-top:1px solid var(--line)}

/* ---------- HERO shared ---------- */
section[data-section-kind="HERO"]{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;min-height:min(calc(100svh - 4rem),50rem)}
section[data-section-kind="HERO"]>*:not(.hero-art){position:relative;z-index:2}
/* desktop: the art is absolute, so reserve its column with padding — text can never run under it */
section[data-section-id="p2-hero"]{padding-right:calc(var(--edge) + 40% + 3rem)}
section[data-section-id="p3-hero"]{padding-right:calc(var(--edge) + clamp(12rem,22vw,20rem) + 5rem)}
section[data-section-kind="HERO"] h1+p{font-size:1.15rem;font-weight:500}
section[data-section-kind="HERO"] p{font-size:.95rem}
section[data-section-kind="HERO"] p:has(>a[href^="http"]){margin:.8rem 0 1.6rem}
section[data-section-kind="HERO"]:has(a[href^="http"]) p:nth-last-of-type(3){align-self:flex-start;font-weight:600;font-size:.9rem;letter-spacing:.02em;padding:.45rem .9rem;border:1px solid currentColor;border-radius:.6rem;opacity:.9}
section[data-section-kind="HERO"]:has(a[href^="http"]) p:last-of-type{font-weight:600;font-size:.9rem;display:flex;align-items:center;gap:.6rem}
section[data-section-kind="HERO"]:has(a[href^="http"]) p:last-of-type::before,[data-footer="legal"]::before{content:"18+";display:inline-grid;place-items:center;width:2.2rem;height:2.2rem;border-radius:50%;border:1px solid currentColor;font-weight:700;font-size:.9rem;flex:none}
.hero-art{position:absolute;z-index:1}
@keyframes rise{from{opacity:0;transform:translateY(1.2rem)}}

/* dark heroes share one navy field with a single soft light source */
section[data-section-id="p1-hero"],section[data-section-id="p3-hero"],main>section:first-child:not([data-section-kind="HERO"]){
  background:radial-gradient(60rem 40rem at 85% 20%,rgba(25,180,230,.22),transparent 60%),linear-gradient(160deg,var(--navy2),var(--navy) 70%);color:#B9C6E4}

/* HOME — the 7-model team photo is the hero background; the copy sits over the skirts.
   --ph = photo height (full width, capped by viewport height). Text starts at 62% of it, below the faces and arms. */
section[data-section-id="p1-hero"]{--ph:min(40vw,64svh);min-height:0;justify-content:flex-start;padding-top:calc(var(--ph) * .62);padding-bottom:3.5rem;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:clamp(2rem,5vw,5rem);align-content:start;background:var(--navy)}
section[data-section-id="p1-hero"]>*:not(.hero-art){grid-column:2}
section[data-section-id="p1-hero"]>h1:not(.hero-art){grid-column:1;grid-row:1/span 6;align-self:start;color:#fff;font-size:clamp(2.4rem,min(1rem + 3.4vw,7vh),5rem)}
section[data-section-id="p1-hero"] h1+p{color:#fff;margin-top:.3rem}
.hero-poster{top:0;left:50%;translate:-50% 0;width:min(100%,calc(var(--ph) * 2.1));height:var(--ph);-webkit-mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent)}
.hero-poster::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,22,52,.15) 0%,transparent 25%,rgba(7,22,52,.55) 52%,rgba(7,22,52,.92) 66%,var(--navy) 100%)}
.hero-poster .photo{width:100%;height:100%;object-fit:cover;object-position:50% 22%}

/* thin notice band under the home hero */
.tape{overflow:hidden;background:var(--navy);color:#8FA3CC;border-top:1px solid var(--line-d);position:relative;z-index:3}
.tape-track{display:flex;width:max-content;animation:slide 50s linear infinite}
.tape span{font-size:.9rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;padding:.95rem 1.6rem;white-space:nowrap}
.tape span::after{content:"";display:inline-block;width:.3rem;height:.3rem;margin-left:3.2rem;border-radius:50%;background:var(--cyan);vertical-align:.25em}
@keyframes slide{to{transform:translateX(-50%)}}

/* game shelf (home): two rows of real covers drifting opposite ways */
.shelf{background:var(--navy);padding:2rem 0;display:grid;gap:1rem;overflow:hidden;-webkit-mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.shelf-row{display:flex;gap:1rem;width:max-content;animation:slide 140s linear infinite}
.shelf-row+.shelf-row{animation-direction:reverse;margin-left:-6rem}
.shelf img{width:11rem;aspect-ratio:13/10;object-fit:cover;border-radius:.7rem;background:var(--navy2)}

/* REGISTER — white hero; the real 77W promo photo (model + the app on phones) in a rounded frame */
section[data-section-id="p2-hero"]{background:linear-gradient(180deg,#fff,var(--sky))}
section[data-section-id="p2-hero"] h1{font-size:clamp(2.3rem,min(1rem + 2.6vw,6.5vh),4rem)}
.hero-photo{top:50%;right:var(--edge);width:40%;translate:0 -50%;border-radius:1.6rem;overflow:hidden;box-shadow:var(--soft);background:var(--navy)}
.hero-photo img{width:100%;aspect-ratio:640/514;object-fit:cover}

/* CASINO-LAW — navy hero, no game art, meta as a glass file card, thin § medallion */
section[data-section-id="p3-hero"] h1{color:#fff;font-size:clamp(2.4rem,1.2rem + 3vw,4.4rem)}
section[data-section-id="p3-hero"] h1+p{color:#fff}
section[data-section-id="p3-hero"] p:has(>strong:first-child){margin:0;padding:.85rem 1.2rem;font-size:.9rem;background:rgba(255,255,255,.06);color:#DDE5F5;border:1px solid var(--line-d)}
section[data-section-id="p3-hero"] p:nth-last-of-type(2){margin-top:1.4rem;border-bottom:0;border-radius:.8rem .8rem 0 0}
section[data-section-id="p3-hero"] p:last-of-type{border-radius:0 0 .8rem .8rem}
.hero-seal{right:calc(var(--edge) + 2rem);top:50%;translate:0 -50%;width:clamp(12rem,22vw,20rem);aspect-ratio:1;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:radial-gradient(circle,rgba(25,180,230,.18),transparent 70%);box-shadow:inset 0 0 0 1.2rem rgba(255,255,255,.03),inset 0 0 0 calc(1.2rem + 1px) rgba(255,255,255,.12)}
.hero-seal span{font-family:Georgia,"Times New Roman",serif;font-size:clamp(6rem,11vw,10rem);line-height:1;color:#fff;opacity:.9}

/* utility pages: first section = compact navy block */
main>section:first-child:not([data-section-kind="HERO"]){padding-block:4.5rem 3.5rem}
main>section:first-child:not([data-section-kind="HERO"]) h1{color:#fff}
main>section:first-child:not([data-section-kind="HERO"]) h1+p{font-size:1.25rem;font-weight:500;color:#fff}

/* ---------- CTA shell between sections ---------- */
main>[data-cta-block]{display:flex;justify-content:center;padding:2.2rem 1rem;background:var(--sky);border-top:1px solid var(--line)}
main>section:has(a[href^="http"])+[data-cta-block],.tape+[data-cta-block]{display:none}

main>section:not(:first-child)[data-section-kind="INTRO"]>p{font-size:1.25rem;line-height:1.6;color:var(--ink2)}

/* ---------- TRUST_PROOF: navy block, glass cards ---------- */
section[data-section-kind="TRUST_PROOF"]{background:linear-gradient(160deg,var(--navy2),var(--navy));color:#B9C6E4}
section[data-section-kind="TRUST_PROOF"] h2{color:#fff}
section[data-section-kind="TRUST_PROOF"] ul{list-style:none;padding:0;margin:0 0 2rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(17rem,1fr));gap:1rem}
section[data-section-kind="TRUST_PROOF"] li{padding:1.3rem 1.4rem;background:rgba(255,255,255,.05);color:#DDE5F5;border:1px solid var(--line-d);border-radius:var(--r)}
section[data-section-kind="TRUST_PROOF"] li strong{color:#fff}
section[data-section-kind="TRUST_PROOF"] p{display:inline-block;margin-right:2rem;font-size:.9rem}
section[data-section-kind="TRUST_PROOF"] a{color:#7FD3F2}

/* ---------- lists ---------- */
main>section ol{list-style:none;counter-reset:s;padding:0;margin:1.8rem 0;border-top:1px solid var(--line)}
main>section ol>li{counter-increment:s;position:relative;padding:1.3rem 0 1.3rem 4.2rem;border-bottom:1px solid var(--line)}
main>section ol>li::before{content:counter(s,decimal-leading-zero);position:absolute;left:0;top:1.35rem;font-weight:700;font-size:1rem;letter-spacing:.04em;color:var(--blue);font-variant-numeric:tabular-nums;padding:.2rem .55rem;border:1px solid rgba(20,99,230,.3);border-radius:.5rem;line-height:1.2}
main>section:not([data-section-kind="TRUST_PROOF"]) ul{list-style:none;padding:0;margin:1.2rem 0;display:grid;gap:.7rem}
main>section:not([data-section-kind="TRUST_PROOF"]) ul>li{position:relative;padding-left:1.5rem}
main>section:not([data-section-kind="TRUST_PROOF"]) ul>li::before{content:"";position:absolute;left:.1rem;top:.62em;width:.4rem;height:.4rem;border-radius:50%;background:var(--blue)}

/* home hub: quiet cards that lift on hover */
section[data-section-id="p1-malaysia-hub"] ul{grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1rem}
section[data-section-id="p1-malaysia-hub"] ul>li{padding:1.4rem;background:#fff;border:1px solid var(--line);border-radius:var(--r);transition:transform .25s,box-shadow .25s,border-color .25s}
section[data-section-id="p1-malaysia-hub"] ul>li:hover{transform:translateY(-.2rem);box-shadow:var(--soft);border-color:transparent}
section[data-section-id="p1-malaysia-hub"] ul>li::before{display:none}
section[data-section-id="p1-malaysia-hub"] li>strong:first-child{display:block;font-weight:800;font-size:1.25rem;letter-spacing:-.02em;line-height:1.2;margin-bottom:.5rem}

/* ---------- tables ---------- */
.table-scroll{overflow-x:auto;margin:1.8rem 0;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--soft-s);background:#fff}
table{width:100%;border-collapse:collapse;font-size:.92rem;min-width:40rem}
th{text-align:left;font-weight:600;font-size:.9rem;letter-spacing:.04em;color:#fff;background:var(--navy);padding:.95rem 1.1rem}
td{padding:1rem 1.1rem;border-top:1px solid var(--line);vertical-align:top}
tr:nth-child(even) td{background:#FAFCFF}
td:first-child{font-weight:600}

/* ---------- FAQ: ruled rows ---------- */
section[data-section-kind="FAQ"]>p:has(>strong:only-child){margin:0;padding-top:1.4rem;border-top:1px solid var(--line);font-size:1.1rem}
section[data-section-kind="FAQ"]>p:has(>strong:only-child)+p{padding:.3rem 0 1.4rem;margin:0;color:var(--ink2)}

/* ---------- CTA: navy block, glass card with the button ---------- */
section[data-section-kind="CTA"],section[data-section-kind="SOFT_CTA"]:has(a[href^="http"]){background:radial-gradient(50rem 30rem at 15% 0%,rgba(25,180,230,.22),transparent 60%),linear-gradient(160deg,var(--navy2),var(--navy));color:#B9C6E4}
section[data-section-kind="CTA"] h2,section[data-section-kind="SOFT_CTA"]:has(a[href^="http"]) h2{color:#fff;font-size:clamp(2.2rem,1.2rem + 2.8vw,4rem)}
section[data-section-kind="CTA"] code,section[data-section-kind="SOFT_CTA"]:has(a[href^="http"]) code,section[data-section-kind="TRUST_PROOF"] code,main>section:first-child code{background:rgba(255,255,255,.1);color:#fff}
section[data-section-kind="CTA"] a:not([href^="http"]),section[data-section-kind="SOFT_CTA"]:has(a[href^="http"]) a:not([href^="http"]),main>section:first-child a:not([href^="http"]){color:#7FD3F2}
section[data-section-kind="SOFT_CTA"] p:has(>a[href^="http"]){margin:1.6rem 0 2rem}
section blockquote{margin:2.4rem 0 0;padding:1.6rem 1.8rem;background:rgba(255,255,255,.06);color:#DDE5F5;border:1px solid var(--line-d);border-radius:1.2rem}
section blockquote p{margin:0;font-weight:500;font-size:.9rem;line-height:3}
section blockquote a{margin:0 1rem;line-height:1}
section[data-section-kind="SOFT_CTA"]:not(:has(a[href^="http"])){padding-block:3rem 4rem}

/* ---------- providers + footer ---------- */
.providers{overflow:hidden;background:#fff;border-top:1px solid var(--line);padding:1.3rem 0;-webkit-mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.providers .track{display:flex;gap:3.5rem;width:max-content;animation:slide 50s linear infinite}
.providers img{height:2.2rem;width:auto;filter:grayscale(1) brightness(.2);opacity:.55}
footer{background:var(--navy);color:#8FA3CC;padding:3.5rem var(--edge) 2rem;display:flex;flex-wrap:wrap;align-items:center;gap:1.4rem 2rem;position:relative;overflow:hidden}
footer::after{content:"77W";position:absolute;right:var(--edge);bottom:-3.4rem;font-weight:800;letter-spacing:-.06em;font-size:clamp(8rem,18vw,16rem);line-height:1;color:rgba(255,255,255,.04);pointer-events:none}
footer>*{position:relative;z-index:1}
.f-logo img{height:3rem;width:auto}
footer nav{flex:1 1 100%}
footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.6rem 2rem}
footer a{color:#DDE5F5;font-weight:500;text-decoration:none;font-size:.95rem}
footer a:hover,footer a[aria-current="page"]{color:#fff;text-decoration:underline}
footer p{margin:0;font-size:.9rem}
[data-footer="legal"]{display:flex;align-items:center;gap:.7rem;font-weight:600;color:#DDE5F5}
[data-footer="copyright"]{flex:1 1 100%;margin-top:4rem;padding-top:1.4rem;border-top:1px solid var(--line-d)}

/* ---------- floating Play Now ---------- */
.float-cta{position:fixed;right:1.4rem;bottom:1.4rem;z-index:60;font-size:1rem;padding:.9rem 1.5rem;opacity:0;pointer-events:none;translate:0 1rem;transition:opacity .25s,translate .25s,transform .2s,box-shadow .2s}
.float-cta.is-on{opacity:1;pointer-events:auto;translate:0 0}

/* ---------- responsive ---------- */
@media (max-width:960px){
  header nav a{padding-block:1rem}
  footer ul{gap:0 1.6rem}
  footer a{display:inline-block;padding:.75rem 0}
  section[data-section-kind="HERO"]{min-height:0;padding-top:2.5rem}
  section[data-section-kind="HERO"][data-section-id]{padding-right:var(--edge)}
  .hero-art{position:relative;inset:auto;order:-1;margin-bottom:2rem}
  section[data-section-id="p1-hero"]{--ph:min(58vw,42svh);display:flex;padding-top:calc(var(--ph) * .5)}
  section[data-section-id="p1-hero"] p:has(>a[href^="http"]){margin:.6rem 0 1.2rem}
  section[data-section-id="p1-hero"]>h1:not(.hero-art){margin-bottom:.8rem}
  section[data-section-id="p1-hero"] p{margin-bottom:.6rem}
  section[data-section-id="p1-hero"]{padding-top:calc(var(--ph) * .52)}
  section[data-section-id="p1-hero"] h1{grid-row:auto}
  .hero-poster{position:absolute!important;top:0!important;left:0!important;right:0!important;translate:none;width:auto;margin:0!important;order:0;-webkit-mask:none;mask:none}
  .hero-photo{order:1;translate:none;right:auto;top:auto;width:min(100%,32rem);margin:2.5rem auto 0;align-self:center}
  .hero-seal{position:absolute;order:0;right:var(--edge);top:1.5rem;translate:none;width:6.5rem;margin:0}
  .hero-seal span{font-size:3.8rem}
  section[data-section-id="p3-hero"] h1{padding-right:7.5rem}
  .shelf img{width:8rem}
}
@media (max-width:760px){
  header{flex-wrap:wrap;gap:.4rem;padding-block:.6rem}
  [data-brand] img{height:2rem}
  header nav{margin:0;width:100%;overflow-x:auto;scrollbar-width:none}
  header ul{width:max-content;gap:1.2rem}
  header nav a{max-width:none;white-space:nowrap;font-size:.9rem;padding:.9rem 0}
  main>section ol>li{padding-left:3.4rem}
  section blockquote a{display:flex;width:max-content;margin:.6rem 0}
  .float-cta{left:1rem;right:1rem;bottom:.8rem;justify-content:center}
  section[data-section-kind="HERO"] h1{font-size:2.3rem}
  section[data-section-kind="HERO"] p{font-size:.9rem}
  section[data-section-id="p3-hero"] h1{font-size:2.1rem;padding-right:5rem}
  .hero-seal{width:4.6rem;top:1.2rem}
  .hero-seal span{font-size:2.6rem}
  footer{padding-bottom:6rem}
  footer ul{gap:0 1.6rem}
  footer a{display:inline-block;padding:.75rem 0}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
