:root {
  color-scheme: dark; --bg: #151517; --panel: #222225; --ink: #f7f5ef; --muted: #aba9a9; --line: #39393d;
  --accent: #e83c60; --accent-ink: #fff; --dark-accent: color-mix(in srgb,var(--accent) 47%,#21141d);
  --light-accent: color-mix(in srgb,var(--accent) 80%,white);
  font: 16px/1.4 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Bengali", "Arial", sans-serif;
  color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box }
body { margin: 0; min-width: 240px; background: var(--bg) }
button, select, input { font: inherit; color: inherit }
button { touch-action: manipulation; cursor: pointer }
button:disabled { cursor: default }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--light-accent); outline-offset: 4px }
button, a { -webkit-tap-highlight-color: transparent }
button { border: 0; background: none }
[hidden] { display:none !important }
.sprite { position:absolute; width:0; height:0; pointer-events:none; overflow:hidden }
.icon { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none }
.shell { width: min(100%, 480px); margin: 0 auto; padding: max(20px,env(safe-area-inset-top)) clamp(16px,5vw,30px) max(20px,env(safe-area-inset-bottom)); }
.masthead,.mast-actions,.line,.section-head,.action-row,.currency,.back,.language-pill,.icon-button,.meta,.progress-caption,.tag,.code-row,.card-actions { display:flex; align-items:center }
.masthead { justify-content:space-between; gap:16px; margin-bottom:clamp(19px,3.7vh,32px) }
.mast-actions { gap:7px }
.brand { padding:0; display:flex; align-items:center; min-height:40px; max-width:55%; font-size:1.6rem; font-weight:800 }
.brand img { width:116px; max-width:100%; max-height:40px; object-fit:contain; object-position:left }
.language-pill,.icon-button { justify-content:center; height:38px; color:var(--ink); background:transparent; padding:0 8px; border:1px solid var(--line); border-radius:11px }
.language-pill { gap:5px; font-size:.8rem; font-weight:750 }
.language-pill .icon { width:13px; height:13px }
.icon-button { width:38px; border-color:transparent }
.icon-button:hover,.secondary:hover,.action-row:hover { background:#29292c }
h1,h2,h3,p { margin:0 }
h1 { font-size:clamp(2rem,7.8vw,2.65rem); font-weight:780; line-height:1.08; letter-spacing:-.057em; text-wrap:balance; overflow-wrap:anywhere }
h2 { font-size:1.3rem; letter-spacing:-.032em; line-height:1.2 }
h3 { font-size:1.07rem; line-height:1.26; letter-spacing:-.02em }
.subtitle { color:var(--muted); margin-top:6px; font-size:1rem; line-height:1.4 }
.wheel-area { position:relative; max-width:min(100%,414px); width:min(100%,414px); margin:clamp(20px,3.6vh,31px) auto 19px; padding:1.2% 0 0; }
.wheel { position:relative; width:100%; aspect-ratio:1; isolation:isolate; }
.rim { position:absolute; inset:0; border-radius:50%; background:linear-gradient(143deg,#48484a 0%,#27272a 25%,#323235 60%,#19191b 96%); border:1px solid #565658; box-shadow:inset 0 0 0 2px #343438, inset 0 -4px 3px #161617, 0 9px 13px -10px #000 }
.rim::after,.rotor::after { content:""; position:absolute; inset:0; border-radius:50%; pointer-events:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.32' filter='url(%23n)'/%3E%3C/svg%3E"); background-size:78px 78px; mix-blend-mode:soft-light; opacity:.6 }
.tick { position:absolute; inset:1.55% 49.7%; }
.tick::before { content:""; display:block; height:2.2%; min-height:4px; width:100%; border-radius:2px; background:#ddd8ce; }
.rotor-wrap { position:absolute; inset:4%; border-radius:50%; box-shadow:0 0 0 2px #101011,0 -1px 3px 3px #0d0d0f; overflow:hidden; }
.rotor { height:100%; width:100%; position:relative; border-radius:50%; container-type:inline-size; transform:rotate(var(--turn,0deg)); }
.rotor::before { content:""; position:absolute; inset:0; border-radius:50%; background: conic-gradient(from -30deg,var(--accent) 0deg 60deg,#252528 60deg 120deg,var(--dark-accent) 120deg 180deg,#262629 180deg 240deg,var(--dark-accent) 240deg 300deg,#242427 300deg 360deg); }
.rotor::after { box-shadow:inset 0 0 8px #0005; }
.spoke { position:absolute; left:49.89%; height:50%; top:0; width:.22%; background:#ffffff38; transform-origin:50% 100%; pointer-events:none }
.slice { position:absolute; display:flex; flex-direction:column; justify-content:center; align-items:center; text-align:center; width:30.6%; height:25%; transform:translate(-50%,-50%); color:#fff7eb; z-index:1; }
.slice-art { width:55%; aspect-ratio:76/52; flex:none; }
.slice strong { font-size:clamp(10px,3.6cqw,16px); line-height:1.12; font-weight:700; letter-spacing:-.02em; }
.slice.premium .slice-art { color:var(--light-accent) }
.hub { position:absolute; inset:39% 39%; border-radius:50%; display:grid; place-items:center; background:#222225; box-shadow:inset 0 1.2px 1px #706c6c, inset 0 -2px 1px #141415, 0 0 0 1.2px #141415, 0 2px 4px #1119; z-index:2; }
.hub img { width:72%; max-height:49%; object-fit:contain }
.hub b { width:95%; text-align:center; color:var(--accent); font-style:italic; font-size:1.1rem; overflow:hidden;text-overflow:ellipsis }
.pointer { position:absolute; top:-1.8%; left:45.1%; width:9.8%;height:12.6%; overflow:visible; filter:drop-shadow(0 2px 1.5px #1009); z-index:3; }
.primary,.secondary { display:flex; align-items:center; justify-content:center; text-align:center; width:100%; border-radius:11px; min-height:50px; padding:10px 14px; text-decoration:none; gap:8px; font-size:1.025rem; font-weight:735; }
.primary { background:var(--accent); color:var(--accent-ink); box-shadow:inset 0 1px #ffffff29; }
.primary:hover:enabled { filter:brightness(1.06) }
.primary:active:enabled,.action-row:active { transform:translateY(1px) }
.primary:disabled,.secondary:disabled { background:#2b2b2e; color:#b4b0b0; box-shadow:none }
.secondary { border:1px solid var(--line); background:var(--panel) }
.spin-action { font-size:1.18rem; min-height:53px; }
.time-label { font-size:.875rem; color:var(--muted); text-align:center; margin-top:8px; }
.progress-card { display:block; width:100%; border:1px solid var(--line); border-radius:13px; background:var(--panel); text-align:left; margin-top:14px; padding:14px 16px; }
.progress-card:hover { border-color:#656569 }
.progress-caption { justify-content:space-between; gap:6px }
.progress-caption .meta { gap:7px;color:var(--muted);font-size:.85rem }
.currency { gap:6px; color:var(--ink); font-weight:720; font-variant-numeric:tabular-nums }
.currency .icon { color:var(--light-accent); width:18px; height:18px }
.progress-track { height:4px; background:#39393d; border-radius:4px; overflow:hidden; margin:11px 0 7px; }
.progress-track span { display:block;height:100%;background:var(--accent);border-radius:inherit; }
.progress-note { color:var(--muted); font-size:.85rem }
.action-row { gap:12px; width:100%; min-height:50px; padding:10px 1px; border-bottom:1px solid var(--line); font-weight:620; text-align:left }
.action-row .row-icon { display:grid;place-items:center;width:30px;height:30px;color:var(--ink); }
.action-row .trailing { width:17px;height:17px;color:var(--muted);margin-left:auto }
.legal { text-align:center; padding:16px 0 4px; }
.legal button { color:var(--muted); text-decoration:underline; text-underline-offset:3px; font-size:.84rem }
.back { font-size:.92rem; color:var(--muted);gap:4px; padding:6px 0; margin-bottom:8px; }
.back .icon { width:16px;height:16px; }
.section-head { justify-content:space-between; align-items:flex-end; gap:10px; margin-bottom:18px }
.section-head .currency {white-space:nowrap}
.section-title { color:var(--muted); margin:22px 0 8px; font-size:.89rem; font-weight:630; letter-spacing:0 }
.stack { display:grid; gap:11px }
.card { border:1px solid var(--line);border-radius:15px;background:var(--panel);padding:17px; }
.card.accent-card { border-color:color-mix(in srgb,var(--accent) 42%,var(--line)); }
.card .card-title { display:flex;align-items:center;gap:12px }
.card .card-title .icon { width:25px;height:25px;color:var(--light-accent) }
.card .detail { margin-top:10px;color:var(--muted);font-size:.94rem; }
.card-actions { margin-top:14px;gap:8px; }
.card-actions>* { flex:1 }
.spacer { margin-top:14px }
.body-text { white-space:pre-line;overflow-wrap:anywhere;color:var(--ink);font-size:1rem;line-height:1.5; }
.muted { color:var(--muted); }
.fields { display:grid;gap:16px; }
.field select { display:block;margin-top:7px;width:100%;padding:12px;border:1px solid var(--line);background:#1d1d20;border-radius:8px; }
.toggle-row { display:flex;align-items:center;justify-content:space-between;padding:12px 0;gap:16px;cursor:pointer; }
.toggle-row+.toggle-row { border-top:1px solid var(--line) }
.toggle-row input { appearance:none; flex:0 0 42px;cursor:pointer; width:42px;height:25px;border:1px solid #66666a;border-radius:18px;position:relative;background:#37373b; }
.toggle-row input::before { content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;background:white;border-radius:50%;transition:transform .18s ease; }
.toggle-row input:checked { background:var(--accent);border-color:var(--accent); }
.toggle-row input:checked::before { transform:translateX(17px) }
.toggle-row input:disabled {opacity:.55;cursor:default}
dialog { --dialog-bg:#222225; width:min(420px,calc(100vw - 26px)); max-height:85vh; max-height:85dvh; padding:0; margin:auto; background:var(--dialog-bg); color:var(--ink); border:1px solid #505053; border-radius:20px; overscroll-behavior:contain; }
dialog::backdrop { background:#060608b8; }
.dialog-content { padding:21px; }
.dialog-content>.line { justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:17px; }
.dialog-content h2 { font-size:1.38rem; align-self:center; }
.dialog-content .icon-button { width:30px;height:30px; flex:none; }
.dialog-content .primary,.dialog-content .secondary { margin-top:15px; }
.code-row { gap:8px; border-radius:9px; border:1px dashed #67676a; background:#161619; margin:15px 0; padding:9px 10px; }
.code-row code { overflow-wrap:anywhere;user-select:all;letter-spacing:.05em;font-size:1.05rem; }
.code-row button { margin-left:auto; color:var(--light-accent); flex:none; min-width:36px;min-height:36px; }
details { margin-top:14px; }
summary { cursor:pointer; color:var(--light-accent); font-weight:600; }
details p { margin-top:10px; }
#notice {position:fixed;bottom:max(15px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:var(--ink);color:#141416;border-radius:8px;padding:9px 14px; max-width:90vw; z-index:6;text-align:center;font-weight:600;}
.err { color:#ffc0c7; margin:12px 0; }
@media (min-width:700px) { .shell { padding-top:28px } }
@media (max-height:730px) and (min-width:340px) { .masthead { margin-bottom:14px }.wheel-area {max-width:min(89%,350px);margin:17px auto 13px}.spin-action { min-height:48px }.shell {padding-top:max(12px,env(safe-area-inset-top))} }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; } }
.slice-inner { width:100%; display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px; }
.progress-track { display:block }
.progress-caption .icon:last-child {width:15px;height:15px}
h1:focus { outline:none }
.odds { margin:0; }
.odds div { display:flex;justify-content:space-between;gap:12px;padding:8px 0; }
.odds div+div {border-top:1px solid var(--line);}
.odds dd {margin:0;color:var(--light-accent);font-variant-numeric:tabular-nums;}
