/* One continuous playfield: all controls belong to the game viewport. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{height:100dvh;background:#b8a593}.app-layout,.watch-column{display:contents}.scene-wrap{position:fixed;inset:0;width:100%;height:100%;min-height:0;border:0;border-radius:0}.scene-wrap iframe{width:100%;height:100%}.scene-gradient{background:linear-gradient(180deg,#251d2bca,transparent 28%,transparent 65%,#211a2b99)}.app-header{position:fixed;top:0;left:0;right:0;z-index:5;max-width:none;height:70px;padding:12px 28px;border:0;background:linear-gradient(#241e2c80,transparent);gap:18px}.logo{font-size:12px}.logo small{font-size:8px}.logo-orb{width:32px;height:32px}.preview-label{font-size:8px;backdrop-filter:blur(12px);background:#2c233640}.wallet{padding:8px 13px;border-radius:30px;background:#2b233c66;backdrop-filter:blur(15px)}.wallet b{font-size:17px}.wallet>span{font-size:9px}.icon-button{background:#2b233c66;backdrop-filter:blur(15px)}.race-heading{position:fixed;z-index:4;top:78px;left:28px;right:28px;height:24px;align-items:center}.status-pill{margin:0;backdrop-filter:blur(12px);background:#23203277}.race-heading>div{padding:6px 9px;border-radius:6px;background:#29213170;backdrop-filter:blur(12px)}.scene-top{top:122px;left:30px;right:30px}.scene-top small{font-size:8px}.scene-top h1{font-size:27px;margin:9px 0}.scene-top p{font-size:10px}.camera-button{background:#29213188;font-size:10px}.count-clock{left:auto;right:30px;top:177px}.scene-bottom{left:28px;right:auto;bottom:auto;top:230px}.scene-bottom>span:last-child{display:none}.event-track,.tickets-section,.history-section,.app-footer{display:none}.bet-panel{position:fixed;z-index:6;left:24px;right:24px;bottom:18px;margin:0 auto;max-width:1232px;width:auto;border:1px solid #eadbf133;border-radius:18px;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:8px 18px;padding:14px 18px;background:linear-gradient(130deg,#2f263ee8,#292236d9);backdrop-filter:blur(22px);box-shadow:0 12px 50px #1e142b45}.panel-heading,.panel-intro{display:none}.select-toolbar{grid-column:1;grid-row:1;padding:0;height:25px;font-size:10px;justify-content:flex-start;gap:14px}.select-toolbar>div{margin-left:auto}.select-toolbar button{font-size:10px;min-height:28px}.select-toolbar .my-tickets{color:#d4c0e5;background:#ffffff0a;border:1px solid #ffffff16;border-radius:20px;padding:5px 10px;min-height:28px;font-size:9px}.ball-grid{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(15,minmax(0,1fr));padding:0;gap:5px}.ball-card{min-height:64px;padding:6px 1px 5px;background:#ffffff08;border-color:#fff2;border-radius:8px}.ball-card .orb{width:23px;height:23px}.ball-card strong{font-size:8px;margin-top:5px;white-space:nowrap}.ball-card small{font-size:7px;margin-top:3px;color:#d5c4dc}.ball-card.out{opacity:.35}.bet-controls{grid-column:2;grid-row:1/span 3;padding:0;display:grid;grid-template-columns:105px 1fr;gap:7px 10px;align-content:center}.bet-controls>label{grid-column:1/-1;margin:0;font-size:9px}.amount-field{height:32px}.amount-field button{width:28px;font-size:16px}.amount-field input{font-size:13px}.quick-amounts{margin:0;gap:4px}.quick-amounts button{font-size:9px;padding:0}.bet-summary{margin:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;font-size:8px}.bet-summary strong{font-size:18px}.bet-summary strong small{font-size:12px}.bet-button{min-height:40px;padding:9px 11px;font-size:10px;white-space:nowrap}.bet-button span{font-size:16px}.bet-feedback{display:none}.preview-start{grid-column:1/-1;margin:0;padding:1px;height:22px;font-size:9px}.panel-footer{grid-column:1;grid-row:3;border:0;padding:0;font-size:8px;justify-content:flex-start;gap:24px;color:#bba8c8}.panel-footer b{color:#e3cce8}.race-announcement{top:40%;max-width:90vw;white-space:normal;width:max-content}.result-card{top:41%;max-height:calc(100dvh - 290px);overflow:auto}.result-card .champion-orb{margin:12px auto}.result-card h2{font-size:21px}.result-card p{font-size:10px}.result-card .result-paid{font-size:27px;margin:10px 0}.result-card button{margin-top:14px}dialog{max-height:85dvh;overflow:auto}dialog .classic-link{display:block;font-size:11px;margin:18px 0;color:#e3c696}#tickets-dialog h3{font-size:13px;margin:24px 0 12px}#notice{z-index:30;top:75px;max-width:90vw;font-size:11px}.scene-top,.scene-bottom,.count-clock{pointer-events:none}.camera-button{pointer-events:auto}
body:not([data-phase="betting"]) .bet-controls{display:none}body:not([data-phase="betting"]) .bet-panel{grid-template-columns:minmax(0,1fr);max-width:1100px}body:not([data-phase="betting"]) .panel-footer{display:none}body:not([data-phase="betting"]) .select-toolbar>div{display:none}body:not([data-phase="betting"]) .select-toolbar .my-tickets{margin-left:auto}body:not([data-phase="betting"]) .ball-card{min-height:57px}body:not([data-phase="betting"]) .scene-top h1{font-size:22px}body:not([data-phase="betting"]) .scene-top p{display:none}
@media(max-width:1000px) and (min-width:781px){.bet-panel{grid-template-columns:minmax(0,1fr) 240px;padding:12px;gap:7px 12px}.ball-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.ball-card{min-height:51px}.ball-card .orb{width:18px;height:18px}.ball-card strong{margin-top:3px}.ball-card small{display:none}body:not([data-phase="betting"]) .ball-grid{grid-template-columns:repeat(15,minmax(0,1fr))}.bet-controls{grid-template-columns:90px 1fr}.result-card{max-height:calc(100dvh - 320px)}}
@media(max-width:780px){.app-header{height:58px;padding:calc(9px + env(safe-area-inset-top)) 13px 8px;gap:9px}.logo{font-size:10px;gap:7px;letter-spacing:1px;white-space:nowrap}.logo small{font-size:7px;letter-spacing:2px}.logo-orb{width:26px;height:26px}.wallet{gap:5px;padding:7px 9px}.wallet>span{font-size:7px;max-width:28px;line-height:1.3}.wallet b{font-size:14px}.wallet i{font-size:14px}.icon-button{width:28px;height:28px;flex:none}.race-heading{top:calc(66px + env(safe-area-inset-top));left:13px;right:13px;font-size:9px}.race-heading>div{gap:6px;padding:5px 7px}.course-name{font-size:8px;padding-left:6px}.status-pill{font-size:8px;padding:5px 7px}.scene-top{top:calc(110px + env(safe-area-inset-top));left:16px;right:14px}.scene-top small{font-size:6px;letter-spacing:1.5px}.scene-top h1{font-size:23px;margin:7px 0}.scene-top p{font-size:9px;max-width:220px;line-height:1.6}.camera-button{position:fixed;right:14px;top:calc(110px + env(safe-area-inset-top));max-width:110px;font-size:8px;padding:7px 9px}.count-clock{right:16px;left:auto;top:calc(157px + env(safe-area-inset-top));width:53px;height:53px}.count-clock svg{width:53px;height:53px}.count-clock b{font-size:18px}.count-clock small{font-size:6px}.scene-bottom{top:calc(210px + env(safe-area-inset-top));left:16px;bottom:auto;right:auto}.scene-bottom>span:first-child{font-size:8px;padding:5px 8px}.bet-panel{left:9px;right:9px;bottom:calc(8px + env(safe-area-inset-bottom));max-width:520px;display:block;padding:9px 10px 7px;border-radius:18px;background:linear-gradient(150deg,#30263ce8,#292235dd);backdrop-filter:blur(17px)}.select-toolbar{height:27px;padding:0;margin-bottom:6px;font-size:9px;gap:8px}.select-toolbar>div{display:flex;gap:12px}.select-toolbar button{padding:0;font-size:9px;min-height:27px}.select-toolbar .my-tickets{padding:4px 8px;font-size:8px;min-height:24px}.ball-grid{grid-template-columns:repeat(5,minmax(0,1fr));padding:0;gap:4px}.ball-card{min-height:48px;height:48px;padding:5px 3px;display:grid;grid-template-columns:23px 1fr;grid-template-rows:1fr 1fr;gap:0 3px;text-align:left}.ball-card .orb{width:23px;height:23px;grid-row:1/span 2;grid-column:1;justify-self:center}.ball-card strong{font-size:8px;margin:0;grid-column:2;align-self:end;letter-spacing:-.3px}.ball-card small{font-size:7px;margin:2px 0 0;grid-column:2;align-self:start;white-space:nowrap}.ball-card.committed:after{font-size:12px;right:2px;top:-2px}.bet-controls{display:grid;padding:0;margin-top:8px;grid-template-columns:104px minmax(0,1fr);gap:6px 9px}.bet-controls>label{display:none}.amount-field{height:31px;grid-column:1;grid-row:1}.amount-field input{font-size:16px}.amount-field button{width:28px}.quick-amounts{grid-column:2;grid-row:1;height:31px;gap:5px}.quick-amounts button{font-size:10px}.bet-summary{grid-column:1;grid-row:2;font-size:8px}.bet-summary strong{font-size:18px}.bet-button{grid-column:2;grid-row:2;min-height:39px;font-size:11px;padding:9px 12px}.preview-start{height:21px;grid-column:1/-1;grid-row:3;font-size:8px;padding:0}.panel-footer{display:none}.race-announcement{top:36%;font-size:15px;padding:13px 16px}.race-announcement small{font-size:9px}.result-card{top:38%;width:252px;padding:18px;max-height:calc(100dvh - 290px)}.result-card .champion-orb{width:38px;height:38px;margin:10px auto}.result-card h2{font-size:19px;margin-bottom:8px}.result-card .result-paid{font-size:24px;margin:8px 0}.result-card p{font-size:9px}.result-card .result-details{margin-top:10px;padding-top:9px}.result-card button{margin-top:12px}body:not([data-phase="betting"]) .bet-panel{max-width:520px}body:not([data-phase="betting"]) .ball-card{min-height:33px;height:33px;grid-template-columns:18px 1fr;padding:3px}body:not([data-phase="betting"]) .ball-card .orb{width:17px;height:17px}body:not([data-phase="betting"]) .ball-card strong{font-size:8px}body:not([data-phase="betting"]) .ball-card small{font-size:7px;margin-top:1px}body:not([data-phase="betting"]) .scene-top h1{font-size:21px}body:not([data-phase="betting"]) .scene-bottom{top:calc(185px + env(safe-area-inset-top))}}
@media(max-width:780px) and (max-height:700px){.scene-top{top:99px}.scene-top>div>small,.scene-top p{display:none}.scene-top h1{font-size:20px}.camera-button{top:101px}.count-clock{top:142px;width:46px;height:46px}.count-clock svg{width:46px;height:46px}.count-clock b{font-size:17px}.scene-bottom{top:151px}.bet-panel{padding:7px 9px 5px}.select-toolbar{height:25px;margin-bottom:4px}.ball-card{min-height:44px;height:44px}.bet-controls{margin-top:6px;gap:5px 8px}.preview-start{height:18px}.result-card{top:40%;max-height:calc(100dvh - 235px);padding:13px}.result-card .champion-orb{width:30px;height:30px;margin:7px auto}.result-card .result-details{margin-top:7px;padding-top:7px}.result-card button{margin-top:9px}.race-announcement{top:34%}}
@media(orientation:landscape) and (max-height:560px){.app-header{height:48px;padding:7px 16px}.race-heading{top:53px;left:16px;right:16px}.scene-top{top:85px;left:18px}.scene-top small,.scene-top p{display:none}.scene-top h1{font-size:20px}.camera-button{position:fixed;right:16px;top:85px}.count-clock{top:122px;right:18px;width:46px;height:46px}.count-clock svg{width:46px;height:46px}.scene-bottom{top:132px;left:18px}.bet-panel{left:9px;right:9px;bottom:7px;display:grid;grid-template-columns:minmax(0,1fr) 228px;max-width:1100px;padding:8px 10px;gap:5px 10px}.select-toolbar{height:22px;margin:0}.ball-grid{grid-template-columns:repeat(15,minmax(0,1fr));gap:3px}.ball-card{display:flex;min-height:47px;height:47px;padding:4px 0}.ball-card .orb{width:17px;height:17px}.ball-card strong{font-size:7px;margin-top:3px}.ball-card small{font-size:6px;margin-top:2px}.bet-controls{display:grid;margin:0;grid-template-columns:80px 1fr;gap:5px}.bet-controls>label,.panel-footer{display:none}.quick-amounts{gap:3px}.quick-amounts button{font-size:8px}.amount-field{height:27px}.amount-field button{width:22px}.amount-field input{font-size:13px}.bet-button{min-height:31px;font-size:9px;padding:7px}.preview-start{height:17px;font-size:8px}.bet-summary strong{font-size:16px}.result-card{top:42%;max-height:calc(100dvh - 130px);padding:12px;width:240px}.result-card .champion-orb{display:none}.result-card h2{font-size:18px;margin-top:9px}.result-card .result-paid{font-size:23px;margin:7px 0}.result-card p{margin:4px 0}.result-card button{margin-top:8px}.race-announcement{top:42%}}
#notice{opacity:0;visibility:hidden;pointer-events:none}#notice.visible{opacity:1;visibility:visible}
.amount-field::before{content:'每球';font-size:7px;color:#bdaaca;white-space:nowrap;padding-left:5px;flex:none}@media(max-width:780px){.amount-field button{width:22px}}
#notice{width:max-content;max-width:calc(100vw - 32px)}
