:root {
  --bg: #0a0611;
  --panel: #140c21;
  --panel-2: #1b0f2c;
  --ink: #fff;
  --muted: #a99db9;
  --violet: #8b3dff;
  --pink: #f12aac;
  --gold: #ffd166;
  --green: #42f5a7;
  --line: rgba(255,255,255,.1);
  --shadow: 0 28px 80px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow-x: hidden; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.ambient { position: fixed; width: 42rem; height: 42rem; border-radius: 50%; filter: blur(130px); opacity: .15; pointer-events: none; z-index: -1; }
.ambient-one { background: var(--pink); top: -25rem; left: -15rem; }
.ambient-two { background: var(--violet); top: 30rem; right: -25rem; }

.topbar { height: 78px; padding: 0 clamp(18px,4vw,66px); display: flex; align-items: center; gap: 38px; position: sticky; top: 0; z-index: 30; background: rgba(8,4,14,.85); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; letter-spacing: .08em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px 7px 13px 7px; font-weight: 1000; font-style: italic; font-size: 24px; background: linear-gradient(145deg,var(--pink),var(--violet)); box-shadow: 0 0 25px rgba(241,42,172,.34); }
.brand > span:last-child { font-weight: 450; line-height: .98; }
.brand strong { font-weight: 950; }
.brand small { display: block; margin-top: 5px; font-size: 8px; color: var(--muted); letter-spacing: .23em; }
.desktop-nav { display: flex; align-items: stretch; height: 100%; gap: 28px; }
.desktop-nav a, .nav-link { display: flex; align-items: center; position: relative; color: #bdb3c9; font-size: 13px; font-weight: 750; background: none; border: 0; cursor: pointer; padding: 0; }
.desktop-nav a:hover, .nav-link:hover, .desktop-nav a.active { color: white; }
.desktop-nav a.active::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:linear-gradient(90deg,var(--pink),var(--violet)); border-radius:3px 3px 0 0; }
.account-pills { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.balance-pill { min-width: 210px; height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.balance-pill span:not(.pulse-dot), .balance-pill small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing:.08em; }
.balance-pill strong { margin-left:auto; font-size: 16px; }
.pulse-dot,.live-dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 12px var(--green); display:inline-block; }

.primary,.secondary,.ghost { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; padding: 0 22px; border-radius: 13px; font-size: 13px; font-weight: 850; transition: transform .18s, box-shadow .18s, border-color .18s; }
.primary { color:white; background:linear-gradient(110deg,var(--pink),var(--violet)); box-shadow:0 12px 30px rgba(191,36,199,.26); }
.primary:hover,.secondary:hover,.ghost:hover { transform: translateY(-2px); }
.primary:disabled { filter:grayscale(.75); opacity:.55; cursor:not-allowed; transform:none; }
.secondary { color:white; background:rgba(139,61,255,.16); border:1px solid rgba(173,109,255,.4); }
.ghost { color:white; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.16); }
.compact { min-height:42px; padding:0 17px; }
.full { width:100%; }

