#panel-games{--bg:#100f0c;--panel:#191814;--panel2:#201e18;--ink:#f4f1e6;--muted:#969184;--gold:#f4c34e;--line:#343127;--green:#5bdbad;--red:#f17c90;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
#panel-games *{box-sizing:border-box}
#panel-games button,#panel-games input{font:inherit}
#panel-games button{cursor:pointer}
#panel-games button:disabled{opacity:.4;cursor:not-allowed}
#panel-games button:focus-visible,#panel-games summary:focus-visible,#panel-games input:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
#panel-games button{transition:background .16s,transform .16s}
#panel-games button:not(:disabled):active{transform:translateY(1px)}
#panel-games .hidden{display:none!important}
#panel-games .topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
#panel-games .brand{font-size:21px;font-weight:850;letter-spacing:-.6px;display:flex;align-items:center;gap:5px}
#panel-games .brand>span:last-child{color:var(--gold)}
#panel-games .brand-mark{font-size:35px;color:var(--gold);margin-right:7px}
#panel-games .demo-label{font-size:12px;color:#cfbd8d;background:#c99c1e0d;border:1px solid #544627;border-radius:24px;padding:8px 12px;display:flex;align-items:center;gap:8px}
#panel-games .demo-label i{width:5px;height:5px;background:var(--gold);border-radius:50%}
#panel-games .page-title{display:flex;align-items:center;justify-content:space-between;padding:34px 4px 26px}
#panel-games .eyebrow{font-size:10px;letter-spacing:2px;color:var(--gold);font-weight:650}
#panel-games h1{font-size:44px;letter-spacing:-2px;margin:6px 0 8px;line-height:1.1;font-weight:750}
#panel-games .title-dot{color:var(--gold)}
#panel-games .page-title p{font-size:14px;color:var(--muted);margin:0}
#panel-games .hero-bee{width:116px;height:100px;object-fit:contain;filter:drop-shadow(0 4px 25px #c2912b35);transform:rotate(-10deg);margin-right:12px}
#panel-games .balance-bar{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(100deg,#302819,#201d15 50%,#1c1b16);border:1px solid #514329;border-radius:18px;padding:17px 23px;margin-bottom:20px}
#panel-games .balance-title{display:flex;gap:15px;align-items:center}
#panel-games .wallet-icon{font-size:27px;color:var(--gold);background:#e8b84112;border:1px solid #79622c66;border-radius:12px;width:44px;height:44px;display:grid;place-items:center}
#panel-games .balance-title>div>span{font-size:11px;display:block;color:#b8ab8c;margin-bottom:5px}
#panel-games .balance-title strong{font-size:25px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;font-weight:650}
#panel-games .reset-btn{border:1px solid #655532;background:#42371b55;border-radius:10px;padding:9px 12px;color:#e5c981;font-size:12px}
#panel-games .reset-btn span{font-size:18px;margin-right:4px}
#panel-games .reset-btn:hover{background:#5d4b2455}
#panel-games .game-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:18px}
#panel-games .chart-card,#panel-games .controls-card{border:1px solid var(--line);border-radius:20px;background:var(--panel);overflow:hidden}
#panel-games .chart-header{display:flex;align-items:center;justify-content:space-between;padding:22px 23px 0}
#panel-games .asset{display:flex;align-items:center;gap:10px}
#panel-games .ton-icon{display:grid;place-items:center;width:35px;height:35px;font-size:28px;background:#213743;color:#8ed4f5;border-radius:50%;line-height:1}
#panel-games .asset b{font-size:14px;display:block}
#panel-games .asset span{font-size:10px;color:var(--muted);display:block;margin-top:3px}
#panel-games .market-badge{font-size:8px;letter-spacing:1.15px;color:var(--muted);padding:6px 8px;border:1px solid var(--line);border-radius:5px}
#panel-games .market-badge.active{color:var(--gold);border-color:#776132}
#panel-games .chart-summary{height:136px;display:flex;flex-direction:column;justify-content:center;padding:14px 24px}
#panel-games .chart-summary>span,#panel-games .chart-summary>div>span{font-size:11px;color:var(--muted)}
#panel-games .idle-pnl,#panel-games .game-pnl{font-size:34px;letter-spacing:-1.25px;margin:5px 0;font-variant-numeric:tabular-nums;font-weight:600}
#panel-games .idle-pnl small{font-size:17px;font-weight:400;letter-spacing:0;color:#706d63}
#panel-games .chart-summary p{font-size:10px;color:var(--muted);margin:0}
#panel-games .game-pnl.positive{color:var(--green)}
#panel-games .game-pnl.negative{color:var(--red)}
#panel-games #gameStatusRow{flex-direction:row;align-items:center;justify-content:space-between}
#panel-games .timer-wrap{text-align:center}
#panel-games .timer-ring{width:69px;height:69px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--gold) var(--timer-progress,100%),#353027 0);position:relative;margin:0 auto 6px}
#panel-games .timer-ring:before{content:"";position:absolute;inset:3px;background:var(--panel);border-radius:50%}
#panel-games .timer-ring span{position:relative;font-size:11px!important;color:var(--ink)!important;font-variant-numeric:tabular-nums}
#panel-games .timer-wrap>span{font-size:9px!important;color:var(--muted)}
#panel-games .game-chart-wrap{position:relative;height:230px;margin:0 20px 0 10px}
#panel-games .game-chart-svg{display:block;width:100%;height:100%;background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),#ffffff05 calc(25% - 1px),#ffffff05 25%),repeating-linear-gradient(to right,transparent 0,transparent calc(20% - 1px),#ffffff03 calc(20% - 1px),#ffffff03 20%)}
#panel-games .game-price-line{fill:none;stroke:var(--gold);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
#panel-games .game-price-line.up{stroke:var(--green)}
#panel-games .game-price-line.down{stroke:var(--red)}
#panel-games .game-area-fill.up{fill:url(#gameFillUp)}
#panel-games .game-area-fill.down{fill:url(#gameFillDown)}
#panel-games .game-entry-line{stroke:#8d8778;stroke-width:.6;stroke-dasharray:3 4;opacity:.5}
#panel-games .game-cap-line{stroke:var(--green);stroke-width:.6;stroke-dasharray:3 4;opacity:.3}
#panel-games .game-liq-line{stroke:var(--red);stroke-width:.6;stroke-dasharray:3 4;opacity:.4}
#panel-games .game-liq-line.danger{opacity:1}
#panel-games .axis-label{position:absolute;right:0;z-index:2;font-size:9px;color:#757267;transform:translateY(-50%);background:#191814cb;padding:3px 4px}
#panel-games .cap-axis{top:10%;color:#6a9681}
#panel-games .entry-axis{top:50%}
#panel-games .liq-axis{top:70%;color:#a27079}
#panel-games .game-chart-bee{position:absolute;width:32px;height:32px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 0 9px #f4c34e44);transition:top .12s linear}
#panel-games .chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;pointer-events:none}
#panel-games .chart-empty>span:last-child{font-size:11px;color:#79756b;background:var(--panel);padding:5px 14px}
#panel-games .empty-line{width:72%;height:55px;background:linear-gradient(90deg,transparent,#f4c34e16,transparent);clip-path:polygon(0 50%,12% 50%,19% 38%,29% 58%,39% 46%,47% 57%,60% 20%,68% 39%,78% 25%,87% 41%,100% 41%,100% 46%,87% 46%,78% 30%,68% 44%,60% 25%,47% 62%,39% 51%,29% 63%,19% 43%,12% 55%,0 55%)}
#panel-games .chart-legend{display:flex;align-items:center;gap:15px;padding:19px 23px 22px;font-size:9px;color:var(--muted)}
#panel-games .chart-legend span{display:flex;align-items:center;gap:6px}
#panel-games .chart-legend span:last-child{margin-left:auto}
#panel-games .chart-legend i{width:10px;height:1px}
#panel-games .legend-entry{background:#9b9586}
#panel-games .legend-liq{background:var(--red)}
#panel-games .controls-card{padding:22px}
#panel-games .control-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
#panel-games h2{font-size:16px;letter-spacing:-.25px;margin:0;font-weight:600}
#panel-games .control-title>span{font-size:9px;letter-spacing:.8px;color:#787466}
#panel-games .field-label{font-size:11px;color:var(--muted);display:block;margin-bottom:8px}
#panel-games .stake-field{border:1px solid #534a34;background:#100f0d;border-radius:11px;display:flex;align-items:center;padding:0 14px;height:58px}
#panel-games .stake-field:focus-within{border-color:var(--gold);box-shadow:0 0 0 3px #f4c34e0c}
#panel-games .stake-field input{width:100%;min-width:0;background:none;border:0;color:var(--ink);font-size:26px;outline:none;font-weight:550;font-variant-numeric:tabular-nums;-moz-appearance:textfield}
#panel-games .stake-field input::-webkit-inner-spin-button{appearance:none}
#panel-games .stake-field>span{white-space:nowrap;font-size:11px;color:#9a9180}
#panel-games .quick-stakes{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:8px}
#panel-games .quick-stakes button{background:#25231d;border:1px solid transparent;color:#a29a88;font-size:11px;height:30px;border-radius:7px}
#panel-games .quick-stakes button:hover,#panel-games .quick-stakes .chosen{background:#473a1c;color:#f1cc73;border-color:#726037}
#panel-games .cost-line{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin:13px 0 23px}
#panel-games .cost-line b{color:#d2c8b0;font-weight:500;font-variant-numeric:tabular-nums}
#panel-games .direction-label{font-size:11px;margin-bottom:10px}
#panel-games .game-direction-row{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#panel-games .game-dir-btn{height:66px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #34735966;background:#254c3d44;color:var(--green);font-size:15px;font-weight:650}
#panel-games .game-dir-btn.down{background:#62334033;color:var(--red);border-color:#8c485b55}
#panel-games .game-dir-btn.up:hover{background:#254c3d88}
#panel-games .game-dir-btn.down:hover{background:#62334066}
#panel-games .direction-arrow{font-size:26px;font-weight:400}
#panel-games .game-dir-btn>span:last-child{text-align:left}
#panel-games .game-dir-btn small{display:block;font-size:8px;font-weight:400;margin-top:3px;opacity:.7}
#panel-games .action-hint{text-align:center;font-size:9px;color:#868073;margin:10px 0 0}
#panel-games .form-error{font-size:11px;color:var(--red);line-height:1.5;margin-top:8px}
#panel-games .form-error:empty{display:none}
#panel-games .conditions-strip{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:21px;padding-top:17px;font-size:10px;color:var(--muted)}
#panel-games .conditions-strip b{color:#ddd2b7;font-weight:500;margin-left:3px}
#panel-games .conditions{margin-top:14px}
#panel-games .conditions summary{display:flex;justify-content:space-between;cursor:pointer;font-size:10px;color:#a99d80;list-style:none}
#panel-games .conditions summary::-webkit-details-marker{display:none}
#panel-games .conditions[open] summary{margin-bottom:12px}
#panel-games .conditions[open] summary>span{transform:rotate(180deg)}
#panel-games #gameConfigInfo{font-size:11px;color:var(--muted);line-height:1.8}
#panel-games .condition-row{display:flex;justify-content:space-between}
#panel-games .condition-row b{color:#e7d6ae;font-weight:500}
#panel-games #gameConfigInfo p{font-size:10px;line-height:1.6;margin:10px 0}
#panel-games .demo-note{display:flex;gap:8px;font-size:9px;line-height:1.7;color:#777366;margin-top:18px}
#panel-games .demo-note svg{width:18px;height:18px;stroke:#867b59;stroke-width:1.5;flex-shrink:0;margin-top:2px}
#panel-games .position-card{border:1px solid var(--line);padding:20px;border-radius:12px;background:#12110e;margin-bottom:20px}
#panel-games .position-card>span{font-size:11px;color:var(--muted)}
#panel-games .position-card>b{display:block;font-size:27px;margin:5px 0 10px}
#panel-games .position-card>div{font-size:12px;color:var(--gold)}
#panel-games .sell-button,#panel-games .buy-button{width:100%;border:0;border-radius:10px;min-height:47px;padding:13px 15px;display:flex;justify-content:space-between;align-items:center}
#panel-games .sell-button{background:var(--gold);color:#292210;font-weight:650;font-size:13px}
#panel-games .sell-button:hover{background:#ffda73}
#panel-games .sell-button>span{font-size:20px}
#panel-games .buy-button{background:#2c281d;color:#d9c594;border:1px solid #4b4029;margin-top:16px;font-size:11px}
#panel-games .buy-button span{font-weight:600}
#panel-games #gameResultBanner{margin:0 20px 20px;border-radius:10px;padding:14px;font-size:12px;line-height:1.6;background:#f4c34e0d;border:1px solid #f4c34e22}
#panel-games #gameResultBanner.win{color:var(--green);background:#5bdbad09;border-color:#5bdbad30}
#panel-games #gameResultBanner.lose,#panel-games #gameResultBanner.liquidated{color:var(--red);background:#f17c9009;border-color:#f17c9030}
#panel-games .rounds-section{margin-top:26px}
#panel-games .rounds-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
#panel-games .rounds-title h2{font-size:13px}
#panel-games .rounds-title>span{font-size:10px;color:#797467}
#panel-games .round-history{display:flex;gap:8px;flex-wrap:wrap}
#panel-games .history-placeholder{font-size:11px;color:#706c60;padding:15px 0}
#panel-games .history-round{border:1px solid var(--line);border-radius:9px;background:#1c1a15;display:flex;align-items:center;gap:11px;padding:10px 14px;font-size:11px}
#panel-games .history-round>span{color:var(--muted);font-size:10px}
#panel-games .history-round>b{font-variant-numeric:tabular-nums;font-weight:500}
#panel-games .history-round.win>b{color:var(--green)}
#panel-games .history-round.loss>b{color:var(--red)}
#panel-games footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #28251c;margin-top:26px;padding-top:20px;font-size:9px;color:#686354}
#panel-games footer>span:first-child{font-size:10px;font-weight:750;letter-spacing:.8px}
#panel-games footer>span:last-child{letter-spacing:1.5px}
@media(min-width:850px){#panel-games .chart-card{min-height:494px}
#panel-games .game-chart-wrap{height:230px}}
@media(max-width:849px){#panel-games .topbar{height:66px}
#panel-games .brand{font-size:18px}
#panel-games .brand-mark{font-size:30px}
#panel-games .demo-label{font-size:10px;padding:7px 9px}
#panel-games .page-title{padding:22px 0 21px}
#panel-games h1{font-size:35px}
#panel-games .page-title p{font-size:11px}
#panel-games .eyebrow{font-size:8px}
#panel-games .hero-bee{width:82px;height:78px;margin-right:0}
#panel-games .balance-bar{padding:13px 15px;margin-bottom:14px;border-radius:14px}
#panel-games .wallet-icon{width:35px;height:35px;font-size:23px}
#panel-games .balance-title{gap:10px}
#panel-games .balance-title strong{font-size:22px}
#panel-games .balance-title>div>span{font-size:10px}
#panel-games .reset-btn{font-size:10px;padding:6px 9px}
#panel-games .game-layout{grid-template-columns:1fr;gap:14px}
#panel-games .chart-card,#panel-games .controls-card{border-radius:17px}
#panel-games .chart-header{padding:17px 18px 0}
#panel-games .chart-summary{height:111px;padding:12px 19px}
#panel-games .idle-pnl,#panel-games .game-pnl{font-size:29px}
#panel-games .game-chart-wrap{height:177px;margin-left:4px;margin-right:15px}
#panel-games .chart-legend{padding:14px 18px 18px;font-size:8px}
#panel-games .chart-empty>span:last-child{font-size:10px}
#panel-games .controls-card{padding:19px}
#panel-games .control-title{margin-bottom:19px}
#panel-games .stake-field{height:57px}
#panel-games .game-dir-btn{height:64px}
#panel-games .conditions-strip{margin-top:17px}
#panel-games .timer-ring{width:58px;height:58px}
#panel-games .rounds-section{margin-top:22px}
#panel-games footer>span:last-child{display:none}
#panel-games footer{gap:12px}
#panel-games .chart-summary p{font-size:9px}
#panel-games .chart-legend{gap:12px}
#panel-games .asset span{font-size:9px}
#panel-games .market-badge{font-size:7px}
#panel-games #gameResultBanner{font-size:11px;margin:0 14px 14px}}
@media(prefers-reduced-motion:reduce){#panel-games *{transition:none!important;animation:none!important}}
#panel-games .idle-pnl.positive{color:var(--green)}
#panel-games .idle-pnl.negative{color:var(--red)}
@media(max-width:849px){#panel-games .eyebrow{font-size:10px}
#panel-games .chart-summary>span,#panel-games .chart-summary>div>span,#panel-games .chart-summary p{font-size:11px}
#panel-games .asset span{font-size:10px}
#panel-games .market-badge{font-size:8px;letter-spacing:.65px}
#panel-games .axis-label{font-size:10px}
#panel-games .chart-legend{font-size:9px}
#panel-games .field-label,#panel-games .direction-label{font-size:12px}
#panel-games .quick-stakes button{height:35px;font-size:12px}
#panel-games .cost-line,#panel-games .conditions-strip,#panel-games .conditions summary,#panel-games .action-hint,#panel-games .demo-note{font-size:11px}
#panel-games .game-dir-btn small{font-size:10px}
#panel-games .control-title>span{font-size:10px}
#panel-games .rounds-title>span,#panel-games .history-placeholder{font-size:11px}
#panel-games .demo-note{margin-top:15px}
#panel-games .chart-summary{height:96px}
#panel-games .game-chart-wrap{height:153px}}
#panel-games .form-error{min-height:0;margin-bottom:0}
#panel-games .conditions-strip{justify-content:flex-start}
#panel-games{background:transparent}
@media(min-width:850px){.app:has(#panel-games.active){max-width:1100px}}
#panel-games .wallet-icon svg,#panel-games .brand-mark svg{width:26px;height:26px;stroke:currentColor;stroke-width:1.3}#panel-games .ton-icon svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}#panel-games .direction-arrow{display:flex}#panel-games .direction-arrow svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#panel-games .reset-btn>span,#panel-games .sell-button>span,#panel-games .conditions summary>span{display:inline-flex;vertical-align:middle}#panel-games .reset-btn svg,#panel-games .sell-button svg,#panel-games .conditions summary svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#panel-games #gameResultBanner{display:flex;align-items:center;gap:12px;text-align:left;font-weight:400}#panel-games .result-icon{flex:none;width:37px;height:37px;display:grid;place-items:center}#panel-games .result-icon svg{width:37px;height:37px;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#panel-games .result-hex{fill:currentColor;fill-opacity:.06;stroke-opacity:.35;stroke-width:1}#panel-games .result-copy{display:grid;gap:4px}#panel-games .result-copy strong{font-size:17px;letter-spacing:-.25px;font-weight:600;font-variant-numeric:tabular-nums}#panel-games .result-copy>span{font-size:11px;line-height:1.5;opacity:.8}
