:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--accent:var(--telegram-link-color,#78beff);--accent-strong:var(--telegram-button-color,#2c7df7);--accent-contrast:#f8fbff;--positive:#34d399;--negative:#fb7185;--warning:#fbbf24;--bg:#03070c;--bg-elevated:#08111a;--bg-surface:#08121de0;--bg-surface-strong:#091523f5;--bg-soft:#ffffff0d;--bg-soft-strong:#ffffff14;--text-strong:#f4f8ff;--text-body:#d7e0ec;--text-muted:#8fa0b5;--text-subtle:#6f8198;--border:#9db9d629;--border-strong:#9db9d63d;--shadow:0 28px 72px -40px #000000e6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}:root[data-telegram-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#eef4fb;--bg-elevated:#f7fbff;--bg-surface:#ffffffe6;--bg-surface-strong:#fffffffa;--bg-soft:#0f172a0a;--bg-soft-strong:#0f172a14;--text-strong:#08111b;--text-body:#233245;--text-muted:#58697f;--text-subtle:#6d7c90;--border:#0f172a14;--border-strong:#0f172a24;--shadow:0 28px 80px -48px #0f172a3d}*{box-sizing:border-box}html{background:var(--bg)}body{background:radial-gradient(circle at top, #78beff26, transparent 34%), radial-gradient(circle at bottom, #2dd4bf1f, transparent 26%), linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 58%, var(--bg) 100%);min-width:320px;min-height:100svh;color:var(--text-body);overscroll-behavior-y:none;margin:0}body,button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled,input:disabled{cursor:not-allowed}#root{min-height:100svh}h1,h2,h3,p{margin:0}h1,h2,h3{color:var(--text-strong);letter-spacing:-.02em}h1{font-size:clamp(2rem,6vw,2.75rem);line-height:1.02}h2{font-size:1.15rem;line-height:1.2}h3{font-size:1.05rem;line-height:1.2}code,.mono-value,.mono-inline{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.page{width:min(100%,620px);padding:calc(16px + var(--safe-top)) calc(16px + var(--safe-right)) calc(28px + var(--safe-bottom)) calc(16px + var(--safe-left));gap:14px;margin:0 auto;display:grid}.surface{border:1px solid var(--border);background:linear-gradient(180deg, #ffffff05, transparent 100%), var(--bg-surface);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:24px;padding:18px}.shell-card{gap:14px;display:grid}.shell-card--compact{gap:12px}.shell-card--table{gap:8px}.shell-topline,.section-row,.history-item__top{justify-content:space-between;align-items:center;gap:12px;display:flex}.shell-copy,.section-copy{gap:6px;display:grid}.section-copy--tight{gap:4px}.shell-title--compact{font-size:clamp(1.65rem,5vw,2.15rem)}.shell-title--table{font-size:clamp(1.3rem,4.3vw,1.7rem);line-height:1.08}.shell-meta{font-size:.8rem}.eyebrow{letter-spacing:.12em;text-transform:uppercase;color:var(--accent);font-size:.74rem}.subtle{color:var(--text-muted)}.chip-row,.preset-row,.metric-strip,.button-row,.button-stack{flex-wrap:wrap;gap:10px;display:flex}.button-stack{flex-direction:column}.chip,.metric-chip,.result-pill{letter-spacing:.01em;border-radius:999px;justify-content:center;align-items:center;min-height:32px;padding:7px 12px;font-size:.8rem;font-weight:700;display:inline-flex}.chip{color:var(--text-strong);background:#78beff1f;border:1px solid #78beff29}.chip--soft,.metric-chip{border:1px solid var(--border);background:var(--bg-soft)}.chip--outline{border-color:var(--border-strong);background:0 0}.chip--rule{border-color:var(--border);background:var(--bg-soft);justify-content:flex-start}.pill{border:1px solid var(--border);background:var(--bg-soft);min-height:32px;color:var(--text-strong);border-radius:999px;justify-content:center;align-items:center;padding:7px 12px;font-size:.8rem;font-weight:700;display:inline-flex}.pill--live{color:#d1fae5;background:#34d39924;border-color:#34d3993d}.pill--muted{color:var(--text-body)}.screen-tabs{border:1px solid var(--border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#040a1073;border-radius:20px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:6px;display:grid}.screen-tab,.button-link,.action-button,.amount-step,.preset-button,.back-link,.step-chip{min-height:48px;color:var(--text-strong);text-align:center;white-space:normal;border:1px solid #0000;border-radius:16px;justify-content:center;align-items:center;gap:8px;padding:12px 14px;line-height:1.15;transition:transform .12s,border-color .12s,background .12s,opacity .12s;display:inline-flex}.screen-tab,.button-link,.amount-step,.preset-button,.back-link,.step-chip,.action-button--secondary,.action-button--ghost{background:var(--bg-soft);border-color:var(--border)}.screen-tab--active{background:#78beff29;border-color:#78beff3d}.button-link,.action-button{width:100%;font-weight:700}.button-link--primary,.action-button--primary{background:linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);color:var(--accent-contrast);box-shadow:0 20px 48px -30px #257df7e6}.button-link--secondary,.action-button--secondary{color:var(--text-strong)}.button-link--ghost,.action-button--ghost{background:0 0}.button-link--danger,.action-button--danger{color:#fecdd3;background:#fb71851f;border-color:#fb718538}.action-button--lg,.button-link--lg{min-height:56px}.action-button--stacked{flex-direction:column;gap:4px}.action-button small,.button-link small{color:inherit;opacity:.75;font-size:.77rem}.button-grid{gap:10px;display:grid}.button-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}.button-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.back-link{align-self:flex-start;font-weight:600}.action-button:hover:not(:disabled),.button-link:hover,.screen-tab:hover,.amount-step:hover:not(:disabled),.preset-button:hover:not(:disabled),.back-link:hover{transform:translateY(-1px)}.action-button:disabled,.button-link[aria-disabled=true],.screen-tab[aria-disabled=true],.amount-step:disabled,.preset-button:disabled{opacity:.5}.profile-card,.game-card,.summary-card,.table-stage,.topbar-card,.stat-card,.history-item,.hand-panel,.seat-panel,.empty-state{border:1px solid var(--border);background:var(--bg-soft);border-radius:20px}.profile-card,.summary-card,.empty-state{padding:16px}.profile-card{gap:10px;display:grid}.game-grid,.stats-grid,.topbar-grid,.hand-grid{gap:12px;display:grid}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.game-card{background:radial-gradient(circle at top right, #78beff1f, transparent 36%), var(--bg-soft);gap:16px;padding:18px;display:grid}.game-card--blackjack{background:radial-gradient(circle at top right, #34d39929, transparent 36%), var(--bg-soft)}.game-card--baccarat{background:radial-gradient(circle at top right, #60a5fa2e, transparent 36%), var(--bg-soft)}.game-card__copy,.game-card__header{gap:8px;display:grid}.game-card__actions{gap:10px;display:grid}.topbar{gap:14px;display:grid}.topbar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar-card,.stat-card{gap:6px;padding:14px;display:grid}.topbar-card dt,.stat-card dt{color:var(--text-muted);font-size:.76rem}.topbar-card dd,.stat-card dd{color:var(--text-strong);margin:0;font-size:1.05rem;font-weight:700}.stat-card--highlight{background:#78beff1f;border-color:#78beff3d}.stat-card--positive{background:#34d3991f;border-color:#34d3993d}.stat-card--negative{background:#fb71851f;border-color:#fb71853d}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.amount-control{gap:12px;display:grid}.amount-display{color:var(--text-strong);font-size:1.2rem}.amount-input-row{grid-template-columns:48px 1fr 48px;gap:10px;display:grid}.amount-step{background:var(--bg-soft);padding:0;font-size:1.35rem}.amount-input{border:1px solid var(--border);width:100%;min-height:48px;color:var(--text-strong);text-align:center;background:#ffffff08;border-radius:16px;outline:none;padding:0 14px}.amount-input:focus{border-color:#78beff57}.preset-button{min-height:40px;padding-inline:12px}.step-selector{flex-wrap:wrap;gap:8px;display:flex}.step-chip{border-radius:999px;min-height:36px;padding:8px 12px;font-size:.82rem;font-weight:700}.step-chip--active{background:#78beff2e;border-color:#78beff47}.preset-button--active{background:#78beff29;border-color:#78beff42}.summary-card{gap:14px;display:grid}.summary-card--compact{padding-top:14px;padding-bottom:14px}.table-stage{background:radial-gradient(circle at top,#34d3991f,#0000 42%),linear-gradient(#08121deb,#08121df5);gap:14px;display:grid}.table-stage--baccarat{background:radial-gradient(circle at top,#60a5fa29,#0000 42%),linear-gradient(#08121deb,#08121df5)}.outcome-track,.card-row{flex-wrap:wrap;gap:10px;display:flex}.baccarat-result-banner{border:1px solid var(--border);background:#ffffff0a;border-radius:18px;gap:10px;padding:14px;animation:.18s ease-out card-enter;display:grid}.outcome-badge{border:1px solid var(--border);background:#ffffff0a;border-radius:999px;justify-content:center;align-items:center;width:38px;height:38px;font-weight:800;display:inline-flex}.outcome-badge--banker{color:#dbeafe;background:#60a5fa2e}.outcome-badge--player{color:#d1fae5;background:#34d3992e}.outcome-badge--tie{color:#fef3c7;background:#fbbf242e}.seat-panel,.hand-panel{gap:12px;padding:16px;display:grid}.hand-panel--active{border-color:#78beff47;box-shadow:inset 0 0 0 1px #78beff33}.playing-card{color:#0f172a;background:linear-gradient(#fff,#e8eef8);border:1px solid #0f172a14;border-radius:16px;justify-content:flex-start;align-items:flex-start;min-width:56px;min-height:76px;padding:10px 12px;font-weight:800;display:inline-flex;box-shadow:0 18px 30px -24px #0f172a73}.playing-card--back{color:#dbeafe;background:linear-gradient(135deg,#0e7490f2,#1e40afeb),#0f172a}.history-list{gap:10px;margin:0;padding:0;list-style:none;display:grid}.history-item{gap:10px;padding:14px;display:grid}.history-amount{font-size:1rem;font-weight:800}.history-win{color:#a7f3d0}.history-loss{color:#fecdd3}.history-push,.history-info{color:#dbeafe}.result-card{border:1px solid var(--border);background:var(--bg-soft);border-radius:20px;gap:12px;padding:16px;display:grid}.result-win{background:#34d3991f;border-color:#34d39938}.result-loss{background:#fb71851f;border-color:#fb718538}.result-push,.result-info{background:#78beff1f;border-color:#78beff38}.empty-state{padding:16px}.loading-stack{gap:10px;display:grid}.loading-bar{background:linear-gradient(90deg,#ffffff0f,#78beff3d,#ffffff0f);border-radius:999px;height:12px}.loading-bar--short{width:68%}.wager-button--banker{background:linear-gradient(135deg,#3b82f62e,#2563eb47);border-color:#60a5fa3d}.wager-button--player{background:linear-gradient(135deg,#10b98129,#05966942);border-color:#34d3993d}.wager-button--tie{background:linear-gradient(135deg,#f59e0b29,#d977063d);border-color:#fbbf243d}.bet-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bet-target-button{gap:6px;min-height:84px;padding:14px 10px}.bet-target-button__badge{background:#ffffff24;border-radius:999px;justify-content:center;align-items:center;width:34px;height:34px;font-weight:800;display:inline-flex}.details-panel{gap:12px;display:grid}.details-panel__summary{cursor:pointer;color:var(--text-strong);justify-content:space-between;align-items:center;gap:12px;font-weight:700;list-style:none;display:flex}.details-panel__summary::-webkit-details-marker{display:none}.details-panel__content{gap:12px;display:grid}@keyframes card-enter{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media (width<=640px){.game-grid,.stats-grid,.button-grid--2,.hand-grid{grid-template-columns:1fr}.bet-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=520px){.page{padding-inline:calc(12px + var(--safe-left))}.surface{border-radius:22px;padding:14px}.topbar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shell-topline,.section-row,.history-item__top{flex-direction:column;align-items:flex-start}.amount-input-row{grid-template-columns:44px 1fr 44px}.bet-target-button{min-height:78px;padding:12px 8px}.bet-target-button small{display:none}}
