/* ============ Dominochip — design system ============ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #12061f;
  --bg-2: #1a0a2e;
  --panel: #221038;
  --panel-2: #2b1445;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f6f0ff;
  --muted: #b6a4d4;
  --muted-2: #8f7cae;
  --purple: #8b2fd6;
  --purple-2: #b45cff;
  --purple-3: #6a1fb0;
  --gold: #ffc93c;
  --gold-2: #f2a71b;
  --green: #2ecc71;
  --red: #ff5a6a;
  --r: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: radial-gradient(1100px 700px at 78% -10%, #3d1160 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 30%, #2a0b45 0%, transparent 55%),
              linear-gradient(180deg, #170826 0%, #12061f 55%, #0f0519 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
.wrap { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(18, 6, 31, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -.3px; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(180, 92, 255, .35)); }
.brand b { font-weight: 800; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: #d9cbf1; transition: .18s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.on { color: #fff; font-weight: 600; }
.nav a.on::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -20px; height: 3px;
  border-radius: 3px; background: linear-gradient(90deg, var(--purple-2), #7d3cff);
  box-shadow: 0 0 14px rgba(180, 92, 255, .8);
}
.hdr-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 600; font-size: 14px; border-radius: 999px;
  padding: 11px 22px; transition: .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: #efe6ff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-gold {
  background: linear-gradient(180deg, #ffd55c, var(--gold-2));
  color: #3a1f00; font-weight: 700;
  box-shadow: 0 10px 24px rgba(242, 167, 27, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-purple {
  background: linear-gradient(135deg, #a144f0, #6f21bd);
  color: #fff; box-shadow: 0 10px 26px rgba(139, 47, 214, .38);
}
.btn-purple:hover { filter: brightness(1.1); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: #e8dcff; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, #f7c948, #e2703a); color: #2a1200; font-size: 14px;
}

/* ---------- hero ---------- */
.hero {
  position: relative; margin-top: 22px; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(180, 92, 255, .18);
  background:
    radial-gradient(700px 420px at 82% 24%, rgba(190, 80, 255, .38), transparent 62%),
    radial-gradient(520px 320px at 12% 120%, rgba(120, 40, 210, .35), transparent 65%),
    linear-gradient(120deg, #2a0c45 0%, #3d1160 45%, #240a3b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .25; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 10px; padding: 42px 44px 36px; }
.hero-copy { position: relative; z-index: 3; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px; font-weight: 600; letter-spacing: .2px; color: #f0e4ff;
}
.eyebrow .ico { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffd45c, #ef9c1a); display: grid; place-items: center; color: #4a2a00; }
.hero h1 {
  margin: 20px 0 0; font-size: clamp(30px, 3.5vw, 50px); line-height: 1.02; font-weight: 800;
  letter-spacing: -1.2px; text-transform: uppercase; text-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.hero h1 span { display: block; }
.hero h1 .gold {
  background: linear-gradient(180deg, #fff3b0 0%, #ffd257 40%, #eda01a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 12px rgba(240, 165, 29, .35));
}
.hero h1 .l3 { font-size: .66em; letter-spacing: -.6px; margin-top: 6px; color: #fff; }
.hero p { margin: 14px 0 0; max-width: 430px; color: #cbbbe4; font-size: 13px; line-height: 1.7; }
.hero-cta { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.hero-cta .btn-gold { padding: 13px 26px; font-size: 14px; }
.hero-cta .online { padding: 13px 20px; font-size: 13px; color: #ded0f5; }
.hero-chips { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: rgba(38, 14, 62, .78); border: 1px solid rgba(180, 120, 255, .28);
  font-size: 12px; color: #ecdefd; font-weight: 500;
}
.chip .ci { display: grid; place-items: center; color: #d9b6ff; }
.chip .ci.gold { color: #ffd977; }
.leaf { position: absolute; z-index: 1; pointer-events: none; }
.leaf-a { width: 260px; right: -40px; top: -30px; transform: rotate(14deg); }
.leaf-b { width: 200px; right: 210px; bottom: -40px; transform: rotate(-160deg); }

.hero-art { position: relative; min-height: 380px; }
.hero-coins { position: absolute; left: 38%; bottom: -12px; z-index: 3; display: flex; align-items: flex-end; pointer-events: none; }
.hero-coins img { width: 58px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); }
.hero-coins img:nth-child(1) { width: 64px; transform: rotate(-8deg); }
.hero-coins img:nth-child(2) { width: 44px; margin-left: -18px; transform: rotate(6deg) translateY(-6px); }
.hero-coins img:nth-child(3) { width: 34px; margin-left: -14px; transform: rotate(-14deg) translateY(-2px); }
.hero-mascot {
  position: absolute; right: -6px; bottom: -22px; width: 104%; max-width: 520px;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .45));
  -webkit-mask-image: radial-gradient(ellipse 66% 62% at 50% 42%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 66% 62% at 50% 42%, #000 62%, transparent 100%);
  z-index: 2;
}
.hero-gamecard {
  position: absolute; right: 4px; top: 8px; width: 210px; transform: rotate(7deg);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 210, 90, .35); z-index: 3;
}
.coin { position: absolute; z-index: 4; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .4)); }
.coin.c1 { width: 54px; right: 250px; bottom: 34px; }
.coin.c2 { width: 38px; right: 300px; bottom: 12px; opacity: .9; }
.coin.c3 { width: 44px; right: 20px; bottom: 96px; opacity: .85; }
.hero-glow {
  position: absolute; right: 8%; top: 18%; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 90, .35), transparent 65%); filter: blur(30px); z-index: 1;
}

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-top: 18px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(45, 18, 72, .92), rgba(32, 12, 52, .92));
  border: 1px solid var(--line);
}
.stat { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .si { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(180, 92, 255, .16); color: #dcc0ff; flex: 0 0 auto; }
.stat .si.gold { background: rgba(255, 201, 60, .15); color: var(--gold); }
.stat b { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.stat span { font-size: 11.5px; color: var(--muted); }
.stat b.live { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #5ef0a4; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #34e08a; box-shadow: 0 0 0 4px rgba(52, 224, 138, .15); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 224, 138, 0); } }

/* ---------- sections ---------- */
.section { margin-top: 44px; }
.sec-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.sec-head .crown { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 201, 60, .14); color: var(--gold); flex: 0 0 auto; }
.sec-head h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.4px; display: flex; align-items: center; gap: 8px; }
.sec-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.game-card {
  display: flex; align-items: center; gap: 22px; padding: 18px 22px; border-radius: 20px;
  background: linear-gradient(100deg, rgba(58, 22, 90, .95), rgba(35, 13, 56, .95));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.game-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 90% 0%, rgba(180, 92, 255, .22), transparent 70%); pointer-events: none;
}
.game-card + .game-card { margin-top: 12px; }
.game-art { width: 118px; height: 118px; border-radius: 16px; flex: 0 0 auto; box-shadow: 0 12px 26px rgba(0, 0, 0, .4); }
.game-info { flex: 1; min-width: 0; }
.game-info h3 { margin: 0; font-size: 19px; font-weight: 700; }
.game-info p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); max-width: 520px; line-height: 1.55; }
.tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; background: rgba(46, 204, 113, .14); color: #67e5a2; border: 1px solid rgba(46, 204, 113, .25);
}
.tag.purple { background: rgba(180, 92, 255, .16); color: #d9b6ff; border-color: rgba(180, 92, 255, .3); }
.tag.gold { background: rgba(255, 201, 60, .14); color: #ffd977; border-color: rgba(255, 201, 60, .25); }
.game-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: 0 0 auto; }
.price-from { font-size: 11px; color: var(--muted); }
.price-from b { display: block; font-size: 16px; color: #fff; }

.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.feature {
  padding: 20px 16px; border-radius: 16px; text-align: left;
  background: linear-gradient(180deg, rgba(58, 22, 90, .75), rgba(31, 12, 50, .75));
  border: 1px solid var(--line); transition: .22s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(180, 92, 255, .38); }
.feature .fi {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(150deg, rgba(180, 92, 255, .3), rgba(120, 40, 210, .18));
  border: 1px solid rgba(200, 140, 255, .28); color: #e9cdff;
}
.feature h4 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.feature p { margin: 7px 0 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

/* promo & testimoni */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promo-card { position: relative; padding: 20px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(135deg, rgba(139, 47, 214, .35), rgba(40, 14, 64, .9)); }
.promo-card h4 { margin: 0; font-size: 15px; }
.promo-card p { margin: 6px 0 12px; font-size: 12px; color: #d5c4ee; }
.promo-card .kode { font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px 10px; border-radius: 8px; border: 1px dashed rgba(255, 201, 60, .55); color: var(--gold); display: inline-block; }
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.testi { padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.testi .stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; }
.testi p { font-size: 12px; color: #d6c8ec; line-height: 1.65; margin: 8px 0 12px; }
.testi .who { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.testi .who i { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #b45cff, #6a1fb0); display: grid; place-items: center; font-style: normal; font-size: 11px; }

/* footer */
.ftr { margin: 56px 0 0; border-top: 1px solid var(--line); background: rgba(12, 4, 21, .6); padding: 34px 0 90px; }
.ftr-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.ftr p { font-size: 12px; color: var(--muted-2); max-width: 360px; line-height: 1.7; margin: 10px 0 0; }
.ftr h5 { margin: 0 0 12px; font-size: 13px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 12px; color: var(--muted); }
.ftr ul a:hover { color: #fff; }
.ftr .copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

/* bottom nav mobile */
.bottom-nav { display: none; }

/* ---------- generic page ---------- */
.page-head { padding: 30px 0 8px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.6px; }
.page-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.card {
  background: linear-gradient(180deg, rgba(45, 18, 72, .9), rgba(28, 11, 46, .92));
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }
label.fl { display: block; font-size: 12px; font-weight: 600; color: #d9c9f2; margin: 0 0 7px; }
.inp {
  width: 100%; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: #fff;
  background: rgba(12, 4, 21, .55); border: 1px solid rgba(255, 255, 255, .12); outline: none; transition: .18s;
}
.inp:focus { border-color: rgba(180, 92, 255, .7); box-shadow: 0 0 0 3px rgba(180, 92, 255, .16); }
.inp::placeholder { color: #7d6d99; }
select.inp { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b6a4d4' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.fgroup { margin-bottom: 16px; }

/* steps */
.steps { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 14px 0 4px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 11.5px; font-weight: 600; }
.step i {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: #c8b8e0;
}
.step.on { color: #fff; }
.step.on i { background: linear-gradient(135deg, #b45cff, #7a24cf); border-color: transparent; box-shadow: 0 0 0 4px rgba(180, 92, 255, .16); }
.step.done i { background: rgba(46, 204, 113, .22); border-color: rgba(46, 204, 113, .45); color: #6ff0a8; }
.step-line { width: 34px; height: 2px; background: var(--line-2); border-radius: 2px; }
.step-line.on { background: rgba(180, 92, 255, .6); }

/* nominal list */
.nom-list { display: grid; gap: 10px; }
.nom {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); transition: .18s;
}
.nom:hover { border-color: rgba(180, 92, 255, .45); background: rgba(180, 92, 255, .08); }
.nom.sel { border-color: var(--purple-2); background: linear-gradient(90deg, rgba(180, 92, 255, .22), rgba(180, 92, 255, .06)); box-shadow: 0 0 0 3px rgba(180, 92, 255, .12); }
.nom img { width: 36px; height: 36px; flex: 0 0 auto; }
.nom .nm b { display: block; font-size: 13.5px; font-weight: 600; }
.nom .nm span { font-size: 11.5px; color: var(--muted); }
.nom .radio { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.nom.sel .radio { border-color: var(--purple-2); background: radial-gradient(circle, var(--purple-2) 40%, transparent 45%); }

/* ringkasan */
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 12.5px; color: var(--muted); }
.sum-row b { color: #fff; font-weight: 600; }
.sum-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--line-2); font-size: 13px; }
.sum-total b { font-size: 18px; color: var(--gold); }
.mini-game { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.mini-game img { width: 52px; height: 52px; border-radius: 10px; }
.mini-game b { display: block; font-size: 12.5px; }
.mini-game span { font-size: 11px; color: var(--muted); }

/* QRIS */
.qr-box { background: #fff; border-radius: 16px; padding: 12px; width: 236px; margin: 0 auto; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.qr-box img { width: 100%; border-radius: 8px; }
.qris-logo { display: flex; align-items: center; justify-content: center; gap: 2px; font-weight: 800; font-style: italic; letter-spacing: -1px; font-size: 20px; margin-bottom: 8px; color: #0b3d91; }
.qris-logo span { color: #e01b24; }
.countdown { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #ff6b7d; text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .4px; }

/* alur pengiriman */
.flow { display: grid; gap: 14px; }
.flow-item { display: flex; gap: 12px; align-items: flex-start; opacity: .45; }
.flow-item.on { opacity: 1; }
.flow-item .fi-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); display: grid; place-items: center; flex: 0 0 auto; }
.flow-item.on .fi-dot { border-color: #2ecc71; background: rgba(46, 204, 113, .18); color: #6ff0a8; }
.flow-item.spin .fi-dot { border-color: rgba(255, 201, 60, .7); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-item b { font-size: 13px; display: block; }
.flow-item span { font-size: 11.5px; color: var(--muted); }

/* success */
.success-wrap { text-align: center; padding: 8px 0 4px; }
.success-check { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #57e29b, #159a55); box-shadow: 0 0 0 12px rgba(46, 204, 113, .12), 0 18px 40px rgba(21, 154, 85, .35); animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-wrap h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; color: #6ff0a8; }
.success-wrap p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }

/* toast */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 999; opacity: 0; pointer-events: none; transition: .25s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast div { background: #2b1445; color: #fff; border: 1px solid rgba(180, 92, 255, .4); padding: 12px 20px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow); }

/* auth */
.auth-wrap { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 40px 20px; position: relative; }
.auth-card { width: min(430px, 100%); padding: 30px; border-radius: 24px; background: linear-gradient(180deg, rgba(48, 19, 76, .96), rgba(24, 9, 39, .98)); border: 1px solid rgba(180, 92, 255, .22); box-shadow: var(--shadow); }
.auth-card h2 { margin: 14px 0 4px; font-size: 23px; letter-spacing: -.4px; }
.auth-card p.sub { margin: 0 0 20px; font-size: 12.5px; color: var(--muted); }
.auth-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.auth-logo img { width: 44px; }
.err { background: rgba(255, 90, 106, .12); border: 1px solid rgba(255, 90, 106, .35); color: #ffb3bc; padding: 10px 12px; border-radius: 10px; font-size: 12px; margin-bottom: 14px; }

/* riwayat */
.riwayat { display: grid; gap: 10px; }
.rw { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.rw .rw-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(180, 92, 255, .16); color: #dcc0ff; flex: 0 0 auto; }
.rw b { font-size: 13px; display: block; }
.rw span { font-size: 11.5px; color: var(--muted); }
.badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: rgba(46, 204, 113, .16); color: #6ff0a8; }
.badge.warn { background: rgba(255, 201, 60, .16); color: #ffd977; }
.badge.info { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.badge.err { background: rgba(255, 90, 106, .16); color: #ff9aa5; }

/* ============ responsive ============ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; padding: 34px 28px 0; }
  .hero-art { min-height: 340px; margin-top: 6px; }
  .hero-mascot { right: 50%; transform: translateX(50%); width: 86%; max-width: 420px; bottom: -20px; }
  .hero-gamecard { right: 6%; top: 0; width: 150px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 28px); }
  .nav { display: none; }
  .hdr-in { height: 64px; gap: 10px; }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 32px; }
  .hdr-cta .btn-ghost { padding: 9px 16px; }
  .hdr-cta .btn-gold { padding: 9px 16px; }
  .hero { margin-top: 14px; border-radius: 22px; }
  .hero-grid { padding: 24px 20px 0; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); letter-spacing: -1px; }
  .hero p { font-size: 12.5px; }
  .hero-chips { gap: 8px; }
  .chip { padding: 7px 11px 7px 8px; font-size: 11px; }
  .chip .ci { width: 20px; height: 20px; }
  .hero-art { min-height: 290px; }
  .hero-mascot { width: 96%; }
  .hero-gamecard { width: 118px; right: 2%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 12px; gap: 9px; }
  .stat:nth-child(3) { border-right: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat b { font-size: 14px; }
  .stat span { font-size: 10.5px; }
  .section { margin-top: 32px; }
  .sec-head h2 { font-size: 19px; }
  .game-card { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .game-art { width: 84px; height: 84px; }
  .game-info h3 { font-size: 16px; }
  .game-info p { font-size: 11.5px; }
  .game-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .feature { padding: 15px; }
  .feature .fi { width: 38px; height: 38px; margin-bottom: 10px; }
  .feature h4 { font-size: 12.5px; }
  .feature p { font-size: 11px; }
  .promo-grid, .testi-grid { grid-template-columns: 1fr; }
  .ftr { padding-bottom: 108px; }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: rgba(24, 9, 39, .96); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  }
  .bn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: #9a87b8; padding: 4px 0; }
  .bn svg { width: 21px; height: 21px; }
  .bn.on { color: #d9b6ff; }
  .bn.mid { flex: 0 0 auto; margin-top: -26px; }
  .bn.mid .circle {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(150deg, #b45cff, #7622c9); border: 4px solid #1a0a2b;
    box-shadow: 0 10px 22px rgba(139, 47, 214, .5); color: #fff;
  }
  .bn.mid span { color: #e6d4ff; font-weight: 600; }
  .auth-wrap { min-height: calc(100vh - 64px); padding: 24px 16px; }
  .auth-card { padding: 22px; }
  #toast { bottom: 86px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 27px; }
  .hdr-in { gap: 8px; }
  .brand { font-size: 16.5px; }
  .hdr-cta { gap: 6px; }
  .hdr-cta .btn-ghost { padding: 8px 12px; font-size: 12px; }
  .hdr-cta .btn-gold { padding: 8px 14px; font-size: 12px; }
}
