/* Kuber Games landing: light blue + white (the KG core theme). No gold text. */
:root {
  --blue: #1f6fb5;
  --blue-d: #154f86;
  --blue-l: #e9f3fc;
  --sky: #4fa3e0;
  --ink: #0f2a44;
  --muted: #5b7088;
  --line: #d9e6f2;
  --bg: #ffffff;
  --soft: #f5f9fd;
  --red: #d32f2f;
  --green: #1b8a4b;
  --r: 14px;
  --shadow: 0 1px 2px rgb(15 42 68 / .06), 0 4px 16px rgb(15 42 68 / .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  padding-bottom: 84px;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.075rem; color: var(--muted); max-width: 62ch; }
@view-transition { navigation: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .86); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand b { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a:not(.btn) { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--blue); color: #fff; font-weight: 700; border-radius: 999px;
  padding: 12px 22px; border: 0; cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--blue-d); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-xl { padding: 16px 30px; font-size: 1.15rem; box-shadow: 0 8px 24px rgb(31 111 181 / .32); }
.btn svg { width: 22px; height: 22px; }

/* hero */
.hero { background: radial-gradient(1200px 400px at 80% -10%, #d6eafb 0, transparent 60%), linear-gradient(180deg, var(--blue-l), #fff); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-block: 48px 56px; }
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding-block: 28px 36px; } .hero-side { display: none; } }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--blue-d); margin-bottom: 16px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(27 138 75 / .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(27 138 75 / 0); } 100% { box-shadow: 0 0 0 0 rgb(27 138 75 / 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } html { scroll-behavior: auto; } }
.dl { margin-top: 22px; }
.dl-meta { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.ios-note { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); text-align: center; max-width: 300px; margin-inline: auto; }
.qr { width: 200px; height: 200px; margin: 0 auto 14px; }
.qr svg { width: 100%; height: 100%; }
.qr-card p { margin: 0; font-size: .9rem; color: var(--muted); }
.qr-card b { color: var(--ink); }

