/* Shared saturated palette from the approved 18 September Figma revision. */
:root{--hub-emerald:#006b43;--hub-green:#079a55;--hub-lime:#91e921;--hub-azure:#0060c8;--hub-blue:#058aee;--hub-cyan:#11beed;--hub-violet:#7020db;--hub-purple:#9f2dea;--hub-magenta:#e14bcd;--hub-coral:#bb2158;--hub-red:#e74646;--hub-orange:#ff862e;--hub-royal:#3540d8;--hub-indigo:#565aee;--hub-lavender:#9f8aff}
.hub-page{padding-bottom:24px}.hub-page .page-title{margin-bottom:8px}.hub-sandbox{font-size:10px;color:#a3b3c8;margin:0 0 12px}.hub-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0 16px}.hub-tools button{border:1px solid #5ea6ff80;border-radius:12px;background:linear-gradient(115deg,#193769,#28639b);color:white;min-height:36px;font:inherit;font-size:12px}.hub-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.hub-tile{position:relative;isolation:isolate;display:block;overflow:hidden;height:171px;border:1px solid var(--accent);border-radius:20px;box-shadow:inset 0 2px 1px #ffffff4d,0 5px 12px color-mix(in srgb,var(--base),transparent 70%);background:linear-gradient(115deg,var(--base),var(--middle) 60%,var(--accent));color:white;text-decoration:none}.hub-tile:before{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(130deg,transparent 30%,#fff3 30%,#fff1 60%,transparent 60%)}.hub-tile:after{content:'';position:absolute;pointer-events:none;width:80%;height:90%;top:-35%;left:30%;background:radial-gradient(ellipse,#fff6,transparent 70%)}.hub-upgrade{--base:var(--hub-emerald);--middle:var(--hub-green);--accent:var(--hub-lime)}.hub-mines{--base:var(--hub-azure);--middle:var(--hub-blue);--accent:var(--hub-cyan)}.hub-plinko{--base:var(--hub-violet);--middle:var(--hub-purple);--accent:var(--hub-magenta)}.hub-craft{--base:var(--hub-coral);--middle:var(--hub-red);--accent:var(--hub-orange)}.hub-dice{--base:var(--hub-royal);--middle:var(--hub-indigo);--accent:var(--hub-lavender)}.hub-tile>span{position:absolute;left:15px;right:8px;bottom:8px;z-index:2;display:flex;flex-direction:column;gap:2px}.hub-tile strong{font-size:20px}.hub-tile small{font-size:11px;line-height:1.35}.hub-tile.hub-upgrade{grid-column:span 2;height:128px}.hub-tile.hub-upgrade>span{right:130px;top:36px;bottom:auto}.hub-tile.hub-upgrade strong{font-size:24px}.hub-tile.hub-mines>span,.hub-tile.hub-craft>span{left:0;right:0;bottom:0;padding:16px 15px 8px;background:linear-gradient(transparent,color-mix(in srgb,var(--base),transparent 5%))}.hub-tile-art{position:absolute;width:78%;height:112px;left:11%;top:4px;object-fit:contain}.hub-mini-dial{position:absolute;width:106px;height:106px;right:22px;top:9px;border:12px solid #adff8580;border-right-color:#d5ffb8;border-radius:50%;display:grid;place-items:center}.hub-mini-dial img{width:78px;height:78px;object-fit:contain}.hub-craft-art{display:flex;align-items:center;position:absolute;left:8px;right:8px;top:14px}.hub-craft-art img{width:44%;height:86px;object-fit:contain}.hub-craft-art b{font-size:30px;color:#ffe8ac}.hub-pegs{display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:80%;padding:16px 9px 10px}.hub-pegs>div{display:flex;justify-content:center;gap:23px}.hub-pegs i{width:8px;height:8px;border-radius:50%;background:radial-gradient(circle at 35% 25%,white,#c6d4ff 40%,#55547e 80%);box-shadow:0 2px 3px #0a063655;flex-shrink:0}.hub-tile .hub-pegs{height:104px;padding:15px 10px 4px}.hub-tile .hub-pegs>div{gap:13px}.hub-tile .hub-pegs i{background:#ffecff}.hub-decor-ball{position:absolute;width:12px;height:12px;background:#ffe17a;border-radius:50%;top:0;left:calc(50% - 6px);box-shadow:0 0 12px #ffe59b99;animation:hub-decor-drop 6s infinite}.hub-tile.hub-dice img{animation:hub-cube 7s infinite}.hub-tile.hub-craft img{animation:hub-float 4s ease-in-out infinite}.hub-tile.hub-craft img:last-child{animation-delay:-2s}.hub-tile.hub-mines img{animation:hub-tiles 6s ease-in-out infinite}.hub-tile.hub-upgrade .hub-mini-dial{animation:hub-gleam 7s infinite}.hub-tile:active{transform:scale(.98)}
.hub-page button:disabled{opacity:.5;cursor:default}.hub-cta{margin-top:16px;width:100%;min-height:50px;font-size:14px}.hub-mines .hub-cta{background:linear-gradient(100deg,#00a5db,#77eafc);color:#09233f}.hub-field{display:flex;flex-direction:column;gap:5px;min-width:0;border:1px solid #688effa6;border-radius:12px;background:linear-gradient(115deg,#172d61,#284589);padding:9px 12px;color:#f4f8fd;font:inherit;min-height:62px}.hub-field small{font-size:11px;color:#d0e0ff}.hub-field input{width:100%;padding:0;color:white;background:transparent;border:0;font:inherit;min-width:0;font-size:16px;outline-offset:3px}.hub-field strong{font-size:16px}.hub-stake{display:flex;align-items:stretch;gap:12px;margin:12px 0}.hub-stake>.hub-field{flex:1}.hub-stake>.hub-segments{flex:0 0 126px;align-self:center}.hub-segments{display:flex;padding:4px;border-radius:13px;background:linear-gradient(100deg,#253667,#304e94);gap:4px;margin:10px 0}.hub-segments>button{font:inherit;font-size:12px;min-height:34px;flex:1;border:0;border-radius:8px;padding:7px;color:#dceaff;background:transparent}.hub-segments>[aria-pressed=true]{background:linear-gradient(110deg,#42d9ef,#a6f6ff);color:#062c42}.hub-mine-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:0 18px}.hub-mine-grid button{height:auto;aspect-ratio:1;border:1px solid #7bccff;border-radius:12px;background:linear-gradient(130deg,#0b6acc,#279eeb);box-shadow:inset 0 2px 1px #ffffff55,inset 0 -4px 0 #074b91;opacity:1;color:white;font-size:27px}.hub-mine-grid button:disabled{opacity:1}.hub-mine-grid .safe{background:#31d8ab;color:#003b2b;box-shadow:inset 0 -3px #029d7a}.hub-mine-grid .mine{background:#fa6375;box-shadow:inset 0 -3px #b8274e}.hub-strip{background:linear-gradient(90deg,#184668,#246f9c);border-radius:16px;padding:13px 16px;font-size:12px;margin:16px 0 8px}.hub-plinko-board{position:relative;height:334px;background:linear-gradient(130deg,#39239a,#7821b7);border:1px solid #c394ff;border-radius:20px;box-shadow:inset 0 2px #ffffff22,0 0 18px #9f2dea44;overflow:hidden}.hub-plinko-board .hub-pegs{height:84%;padding:20px 16px}.hub-plinko-board .hub-pegs>div{gap:24px}.hub-buckets{display:flex;position:absolute;bottom:10px;left:7px;right:7px;gap:3px}.hub-buckets span{font-size:9px;line-height:28px;flex:1;text-align:center;background:#c5b7ff;border-radius:5px;color:#171242}.hub-buckets span:first-child,.hub-buckets span:last-child{background:#ffc268}.hub-buckets span:nth-child(2n){background:#ed9cff}.hub-buckets span:nth-child(4),.hub-buckets span:nth-child(6){background:#8eeafb}.hub-ball{position:absolute;width:11px;height:11px;border-radius:50%;background:#ffdc72;box-shadow:0 0 15px #ffbf50;transform:translate(-50%,-50%)}.hub-buckets .landed{animation:hub-bucket .45s}.hub-dice-board{background:linear-gradient(125deg,#254ed1,#6333bf);padding:16px;border-radius:20px;border:1px solid #c0a3ff;box-shadow:inset 0 2px #fff4,0 0 16px #565aee55;height:208px;position:relative}.hub-dice-board>small{font-size:12px}.hub-dice-board>strong{display:block;text-align:center;font-size:28px;margin:14px 0 18px;overflow-wrap:anywhere}.hub-scale-labels{display:flex;justify-content:space-between;font-size:11px}.hub-dice-board input{width:100%;accent-color:#dfceff;margin:18px 0}.hub-result{padding:18px;margin-top:18px;border:1px solid #6382a6;border-radius:18px;background:#162b46}.hub-result.won{border-color:#40dbad}.hub-result h2{font-size:19px;margin:0 0 12px}.hub-result p{font-size:13px;line-height:1.5;margin:6px 0}.hub-message{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:10px 0;color:#c8d7f5}.hub-dialog{width:min(370px,calc(100vw - 28px));max-height:82dvh;box-sizing:border-box;border:1px solid #7198e9;border-radius:22px;padding:18px;background:linear-gradient(130deg,#162d5d,#292251);color:white;overflow-y:auto}.hub-dialog::backdrop{background:#030914b8}.hub-dialog-head{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:16px}.hub-dialog h2{font-size:20px;margin:0}.hub-dialog-head button{width:32px;height:32px;border-radius:50%;border:1px solid #7894b9;color:white;background:#244575;font-size:24px}.hub-dialog p{font-size:14px;line-height:1.6}.hub-dialog input{box-sizing:border-box;width:100%;border:1px solid #7894b9;background:#1b3058;color:white;border-radius:10px;padding:12px;font:inherit}.hub-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.hub-picker button{border:1px solid #4c78af;border-radius:14px;background:#273d69;color:white;min-width:0;padding:8px;display:flex;flex-direction:column;align-items:center;gap:6px;font:inherit;font-size:12px}.hub-picker button[aria-pressed=true]{border-color:#72f5dc;box-shadow:0 0 0 2px #72f5dc}.hub-picker button:disabled{opacity:.4}.hub-picker img{width:90px;height:90px;object-fit:contain}.hub-picker strong{overflow-wrap:anywhere}.hub-picker small{font-size:10px}.hub-history details{padding:12px 0;border-bottom:1px solid #5c75a9}.hub-history summary{font-size:13px;line-height:1.5}.hub-history .hub-result button{display:none}.hub-history small{font-size:10px;overflow-wrap:anywhere}.mini-gift small,.expanded-cell small{position:absolute;left:0;right:0;bottom:1px;font-size:9px;text-align:center;color:white;background:#0a273bcc}.expanded-cell small{font-size:12px}.live-gift b{position:absolute;font-size:8px;bottom:1px;left:0;right:0;text-align:center}.reward-totals{display:none}.reward-complete.reward-multiple .reward-totals{display:block;color:#ffe9b0;text-align:center;font-size:13px;position:absolute;left:0;right:0;bottom:180px}.reward-summary-card small{font-size:11px;color:#dbe8ff}.reward-tray-slot[hidden]{display:none}.reward-summary{gap:12px}
@keyframes hub-decor-drop{0%,55%,100%{transform:translate(0,0);opacity:0}58%{opacity:1;transform:translate(0,0)}68%{transform:translate(-16px,42px)}76%{transform:translate(18px,74px)}83%{transform:translate(0,110px);opacity:1}88%{opacity:0;transform:translate(0,110px)}}@keyframes hub-cube{0%,30%,100%{transform:rotate(0)}45%{transform:rotate(7deg)}65%{transform:rotate(-4deg)}}@keyframes hub-float{50%{transform:translateY(-5px) rotate(3deg)}}@keyframes hub-tiles{0%,30%,100%{transform:translateY(0)}45%{transform:translateY(-4px) rotate(-2deg)}65%{transform:translateY(-2px) rotate(2deg)}}@keyframes hub-gleam{0%,60%,100%{filter:brightness(1)}70%{filter:brightness(1.3)}}@keyframes hub-bucket{50%{transform:scale(1.14);filter:brightness(1.4)}}
.motion-paused .hub-tile *,.motion-offscreen.hub-tile *{animation-play-state:paused!important}:where(html[data-motion="reduced"]) .hub-tile *,:where(html[data-motion="reduced"]) .hub-buckets *{animation:none!important;transition:none!important}:where(html[data-motion="reduced"]) .hub-decor-ball{display:none}@media(max-width:360px){.hub-pegs>div{gap:19px!important}.hub-tile .hub-pegs>div{gap:11px!important}.hub-mine-grid{padding:0 8px;gap:7px}.hub-tile>span{left:12px}.hub-tile.hub-upgrade>span{right:120px}.hub-mini-dial{right:12px}.hub-stake{gap:8px}}.hub-page>.live{margin-bottom:12px}.hub-page>.fine-print,.hub-page>.hub-grid+.fine-print{margin-top:12px}.hub-page .hub-mine-inputs{grid-template-columns:1.65fr 1fr;gap:12px;margin:10px 0 0}.hub-dice-board input[type=range]{appearance:none;height:20px;border:0;border-radius:12px;background:linear-gradient(90deg,#f26ca7 50%,#56deb9 50%);outline-offset:5px}.hub-dice-board input[type=range]::-webkit-slider-thumb{appearance:none;width:32px;height:32px;border-radius:50%;border:7px solid #dce7ff;background:#8264ef}.hub-dice-board input[type=range]::-moz-range-thumb{width:19px;height:19px;border-radius:50%;border:7px solid #dce7ff;background:#8264ef}

.hub-mine-grid{max-width:300px;margin-inline:auto;padding:0}.hub-page .hub-cta{scroll-margin-bottom:100px}

/* Plinko: one logical 358×332 scene; all pegs, paths and buckets share coordinates. */
.shell.plinko-route{grid-template-rows:minmax(0,1fr) auto;padding-top:max(12px,var(--app-safe-top))}
.shell.plinko-route>.balance{display:none}.shell.plinko-route>main{padding:0 16px 16px}
.hub-page.hub-plinko{min-height:100%;display:flex;flex-direction:column;padding:0;position:relative}
.game-header{height:auto;min-height:44px}.game-header .mines-balance{width:max-content;max-width:none;grid-column:3;grid-row:1;gap:6px;padding-left:8px}
.game-header .mines-balance>span{font-size:14px;padding:0}.game-header .mines-balance b{overflow:visible;white-space:nowrap;display:inline-block;font-variant-numeric:tabular-nums}
.game-header .mines-balance .mines-ton{display:block;width:18px;height:18px}.game-header h1{grid-column:2;grid-row:1;font-size:18px}
.game-header .mines-header-actions{grid-column:1;grid-row:1;width:132px;justify-content:start}
.game-header.actions-row.balance-row .mines-balance{grid-row:3}
.plinko-stage{flex:1;display:flex;align-items:center;justify-content:center;padding:18px 0;min-height:0}
.plinko-board{width:100%;max-width:358px;aspect-ratio:358/332;position:relative;flex:none;isolation:isolate}
.plinko-scene{position:absolute;width:358px;height:332px;transform-origin:top left;background:radial-gradient(ellipse 125px 115px at 180px 0,#3e25664d,transparent),#19142f;border-radius:22px}
.plinko-peg{position:absolute;width:9px;height:9px;margin:-4.5px;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff,#cbbbe5 45%,#827394 90%)}
.plinko-bucket{position:absolute;top:284px;width:30px;height:36px;display:grid;place-items:center;border:1px solid #d5baff47;background:#332a4b;border-radius:7px;font-size:9px;line-height:13px;font-weight:700;color:#f4f8fd;font-variant-numeric:tabular-nums}
.plinko-bucket[data-bucket='0'],.plinko-bucket[data-bucket='8']{background:#85494e}.plinko-bucket[data-bucket='1'],.plinko-bucket[data-bucket='7']{background:#5b4389}
.plinko-bucket.landed{box-shadow:0 0 0 1px #b9ffdb,0 0 12px #53f5a14d}
.plinko-effects{position:absolute;inset:0;pointer-events:none}.plinko-ball{position:absolute;left:-4.5px;top:-4.5px;width:9px;height:9px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fff8b7,#ffe26b 50%,#ffbb3a);box-shadow:0 0 7px #ffd46166}
.plinko-payout{position:absolute;bottom:54px;height:30px;display:flex;align-items:center;gap:5px;padding:0 10px;max-width:334px;white-space:nowrap;border-radius:16px;border:1px solid #b9ffdb8c;color:white;background:#526273;font-size:14px;line-height:18px;font-variant-numeric:tabular-nums;opacity:0}
.plinko-payout.positive{background:linear-gradient(#53f5a1,#16c978);box-shadow:0 0 12px 1px #53f5a18c,0 0 25px 2px #53f5a13d}.plinko-payout img{width:14px;height:14px;flex:none}
.plinko-controls{flex:none;display:grid;grid-template-columns:1fr;grid-template-rows:40px 52px 48px;gap:8px;padding:11px 15px;border:1px solid #2c3b4f;border-radius:20px;background:#152031;min-height:180px}
.plinko-risk{display:flex;gap:6px;position:relative;isolation:isolate}.plinko-risk:before{content:"";position:absolute;inset:0 auto 0 0;width:calc((100% - 12px)/3);border-radius:14px;background:#4a3475;z-index:-1;pointer-events:none;transition:transform 240ms ease}.plinko-risk[data-risk=normal]:before{transform:translateX(calc(100% + 6px))}.plinko-risk[data-risk=high]:before{transform:translateX(calc(200% + 12px))}.plinko-risk button{flex:1;min-width:0;border:0;border-radius:14px;background:transparent;color:#f4f8fd;font:inherit;font-size:14px;font-weight:800}.plinko-risk button[aria-pressed=true]{background:transparent}
.plinko-bet{display:flex;gap:8px;min-width:0}.plinko-bet .mines-source{flex:0 0 88px}.plinko-bet .mines-amount{flex:1;padding:4px 12px}.plinko-bet .mines-amount input{font-size:16px}.plinko-gifts{flex:1;min-width:0;display:flex;align-items:center;border:1px solid #2c3b4f;border-radius:12px;background:#152031;color:#f4f8fd;padding:2px 5px;gap:2px;flex-wrap:wrap;font-size:10px}.plinko-gifts img{width:24px;height:24px;object-fit:contain}.plinko-gifts span{flex:1;min-width:55px}
.plinko-throw{border:0;border-radius:14px;background:#7450d9;color:white;font:inherit;font-size:14px;font-weight:800;min-height:44px}.plinko-throw:disabled{background:#26364a;border:1px solid #40556f}
.plinko-notice.hub-message,.plinko-notice{position:absolute;bottom:188px;left:0;right:0;z-index:10;border:1px solid #526883;border-radius:12px;background:#152031;margin:0;padding:10px;font-size:12px;line-height:18px;overflow-wrap:anywhere}
@media(max-height:700px){.plinko-board{max-width:282.518px}.plinko-controls{min-height:124px;grid-template-columns:minmax(0,1fr) 90px;grid-template-rows:40px 52px;padding:11px 15px;column-gap:8px}.plinko-risk{grid-column:1 / -1}.plinko-bet{grid-column:1;grid-row:2}.plinko-throw{grid-column:2;grid-row:2}.plinko-bet .mines-amount{padding:4px 6px}.plinko-bet .mines-source{flex-basis:80px}.plinko-bet .mines-source button{min-width:40px;width:40px}.plinko-notice.hub-message{bottom:132px}}
@media(max-width:370px){.shell.plinko-route>main{padding-inline:12px}.plinko-controls{padding-inline:10px}.plinko-risk button{font-size:12px}}
:where(html[data-motion="reduced"]) .plinko-ball,:where(html[data-motion="reduced"]) .plinko-payout{display:none}
.hub-page .game-header{height:auto;grid-template-rows:auto;row-gap:0}
.hub-page .game-header .mines-balance>span{max-width:none}

/* Shared game sheets keep their header and search outside the scrolling content. */
.hub-stake-error{font-size:11px;line-height:16px;color:#ffbdac;margin:0;padding:0 2px}.hub-stake-error[hidden]{display:none}.hub-page .hub-field input[aria-invalid=true],.hub-page .mines-amount:has([aria-invalid=true]),.hub-page .dr-amount:has([aria-invalid=true]){border-color:#a65b55;box-shadow:none}
.hub-page .mines-amount:focus-within{box-shadow:inset 0 0 0 1px #a4caff}
.hub-page .mines-amount:has([aria-invalid=true]):focus-within{box-shadow:none}
.hub-page .mines-amount input:focus-visible{outline:none}
.hub-dialog.hub-sheet{position:fixed;inset:auto 0 0;width:min(100%,480px);max-width:100%;max-height:min(88dvh,760px);padding:0;margin:0 auto;border:1px solid #3a4d66;border-bottom:0;border-radius:24px 24px 0 0;background:#111d2d;color:#e8edf7;overflow:hidden;box-shadow:0 -12px 50px #0007}
.hub-dialog.hub-sheet[open]{display:flex;flex-direction:column;animation:hub-sheet-in 180ms ease-out}.hub-dialog.hub-sheet::backdrop{background:#030812b8;backdrop-filter:blur(3px)}
.hub-sheet .hub-dialog-head{flex:none;min-height:66px;gap:8px;margin:0;padding:12px 12px 8px 18px;display:flex;align-items:center;justify-content:space-between;background:#111d2d}.hub-sheet .hub-dialog-head h2{font-size:18px;line-height:24px;margin:0;min-width:0}.hub-sheet .hub-dialog-head button{border:0;width:44px;height:44px;min-height:44px;flex:0 0 44px;display:grid;place-items:center;padding:11px;border-radius:13px;color:#d7e3f4;background:#1c2b40}.hub-sheet .hub-dialog-head svg{width:22px;height:22px}
.hub-sheet-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#49617e transparent;padding:8px 16px max(20px,var(--app-safe-bottom));font-size:13px;line-height:1.6}.hub-sheet-body>p{margin:8px 0 14px}.hub-sheet-body .primary{display:block;width:100%;min-height:44px}.hub-sheet-body .stars-check{width:100%;min-height:44px}
.hub-sheet-search{flex:none;margin:4px 16px 8px;border:1px solid #33465e;border-radius:12px;background:#172438;padding:0 12px;display:flex;min-height:44px}.hub-sheet-search input{min-width:0;width:100%;border:0;background:transparent;color:#e6edf7;font:inherit;font-size:13px;outline-offset:2px}
.hub-picker-selection{flex:none;margin:0 16px 4px;font-size:11px;line-height:16px;min-height:16px;color:#b1bfd1}.hub-gift-sheet .hub-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:none;overflow:visible;padding:0}.hub-picker button{position:relative;border:1px solid #30435a;border-radius:17px;background:radial-gradient(ellipse at 50% 31%,#654f7355,transparent 66%),#162438;min-width:0;text-align:left;padding:8px 10px 10px;display:flex;flex-direction:column;align-items:center;color:#e7edf6}.hub-picker button img{width:100%;height:98px;object-fit:contain}.hub-picker strong{width:100%;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hub-picker small{width:100%;font-size:10px;color:#99adc6;margin-top:3px}.hub-picker button[aria-pressed=true]{border-color:#b38aea;background-color:#342546;box-shadow:inset 0 0 0 1px #b38aea55}.hub-gift-check{width:22px;height:22px;display:grid;place-items:center;position:absolute;right:8px;top:8px;border:1px solid #667992;border-radius:50%;background:#162538;z-index:2}.hub-gift-check svg{width:14px;height:14px;opacity:0}.hub-picker [aria-pressed=true] .hub-gift-check{background:#9160cd;border-color:#c796ff}.hub-picker [aria-pressed=true] .hub-gift-check svg{opacity:1}.hub-sheet-empty{grid-column:1/-1;padding:24px 8px;text-align:center;color:#9eafc6}.hub-sheet-note{font-size:11px;color:#8da2be;line-height:1.6}
.hub-history{display:grid;gap:9px}.hub-history-item{border:1px solid #2d3e54;border-radius:14px;background:#152235;overflow:hidden}.hub-history-item summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:1fr 1fr 1fr 42px;gap:5px;padding:12px;align-items:center}.hub-history-item summary::-webkit-details-marker{display:none}.hub-history-context{grid-column:1/-1;font-size:11px;line-height:17px;color:#a1b3cc;margin-bottom:3px}.hub-history-item summary b{font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}.hub-history-item summary small{display:block;font-size:8px;line-height:13px;color:#8399b7;margin-top:3px}.hub-history-item summary .positive{color:#60dea7}.hub-history-item time{font-size:10px;color:#a3b4cc}.hub-history-detail{border-top:1px solid #283c54;padding:8px 12px 12px;font-size:11px;color:#b2c2d7}.hub-history-detail p{margin:5px 0}.hub-history-id{font-size:9px;overflow-wrap:anywhere;color:#8b9db6}.hub-history-field{max-width:330px;margin:12px auto}.hub-history-field .mc-board,.hub-replay-board .mc-board{padding:6.2% 5%;gap:2.2%;aspect-ratio:1;grid-template-rows:repeat(5,minmax(0,1fr));width:100%}.hub-history-replay[hidden]{display:none}.hub-replay-label{border:1px solid #3c516b;border-radius:8px;padding:6px 8px;text-align:center;color:#b6cbe5;background:#1b2a40;font-size:10px}.hub-replay-board{max-width:368px;margin:auto}.hub-replay-board .plinko-board{width:100%;max-width:100%}.hub-replay-board .mines-zone{max-width:none}
.hub-dialog.hub-mines-count{inset:auto 16px 126px auto;margin:0;width:160px;max-height:min(360px,65dvh);border:1px solid #485972;border-radius:15px}.hub-mines-count .hub-dialog-head{padding:4px 5px 2px 12px;min-height:44px}.hub-mines-count .hub-dialog-head h2{font-size:12px;line-height:16px}.hub-mines-count .hub-dialog-head button{background:transparent}.hub-mines-count .hub-sheet-body{padding:0 5px 5px}.mines-count-list{display:flex;flex-direction:column;gap:2px}.mines-count-list button{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 10px;background:transparent;border:0;color:#dce7f5;border-radius:9px;font-size:14px}.mines-count-list img{width:18px;height:24px}.mines-count-list svg{width:15px;height:15px;margin-left:auto}.mines-count-list [aria-pressed=true]{background:#563776}.hub-coeff-table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums;font-size:11px}.hub-coeff-table th{text-align:left;font-size:10px;color:#8da3c0;padding:7px 3px}.hub-coeff-table td{border-top:1px solid #293c55;padding:9px 3px}.hub-coeff-table td:last-child{text-align:right}
@keyframes hub-sheet-in{from{transform:translateY(24px);opacity:0}to{transform:translateY(0);opacity:1}}
:where(html[data-motion="reduced"]) .hub-dialog.hub-sheet[open]{animation:none}
/* Dice shares the same moving source highlight; its TON segment is first. */
.hub-stake-source{position:relative;isolation:isolate;overflow:hidden}.hub-stake-source:before{content:'';position:absolute;inset:4px auto 4px 4px;width:calc(50% - 6px);border-radius:8px;background:linear-gradient(110deg,#42d9ef,#a6f6ff);transform:translateX(0);transition:transform 240ms cubic-bezier(.2,.8,.2,1);z-index:-1}.hub-stake-source[data-source=gift]:before{transform:translateX(calc(100% + 4px))}.hub-stake-source>[aria-pressed=true]{background:transparent}.hub-stake-source>button{position:relative}
:where(html[data-motion="reduced"]) .hub-stake-source:before{transition:none}
/* Mines: stable controls and a board fitted to the Telegram content viewport. */
.hub-mines .mines-stage{flex:0 0 auto;padding:0}
.hub-mines .mines-zone{max-width:none;width:100%}
.mines-field{position:relative;isolation:isolate;margin-inline:auto;max-width:100%;border-radius:23px}
.hub-mines .mines-cashout,.hub-mines .mines-cashout:disabled{opacity:1;background:linear-gradient(110deg,#29c674,#07964d);color:#382b26}
.mines-cashout [data-cashout-amount]{display:inline-block;font-variant-numeric:tabular-nums}
.mines-coefficient-window:before{content:'';position:absolute;left:0;top:0;bottom:0;width:26px;background:linear-gradient(90deg,#090f18,transparent);z-index:2;pointer-events:none;transition:opacity .2s}
.mines-coefficient-window.at-start:before{opacity:0}
.hub-mines .mines-gift{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;padding-inline:3px}
.mines-gift span{font-size:10px;overflow-wrap:anywhere}
.hub-gift-sheet .hub-dialog-head h2{margin-right:auto}
.hub-gift-sheet .hub-dialog-head{margin-bottom:8px}
.hub-search-reveal{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;visibility:hidden;contain:paint;flex-shrink:0;transition:grid-template-rows .22s ease,opacity .22s ease}
.hub-search-reveal.is-open{grid-template-rows:1fr;opacity:1;visibility:visible}
.hub-search-reveal .hub-sheet-search{min-height:0;visibility:hidden;overflow:hidden;margin:0 16px;border:0;padding:0;box-shadow:inset 0 0 0 1px #33465e}
.hub-search-reveal.is-open .hub-sheet-search{visibility:visible;margin-bottom:8px}
.hub-search-reveal input{min-height:0;height:44px;padding:10px 12px;outline:none;border-radius:12px}
.hub-search-reveal .hub-sheet-search:focus-within{box-shadow:inset 0 0 0 2px #a4caff}
.hub-gift-sheet .hub-picker{margin-top:4px}
.hub-gift-sheet .hub-picker strong,.hub-gift-sheet .hub-picker small{text-align:center}
.hub-picker-selection[hidden]{display:none}
.reward-game .reward-actions{max-width:300px;margin-inline:auto}
:where(html[data-motion="reduced"]) .hub-search-reveal,:where(html[data-motion="reduced"]) .mines-coefficient-window:before{transition:none}

.hub-rule-steps{list-style:none;counter-reset:rule;padding:4px 0;margin:0}.hub-rule-steps li{counter-increment:rule;position:relative;padding:0 0 24px 48px}.hub-rule-steps li:before{content:counter(rule);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#443063;color:#d9c4ff;font-weight:800}.hub-rule-steps li:not(:last-child):after{content:"";position:absolute;left:15px;top:38px;bottom:6px;width:2px;background:#433650}.hub-rule-steps h3{font-size:18px;margin:3px 0 8px}.hub-rule-steps p{color:#adbbd0;line-height:1.55;margin:0;font-size:15px}.hub-rule-steps li:last-child{padding-bottom:0}
:where(html[data-motion="reduced"]) .plinko-risk:before{transition:none}


/* Lock input without blinking every gift/TON icon on each command. */
.hub-page .mines-source button:disabled,.hub-page .hub-stake-source button:disabled,.hub-page .mines-count:disabled,.hub-page .mines-gift:disabled,.hub-page .plinko-gifts:disabled{opacity:1}

/* The shell already reserves space above navigation; empty status must not add scroll. */
.hub-page.hub-home{padding-bottom:0}
.hub-home>.hub-message:empty{display:none}

/* Keep the stake panel steady while a confirmed Plinko ball is moving. */
.hub-page .plinko-throw:disabled{opacity:1;background:#7450d9;border:0;color:white}
.hub-plinko .plinko-controls button:disabled,.hub-plinko .plinko-controls input:disabled{opacity:1}
.hub-plinko .plinko-controls input:disabled{-webkit-text-fill-color:currentColor}
