:root{--blue:#18a1ec;--blue-dark:#0875bd;--ink:#303b50;--muted:#737e90;--line:#e8ecf3;--bg:#edf0f5;--soft:#f6f9fd;--radius:12px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Arial,'Microsoft YaHei','PingFang SC',sans-serif;color:var(--ink);font-size:14px}button,input,select{font:inherit}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a,input,select{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid #64c7ff;outline-offset:3px}input:focus,select:focus{outline:2px solid #6ecfff;outline-offset:1px}h1,h2,h3,p{margin:0}h1{font-size:24px}h2{font-size:17px;font-weight:600}h3{font-size:16px}small{font-size:12px}input,select{border:1px solid #dce3ec;border-radius:6px;padding:10px 12px;min-height:42px;background:#fff;color:var(--ink);max-width:100%}input{min-width:0}label{display:flex;flex-direction:column;gap:8px}button{border:0;background:transparent;color:inherit}svg{flex-shrink:0} .primary,.outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:6px;padding:12px 24px;min-height:44px;font-weight:600;white-space:nowrap}.primary{background:var(--blue);color:white;border:1px solid var(--blue)}.primary:hover:not(:disabled){background:var(--blue-dark)}.outline{border:1px solid #d6dfeb;background:#fff;color:var(--blue-dark)}.compact{padding:7px 16px;min-height:34px}.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--blue-dark);font-size:13px;min-height:36px;padding:6px}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:var(--muted)}.icon-btn:hover{background:var(--soft)}.muted{color:var(--muted);line-height:1.7;font-size:13px}.panel{background:#fff;border-radius:var(--radius);border:1px solid var(--line);padding:22px}.site-header{background:white;border-bottom:1px solid var(--line)}.header-inner{max-width:1180px;margin:auto;display:flex;align-items:center;gap:18px;height:76px;padding:0 20px}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand strong{font-size:25px;color:#159cdd;font-style:italic;font-weight:900;letter-spacing:-1px}.brand span{font-size:18px;letter-spacing:1px;font-weight:600}.simulation-tag{font-size:10px;letter-spacing:1px;padding:5px 8px;border:1px solid #d8e8f5;color:#5c7b96;border-radius:4px;white-space:nowrap}.header-actions{margin-left:auto;display:flex;align-items:center;gap:18px;font-size:12px}.language{display:flex;align-items:center;gap:6px;color:#53718b;min-height:40px}.member-chip{display:flex;align-items:center;gap:6px}.header-balance b{color:var(--blue-dark);font-size:14px;margin-left:6px}.subnav{background:#fff}.subnav-inner{max-width:1180px;margin:auto;padding:0 20px;display:flex;align-items:center;justify-content:space-between;height:54px}.subnav nav{display:flex;height:100%;gap:34px}.subnav nav a{display:flex;align-items:center;gap:8px;border-bottom:3px solid transparent;font-size:13px}.subnav nav a.active{color:var(--blue);border-color:var(--blue)}.main-shell{max-width:1180px;margin:auto;padding:0 20px}.lobby-toolbar{display:flex;align-items:center;gap:20px;padding:22px 0 12px}.lobby-toolbar>span:first-child{display:flex;align-items:center;gap:8px;font-weight:600}.search-box{display:flex;flex-direction:row;align-items:center;gap:8px;border-radius:24px;background:#fff;border:1px solid var(--line);padding:0 14px;max-width:290px}.search-box svg{color:#8794a7}.search-box input{width:100%;border:0;background:transparent;padding:9px 0;min-height:36px;border-radius:0;outline-offset:4px}.toolbar-note{margin-left:auto;color:var(--muted);font-size:12px}.hero-banner{width:100%;overflow:hidden;border-radius:4px}.hero-banner img{display:block;width:100%;height:auto;aspect-ratio:2280/610;object-fit:cover}.lobby-top{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:16px;margin-top:-9px;position:relative}.featured-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.game-card{background:#fff;position:relative;border:1px solid var(--line);border-radius:10px;transition:transform .2s,box-shadow .2s;min-width:0}.game-card:hover{transform:translateY(-3px);box-shadow:0 8px 22px #223d5b10}.game-card-link{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 10px}.game-card img{width:80px;height:80px;object-fit:contain}.game-card h3{margin:5px 0 12px;font-size:16px;line-height:1.4}.game-card small{color:var(--muted);font-size:10px}.featured .game-card-link{padding:0 8px 17px}.featured img{height:116px;width:100%;margin-top:-10px;object-fit:contain}.featured h3{font-size:20px;line-height:1.35;min-height:27px}.favorite{position:absolute;top:7px;right:7px;z-index:1;color:#9da9b8;padding:6px;display:flex;border-radius:50%}.favorite.on{color:#eab22f}.favorite.on svg{fill:#ffe49a}.game-timer{display:flex;align-items:center;flex-direction:column;gap:6px}.game-timer span{font-size:11px;color:var(--muted)}.game-timer b{font-variant-numeric:tabular-nums;font-size:19px;letter-spacing:2px;color:#35445a}.enter-game{display:flex;align-items:center;gap:4px;color:var(--blue-dark);font-size:12px;margin-top:14px}.recommendations{padding:16px}.recommendations h2{font-size:14px;margin-bottom:12px}.recommendations>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 4px}.recommendations a{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px}.recommendations img{width:62px;height:62px;object-fit:contain}.recommendations strong{font-size:11px;font-weight:500}.recommendations small{font-size:10px;color:var(--muted)}.notice{display:flex;gap:10px;align-items:center;font-size:12px;color:#758198;padding:18px 4px}.notice svg{color:var(--blue)}.game-library{padding:0 20px 20px}.library-tabs{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--line);height:58px;margin-bottom:18px}.library-tabs button{height:100%;border-bottom:3px solid transparent;font-size:14px}.library-tabs button.active{border-color:var(--blue);color:var(--blue)}.library-tabs span{color:var(--muted);font-size:12px;margin-left:auto}.library-tabs small{color:var(--muted)}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.game-grid .game-card-link{display:grid;grid-template-columns:90px 1fr;text-align:left;align-items:center;justify-items:start;padding:14px 12px;column-gap:7px}.game-grid .game-card img{grid-row:1/5}.game-grid h3{font-size:14px;margin:4px 0 8px}.game-grid .game-timer{align-items:flex-start;gap:3px}.game-grid .game-timer b{font-size:16px;letter-spacing:1px}.game-grid .enter-game{margin-top:8px}.site-footer{display:flex;align-items:center;justify-content:space-between;color:#8994a6;font-size:11px;padding:34px 4px 24px;gap:12px}.site-footer strong{font-size:12px;color:#8b9aaf}.mobile-bottom{display:none}.page-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 22px}.page-heading small{display:block;font-size:10px;letter-spacing:1.5px;color:#93a0b5;margin-bottom:8px}.page-heading h1{font-weight:600;font-size:25px}.sign-in-panel{display:flex;flex-direction:column;align-items:center;gap:20px;padding:70px 20px;margin-top:30px}.sign-in-panel svg{color:var(--blue)}.sign-in-panel h2{text-align:center}.error-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px auto;background:#fff3f2;border:1px solid #ffd6d1;color:#b53735;border-radius:8px;max-width:1140px;padding:12px 18px}.error-banner button{display:flex;gap:5px;align-items:center}.toast{position:fixed;top:15px;left:50%;transform:translateX(-50%);background:#fff;border:1px solid #cde7de;box-shadow:0 8px 30px #24435320;z-index:20;border-radius:8px;padding:14px 24px;display:flex;align-items:center;gap:10px;color:#1b8b6a}.game-shell{max-width:1500px;padding:20px}.play-layout{display:grid;grid-template-columns:155px minmax(480px,1fr) 360px;gap:18px;align-items:start}.game-sidebar{background:#fff;border-radius:8px;overflow:hidden;padding-bottom:12px}.back-link{display:flex;align-items:center;gap:6px;padding:15px 12px;color:var(--muted);font-size:12px;border-bottom:1px solid var(--line)}.game-sidebar h3{padding:18px 15px;font-size:13px;color:#788499}.game-sidebar>a:not(.back-link){display:flex;align-items:center;gap:8px;padding:11px 12px;font-size:12px;border-left:3px solid transparent}.game-sidebar>a.active{background:#eef8ff;border-color:var(--blue);color:var(--blue-dark)}.game-sidebar img{width:27px;height:27px;object-fit:contain}.play-main{min-width:0}.game-header{background:#e1eaff;border-radius:12px 12px 0 0;padding:22px 24px 18px}.game-title{display:flex;align-items:center;gap:12px}.game-title img{width:64px;height:64px;object-fit:contain}.game-title h1{font-size:22px;font-weight:600;line-height:1.4}.game-title small{color:#73829c}.game-title .icon-btn{margin-left:auto}.round-status{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0}.round-status>div:first-child{display:flex;flex-direction:column;gap:6px;font-size:12px}.open{color:#188a71}.closed{color:#b95050}.clock-display{background:#344059;color:#fff;padding:8px 17px;border-radius:6px;text-align:center}.clock-display small{font-size:10px;color:#cad4e9;display:block}.clock-display strong{font-size:29px;font-variant-numeric:tabular-nums;letter-spacing:3px;font-weight:500}.previous-draw{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #d2def4;padding-top:14px}.previous-draw>span{display:flex;flex-direction:column;gap:4px;font-size:12px;white-space:nowrap}.previous-draw small{color:#71819a}.number-balls{display:flex;gap:5px}.nball{width:29px;height:29px;border:2px solid #cbd3df;background:white;border-radius:50%;display:inline-flex;justify-content:center;align-items:center;font-weight:600;font-size:13px;color:#303747;flex-shrink:0;font-variant-numeric:tabular-nums}.n1{border-color:#ead232}.n2{border-color:#3b98dd}.n3{border-color:#45495b}.n4{border-color:#ee9c3d}.n5{border-color:#40bed1}.n6{border-color:#8474d6}.n7{border-color:#b4bccc}.n8{border-color:#e3566f}.n9{border-color:#854755}.n10{border-color:#48c893}.small-balls{gap:3px}.small-balls .nball{width:23px;height:23px;font-size:10px;border-width:1.5px}.selection-panel{border-radius:0 0 12px 12px;padding:0 22px 24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0}.selection-panel .section-heading h2{font-size:14px}.position-tabs{display:flex;gap:0;border:1px solid var(--line);border-radius:5px;overflow-x:auto}.position-tabs button{flex:1;white-space:nowrap;min-height:44px;font-size:12px;border-right:1px solid var(--line);padding:8px 9px}.position-tabs button:last-child{border:0}.position-tabs .active{background:var(--blue);color:white}.market-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:23px 0 14px;font-size:13px}.market-heading small{color:#8793a7;font-size:11px}.number-markets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.market{border:1px solid #e3e9f2;border-radius:6px;background:white;min-height:62px;display:flex;align-items:center;justify-content:space-around;gap:7px;padding:12px 8px}.market b{font-size:12px;color:var(--blue-dark);font-weight:500}.market:hover{background:#f3faff;border-color:#83d0fa}.market.selected{border-color:var(--blue);background:#edf8ff;box-shadow:inset 0 0 0 1px var(--blue)}.side-markets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.side-markets .market strong{font-size:17px;font-weight:500}.bet-bar{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:17px 20px}.bet-summary{display:flex;align-items:center;gap:10px;font-size:12px;min-height:23px}.bet-summary small{color:#8e9aad}.bet-summary strong{color:var(--blue-dark);font-size:13px}.bet-summary>span{margin-left:auto;color:var(--muted)}.bet-controls{display:flex;align-items:end;gap:8px;margin-top:12px}.bet-controls label{display:flex;flex-direction:row;gap:8px;align-items:center;font-size:12px}.bet-controls input{width:95px;height:42px;padding:8px}.bet-controls .primary{margin-left:auto}.amount-shortcuts{display:flex;gap:3px}.amount-shortcuts button{border:1px solid #e0e6ef;border-radius:4px;height:42px;padding:0 11px;font-size:12px;color:#6e7c92}.draw-panel{padding:0;overflow:hidden;min-height:300px}.record-tabs{display:flex;border-bottom:1px solid var(--line)}.record-tabs button{flex:1;padding:16px 6px;border-bottom:3px solid transparent;font-size:13px}.record-tabs button.active{color:var(--blue);background:#f4faff;border-color:var(--blue)}.history-head,.history-row{display:flex;justify-content:space-between;align-items:center;padding:12px;gap:8px}.history-head{background:#f9fafc;color:#8894a7;font-size:11px}.history-row{border-bottom:1px solid var(--line)}.history-row>span{font-size:11px;color:#708097}.history-row:first-of-type>span{color:var(--blue)}.records-link{display:flex;padding:15px}.draw-panel .order-row{display:grid;grid-template-columns:1fr 1fr;padding:14px;font-size:12px}.draw-panel .order-row>div:nth-child(3),.draw-panel .order-row>div:nth-child(4){font-size:11px}.draw-panel .order-row small{font-size:10px}.empty-state{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:45px 15px;color:#8f9bb0}.empty-state strong{font-size:14px;font-weight:500;color:#758299}.empty-state p{font-size:12px;max-width:260px;line-height:1.6}.filters{display:flex;justify-content:space-between;gap:14px;margin-bottom:18px}.filters .search-box{min-width:260px}.order-list{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.order-row{display:grid;grid-template-columns:2fr 1.2fr 1fr 1fr;align-items:center;gap:14px;padding:20px 24px;border-bottom:1px solid var(--line)}.order-row:last-child{border-bottom:0}.order-row>div{display:flex;flex-direction:column;gap:7px}.order-row small{color:var(--muted);font-size:11px}.order-row code{font-size:10px;color:#98a4b6}.order-row .number-balls{grid-column:1/-1}.state{display:inline-block;align-self:flex-start;font-size:11px;padding:4px 8px;border-radius:4px}.pending{background:#fff4df;color:#987020}.won{background:#e8f8f0;color:#218866}.lost{background:#f0f3f8;color:#788499}.wallet-card{display:flex;gap:24px;align-items:center;padding:36px;margin-bottom:22px;background:#f9fcff}.wallet-card svg{color:var(--blue)}.wallet-card>div{display:flex;flex-direction:column;gap:10px}.wallet-card strong{font-size:36px;color:var(--blue-dark)}.wallet-card small{color:var(--muted)}.ledger-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line);font-size:13px}.ledger-row>div{display:flex;flex-direction:column;gap:6px}.ledger-row small{color:var(--muted)}.positive,.success-text{color:#198962}.negative{color:#c9505b}.profile-card{max-width:500px;display:flex;flex-direction:column;gap:22px}.profile-card>svg{color:var(--blue)}.profile-card p{color:var(--muted)}.admin-layout{display:grid;grid-template-columns:215px 1fr;min-height:calc(100vh - 76px)}.admin-sidebar{background:#fff;border-right:1px solid var(--line);padding:28px 14px}.admin-sidebar p{font-size:10px;color:#97a7bb;letter-spacing:2px;padding:0 14px 22px}.admin-sidebar button{display:flex;align-items:center;gap:12px;padding:15px 16px;width:100%;text-align:left;border-radius:7px;margin-bottom:6px;font-size:13px;color:#6e7e96}.admin-sidebar button.active{color:var(--blue-dark);background:#eaf7ff}.admin-content{padding:0 32px 40px;min-width:0;max-width:1400px;width:100%}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.stat{border:1px solid var(--line);background:#fff;border-radius:10px;padding:23px;display:flex;flex-direction:column;gap:16px}.stat span{font-size:12px;color:#7b899e}.stat strong{font-size:30px;color:#3b4b64;font-weight:500}.admin-two{display:grid;grid-template-columns:1.7fr 1fr;gap:22px;align-items:start}.running-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.running-row img{width:39px;height:39px;object-fit:contain}.running-row div{display:flex;flex-direction:column;gap:5px}.running-row small{color:var(--muted);font-size:10px}.running-row b{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--blue-dark);letter-spacing:1px}.quick-action{display:flex;align-items:center;gap:12px;width:100%;padding:20px 8px;border-bottom:1px solid var(--line);font-size:13px}.quick-action svg:first-child{color:var(--blue)}.quick-action svg:last-child{margin-left:auto;color:#a1afc1}.admin-two .muted{margin-top:22px}.odds-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;align-items:center;gap:16px;padding:14px 12px;border-bottom:1px solid var(--line);font-size:13px}.odds-row .compact{justify-self:start}.table-head{background:#f6f8fc;color:var(--muted);font-size:12px;margin-top:15px}.draw-context{display:flex;gap:20px;flex-wrap:wrap;background:#f4f9ff;padding:17px;border-radius:7px;font-size:13px;margin:5px 0 20px}.draw-inputs{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:10px;margin:25px 0}.draw-inputs label{text-align:center;font-size:12px;color:#72829a}.draw-inputs input{text-align:center;padding:12px 5px;font-size:19px;color:var(--blue-dark)}.draw-inputs input::-webkit-inner-spin-button{-webkit-appearance:none}.success-text{font-size:13px;margin-top:17px}.member-row{display:flex;align-items:center;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.member-row>div{display:flex;flex-direction:column;gap:5px;margin-right:auto}.member-row small{color:var(--muted)}.points-form{display:flex;align-items:end;gap:16px;margin-top:20px;flex-wrap:wrap}.points-form h2{width:100%}.audit-row{display:grid;grid-template-columns:160px 130px 1fr;gap:14px;padding:18px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}.audit-row time,.audit-row span{color:var(--muted);overflow-wrap:anywhere}.modal{border:0;border-radius:12px;box-shadow:0 15px 70px #253b5935;max-width:480px;width:calc(100% - 32px);padding:24px;color:var(--ink);margin:auto;background:white;max-height:calc(100dvh - 32px);overflow:auto}.modal::backdrop{background:#1d2e4d66}.modal-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.modal-title h2{font-size:19px}.modal label{margin:16px 0;font-size:13px}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.confirmation{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#f6f9fd;padding:20px;margin:18px 0;border-radius:8px;font-size:13px}.confirmation strong{text-align:right;color:var(--blue-dark)}.rules-body{font-size:13px;line-height:1.9;color:#6a7890}.rules-body ul{padding-left:20px;margin:18px 0}.rules-body li{margin:8px 0}.rules-body p:last-child{background:#f2f7fd;padding:12px;border-radius:6px}.login-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px;background:var(--bg)}.login-box{background:white;border:1px solid var(--line);border-radius:14px;padding:36px;width:420px;max-width:100%}.login-box .brand{justify-content:center;margin-bottom:20px}.login-box h1{font-size:22px;text-align:center;margin:24px 0}.login-box label{margin:18px 0}.login-box .primary{width:100%;margin-top:12px}.login-box .language{margin-left:auto}.login-box p{font-size:12px;color:var(--muted);line-height:1.7;text-align:center;margin:18px 0}.login-box .back-link{justify-content:center;border:0;margin-top:12px}
@media(min-width:768px) and (max-width:1250px){.play-layout{grid-template-columns:130px minmax(0,1fr) 310px;gap:12px}.game-header{padding:18px}.selection-panel{padding:0 16px 20px}.position-tabs button{padding:8px 5px;font-size:10px}.previous-draw{flex-wrap:wrap}.bet-controls{flex-wrap:wrap}.game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.draw-inputs{grid-template-columns:repeat(5,1fr)}}
@media(max-width:767px){body{font-size:13px}.header-inner{height:64px;padding:0 16px;gap:8px}.brand{gap:6px}.brand strong{font-size:23px}.brand span{font-size:15px}.header-inner>.simulation-tag{display:none}.header-actions{gap:8px}.member-chip,.header-balance,.header-actions>.icon-btn{display:none}.language{font-size:11px;gap:4px;min-height:44px}.subnav{display:none}.main-shell{padding:0 14px 70px}.lobby-toolbar{padding:16px 0 12px;gap:12px}.lobby-toolbar>span:first-child{font-size:12px;white-space:nowrap}.lobby-toolbar .search-box{margin-left:auto;max-width:205px;background:white}.toolbar-note{display:none}.hero-banner{border-radius:8px}.hero-banner img{aspect-ratio:2.5;object-fit:cover;object-position:center}.lobby-top{display:block;margin-top:16px}.featured-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.featured .game-card-link{padding:6px 10px 14px}.featured img{height:94px;margin-top:-5px}.featured h3{font-size:17px;min-height:24px;margin-bottom:10px}.featured .game-timer b{font-size:19px}.recommendations{display:none}.game-card{border-radius:9px}.favorite{padding:9px;top:2px;right:2px}.notice{font-size:10px;line-height:1.6;padding:16px 2px}.game-library{padding:0 12px 14px}.library-tabs{height:52px;gap:16px;margin-bottom:12px}.library-tabs button{font-size:13px}.library-tabs span{display:none}.library-tabs small{font-size:10px;margin-left:auto}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.game-grid .game-card-link{display:flex;text-align:center;padding:12px 7px;align-items:center}.game-grid .game-card img{width:65px;height:65px}.game-grid h3{font-size:13px;min-height:19px;margin:5px 0 8px}.game-grid .game-timer{align-items:center}.game-grid .game-timer b{font-size:16px}.game-grid .enter-game{font-size:11px;margin-top:10px}.game-grid .game-card small{font-size:9px}.site-footer{flex-direction:column;gap:9px;padding:28px 0 10px;text-align:center}.mobile-bottom{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:5;background:white;border-top:1px solid #e6ecf4;justify-content:space-around;padding:7px 0 calc(7px + env(safe-area-inset-bottom));height:calc(65px + env(safe-area-inset-bottom))}.mobile-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:60px;color:#94a0b2;font-size:10px}.mobile-bottom a.active{color:var(--blue)}.game-shell{padding:10px 10px 180px}.play-layout{display:block}.game-sidebar{background:transparent;padding:0;display:flex;gap:8px;overflow-x:auto;margin-bottom:10px;white-space:nowrap;border-radius:0;align-items:center}.game-sidebar h3,.game-sidebar img{display:none}.game-sidebar>a:not(.back-link){padding:10px 12px;border:1px solid #e0e6ef;background:white;border-radius:6px;font-size:11px;min-height:40px}.game-sidebar>a.active{border-color:var(--blue);background:#eef8ff}.back-link{padding:10px 8px;border:0;font-size:11px}.game-sidebar .back-link{font-size:0;gap:0}.game-header{padding:16px;border-radius:10px 10px 0 0}.game-title{gap:9px}.game-title img{width:50px;height:50px}.game-title h1{font-size:19px}.game-title small{font-size:10px}.round-status{padding:12px 0}.round-status>div:first-child{font-size:11px;gap:6px}.clock-display{padding:7px 11px}.clock-display strong{font-size:25px;letter-spacing:2px}.previous-draw{display:block;padding-top:12px}.previous-draw>span{flex-direction:row;justify-content:space-between;margin-bottom:10px;font-size:11px}.number-balls{gap:5px;justify-content:space-between}.previous-draw .nball{width:27px;height:27px;font-size:12px}.selection-panel{padding:0 13px 20px}.selection-panel .section-heading{padding:17px 0 13px}.position-tabs{border-radius:5px}.position-tabs button{flex:0 0 auto;min-width:63px;min-height:44px;font-size:12px}.market-heading{margin:19px 0 12px;font-size:12px}.market-heading small{font-size:9px}.number-markets{gap:8px}.market{flex-direction:column;gap:7px;padding:11px 3px;min-height:75px}.market .nball{width:28px;height:28px}.market b{font-size:11px}.side-markets{gap:8px}.side-markets .market{min-height:68px}.side-markets .market strong{font-size:18px}.bet-bar{position:fixed;bottom:0;left:0;right:0;z-index:5;border-radius:14px 14px 0 0;box-shadow:0 -6px 25px #2c476a12;padding:13px 15px calc(15px + env(safe-area-inset-bottom));margin:0}.bet-summary{gap:7px;font-size:10px}.bet-summary strong{font-size:12px}.bet-summary span{font-size:10px}.bet-controls{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px;align-items:stretch}.bet-controls label{grid-column:1;flex-direction:row;font-size:11px}.bet-controls input{width:100%;min-height:44px}.bet-controls .primary{grid-column:2;grid-row:1/3;margin:0;padding:15px 21px;min-width:118px;white-space:normal;line-height:1.5}.amount-shortcuts{grid-column:1;display:flex;gap:5px}.amount-shortcuts button{height:30px;flex:1;font-size:11px}.clear-selection{display:none}.draw-panel{margin-top:14px;min-height:0}.record-tabs button{padding:15px 6px;font-size:12px}.history-head,.history-row{padding:12px}.small-balls .nball{width:22px;height:22px}.history-row .number-balls{gap:3px}.page-heading{margin:22px 0}.page-heading h1{font-size:23px}.panel{padding:17px}.draw-panel{padding:0}.filters{gap:8px}.filters .search-box{min-width:0;max-width:220px}.filters select{font-size:11px;padding:8px;min-width:95px}.order-row{grid-template-columns:1.4fr 1fr;padding:16px;gap:14px}.order-row strong{font-size:13px}.order-row small{font-size:10px}.order-row>div:nth-child(3),.order-row>div:nth-child(4){border-top:1px solid var(--line);padding-top:10px}.order-row .number-balls{justify-content:flex-start}.wallet-card{padding:26px 20px}.wallet-card strong{font-size:30px}.ledger-row{grid-template-columns:1fr auto;gap:8px;font-size:12px}.ledger-row>span{grid-column:1/-1;text-align:right;color:var(--muted);font-size:10px}.profile-card{gap:20px}.admin-layout{display:block}.admin-sidebar{display:flex;gap:5px;overflow-x:auto;padding:12px;border-right:0;border-bottom:1px solid var(--line)}.admin-sidebar p{display:none}.admin-sidebar button{flex:0 0 auto;width:auto;padding:12px;gap:7px;white-space:nowrap;margin:0;font-size:11px}.admin-sidebar svg{width:16px}.admin-content{padding:0 14px 30px}.stats-grid{grid-template-columns:1fr 1fr;gap:12px}.stat{padding:18px}.stat strong{font-size:25px}.admin-two{grid-template-columns:1fr}.draw-context{gap:12px;font-size:11px}.draw-inputs{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.draw-inputs label{font-size:10px}.draw-inputs input{font-size:17px;padding:10px 2px}.section-heading{align-items:flex-start;flex-wrap:wrap}.section-heading h2{font-size:15px}.draw-config select{font-size:12px}.odds-row{grid-template-columns:1.5fr 1fr 1fr 1fr;gap:8px;padding:13px 3px;font-size:11px}.odds-row .compact{min-height:36px;padding:7px 10px;font-size:11px}.member-row{gap:10px;flex-wrap:wrap}.member-row>div{width:100%;font-size:12px}.member-row b{margin-right:auto;font-size:13px}.audit-row{grid-template-columns:1fr;gap:7px;font-size:11px}.points-form{flex-direction:column;align-items:stretch}.modal{padding:21px}.modal-title h2{font-size:18px}.modal label{font-size:12px}.modal .primary{white-space:normal}.error-banner{margin:10px;font-size:12px}.login-box{padding:27px}.toast{width:max-content;max-width:calc(100% - 24px);font-size:12px;padding:12px 18px}.sign-in-panel{padding:45px 18px}.game-shell .site-footer{padding-top:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.hero-banner{position:relative}.hero-slides{position:relative;aspect-ratio:2280/610}.hero-slides img{position:absolute;inset:0;opacity:0;transition:opacity .5s ease;pointer-events:none}.hero-slides img.active{opacity:1}.hero-prev,.hero-next{position:absolute;top:calc(50% - 22px);height:44px;width:36px;border-radius:5px;background:#ffffffb3;color:#395776;font-size:30px;opacity:.7}.hero-prev{left:12px}.hero-next{right:12px}.hero-dots{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:2px}.hero-dots button{width:42px;height:30px;display:grid;place-items:center}.hero-dots span{width:23px;height:4px;border-radius:3px;background:#ffffffbd;box-shadow:0 1px 3px #39577666}.hero-dots button[aria-pressed=true] span{background:#149fed}.hero-pause{position:absolute;bottom:15px;right:15px;width:30px;height:30px;border-radius:50%;background:#ffffffb3;color:#395776;font-size:12px}@media(max-width:767px){.hero-prev,.hero-next{width:28px;height:36px;top:calc(50% - 18px);font-size:22px}.hero-prev{left:5px}.hero-next{right:5px}.hero-dots{bottom:2px}.hero-dots button{width:32px;height:24px}.hero-dots span{width:18px;height:3px}.hero-pause{bottom:4px;right:5px;width:24px;height:24px;font-size:10px}}

.brand .platform-logo{width:161px;height:40px;object-fit:fill;flex-shrink:0}.brand .educational-brand-notice{font-size:13px;letter-spacing:0;font-weight:600;color:#855015;background:#fff4df;border:1px solid #eccd93;border-radius:5px;padding:8px 10px;line-height:1.4;white-space:normal}.login-box .brand{flex-wrap:wrap}@media(max-width:767px){.header-inner{height:auto;min-height:76px;padding-top:10px;padding-bottom:10px;gap:8px;flex-wrap:wrap}.header-inner .brand{gap:7px;align-items:center;flex:1}.brand .platform-logo{width:129px;height:32px}.brand .educational-brand-notice{font-size:11px;padding:6px 7px;max-width:146px}.header-actions{gap:8px}.header-actions .language{font-size:11px}.header-actions .compact{padding:7px 10px}.header-inner .brand{min-width:255px}}

.member-summary{display:flex;align-items:center;gap:22px;padding:28px;background:linear-gradient(120deg,#d1eaff,#eef7ff);border-radius:12px;color:#365b89}.member-avatar{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#199ede}.member-summary h2{margin:9px 0}.member-id{display:block;font-size:12px;overflow-wrap:anywhere}.member-summary p{font-size:17px}.member-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.member-menu a{display:flex;align-items:center;gap:16px;background:white;padding:25px;border:1px solid var(--line);border-radius:10px}.member-menu a>span{display:grid;place-items:center;width:58px;height:58px;background:#eaf6ff;color:#199ee7;border-radius:13px}.member-menu a>svg{margin-left:auto;color:#94a4b4}.name-settings{display:flex;gap:20px;align-items:end;flex-wrap:wrap}.name-settings label{flex:1}.wallet-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.wallet-actions>*{display:flex;justify-content:center;align-items:center;gap:10px;padding:24px;background:white;border:1px solid var(--line);border-radius:9px;color:var(--blue-dark)}.account-form{width:100%;max-width:none;margin:20px 0}.account-form label,.account-form p{margin:18px 0}.account-form form{display:grid;gap:8px}.fund-row{display:flex;gap:20px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.fund-row>div:first-child{flex:1;min-width:140px}.fund-row small,.fund-row code{display:block;color:var(--muted);font-size:11px;margin-top:7px}.fund-review{display:flex;gap:8px}.login-box form{display:grid;gap:16px}.login-box h1{margin:24px 0}.login-box>.muted{margin-top:22px}
@media(max-width:767px){.member-summary{padding:20px;gap:14px}.member-avatar{width:55px;height:55px;flex-shrink:0}.member-menu{grid-template-columns:1fr 1fr;gap:10px}.member-menu a{padding:17px 12px;flex-direction:column;text-align:center;gap:9px;font-size:12px}.member-menu a>svg{display:none}.wallet-actions{grid-template-columns:1fr 1fr}.wallet-actions>*{padding:17px;font-size:12px}.name-settings{display:grid;gap:15px}.fund-row{font-size:12px;gap:12px}.header-inner .brand{min-width:0;flex-basis:100%}.header-actions{flex-wrap:wrap}.member-summary h2{font-size:16px}}

.captcha-row{display:flex;align-items:center;gap:10px}.captcha-row input{width:110px;flex:1;min-width:0;letter-spacing:3px}.captcha-image{width:180px;height:60px;padding:0;flex-shrink:0;border:1px solid #d8e3ed;border-radius:6px;overflow:hidden;color:#53718b;background:#edf5fa}.captcha-image img{display:block;width:100%;height:100%}.captcha-row+small{line-height:1.5;color:var(--muted)}@media(max-width:400px){.captcha-row{gap:8px}.captcha-image{width:150px;height:50px}.captcha-row input{letter-spacing:2px}}
.login-box form label{margin:0}.login-box form p:empty{display:none}.login-box form{gap:14px}.login-box form small{font-size:11px;color:var(--muted);line-height:1.5}.login-box form .back-link{margin-top:0}.login-box form .primary{margin-top:2px}

/* Mobile experience: dedicated lobby and wallet components; desktop stays intact. */
.mobile-lobby,.mobile-wallet,.mobile-page-top{display:none}
@media(max-width:767px){
.spark-app:not(.admin-app){background:#edf2f8;padding-bottom:calc(74px + env(safe-area-inset-bottom))}
.spark-app:not(.admin-app) .site-header{border:0;background:white}.spark-app:not(.admin-app) .header-inner{padding:10px 14px;min-height:58px;height:auto;flex-wrap:nowrap;gap:8px}.spark-app:not(.admin-app) .header-inner .brand{flex-basis:auto;flex:1;gap:8px}.spark-app:not(.admin-app) .platform-logo{width:132px;height:33px}.spark-app:not(.admin-app) .educational-brand-notice{padding:4px 6px;font-size:10px;max-width:127px}.spark-app:not(.admin-app) .header-actions{margin-left:0}.spark-app:not(.admin-app) .header-actions>*{display:none}.spark-app:not(.admin-app) .header-actions>.language{display:flex;min-height:36px;font-size:10px}.spark-app:not(.admin-app) .header-actions>.language svg{display:none}
.spark-app:not(.admin-app) .subnav{display:none}.spark-app:not(.admin-app) .main-shell{padding:0 14px;max-width:none}.spark-app:not(.admin-app) .page-heading{display:none}.spark-app:not(.admin-app) .mobile-page-top{display:flex;align-items:center;gap:14px;min-height:52px;font-size:17px}.mobile-page-top:empty{display:none!important}.mobile-page-top>a{display:grid;place-items:center;min-width:42px;min-height:44px;margin-left:-10px;color:#547294}
.desktop-home,.desktop-wallet{display:none}.mobile-lobby,.mobile-wallet{display:block}.mobile-lobby{padding-top:8px}.mobile-hero{position:relative;border-radius:12px;overflow:hidden;background:#e5f3ff;touch-action:pan-y}.mobile-hero>img{width:100%;display:block;aspect-ratio:2.7;object-fit:cover}.mobile-hero-dots{position:absolute;bottom:2px;left:0;right:0;display:flex;justify-content:center}.mobile-hero-dots button{height:28px;width:30px;display:grid;place-items:center;padding:0}.mobile-hero-dots span{height:7px;width:7px;border-radius:50%;background:#fff;box-shadow:0 0 2px #1b5b91}.mobile-hero-dots .active span{background:#129fe8;width:17px;border-radius:6px}
.mobile-account-card{background:white;border:1px solid #e1e7f0;border-radius:12px;box-shadow:0 3px 10px #30435b09;margin-top:10px;padding:14px 12px;display:flex;align-items:center;gap:8px}.mobile-account-info{flex:1;min-width:0;color:#43638b;line-height:1.7;font-size:13px}.mobile-account-info>div{display:flex;align-items:center;gap:10px}.mobile-account-info a{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:115px}.mobile-account-info button{padding:4px;color:#90a4bd;display:grid;place-items:center}.mobile-account-info>strong{display:block;font-size:14px}.mobile-shortcuts{display:flex;gap:12px;align-items:center}.mobile-shortcuts>*{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:37px;min-height:54px;font-size:11px;color:#4672a0;padding:0}.mobile-shortcuts svg{color:#199ff0}
.mobile-game-tools{display:flex;align-items:center;gap:8px;margin:12px 0 10px}.mobile-game-tools>label{display:flex;flex-direction:row;align-items:center;gap:8px;flex:1;background:white;padding:0 11px;border-radius:8px;color:#8b9cb2}.mobile-game-tools input{border:0;padding:9px 0;background:transparent;min-height:42px;width:100%;font-size:12px}.mobile-game-tools>button{min-width:44px;min-height:42px;background:#fff;border-radius:8px;color:#7c91aa}.mobile-game-tools>button.active{color:#159fe9}.mobile-game-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mobile-game-tile{background:#dff0ff;border-radius:8px;min-height:103px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px 5px 10px;gap:8px;text-align:center;color:#426490}.mobile-game-tile>img{width:54px;height:54px;object-fit:contain}.mobile-game-tile strong{font-size:12px;line-height:1.4;overflow-wrap:anywhere}.mobile-empty{text-align:center;color:#8495aa;padding:35px 15px}
.spark-app:not(.admin-app) .mobile-bottom{height:auto;min-height:64px;padding:6px 10px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e4eaf2;box-shadow:0 -2px 10px #2d456907;display:grid;grid-template-columns:repeat(4,1fr);z-index:20}.mobile-bottom a{min-height:48px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px}.mobile-bottom a.active{color:#169fed}.mobile-bottom a.active svg{stroke-width:2.5}
.spark-app:not(.admin-app) .site-footer{padding:18px 6px 12px;font-size:10px;gap:7px}.spark-app:not(.admin-app) .site-footer>strong,.spark-app:not(.admin-app) .site-footer>span:last-child{display:none}
.mobile-wallet-balance{position:relative;background:#dceeff;border:1px solid #cbdff3;padding:19px 18px;border-radius:12px;color:#365f87;margin-bottom:14px}.mobile-wallet-balance>small{display:block;font-size:12px}.mobile-wallet-balance>strong{display:block;font-size:29px;line-height:1.6;font-variant-numeric:tabular-nums}.mobile-wallet-balance>a{position:absolute;right:15px;top:22px;display:flex;align-items:center;font-size:12px;min-height:40px}.mobile-wallet-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:5px;background:#e1e9f2;border-radius:10px;margin-bottom:14px}.mobile-wallet-tabs button{min-height:43px;border-radius:7px;color:#6c809b;font-size:14px}.mobile-wallet-tabs button.active{background:#fff;box-shadow:0 2px 6px #24466312;color:#168ed2;font-weight:700}.mobile-wallet-form{background:white;padding:18px 16px;border-radius:12px}.mobile-wallet-form>label{font-size:13px;color:#49617b;margin:18px 0 10px}.mobile-wallet-form>label:first-child{margin-top:0}.mobile-type-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.mobile-type-options button{min-height:44px;font-size:12px;border-radius:7px;border:1px solid #e1e8f0;background:#f7f9fc}.mobile-type-options button.active{background:#e5f4ff;color:#148acd;border-color:#48b5ee;font-weight:700}.mobile-field-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 0 10px;font-size:13px;color:#49617b}.mobile-field-heading a{display:flex;gap:4px;align-items:center;min-height:32px;color:#158fd2}.mobile-bind-empty{display:flex;align-items:center;justify-content:center;gap:7px;border:1px dashed #bbd3e8;border-radius:8px;padding:15px 8px;min-height:58px;color:#339bd1;font-size:12px;background:#f9fcff}.mobile-account-options{border:0;padding:0;margin:0;display:grid;gap:8px}.mobile-account-options label{border:1px solid #dfe7f0;border-radius:8px;padding:12px;display:flex;flex-direction:row;gap:10px;align-items:center;font-size:12px;min-height:60px}.mobile-account-options label.selected{background:#f0f9ff;border-color:#55b4e9}.mobile-account-options input{min-height:20px;width:18px}.mobile-account-options small{display:block;margin-top:5px;color:#8898aa}.mobile-amount-input{display:flex;align-items:center;border-bottom:1px solid #dce5ef;padding:2px 0 9px;gap:10px}.mobile-amount-input input{font-size:27px;letter-spacing:.5px;border:0;padding:5px 0;min-height:50px;width:100%;background:transparent}.mobile-amount-input span{font-size:12px;color:#7d92aa;white-space:nowrap}.mobile-amount-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.mobile-amount-presets button{min-height:40px;border:1px solid #e0e7ef;border-radius:7px;font-size:12px}.mobile-amount-presets button.active{background:#e6f5ff;color:#169ada;border-color:#68bdee}.mobile-wallet-form>input{width:100%;min-height:48px}.mobile-security-link{display:flex;align-items:center;gap:6px;font-size:12px;color:#188dcc;min-height:42px;margin-top:9px}.mobile-wallet-note{color:#8c9baf;font-size:11px;line-height:1.6;margin:18px 0}.mobile-wallet-submit{width:100%;min-height:48px;border-radius:9px}.mobile-record-filters{display:flex;gap:9px;margin:10px 0}.mobile-record-filters button{padding:8px 15px;border-radius:18px;background:white;font-size:12px;min-height:36px}.mobile-record-filters button.active{background:#ddecfb;color:#148cd4}.mobile-fund{background:#fff;border-radius:10px;margin:9px 0;padding:15px;font-size:13px}.mobile-fund>div{display:flex;justify-content:space-between;align-items:center;gap:10px}.mobile-fund>div+div{margin-top:10px}.mobile-fund time,.mobile-fund>small{font-size:10px;color:#8c9caf}.mobile-feedback{font-size:12px;color:#298c70;margin:14px 4px}.mobile-feedback:empty{display:none}
.spark-app:not(.admin-app) .member-summary{background:#dceeff;padding:19px 16px;border-radius:12px;margin-bottom:14px}.member-summary .member-avatar{width:52px;height:52px}.member-summary .member-id{font-size:10px}.member-summary h2{margin:7px 0}.member-summary p{font-size:14px}.member-menu{display:block;background:#fff;border-radius:12px;padding:0 14px;margin:0 0 14px}.member-menu a{flex-direction:row;text-align:left;padding:13px 0;min-height:60px;border:0;border-bottom:1px solid #edf1f6;border-radius:0;font-size:13px;gap:14px}.member-menu a:last-child{border:0}.member-menu a>span{width:33px;height:33px;background:transparent}.member-menu a>span>svg{width:24px;height:24px}.member-menu a>svg{display:block;margin-left:auto}.name-settings{gap:12px;padding:17px;border-radius:12px}.name-settings h2{font-size:14px}.name-settings label{font-size:12px}.name-settings .primary{min-height:44px}.spark-app:not(.admin-app) .account-form{margin:0 0 14px;padding:18px 16px;border-radius:12px}.spark-app:not(.admin-app) .account-form input,.spark-app:not(.admin-app) .account-form select{min-height:48px;width:100%}.spark-app:not(.admin-app) .account-form>.primary{width:100%;min-height:48px}.spark-app:not(.admin-app) .account-form label{font-size:13px}.spark-app:not(.admin-app) .sign-in-panel{padding:35px 18px;margin:12px 0}.spark-app:not(.admin-app) .game-shell{padding-bottom:130px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
}

@media(max-width:767px){.mobile-hero>img{transform:scale(1.1)}.mobile-hero-dots{bottom:-4px}.mobile-hero-dots button{width:44px;height:36px}.mobile-hero-pause{position:absolute;right:4px;bottom:0;width:36px;height:36px;display:grid;place-items:center;color:#5c7a9b}.mobile-hero-pause>svg{background:#ffffffb8;border-radius:50%;box-sizing:content-box;padding:5px}}
@media(max-width:767px){.spark-app:not(.admin-app) .platform-logo{width:clamp(140px,38vw,190px);height:auto;aspect-ratio:161/40}.mobile-game-tile strong{font-size:13px}.mobile-account-info{font-size:14px}.mobile-account-info>strong{font-size:15px}.mobile-shortcuts>*{font-size:12px}.mobile-hero-dots button,.mobile-hero-pause{height:44px}.mobile-game-tile{min-height:106px}}
@media(max-width:359px){.mobile-account-card{flex-direction:column;align-items:stretch}.mobile-account-info{display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px}.mobile-account-info a{max-width:125px}.mobile-account-info>strong{white-space:nowrap;font-size:13px}.mobile-shortcuts{border-top:1px solid #edf1f6;padding-top:8px;justify-content:space-around}.mobile-shortcuts>*{min-width:64px;min-height:48px}}
@media(max-width:767px){.mobile-account-info{font-size:clamp(14px,3.8vw,19px)}.mobile-account-info>strong{font-size:clamp(15px,4vw,20px)}.mobile-account-info a{max-width:clamp(115px,25vw,150px)}.mobile-shortcuts svg{width:clamp(28px,8vw,42px);height:clamp(28px,8vw,42px)}.mobile-shortcuts>*{font-size:clamp(12px,3.4vw,17px)}.mobile-game-tile>img{width:clamp(54px,12vw,66px);height:clamp(54px,12vw,66px)}.mobile-game-tile strong{font-size:clamp(13px,3.6vw,18px)}.mobile-game-tile{min-height:clamp(106px,22vw,118px)}.mobile-account-card{padding:clamp(14px,3.5vw,18px) 12px}}@media(max-width:359px){.mobile-account-info>strong{font-size:13px}}
@media(max-width:767px){.game-sidebar,.position-tabs{scrollbar-width:none;scroll-snap-type:x proximity}.game-sidebar::-webkit-scrollbar,.position-tabs::-webkit-scrollbar{display:none}.game-sidebar>a,.position-tabs>button{scroll-snap-align:start}.spark-app:not(.admin-app) input,.spark-app:not(.admin-app) select,.login-box input{font-size:16px}.spark-app:not(.admin-app) .mobile-amount-input input{font-size:27px}}
@media(max-width:767px){.mobile-hero-pause{width:44px}.mobile-shortcuts>*{min-width:44px}.mobile-account-info button{min-width:44px;min-height:36px}}
.language-picker{border:1px solid #e7edf5;border-radius:24px;width:min(400px,calc(100vw - 40px));padding:26px;box-sizing:border-box;color:#223550;background:#fff;box-shadow:0 24px 90px #172d5540}.language-picker::backdrop{background:#15274170;backdrop-filter:blur(4px)}.language-picker-heading{display:flex;align-items:center;justify-content:space-between}.language-picker-emblem{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#edf7ff;color:#169fe5}.language-picker-close{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#f4f6f9;color:#73829a}.language-picker h2{font-size:23px;margin:20px 0 7px;letter-spacing:-.4px}.language-picker>p{font-size:14px;color:#7b889b;margin:0 0 24px;line-height:1.6}.language-picker-options{display:grid;gap:12px}.language-picker-options>button{display:flex;align-items:center;gap:15px;width:100%;text-align:left;padding:16px;border:1px solid #e4eaf2;border-radius:15px;background:#fff;min-height:78px;color:#293e59;transition:background .15s,border-color .15s}.language-picker-options>button:hover{background:#f6faff;border-color:#addbfa}.language-picker-options>button.selected{background:#eff8ff;border-color:#39a8ec}.language-flag{font-family:'Segoe UI Emoji','Apple Color Emoji','Noto Color Emoji',sans-serif;font-size:32px;line-height:1;flex-shrink:0}.language-option-text{display:grid;gap:5px;flex:1}.language-option-text strong{font-size:16px;font-weight:600}.language-option-text small{font-size:12px;color:#8390a3}.language-option-check{display:grid;place-items:center;width:24px;height:24px;border:1px solid #dce4ef;border-radius:50%;color:#fff}.selected .language-option-check{background:#159fe4;border-color:#159fe4}.language-picker button:focus-visible{outline:3px solid #8ecff7;outline-offset:3px}@media(max-width:767px){.language-picker{padding:22px;border-radius:22px}.language-picker h2{font-size:22px}}
.language-flag{width:44px;height:30px;object-fit:cover;border-radius:5px;box-shadow:0 0 0 1px #0000000d}
/* Independent lottery games: compact HO-inspired panels, without trend modules. */
.lottery-layout{display:grid;grid-template-columns:190px minmax(0,1fr) 320px;gap:16px;align-items:start}.lottery-nav{background:#fff;border:1px solid #e6ecf4;border-radius:12px;padding:12px 8px}.lottery-back{display:flex;align-items:center;gap:7px;color:#7890aa;padding:8px}.lottery-nav h3{font-size:14px;margin:15px 10px 8px}.lottery-nav>a:not(.lottery-back){display:flex;gap:9px;align-items:center;padding:12px 9px;border-radius:8px;margin:3px 0;font-size:13px}.lottery-nav a>img{width:30px;height:30px;object-fit:contain}.lottery-nav a>span{flex:1}.lottery-nav a small{display:block;font-size:10px;color:#8a9bb0;margin-top:4px}.lottery-nav a.active{background:#eaf6ff;color:#099df0}.lottery-main{min-width:0;background:#fff;border:1px solid #e4eaf3;border-radius:14px;overflow:hidden}.lottery-game-header{background:linear-gradient(120deg,#edf3ff,#e1e9ff 65%,#edf7ff);padding:22px 20px 16px;display:grid;grid-template-columns:1fr auto;gap:16px}.lottery-game-title{display:flex;align-items:center;gap:12px}.lottery-game-title>img{width:56px;height:56px;object-fit:contain}.lottery-game-title h1{font-size:22px;margin:0 0 8px;line-height:1.25}.lottery-info-trigger{display:flex;align-items:center;gap:5px;background:#fff9;color:#5185b6;border:1px solid #a9c4e74f;border-radius:5px;font-size:11px;padding:5px 9px}.lottery-round-clock{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px}.lottery-round-clock>span{font-size:11px;color:#7a8ba6}.lottery-round-clock>strong{background:#3c4260;color:#fff;display:flex;align-items:center;gap:10px;font:600 28px/1.2 ui-monospace,Consolas,monospace;letter-spacing:2px;padding:8px 13px;border-radius:6px;min-width:136px;justify-content:center}.lottery-round-clock>small{font-size:11px}.lottery-last-draw{grid-column:1/-1;border-top:1px solid #c4d5ed88;padding-top:12px;display:flex;align-items:center;gap:12px;min-height:36px}.lottery-last-draw>span{font-size:11px;color:#6d819c;min-width:95px}.lottery-balls{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.lottery-ball-unit{display:inline-flex;align-items:center;gap:4px;position:relative;flex-wrap:wrap;justify-content:center}.lottery-ball-unit>small{display:block;width:100%;text-align:center;font-size:10px;color:#6e839e}.lottery-ball{display:grid;place-items:center;box-sizing:border-box;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:white;border:2px solid #28aceb;color:#25354d;font-size:14px;font-weight:600;box-shadow:0 2px 3px #1d39690d}.lottery-ball.wave-red{border-color:#ee5a72}.lottery-ball.wave-blue{border-color:#299cec}.lottery-ball.wave-green{border-color:#32b99a}.ball-separator{font-size:16px;color:#8290a6;font-weight:400}.lottery-balls.compact{gap:4px}.lottery-balls.compact .lottery-ball{width:23px;height:23px;border-width:1px;font-size:10px}.lottery-balls.kind-pk10 .lottery-ball{border-radius:5px}.lottery-balls.kind-keno .lottery-ball{width:24px;height:24px;font-size:10px}.die{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;width:34px;height:34px;background:#fff;border:1px solid #d8dfea;box-shadow:0 2px 4px #253d6a15;border-radius:6px;padding:5px;box-sizing:border-box}.die>i{border-radius:50%;background:transparent}.die>i.pip{background:#4c5b72}.die>i.pip:only-child{background:#e85252}.compact .die{width:25px;height:25px;padding:4px;gap:2px}.lottery-section-tabs{display:flex;gap:6px;padding:0 14px;border-bottom:1px solid #e4ebf4;overflow:auto;scrollbar-width:none}.lottery-section-tabs button{white-space:nowrap;min-height:50px;padding:10px 16px;color:#73829b;border-bottom:3px solid transparent;font-size:14px}.lottery-section-tabs button.active{color:#0e9ee8;border-bottom-color:#12a6f0;font-weight:600}.lottery-market-body{padding:18px;min-height:320px}.lottery-market-helper{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#96a3b5;font-size:11px;margin-bottom:16px}.lottery-market-helper button{display:flex;align-items:center;gap:5px;color:#6f8dab;font-size:12px}.lottery-position-tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}.lottery-position-tabs button{padding:9px 12px;border:1px solid #e0e7ef;border-radius:5px;min-width:58px;color:#8697ad;font-size:12px;background:#fff}.lottery-position-tabs button.active{background:#eef8ff;border-color:#54b6e9;color:#119edf}.lottery-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(83px,1fr));gap:10px}.lottery-options>button{position:relative;display:flex;align-items:center;flex-direction:column;gap:9px;justify-content:center;min-height:83px;border:1px solid #e6ebf1;border-radius:8px;background:#fff;transition:border-color .15s,background .15s;padding:12px 5px;color:#425976}.lottery-options>button:hover{border-color:#9bceee;background:#f7fbff}.lottery-options>button.selected{border-color:#25a4e9;background:#edf8ff;box-shadow:inset 0 0 0 1px #25a4e9}.lottery-options strong{font-size:17px;font-weight:600}.lottery-options>button>span{font-size:12px;color:#269cdb;font-variant-numeric:tabular-nums}.lottery-options>button>svg{position:absolute;top:5px;right:5px;color:#159edb}.lottery-options .option-wave-red strong{color:#e85871}.lottery-options .option-wave-blue strong{color:#259bdd}.lottery-options .option-wave-green strong{color:#28ae8e}.lottery-options.zodiac-options{grid-template-columns:repeat(3,minmax(0,1fr))}.zodiac-options>button{min-height:102px}.zodiac-numbers{font-size:10px;color:#94a1b2;line-height:1.5}.lottery-zodiac-year{color:#7c8da5;font-size:12px}.lottery-stake-bar{padding:18px;background:#f8fbff;border-top:1px solid #e9eef5}.lottery-stake-summary{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;margin-bottom:14px;color:#6e829d}.lottery-stake-summary>span{display:flex;gap:5px;align-items:center}.lottery-stake-summary>strong{color:#354d6d}.lottery-amount-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.lottery-amount-row>label{font-size:11px;color:#7c8da4;width:100px}.lottery-amount-row input{width:100%;height:42px;background:#fff;margin-top:5px;border:1px solid #dae5f2;border-radius:6px;padding:8px 10px;box-sizing:border-box}.lottery-amount-presets{display:flex;gap:4px}.lottery-amount-presets button{height:42px;min-width:34px;border:1px solid #e3eaf3;border-radius:5px;font-size:12px;background:#fff;color:#7e8fa5}.lottery-amount-presets button.active{color:#fff;background:#149fe7;border-color:#149fe7}.lottery-place{margin-left:auto;min-height:44px;min-width:110px;font-size:14px}.lottery-success{display:flex;align-items:center;gap:7px;font-size:12px;color:#249f7d}.lottery-history{background:#fff;border:1px solid #e4eaf3;border-radius:12px;overflow:hidden}.lottery-history h2{font-size:15px;display:flex;gap:8px;align-items:center;color:#179fdf;padding:17px 15px;margin:0;border-bottom:2px solid #eaf2fa}.lottery-history-head{display:grid;grid-template-columns:62px 1fr;gap:12px;padding:11px 14px;background:#f8fbff;font-size:11px;color:#8797ae}.lottery-history-row{display:grid;grid-template-columns:62px 1fr;gap:12px;align-items:center;padding:13px 14px;border-bottom:1px solid #eef2f7}.lottery-history-row>div:first-child{display:grid;gap:5px;font-size:11px}.lottery-history-row b{color:#3e88c1;font-weight:600}.lottery-history-row time{font-size:10px;color:#a0aabb}.lottery-history-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;font-size:11px;color:#94a0b1}.lottery-history-pager button{padding:7px;border-radius:5px;border:1px solid #e4eaf2;color:#6685a6}.lottery-history-pager button:disabled{opacity:.4;cursor:default}.lottery-history-note{display:block;font-size:10px;line-height:1.6;padding:0 14px 14px;color:#a1abba}.lottery-history-empty{text-align:center;padding:40px 10px;color:#a0adbf;font-size:13px}.lottery-dialog{width:min(570px,calc(100vw - 30px));max-height:85vh;overflow:auto;border:1px solid #e4ecf5;border-radius:18px;padding:25px;box-sizing:border-box;color:#3f5674;box-shadow:0 25px 70px #172d5540}.lottery-dialog::backdrop{background:#1c31455c;backdrop-filter:blur(3px)}.lottery-dialog-title{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e9eef5;padding-bottom:14px}.lottery-dialog-title h2{font-size:19px;margin:0}.lottery-dialog-title button{display:grid;place-items:center;min-width:40px;min-height:40px;background:#f5f8fc;border-radius:50%;color:#8394aa}.lottery-dialog p{font-size:14px;line-height:1.9;color:#7f8ca1}.lottery-dialog h3{font-size:18px}.lottery-dialog h4{font-size:14px;margin-bottom:8px}.lottery-info-period{display:flex;gap:8px;align-items:center;background:#f1f8ff;padding:12px;border-radius:8px;color:#278dc9;font-size:13px}.lottery-dialog .lottery-info-disclosure{padding-top:12px;border-top:1px solid #e9eef5;font-size:12px}.lottery-zodiac-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;font-size:12px}.lottery-zodiac-table>div{background:#f6f9fd;border-radius:6px;padding:10px;display:flex;gap:8px;align-items:center}.lottery-zodiac-table b{color:#4c749a}.lottery-zodiac-table span{color:#8899af;font-size:11px}.lottery-confirm-details{display:grid;grid-template-columns:110px 1fr;gap:14px;padding:18px;background:#f5f9fe;border-radius:10px;font-size:14px}.lottery-confirm-details>span{color:#8a9aae}.lottery-confirm-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:20px}.lottery-result-reveal{animation:lotteryReveal .45s ease-out}.state.refunded{background:#eaf4fa;color:#5484a1}.lottery-admin-filters{display:flex;gap:12px;margin:18px 0}.lottery-admin-filters>label{display:flex;gap:8px;align-items:center;flex:1}.lottery-admin-filters input{width:100%}.lottery-odds-editor{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:18px;background:#f0f7fe;border-radius:10px;margin-bottom:20px}.lottery-odds-editor>strong{width:100%;font-size:14px}.lottery-odds-editor label{max-width:170px;font-size:12px}.lottery-admin-constraint{display:flex;gap:8px;align-items:center;color:#6b829f;font-size:14px;line-height:1.8;background:#f3f8fe;border-radius:8px;padding:14px}.lottery-draw-inputs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:22px 0}.lottery-draw-inputs label{font-size:12px;color:#7b90aa;min-width:0}.lottery-draw-inputs input{text-align:center;width:100%;box-sizing:border-box}.lottery-draw-actions{display:flex;gap:12px;justify-content:flex-end}.lottery-derived-note{padding:25px;background:#f3f9fe;border-radius:10px}.lottery-derived-note h3{font-size:18px}.lottery-admin-zodiac{margin-top:30px;border-top:1px solid #e5edf7;padding-top:20px}.lottery-year-form{display:flex;gap:12px;align-items:flex-end;margin-top:18px}.lottery-year-form>label{max-width:160px;font-size:12px}.lottery-layout button:focus-visible,.lottery-dialog button:focus-visible{outline:3px solid #8ccfee;outline-offset:2px}
@keyframes lotteryReveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1200px){.main-container:has(.lottery-layout){max-width:1600px}}
@media(max-width:1199px){.lottery-layout{grid-template-columns:150px minmax(0,1fr)}.lottery-history{grid-column:2}.lottery-nav>a:not(.lottery-back){padding:10px 6px;font-size:11px}.lottery-nav a>img{width:25px;height:25px}.lottery-options{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}}
@media(max-width:767px){.lottery-layout{display:block;margin:0 -2px}.lottery-nav{display:none}.lottery-main{border-radius:12px}.lottery-game-header{padding:16px 12px;gap:12px;grid-template-columns:minmax(0,1fr) auto}.lottery-game-title{gap:8px}.lottery-game-title>img{width:38px;height:38px}.lottery-game-title h1{font-size:16px;margin-bottom:7px}.lottery-round-clock>strong{font-size:22px;padding:7px 9px;min-width:98px;letter-spacing:1px;gap:6px}.lottery-round-clock>span,.lottery-round-clock>small{font-size:10px}.lottery-last-draw{display:block;min-height:52px}.lottery-last-draw>span{display:block;margin-bottom:10px}.lottery-balls{gap:5px}.lottery-ball{width:27px;height:27px;font-size:12px}.lottery-balls.kind-pk10{gap:4px}.lottery-balls.kind-pk10 .lottery-ball{width:24px;height:26px;font-size:11px}.lottery-section-tabs{padding:0 7px;gap:0}.lottery-section-tabs button{padding:10px 13px;font-size:13px;min-height:46px}.lottery-market-body{padding:13px;min-height:260px}.lottery-market-helper>span{display:none}.lottery-position-tabs{flex-wrap:nowrap;overflow:auto;scrollbar-width:none;padding:2px 0 6px;margin-bottom:12px}.lottery-position-tabs button{min-width:62px;min-height:42px;white-space:nowrap;font-size:12px}.lottery-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.lottery-options>button{min-height:76px;padding:10px 3px;gap:8px}.lottery-options strong{font-size:16px}.lottery-options>button>span{font-size:11px}.lottery-options.zodiac-options{grid-template-columns:repeat(3,minmax(0,1fr))}.zodiac-options>button{min-height:99px}.zodiac-numbers{font-size:9px}.lottery-stake-bar{padding:14px 12px}.lottery-stake-summary{font-size:11px;gap:9px}.lottery-amount-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.lottery-amount-row>label{width:auto}.lottery-amount-presets{grid-column:1/-1;grid-row:2;justify-content:space-between}.lottery-amount-presets button{flex:1;min-height:42px}.lottery-place{margin:0;min-width:100px;min-height:44px}.lottery-history{margin-top:16px}.lottery-history h2{padding:15px}.lottery-history-row{grid-template-columns:62px 1fr}.lottery-history-row .compact .lottery-ball{width:22px;height:22px;font-size:10px}.lottery-dialog{padding:18px;border-radius:16px}.lottery-dialog p{font-size:13px}.lottery-info-period{font-size:11px}.lottery-zodiac-table{grid-template-columns:1fr 1fr;gap:6px}.lottery-zodiac-table>div{padding:8px;gap:5px;flex-wrap:wrap}.lottery-zodiac-table span{font-size:10px}.lottery-draw-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}.lottery-admin-filters,.lottery-year-form{flex-wrap:wrap}.lottery-admin-filters label{width:100%}.lottery-draw-actions{flex-wrap:wrap}.lottery-confirm-details{grid-template-columns:80px 1fr;font-size:13px}}
@media(prefers-reduced-motion:reduce){.lottery-result-reveal{animation:none}.lottery-options>button{transition:none}}
@media(max-width:767px){.lottery-layout{padding-bottom:170px}.lottery-market-body{padding-bottom:180px}.lottery-stake-bar{position:fixed;z-index:25;bottom:0;left:0;right:0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#f8fbfff7;backdrop-filter:blur(10px);border-top:1px solid #dce8f4;box-shadow:0 -5px 18px #19365a09}.lottery-stake-summary{margin-bottom:7px}.lottery-amount-row{gap:7px}.lottery-amount-row input{height:40px}.lottery-amount-presets button{height:36px;min-height:36px}.lottery-amount-row>label>span{display:none}.lottery-stake-bar .lottery-success{margin:7px 0 0}}

/* Result reels use display-only digits; confirmed numbers remain server-owned. */
.lottery-live-result{width:100%;min-height:48px}.lottery-result-caption{font-size:11px;color:#6d819c;margin-bottom:10px}.lottery-live-result.drawing .lottery-result-caption{color:#099fe5}.lottery-reel-window{display:block;width:100%;height:26px;overflow:hidden;text-align:center}.lottery-reel-strip{display:block;animation:lotteryRoll .55s linear infinite}.lottery-reel-strip>span{display:grid;place-items:center;height:26px}.is-rolling .lottery-ball{box-shadow:0 0 10px #36a9ee40;background:#f5fbff!important;color:#2f709e!important}.is-rolling:nth-child(2n) .lottery-reel-strip{animation-duration:.43s}.is-rolling:nth-child(3n) .lottery-reel-strip{animation-duration:.63s}.is-rolling .die{animation:lotteryDice .22s linear infinite}.lottery-draw-announcement{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@keyframes lotteryRoll{from{transform:translateY(0)}to{transform:translateY(-260px)}}
@keyframes lotteryDice{0%{transform:rotate(-10deg) translateY(0)}50%{transform:rotate(12deg) translateY(-3px)}100%{transform:rotate(-10deg) translateY(0)}}
@media(prefers-reduced-motion:reduce){.lottery-reel-strip,.is-rolling .die{animation:none!important}}

.lottery-replay{font-size:10px;color:#6a9aba;border:1px solid #b7d8ed;border-radius:4px;padding:4px 7px;margin-top:8px;background:#fff8}

/* Compact HO-style game header: identity, current round/clock, last result. */
.lottery-game-header{grid-template-columns:minmax(150px,.9fr) 150px minmax(250px,1.4fr);gap:18px;align-items:center;padding:22px 20px}.lottery-game-title h1{font-size:19px}.lottery-round-clock{align-items:center;text-align:center}.lottery-round-clock>strong{font-size:27px;min-width:140px}.lottery-last-draw{grid-column:auto;border-top:0;padding-top:0;min-width:0;align-self:center}.lottery-result-caption{text-align:right;margin-bottom:12px}.lottery-live-result .lottery-balls{justify-content:flex-end}.lottery-live-result>.lottery-replay{display:block;margin-left:auto}.lottery-countdown-track{width:140px;height:4px;border-radius:4px;background:#7765ad;overflow:hidden}.lottery-countdown-track>i{height:100%;display:block;background:#26d5e9;border-radius:4px;transition:width 1s linear}.lottery-game-header .kind-pk10 .lottery-ball{border-radius:50%;background:#fff!important;color:#344357!important;border-width:2px;width:30px;height:30px}.lottery-game-header .kind-pk10{gap:5px}.lottery-last-draw .lottery-ball-unit{flex-shrink:0}
@media(min-width:1200px) and (max-width:1450px){.lottery-game-header{grid-template-columns:minmax(140px,1fr) 145px;gap:14px}.lottery-last-draw{grid-column:1/-1;border-top:1px solid #c4d5ed88;padding-top:12px}.lottery-live-result .lottery-balls{justify-content:flex-start}.lottery-result-caption{text-align:left}}
@media(max-width:1199px){.lottery-game-header{grid-template-columns:minmax(140px,1fr) 145px}.lottery-last-draw{grid-column:1/-1;border-top:1px solid #c4d5ed88;padding-top:12px}.lottery-live-result .lottery-balls{justify-content:flex-start}.lottery-result-caption{text-align:left}.lottery-live-result>.lottery-replay{margin-left:0}}
@media(max-width:767px){.lottery-game-header{grid-template-columns:minmax(0,1fr) 112px;gap:12px;padding:16px 12px}.lottery-game-title h1{font-size:16px}.lottery-round-clock>strong{font-size:22px;min-width:98px}.lottery-countdown-track{width:108px}.lottery-game-header .kind-pk10 .lottery-ball{width:24px;height:24px;font-size:11px}.lottery-game-header .kind-pk10{gap:4px}.lottery-result-caption{margin-bottom:10px}}

/* Category selector and consistent draw instruments. */
.lottery-catalog-bar{grid-column:1/-1;display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e4ebf3;border-radius:10px;padding:9px 13px}.lottery-catalog-trigger{display:flex;align-items:center;gap:9px;color:#0b9fee;font-weight:600;font-size:14px;padding:5px 8px;min-height:36px}.lottery-catalog-trigger>span{font-size:10px;background:#eaf6ff;border-radius:20px;padding:3px 7px}.lottery-catalog-hint{font-size:11px;color:#8b9db4}.lottery-catalog-dialog{position:fixed;inset:120px 0 auto;width:min(1050px,calc(100vw - 48px));max-height:calc(100dvh - 160px);padding:0;border:1px solid #e5ecf6;border-radius:18px;box-shadow:0 22px 70px #182d4e38;color:#435873;overflow:auto}.lottery-catalog-dialog::backdrop{background:#23395050;backdrop-filter:blur(3px)}.catalog-heading{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;background:linear-gradient(100deg,#f5faff,#fff)}.catalog-heading h2{font-size:19px;margin:0 0 5px}.catalog-heading p{margin:0;font-size:11px;color:#91a0b4}.catalog-close{background:#edf3fa;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;color:#8094ad}.catalog-tools{display:flex;justify-content:space-between;gap:20px;padding:0 26px 14px;border-bottom:1px solid #e5edf6;align-items:center}.catalog-tabs{display:flex;gap:6px}.catalog-tabs button{display:flex;align-items:center;gap:6px;padding:10px 15px;font-size:13px;border-radius:7px;color:#8190a8}.catalog-tabs button.active{background:#119fe9;color:#fff}.catalog-search{display:flex;align-items:center;gap:8px;padding:9px 14px;background:#f0f4f9;border-radius:30px;color:#a0afc3;width:270px}.catalog-search input{border:0;background:transparent;outline:none;width:100%;font-size:12px;color:#496483}.catalog-body{padding:12px 26px 24px}.catalog-category{display:grid;grid-template-columns:115px 1fr;align-items:start;gap:15px;padding:14px 0;border-bottom:1px solid #f0f3f8}.catalog-category:last-child{border-bottom:0}.catalog-category h3{font-size:13px;color:#7d8a9f;font-weight:500;margin:15px 0}.catalog-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.catalog-game{position:relative;background:#f0f7fd;border:1px solid transparent;border-radius:8px;min-width:0}.catalog-game.current{border-color:#35a9ed;background:#e8f5ff}.catalog-game>a{display:flex;align-items:center;gap:8px;min-height:68px;padding:9px 25px 9px 9px}.catalog-game img{width:30px;height:30px;object-fit:contain}.catalog-game strong{font-size:12px;font-weight:500;display:block;line-height:1.5}.catalog-game small{display:block;font-size:10px;color:#8c9fb6;margin-top:3px}.catalog-game>a>svg{position:absolute;right:8px;bottom:8px;color:#119fe9}.catalog-game>button{position:absolute;top:6px;right:6px;color:#9cacc1;padding:2px}.catalog-game>button[aria-pressed=true]{color:#e7af2a}.catalog-empty{padding:45px;text-align:center;font-size:13px;color:#97a5b8}.catalog-game a:focus-visible,.catalog-tools button:focus-visible,.lottery-catalog-trigger:focus-visible{outline:3px solid #90d2f4;outline-offset:2px}
.lottery-round-clock>strong.lottery-digital-clock{display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 12px 11px;border:1px solid #535b78;background:linear-gradient(150deg,#454d6d,#2c344f);box-shadow:inset 0 1px 0 #fff2,0 4px 8px #28314d18;border-radius:8px;min-width:148px;font-family:ui-monospace,Consolas,monospace}.digital-unit{display:flex;flex-direction:column;align-items:center;gap:4px}.digital-unit>small{font:500 8px/1 Arial,sans-serif;letter-spacing:1.3px;color:#c0cbe0}.digital-unit>b{position:relative;display:block;font-size:30px;letter-spacing:2px;line-height:1.05;font-weight:500;font-variant-numeric:tabular-nums;text-shadow:0 0 7px #bbe0ff60;background:linear-gradient(#ffffff06 49%,#ffffff1c 50%,#0000000c 52%);border-radius:3px;padding:1px 2px}.lottery-digital-clock>i{font-style:normal;font-size:25px;color:#9cbde0;padding-top:10px}.lottery-countdown-track{margin-top:2px;width:148px;height:4px;background:#d4d8e8}.lottery-countdown-track>i{background:linear-gradient(90deg,#3598f4,#27d7da)}
.lottery-balls.kind-pk10 .lottery-ball{border-radius:50%;background:#fff!important;color:#344357!important;border-style:solid;border-width:3px;box-shadow:0 2px 5px #213b6714;font-weight:600}.lottery-game-header .kind-pk10 .lottery-ball{width:36px;height:36px;border-width:3px;font-size:15px}.lottery-game-header .kind-pk10{gap:5px}.lottery-balls.compact.kind-pk10 .lottery-ball{width:25px;height:25px;border-width:2px;font-size:11px}.lottery-history-row .kind-pk10{display:grid;grid-template-columns:repeat(5,25px);gap:6px;justify-content:start}.lottery-reel-strip{animation-delay:-.16s}.is-rolling:nth-child(2n) .lottery-reel-strip{animation-delay:-.31s}.is-rolling:nth-child(3n) .lottery-reel-strip{animation-delay:-.09s}
@media(max-width:767px){.lottery-catalog-bar{margin-bottom:12px;padding:6px 9px;gap:8px}.lottery-catalog-trigger{font-size:13px}.lottery-catalog-hint{display:none}.lottery-catalog-dialog{inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:85dvh;border-radius:20px 20px 0 0;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom)}.catalog-heading{padding:18px 16px 12px}.catalog-tools{padding:0 16px 12px;gap:10px;flex-wrap:wrap}.catalog-tabs{width:100%}.catalog-search{width:100%;box-sizing:border-box}.catalog-body{padding:4px 16px 22px}.catalog-category{display:block;padding:12px 0}.catalog-category h3{margin:0 0 9px;font-size:12px}.catalog-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.catalog-game>a{min-height:66px;padding-left:8px}.catalog-game img{width:27px;height:27px}.catalog-game strong{font-size:11px}.lottery-round-clock>strong.lottery-digital-clock{min-width:108px;padding:7px 7px 9px;gap:5px}.digital-unit>b{font-size:24px;letter-spacing:1px}.digital-unit>small{font-size:7px}.lottery-digital-clock>i{font-size:20px}.lottery-countdown-track{width:108px}.lottery-game-header .kind-pk10 .lottery-ball{width:24px;height:24px;font-size:11px;border-width:2.5px}.lottery-game-header .kind-pk10{gap:4px}.lottery-history-row .compact.kind-pk10 .lottery-ball{width:25px;height:25px;font-size:11px;border-width:2px}}

.main-shell>.lottery-catalog-bar{margin-bottom:16px}

.lottery-catalog-dialog .catalog-search{flex-direction:row;align-items:center;gap:8px}.lottery-catalog-dialog .catalog-search input{height:22px;min-height:22px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;line-height:22px}.lottery-catalog-dialog .catalog-search svg{flex-shrink:0}

/* HO reference: seven-segment HRS / MIN / SEC and ten aligned ranks. */
.lottery-round-clock>strong.ho-clock{width:190px;min-width:190px;height:68px;box-sizing:border-box;border:0;border-radius:5px;background:#3e435f;box-shadow:none;padding:6px 10px;display:block}.ho-clock svg{width:100%;height:100%;display:block}.clock-labels text{fill:#fff;font:7px Arial,sans-serif;letter-spacing:0}.segment-on,.clock-colon{fill:#fff}.segment-off{fill:#ffffff06}.lottery-countdown-track{width:190px;background:#69578f;height:4px;border-radius:1px}.lottery-countdown-track>i{border-radius:0;background:#2dd2e7}.lottery-layout{grid-template-columns:160px minmax(0,1fr) 420px}.lottery-game-header{grid-template-columns:minmax(130px,.7fr) 190px minmax(280px,1.3fr);gap:14px}.lottery-game-title>img{width:44px;height:44px}.lottery-game-title h1{font-size:18px}.lottery-game-header .kind-pk10 .lottery-ball{width:30px;height:30px;font-size:13px}.lottery-game-header .kind-pk10{gap:4px;flex-wrap:nowrap}.lottery-history{min-width:0}.lottery-history-scroll{overflow-x:auto;overscroll-behavior-x:contain}.history-racing .lottery-history-head,.history-racing .lottery-history-row{grid-template-columns:62px 295px;gap:10px;min-width:395px;box-sizing:border-box;padding-left:14px;padding-right:14px}.history-racing .lottery-history-row .kind-pk10{display:grid;grid-template-columns:repeat(10,25px);gap:5px;flex-wrap:nowrap}.history-rank-head{display:grid;grid-template-columns:repeat(10,25px);gap:5px;text-align:center;color:#70849f;font-size:10px}.history-racing .lottery-history-row .lottery-ball-unit{width:25px}.history-racing .lottery-history-row .lottery-ball{width:25px;height:25px;box-sizing:border-box}.history-racing .lottery-history-row{padding-top:12px;padding-bottom:12px}.lottery-history-head{position:sticky;top:0}.history-rank-head>span:first-child,.history-rank-head>span:nth-child(2){color:#2496d3}
@media(min-width:1200px) and (max-width:1450px){.lottery-game-header{grid-template-columns:minmax(120px,1fr) 190px}.lottery-last-draw{grid-column:1/-1}}
@media(max-width:1199px){.lottery-layout{grid-template-columns:145px minmax(0,1fr)}.lottery-game-header{grid-template-columns:minmax(130px,1fr) 190px}.lottery-last-draw{grid-column:1/-1}.lottery-history{grid-column:2}}
@media(max-width:767px){.lottery-layout{display:block}.lottery-game-header{grid-template-columns:minmax(0,1fr) 146px;gap:8px}.lottery-game-title>img{width:32px;height:32px}.lottery-game-title{gap:6px}.lottery-game-title h1{font-size:15px}.lottery-round-clock>strong.ho-clock{width:146px;min-width:146px;height:56px;padding:5px 8px}.lottery-countdown-track{width:146px}.lottery-game-header .kind-pk10 .lottery-ball{width:24px;height:24px;font-size:11px}.lottery-game-header .kind-pk10{gap:4px}.history-racing .lottery-history-head,.history-racing .lottery-history-row{min-width:395px}.lottery-history-scroll{scrollbar-width:thin}.lottery-history:has(.history-racing) h2:after{content:'↔';margin-left:auto;color:#96abc4;font-size:13px}}

.live-lobby{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;margin-top:22px;align-items:start}.live-lobby-primary{min-width:0}.live-lobby-filter{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #e5ebf3;margin-bottom:18px}.live-lobby-tabs{display:flex;align-items:center;gap:6px;padding:12px 18px;border-bottom:1px solid #e7edf5}.live-lobby-tabs>button{display:flex;align-items:center;gap:6px;color:#8a97ab;padding:9px 13px;font-size:14px;white-space:nowrap}.live-lobby-tabs>button.active{color:#159fe8}.live-lobby-tabs>label{display:flex;flex-direction:row;align-items:center;gap:7px;margin-left:auto;max-width:250px;color:#a1afc1}.live-lobby-tabs input{background:#f4f7fb;border:0;border-radius:20px;padding:9px 12px;min-width:0;width:100%;font-size:12px;height:34px}.live-category-tabs{display:flex;overflow:auto;scrollbar-width:thin}.live-category-tabs>button{flex:1;white-space:nowrap;min-height:55px;padding:10px 14px;border-right:1px solid #edf1f7;border-bottom:2px solid transparent;color:#7e8fa6;font-size:12px}.live-category-tabs>button.active{color:#10a2e9;background:#f4fbff;border-bottom-color:#18a8ee}.live-game-list{display:grid;gap:18px}.live-game-row{padding:20px;background:#fff;border-radius:13px;border:1px solid #e5ebf3;min-width:0}.live-game-top{display:grid;grid-template-columns:165px minmax(0,1fr) 112px 96px;gap:12px;align-items:center}.live-game-identity{display:flex;align-items:center;gap:9px;min-width:0}.live-game-identity>img{width:44px;height:44px;object-fit:contain}.live-game-identity>div{min-width:0}.live-game-identity>div>div{display:flex;gap:4px;align-items:center}.live-game-identity h2{font-size:14px;font-weight:600;margin:0;line-height:1.4}.live-favorite{color:#b6bfcd;display:grid;place-items:center;flex-shrink:0}.live-favorite[aria-pressed=true]{color:#e0b335}.live-game-identity small{font-size:10px;color:#94a1b3;display:block;margin-top:4px}.live-game-results{min-width:0}.live-game-results .lottery-balls{gap:4px}.live-game-results .kind-pk10{flex-wrap:nowrap}.live-game-results .lottery-ball{width:26px;height:26px;font-size:11px;border-width:2px}.live-game-results .kind-pk10 .lottery-ball{border-width:2px}.live-game-results .kind-keno .lottery-ball{width:20px;height:20px;font-size:9px}.live-game-results .lottery-ball-unit>small{font-size:9px}.live-game-countdown{text-align:center}.live-game-countdown>b{font-size:22px;font-variant-numeric:tabular-nums;color:#25374e;font-weight:600;white-space:nowrap}.live-game-countdown small{font-size:10px;color:#96a4b6;display:block;margin-top:4px}.live-game-countdown strong{color:#425a7a}.live-enter{display:flex;align-items:center;justify-content:center;gap:3px;min-height:40px;padding:8px 9px;font-size:12px;border-radius:9px;white-space:nowrap}.live-game-bottom{display:flex;align-items:center;gap:14px;margin-top:18px}.live-result-summary{display:flex;flex:1;min-width:0;margin:0;border:1px solid #e0e7f0;border-radius:8px;overflow:hidden}.live-result-summary>div{flex:1;min-width:0;text-align:center;border-right:1px solid #e0e7f0}.live-result-summary>div:last-child{border:0}.live-result-summary dt{padding:8px 4px;background:#f4f6fa;color:#7185a1;font-size:10px}.live-result-summary dd{margin:0;padding:9px 5px;font-size:13px;color:#36688b;line-height:1.4;word-break:break-word}.live-round-status{display:flex;align-items:center;gap:4px;font-size:10px;color:#90a2b7;white-space:nowrap}.live-waiting,.live-first-draw{font-size:12px;color:#a0adbe}.live-first-draw{flex:1;padding:15px;background:#f7f9fc;border-radius:8px}.live-empty{background:#fff;border-radius:12px;padding:40px;text-align:center;color:#92a2b8;font-size:13px}.live-lobby-aside{display:grid;gap:18px}.live-lobby-aside .panel{padding:18px}.live-lobby-aside h2{display:flex;align-items:center;gap:7px;font-size:15px;margin:0 0 15px;padding-bottom:12px;border-bottom:1px solid #edf1f7;color:#426281}.live-lobby-aside p{font-size:12px;color:#93a2b5;line-height:1.8}.live-saved>a{display:flex;align-items:center;gap:10px;padding:10px 0}.live-saved img{width:34px;height:34px;object-fit:contain}.live-saved span{flex:1;font-size:12px}.live-saved small{display:block;font-size:10px;color:#96a6bc;margin-top:4px}.live-recent>a{display:block;padding:12px 0;border-bottom:1px solid #edf2f7}.live-recent>a:last-child{border:0}.live-recent>a>div:first-child{display:flex;justify-content:space-between;gap:8px;margin-bottom:9px;font-size:12px}.live-recent small{font-size:10px;color:#9daabe}.live-recent .kind-pk10{flex-wrap:nowrap;gap:3px}.live-recent .compact.kind-pk10 .lottery-ball{width:21px;height:21px;font-size:9px;border-width:1.5px}
@media(min-width:768px) and (max-width:1300px){.live-lobby{grid-template-columns:1fr}.live-lobby-aside{grid-template-columns:1fr 1fr}.live-game-top{grid-template-columns:180px minmax(0,1fr) 130px 110px}}
@media(max-width:767px){.live-lobby{display:block;margin-top:14px;padding-bottom:12px}.live-lobby-aside{display:none}.live-lobby-filter{margin-bottom:12px;border-radius:10px}.live-lobby-tabs{flex-wrap:wrap;padding:8px 10px;gap:3px}.live-lobby-tabs>button{padding:8px;font-size:12px}.live-lobby-tabs>label{width:100%;max-width:none;margin-left:0}.live-lobby-tabs input{height:36px;font-size:14px}.live-category-tabs>button{font-size:11px;min-height:45px;padding:8px 12px}.live-game-list{gap:12px}.live-game-row{padding:14px 12px;border-radius:12px}.live-game-top{grid-template-columns:1fr auto;gap:12px}.live-game-identity{grid-column:1/-1}.live-game-identity>img{width:37px;height:37px}.live-game-identity h2{font-size:14px}.live-game-identity small{font-size:10px}.live-game-results{grid-column:1/-1}.live-game-results .lottery-balls{gap:3px}.live-game-results .kind-pk10 .lottery-ball{width:23px;height:23px;font-size:10px}.live-game-countdown{text-align:left}.live-game-countdown>b{font-size:21px}.live-game-countdown small{font-size:10px}.live-enter{min-height:40px;min-width:92px;font-size:12px}.live-game-bottom{display:block;margin-top:13px}.live-result-summary dt{font-size:9px;padding:7px 3px}.live-result-summary dd{font-size:11px;padding:7px 3px}.live-round-status{margin-top:9px;justify-content:flex-end;font-size:10px}.live-first-draw{font-size:11px;padding:12px}.live-game-results .die{width:30px;height:30px}}

.main-shell:has(.live-lobby){max-width:1500px}.live-lobby-tabs>label{flex-direction:row!important}.live-lobby-tabs input{box-sizing:border-box}

@media(max-width:767px){
.main-shell:has(.mobile-venue-browser)>.lottery-catalog-bar,.main-shell:has(.mobile-venue-browser)>.live-lobby{display:none}.mobile-lobby{position:relative}.mobile-hero{margin:0 -12px;border-radius:0;height:190px;overflow:hidden}.mobile-hero>img{width:100%;height:100%;object-fit:cover}.mobile-venue-account{position:absolute;top:10px;left:0;right:0;display:flex;gap:6px;align-items:center;z-index:2;color:#657b97;font-size:11px}.mobile-venue-account>span{background:#ffffffde;border-radius:24px;padding:8px 10px;max-width:55%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-venue-account>a{display:flex;align-items:center;gap:4px;margin-left:auto;background:#ffffffde;border-radius:20px;padding:7px 9px;color:#5389b6}.mobile-venue-account>button{background:#ffffffde;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;color:#5c97c6}.mobile-venue-toolbar{display:flex;align-items:center;gap:8px;background:#fff;border-radius:18px 18px 0 0;padding:10px 12px;min-height:56px;box-sizing:border-box;margin-top:0}.mobile-venue-toolbar>button{display:flex;align-items:center;justify-content:center;color:#8b9bae;min-height:36px;padding:6px}.mobile-venue-toolbar>button:nth-child(2){font-size:15px;font-weight:600;flex:1}.mobile-venue-toolbar .active{color:#119fe5}.mobile-venue-toolbar>span{font-size:10px;color:#9aaac0}.mobile-venue-search{display:flex;flex-direction:row!important;align-items:center;gap:6px;background:#fff;padding:0 12px 10px;margin:0}.mobile-venue-search input{width:100%;min-width:0;height:36px;font-size:16px;background:#f2f6fc;border:0;border-radius:20px;padding:8px 12px}.mobile-venue-browser{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;background:#e9edf4;padding:10px 8px 12px 0;border-radius:18px;min-height:440px}.mobile-venue-categories{background:#fff;border-radius:18px;overflow:hidden;align-self:start;display:grid}.mobile-venue-categories>button{display:flex;align-items:center;gap:6px;text-align:left;padding:16px 8px;min-height:54px;color:#73869c;font-size:12px;border-left:4px solid transparent}.mobile-venue-categories>button>span{min-width:0;line-height:1.4}.mobile-venue-categories>button>svg{flex-shrink:0}.mobile-venue-categories>button.active{color:#10a1e7;background:#e6f5ff;border-left-color:#14a6ee}.mobile-venue-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-content:start;min-width:0}.mobile-venue-tile{position:relative;min-width:0;background:linear-gradient(145deg,#fff,#f7faff);border-radius:13px;min-height:119px;overflow:hidden;border:1px solid #f5f8fc}.mobile-venue-tile>a{display:block;height:100%;min-height:119px;box-sizing:border-box;padding:10px 8px;position:relative}.mobile-venue-tile strong{font-size:12px;line-height:1.5;font-weight:500;display:block;position:relative;z-index:1;overflow-wrap:anywhere}.mobile-venue-tile small{display:block;font-size:10px;color:#99a6b7;margin-top:3px}.mobile-venue-tile img{position:absolute;right:2px;bottom:7px;width:60px;height:60px;object-fit:contain}.mobile-venue-tile>button{position:absolute;left:7px;bottom:9px;z-index:2;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;background:#e6f5ff;color:#41a8df}.mobile-venue-tile>button[aria-pressed=true]{color:#edb439}.mobile-venue-empty{grid-column:1/-1;font-size:12px;color:#99a7ba;padding:30px 10px;text-align:center}.mobile-venue-tile a:focus-visible,.mobile-venue-categories button:focus-visible{outline:2px solid #58bcef;outline-offset:-2px}
/* Mobile PK10 keeps number-owned colors, in solid square tiles. */
.lottery-balls.kind-pk10 .lottery-ball,.lottery-game-header .kind-pk10 .lottery-ball,.lottery-balls.compact.kind-pk10 .lottery-ball,.history-racing .lottery-history-row .lottery-ball{background:initial!important;background-color:var(--pk-color)!important;color:var(--pk-ink)!important;border-radius:4px;border:0!important;box-shadow:none}.lottery-game-header .kind-pk10 .lottery-ball{width:24px;height:25px;font-size:12px}.history-racing .lottery-history-row .lottery-ball{width:25px;height:25px;font-size:11px}.lottery-last-draw{background:#ffffff65;border:1px solid #ffffffb8;border-radius:10px;padding:10px!important}.lottery-game-header{background:linear-gradient(145deg,#83b7fa,#b6cef5)}.lottery-result-caption{color:#3e6086}.lottery-game-header .is-rolling .lottery-ball{background-color:#e7f3ff!important;color:#3873a1!important}
}
@media(max-width:350px){.mobile-venue-browser{grid-template-columns:78px minmax(0,1fr);gap:7px;padding-right:5px}.mobile-venue-categories>button{padding:14px 4px;gap:4px;font-size:11px}.mobile-venue-tile>a{padding:9px 6px}.mobile-venue-tile strong{font-size:11px}.mobile-venue-tile img{width:51px;height:51px}.mobile-venue-games{gap:7px}.lottery-game-header .kind-pk10 .lottery-ball{width:21px;height:23px;font-size:11px}.lottery-game-header .kind-pk10{gap:3px}.lottery-last-draw{padding:8px!important}}

.clock-cells{display:none}
@media(max-width:767px){.lottery-round-clock>strong.ho-clock{background:transparent;padding:0;box-shadow:none;height:45px}.ho-clock .clock-cells{display:block;fill:#fff}.ho-clock .clock-labels{display:none}.ho-clock .segment-on,.ho-clock .clock-colon{fill:#35455b}.ho-clock .segment-off{fill:#edf2f7}.lottery-round-clock>.lottery-countdown-track{background:#a9c6e7}}

/* Featured cards supplement, rather than replace, the desktop results list. */
.lobby-highlights{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:stretch;margin-top:20px}.lobby-highlight-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.lobby-highlight-card{min-width:0;background:#fff;border-radius:13px;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:220px;padding:10px 8px 15px;border:1px solid #e5ebf3}.lobby-highlight-card>img{width:100%;height:100px;object-fit:contain;filter:drop-shadow(0 6px 7px #7f93b222)}.lobby-highlight-card h2{font-size:20px;line-height:1.4;margin:8px 0 12px;color:#354660;font-weight:650}.lobby-highlight-card>small{font-size:11px;color:#97a6b9;margin-top:auto;margin-bottom:7px}.lobby-highlight-card .ho-clock{background:transparent;display:block;width:125px;height:42px;min-width:0;padding:0}.lobby-highlight-card .clock-cells{display:block;fill:#f2f7fe;filter:drop-shadow(0 1px 1px #c1ccd9)}.lobby-highlight-card .clock-labels{display:none}.lobby-highlight-card .segment-on,.lobby-highlight-card .clock-colon{fill:#354963}.lobby-highlight-card .segment-off{fill:#e7eef6}.lobby-highlight-recommended{padding:17px}.lobby-highlight-recommended h2{font-size:15px;color:#4f6580;margin:0 0 14px}.lobby-highlight-recommended>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 6px}.lobby-highlight-recommended a{text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}.lobby-highlight-recommended img{width:54px;height:54px;object-fit:contain}.lobby-highlight-recommended strong{font-size:10px;color:#536f92;font-weight:500;line-height:1.4}.lobby-highlight-recommended small{font-size:9px;color:#99a9be}.lobby-highlight-card:hover{border-color:#a5d5f0;box-shadow:0 3px 12px #547baa12}
@media(min-width:768px) and (max-width:1300px){.lobby-highlights{grid-template-columns:1fr}.lobby-highlight-recommended>div{grid-template-columns:repeat(6,minmax(0,1fr))}.lobby-highlight-card h2{font-size:19px}}
@media(max-width:767px){.lobby-highlights{display:none}}

/* HO homepage composition: one shared frame and two aligned columns. */
@media(min-width:768px){
.main-shell:has(.live-lobby){max-width:1180px;padding:0 20px}.spark-app:has(.live-lobby) .header-inner{height:60px;max-width:1180px}.spark-app:has(.live-lobby) .subnav-inner{height:48px;max-width:1180px}.desktop-home .lobby-toolbar{height:48px;padding:0;gap:16px;background:#fff}.desktop-home .lottery-catalog-bar{padding:0;border:0;border-radius:0;background:transparent;flex:none}.desktop-home .lottery-catalog-hint,.desktop-home .lottery-catalog-trigger>span,.desktop-home .toolbar-note{display:none}.desktop-home .lottery-catalog-trigger{color:#555e6d;font-weight:400;padding:0 16px 0 0;border-right:1px solid #e8ebf1;font-size:14px}.desktop-home .search-box{background:#f0f1f4;border:0;width:270px}.desktop-home .hero-banner{border-radius:0;overflow:visible}.desktop-home .hero-slides{aspect-ratio:2280/610}.desktop-home .hero-dots{left:auto;right:110px;bottom:18px;transform:none}.desktop-home .hero-dots span{height:2px;background:#b3b8c1;border-radius:0;box-shadow:none}.desktop-home .hero-dots button[aria-pressed=true] span{background:#222}.desktop-home .hero-prev,.desktop-home .hero-next{opacity:0}.desktop-home .hero-banner:hover .hero-prev,.desktop-home .hero-banner:hover .hero-next{opacity:.7}
.lobby-highlights,.live-lobby{grid-template-columns:minmax(0,2.1fr) minmax(0,1fr);gap:20px}.lobby-highlights{margin-top:-10px;position:relative;z-index:1;align-items:start}.lobby-highlight-cards{gap:6px;align-items:start}.lobby-highlight-card{border:0;border-radius:12px;margin-top:20px;padding:0 6px 14px;min-height:225px;position:relative;background:#ffffffd9}.lobby-highlight-card>img{height:94px;margin-top:-14px;filter:none}.lobby-highlight-card .highlight-code{font-size:11px;font-weight:300;color:#9a9a9d;display:block;text-align:left;width:100%;padding:0 10px;margin-top:5px;white-space:nowrap}.lobby-highlight-card h2{font-size:23px;color:#41444b;line-height:1.2;margin:5px 0 17px;font-weight:800;white-space:nowrap}.lobby-highlight-card>small{color:#333;font-size:12px;margin-bottom:0}.lobby-highlight-card .ho-clock{width:102px;height:37px}.lobby-highlight-card.spotlight{background:#fff;margin-top:0;min-height:245px;padding-top:35px}.lobby-highlight-card.spotlight>img{display:none}.lobby-highlight-card.spotlight:before{content:'薦';position:absolute;top:0;left:0;color:#fff;background:#18a1ec;padding:3px 13px 12px 4px;clip-path:polygon(0 0,100% 0,0 100%);font-size:13px}.lobby-highlight-card.spotlight .highlight-code{text-align:center;font-size:16px;margin-top:0;padding:0}.lobby-highlight-card.spotlight h2{font-size:27px;margin-top:10px}.lobby-highlight-card.spotlight>small{margin-top:auto}.lobby-highlight-recommended{border:0;margin-top:20px;border-radius:12px;padding:16px 16px 18px;min-height:225px}.lobby-highlight-recommended h2{font-size:15px;color:#333;font-weight:400;margin-bottom:16px}.lobby-highlight-recommended>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px}.lobby-highlight-recommended img{width:58px;height:58px}.lobby-highlight-recommended strong{font-size:12px;color:#333;font-weight:400}.lobby-highlight-recommended small{font-size:10px;color:#999}
.live-lobby{margin-top:24px}.live-lobby-aside{grid-template-columns:1fr;gap:20px}.live-lobby-aside .panel{border:0;border-radius:12px;padding:20px}.live-lobby-aside h2{font-size:16px;font-weight:400;color:#333;padding-bottom:15px;margin-bottom:12px}.live-lobby-filter{border:0;margin-bottom:16px;border-radius:12px}.live-lobby-tabs{height:42px;padding:0 12px;gap:6px}.live-lobby-tabs>label{display:none}.live-lobby-tabs>button{font-size:14px;padding:10px 9px}.live-category-tabs>button{min-width:65px;min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 7px 6px;gap:5px;font-size:12px;color:#737b8b;background:#fff}.live-category-tabs>button>svg{color:#9497a7}.live-category-tabs>button.active{background:#18a1ec;color:white;border-color:#18a1ec}.live-category-tabs>button.active>svg{color:white}.live-game-list{gap:16px}.live-game-row{border:0;padding:16px 18px;border-radius:12px}.live-game-top{grid-template-columns:155px minmax(0,1fr) 105px 90px;gap:8px}.live-game-identity>img{width:38px;height:38px}.live-game-identity h2{font-size:13px;color:#4d5361}.live-game-identity small{font-size:10px;color:#999}.live-game-results .lottery-balls{gap:3px}.live-game-results .lottery-ball{width:23px;height:23px;font-size:11px;border-width:1.8px}.live-game-results .kind-pk10 .lottery-ball{border-width:1.8px}.live-game-countdown>b{font-size:21px;color:#26262d}.live-enter{font-size:12px;min-height:36px;border-radius:9px;padding:7px}.live-enter>svg{display:none}.live-game-bottom{margin-top:16px;gap:10px}.live-result-summary dt{font-size:11px;color:#566277;background:#f5f5f7;padding:8px 3px}.live-result-summary dd{font-size:12px;color:#344055;padding:8px 3px}.live-round-status{white-space:normal;line-height:1.6;max-width:77px;font-size:10px;flex-shrink:0}.live-popular>a{display:grid;grid-template-columns:10px minmax(0,1fr) 90px 60px;gap:7px;align-items:center;min-height:42px;font-size:11px;color:#3e4755}.live-popular i{width:10px;height:10px;border:3px solid #cbd0db;border-radius:50%}.live-popular a:first-of-type i{border-color:#18a1ec}.live-popular em{font-style:normal;color:#18a1ec;font-size:11px}.live-popular b{color:#242833;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.live-recent .compact.kind-pk10 .lottery-ball{width:23px;height:23px;font-size:10px}
}
@media(min-width:768px) and (max-width:1050px){.lobby-highlights,.live-lobby{grid-template-columns:minmax(0,1fr) 260px}.lobby-highlight-card h2{font-size:16px}.lobby-highlight-card.spotlight h2{font-size:21px}.lobby-highlight-card .highlight-code{font-size:9px;padding:0}.lobby-highlight-card.spotlight .highlight-code{font-size:12px}.live-game-top{grid-template-columns:1fr 95px}.live-game-identity{grid-column:1}.live-game-results{grid-column:1;grid-row:2}.live-game-countdown{grid-column:2;grid-row:1}.live-enter{grid-column:2;grid-row:2}.live-popular>a{grid-template-columns:8px minmax(0,1fr) 55px}.live-popular em{display:none}.lobby-highlight-recommended strong{font-size:10px}}

@media(min-width:1051px){.lobby-highlights{height:245px}.live-lobby-aside{padding-top:50px}}
@media(min-width:768px){.lobby-highlight-card h2{font-size:24px}.lobby-highlight-card .ho-clock svg{transform:skewX(-7deg)}.lobby-highlight-card:has(h2:lang(en)) h2{font-size:17px}.live-game-identity h2{font-size:14px}.live-game-identity small{font-size:11px}.live-game-results .lottery-ball{width:26px;height:26px;font-size:12px}.live-game-countdown small{font-size:11px}.live-enter{font-size:13px}.live-popular>a{font-size:12px;min-height:44px;grid-template-columns:12px minmax(0,1fr) 90px 65px}.live-popular i{width:12px;height:12px}.live-popular em,.live-popular b{font-size:12px}.lobby-highlight-card h2{white-space:normal;min-height:29px}.live-game-top{grid-template-columns:155px minmax(0,1fr) 110px 90px}.live-game-results .kind-keno .lottery-ball{width:20px;height:20px;font-size:9px}}
@media(min-width:768px) and (max-width:1050px){.live-game-top{grid-template-columns:1fr 95px}.lobby-highlight-card h2{font-size:16px}}

.home-catalog-search{display:none}
@media(min-width:768px){.homepage-nav{gap:22px}.home-catalog-search{display:flex;align-items:center;gap:14px;flex:1;min-width:0}.home-catalog-search .lottery-catalog-bar{border:0;padding:0;background:transparent;flex:none}.home-catalog-search .lottery-catalog-hint,.home-catalog-search .lottery-catalog-trigger>span{display:none}.home-catalog-search .lottery-catalog-trigger{color:#4b505a;font-weight:400;white-space:nowrap;padding:0 13px 0 0;border-right:1px solid #edf0f5;font-size:14px;gap:8px}.home-catalog-search .search-box{background:#f0f1f4;border:0;flex:1;width:270px;max-width:270px;min-width:90px}.homepage-nav nav{margin-left:auto;gap:24px;flex-shrink:0}.homepage-nav nav a{font-size:13px;gap:0}.homepage-nav nav a>svg{display:none}.homepage-nav>.help-btn{display:none}.spark-app:has(.live-lobby) .header-inner{height:55px}.spark-app:has(.live-lobby) .subnav-inner{height:51px}.lobby-highlights.is-english .lobby-highlight-card h2{font-size:17px}.lobby-highlights.is-english .lobby-highlight-card.spotlight h2{font-size:21px}.lobby-highlights.is-english .lobby-highlight-recommended strong{font-size:11px}.live-popular a span{line-height:1.4;overflow-wrap:anywhere}}
@media(min-width:768px) and (max-width:1050px){.homepage-nav{gap:12px}.homepage-nav nav{gap:13px}.homepage-nav nav a{font-size:11px}.home-catalog-search{gap:8px}.home-catalog-search .lottery-catalog-trigger{font-size:12px}}

@media(min-width:768px){.lobby-highlight-card.spotlight>small{margin-top:18px}.lobby-highlight-recommended img{width:64px;height:64px}.lobby-highlight-recommended>div{row-gap:17px}}
@media(min-width:1051px){.live-lobby-aside{padding-top:65px}}

/* Finite homepage list, matching the reference's page controls and final sidebar panel. */
.live-lobby-primary{scroll-margin-top:18px}.lobby-pagination{display:flex;align-items:center;justify-content:center;gap:7px;padding:20px 0 8px}.lobby-pagination button{min-width:32px;height:32px;background:#fff;border-radius:6px;color:#66768c;padding:0 10px;font-size:14px}.lobby-pagination button.active{background:#18a1ec;color:#fff}.lobby-pagination button:disabled{opacity:.4}.live-experts .expert-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #edf1f7;padding-bottom:14px}.live-lobby-aside .expert-heading h2{border:0;padding:0;margin:0}.expert-heading>span{font-size:10px;color:#9ba9b9;background:#f2f5f9;border-radius:4px;padding:3px 6px}.expert-controls{display:flex;align-items:center;gap:12px;padding:12px 0}.expert-controls label{min-width:0;flex:1}.expert-controls label:last-child{flex:0 0 88px}.expert-controls select{border:0;padding:4px 16px 4px 0;min-height:30px;color:#6384a9;font-size:12px;background:transparent;width:100%;border-radius:0}.expert-round{display:flex;justify-content:space-between;gap:8px;color:#8a96a7;font-size:11px;padding:9px 0 15px;border-bottom:1px solid #edf1f7}.expert-round b{font-weight:400}.expert-round strong{color:#384d67;font-size:12px;font-variant-numeric:tabular-nums}.expert-row{display:flex;align-items:center;gap:11px;min-height:66px;border-bottom:1px solid #edf1f7;color:#7b8697;font-size:12px}.expert-row:last-child{border:0}.expert-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;flex-shrink:0;background:#e8f0fa;color:#879cb9}.expert-avatar.avatar-1{background:#f5e9ef;color:#b38b9c}.expert-avatar.avatar-2{background:#e7edf2;color:#8495a3}.expert-avatar.avatar-3{background:#faf0df;color:#c29a65}.expert-row>strong{margin-left:auto;color:#3c495b;font-size:12px;font-weight:500;white-space:nowrap}.expert-row>strong>b{display:inline-grid;place-items:center;min-width:24px;height:26px;background:#edf3fb;color:#159ae5;border-radius:3px;margin-left:5px;font-size:14px}.live-lobby-aside .expert-demo-note{font-size:10px;color:#a2adbc;padding-top:10px;line-height:1.5}

.expert-controls .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1051px){.live-game-top{grid-template-columns:175px minmax(0,1fr) 110px 90px}.live-game-identity{gap:7px}.live-game-identity>img{width:36px;height:36px}}

/* Featured tiles respond as a coordinated strip rather than isolated static cards. */
@media(min-width:768px){.lobby-highlight-card{padding:80px 6px 14px;height:225px;min-height:225px;transition:margin-top .32s ease,height .32s ease,padding-top .32s ease,background-color .32s ease,box-shadow .32s ease;overflow:visible}.lobby-highlight-card>img{position:absolute;inset:-14px 0 auto;display:block;width:100%;height:94px;margin:0;opacity:1;transform:translateY(0) scale(1);transition:opacity .24s ease,transform .36s ease}.lobby-highlight-card .highlight-code{transition:font-size .3s ease,margin .3s ease,color .3s ease;text-align:center;font-size:11px;margin-top:5px;padding:0}.lobby-highlight-card h2{font-size:24px;line-height:1.25;font-weight:800;margin:5px 0 17px;transition:font-size .3s ease,color .3s ease;min-height:30px}.lobby-highlight-card>small{margin-top:auto;font-weight:400;transition:margin .32s ease}.lobby-highlight-card .ho-clock{transition:transform .32s ease}.lobby-highlight-card.spotlight{height:245px;min-height:245px;padding-top:35px;background:#fff;box-shadow:0 5px 18px #566c8210}.lobby-highlight-card.spotlight>img{display:block;opacity:0;transform:translateY(-25px) scale(1.06);pointer-events:none}.lobby-highlight-card.spotlight .highlight-code{font-size:15px;margin-top:0}.lobby-highlight-card.spotlight h2{font-size:27px;margin-top:10px}.lobby-highlight-card.spotlight>small{margin-top:18px}.lobby-highlight-card.spotlight .ho-clock{transform:translateY(-2px)}.lobby-highlight-card.spotlight:before{content:attr(data-featured)}.lobby-highlights.is-english .lobby-highlight-card.spotlight:before{content:'F'}.lobby-highlight-card:not(.spotlight):before{content:none}.lobby-highlight-card:focus-visible{outline:3px solid #5bc0f1;outline-offset:3px}
.spark-app h1{font-weight:700}.spark-app h2,.spark-app h3{font-weight:600}.spark-app .lobby-highlight-card h2{font-weight:800}.spark-app .lottery-game-title h1{font-weight:700}.spark-app .live-game-identity h2{font-weight:600}.spark-app .live-game-countdown>b,.spark-app .header-balance b{font-weight:700}.spark-app .lottery-ball,.spark-app .market strong{font-weight:600}.spark-app .live-result-summary dt,.spark-app .live-game-identity small,.spark-app .highlight-code,.spark-app .live-round-status{font-weight:400}.spark-app .lobby-highlight-recommended h2,.spark-app .live-lobby-aside h2{font-weight:500}.spark-app .subnav nav a{font-weight:400}.spark-app .subnav nav a.active{font-weight:500}.spark-app .live-result-summary dd{font-weight:500}
}
@media(max-width:767px){.spark-app .mobile-venue-tile strong{font-weight:600}.spark-app .mobile-venue-tile small,.spark-app .mobile-venue-categories>button{font-weight:400}.spark-app .mobile-venue-toolbar>button:nth-child(2){font-weight:600}.spark-app .lottery-game-title h1{font-weight:700}.spark-app .lottery-ball{font-weight:600}.spark-app .mobile-bottom a{font-weight:400}}
@media(prefers-reduced-motion:reduce){.lobby-highlight-card,.lobby-highlight-card>img,.lobby-highlight-card .highlight-code,.lobby-highlight-card h2,.lobby-highlight-card>small,.lobby-highlight-card .ho-clock{transition:none}}

.lobby-highlights{user-select:none}

/* Featured strip proportions: lifted artwork, quiet captions and stronger titles. */
@media(min-width:768px){
.lobby-highlight-cards{display:flex;gap:6px;align-items:flex-start}
.lobby-highlight-card{flex:1;min-width:0;padding:94px 12px 16px;border-radius:12px;transition:flex-grow .32s ease,margin-top .32s ease,height .32s ease,padding-top .32s ease,background-color .32s ease,box-shadow .32s ease}
.lobby-highlight-card>img{inset:-22px 0 auto;height:114px;object-fit:contain;filter:drop-shadow(0 5px 5px #7187a31a)}
.spark-app .lobby-highlight-card .highlight-code{font-size:12px;font-weight:300;line-height:17px;text-align:left;align-self:stretch;color:#96999f;margin:0;white-space:nowrap;letter-spacing:-.25px}
.lobby-highlight-card h2{font-size:25px;line-height:1.18;min-height:30px;margin:4px 0 12px;letter-spacing:-.8px;color:#41444b;white-space:nowrap}
.lobby-highlight-card>small{font-size:11px;color:#45474b;line-height:17px}
.lobby-highlight-card .ho-clock{width:106px;height:35px;margin-top:6px}
.lobby-highlight-card .clock-cells rect{fill:#fff;filter:drop-shadow(0 2px 2px #63789540)}
.lobby-highlight-card .segment-on,.lobby-highlight-card .clock-colon{fill:#374552}
.lobby-highlight-card .segment-off{fill:#eaf0f5}
.lobby-highlight-card.spotlight{flex-grow:1.08;padding:40px 12px 16px;box-shadow:none}
.spark-app .lobby-highlight-card.spotlight .highlight-code{font-size:18px;line-height:24px;text-align:center;letter-spacing:-.55px}
.lobby-highlight-card.spotlight h2{font-size:29px;line-height:1.2;margin:7px 0 15px;color:#242629;letter-spacing:-1px}
.lobby-highlight-card.spotlight>small{margin-top:21px}
.lobby-highlight-card.spotlight .ho-clock{transform:none}
.lobby-highlights.is-english .lobby-highlight-card h2{font-size:19px;letter-spacing:-.5px}
.lobby-highlights.is-english .lobby-highlight-card.spotlight h2{font-size:23px}
.main-shell:has(.live-lobby){padding-bottom:28px}
}
@media(min-width:768px) and (max-width:1050px){.lobby-highlight-card{padding-left:7px;padding-right:7px}.lobby-highlight-card h2{font-size:17px}.lobby-highlight-card.spotlight h2{font-size:21px}.spark-app .lobby-highlight-card .highlight-code{font-size:9px}.spark-app .lobby-highlight-card.spotlight .highlight-code{font-size:12px}.lobby-highlights.is-english .lobby-highlight-card h2{font-size:14px}.lobby-highlights.is-english .lobby-highlight-card.spotlight h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.lobby-highlight-card{transition:none}}

/* Game page: catalogue and main navigation share one compact toolbar. */
.game-page-toolbar{grid-column:1/-1;display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #e5ebf3;border-radius:12px;padding:0 18px;min-width:0}
.game-page-toolbar>.lottery-catalog-bar{border:0;background:transparent;margin:0;padding:10px 0;flex:1;min-width:0}
.game-toolbar-nav{display:flex;align-items:center;gap:25px;flex-shrink:0}
.game-toolbar-nav a{display:flex;align-items:center;gap:7px;min-height:52px;white-space:nowrap;color:#344761;font-size:13px;font-weight:400}
.game-toolbar-nav a:hover{color:#159fe9}
@media(min-width:768px){.spark-app:has(.game-shell) .header-inner{height:60px}.game-shell{padding-top:14px}.game-shell .lottery-layout{row-gap:16px}}
@media(min-width:768px) and (max-width:1100px){.game-page-toolbar .lottery-catalog-hint{display:none}.game-toolbar-nav{gap:15px}.game-toolbar-nav a{font-size:12px}}
@media(max-width:767px){.game-page-toolbar{display:none}}

/* Desktop-only unified header; mobile header and bottom navigation remain intact. */
.desktop-header-nav{display:none}
@media(min-width:768px){
.spark-app:not(.admin-app) .header-inner{height:72px;min-height:72px;gap:32px;padding:8px 20px;flex-wrap:nowrap}
.spark-app:not(.admin-app) .header-inner .brand{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:161px}
.spark-app:not(.admin-app) .brand .platform-logo{width:161px;height:40px;object-fit:contain}
.spark-app:not(.admin-app) .brand .educational-brand-notice{display:block;background:none;border:0;padding:0;font-size:11px;line-height:15px;letter-spacing:.2px;font-weight:400;color:#758292;white-space:nowrap;max-width:none}
.desktop-header-nav{display:flex;align-items:center;height:100%;gap:27px;flex-shrink:0}
.desktop-header-nav a{display:flex;position:relative;align-items:center;height:100%;font-size:14px;font-weight:400;white-space:nowrap;color:#465365}
.desktop-header-nav a:hover,.desktop-header-nav a.active{color:#139fe8}
.desktop-header-nav a.active:after{content:'';position:absolute;bottom:2px;left:50%;transform:translateX(-50%);width:26px;height:3px;background:#139fe8;border-radius:2px}
.spark-app:not(.admin-app) .header-actions{margin-left:auto;gap:16px;flex-shrink:0;font-size:12px}
.spark-app:not(.admin-app) .subnav:not(:has(.homepage-nav)){display:none}
.homepage-nav nav,.game-page-toolbar .game-toolbar-nav{display:none}
.spark-app:has(.live-lobby) .subnav-inner{height:43px}
.homepage-nav .home-catalog-search{flex:1}
.game-page-toolbar .lottery-catalog-hint{display:none}
.game-page-toolbar{background:transparent;border:0;border-radius:0;padding:0 4px;min-height:38px}
.game-page-toolbar>.lottery-catalog-bar{padding:0}
.game-page-toolbar .lottery-catalog-trigger{font-weight:400;font-size:14px}
.spark-app:has(.game-shell) .header-inner{max-width:none;padding-left:24px;padding-right:24px}
.game-shell{padding-top:8px}
.game-shell .lottery-layout{row-gap:10px}
}
@media(min-width:768px) and (max-width:1100px){.spark-app:not(.admin-app) .header-inner{gap:18px}.desktop-header-nav{gap:17px}.desktop-header-nav a{font-size:12px}.spark-app:not(.admin-app) .header-actions{gap:9px;font-size:11px}.header-actions .member-chip>svg{display:none}}
@media(min-width:768px) and (max-width:880px){.spark-app:not(.admin-app) .header-inner{gap:14px;padding-left:14px;padding-right:14px}.desktop-header-nav{gap:12px}.spark-app:not(.admin-app) .brand .platform-logo{width:138px;height:34px}.spark-app:not(.admin-app) .header-inner .brand{min-width:138px}.spark-app:not(.admin-app) .brand .educational-brand-notice{font-size:10px}.spark-app:not(.admin-app) .header-actions{gap:7px}.header-balance b{margin-left:2px;font-size:12px}.header-actions .member-chip{max-width:65px;overflow:hidden}.header-actions .icon-btn{width:24px}}

/* Desktop brand: large logo aligned to the same left edge on every frontend page. */
@media(min-width:768px){
.spark-app:not(.admin-app) .header-inner{max-width:none;padding-left:24px;padding-right:24px;height:72px;min-height:72px}
.spark-app:not(.admin-app) .header-inner .brand{min-width:200px;justify-content:center}
.spark-app:not(.admin-app) .brand .platform-logo{width:200px;height:50px;object-fit:contain}
.spark-app:not(.admin-app) .brand .educational-brand-notice{display:none}
}
@media(min-width:768px) and (max-width:880px){.spark-app:not(.admin-app) .header-inner{gap:12px;padding-left:16px;padding-right:16px}.spark-app:not(.admin-app) .header-inner .brand{min-width:175px}.spark-app:not(.admin-app) .brand .platform-logo{width:175px;height:44px}.desktop-header-nav{gap:10px}}

/* PC catalogue is an anchored non-modal dropdown, not a separate screen. */
@media(min-width:768px){
.catalog-desktop{position:relative;z-index:40;overflow:visible}
.game-page-toolbar>.catalog-desktop{flex:none}
.catalog-desktop .lottery-catalog-dialog{position:absolute;inset:auto;top:100%;left:0;margin:0;width:min(1040px,calc(100vw - 48px));max-width:none;max-height:min(620px,calc(100dvh - 140px));border:1px solid #e6eaf0;border-radius:0 12px 12px 12px;padding:0;background:#fff;box-shadow:0 12px 30px #253c582b;overflow:auto;overscroll-behavior:contain}
.catalog-desktop .catalog-heading{display:none}
.catalog-desktop .catalog-tools{padding:16px 24px 0;border-bottom:1px solid #e8ecf2;gap:20px}
.catalog-desktop .catalog-tabs{gap:0;align-self:stretch}
.catalog-desktop .catalog-tabs button{min-height:42px;padding:10px 20px;border-radius:7px 7px 0 0;font-size:14px}
.catalog-desktop .catalog-tabs button.active{background:#18a1ee;color:#fff}
.catalog-desktop .catalog-search{margin-left:auto;max-width:250px}
.catalog-desktop .catalog-body{padding:14px 24px 20px}
.catalog-desktop .catalog-category{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;padding:10px 0;gap:12px;border:0;min-height:52px}
.catalog-desktop .catalog-category h3{font-size:13px;font-weight:400;color:#777f8e;margin:0}
.catalog-desktop .catalog-game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.catalog-desktop .catalog-game{border:0;border-radius:4px;background:#eef7ff;min-width:0}
.catalog-desktop .catalog-game>a{min-height:36px;padding:8px 22px 8px 10px;display:flex;align-items:center;justify-content:center;text-align:center}
.catalog-desktop .catalog-game img,.catalog-desktop .catalog-game small,.catalog-desktop .catalog-game>a>svg{display:none}
.catalog-desktop .catalog-game strong{font-size:12px;font-weight:400;line-height:20px;color:#596679;white-space:nowrap}
.catalog-desktop .catalog-game:hover,.catalog-desktop .catalog-game.current{background:#def0ff}
.catalog-desktop .catalog-game:hover strong,.catalog-desktop .catalog-game.current strong{color:#109be4}
.catalog-desktop .catalog-game>button{top:9px;right:4px;padding:0}
.catalog-desktop .catalog-game>button svg{width:13px;height:13px}
}
@media(min-width:768px) and (max-width:1050px){.catalog-desktop .catalog-game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-desktop .catalog-category{grid-template-columns:95px minmax(0,1fr)}}

/* Desktop account controls follow identity, balance, language, sign out. */
@media(min-width:768px){
.spark-app:not(.admin-app) .header-actions>.member-chip{order:1}
.spark-app:not(.admin-app) .header-actions>.header-balance{order:2}
.spark-app:not(.admin-app) .header-actions>.language{order:3}
.spark-app:not(.admin-app) .header-actions>a[href="/logout"]{order:4;color:#d64c55;border-radius:6px}
.spark-app:not(.admin-app) .header-actions>a[href="/logout"]:hover{background:#fff0f1;color:#bd3540}
}

@media(min-width:1051px){.spark-app:not(.admin-app) .header-actions{gap:28px}.spark-app:not(.admin-app) .header-actions>.member-chip{gap:9px}.spark-app:not(.admin-app) .header-actions>.header-balance b{margin-left:9px}}

.expert-avatar.expert-photo{background-image:url('/brand/experts-western.png');background-size:200% 200%;background-repeat:no-repeat;width:38px;height:38px;box-shadow:0 0 0 1px #e7edf4;overflow:hidden}
.expert-avatar.expert-photo.avatar-0{background-position:0 0}
.expert-avatar.expert-photo.avatar-1{background-position:100% 0}
.expert-avatar.expert-photo.avatar-2{background-position:0 100%}
.expert-avatar.expert-photo.avatar-3{background-position:100% 100%}

/* Keep the original Traditional Chinese banner artwork fully visible on mobile. */
@media(max-width:767px){.mobile-hero{height:auto;aspect-ratio:2280/610}.mobile-hero>img{display:block;transform:none;object-fit:contain}.mobile-hero-dots{bottom:0}}

/* Mobile lobby proportions aligned to the supplied mobile reference. */
@media(max-width:767px){
.spark-app:not(.admin-app) .header-inner{min-height:56px;height:56px;padding:8px 14px;gap:12px}
.spark-app:not(.admin-app) .header-inner .brand{min-width:0}
.spark-app:not(.admin-app) .brand .platform-logo{width:184px;height:40px;object-fit:contain}
.spark-app:not(.admin-app) .header-actions>.language{font-size:12px;min-width:44px}
.main-shell:has(.mobile-venue-browser){padding:0 10px}
.mobile-hero{margin:0 -10px;height:auto;aspect-ratio:2/1}
.mobile-hero>img{width:100%;height:100%;object-fit:cover;transform:none}
.mobile-venue-account{top:10px;left:0;right:0;font-size:11px;gap:8px}
.mobile-venue-account>span{padding:8px 12px;max-width:57%}
.mobile-venue-account>a{padding:7px 8px}
.mobile-venue-toolbar{position:relative;margin:0 -10px;padding:6px 14px;min-height:48px;border-radius:20px 20px 0 0;gap:12px}
.mobile-venue-toolbar>button:first-child{border-right:1px solid #e8eaf0;border-radius:0;padding-right:16px}
.mobile-venue-toolbar>button:nth-child(2){font-size:16px;min-height:36px;position:relative}
.mobile-venue-toolbar>button:nth-child(2).active:after{content:'';position:absolute;bottom:-6px;left:32%;right:32%;height:3px;border-radius:3px;background:#129fe8}
.mobile-venue-toolbar>span{font-size:10px}
.mobile-venue-browser{grid-template-columns:104px minmax(0,1fr);gap:10px;padding:10px 0 12px;border-radius:20px;min-height:0}
.mobile-venue-categories{border-radius:18px}
.mobile-venue-categories>button{min-height:49px;padding:12px 8px;font-size:13px;gap:7px;color:#576779}
.mobile-venue-games{gap:10px}
.mobile-venue-tile,.mobile-venue-tile>a{min-height:102px;height:102px}
.mobile-venue-tile{border-radius:14px;background:#fafcff;border:0}
.mobile-venue-tile>a{padding:9px 8px}
.spark-app .mobile-venue-tile strong{font-size:12px;font-weight:500;line-height:1.4;color:#333f4d}
.mobile-venue-tile small{font-size:10px;margin-top:5px;color:#9199a5}
.mobile-venue-tile img{width:62px;height:58px;right:0;bottom:2px}
.mobile-venue-tile>button{width:25px;height:25px;bottom:8px;left:7px}
.mobile-hero-pause{right:4px;bottom:0;opacity:0;pointer-events:none}
.mobile-hero:focus-within .mobile-hero-pause{opacity:1;pointer-events:auto}
.mobile-hero-dots{bottom:0}
.mobile-bottom{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));height:62px;border:0;border-radius:18px;padding:6px 0;box-shadow:0 2px 10px #23314d05}
.mobile-bottom a{font-size:12px;gap:4px}
.mobile-bottom svg{width:23px;height:23px}
.spark-app{padding-bottom:80px}
}
@media(max-width:360px){.mobile-venue-browser{grid-template-columns:91px minmax(0,1fr);gap:8px}.mobile-venue-categories>button{font-size:12px;padding:12px 6px}.mobile-venue-tile img{width:54px}.mobile-venue-toolbar{gap:6px}.mobile-venue-toolbar>span{display:none}}

@media(min-width:361px) and (max-width:767px){.mobile-venue-browser{grid-template-columns:114px minmax(0,1fr)}.mobile-venue-categories>button{min-height:45px;padding:10px 8px}.mobile-venue-tile,.mobile-venue-tile>a{min-height:92px;height:92px}.mobile-venue-tile img{height:52px;width:58px}}

/* Single mobile account entry point in the header; compact lobby toolbar. */
@media(max-width:767px){
.spark-app:not(.admin-app) .header-inner{gap:8px}
.spark-app:not(.admin-app) .header-actions{display:flex;gap:8px;margin-left:auto}
.spark-app:not(.admin-app) .header-actions>a[href="/login"]{display:inline-flex;order:1;background:none;border:0;color:#158ed0;padding:0 4px;min-height:40px;min-width:40px;font-weight:400;font-size:12px}
.spark-app:not(.admin-app) .header-actions>.language{order:2;padding:0 2px;min-height:40px;min-width:40px;justify-content:center}
.spark-app:not(.admin-app) .header-actions>.header-balance{display:inline-flex;order:1;gap:4px;align-items:center;font-size:10px;white-space:nowrap}
.spark-app:not(.admin-app) .header-actions>.header-balance b{font-size:12px;margin:0}
.mobile-venue-toolbar{min-height:44px;padding:0 12px;gap:10px}
.mobile-venue-toolbar>button{min-height:44px}
.mobile-venue-toolbar>button:nth-child(2){min-height:44px}
.mobile-venue-toolbar>button:nth-child(2).active:after{bottom:0}
.mobile-venue-browser{padding-top:4px}
.mobile-venue-account>span{max-width:80%}
}
@media(max-width:360px){.spark-app:not(.admin-app) .brand .platform-logo{width:166px;height:36px}.spark-app:not(.admin-app) .header-inner{padding-left:10px;padding-right:10px}.spark-app:not(.admin-app) .header-actions{gap:4px}}

/* Racing/airship: ten numbers in two rows, four side choices in one row. */
@media(max-width:767px){
.lottery-options.racing-position-options{grid-template-columns:repeat(20,minmax(0,1fr));gap:8px 6px}
.lottery-options.racing-position-options>.number-option{grid-column:span 4;min-height:64px;padding:9px 2px;gap:6px}
.lottery-options.racing-position-options>.side-option{grid-column:span 5;min-height:64px;padding:9px 2px;gap:6px}
.lottery-options.racing-position-options>.side-option:nth-child(11){grid-column:1/span 5}
.lottery-options.racing-position-options strong{font-size:17px;line-height:1.2}
.lottery-options.racing-position-options>button>span{font-size:11px;line-height:1.3}
}

/* Mobile layouts use each game's result count, with bottom clearance only at page end. */
@media(max-width:767px){
.lottery-layout{padding-bottom:160px}
.lottery-market-body{min-height:0;padding-bottom:16px}
.lottery-history{margin-top:12px}
.lottery-history-scroll{overflow-x:hidden}
.lottery-history-head,.lottery-history-row{grid-template-columns:54px minmax(0,1fr);gap:8px;padding-left:10px;padding-right:10px}
.history-racing .lottery-history-head,.history-racing .lottery-history-row{min-width:0;width:100%;grid-template-columns:48px minmax(0,1fr);gap:6px;padding-left:8px;padding-right:8px}
.history-rank-head,.history-racing .lottery-history-row .kind-pk10{width:100%;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px}
.history-racing .lottery-history-row .lottery-ball-unit{width:100%;min-width:0}
.history-racing .lottery-history-row .lottery-ball{width:100%;height:auto;aspect-ratio:1;border-radius:4px;font-size:11px;max-width:28px}
.lottery-history:has(.history-racing) h2:after{content:none}
.lottery-history-row{padding-top:12px;padding-bottom:12px}
.lottery-history-row>div:first-child b{font-size:11px}
.history-kind-lhc .lottery-history-row .kind-lhc,.history-kind-ssq .lottery-history-row .kind-ssq{justify-content:space-between;gap:3px;flex-wrap:nowrap}
.history-kind-lhc .lottery-history-row .lottery-ball,.history-kind-ssq .lottery-history-row .lottery-ball{width:clamp(25px,7vw,32px);height:clamp(25px,7vw,32px);font-size:12px}
.history-kind-lhc .lottery-history-row .ball-separator,.history-kind-ssq .lottery-history-row .ball-separator{margin:0 2px;font-size:13px}
.history-kind-ssc .lottery-history-row .lottery-balls,.history-kind-eleven .lottery-history-row .lottery-balls,.history-kind-d3 .lottery-history-row .lottery-balls{justify-content:space-evenly;gap:6px}
.history-kind-ssc .lottery-history-row .lottery-ball,.history-kind-eleven .lottery-history-row .lottery-ball,.history-kind-d3 .lottery-history-row .lottery-ball{width:30px;height:30px;font-size:13px}
.history-kind-keno .lottery-history-row .kind-keno{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;justify-items:center}
.history-kind-keno .lottery-history-row .lottery-ball{width:28px;height:28px;font-size:12px}
.history-kind-p28 .lottery-history-row .lottery-ball{width:28px;height:28px;font-size:12px}
.lottery-options.eleven-position-options{grid-template-columns:repeat(20,minmax(0,1fr));gap:8px 6px}
.lottery-options.eleven-position-options>.number-option{grid-column:span 4;min-height:64px;gap:6px;padding:9px 2px}
.lottery-options.eleven-position-options>.side-option{grid-column:span 5;min-height:64px;gap:6px;padding:9px 2px}
.lottery-options.eleven-position-options>.side-option:nth-child(12){grid-column:1/span 5}
}
@media(max-width:360px){.lottery-history-head,.lottery-history-row{grid-template-columns:48px minmax(0,1fr);gap:4px;padding-left:7px;padding-right:7px}.history-kind-lhc .lottery-history-row .lottery-ball,.history-kind-ssq .lottery-history-row .lottery-ball{width:24px;height:24px;font-size:11px}.history-racing .lottery-history-head,.history-racing .lottery-history-row{grid-template-columns:44px minmax(0,1fr);gap:4px;padding-left:6px;padding-right:6px}.history-rank-head,.history-racing .lottery-history-row .kind-pk10{gap:2px}}

/* Mark Six live result: six regular balls and the special ball stay together. */
@media(max-width:767px){.lottery-game-header .lottery-balls.kind-lhc{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;flex-wrap:nowrap;width:100%;align-items:start}.lottery-game-header .kind-lhc .lottery-ball-unit{display:flex;flex-direction:column;flex-wrap:nowrap;min-width:0;gap:4px;flex-shrink:1}.lottery-game-header .kind-lhc .lottery-ball{width:clamp(24px,7vw,32px);height:clamp(24px,7vw,32px);font-size:12px;flex-shrink:0}.lottery-game-header .kind-lhc .ball-separator{position:absolute;left:-8px;top:5px;font-size:13px;margin:0;line-height:18px}.lottery-game-header .kind-lhc .lottery-ball-unit>small{font-size:10px;line-height:14px;white-space:nowrap}}
@media(max-width:350px){.lottery-game-header .lottery-balls.kind-lhc{gap:5px}.lottery-game-header .kind-lhc .ball-separator{left:-6px;font-size:11px}}

/* Full-page audit: one measured clearance for a fixed action bar, no stacked reserves. */
@media(max-width:767px){
.spark-app:has(.lottery-layout){padding-bottom:0}
.main-shell:has(.lottery-layout){padding-bottom:0}
.lottery-layout{padding-bottom:var(--stake-clearance,145px)}
.lottery-market-body{padding-bottom:16px}
.lottery-position-tabs button{min-height:44px}
}
@media(min-width:768px){
.lottery-options.racing-position-options,.lottery-options.eleven-position-options{grid-template-columns:repeat(20,minmax(0,1fr));gap:10px 8px}
.lottery-options.racing-position-options>.number-option,.lottery-options.eleven-position-options>.number-option{grid-column:span 4}
.lottery-options.racing-position-options>.side-option,.lottery-options.eleven-position-options>.side-option{grid-column:span 5}
.lottery-options.racing-position-options>.side-option:nth-child(11),.lottery-options.eleven-position-options>.side-option:nth-child(12){grid-column:1/span 5}
.lottery-nav a>span{min-width:0}
.lottery-nav a{font-size:12px!important}
.lottery-nav a>span small{margin-top:4px;line-height:1.3}
}
@media(min-width:1360px){
.lottery-game-header{grid-template-columns:minmax(110px,.65fr) 146px minmax(260px,1.35fr);gap:12px;padding:20px 16px}
.lottery-round-clock>strong.ho-clock{width:146px;min-width:146px;height:60px}
.lottery-countdown-track{width:146px}
.lottery-last-draw{grid-column:auto;align-self:center}
.lottery-game-header .kind-pk10 .lottery-ball{width:22px;height:22px;font-size:11px}
.lottery-game-header .kind-pk10{gap:3px}
}

/* Account pages: remove empty feedback rows and keep form actions above mobile navigation. */
.account-form form>p:empty,.mobile-feedback:empty{display:none}
.account-form form{gap:14px}
.account-form form>label{margin:0}
.account-form form>.primary{margin-top:4px}
@media(max-width:767px){.spark-app:not(.admin-app):not(:has(.lottery-layout)){padding-bottom:90px}.account-form .empty-state{padding:25px 12px}.account-form .record-tabs{margin-bottom:14px}.account-form+.account-form{margin-top:14px}.account-form form{gap:16px}}

@media(max-width:767px){.spark-app:not(.admin-app) .main-shell:has(.lottery-layout){padding-bottom:0}}

@media(min-width:768px){.lottery-position-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.lottery-position-tabs button{padding:8px 4px;min-width:0}.lottery-nav>a:not(.lottery-back){gap:6px;padding-left:5px;padding-right:5px}.lottery-nav a>img{width:25px;height:25px}}

.lottery-options>.number-option+.side-option{grid-column-start:1}


.lottery-history-entry,.lottery-history-page-heading{display:none}
@media(max-width:767px){
.lottery-live-result{position:relative}
.lottery-history-entry{display:flex;align-items:center;gap:2px;position:absolute;right:0;top:0;border:0;background:transparent;padding:0;color:#2876ae;font-size:11px;min-height:24px}
.lottery-result-caption{padding-right:88px;min-height:24px}
.lottery-game-header .kind-pk10{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:100%;gap:4px}
.lottery-game-header .kind-pk10 .lottery-ball-unit{min-width:0;width:100%}
.lottery-game-header .kind-pk10 .lottery-ball{width:100%;height:auto;aspect-ratio:1;font-size:clamp(11px,3vw,14px)}
.lottery-layout>.lottery-history{display:none}
.mobile-history-open>.lottery-history{display:block;position:fixed;inset:0;z-index:120;margin:0;border:0;border-radius:0;background:#fff;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom)}
.mobile-history-open .lottery-stake-bar{display:none}
.lottery-history-page-heading{display:flex;align-items:center;gap:14px;position:sticky;top:0;background:#fff;z-index:2;padding:18px 14px;border-bottom:1px solid #e4eaf3}
.lottery-history-page-heading button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:#5185b6;padding:5px 0;white-space:nowrap}
.lottery-history-page-heading strong{font-size:15px}
.mobile-history-open .lottery-history h2{display:none}
}

/* Compact mobile draw header shared by every game. */
.lottery-mobile-back{display:none}
@media(max-width:767px){
.spark-app:not(.admin-app):has(.lottery-layout) .mobile-page-top{display:none}
.lottery-mobile-back{display:flex;align-items:center;color:#416b96;margin-left:-2px}
.lottery-game-title>img{display:none}
.lottery-game-header{padding:12px 12px 14px;gap:10px 8px}
.lottery-game-title{gap:7px}
.lottery-game-title h1{font-size:16px;margin-bottom:6px}
.lottery-info-trigger{padding:3px 6px;font-size:10px}
.lottery-last-draw{padding:10px 10px 12px!important;min-height:0}
.lottery-result-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;min-height:24px}
.lottery-result-heading .lottery-result-caption{padding:0;margin:0;min-height:0;line-height:24px;text-align:left;font-size:11px}
.lottery-result-heading .lottery-history-entry{position:static;flex-shrink:0;line-height:24px;min-height:24px;padding:0}
.lottery-history-page-heading{display:grid;grid-template-columns:65px minmax(0,1fr) 65px;gap:0;padding:14px 10px}
.lottery-history-page-heading strong{text-align:center;font-size:14px;line-height:1.4}
}
/* Mobile: back in upper-left corner and state before the clock. */
@media(max-width:767px){
.lottery-game-header{position:relative;grid-template-columns:minmax(0,1fr) auto;align-items:end;padding-top:10px;gap:8px}
.lottery-game-title{padding-top:28px;align-self:start;min-width:0;padding-left:3px}
.lottery-mobile-back{position:absolute;top:0;left:4px;width:44px;height:38px;justify-content:center;margin:0}
.lottery-round-clock{display:grid;grid-template-columns:auto auto;align-items:center;justify-items:end;gap:3px 6px;align-self:end}
.lottery-round-clock>span{grid-column:1/-1;grid-row:1}
.lottery-round-clock>small{grid-column:1;grid-row:2;max-width:54px;line-height:1.3;text-align:center;font-size:10px}
.lottery-round-clock>strong.ho-clock{grid-column:2;grid-row:2;width:clamp(110px,32vw,140px);min-width:0;height:46px}
.lottery-round-clock>.lottery-countdown-track{grid-column:2;grid-row:3;width:clamp(110px,32vw,140px);margin:0}
.lottery-game-title h1{font-size:15px;overflow-wrap:anywhere}
}

.lottery-dual-context{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.lottery-dual-context button{border:1px solid #d8e4f2;border-radius:6px;background:#fff;color:#718ba8;padding:9px 14px}
.lottery-dual-context button.active{color:#079deb;background:#eff9ff;border-color:#26b4ff}
.lottery-options.dual-options{grid-template-columns:repeat(4,minmax(0,1fr))}
.lottery-options.dual-options>.side-option{grid-column:auto}

/* Desktop latest results: scale to the available lane, independently of history. */
.lottery-live-ranks{display:none}
@media(min-width:768px){
.lottery-game-header{grid-template-columns:minmax(120px,.8fr) 146px minmax(0,1.6fr);gap:18px;align-items:center}
.lottery-last-draw{grid-column:auto;border-top:0;padding-top:0;min-width:0}
.lottery-last-draw .lottery-live-result{width:100%;container-type:inline-size}
.lottery-result-heading{margin-bottom:10px}
.lottery-result-caption{text-align:left;margin:0}
.lottery-live-result .lottery-balls{justify-content:flex-start}
.lottery-game-header .kind-pk10,.lottery-live-ranks{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:clamp(3px,1.5cqw,8px);width:100%}
.lottery-live-ranks{margin-bottom:6px;font-size:11px;color:#7189a6;text-align:center}
.lottery-game-header .kind-pk10 .lottery-ball-unit{width:100%;min-width:0}
.lottery-game-header .kind-pk10 .lottery-ball{width:min(100%,40px);height:auto;aspect-ratio:1;font-size:clamp(12px,4.3cqw,18px);border-width:2px}
.lottery-game-header .lottery-ball{width:36px;height:36px;font-size:16px}
.lottery-game-header .kind-lhc,.lottery-game-header .kind-ssq{flex-wrap:nowrap;gap:6px}
.lottery-game-header .kind-lhc .lottery-ball,.lottery-game-header .kind-ssq .lottery-ball{width:clamp(24px,11cqw,38px);height:clamp(24px,11cqw,38px);font-size:clamp(12px,4.5cqw,17px)}
.lottery-game-header .kind-keno{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}
.lottery-game-header .kind-keno .lottery-ball{width:min(100%,30px);height:auto;aspect-ratio:1;font-size:12px}
}
@media(min-width:768px) and (max-width:1199px){
.lottery-game-header{grid-template-columns:minmax(120px,1fr) 146px}
.lottery-last-draw{grid-column:1/-1}
.lottery-game-header .kind-pk10,.lottery-live-ranks{max-width:480px}
}

/* PC: aligned period captions and centered results with breathing room. */
@media(min-width:1200px){
.lottery-game-header{align-items:center;padding:22px 20px;gap:24px}
.lottery-round-clock{align-self:stretch;justify-content:flex-start;min-height:112px}
.lottery-round-clock>span{line-height:16px}
.lottery-last-draw{align-self:stretch;display:flex;align-items:stretch}
.lottery-last-draw .lottery-live-result{display:grid;grid-template-rows:16px minmax(72px,1fr);align-items:center;min-height:112px}
.lottery-result-heading{align-self:start;margin:0;width:100%;height:16px}
.lottery-result-caption{text-align:right;line-height:16px;margin:0}
.lottery-live-result .lottery-balls{justify-content:center;justify-self:center}
.lottery-game-header .kind-pk10{display:flex;flex-wrap:nowrap;width:max-content;max-width:100%;gap:clamp(4px,1.6cqw,8px)}
.lottery-game-header .kind-pk10 .lottery-ball-unit{width:auto}
.lottery-game-header .kind-pk10 .lottery-ball{width:clamp(22px,8.2cqw,36px);height:clamp(22px,8.2cqw,36px);font-size:clamp(12px,4cqw,17px)}
.lottery-game-header .kind-lhc,.lottery-game-header .kind-ssq{gap:clamp(5px,2cqw,10px)}
.lottery-game-header .kind-lhc .lottery-ball,.lottery-game-header .kind-ssq .lottery-ball{width:clamp(24px,9cqw,36px);height:clamp(24px,9cqw,36px);font-size:clamp(12px,4cqw,17px)}
}
@media(min-width:1200px){
/* Period: 16px; clock: 60px + 5px gap. Match result centers to the clock. */
.lottery-last-draw .lottery-live-result{grid-template-rows:16px 65px minmax(0,1fr)}
.lottery-live-result>.lottery-balls{grid-row:2;align-self:center}
.lottery-game-header .kind-lhc{align-self:start;padding-top:calc((65px - clamp(24px,9cqw,36px))/2)}
}
@media(min-width:1200px){
.lottery-round-clock>strong.ho-clock{height:60px}
.lottery-last-draw .lottery-live-result{grid-template-rows:16px 70px minmax(0,1fr)}
.lottery-game-header .kind-lhc{padding-top:calc((70px - clamp(24px,9cqw,36px))/2)}
}

/* Consistent vivid draw colors across live, history and lobby results. */
.lottery-ball.wave-red{border-color:#ff174d}
.lottery-ball.wave-blue{border-color:#168cff}
.lottery-ball.wave-green{border-color:#00c878}
.lottery-ball{border-color:#168cff}
.lottery-ball.wave-red{border-color:#ff174d}
.lottery-ball.wave-green{border-color:#00c878}
/* Stronger desktop result outlines; latest draw remains visually primary. */
@media(min-width:768px){
.lottery-game-header .lottery-balls .lottery-ball{border-width:3px!important}
.lottery-history .lottery-balls.compact .lottery-ball{border-width:2px!important}
}

/* Mobile home: fixed outer viewport, independently scrollable category/game panes. */
@media(max-width:767px){
html:has(.mobile-venue-browser),body:has(.mobile-venue-browser){height:100%;overflow:hidden;overscroll-behavior:none}
.spark-app:not(.admin-app):has(.mobile-venue-browser){height:100dvh;min-height:0;padding-bottom:calc(80px + env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden}
.spark-app:has(.mobile-venue-browser)>.topbar{flex-shrink:0}
.spark-app:has(.mobile-venue-browser) .main-shell{flex:1;min-height:0;width:100%;padding-bottom:0!important;display:flex;flex-direction:column;overflow:hidden}
.spark-app:has(.mobile-venue-browser) .site-footer{display:none}
.spark-app:has(.mobile-venue-browser) .mobile-lobby{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.mobile-lobby .mobile-hero{flex:0 0 clamp(140px,22dvh,190px);height:clamp(140px,22dvh,190px)}
.mobile-lobby .mobile-venue-toolbar{flex-shrink:0}
.mobile-lobby .mobile-venue-search{flex-shrink:0}
.mobile-lobby .mobile-venue-browser{flex:1;min-height:0;overflow:hidden;padding-top:10px;padding-bottom:4px;align-items:stretch}
.mobile-lobby .mobile-venue-categories,.mobile-lobby .mobile-venue-games{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-y}
.mobile-lobby .mobile-venue-categories{align-self:stretch;display:flex;flex-direction:column}
.mobile-lobby .mobile-venue-categories>button{flex-shrink:0}
.mobile-lobby .mobile-venue-games{padding-bottom:8px}
.mobile-lobby .mobile-venue-categories::-webkit-scrollbar,.mobile-lobby .mobile-venue-games::-webkit-scrollbar{display:none}
}

/* English text and source banners retain their full content at mobile widths. */
@media(max-width:767px){
 :lang(en) .mobile-lobby .mobile-hero{flex-basis:auto;height:auto;aspect-ratio:2280/610;min-height:0}
 :lang(en) .mobile-hero>img{object-fit:contain}
 :lang(en) .mobile-venue-categories>button{font-size:12px;gap:6px;padding-left:8px;padding-right:5px}
 :lang(en) .mobile-venue-tile strong{font-size:12px;line-height:1.25;overflow-wrap:normal}
 :lang(en) .lottery-section-tabs button{font-size:12px;padding-inline:12px;white-space:nowrap}
 :lang(en) .lottery-game-title h1{font-size:16px}
 :lang(en) .lottery-ball-unit>small{font-size:9px;letter-spacing:-.3px}
 :lang(en) .lottery-history-page-heading strong{font-size:13px}
 :lang(en) .lottery-stake-summary strong{font-size:11px}
 :lang(en) .lottery-place{font-size:16px}
}

@media(min-width:768px){.lobby-highlights.is-english .lobby-highlight-card.spotlight:before{content:'Featured';clip-path:none;font-size:10px;padding:4px 7px;border-radius:0 0 7px 0}}


/* Administration tables, filters and review dialogs. */
.admin-app{background:#f4f6fa;color:#24364a;font-family:Arial,'Microsoft YaHei',sans-serif}.admin-app .site-header{height:72px}.admin-app .header-inner{max-width:none;padding:0 28px}.admin-role-label{font-size:12px;background:#eaf2fe;color:#3068ba;padding:6px 10px;border-radius:6px}.admin-app .admin-layout{max-width:none;margin:0;display:grid;grid-template-columns:210px minmax(0,1fr);gap:0}.admin-app .admin-sidebar{background:#1c293b;border-radius:0;padding:24px 14px;min-height:calc(100dvh - 72px);position:sticky;top:72px;align-self:start}.admin-app .admin-sidebar p{color:#8d9bb0;letter-spacing:1.5px;font-size:11px;margin:0 12px 20px}.admin-app .admin-sidebar button{color:#aab8cb;border-radius:7px;margin-bottom:5px;font-size:14px;padding:13px 14px;width:100%;display:flex;gap:12px;align-items:center}.admin-app .admin-sidebar button.active{background:#148de7;color:#fff}.admin-app .admin-content{padding:26px 28px;min-width:0}.admin-app .page-heading{margin-bottom:22px}.admin-app .page-heading h1{font-size:24px}.management-summary{display:flex;gap:16px;margin-bottom:20px}.management-summary>div{background:white;border:1px solid #e4eaf2;border-radius:10px;flex:1;display:flex;align-items:center;gap:18px;padding:21px}.management-summary svg{background:#eff6ff;color:#2086d9;padding:10px;width:44px;height:44px;border-radius:10px}.management-summary span{font-size:13px;color:#7e8ba0}.management-summary b{display:block;font-size:25px;color:#24364a;margin-top:6px;font-variant-numeric:tabular-nums}.management-panel{padding:0!important;border:1px solid #e4eaf2;border-radius:10px;overflow:hidden}.management-tools{padding:20px;display:flex;gap:12px;align-items:center;border-bottom:1px solid #edf0f5}.management-search{display:flex;align-items:center;gap:9px;flex:1;max-width:410px;border:1px solid #dce3ed;border-radius:6px;padding:0 12px;color:#8b99ad}.management-search input{border:0;background:transparent;width:100%;outline:0;padding:11px 0}.management-tools select{height:40px;padding:0 12px;border:1px solid #dce3ed;border-radius:6px;background:white}.management-table-scroll{overflow:auto}.management-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;white-space:nowrap}.management-table th{font-weight:500;background:#f7f9fc;color:#748398;padding:15px 17px;border-bottom:1px solid #e8edf4}.management-table td{padding:17px;border-bottom:1px solid #edf0f5;vertical-align:middle}.management-table tbody tr:hover{background:#f9fbfe}.management-table small{display:block;color:#8995a6;margin-top:5px;font-size:11px}.management-table strong{font-weight:500}.management-table code{font-family:Arial,sans-serif;font-variant-numeric:tabular-nums}.management-money{font-weight:600;font-variant-numeric:tabular-nums}.management-positive{color:#139b76;font-weight:600}.management-status{font-size:12px;padding:5px 10px;border-radius:5px;background:#e5f7f0;color:#179779}.management-status.disabled{background:#fff3df;color:#ae7820}.management-status.deleted{background:#f2f3f5;color:#8a92a0}.management-actions{display:flex;gap:12px}.management-actions button{background:none;border:0;padding:0;color:#2486d5;font-size:12px;cursor:pointer}.management-actions button.danger,.danger{color:#d55151}.management-pagination{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;color:#8793a5;font-size:12px}.management-pagination>div{display:flex;align-items:center;gap:16px}.management-empty{text-align:center;height:180px;color:#8e9aae}.management-detail-cell{white-space:normal;min-width:230px;max-width:550px;line-height:1.7;overflow-wrap:anywhere}.permission-tags{display:flex;gap:5px;flex-wrap:wrap;max-width:240px}.permission-tags span{padding:4px 6px;background:#eff5fc;color:#5680ac;font-size:11px;border-radius:4px}.management-dialog{border:0;border-radius:12px;width:min(620px,calc(100vw - 32px));padding:24px;color:#2c3e52;max-height:88dvh;overflow:auto;box-shadow:0 18px 80px #12274444}.management-dialog::backdrop{background:#152a4855}.management-dialog header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9eef5;padding-bottom:16px;margin-bottom:18px}.management-dialog h2{font-size:19px;margin:0}.management-dialog p{font-size:13px;line-height:1.7}.management-dialog form{display:grid;gap:16px}.management-dialog form>label{display:grid;gap:8px;font-size:13px}.management-dialog input:not([type=checkbox]),.management-dialog textarea,.management-dialog select{border:1px solid #dce4ef;border-radius:6px;padding:11px 12px;width:100%;box-sizing:border-box;background:white;color:#293e55}.management-dialog textarea{resize:vertical;min-height:75px}.management-dialog input:disabled{background:#f5f7fa}.management-dialog fieldset{border:1px solid #e3e9f1;border-radius:6px;padding:14px;font-size:13px}.management-permissions{display:flex;gap:15px;flex-wrap:wrap}.management-permissions label{display:flex;align-items:center;gap:6px}.management-tabs{display:flex;gap:8px;margin-bottom:16px}.management-tabs button{padding:9px 17px;border:1px solid #e4eaf3;background:white;border-radius:6px;color:#8493a6}.management-tabs button.active{background:#eaf5ff;border-color:#58b1f1;color:#168be3}.balance-preview{background:#f4f8fd;border-radius:8px;padding:18px;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#7a8ba1}.balance-preview b{display:block;font-size:23px;color:#2585cb;margin-top:7px}.management-confirm-text{color:#a56e20;background:#fff8e8;padding:10px;border-radius:6px}.management-profile{display:grid;grid-template-columns:1fr 1fr;gap:15px;background:#f6f9fc;padding:18px;border-radius:8px}.management-profile dt{color:#8896a8;font-size:12px}.management-profile dd{margin:6px 0 0;font-size:14px}.management-detail-records article{border-bottom:1px solid #e9eef5;padding:15px 0;display:grid;gap:5px;font-size:13px}.management-detail-records small{color:#8996a7}.admin-signin{min-height:100dvh;background:#f0f4fa;display:grid;place-items:center;padding:24px}.admin-signin-card{width:min(400px,100%);background:white;padding:36px;border-radius:14px;box-shadow:0 10px 40px #26426012}.admin-signin-card>small{letter-spacing:2px;color:#248ade;font-size:11px}.admin-signin-card h1{font-size:24px;margin-top:18px}.admin-signin-card p{color:#8391a3;font-size:13px}.admin-signin-card form{display:grid;gap:20px;margin:28px 0}.admin-signin-card label{display:grid;gap:8px;font-size:13px}.admin-signin-card input{padding:12px;border:1px solid #dce4ee;border-radius:6px}.admin-signin-card a{font-size:12px;color:#2583c9}.admin-app button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:900px){.admin-app .admin-layout{grid-template-columns:170px minmax(0,1fr)}.admin-app .admin-content{padding:20px 15px}.management-summary{flex-wrap:wrap}.management-summary>div{min-width:180px}.management-tools{flex-wrap:wrap}.management-search{min-width:170px}}@media(max-width:600px){.admin-app .admin-layout{display:block}.admin-app .admin-sidebar{min-height:0;position:static;display:flex;overflow:auto;padding:10px;gap:5px}.admin-app .admin-sidebar p{display:none}.admin-app .admin-sidebar button{width:auto;white-space:nowrap;margin:0}.admin-app .admin-sidebar svg{display:none}.management-summary{gap:8px}.management-summary>div{min-width:110px;padding:12px;gap:8px}.management-summary b{font-size:20px}.management-summary svg{display:none}.admin-app .header-inner{padding:0 12px}.admin-role-label{display:none}}

.admin-app .page-heading{margin:0 0 18px}.management-search{flex-direction:row}.management-search input{min-height:40px}.management-dialog textarea{font:inherit}.management-dialog{margin:auto}.admin-app .admin-content{padding-top:24px}.management-table td{padding-block:14px}.admin-app .admin-sidebar{top:72px}

/* Compact existing administration shell and reference-style bet records. */
.admin-app .admin-sidebar{padding-top:12px}.admin-app .admin-content{padding-top:14px}.admin-app .page-heading small{display:none}.admin-app .page-heading{margin-bottom:12px}.admin-app .page-heading h1{font-size:21px}.admin-app .stats-grid{margin-bottom:16px}.admin-app .stat{padding:18px 22px}.admin-app .stat strong{margin-top:10px;font-size:28px}.bet-record-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px;border-bottom:1px solid #e8edf4}.bet-record-filters label{gap:6px;font-size:12px;color:#76869b}.bet-record-filters input{width:180px}.bet-record-filters select{width:150px}.bet-record-filters input,.bet-record-filters select{min-height:36px;padding:8px 10px}.bet-record-filters button{height:36px}.bet-record-table th,.bet-record-table td{padding:12px}.bet-record-table .bet-selection{white-space:normal;min-width:120px;max-width:220px;line-height:1.5}.bet-record-table tfoot{background:#f7f9fc;font-weight:600}.bet-status{font-size:12px}.bet-status.won{color:#159970}.bet-status.lost{color:#d35454}.bet-status.pending{color:#b98020}.bet-status.refunded{color:#7a889a}.admin-orders-panel .management-pagination select{min-height:34px;padding:5px 8px}.admin-orders-panel .management-pagination{gap:10px;flex-wrap:wrap}.admin-orders-panel .management-pagination>div{gap:10px}

.record-account{overflow-wrap:anywhere;white-space:normal;max-width:260px;display:block}.admin-result-numbers{white-space:normal;min-width:240px;line-height:1.8;font-variant-numeric:tabular-nums;color:#3472a9}.fund-review-form{margin-top:18px}.admin-plan-editor{margin-top:16px}.admin-app .management-pagination select{min-height:34px;padding:5px 8px}.admin-app .management-pagination{flex-wrap:wrap;gap:10px}

@media(min-width:601px){.admin-app .admin-sidebar{max-height:calc(100dvh - 72px);overflow-y:auto;min-height:calc(100dvh - 72px)}.admin-app .admin-sidebar button{padding-block:10px;margin-bottom:4px}}.admin-app .lottery-admin{padding:16px}.admin-app .lottery-admin .section-heading{margin-bottom:12px}.admin-fund-stats{margin-top:0}

/* Keep the console header and navigation stationary; scroll content only. */
@media(min-width:601px){
 .admin-app{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
 .admin-app .site-header{flex:0 0 64px;height:64px;position:relative;z-index:30}
 .admin-app .header-inner{height:64px}
 .admin-app .admin-layout{flex:1;min-height:0;height:calc(100dvh - 64px);overflow:hidden}
 .admin-app .admin-sidebar{position:relative;top:auto;min-height:0;height:100%;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding-top:8px}
 .admin-app .admin-content{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-top:8px;padding-bottom:24px}
 .admin-app .page-heading{margin-bottom:10px}
}

.activity-chart{padding:24px}.activity-chart-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.activity-chart h2{font-size:20px;margin:0}.activity-chart svg{width:100%;max-height:360px;display:block;margin:16px 0}.activity-legend{display:flex;align-items:center;gap:24px;margin-top:20px;font-size:14px}.activity-legend span{display:flex;align-items:center;gap:8px}.activity-legend i{width:10px;height:10px;border-radius:50%}.activity-legend strong{margin-left:auto;font-size:13px;font-weight:400;color:#70839c}.reference-form{padding-top:12px}.reference-form fieldset{border:0;padding:0;margin:0}.management-dialog .reference-form label{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:18px;margin:0 0 16px;max-width:450px}.reference-form input[readonly]{background:#f7f8fa;color:#4f6078}.reference-radio{display:flex;align-items:center;gap:22px;margin:8px 0 22px}.reference-radio>span{width:100px;text-align:right;flex-shrink:0}.management-dialog .reference-radio label{display:flex;gap:8px;margin:0;white-space:nowrap}.reference-radio input[type=radio]{width:19px;height:19px;padding:0;accent-color:#0dbb8c}.reference-footer{display:flex;justify-content:flex-end;gap:12px;position:sticky;bottom:-24px;background:white;padding:18px 0 0;margin-top:24px}.reference-footer .primary,.reference-footer .outline{width:auto;min-width:74px}.balance-link{font-weight:600}.reference-form>label{text-align:right}.reference-form>label input,.reference-form>label select{text-align:left}@media(max-width:600px){.activity-chart{padding:16px}.activity-chart-head,.activity-legend{flex-wrap:wrap}.activity-legend strong{margin-left:0}.management-dialog .reference-form label{grid-template-columns:75px minmax(0,1fr);gap:12px}.reference-radio{gap:12px}.reference-radio>span{width:75px}}

.activity-chart{margin-bottom:20px}.activity-chart svg{max-height:300px}.management-dialog .reference-form>fieldset>label{text-align:right}.management-dialog .reference-form>fieldset>label input{text-align:left}

/* Compact admin dialogs: one screen on desktop, retaining a small-screen overflow fallback. */
.management-dialog{padding:18px 22px;max-height:calc(100dvh - 32px);width:min(600px,calc(100vw - 32px));box-sizing:border-box}
.management-dialog header{padding-bottom:10px;margin-bottom:12px}.management-dialog h2{font-size:18px}
.management-dialog form{gap:10px}.management-dialog form>label{gap:5px;margin:0;font-size:13px}
.management-dialog input:not([type=checkbox]):not([type=radio]),.management-dialog select{height:34px;min-height:34px;padding:6px 10px;font-size:13px}
.management-dialog textarea{min-height:54px;padding:7px 10px}.management-dialog p{margin:8px 0}
.management-dialog .management-tabs{margin-bottom:10px;gap:6px}.management-dialog .management-tabs button{padding:6px 12px;font-size:13px}
.management-dialog .reference-form{padding-top:0;gap:10px}.management-dialog .reference-form label{grid-template-columns:90px minmax(0,1fr);gap:12px;max-width:none;margin:0;font-size:13px;min-width:0}
.management-dialog .reference-radio{margin:0;min-height:34px;gap:20px}.management-dialog .reference-radio>span{width:90px;font-size:13px}
.management-dialog .reference-radio label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;flex:none;white-space:nowrap}
.management-dialog .reference-radio input[type=radio]{width:17px;min-width:17px;height:17px;min-height:17px;margin:0;padding:0;flex:0 0 17px}
.management-dialog .balance-preview{padding:9px 12px}.management-dialog .balance-preview span{display:flex;align-items:center;gap:14px}.management-dialog .balance-preview b{font-size:18px;margin:0}
.management-dialog .reference-footer{position:static;padding:10px 0 0;margin:0;gap:10px;border-top:1px solid #edf1f6}
.management-dialog .reference-footer button{height:34px;padding:6px 18px;font-size:13px;min-height:34px}
.management-dialog:has(.user-editor){width:min(840px,calc(100vw - 32px))}
.management-dialog .user-editor fieldset{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;border:0;padding:0}
.management-dialog .user-editor .reference-radio{gap:12px}.management-dialog .user-editor .reference-radio>span{width:90px}
.management-dialog .management-profile{gap:10px;padding:12px;margin:10px 0}.management-dialog .management-profile dd{margin-top:3px;font-size:13px}
.management-dialog .management-permissions{gap:10px}.management-dialog fieldset{padding:10px}
@media(max-width:620px){.management-dialog{padding:14px 16px;max-height:calc(100dvh - 20px)}.management-dialog .user-editor fieldset{grid-template-columns:1fr}.management-dialog .reference-form label{grid-template-columns:76px minmax(0,1fr);gap:10px}.management-dialog .reference-radio>span,.management-dialog .user-editor .reference-radio>span{width:76px}.management-dialog .reference-radio{gap:14px}}

.management-dialog .management-permissions label{flex-direction:row;align-items:center;gap:6px}.management-dialog .management-permissions input[type=checkbox]{width:16px;height:16px;margin:0;flex:none}

.fund-record-filters{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding:18px;border-bottom:1px solid #edf0f5}.fund-record-filters label{display:flex;flex-direction:row;align-items:center;gap:10px;font-size:13px}.fund-record-filters input,.fund-record-filters select{width:155px;height:34px;border:1px solid #dce4ef;border-radius:4px;padding:6px 10px;background:white}.fund-view-button,.fund-review-button{border:0;border-radius:3px;color:white;padding:5px 10px;font-size:12px;cursor:pointer;background:#13b6a6}.fund-review-button{background:#ffb600}.fund-record-filters>.fund-view-button{height:34px;padding:6px 20px}.fund-record-actions{display:flex;gap:8px}.fund-status{display:inline-block;padding:3px 6px;font-size:12px;border-radius:3px}.fund-status.pending{background:#f2f4f7;color:#66788c}.fund-status.approved{background:#179cff;color:white}.fund-status.rejected{background:#35404c;color:white}.fund-record-panel .management-table th,.fund-record-panel .management-table td{padding:10px 12px;border:1px solid #e9edf3}.fund-record-panel .management-table{font-size:13px}.fund-record-panel .management-table th{background:#fafbfc;color:#354355;font-weight:600}.fund-record-panel .management-table tfoot{background:#f8fbff}.fund-record-panel .management-empty{height:110px}.fund-record-panel .management-pagination{padding:12px 16px}.management-dialog:has(.fund-review-form){width:min(760px,calc(100vw - 32px))}.management-dialog:has(.fund-review-form) .management-profile{grid-template-columns:repeat(3,minmax(0,1fr))}.management-dialog .fund-review-form{grid-template-columns:1fr 1fr;gap:10px 18px}.management-dialog .fund-review-form .reference-footer{grid-column:1/-1}@media(max-width:620px){.fund-record-filters{gap:10px}.fund-record-filters input,.fund-record-filters select{width:130px}.management-dialog:has(.fund-review-form) .management-profile{grid-template-columns:1fr 1fr}.management-dialog .fund-review-form{grid-template-columns:1fr}}

.management-dialog .fund-review-options{border:0;padding:0;margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.fund-review-options legend{font-size:13px;padding:0;margin-bottom:8px}.management-dialog .fund-review-options label{display:flex;flex-direction:row;align-items:center;gap:7px;border:1px solid #dce4ef;border-radius:5px;padding:8px 12px;font-size:13px;cursor:pointer}.management-dialog .fund-review-options label.selected{border-color:#168de3;background:#edf7ff;color:#1681c9}.management-dialog .fund-review-options input[type=radio]{width:16px;height:16px;min-height:16px;padding:0;margin:0;flex:none;accent-color:#168de3}

/* Bet history: information row followed by a compact horizontal result row. */
.order-list{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}
.order-row{padding:18px 22px;gap:12px 22px;align-items:start}
.order-row>div.order-result{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;gap:16px;border-top:1px solid #edf1f6;padding-top:12px;margin-top:2px;min-width:0}
.order-row .order-result-label{flex:0 0 auto;color:var(--muted);font-size:12px;white-space:nowrap}
.order-row .order-result>.lottery-balls,.order-row .order-result>.number-balls{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap;min-width:0;padding:0}
.order-row .lottery-ball-unit{flex:0 0 auto}.order-row .lottery-balls .lottery-ball{width:30px;height:30px;font-size:13px}.order-row .lottery-balls.kind-keno{row-gap:8px}.order-row .order-result .number-balls{grid-column:auto}
@media(max-width:600px){.order-row{padding:14px;gap:12px;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.order-row>div.order-result{border-top:1px solid #edf1f6;padding-top:10px;gap:8px;flex-direction:column;align-items:flex-start}.order-row .order-result>.lottery-balls,.order-row .order-result>.number-balls{gap:4px;width:100%}.order-row .lottery-balls .lottery-ball{width:25px;height:25px;font-size:11px}.order-row .lottery-ball-unit{min-width:0}.order-row .order-result .ball-separator{margin:0 1px;font-size:12px}.order-row code{overflow-wrap:anywhere}}

.member-bets-table-scroll{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:10px;background:white}.member-bets-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:13px}.member-bets-table th{background:#f7f9fc;font-weight:500;color:var(--muted);padding:13px 16px;border-bottom:1px solid var(--line)}.member-bets-table td{padding:13px 16px;border-bottom:1px solid #edf1f6}.member-bets-table tr:last-child td{border-bottom:0}.member-bets-table tbody tr:hover{background:#f8fbff}.member-bets-table .state{font-size:11px;padding:4px 7px}.bet-record-money{font-variant-numeric:tabular-nums;font-weight:600}@media(max-width:600px){.member-bets-table{font-size:12px}.member-bets-table th,.member-bets-table td{padding:10px 12px}.member-bets-table-scroll{border-radius:8px}}

.member-bets-table .state.won{color:#df343d;background:#fff0f1}.member-bets-table .state.lost{color:#14986b;background:#eaf8f1}

.member-fund-table-scroll{overflow:auto}.member-fund-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}.member-fund-table th{background:#f7f9fc;color:var(--muted);font-weight:500}.member-fund-table td,.member-fund-table th{padding:12px 14px;border-bottom:1px solid var(--line)}.member-fund-table td small{display:block;white-space:normal;max-width:260px;margin-top:6px;color:var(--muted)}.member-fund-cards article{background:white;border:1px solid var(--line);border-radius:9px;padding:12px;margin-top:10px}.member-fund-cards article>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:12px}.member-fund-cards time,.member-fund-cards small{color:var(--muted)}.member-fund-cards article>div:last-child{margin-bottom:0}.member-fund-dialog{width:min(700px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:0;border-radius:12px;padding:18px 22px;color:var(--ink)}.member-fund-dialog::backdrop{background:#152a4855}.member-fund-dialog header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:8px}.member-fund-dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}.member-fund-dialog dt{font-size:12px;color:var(--muted)}.member-fund-dialog dd{font-size:13px;margin:5px 0 0;overflow-wrap:anywhere}.member-fund-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:12px}.member-fund-dialog p{font-size:13px;margin:10px 0}.member-fund-dialog>small{color:var(--blue)}@media(max-width:600px){.member-fund-dialog{padding:14px}.member-fund-dialog dl{gap:12px}.member-fund-dialog footer .compact{padding:7px 10px;font-size:12px}}

.member-statement-scroll{overflow-x:auto}.member-statement{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}.member-statement th{font-weight:500;background:#f7f9fc;color:var(--muted)}.member-statement th,.member-statement td{padding:12px 14px;border-bottom:1px solid var(--line)}.member-statement td{font-variant-numeric:tabular-nums}.member-statement tbody tr:hover{background:#fafcff}.member-statement tr:last-child td{border-bottom:0}@media(max-width:600px){.member-statement{font-size:12px}.member-statement th,.member-statement td{padding:10px 12px}}

.deposit-instructions{background:#f3f8fd;border:1px solid #dce7f3;border-radius:10px;padding:14px;margin:12px 0}.deposit-instructions p{margin:6px 0;overflow-wrap:anywhere}.deposit-options{margin:12px 0}.deposit-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}.deposit-settings fieldset{border:1px solid #dce7f3;border-radius:10px;padding:16px}.deposit-settings legend{font-weight:700;padding:0 8px}.deposit-settings label{display:block;margin:8px 0}.deposit-settings input,.deposit-instructions input{width:100%;margin-top:6px}@media(max-width:700px){.deposit-settings-grid{grid-template-columns:1fr}}

.deposit-flow{max-width:760px;margin:0 auto;padding:12px 0}.deposit-steps{list-style:none;display:flex;justify-content:space-between;padding:0;margin:0 0 28px;gap:8px}.deposit-steps li{display:flex;align-items:center;gap:8px;color:#8292aa;font-size:14px}.deposit-steps li span{border-radius:50%;width:26px;height:26px;display:grid;place-items:center;background:#edf2f8}.deposit-steps .current,.deposit-steps .complete{color:#079de1}.deposit-steps .current span,.deposit-steps .complete span{background:#0aa4e8;color:white}.deposit-method-cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.deposit-method-cards button{position:relative;display:grid;grid-template-columns:36px 1fr;text-align:left;align-items:center;gap:6px 14px;padding:22px;border:1px solid #d9e5f2;border-radius:12px;background:white}.deposit-method-cards button:hover{border-color:#0aa4e8;background:#f3fbff}.deposit-method-cards svg{grid-row:span 2;color:#0aa4e8}.deposit-method-cards small{color:#8393aa}.deposit-method-cards button>span{position:absolute;right:16px;font-size:24px}.deposit-back{display:flex;align-items:center;gap:6px;margin-bottom:18px;color:#168ed1}.deposit-selected{display:flex;justify-content:space-between;background:#eff8ff;border-radius:10px;padding:16px;margin-bottom:20px}.deposit-next{width:100%;margin-top:20px}.deposit-payment-summary{text-align:center;padding:18px;background:#f2f9ff;border-radius:12px;margin-bottom:20px}.deposit-payment-summary>*{display:block}.deposit-payment-summary strong{font-size:32px;color:#078acc;margin:8px}.deposit-payment-summary small{color:#8292aa}.deposit-receiving{border:1px solid #dce7f3;border-radius:12px;padding:20px}.deposit-receiving p{display:flex;justify-content:space-between;gap:16px}.deposit-receiving p span{color:#8292aa}.deposit-copy{display:flex;gap:8px}.deposit-copy input{min-width:0;flex:1}.deposit-copy button{display:flex;align-items:center;gap:4px;color:#078acc}.deposit-unconfigured{text-align:center;background:#f6f9fc;border-radius:12px;padding:28px}.deposit-unconfigured svg{color:#0aa4e8}@media(max-width:700px){.deposit-flow{padding:18px 16px}.deposit-steps li{font-size:12px;gap:4px}.deposit-steps{margin-bottom:20px}.deposit-method-cards{gap:10px}.deposit-method-cards button{padding:18px 12px;grid-template-columns:24px 1fr;gap:6px}.deposit-method-cards small{font-size:11px}.deposit-method-cards button>span{display:none}.deposit-receiving{padding:14px}}

.deposit-flow .deposit-amount-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}.deposit-flow .deposit-amount-presets button{display:block;min-height:44px;padding:10px 12px;border:1px solid #d5e3f1;border-radius:8px;background:#fff;color:#536b88;font-size:15px;font-weight:600;text-align:center;cursor:pointer}.deposit-flow .deposit-amount-presets button:hover{border-color:#10a3e8;background:#f1faff}.deposit-flow .deposit-amount-presets button.active{border-color:#10a3e8;background:#eaf7ff;color:#008fd0}.deposit-flow .deposit-amount-presets button:focus-visible{outline:2px solid #10a3e8;outline-offset:3px}.deposit-flow .deposit-next{margin-top:24px}.deposit-flow input[type=number]{appearance:textfield;-moz-appearance:textfield}.deposit-flow input[type=number]::-webkit-inner-spin-button,.deposit-flow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}@media(max-width:700px){.deposit-flow .deposit-amount-presets{gap:8px}.deposit-flow .deposit-amount-presets button{padding:10px 4px;font-size:14px}}

.deposit-admin-tabs{display:flex;gap:10px;margin-bottom:22px}.deposit-admin-tabs button{min-width:100px;border:1px solid #d5e3f1;border-radius:8px;padding:12px 22px;background:white;color:#617792;font-weight:600}.deposit-admin-tabs button.active{background:#eaf7ff;color:#078acc;border-color:#10a3e8}.deposit-settings .deposit-admin-panel{margin-bottom:20px;padding:22px}.deposit-admin-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:32px}.deposit-qr-editor{display:flex;align-items:center;flex-direction:column;gap:12px}.deposit-qr-editor img,.deposit-qr-placeholder{width:180px;height:180px;object-fit:contain;border:1px solid #dce7f3;border-radius:8px;background:#fff;padding:10px}.deposit-qr-placeholder{display:grid;place-items:center;text-align:center;color:#8292aa}.deposit-settings .deposit-upload{border:1px solid #10a3e8;border-radius:8px;padding:8px 14px;color:#078acc;cursor:pointer;text-align:center}.deposit-upload input{display:block;max-width:210px;font-size:12px}.deposit-qr-editor small{color:#8292aa}.deposit-flow .deposit-payment-summary{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:16px 22px;gap:20px}.deposit-payment-summary>div{display:flex;flex-direction:column;gap:6px}.deposit-flow .deposit-payment-summary strong{font-size:26px;margin:0}.deposit-payment-summary b{font-size:17px}.deposit-receiving.has-qr{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:center}.deposit-payment-qr{text-align:center}.deposit-payment-qr img{width:172px;height:172px;object-fit:contain;background:white;padding:8px;border:1px solid #e2eaf3;border-radius:8px}.deposit-payment-qr span{display:block;margin-top:8px;color:#8292aa;font-size:13px}.deposit-receiving-details{min-width:0}.deposit-receiving-details h3{margin:0 0 16px}.deposit-flow .deposit-copy button{border:1px solid #cfe1f1;border-radius:8px;padding:10px;flex-shrink:0}.deposit-flow .deposit-copy input{margin:0}@media(max-width:700px){.deposit-admin-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.deposit-admin-tabs button{min-width:0;padding:10px 4px}.deposit-admin-layout{grid-template-columns:1fr;gap:20px}.deposit-flow .deposit-payment-summary{flex-wrap:wrap;gap:14px;padding:16px}.deposit-flow .deposit-payment-summary strong{font-size:24px}.deposit-receiving.has-qr{grid-template-columns:1fr;gap:18px}.deposit-payment-qr{order:0}.deposit-receiving-details{order:1}.deposit-copy{flex-wrap:wrap}.deposit-copy input{flex-basis:100%}}

.deposit-flow .deposit-unconfigured{border:1px solid #deebf6;background:#f8fbfe;padding:28px 24px}.deposit-support-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:#e8f5ff}.deposit-unconfigured h3{margin:0 0 10px;font-size:19px}.deposit-unconfigured>p{color:#74869d;line-height:1.6;margin:0}.deposit-flow .deposit-contact{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:180px;margin-top:20px;padding:12px 22px}.deposit-contact svg{color:white}.deposit-unconfigured .deposit-support-notice{margin-top:14px;font-size:13px}@media(max-width:700px){.deposit-flow .deposit-unconfigured{padding:24px 16px}.deposit-flow .deposit-contact{width:100%}}

.lottery-record-switch{display:flex;border-bottom:1px solid #e0eafa;padding:0 12px;gap:12px}.lottery-record-switch button{display:flex;align-items:center;gap:6px;padding:20px 8px;color:#8193ac;font-weight:600;border-bottom:3px solid transparent}.lottery-record-switch button.active{color:#079fdf;border-color:#079fdf}.lottery-recent-bets{max-height:65vh;overflow:auto}.lottery-recent-bets article{padding:16px 20px;border-bottom:1px solid #e6edf6;display:grid;gap:10px}.lottery-recent-bets article>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.lottery-recent-bets time{font-size:12px;color:#8292a8}.lottery-submit-actions{display:flex;gap:10px;margin-left:auto}.lottery-clear{min-width:70px}.lottery-recent-entry{color:#079fdf;font-weight:600}.lottery-confirm-list{max-height:260px;overflow:auto}.lottery-confirm-list>div{display:flex;justify-content:space-between;gap:20px;padding:8px 0;border-bottom:1px solid #edf1f6}.lottery-stake-bar .lottery-stake-summary{gap:12px;flex-wrap:wrap}.lottery-stake-bar .lottery-amount-row{align-items:flex-end;gap:12px}.lottery-stake-bar .lottery-amount-row label{max-width:160px}.lottery-stake-summary>strong{margin-left:auto}@media(max-width:700px){.lottery-stake-bar .lottery-stake-summary{font-size:12px;gap:6px}.lottery-stake-summary>strong{margin-left:0;width:100%}.lottery-recent-entry{margin-left:auto}.lottery-submit-actions{display:flex;margin:0;gap:8px}.lottery-stake-bar .lottery-amount-row{display:grid;grid-template-columns:1fr auto;gap:8px}.lottery-stake-bar .lottery-amount-row label{max-width:none}.lottery-stake-bar .lottery-amount-presets{grid-column:1/-1;grid-row:2}.lottery-clear{min-width:48px;padding:10px}.lottery-submit-actions .lottery-place{min-width:90px;width:auto}.lottery-recent-bets article{padding:12px 0}}

.lottery-record-switch{justify-content:space-between;padding:0 18px;gap:20px}.lottery-record-switch button{padding:20px 10px}.lottery-stake-bar .lottery-amount-presets{display:flex;align-items:center;gap:8px;margin:0}.lottery-stake-bar .lottery-amount-presets button{min-width:56px;height:48px;padding:0 12px;border:1px solid #d8e5f2;border-radius:8px;background:#fff;color:#687f9d;font-weight:600;transition:background .15s,border-color .15s,color .15s}.lottery-stake-bar .lottery-amount-presets button:hover{border-color:#10a3e8;background:#f0faff}.lottery-stake-bar .lottery-amount-presets button.active{background:#10a3e8;border-color:#10a3e8;color:#fff}.lottery-stake-bar .lottery-amount-presets button:focus-visible{outline:2px solid #10a3e8;outline-offset:3px}@media(min-width:701px){.lottery-stake-summary .lottery-recent-entry{display:none}}@media(max-width:700px){.lottery-stake-bar .lottery-amount-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.lottery-stake-bar .lottery-amount-presets button{min-width:0;width:100%;height:40px;padding:0 4px;font-size:13px}}

.payout-workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}.payout-workspace-grid h2{font-size:18px;margin-bottom:20px}.payout-binding-form{border-left:1px solid #e2ebf5;padding-left:32px}.payout-bound-card{border:1px solid #dce7f3;border-radius:10px;padding:16px;margin-bottom:12px;background:#f8fbff}.payout-bound-card code{display:block;margin-top:10px;overflow-wrap:anywhere;color:#617792}.payout-bound-card p{margin:8px 0}.payout-empty{background:#f7f9fc;padding:24px;border-radius:10px;color:#8192a9;text-align:center}@media(max-width:700px){.payout-workspace-grid{grid-template-columns:1fr;gap:24px}.payout-binding-form{border-left:0;border-top:1px solid #e2ebf5;padding:20px 0 0}}

.payout-remove-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}.payout-remove-actions button{padding:7px 12px;border:1px solid #dce7f3;border-radius:7px;background:white}.payout-remove-actions .payout-remove{color:#dc4556;border-color:#f0cbd0}.payout-remove-actions span{font-size:13px;color:#73849b}

.binding-row-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:100px}.binding-row-actions button{white-space:nowrap}.binding-delete{color:#d74656;font-weight:600}.binding-delete:disabled{opacity:.45}

@media(max-width:700px){.mobile-bottom{grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-bottom>a{flex:1;min-width:0}}

@media(max-width:767px){.spark-app:not(.admin-app) .mobile-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr;grid-auto-flow:column;align-items:center}.spark-app:not(.admin-app) .mobile-bottom>a{min-width:0;width:auto;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;white-space:nowrap;font-size:11px;padding:0 2px}.spark-app:not(.admin-app) .mobile-bottom>a svg{flex-shrink:0;width:22px;height:22px}}

/* Keep tablet administration navigation vertical inside the fixed sidebar. */
@media(min-width:601px){.admin-app .admin-sidebar{display:block;overflow-x:hidden}.admin-app .admin-sidebar button{min-height:42px;height:auto;flex:none}}


/* Consistent requested result colours across member and administrator records. */
.bet-status.won{color:#ed3b4f}.bet-status.lost{color:#149b6d}

.deposit-details-changed{padding:14px 16px;margin-bottom:16px;border:1px solid #efd59a;background:#fff8e8;border-radius:8px;color:#875c13;display:flex;align-items:center;gap:14px}.deposit-details-changed p{flex:1;line-height:1.6}@media(max-width:600px){.deposit-details-changed{flex-direction:column;align-items:stretch}}

.odds-edit-dialog{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:22px}.odds-edit-context{display:flex;flex-direction:column;gap:6px;margin:16px 0}.odds-edit-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.odds-edit-fields label{display:flex;flex-direction:column;gap:8px}.odds-edit-dialog footer{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}.lottery-admin td:last-child .text-btn+.text-btn{margin-left:16px}

/* Shared cancellation and modal actions. */
button[data-cancel="true"]{color:#fff!important;border-color:#b91c2c!important;background:#b91c2c!important}
button[data-cancel="true"]:hover:not(:disabled),button[data-cancel="true"]:focus-visible{color:#fff!important;border-color:#991b27!important;background:#991b27!important}
dialog .icon-btn:hover:not(:disabled),dialog .icon-btn:focus-visible,.catalog-close:hover,.catalog-close:focus-visible{color:#fff;background:#b91c2c;border-radius:8px}
.odds-edit-dialog footer{display:flex;width:100%;align-items:center;justify-content:space-between;gap:24px;margin-top:22px}
.odds-edit-dialog footer button{min-width:112px}

.lottery-recent-bets article{padding:12px 18px;gap:7px;font-size:13px;line-height:1.4}.lottery-recent-bets article>strong{font-size:14px}.lottery-recent-bets .recent-bet-amounts{justify-content:flex-start;gap:14px;flex-wrap:wrap}.recent-bet-amounts>span{white-space:nowrap}.recent-bet-amounts small{font-size:11px;color:#8292a8}.recent-bet-amounts b{font-size:13px;font-variant-numeric:tabular-nums}.recent-bet-amounts .state{margin-left:auto;font-size:11px;padding:3px 7px}.lottery-recent-bets .state.won{color:#c92d40;background:#ffedf0}.lottery-recent-bets .state.lost{color:#138452;background:#e8f7ee}.lottery-recent-bets .state.pending{color:#718198;background:#f0f3f7}.recent-bet-amounts .recent-bet-win{color:#c92d40}@media(max-width:700px){.lottery-recent-bets article{padding:10px 12px}.lottery-recent-bets .recent-bet-amounts{gap:10px}}

/* Paired confirmation controls: cancel left, confirmation right. */
.modal-actions:has(>button[data-cancel]),.lottery-confirm-actions:has(>button[data-cancel]),.reference-footer:has(>button[data-cancel]),.odds-edit-dialog footer:has(>button[data-cancel]){display:flex;justify-content:space-between;align-items:center;gap:24px;width:100%;flex-wrap:nowrap}
.modal-actions:has(>button[data-cancel])>button,.lottery-confirm-actions:has(>button[data-cancel])>button,.reference-footer:has(>button[data-cancel])>button,.odds-edit-dialog footer:has(>button[data-cancel])>button{width:auto;min-width:112px;max-width:48%;margin:0;order:1}
.modal-actions>button[data-cancel],.lottery-confirm-actions>button[data-cancel],.reference-footer>button[data-cancel],.odds-edit-dialog footer>button[data-cancel]{order:0!important;margin-right:auto!important}
.payout-remove-actions:has(>button[data-cancel]){justify-content:space-between}.payout-remove-actions>button[data-cancel]{order:-1;margin-right:auto}
.binding-row-actions:has(>button[data-cancel]){justify-content:space-between;gap:16px}.binding-row-actions>button[data-cancel]{order:-1}
.state.pending,.lottery-recent-bets .state.pending,.bet-status.pending{color:#986500;background:#fff3cc}
.lottery-recent-bets .recent-bet-amounts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;column-gap:20px;row-gap:0;width:100%}.recent-bet-amounts>span:not(.state){display:flex;align-items:baseline;gap:6px;min-width:0}.recent-bet-amounts .state{margin-left:0;justify-self:end}.recent-bet-amounts b{overflow-wrap:anywhere}
@media(max-width:420px){.lottery-recent-bets .recent-bet-amounts{column-gap:10px}.recent-bet-amounts>span:not(.state){gap:4px}.modal-actions:has(>button[data-cancel])>button,.lottery-confirm-actions:has(>button[data-cancel])>button,.reference-footer:has(>button[data-cancel])>button{min-width:96px;padding-left:12px;padding-right:12px}}

@media(min-width:1200px){.lottery-layout>.lottery-history{display:flex;flex-direction:column;height:var(--bet-panel-height,760px);min-height:0;max-height:none;margin-top:0;align-self:start}.lottery-history>.lottery-record-switch,.lottery-history>.lottery-history-page-heading,.lottery-history>.lottery-history-pager,.lottery-history>.lottery-history-note{flex-shrink:0}.lottery-history>.lottery-recent-bets,.lottery-history>.lottery-history-scroll{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior-y:contain}}

/* Desktop betting workspace fits the viewport in three aligned panels. */
@media(min-width:1200px){
body:has(.game-shell){overflow:hidden}
.spark-app:not(.admin-app):has(.game-shell){height:100dvh;min-height:0;display:flex;flex-direction:column;padding-bottom:0;overflow:hidden}
.spark-app:has(.game-shell)>.site-header{flex:0 0 auto}
.spark-app:has(.game-shell) .game-shell{flex:1;min-height:0;width:100%;max-width:none;margin:0;padding:12px 20px 16px;display:flex;flex-direction:column;overflow:hidden}
.game-shell .site-footer{display:none}
.game-shell .lottery-layout{flex:1;min-height:0;height:100%;padding-bottom:0;grid-template-columns:180px minmax(0,1fr) clamp(390px,27vw,510px);grid-template-rows:minmax(0,1fr);gap:16px;align-items:stretch}
.game-shell .game-page-toolbar{display:none}
.game-shell .lottery-layout>.lottery-nav,.game-shell .lottery-layout>.lottery-main,.game-shell .lottery-layout>.lottery-history{height:100%;min-height:0;margin:0;align-self:stretch;grid-row:1}
.game-shell .lottery-nav{grid-column:1;overflow-y:auto;overscroll-behavior:contain}
.game-shell .lottery-main{grid-column:2;display:flex;flex-direction:column}
.game-shell .lottery-history{grid-column:3;display:flex;flex-direction:column}
.game-shell .lottery-game-header,.game-shell .lottery-section-tabs,.game-shell .lottery-stake-bar{flex-shrink:0}
.game-shell .lottery-market-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 20px}
.game-shell .lottery-game-header{padding:18px 20px;gap:18px}
.game-shell .lottery-options>button{min-height:82px}
.game-shell .lottery-stake-bar{position:static;padding:14px 20px}
.game-shell .lottery-nav>a:not(.lottery-back){padding:10px 8px}
}

/* Draw results use the available result column according to game shape. */
.lottery-history:not(.history-kind-pk10) .lottery-history-head,.lottery-history:not(.history-kind-pk10) .lottery-history-row{grid-template-columns:64px minmax(0,1fr);column-gap:14px}
.lottery-history:not(.history-kind-pk10) .lottery-history-head>span:last-child{text-align:center}
.lottery-history:not(.history-kind-pk10) .lottery-history-row>.lottery-balls{width:100%;min-width:0;margin-inline:auto;justify-content:space-evenly;align-items:center;gap:8px}
.lottery-history:is(.history-kind-ssc,.history-kind-eleven,.history-kind-five39) .lottery-history-row>.lottery-balls{max-width:300px;flex-wrap:nowrap}
.lottery-history:is(.history-kind-d3,.history-kind-k3) .lottery-history-row>.lottery-balls{max-width:240px;flex-wrap:nowrap}
.lottery-history:is(.history-kind-lhc,.history-kind-ssq) .lottery-history-row>.lottery-balls{max-width:360px;flex-wrap:nowrap;gap:5px}
.lottery-history.history-kind-p28 .lottery-history-row>.lottery-balls{max-width:310px;flex-wrap:nowrap;gap:5px}
.lottery-history:not(.history-kind-pk10) .lottery-history-row .lottery-ball-unit{flex-wrap:nowrap;gap:4px}
.lottery-history.history-kind-keno .lottery-history-row>.lottery-balls{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));justify-items:center;gap:6px 3px}
@media(max-width:767px){.lottery-history:not(.history-kind-pk10) .lottery-history-head,.lottery-history:not(.history-kind-pk10) .lottery-history-row{grid-template-columns:54px minmax(0,1fr);column-gap:8px}.lottery-history:is(.history-kind-lhc,.history-kind-ssq,.history-kind-p28) .lottery-history-row>.lottery-balls{gap:3px}.lottery-history.history-kind-keno .lottery-history-row>.lottery-balls{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Balance result columns and soften independent panel scrollbars. */
@media(min-width:768px){.lottery-history:not(.history-kind-pk10) .lottery-history-head,.lottery-history:not(.history-kind-pk10) .lottery-history-row{grid-template-columns:48px minmax(0,1fr);column-gap:10px;padding-left:14px;padding-right:34px}.history-racing .lottery-history-head,.history-racing .lottery-history-row{grid-template-columns:44px minmax(0,1fr);gap:6px;padding-left:12px;padding-right:22px}.history-rank-head,.history-racing .lottery-history-row .kind-pk10{justify-items:center}}
.lottery-nav,.lottery-market-body,.lottery-history-scroll,.lottery-recent-bets{scrollbar-width:thin;scrollbar-color:rgba(105,128,153,.28) transparent}
.lottery-nav:hover,.lottery-market-body:hover,.lottery-history-scroll:hover,.lottery-recent-bets:hover{scrollbar-color:rgba(105,128,153,.52) transparent}
.lottery-nav::-webkit-scrollbar,.lottery-market-body::-webkit-scrollbar,.lottery-history-scroll::-webkit-scrollbar,.lottery-recent-bets::-webkit-scrollbar{width:6px;height:6px}
.lottery-nav::-webkit-scrollbar-track,.lottery-market-body::-webkit-scrollbar-track,.lottery-history-scroll::-webkit-scrollbar-track,.lottery-recent-bets::-webkit-scrollbar-track{background:transparent}
.lottery-nav::-webkit-scrollbar-thumb,.lottery-market-body::-webkit-scrollbar-thumb,.lottery-history-scroll::-webkit-scrollbar-thumb,.lottery-recent-bets::-webkit-scrollbar-thumb{background:rgba(105,128,153,.28);border-radius:12px}
.lottery-nav::-webkit-scrollbar-thumb:hover,.lottery-market-body::-webkit-scrollbar-thumb:hover,.lottery-history-scroll::-webkit-scrollbar-thumb:hover,.lottery-recent-bets::-webkit-scrollbar-thumb:hover{background:rgba(105,128,153,.52)}
.lottery-nav::-webkit-scrollbar-button,.lottery-market-body::-webkit-scrollbar-button,.lottery-history-scroll::-webkit-scrollbar-button,.lottery-recent-bets::-webkit-scrollbar-button{display:none;width:0;height:0}

/* Shared result spacing for every game, locale and screen size. */
.lottery-last-draw .lottery-live-result{container-type:inline-size;min-width:0}
.lottery-game-header .lottery-balls:is(.kind-ssc,.kind-eleven,.kind-five39){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(100%,340px);gap:clamp(8px,3cqw,18px);justify-items:center;margin-inline:auto}
.lottery-game-header .lottery-balls:is(.kind-d3,.kind-k3){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,240px);gap:clamp(12px,5cqw,24px);justify-items:center;margin-inline:auto}
.lottery-game-header .lottery-balls:is(.kind-ssc,.kind-eleven,.kind-five39,.kind-d3,.kind-k3) .lottery-ball-unit{width:100%;min-width:0;justify-content:center}
.lottery-game-header .lottery-balls:is(.kind-ssc,.kind-eleven,.kind-five39,.kind-d3) .lottery-ball{width:clamp(24px,10cqw,40px);height:clamp(24px,10cqw,40px);font-size:clamp(12px,4cqw,18px)}
.lottery-game-header .kind-k3 .die{width:clamp(26px,11cqw,40px);height:clamp(26px,11cqw,40px)}
.lottery-game-header .lottery-balls.kind-pk10{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:min(100%,480px);max-width:100%;gap:clamp(3px,1.5cqw,8px);justify-items:center;margin-inline:auto}
.lottery-game-header .kind-pk10 .lottery-ball-unit{width:100%;min-width:0;justify-content:center}
.lottery-game-header .kind-pk10 .lottery-ball{width:min(100%,36px);height:auto;aspect-ratio:1;font-size:clamp(10px,3.6cqw,17px)}
.lottery-game-header .lottery-balls:is(.kind-lhc,.kind-ssq){display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) minmax(0,1.4fr);width:min(100%,420px);gap:clamp(4px,2cqw,12px);margin-inline:auto;align-items:start;justify-items:center}
.lottery-game-header .kind-ssq .lottery-ball-unit,.lottery-game-header .kind-lhc .lottery-ball-unit:last-child{position:relative;min-width:0;justify-content:center}
.lottery-game-header .kind-ssq .ball-separator,.lottery-game-header .kind-lhc .ball-separator{position:absolute;left:-9px;top:8px;font-size:13px}
.lottery-game-header .lottery-balls:is(.kind-lhc,.kind-ssq) .lottery-ball{width:clamp(22px,8cqw,36px);height:clamp(22px,8cqw,36px);font-size:clamp(11px,3.5cqw,17px)}
.lottery-game-header .lottery-balls.kind-p28{width:min(100%,340px);justify-content:space-evenly;flex-wrap:nowrap;gap:clamp(4px,2cqw,12px);margin-inline:auto}.lottery-game-header .kind-p28 .lottery-ball-unit{flex-wrap:nowrap;gap:clamp(3px,1.3cqw,6px)}
.lottery-game-header .kind-p28 .lottery-ball{width:clamp(24px,9cqw,36px);height:clamp(24px,9cqw,36px);font-size:clamp(12px,3.5cqw,17px)}
.lottery-game-header .lottery-balls.kind-keno{width:min(100%,440px);margin-inline:auto;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px 4px;justify-items:center}
:lang(en) .lottery-game-title h1{line-height:1.3;overflow-wrap:break-word}:lang(en) .lottery-result-caption{font-size:11px;line-height:1.4}:lang(en) .lottery-game-header .lottery-ball-unit>small{font-size:9px;line-height:1.25}
@media(max-width:767px){.lottery-game-header .lottery-balls:is(.kind-ssc,.kind-eleven,.kind-five39){width:min(100%,300px);gap:clamp(7px,3cqw,14px)}.lottery-game-header .lottery-balls:is(.kind-d3,.kind-k3){width:min(100%,220px);gap:clamp(10px,4cqw,20px)}.lottery-game-header .lottery-balls:is(.kind-lhc,.kind-ssq){gap:3px}.lottery-game-header .kind-ssq .ball-separator,.lottery-game-header .kind-lhc .ball-separator{left:-6px;top:5px;font-size:11px}.lottery-game-header .lottery-balls.kind-keno{gap:5px 3px}.lottery-game-header .lottery-ball-unit>small{font-size:9px;line-height:1.25}:lang(en) .lottery-game-title h1{font-size:14px}:lang(en) .lottery-round-clock>small{font-size:10px;line-height:1.3}.lottery-history:not(.history-kind-pk10) .lottery-history-head>span:last-child{white-space:normal}}

/* Rapid Racer trial only: period/status beside clock, result above its own row. */
@media(min-width:768px){.racer-header-trial{background:linear-gradient(115deg,#edf3ff 0%,#e2eaff 52%,#dbe9ff 100%)}}
.racer-round-summary{display:flex;flex-direction:column;gap:9px;text-align:right;font-size:12px;line-height:1.4;color:#526986}.racer-round-summary small{font-size:12px;color:#0a9c91}.racer-round-summary .closed{color:#ad7519}
.racer-awaiting{color:#0da2e8;font-size:20px;font-weight:600;text-align:center;align-self:center}
@media(min-width:1200px){.lottery-game-header.racer-header-trial{grid-template-columns:minmax(130px,.9fr) 86px 166px minmax(0,1.7fr);gap:16px;padding:24px 22px;min-height:142px}.racer-header-trial .lottery-game-title{gap:10px}.racer-header-trial .lottery-game-title>img{width:60px;height:60px;border-radius:50%;background:#ffffffb0;box-shadow:0 2px 5px #516a881a}.racer-header-trial .lottery-game-title h1{font-size:20px;margin-bottom:8px}.racer-header-trial .lottery-round-clock{min-height:0;align-self:center;align-items:center;justify-content:center;gap:8px}.racer-header-trial .lottery-round-clock>strong.ho-clock{width:166px;min-width:166px;height:62px}.racer-header-trial .lottery-countdown-track{width:166px}.racer-header-trial .lottery-last-draw{align-self:center;display:block}.racer-header-trial .racer-live-result{min-height:86px;display:grid;grid-template-rows:24px 48px;row-gap:8px}.racer-header-trial .lottery-result-heading{height:auto;min-height:24px;margin:0;align-items:center;justify-content:center}.racer-header-trial .lottery-result-caption{font-size:12px;text-align:center;line-height:1.4}.racer-header-trial .lottery-balls.kind-pk10{grid-row:2;width:100%;gap:clamp(3px,1.4cqw,6px)}.racer-header-trial .kind-pk10 .lottery-ball{width:min(100%,34px);border-width:2px!important;font-size:clamp(10px,4cqw,16px)}}
@media(min-width:768px) and (max-width:1499px){.lottery-game-header.racer-header-trial{grid-template-columns:minmax(120px,1fr) 90px 166px;gap:12px;padding:16px 20px}.racer-header-trial .lottery-last-draw{grid-column:1/-1;width:100%}.racer-header-trial .racer-live-result{min-height:0;display:flex;flex-direction:column;gap:8px}.racer-header-trial .lottery-result-heading{height:auto;margin:0;justify-content:center}.racer-header-trial .kind-pk10{max-width:440px}.racer-header-trial .lottery-round-clock{min-height:0;align-self:center}.racer-header-trial .lottery-round-clock>strong.ho-clock{width:166px;min-width:166px}.racer-header-trial .lottery-countdown-track{width:166px}}


@media(min-width:768px){.racer-header-trial .kind-pk10 .lottery-ball{border-radius:50%!important;background:#fff!important;color:#344357!important;border-style:solid!important;border-width:2px!important}.racer-header-trial .lottery-round-clock>strong.ho-clock{background:#3e435f!important;border-radius:5px!important}.racer-header-trial .ho-clock .clock-labels text{fill:#fff!important}

.racer-header-trial .kind-pk10 .lottery-ball{border-color:var(--pk-color,#168cff)!important}

}
/* Rapid Racer: align the result center with the clock, caption at top right. */
@media(min-width:1500px){.lottery-game-header.racer-header-trial{min-height:120px;padding:18px 22px}.racer-header-trial .lottery-last-draw{align-self:center}.racer-header-trial .racer-live-result{position:relative;display:flex;align-items:center;justify-content:center;min-height:78px;padding:0}.racer-header-trial .lottery-result-heading{position:absolute;top:-5px;right:0;left:0;min-height:16px;height:auto;justify-content:flex-end}.racer-header-trial .lottery-result-caption{text-align:right;line-height:16px}.racer-header-trial .lottery-balls.kind-pk10{margin:0;transform:translateY(-4px)}.racer-header-trial .racer-awaiting{transform:translateY(-4px)}}
@media(min-width:768px) and (max-width:1499px){.racer-header-trial .lottery-result-heading{justify-content:flex-end}.racer-header-trial .lottery-result-caption{text-align:right}.lottery-game-header.racer-header-trial{padding-top:14px;padding-bottom:12px}}

.racer-trial-desktop{display:block;width:100%;min-width:0}.racer-original-mobile{display:none!important}@media(max-width:767px){.racer-trial-desktop,.racer-round-summary{display:none!important}.racer-original-mobile{display:block!important}}

/* Unified desktop draw header; mobile keeps its original rendering and styles. */
@media(min-width:768px){
.racer-header-trial .racer-live-result .lottery-balls{align-items:center}
.racer-header-trial .racer-live-result .kind-lhc{padding-top:0;align-self:center}
.racer-header-trial .racer-live-result .kind-lhc .lottery-ball-unit{position:relative}
.racer-header-trial .racer-live-result .kind-lhc .ball-separator{top:7px}
.racer-header-trial .racer-live-result .kind-p28 .lottery-ball-unit{flex-wrap:nowrap}
.racer-header-trial .racer-live-result .kind-keno{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:100%;gap:5px 3px}
.racer-header-trial .racer-live-result .kind-keno .lottery-ball{width:min(100%,25px);height:auto;aspect-ratio:1;font-size:11px}
.racer-header-trial .racer-live-result .lottery-ball-unit>small{line-height:1.25}
}
@media(min-width:1500px){.racer-header-trial .racer-live-result .lottery-balls{transform:translateY(-4px)}.racer-header-trial:has(.kind-keno) .racer-live-result{min-height:94px}.racer-header-trial:has(.kind-keno) .lottery-result-heading{top:-4px}.racer-header-trial:has(.kind-keno){min-height:132px}.racer-header-trial .racer-live-result .kind-lhc{transform:translateY(2px)}}

/* Mobile customer-service close control uses the official Crisp close action. */
.spark-support-close{display:none!important}
@media(max-width:767px){
.spark-support-close:not([hidden]){position:fixed;display:flex!important;align-items:center;justify-content:center;top:max(10px,env(safe-area-inset-top));right:10px;width:44px;height:44px;min-width:44px;padding:0;box-sizing:border-box;border:0;border-radius:50%;background:transparent;color:#64748b;box-shadow:none;z-index:2147483647;cursor:pointer;touch-action:manipulation}
body:has(#spark-support-close:not([hidden])) .crisp-client :is([aria-label="关闭聊天"],[aria-label="關閉聊天"],[aria-label="Close chat" i],[aria-label="Close chatbox" i]){visibility:hidden!important}
.spark-support-close svg{width:24px;height:24px;stroke:currentColor;stroke-width:2.5;fill:none;pointer-events:none}
.spark-support-close:active{background:#fff1f2;color:#b91c1c}
@media(hover:hover) and (pointer:fine){.spark-support-close:hover{background:#fff1f2;color:#b91c1c}}
.spark-support-close:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
}

/* Compact odds management heading: description belongs to the title, filters share one row. */
.admin-app .lottery-admin-odds{padding:20px}
.admin-app .lottery-admin-odds>.section-heading{padding:0;align-items:center;margin:0 0 18px;gap:16px}
.lottery-admin-odds .lottery-admin-heading-copy{flex:1;min-width:0}
.lottery-admin-odds .lottery-admin-heading-copy h2{margin:0;line-height:1.4}
.lottery-admin-odds .lottery-odds-description{margin:6px 0 0;line-height:1.5;font-size:13px}
.admin-app .lottery-admin-odds .lottery-admin-filters{margin:0 0 16px;align-items:center}
.admin-app .lottery-admin-odds .lottery-admin-filters>label{display:flex;position:relative;align-items:center;margin:0;min-width:0;gap:0}
.lottery-admin-odds .lottery-admin-filters>label>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8192aa;pointer-events:none}
.admin-app .lottery-admin-odds .lottery-admin-filters input{height:44px;padding-left:42px}
.admin-app .lottery-admin-odds .lottery-admin-filters>select{height:44px;min-width:150px;margin:0}
.admin-app .lottery-admin-odds>.section-heading>select{height:44px;margin:0;max-width:100%}
@media(max-width:600px){.admin-app .lottery-admin-odds{padding:16px}.admin-app .lottery-admin-odds>.section-heading{align-items:flex-start;gap:12px}.admin-app .lottery-admin-odds>.section-heading>select{width:100%}.admin-app .lottery-admin-odds .lottery-admin-filters>label{flex-basis:100%}.admin-app .lottery-admin-odds .lottery-admin-filters>select{width:100%}}

/* Compact account entry with an explicit exit on every form. */
.entry-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.entry-return{display:inline-flex;align-items:center;min-height:44px;color:var(--blue-dark);font-size:13px}
.entry-toolbar .language{margin-left:0;min-height:44px}
.register-page .login-box{padding:18px 24px;width:420px}
.register-page .login-box .brand{margin-bottom:8px}
.register-page .login-box h1{margin:12px 0 16px;font-size:21px}
.register-page .login-box form{gap:10px}
.register-page .login-box label{gap:5px}
.register-page .login-box form .negative:not(:empty){margin:0}
.register-page .login-box .captcha-image{height:48px;width:150px}
.register-page .login-box .back-link{display:flex;align-items:center;min-height:40px;text-align:center;line-height:1.4}
@media(max-width:767px){.register-page{padding:12px;align-items:flex-start}.register-page .login-box{padding:14px 18px;margin:auto}.register-page .login-box h1{margin:8px 0 12px}.register-page .login-box form{gap:9px}}

.register-page .login-box .platform-logo{width:145px;height:36px}.entry-invite summary{cursor:pointer;min-height:32px;display:list-item;list-style-position:inside;color:var(--muted);padding:6px 0}.entry-invite label{margin-top:4px!important}

/* Desktop Happy 8: readable balls in a compact, centered two-row group. */
@media(min-width:768px){
.racer-header-trial .racer-live-result .lottery-balls.kind-keno{width:min(100%,354px);grid-template-columns:repeat(10,minmax(0,30px));gap:6px;margin-inline:auto;justify-content:center;justify-items:center}
.racer-header-trial .racer-live-result .kind-keno .lottery-ball-unit{width:100%;min-width:0;justify-content:center}
.racer-header-trial .racer-live-result .kind-keno .lottery-ball{width:100%;max-width:30px;height:auto;aspect-ratio:1;font-size:13px;line-height:1;border-width:2px!important}
}

.avatar-change{padding:0;overflow:hidden;flex-shrink:0;border:3px solid white;cursor:pointer}.avatar-change img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-overlay{position:fixed;inset:0;background:#152a4877;z-index:1100;display:grid;place-items:center;padding:16px}.avatar-picker{width:min(460px,100%);max-height:90dvh;overflow:auto;background:white;border-radius:16px;padding:22px}.avatar-picker header,.avatar-picker footer{display:flex;align-items:center;justify-content:space-between;gap:16px}.avatar-picker header>button{font-size:28px;width:44px;height:44px}.avatar-picker header>button:hover{color:#bd1830}.avatar-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.avatar-options button{padding:8px;border:2px solid transparent;border-radius:12px;background:#f5f9ff}.avatar-options button[aria-pressed=true]{border-color:#159cdd;background:#e8f6ff}.avatar-options img{display:block;width:100%;aspect-ratio:1;border-radius:50%;object-fit:cover}.avatar-options span{display:block;font-size:12px;margin-top:7px}.avatar-picker footer button{min-width:100px}.management-user-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;float:left;margin-right:8px}

.avatar-picker{border:0;color:var(--ink)}.avatar-picker::backdrop{background:#152a4877}

/* Lucky mascots: dark portrait tiles with restrained metallic framing. */
.mascot-picker .avatar-options button{background:#13233f;border-color:#d5dfed;color:#ecf2ff;padding:8px}
.mascot-picker .avatar-options button[aria-pressed=true]{border-color:#bda263;box-shadow:0 0 0 2px #bda26333;background:#203554}
.mascot-picker .avatar-options img{background:#10213b}
.mascot-picker .avatar-options span{min-height:30px;display:flex;align-items:center;justify-content:center;line-height:1.3;white-space:normal}
@media(max-width:480px){.mascot-picker{padding:18px;width:calc(100vw - 28px)}.mascot-picker .avatar-options{gap:10px}.mascot-picker .avatar-options button{padding:6px}.mascot-picker .avatar-options span{font-size:11px}}

.mascot-picker .avatar-options{grid-template-columns:repeat(4,minmax(0,1fr))}.mascot-picker{width:min(560px,calc(100vw - 28px))}@media(max-width:480px){.mascot-picker .avatar-options{grid-template-columns:repeat(3,minmax(0,1fr))}}
.mascot-picker .avatar-options{max-height:58dvh;overflow-y:auto;padding:3px;scrollbar-width:thin;scrollbar-color:#c1ccdc transparent}
.member-bet-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:12px}.member-bet-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted);min-width:155px}.member-bet-filters select,.member-bet-filters input{min-height:44px;max-width:100%;background:white;color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:10px 12px;font:inherit;font-size:14px}.bet-custom-dates{display:flex;gap:12px}.bet-filter-note{font-size:12px;color:var(--muted);margin:0 0 16px}.member-bet-filters .compact{min-height:44px}
@media(max-width:767px){.member-bet-filters>.bet-time-filter{grid-column:1;grid-row:2}.member-bet-filters>.compact{grid-column:2;grid-row:2}.member-bet-filters>.bet-custom-dates{grid-row:3}}
@media(max-width:767px){.member-bet-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.member-bet-filters label{min-width:0}.member-bet-filters select,.member-bet-filters input{width:100%;min-width:0;font-size:13px}.member-bet-filters .bet-custom-dates{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.member-bet-filters>.compact{justify-self:end;min-width:85px}}


/* SPARK PC HOME V2 */
.pc-home-grid{display:contents}.pc-page-count{display:none}
@media(min-width:768px){
 .pc-home-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(280px,1fr);column-gap:20px;row-gap:22px;align-items:start;margin-top:24px}
 .pc-home-grid>.lobby-highlights,.pc-home-grid>.live-lobby{display:contents}
 .pc-home-grid .lobby-highlight-cards{grid-column:1;grid-row:1;min-width:0;align-items:end}
 .pc-home-grid .live-lobby-primary{grid-column:1;grid-row:2;min-width:0}
 .pc-home-grid .live-lobby-aside{grid-column:2;grid-row:1/span 2;display:grid;gap:18px;align-content:start;min-width:0;padding-top:0}
 .pc-home-grid .lobby-highlight-recommended{padding:20px;margin:0}
 .pc-home-grid .lobby-highlight-recommended h2{font-size:16px;margin:0 0 18px;padding-bottom:12px}
 .pc-home-grid .lobby-highlight-recommended>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 8px}
 .pc-home-grid .lobby-highlight-recommended a{gap:5px;min-width:0;border-radius:8px;padding:3px 0}
 .pc-home-grid .lobby-highlight-recommended img{width:64px;height:64px;object-fit:contain}
 .pc-home-grid .lobby-highlight-recommended strong{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
 .pc-home-grid .lobby-highlight-recommended small{font-size:11px;line-height:1.4}
 .pc-home-grid .live-popular{padding:20px;margin:0}
 .pc-home-grid .live-popular h2{margin:0 0 8px;padding:0 0 12px;font-size:16px}
 .pc-home-grid .live-popular>a{min-height:44px;padding-top:10px;padding-bottom:10px}
 .pc-home-grid .lobby-pagination{flex-wrap:wrap;row-gap:10px}
 .pc-home-grid .pc-page-count{display:block;flex-basis:100%;text-align:center;font-size:11px;color:#7d8da4}
 .pc-home-grid a:focus-visible,.pc-home-grid button:focus-visible{outline:2px solid #159fe8;outline-offset:3px}
}
@media(min-width:768px) and (max-width:1050px){
 .pc-home-grid{grid-template-columns:minmax(0,1fr) 260px;column-gap:14px}
 .pc-home-grid .lobby-highlight-recommended,.pc-home-grid .live-popular{padding:14px}
 .pc-home-grid .lobby-highlight-recommended img{width:48px;height:48px}
 .pc-home-grid .lobby-highlight-recommended strong{font-size:10px}
 .pc-home-grid .lobby-highlight-recommended small{font-size:9px}
}
@media(max-width:767px){.pc-home-grid{display:none}}