.hero { min-height: 610px; position: relative; overflow: hidden; padding: 86px clamp(20px,7vw,120px); display:flex; align-items:center; border-bottom:1px solid var(--line); }
.hero-art { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; filter:saturate(1.05) contrast(1.05); }
.hero-scrim { position:absolute; inset:0; background:linear-gradient(90deg,rgba(8,3,15,.98) 0%,rgba(9,4,17,.89) 35%,rgba(9,4,17,.2) 70%,rgba(9,4,17,.5) 100%), linear-gradient(0deg,var(--bg),transparent 28%); }
.hero-copy { position:relative; z-index:2; width:min(620px,58vw); }
.eyebrow { display:flex; align-items:center; gap:8px; color:#d4c7e3; letter-spacing:.15em; font-size:10px; font-weight:900; }
.eyebrow i { width:20px; height:2px; display:inline-block; background:linear-gradient(90deg,var(--pink),var(--violet)); }
.eyebrow.centered { justify-content:center; }
h1 { margin:18px 0; font-size:clamp(49px,6vw,82px); line-height:.96; letter-spacing:-.055em; }
h1 em { color:transparent; font-style:normal; background:linear-gradient(90deg,#fff 0%,#f4a9ff 45%,#9a59ff 100%); background-clip:text; -webkit-background-clip:text; }
.hero-copy > p { max-width:590px; color:#c4b9d0; font-size:16px; line-height:1.7; }
.hero-actions { margin-top:28px; display:flex; gap:12px; }
.trust-row { margin-top:34px; display:flex; gap:26px; color:#9d90ad; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.trust-row span { display:flex; align-items:center; gap:6px; }
.trust-row b { color:white; font-size:11px; }
.api-card { position:absolute; z-index:3; right:clamp(20px,5vw,78px); bottom:46px; width:315px; padding:20px; border:1px solid rgba(255,255,255,.16); border-radius:20px; background:linear-gradient(155deg,rgba(29,15,47,.9),rgba(11,6,19,.9)); box-shadow:var(--shadow); backdrop-filter:blur(20px); }
.api-card::before { content:""; position:absolute; inset:0; border-radius:inherit; padding:1px; background:linear-gradient(150deg,rgba(255,255,255,.18),transparent 45%,rgba(241,42,172,.35)); mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite:exclude; pointer-events:none; }
.api-card-head { display:flex; justify-content:space-between; color:#b9acc6; font-size:9px; font-weight:900; letter-spacing:.12em; }
.api-card-head span { display:flex; gap:8px; align-items:center; color:#dcd4e5; }
.api-number { margin:23px 0 16px; }
.api-number > span { display:block; font-size:35px; font-weight:950; letter-spacing:-.04em; }
.api-number small { color:var(--muted); font-size:11px; }
.meter { height:5px; background:rgba(255,255,255,.08); border-radius:5px; overflow:hidden; }
.meter i { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--pink),var(--violet)); box-shadow:0 0 15px var(--pink); transition:width .5s; }
.api-stats { display:grid; grid-template-columns:repeat(3,1fr); margin:18px 0; gap:8px; }
.api-stats span { padding:10px 5px; border:1px solid var(--line); border-radius:10px; text-align:center; }
.api-stats small { display:block; color:var(--muted); font-size:8px; text-transform:uppercase; margin-bottom:5px; }
.api-stats b { font-size:12px; }

.quick-strip { max-width:1320px; margin:-1px auto 0; display:grid; grid-template-columns:repeat(5,1fr); border-left:1px solid var(--line); }
.quick { min-height:90px; display:grid; grid-template-columns:42px 1fr; grid-template-rows:1fr 1fr; align-content:center; text-align:left; column-gap:10px; padding:14px 24px; color:white; background:#10091a; border:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); cursor:pointer; position:relative; }
.quick::after { content:""; position:absolute; bottom:-1px; left:0; right:100%; height:2px; background:linear-gradient(90deg,var(--pink),var(--violet)); transition:right .2s; }
.quick.active::after,.quick:hover::after { right:0; }
.quick > span { grid-row:1/3; align-self:center; display:grid; place-items:center; width:40px; height:40px; border-radius:12px; color:#e5b8ff; background:rgba(139,61,255,.15); font-size:18px; }
.quick b { align-self:end; font-size:12px; }
.quick small { color:var(--muted); font-size:9px; }

.games-section,.integration { max-width:1320px; margin:0 auto; padding:76px 20px; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:30px; margin-bottom:28px; }
.section-heading h2 { font-size:clamp(30px,4vw,46px); letter-spacing:-.035em; margin:11px 0 7px; }
.section-heading p { margin:0; color:var(--muted); font-size:13px; }
.catalog-count { display:flex; align-items:baseline; gap:8px; }
.catalog-count strong { font-size:38px; }
.catalog-count span { color:var(--muted); font-size:12px; }
.catalog-tools { display:grid; grid-template-columns:minmax(240px,1fr) minmax(280px,.75fr) minmax(190px,.45fr); gap:12px; margin-bottom:24px; }
.search-box,.select-box { height:54px; border:1px solid var(--line); background:rgba(255,255,255,.035); border-radius:13px; display:flex; align-items:center; padding:0 16px; }
.search-box:focus-within,.select-box:focus-within { border-color:rgba(197,118,255,.75); box-shadow:0 0 0 3px rgba(139,61,255,.11); }
.search-box > span { font-size:23px; color:var(--muted); transform:rotate(-15deg); }
.search-box input { width:100%; border:0; outline:0; color:white; background:transparent; padding:0 12px; font-size:13px; }
.select-box { display:grid; grid-template-columns:auto 1fr; gap:12px; }
.select-box > span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.09em; }
.select-box select { min-width:0; width:100%; border:0; outline:0; background:#160d24; color:white; padding:8px; border-radius:7px; font-size:11px; text-overflow:ellipsis; }

.games-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:14px; }
.game-card { min-height:245px; border-radius:18px; overflow:hidden; position:relative; border:1px solid rgba(255,255,255,.1); background:var(--card-bg); box-shadow:0 15px 35px rgba(0,0,0,.22); cursor:pointer; isolation:isolate; transition:transform .22s,border-color .22s,box-shadow .22s; }
.game-card:hover { transform:translateY(-7px); border-color:rgba(255,255,255,.34); box-shadow:0 23px 44px rgba(0,0,0,.38),0 0 28px var(--card-glow); }
.game-card::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.28),transparent 25%),repeating-linear-gradient(120deg,transparent 0 18px,rgba(255,255,255,.025) 19px 20px); z-index:-1; }
.game-art { height:176px; position:relative; display:grid; place-items:center; overflow:hidden; }
.game-art::after { content:""; position:absolute; width:135px; height:135px; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow:0 0 0 20px rgba(255,255,255,.025),0 0 0 40px rgba(255,255,255,.018); }
.game-icon { position:relative; z-index:2; font-size:62px; filter:drop-shadow(0 10px 8px rgba(0,0,0,.36)); }
.game-index { position:absolute; top:10px; left:10px; z-index:3; min-width:34px; padding:5px 7px; border:1px solid rgba(255,255,255,.17); border-radius:8px; background:rgba(6,3,10,.52); font-size:9px; font-weight:900; letter-spacing:.09em; backdrop-filter:blur(8px); }
.game-provider { position:absolute; top:10px; right:10px; z-index:3; padding:5px 7px; border-radius:7px; background:rgba(6,3,10,.48); font-size:7px; color:#d7ccdf; text-transform:uppercase; letter-spacing:.08em; }
.game-play { position:absolute; z-index:4; display:grid; place-items:center; width:48px; height:48px; border-radius:50%; border:1px solid rgba(255,255,255,.42); color:white; background:linear-gradient(140deg,var(--pink),var(--violet)); opacity:0; transform:scale(.75); transition:.2s; box-shadow:0 10px 25px rgba(0,0,0,.35); }
.game-card:hover .game-icon { opacity:.32; }
.game-card:hover .game-play { opacity:1; transform:scale(1); }
.game-info { position:absolute; left:0; right:0; bottom:0; min-height:70px; padding:13px 14px; background:linear-gradient(0deg,rgba(8,4,14,.98),rgba(8,4,14,.83)); border-top:1px solid rgba(255,255,255,.09); }
.game-info b { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.game-info small { color:var(--muted); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.empty-state { text-align:center; padding:70px 20px; border:1px dashed var(--line); border-radius:18px; }
.empty-state > span { font-size:42px; color:var(--pink); }
.empty-state h3 { margin:12px 0 5px; }
.empty-state p { margin:0; color:var(--muted); }
.load-more { margin:28px auto 0; min-width:220px; }

.integration { padding-top:36px; }
.compact-heading { padding:36px; border:1px solid var(--line); border-bottom:0; margin:0; border-radius:22px 22px 0 0; background:linear-gradient(100deg,rgba(139,61,255,.12),transparent); }
.demo-badge { padding:9px 12px; border:1px solid rgba(66,245,167,.32); border-radius:30px; color:var(--green); background:rgba(66,245,167,.06); font-size:9px; font-weight:900; letter-spacing:.1em; }
.flow-grid { display:grid; grid-template-columns:repeat(4,1fr); border-left:1px solid var(--line); border-top:1px solid var(--line); }
.flow-grid article { min-height:225px; padding:28px; position:relative; background:rgba(255,255,255,.025); border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.flow-grid article:first-child { border-radius:0 0 0 22px; }
.flow-grid article:last-child { border-radius:0 0 22px 0; }
.flow-grid article > span { position:absolute; top:22px; right:22px; color:#5f546d; font-size:10px; font-weight:900; }
.flow-grid i { display:grid; place-items:center; width:45px; height:45px; border-radius:13px; color:#efcaff; background:linear-gradient(140deg,rgba(241,42,172,.2),rgba(139,61,255,.2)); font-style:normal; }
.flow-grid h3 { margin:24px 0 10px; font-size:16px; }
.flow-grid p { margin:0; color:var(--muted); font-size:12px; line-height:1.65; }

footer { min-height:180px; padding:45px clamp(20px,6vw,90px); display:flex; align-items:center; gap:40px; border-top:1px solid var(--line); background:#07040c; }
.footer-brand { opacity:.88; }
footer > p { color:var(--muted); font-size:11px; max-width:410px; line-height:1.6; }
footer > div { margin-left:auto; display:flex; gap:20px; color:#766a83; font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
footer > div span:first-child { color:white; border:1px solid #7f718d; border-radius:50%; width:30px; height:30px; display:grid; place-items:center; }

.modal { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; }
.modal-backdrop { position:absolute; inset:0; border:0; background:rgba(4,2,8,.86); backdrop-filter:blur(13px); }
.age-card,.purchase-card { position:relative; z-index:2; width:min(470px,100%); padding:42px; text-align:center; border:1px solid rgba(255,255,255,.15); border-radius:25px; background:linear-gradient(155deg,#1d102f,#0d0815); box-shadow:var(--shadow),0 0 80px rgba(139,61,255,.2); }
.age-card::before,.purchase-card::before { content:""; position:absolute; inset:-1px; z-index:-1; border-radius:inherit; background:linear-gradient(150deg,rgba(241,42,172,.5),transparent 30%,transparent 70%,rgba(139,61,255,.5)); }
.age-orbit { width:102px; height:102px; margin:-12px auto 24px; display:flex; align-items:center; justify-content:center; position:relative; border:1px solid rgba(255,255,255,.16); border-radius:50%; background:radial-gradient(circle,rgba(139,61,255,.28),transparent 65%); box-shadow:0 0 40px rgba(139,61,255,.3); }
.age-orbit::before,.age-orbit::after { content:""; position:absolute; inset:-8px; border:1px dashed rgba(241,42,172,.36); border-radius:50%; }
.age-orbit::after { inset:12px; border-style:solid; }
.age-orbit span { font-size:39px; font-weight:950; z-index:2; }
.age-orbit small { font-size:19px; font-weight:900; color:var(--gold); z-index:2; }
.age-card h2,.purchase-card h2 { margin:16px 0 10px; font-size:30px; letter-spacing:-.03em; }
.age-card p,.purchase-card > p { color:var(--muted); font-size:12px; line-height:1.65; margin:0 0 24px; }
.age-card > a { display:inline-block; margin-top:18px; color:#9587a3; font-size:9px; text-decoration:underline; }
.close-button { position:absolute; top:15px; right:15px; width:34px; height:34px; color:#beb2c9; font-size:23px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.04); cursor:pointer; }
.purchase-card { width:min(650px,100%); text-align:left; }
.purchase-balance { display:flex; align-items:center; justify-content:space-between; padding:15px 17px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.035); }
.purchase-balance span { color:var(--muted); font-size:10px; }
.purchase-balance strong { font-size:13px; }
.packages { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:14px 0; }
.packages button { min-height:130px; position:relative; padding:22px 12px 14px; color:white; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.035); cursor:pointer; text-align:center; }
.packages button:hover,.packages button.selected { border-color:var(--pink); background:rgba(241,42,172,.09); box-shadow:0 0 25px rgba(241,42,172,.12); }
.packages span,.packages small { display:block; color:var(--muted); font-size:8px; letter-spacing:.1em; }
.packages b { display:block; margin:10px 0 2px; font-size:23px; }
.packages em { position:absolute; top:-8px; left:50%; transform:translateX(-50%); padding:4px 8px; border-radius:20px; color:white; background:linear-gradient(90deg,var(--pink),var(--violet)); font-size:7px; font-style:normal; font-weight:900; white-space:nowrap; }
.purchase-note { display:flex; gap:12px; align-items:flex-start; padding:12px; margin-bottom:14px; color:#bfb4c9; background:rgba(66,245,167,.06); border:1px solid rgba(66,245,167,.16); border-radius:11px; }
.purchase-note > span { color:var(--green); }
.purchase-note p { margin:0; font-size:9px; line-height:1.5; }
.purchase-result { padding:13px; margin-top:12px; border-radius:11px; color:#bfffe2; background:rgba(66,245,167,.08); border:1px solid rgba(66,245,167,.2); font-size:11px; line-height:1.5; }

.game-modal { padding:0; background:#050308; }
.game-shell { width:100%; height:100%; position:relative; display:grid; grid-template-rows:56px 1fr; }
.game-shell > header { display:flex; justify-content:space-between; align-items:center; padding:0 20px; background:#10091a; border-bottom:1px solid var(--line); }
.game-shell > header > div { display:flex; align-items:center; gap:10px; }
.game-shell header b { font-size:12px; }
.game-shell header small,.game-shell header span { color:var(--muted); font-size:9px; }
.game-shell header button { height:34px; padding:0 13px; color:white; border:1px solid rgba(255,255,255,.15); border-radius:9px; background:rgba(255,255,255,.06); cursor:pointer; font-size:10px; }
#game-frame { width:100%; height:100%; border:0; background:#000; }
.game-loading { position:absolute; inset:56px 0 0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; background:#07040c; }
.game-loading span { width:45px; height:45px; border:3px solid rgba(255,255,255,.12); border-top-color:var(--pink); border-radius:50%; animation:spin .8s linear infinite; }
.game-loading b { font-size:13px; }
.game-loading small { color:var(--muted); font-size:10px; }
@keyframes spin { to { transform:rotate(360deg); } }

.toast { position:fixed; z-index:200; right:22px; bottom:22px; max-width:380px; padding:14px 17px; color:white; border:1px solid rgba(255,255,255,.16); border-radius:13px; background:#20102f; box-shadow:var(--shadow); font-size:11px; line-height:1.5; }
.toast.error { border-color:rgba(255,77,123,.45); background:#2a0c1b; }

@media (max-width:1120px) {
  .desktop-nav { display:none; }
  .hero { min-height:660px; align-items:flex-start; }
  .hero-copy { width:70%; }
  .api-card { bottom:25px; }
  .games-grid { grid-template-columns:repeat(4,1fr); }
  .quick-strip { grid-template-columns:repeat(3,1fr); }
  .quick:nth-child(n+4) { display:none; }
}

@media (max-width:760px) {
  .topbar { height:68px; padding:0 14px; }
  .brand-mark { width:35px; height:35px; font-size:20px; }
  .balance-pill { min-width:0; padding:0 10px; }
  .balance-pill > span:not(.pulse-dot),.balance-pill small { display:none; }
  .account-pills .compact { display:none; }
  .hero { min-height:760px; padding:62px 20px 290px; align-items:flex-start; }
  .hero-art { object-position:64% center; opacity:.7; }
  .hero-scrim { background:linear-gradient(180deg,rgba(8,3,15,.86),rgba(8,3,15,.52) 42%,var(--bg) 82%); }
  .hero-copy { width:100%; }
  h1 { font-size:50px; }
  .hero-copy > p { font-size:14px; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .trust-row { gap:12px; flex-wrap:wrap; }
  .api-card { left:20px; right:20px; bottom:24px; width:auto; }
  .quick-strip { grid-template-columns:repeat(3,1fr); }
  .quick { padding:11px; grid-template-columns:34px 1fr; }
  .quick > span { width:31px; height:31px; }
  .quick small { display:none; }
  .games-section,.integration { padding:55px 14px; }
  .section-heading { align-items:flex-start; }
  .catalog-count { display:none; }
  .catalog-tools { grid-template-columns:1fr; }
  .games-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .game-card { min-height:215px; }
  .game-art { height:150px; }
  .flow-grid { grid-template-columns:1fr; }
  .compact-heading { padding:25px 20px; border-bottom:1px solid var(--line); }
  .demo-badge { display:none; }
  .flow-grid article:first-child,.flow-grid article:last-child { border-radius:0; }
  footer { flex-direction:column; align-items:flex-start; gap:18px; }
  footer > div { margin:0; flex-wrap:wrap; align-items:center; }
  .age-card,.purchase-card { padding:30px 22px; max-height:94vh; overflow:auto; }
  .packages { grid-template-columns:1fr; }
  .packages button { min-height:95px; }
  .game-shell > header small { display:none; }
  .game-shell > header > div:last-child > span { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  * { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; }
}
