.lottery-view-tabs{display:flex;gap:8px;margin:0 0 14px;border-bottom:1px solid #e5eaf1;padding-bottom:10px}
.lottery-view-tabs button{border:1px solid #dce4ef;background:#fff;border-radius:5px;padding:9px 18px;color:#68788c;cursor:pointer}
.lottery-view-tabs button.active{background:#168be6;border-color:#168be6;color:white}
.lottery-game-page{background:#fff;border:1px solid #e6eaf0;border-radius:6px;overflow:hidden}
.lottery-game-page .lottery-game-filter{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:15px;border-bottom:1px solid #edf0f5}
.lottery-game-filter label{display:flex;align-items:center;gap:7px;color:#697586;font-size:12px}
.lottery-game-filter input{padding:7px 9px;border:1px solid #dce3ed;border-radius:4px;min-width:0}
.lottery-game-filter input[name=q]{width:170px}
.lottery-shortcuts{display:flex;gap:5px;flex-wrap:wrap}
.lottery-shortcuts .btn{padding:6px 9px;font-size:12px}
.lottery-game-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 6px}
.lottery-game-heading h2{font-size:16px;margin:0 0 7px}.lottery-game-heading p{font-size:12px;color:#8894a4;margin:0}
.lottery-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:10px 20px 20px}
.lottery-chart{min-width:0;margin:0}.lottery-chart h3{font-size:13px;font-weight:500;color:#667085;text-align:center;margin:12px 0}
.lottery-pie-layout{display:flex;align-items:center;justify-content:center;gap:18px;min-height:240px}
.lottery-pie-layout svg{width:min(48%,260px);height:auto;flex-shrink:0;overflow:visible}
.lottery-pie-layout path{stroke:#fff;stroke-width:1.2;transition:opacity .1s}.lottery-pie-layout path:hover{opacity:.78}
.lottery-chart-legend{list-style:none;padding:0;margin:0;max-height:250px;overflow:auto;flex:1;max-width:250px;font-size:12px}
.lottery-chart-legend li{display:grid;grid-template-columns:9px 1fr auto;gap:8px;align-items:center;padding:6px 0}
.lottery-chart-legend i{width:9px;height:9px;border-radius:2px}.lottery-chart-legend small{display:block;color:#8b96a7;font-size:11px;margin-top:2px}
.lottery-chart-legend b{font-weight:500;color:#758196;font-variant-numeric:tabular-nums}
.lottery-chart-empty{display:flex;align-items:center;justify-content:center;min-height:240px;color:#9aa5b4;font-size:13px;background:#fafbfd;border-radius:6px}
.lottery-game-page .table-wrap{overflow:auto}.lottery-game-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}
.lottery-game-table th,.lottery-game-table td{padding:13px 16px;border-bottom:1px solid #edf0f5;text-align:right;font-variant-numeric:tabular-nums}
.lottery-game-table th{background:#f8fafc;font-weight:500;color:#718094}.lottery-game-table td:first-child,.lottery-game-table td:nth-child(2),.lottery-game-table th:first-child,.lottery-game-table th:nth-child(2){text-align:left}
.lottery-game-table tbody tr:nth-child(even){background:#fbfcfe}.lottery-game-table tfoot{background:#f5f9fe;font-weight:600}
.lottery-game-table[data-aggregation="game"] td:nth-child(2),.lottery-game-table[data-aggregation="game"] th:nth-child(2){text-align:right}
.lottery-game-table td.lottery-profit-positive{color:#39916b!important}.lottery-game-table td.lottery-profit-negative{color:#d66a64!important}
.lottery-game-note{font-size:12px;line-height:1.8;color:#8590a0;padding:12px 20px;margin:0;border-top:1px solid #edf0f5}
.lottery-game-updated{font-size:12px;color:#8290a3}.lottery-game-error{padding:10px 20px;color:#c16b35;font-size:12px}
@media(max-width:1000px){.lottery-chart-grid{grid-template-columns:1fr}.lottery-pie-layout{max-width:650px;margin:auto}}
@media(max-width:600px){.lottery-game-heading{align-items:flex-start;flex-direction:column}.lottery-chart-grid{padding:10px}.lottery-game-filter label{width:100%}.lottery-game-filter input{flex:1}.lottery-pie-layout{gap:10px}.lottery-game-table th,.lottery-game-table td{padding:11px}.lottery-chart-legend li{gap:5px;font-size:11px}}