/* sections */
.sec { padding-block: 36px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.more { font-weight: 600; }

/* result cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.card h3 { font-size: 1rem; margin: 0; }
.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.st-open .badge { background: #fff4e0; color: #8a5300; }
.st-closed .badge { background: #e6f5ec; color: var(--green); }
.st-holiday .badge { background: #fdeaea; color: var(--red); }
.num { font: 800 1.6rem/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--blue-d); margin: 12px 0 8px; letter-spacing: .02em; }
.st-waiting .num, .st-holiday .num { color: #9fb3c8; }
.num.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: #fff1a8; } 100% { background: transparent; } }
.times { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin: 0 0 12px; }
.links { display: flex; gap: 8px; margin: auto 0 0; }
.links a { flex: 1; text-align: center; font-size: .85rem; font-weight: 600; padding: 7px 0; border-radius: 9px; background: var(--blue-l); }
.links a:hover { background: #d6eafb; text-decoration: none; }

/* starline / jackpot strip */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.slot { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--soft); text-align: center; }
.slot span { display: block; font-size: .8rem; color: var(--muted); }
.slot b { font: 700 1.1rem ui-monospace, Menlo, Consolas, monospace; color: #9fb3c8; }
.slot.has { background: #fff; }
.slot.has b { color: var(--blue-d); }

/* chart directory */
.chart-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 20px; }
.chart-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chart-row span { flex: 1; font-weight: 600; }
.chart-row a { font-weight: 600; font-size: .9rem; }

/* band: steps + features */
.band { background: var(--soft); border-block: 1px solid var(--line); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 18px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .92rem; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feat h3 { font-size: 1.02rem; color: var(--blue-d); }
.feat p { color: var(--muted); font-size: .94rem; margin: 0; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* chart pages */
.page { padding-block: 24px 40px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.today-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--blue-l); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 6px 0 18px; }
.today-strip span { font-weight: 600; color: var(--muted); }
.today-strip b { font: 800 1.25rem ui-monospace, Menlo, Consolas, monospace; color: var(--blue-d); }
.today-strip .btn { margin-left: auto; }
.tabs { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.tabs a { padding: 8px 18px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.tabs a:hover { text-decoration: none; }
.tabs a[aria-selected="true"] { background: #fff; color: var(--blue-d); box-shadow: var(--shadow); }
.tbl-wrap { overflow: auto; max-height: 78vh; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.chart { border-collapse: separate; border-spacing: 0; width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.chart th, .chart td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 8px 6px; }
.chart thead th { position: sticky; top: 0; z-index: 2; background: var(--blue); color: #fff; font-size: .82rem; font-weight: 700; }
.chart tbody th { position: sticky; left: 0; z-index: 1; background: var(--soft); font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chart thead th:first-child { left: 0; z-index: 3; }
.chart small { font-weight: 500; }
.chart.jodi td { font: 700 1.05rem ui-monospace, Menlo, Consolas, monospace; }
.chart td.red, .chart td.red b { color: var(--red); }
.chart .na { color: #b7c6d5; font-weight: 400; }
.chart.panel td { white-space: nowrap; padding: 6px 4px; }
.chart.panel .pn { display: inline-block; vertical-align: middle; font: 600 .72rem/1.15 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.chart.panel b { display: inline-block; vertical-align: middle; margin: 0 5px; font: 800 1.05rem ui-monospace, Menlo, Consolas, monospace; }
.chart.slotchart td { font: 600 .9rem ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; }
.chart tbody tr:hover td { background: #f7fbff; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 500; }
.chip:hover { background: var(--blue-l); text-decoration: none; }

/* footer */
.foot { background: var(--ink); color: #c9d7e6; padding-block: 36px 24px; margin-top: 24px; }
.foot .brand { color: #fff; }
.foot .brand b { color: var(--sky); }
.foot .muted { color: #9fb3c8; margin-top: 12px; }
.foot-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-h { font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.foot-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
@media (min-width: 900px) { .foot-links { columns: 3; } }
.foot-links a { color: #c9d7e6; font-size: .9rem; line-height: 2; }
.fine { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 24px; padding-top: 16px; font-size: .8rem; color: #8fa5bb; }

/* mobile download dock */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 10px 30px rgb(15 42 68 / .18);
}
.dock:hover { text-decoration: none; }
.dock img { border-radius: 10px; }
.dock > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.dock small { color: var(--muted); font-size: .78rem; }
@media (min-width: 900px) { .dock { display: none; } }

/* yesterday line + compact phone cards (one row per market instead of a tall card) */
.prev { margin: -4px 0 10px; font-size: .78rem; color: var(--muted); }
.prev b { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
  .card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "top num" "times prev" "links links"; column-gap: 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 12px 14px; }
  .card:last-child { border-bottom: 0; }
  .card-top { grid-area: top; flex-direction: column; gap: 4px; }
  .num { grid-area: num; margin: 0; font-size: 1.2rem; align-self: center; text-align: right; }
  .times { grid-area: times; justify-content: flex-start; gap: 10px; margin: 2px 0 8px; font-size: .76rem; }
  .prev { grid-area: prev; margin: 2px 0 8px; text-align: right; align-self: start; }
  .links { grid-area: links; }
  .links a { padding: 5px 0; font-size: .8rem; }
}

/* ===== hero v2: realistic phone mockup, floating illustration, animated background ===== */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef6fd 0%, #fff 100%); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #bfe0fb; top: -180px; right: -120px; }
.b2 { width: 380px; height: 380px; background: #d9ecfd; bottom: -160px; left: -100px; animation-delay: -6s; }
.b3 { width: 260px; height: 260px; background: #a9d4f7; top: 40%; right: 30%; opacity: .35; animation-delay: -11s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.grid { position: absolute; inset: 0; background-image: radial-gradient(rgb(31 111 181 / .13) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%); }
.hero-in { position: relative; grid-template-columns: 1.1fr 1fr; padding-block: 56px 64px; }
.grad { background: linear-gradient(90deg, #1f6fb5, #4fa3e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); letter-spacing: -.025em; }
.qr-inline { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 12px 16px 12px 12px; background: rgb(255 255 255 / .75);
  border: 1px solid var(--line); border-radius: 16px; width: fit-content; backdrop-filter: blur(8px); }
.qr-inline .qr { width: 92px; height: 92px; margin: 0; }
.qr-inline p { margin: 0; font-size: .86rem; color: var(--muted); max-width: 210px; }
.qr-inline b { color: var(--ink); }
@media (max-width: 860px) { .qr-inline { display: none; } }

.hero-stage { position: relative; height: 560px; display: grid; place-items: center; perspective: 1400px; }
.phone {
  position: relative; width: 272px; height: 556px; border-radius: 46px; padding: 11px;
  background: linear-gradient(145deg, #2a3442, #0c1118 55%, #2b3644);
  box-shadow: inset 0 0 0 1.5px #4a5666, inset 0 0 0 4px #10161e, 0 50px 80px -30px rgb(15 42 68 / .45), 0 30px 40px -25px rgb(15 42 68 / .35);
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); transform-style: preserve-3d;
  animation: phoneIn 1.1s cubic-bezier(.2, .8, .2, 1) both, bob 7s ease-in-out 1.1s infinite;
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotateY(-28deg) rotateX(12deg); } }
@keyframes bob { 50% { translate: 0 -10px; } }
.phone-btn { position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: #2a3442; }
.pb1 { top: 120px; height: 56px; } .pb2 { top: 196px; height: 34px; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #f4f8fc; display: flex; flex-direction: column; }
.punch { position: absolute; top: 10px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: #0c1118; z-index: 3; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 9px 20px 4px; font-size: 11px; font-weight: 700; color: #fff; background: var(--blue); }
.sb-ic { display: flex; gap: 3px; } .sb-ic i { width: 4px; height: 8px; border-radius: 1px; background: #fff; opacity: .9; }
.sb-ic i:nth-child(2) { height: 10px; } .sb-ic i:nth-child(3) { width: 14px; border-radius: 2px; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px 12px; background: var(--blue); color: #fff; font-size: 14px; }
.app-bar b { flex: 1; }
.wallet { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: rgb(255 255 255 / .2); }
.wallet svg { width: 13px; height: 13px; }
.app-tabs { display: flex; gap: 6px; padding: 10px 12px 6px; }
.app-tabs span { flex: 1; text-align: center; font-size: 10.5px; font-weight: 700; padding: 6px 0; border-radius: 999px; background: #fff; color: var(--muted); border: 1px solid var(--line); }
.app-tabs .on { background: var(--blue); color: #fff; border-color: var(--blue); }
.app-list { flex: 1; overflow: hidden; padding: 4px 10px; mask-image: linear-gradient(transparent, #000 6%, #000 90%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 90%, transparent); }
.app-roll { display: flex; flex-direction: column; gap: 8px; animation: roll 22s linear infinite; }
@keyframes roll { to { transform: translateY(calc(-50% - 4px)); } }
.app-tile { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: #fff; border-radius: 12px; padding: 9px 10px;
  box-shadow: 0 1px 2px rgb(15 42 68 / .08); border-left: 3px solid var(--sky); }
.app-tile b { display: block; font-size: 11.5px; color: var(--ink); }
.app-tile small { font-size: 9.5px; color: var(--muted); }
.t-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.t-num { font: 800 12px ui-monospace, Menlo, Consolas, monospace; color: var(--blue-d); }
.st-waiting .t-num { color: #a7b8c9; }
.t-play { font-size: 9px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--green); color: #fff; }
.st-closed .t-play { background: #fdeaea; color: var(--red); }
.app-nav { display: flex; justify-content: space-around; padding: 10px 0 14px; background: #fff; border-top: 1px solid var(--line); }
.app-nav i { width: 18px; height: 18px; border-radius: 6px; background: #d5e3f0; } .app-nav .on { background: var(--blue); }
.glare { position: absolute; inset: 11px; border-radius: 36px; pointer-events: none;
  background: linear-gradient(115deg, rgb(255 255 255 / .28) 0%, rgb(255 255 255 / 0) 32%, rgb(255 255 255 / 0) 70%, rgb(255 255 255 / .08) 100%); }

.float-pot { position: absolute; width: 110px; height: auto; left: 2%; top: 10%; filter: drop-shadow(0 18px 20px rgb(15 42 68 / .22)); animation: float 6s ease-in-out infinite; z-index: 2; }
.float-coin { position: absolute; width: 54px; filter: drop-shadow(0 10px 12px rgb(31 111 181 / .3)); animation: float 5s ease-in-out infinite, spin 9s linear infinite; }
.c1 { right: 6%; top: 6%; } .c2 { left: 10%; bottom: 12%; width: 40px; animation-delay: -2s, -4s; }
@keyframes float { 50% { translate: 0 -16px; } }
@keyframes spin { 50% { transform: rotateY(180deg); } }
.toast, .chip-float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; background: rgb(255 255 255 / .9);
  backdrop-filter: blur(12px); border: 1px solid rgb(217 230 242 / .9); border-radius: 16px; box-shadow: 0 18px 40px -12px rgb(15 42 68 / .28); }
.toast { right: -4%; top: 22%; padding: 10px 14px 10px 10px; min-width: 210px; animation: float 6.5s ease-in-out infinite; }
.toast small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.toast b { display: block; font: 800 .92rem ui-monospace, Menlo, Consolas, monospace; color: var(--ink); transition: opacity .35s, transform .35s; }
.toast b.swap { opacity: 0; transform: translateY(6px); }
.t-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.t-ic svg { width: 18px; height: 18px; animation: ring 3s ease-in-out infinite; transform-origin: 50% 10%; }
@keyframes ring { 0%, 80%, 100% { rotate: 0deg; } 84% { rotate: 14deg; } 88% { rotate: -12deg; } 92% { rotate: 8deg; } 96% { rotate: -4deg; } }
.chip-float { left: -2%; bottom: 16%; padding: 9px 14px; font-size: .84rem; font-weight: 700; color: var(--ink); animation: float 7.5s ease-in-out -3s infinite; }
.chip-float svg { width: 20px; height: 20px; color: #fff; background: var(--green); border-radius: 50%; padding: 3px; }
@media (max-width: 860px) {
  .hero-stage { height: 470px; margin-top: 4px; }
  .phone { width: 228px; height: 466px; border-radius: 40px; transform: rotateY(-8deg) rotateX(4deg); }
  .screen, .glare { border-radius: 31px; }
  .toast { right: 0; top: 14%; min-width: 0; } .chip-float { left: 0; bottom: 8%; font-size: .76rem; }
  .float-pot { width: 76px; left: 0; top: 2%; }
}

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -28px; position: relative; z-index: 2; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); text-align: center; }
.stat b { display: block; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); font-weight: 800; color: var(--blue-d); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 500; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 8px; } }

/* illustrated steps + feature icons */
.steps li { padding: 18px; text-align: center; }
.steps li::before { left: 14px; top: 14px; width: 28px; height: 28px; font-size: .85rem; }
.ill { width: 120px; height: 90px; margin: 0 auto 10px; display: block; }
.ill-dl .arrow { animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(6px); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
.ill-dl .bar { transform-origin: 48px 0; animation: fill 1.8s ease-in-out infinite; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ill-tap .ripple { transform-origin: 78px 66px; animation: ripple 1.6s ease-out infinite; }
@keyframes ripple { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.ill-ok .tick { stroke-dasharray: 44; stroke-dashoffset: 44; animation: draw 2.4s ease-in-out infinite; }
@keyframes draw { 40%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.f-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #e9f3fc, #d4e9fb); color: var(--blue); margin-bottom: 12px; transition: transform .3s; }
.f-ic svg { width: 22px; height: 22px; }
.feat > div:hover .f-ic { transform: translateY(-4px) rotate(-6deg); }
.card { transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -10px rgb(15 42 68 / .25); }

/* scroll reveal (JS adds .in; without JS everything is visible) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 860px) { .hero-in { grid-template-columns: 1fr; padding-block: 28px 16px; } }
.t-num, .app-tile small { white-space: nowrap; }
.app-tile > div:first-child { min-width: 0; }
.c2 { left: auto; right: 10%; bottom: 8%; }
@media (max-width: 860px) {
  .phone { width: 250px; height: 500px; }
  .app-tile { padding: 8px; }
  .app-tile b { font-size: 10.5px; } .app-tile small { font-size: 8.5px; } .t-num { font-size: 10.5px; }
  .toast { top: auto; bottom: 4%; right: 0; padding: 8px 12px 8px 8px; }
  .toast b { font-size: .8rem; }
  .chip-float { display: none; }
  .c2 { display: none; }
}
.app-bar b { white-space: nowrap; }
@media (max-width: 860px) { .app-bar { font-size: 12.5px; gap: 6px; } .wallet { padding: 3px 7px; font-size: 9.5px; } }

/* ===== charts v2 ===== */
.chart tbody th small { display: block; font-weight: 500; opacity: .85; }
.chart td.today { background: #fff7d6 !important; box-shadow: inset 0 0 0 2px #f2c94c; }
.chart td.pend { color: #b08900; font: 700 1rem ui-monospace, Menlo, Consolas, monospace; }
.chart.panel td { min-width: 76px; }
.chart.panel .pn { font-size: .78rem; line-height: 1.2; }
.chart tbody tr:nth-child(even) td { background: #fbfdff; }
/* Phones: the Jodi/Panel chart fits the screen width, so the page scrolls normally (no scroll-in-a-box)
   and the day header sticks under the site header. */
@media (max-width: 600px) {
  .tbl-wrap.fit { overflow: visible; max-height: none; margin-inline: -8px; border-radius: 10px; }
  .tbl-wrap.fit .chart thead th { top: 62px; }
  .tbl-wrap.fit .chart thead th:first-child { border-top-left-radius: 10px; }
  .tbl-wrap.fit .chart thead th:last-child { border-top-right-radius: 10px; }
  .fit .chart { table-layout: fixed; }
  .fit .chart thead th { font-size: .7rem; padding: 7px 0; }
  .fit .chart thead th:first-child { width: 50px; }
  .fit .chart tbody th { font-size: .66rem; padding: 4px 2px; line-height: 1.25; white-space: normal; }
  .fit .chart .yr { display: none; }
  .fit .chart td { padding: 7px 0; }
  .fit .chart.jodi td { font-size: .95rem; }
  .fit .chart.panel td { min-width: 0; padding: 4px 0; }
  .fit .chart.panel .pn { font-size: .56rem; line-height: 1.12; }
  .fit .chart.panel b { font-size: .8rem; margin: 0 1px; }
  .fit .chart td.pend { font-size: .8rem; }
}
.chart td.today { background: #e3f1fd !important; box-shadow: inset 0 0 0 2px var(--sky); }
.chart td.pend { color: var(--blue); }
@media (max-width: 600px) {
  .fit .chart thead th:first-child { width: 44px; }
  .fit .chart.panel .pn { font-size: .66rem; line-height: 1.15; }
  .fit .chart.panel b { font-size: .9rem; margin: 0 3px; }
}

/* charts v3: full dates, latest at the bottom */
.jump { margin: 0 0 8px; text-align: right; font-size: .88rem; font-weight: 600; }
.chart tbody th { white-space: nowrap; }
.chart tr#latest th, .chart tr#latest td { border-bottom: 2px solid var(--sky); }
.chart tbody tr { scroll-margin-top: 120px; }
@media (max-width: 600px) {
  .fit .chart thead th:first-child { width: 64px; }
  .fit .chart tbody th { font-size: .6rem; white-space: nowrap; padding: 4px 2px; }
  .fit .chart.panel .pn { font-size: .6rem; }
  .fit .chart.panel b { font-size: .82rem; margin: 0 2px; }
  .fit .chart.jodi td { font-size: .9rem; }
}

/* Phone Panel chart: week dates become a full-width label above each week, so the six/seven day
   cells get the whole screen width (readable panna digits). Header stays pinned under the site header. */
@media (max-width: 600px) {
  .fit .chart.panel { display: block; }
  .fit .chart.panel thead { display: block; position: sticky; top: var(--top-h, var(--hh, 62px)); z-index: 3; }
  .fit .chart.panel tbody { display: block; }
  .fit .chart.panel tr { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); }
  .fit .chart.panel thead th { position: static; width: auto; }
  .fit .chart.panel thead th:first-child { display: none; }
  .fit .chart.panel thead th:nth-child(2) { border-top-left-radius: 10px; }
  .fit .chart.panel tbody th { grid-column: 1 / -1; position: static; text-align: left; padding: 6px 12px; font-size: .74rem; font-weight: 700; color: var(--blue-d, #154f86); background: #eef5fc; white-space: nowrap; }
  .fit .chart.panel tbody th small { display: inline; margin-left: 4px; font-size: inherit; font-weight: 600; color: var(--muted, #5b7088); }
  .fit .chart.panel td { padding: 7px 0; min-width: 0; display: flex; align-items: center; justify-content: center; }
  .fit .chart.panel .pn { font-size: .76rem; line-height: 1.18; }
  .fit .chart.panel b { font-size: 1.02rem; margin: 0 4px; }
  .fit .chart.panel td.na, .fit .chart.panel td.pend { min-height: 58px; }
}
