:root {
  --paper: #fffaf2;
  --paper-strong: #fffdf8;
  --ink: #151310;
  --muted: #675f56;
  --line: #ded7cc;
  --accent: #c92318;
  --accent-dark: #a71b12;
  --blue: #0d58bd;
  --shadow: 0 18px 54px rgba(40, 25, 10, .12);
  --wrap: min(1220px, calc(100% - 40px));
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 16px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(21, 19, 16, .12);
  background: rgba(255, 250, 242, .94);
  backdrop-filter: blur(16px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(34, 22, 12, .08); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 32px; }
.brand { width: 126px; flex: 0 0 auto; }
.brand picture { display: block; width: 100%; }
.brand img { width: 100%; height: 46px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.main-nav a, .site-footer a { text-decoration: none; font-weight: 700; font-size: .9rem; }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; border: 0; background: none; font: inherit; font-weight: 800; align-items: center; gap: 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; border: 2px solid transparent; border-radius: 7px; text-decoration: none; font-weight: 900; line-height: 1; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.button img { filter: brightness(0); }
.button-small { margin-left: 8px; background: var(--accent); color: #fff; }
.button-small img { filter: brightness(0) invert(1); }
.button-primary { color: #fff; background: var(--accent); box-shadow: 0 10px 28px rgba(201, 35, 24, .28); }
.button-primary:hover { background: var(--accent-dark); }
.button-primary img { filter: brightness(0) invert(1); }
.button-large { min-height: 64px; padding-inline: 26px; font-size: 1.05rem; }
.button-light { color: var(--ink); background: var(--paper-strong); }
.button-arrow { margin-left: 8px; }

.hero { position: relative; overflow: hidden; min-height: 710px; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--accent); }
.hero-art { position: absolute; inset: 0 0 0 36%; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--paper) 0%, rgba(255,250,242,.9) 12%, rgba(255,250,242,.12) 43%, rgba(255,250,242,.02) 100%); }
.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 58% center; }
.hero-grid { position: relative; z-index: 2; display: block; min-height: 710px; }
.hero-copy { padding: 70px 0 72px; max-width: 665px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .74rem; font-weight: 950; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .section h2, .final-cta h2 { margin: 0; font-family: Impact, "Arial Narrow", Arial, sans-serif; font-weight: 900; letter-spacing: -.035em; line-height: .91; text-wrap: balance; }
.hero h1 { max-width: 690px; font-size: clamp(4.2rem, 6.3vw, 6.6rem); }
.hero h1 span { color: var(--accent); }
.hero-lede { max-width: 580px; margin: 26px 0 28px; font-size: 1.05rem; line-height: 1.65; }
.hero-actions { width: fit-content; }
.action-note { max-width: 435px; margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.legal-line { display: flex; align-items: center; gap: 14px; max-width: 510px; margin-top: 24px; color: var(--muted); font-size: .82rem; }
.legal-line strong { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); font-size: 1rem; }
.trust-strip { background: var(--paper-strong); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { display: flex; align-items: center; gap: 15px; min-height: 120px; padding: 20px 26px; border-right: 1px solid var(--line); }
.trust-grid > div:first-child { border-left: 1px solid var(--line); }
.trust-grid img { width: 34px; height: 34px; flex: 0 0 auto; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: .92rem; }
.trust-grid span { color: var(--muted); font-size: .76rem; line-height: 1.4; }

.section { padding: 112px 0; }
.section h2 { font-size: clamp(3.4rem, 5vw, 5.3rem); }
.section-intro > p:not(.eyebrow), .split-heading > p, .faq-heading > p { color: var(--muted); }
.games-layout { display: grid; grid-template-columns: 220px 1fr; gap: 52px; align-items: start; }
.section-intro { position: sticky; top: 118px; }
.section-intro h2 { margin-bottom: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; text-decoration: none; font-weight: 900; border-bottom: 2px solid var(--ink); }
.text-link img { width: 16px; }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.game-card { overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); transition: transform .22s ease, box-shadow .22s ease; }
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game-card > picture { display: block; }
.game-card > picture img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.game-card-copy { padding: 22px; }
.card-kicker { margin: 0 0 7px; color: var(--accent); font-size: .7rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.game-card h3 { margin: 0 0 8px; font-family: Impact, "Arial Narrow", Arial, sans-serif; font-size: 1.9rem; letter-spacing: -.02em; }
.game-card p:last-child { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.payments { background: #f4eee4; border-block: 1px solid var(--line); }
.split-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 60px; align-items: end; margin-bottom: 48px; }
.split-heading > p { margin: 0 0 8px; }
.payment-list { display: grid; grid-template-columns: repeat(8, 1fr); padding: 0; margin: 0; list-style: none; border: 1px solid var(--line); background: var(--paper-strong); }
.payment-list li { display: grid; place-items: center; min-height: 92px; padding: 15px 8px; border-right: 1px solid var(--line); font-weight: 950; font-size: 1.1rem; }
.payment-list li:last-child { border-right: 0; }
.payment-list .dana, .payment-list .gopay { color: var(--blue); }
.payment-list .ovo { color: #6d42a1; }
.payment-list .qris { letter-spacing: .12em; }
.payment-note { max-width: 940px; margin: 20px 0 0; color: var(--muted); font-size: .84rem; }

.access { background: var(--paper-strong); }
.step-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; margin: 0; list-style: none; border-top: 2px solid var(--ink); }
.step-list li { display: grid; grid-template-columns: 52px 46px 1fr; gap: 16px; align-items: start; padding: 32px 34px 18px 0; border-right: 1px solid var(--line); }
.step-list li + li { padding-left: 34px; }
.step-list li:last-child { border-right: 0; }
.step-number { color: var(--accent); font-family: Impact, "Arial Narrow", Arial, sans-serif; font-size: 2.1rem; line-height: 1; }
.step-list h3 { margin: 3px 0 6px; font-size: 1rem; }
.step-list p { grid-column: 3; margin: -6px 0 0; color: var(--muted); font-size: .88rem; }

.lobby { background: var(--ink); color: #fff; }
.lobby-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 76px; align-items: center; }
.lobby-media { overflow: hidden; border-radius: 4px; transform: rotate(-1.5deg); box-shadow: 22px 24px 0 var(--accent); }
.lobby-media picture { display: block; }
.lobby-media img { width: 100%; min-height: 430px; object-fit: cover; }
.lobby p:not(.eyebrow), .lobby-facts span { color: #cfc9c0; }
.lobby-facts { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.22); }
.lobby-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.lobby-facts strong { color: #fff; }
.lobby-facts span { font-size: .87rem; }

.safety { padding-block: 0; background: var(--paper-strong); }
.safety-grid { width: 100%; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.safety-image { display: block; overflow: hidden; width: 100%; height: 100%; min-height: 650px; }
.safety-image img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.safety-copy { display: flex; flex-direction: column; justify-content: center; padding: 86px max(40px, calc((100vw - 1220px) / 2)) 86px 70px; }
.safety-copy > p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 1.05rem; }
.safety-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.safety-points article { padding: 24px 20px 0 0; }
.safety-points article + article { padding-left: 20px; border-left: 1px solid var(--line); }
.safety-points h3 { margin: 13px 0 6px; font-size: .9rem; }
.safety-points p { margin: 0; color: var(--muted); font-size: .76rem; }

.information { background: #f4eee4; border-block: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
details { background: var(--paper-strong); border: 1px solid var(--line); }
summary { position: relative; padding: 22px 56px 22px 24px; cursor: pointer; font-weight: 900; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.5rem; font-weight: 500; }
details[open] summary::after { content: "−"; }
details > div, .faq details > p { padding: 0 24px 22px; color: var(--muted); font-size: .9rem; }
details p:first-child { margin-top: 0; }
details p:last-child { margin-bottom: 0; }

.faq { background: var(--paper-strong); }
.faq-heading { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: end; margin-bottom: 38px; }
.faq-heading > p { margin: 0 0 10px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; }
.faq details { background: #fff; }
.faq details > p { margin: 0; }

.final-cta { color: #fff; background: var(--accent); }
.final-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: center; padding-block: 70px; }
.final-brand { display: grid; grid-template-columns: 190px 1fr; column-gap: 35px; align-items: center; }
.final-brand > picture { display: block; width: 190px; }
.final-brand > picture img { width: 190px; height: 74px; object-fit: contain; filter: brightness(0) invert(1); }
.final-brand h2 { font-size: clamp(2.6rem, 4vw, 4.6rem); }
.final-brand p { grid-column: 2; margin: 10px 0 0; max-width: 520px; }
.final-action { text-align: center; }
.final-action p { margin: 12px auto 0; max-width: 470px; font-size: .8rem; }

.site-footer { background: var(--paper-strong); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: center; min-height: 94px; }
.footer-grid p { margin: 0; color: var(--muted); font-size: .8rem; }
.footer-grid nav { display: flex; gap: 24px; }
.mobile-cta { display: none; }

@media (max-width: 1050px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 18px; }
  .button-small { display: none; }
  .hero-copy { width: 66%; }
  .hero h1 { font-size: clamp(3.9rem, 7.6vw, 5.4rem); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div { border-bottom: 1px solid var(--line); }
  .games-layout { grid-template-columns: 1fr; }
  .section-intro { position: static; max-width: 600px; }
  .payment-list { grid-template-columns: repeat(4, 1fr); }
  .payment-list li:nth-child(4) { border-right: 0; }
  .payment-list li:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-image { min-height: 480px; max-height: 600px; }
  .safety-copy { padding: 70px max(24px, calc((100vw - 920px) / 2)); }
  .final-brand { grid-template-columns: 145px 1fr; }
  .final-brand > picture, .final-brand > picture img { width: 145px; }
}

@media (max-width: 760px) {
  :root { --wrap: min(100% - 28px, 640px); }
  body { padding-bottom: 76px; }
  .site-header { backdrop-filter: none; }
  .header-inner { min-height: 64px; justify-content: space-between; }
  .brand { width: 106px; }
  .brand img { height: 40px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; padding: 12px 14px 22px; background: var(--paper-strong); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.12); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .hero { min-height: auto; }
  .hero-art { inset: 0; opacity: .32; }
  .hero-art::before { background: linear-gradient(180deg, rgba(255,250,242,.8), var(--paper) 80%); }
  .hero-grid { display: block; min-height: 0; }
  .hero-copy { width: 100%; padding: 74px 0 52px; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5.2rem); }
  .hero-lede { font-size: .98rem; }
  .button-large { width: 100%; min-height: 60px; padding-inline: 18px; }
  .trust-grid { grid-template-columns: 1fr 1fr; width: 100%; }
  .trust-grid > div { min-height: 106px; padding: 18px 14px; }
  .trust-grid > div:first-child { border-left: 0; }
  .trust-grid > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-grid > div:nth-child(even) { border-right: 0; }
  .trust-grid img { width: 28px; height: 28px; }
  .section { padding: 78px 0; }
  .section h2 { font-size: clamp(3.1rem, 15vw, 4.6rem); }
  .games-layout, .game-grid, .split-heading, .step-list, .lobby-grid, .info-grid, .faq-heading, .faq-grid, .final-grid { grid-template-columns: 1fr; }
  .games-layout { gap: 34px; }
  .game-grid { gap: 16px; }
  .game-card { display: grid; grid-template-columns: 44% 56%; }
  .game-card > picture { height: 100%; }
  .game-card > picture img { height: 100%; aspect-ratio: auto; }
  .game-card-copy { padding: 16px; }
  .game-card h3 { font-size: 1.45rem; }
  .game-card p:last-child { font-size: .78rem; }
  .split-heading { gap: 20px; margin-bottom: 34px; }
  .payment-list { grid-template-columns: repeat(2, 1fr); }
  .payment-list li { min-height: 78px; border-bottom: 1px solid var(--line); }
  .payment-list li:nth-child(even) { border-right: 0; }
  .step-list { border-top: 0; }
  .step-list li, .step-list li + li { grid-template-columns: 44px 40px 1fr; padding: 26px 0; border-right: 0; border-top: 1px solid var(--ink); }
  .step-list p { grid-column: 3; }
  .lobby-grid { gap: 56px; }
  .lobby-media { box-shadow: 12px 14px 0 var(--accent); }
  .lobby-media img { min-height: 270px; }
  .lobby-facts > div { grid-template-columns: 95px 1fr; }
  .safety-image { min-height: 360px; }
  .safety-copy { padding: 64px 20px; }
  .safety-points { grid-template-columns: 1fr; }
  .safety-points article, .safety-points article + article { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .faq-heading { gap: 18px; }
  .final-grid { gap: 34px; padding-block: 54px; }
  .final-brand { grid-template-columns: 110px 1fr; gap: 18px; }
  .final-brand > picture, .final-brand > picture img { width: 110px; }
  .final-brand > picture img { height: 54px; }
  .final-brand h2 { font-size: 2.8rem; }
  .final-brand p { grid-column: 1 / -1; }
  .footer-grid { align-items: flex-start; flex-direction: column; padding-block: 30px; }
  .footer-grid nav { flex-wrap: wrap; gap: 14px 20px; }
  .mobile-cta { display: block; position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,250,242,.96); border-top: 1px solid var(--line); }
  .mobile-cta .button { width: 100%; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 3.55rem; }
  .game-card { grid-template-columns: 1fr; }
  .game-card > picture { height: auto; }
  .game-card > picture img { height: auto; aspect-ratio: 16 / 9; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div:nth-child(n) { border-right: 0; }
  .final-brand { grid-template-columns: 1fr; }
  .final-brand p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
