*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;overscroll-behavior:none;font-family:system-ui,-apple-system,sans-serif;background:#e6ebe8;color:#202a25}button,select{font:inherit;touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.4;cursor:default}#app{height:100vh;height:100dvh;max-width:1100px;margin:auto;background:#f7f8f6;display:grid;grid-template-rows:57px minmax(0,1fr) 60px;overflow:hidden;box-shadow:0 0 36px #0002}header{display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#202923;color:white;border-bottom:3px solid #509260}header small{display:block;font-size:8px;letter-spacing:1.4px;color:#afc2b3}header b{font-size:clamp(17px,4.5vw,25px);letter-spacing:.5px}header span{color:#a7d7a5}#year{font-size:11px;text-align:right}main{min-height:0;overflow:hidden;display:flex;flex-direction:column;gap:8px;padding:10px}nav{display:flex;background:#232b26;padding:4px 4px max(4px,env(safe-area-inset-bottom));gap:4px}nav button{flex:1;color:#bbc9bd;background:none;border:0;border-radius:7px;font-size:11px;font-weight:bold;display:grid;place-content:center;gap:3px;text-align:center}nav button.active{background:#385644;color:white}nav i{font-style:normal;font-size:19px;line-height:1}h1,h2,h3,p{margin:0}h1{font-size:clamp(20px,5vw,32px)}h2{font-size:18px}.eyebrow{font-size:10px;font-weight:800;color:#40784b;letter-spacing:1.5px}.muted{font-size:11px;color:#65736a}.panel{border:1px solid #dce3dc;background:white;border-radius:9px;padding:10px;min-height:0}.row{display:flex;align-items:center;justify-content:space-between;gap:8px}.grow{flex:1;min-height:0;min-width:0}.primary,.secondary{border:0;border-radius:6px;padding:9px 12px;font-weight:750;font-size:13px;min-height:35px}.primary{background:#287443;color:white}.secondary{background:#edf2ed;color:#254c35;border:1px solid #d7e2d8}.full{width:100%}.tag{font-size:10px;font-weight:800;border:1px solid #cbded0;color:#2b6c42;padding:3px 7px;border-radius:4px;white-space:nowrap}.hero,.view{position:relative;background:#15271c;border-radius:8px;overflow:hidden;flex:1;min-height:0;isolation:isolate}.hero canvas,.view canvas{display:block;width:100%;height:100%;position:absolute;inset:0}.overlay{position:absolute;top:8px;left:8px;right:8px;display:flex;justify-content:space-between;align-items:flex-start;color:#fff;pointer-events:none;font-size:11px;font-weight:bold;text-shadow:0 1px 3px #000}.darkpill{background:#17231ddc;border-radius:4px;padding:5px 7px}.heroBottom{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#101c16e8);color:white;padding:25px 12px 12px;pointer-events:none}.heroBottom p{font-size:11px;color:#e2ece1}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tiles button{text-align:left}.tiles small{display:block;font-weight:400;font-size:10px;opacity:.8;margin-top:2px}.list{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:space-evenly;gap:5px}.horse{flex:1;min-height:0;max-height:78px;border:1px solid #e0e6df;border-radius:6px;background:white;padding:6px 8px;display:flex;align-items:center;gap:8px;overflow:hidden}.horse .num,.num{width:27px;height:28px;display:grid;place-items:center;border:1px solid #0002;border-radius:4px;font-size:13px;font-weight:900;flex:none}.horse b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.horse small{font-size:10px;white-space:nowrap;color:#65736a}.horse .form{font-size:11px;font-weight:750;white-space:nowrap}.horse.selected{border:2px solid #327747;background:#edf7ec}.pages{display:flex;justify-content:space-between;align-items:center;gap:8px}.pages button{min-height:30px;padding:4px 12px}.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.slot{height:58px;background:#fff;border:1px solid #dce3dc;border-radius:6px;color:#25372b;font-size:11px;overflow:hidden}.slot strong{font-size:16px;display:block}.slot b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.progress{height:6px;background:#e4e9e3;border-radius:3px;overflow:hidden}.progress div{height:100%;background:#377f4c}.rankstrip{display:flex;gap:4px;overflow:hidden;min-height:34px}.rankstrip>div{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;font-size:10px;color:#435248;background:white;border:1px solid #e0e4df;border-radius:4px}.rankstrip .num{width:22px;height:22px;font-size:11px}.comment{font-size:12px;font-weight:700;min-height:28px;padding:7px 9px;border-left:3px solid #3c8754;background:white}.controls{display:flex;gap:5px}.controls button{flex:1;padding:5px 3px;min-height:30px;font-size:11px}.controls .on{background:#263c2d;color:white}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.stats>div{background:#fff;border:1px solid #dce3dc;border-radius:7px;padding:8px;text-align:center}.stats strong{font-size:20px;display:block}.stats small{font-size:10px;color:#65736a}.results{display:grid;grid-template-columns:27px 28px minmax(0,1fr) 65px 47px;gap:6px;align-items:center;font-size:12px;flex:1;min-height:0;background:white;padding:4px 7px;border-bottom:1px solid #e2e6df}.results b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.titlebar{flex:none}.medal{font-size:24px;font-weight:800;color:#357447}.weather{font-size:12px;font-weight:650}.error{padding:10px;color:white;position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:#233c2b}.mini{font-size:10px;line-height:1.4}.course{font-size:12px;line-height:1.5}.nowrap{white-space:nowrap}.detailGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px}.detailGrid div{background:#f0f4f0;padding:8px;border-radius:5px}.detailGrid b{display:block}.map{width:100%;height:100px}.schedule{display:grid;gap:4px;flex:1;min-height:0}.schedule div{display:flex;justify-content:space-between;align-items:center;gap:6px;background:#fff;border:1px solid #e0e5e0;border-radius:5px;padding:5px 7px;font-size:11px;min-height:0}.schedule .current{border-color:#438253;background:#e9f5e9}@media(max-height:650px){#app{grid-template-rows:48px minmax(0,1fr) 51px}main{padding:6px;gap:5px}.panel{padding:7px}.horse{padding:3px 5px}.slot{height:43px}.primary,.secondary{padding:5px 9px;min-height:29px}.stats>div{padding:4px}.stats strong{font-size:16px}.heroBottom{padding:15px 9px 8px}.map{height:65px}}@media(min-width:750px){main{padding:13px;gap:10px}.horse b{font-size:15px}.horse small,.horse .form{font-size:12px}.heroBottom h1{font-size:32px}.results{font-size:14px}}
/* V0.3 original sports-broadcast visual system */
:root{--ink:#182335;--navy:#101a2c;--blue:#1465c4;--light:#e9eff7;--line:#cbd5e3}html,body{background:#0b1220;color:var(--ink)}#app{background:linear-gradient(145deg,#e8edf3,#fff 50%,#e6edf5);grid-template-rows:58px minmax(0,1fr) 66px;max-width:960px}header{background:linear-gradient(110deg,#090f1c,#223653 70%,#14243d);border-bottom:2px solid #659ced;padding:0 13px}header small{color:#a5b9d8;font-size:8px;letter-spacing:1.6px}header b{font-style:italic;letter-spacing:.2px}header span{color:#87b8ff}#year{color:#e1ecff;font-weight:800}nav{background:linear-gradient(#25364e,#111927);border-top:2px solid #7791ad;border-radius:0;gap:1px;padding:0 0 env(safe-area-inset-bottom)}nav button{border-radius:0;border-right:1px solid #ffffff18;color:#c4cfde;position:relative;font-size:11px}nav button.active{background:linear-gradient(#276bb3,#173c76);color:white;box-shadow:inset 0 3px #82bbff}nav i{font-size:24px}main{gap:8px;padding:10px}.eyebrow{color:#215b9e}.muted{color:#607188}.panel,.horse,.slot,.stats>div{border:1px solid var(--line);border-radius:4px;background:linear-gradient(#fff,#f3f6fa);box-shadow:0 2px 5px #263d5b0b}.primary,.secondary{border-radius:4px}.primary{background:linear-gradient(#2a81df,#1551a0);border:1px solid #124e9b;box-shadow:inset 0 1px #ffffff55;color:#fff}.secondary{background:linear-gradient(#fff,#e0e8f2);color:#233e5f;border-color:#bfcde0}.tag{border-color:#b7cce6;color:#24558a;background:#eef5ff;border-radius:3px}.hero,.view{border:1px solid #24384f;border-radius:4px;background:#17263d}.heroBottom{background:linear-gradient(transparent,#081423ed);padding:32px 13px 13px}.heroBottom h1{font-weight:900;letter-spacing:-.6px;text-shadow:0 2px 4px #0009}.heroGrade{display:inline-block;font-weight:900;font-size:15px;color:#f2e0ac;letter-spacing:1px}.heroGrade span{font-size:10px;color:#d2e3ff}.darkpill{background:#101c30d9;border:1px solid #ffffff33;border-radius:2px}.liveLabel{color:#b6e0ff}.seasonbar{background:linear-gradient(110deg,#172a47,#2a4e7a);color:#fff;border-left:4px solid #8abaff;display:flex;align-items:center;justify-content:space-between;padding:7px 12px;min-height:49px;box-shadow:0 2px 4px #1c314c20}.seasonbar small,.seasonbar b{display:block}.seasonbar small{font-size:9px;color:#a9c8ef;letter-spacing:1.1px}.seasonbar b{font-size:16px}.seasonCount{font-size:24px;font-weight:850;font-style:italic}.seasonCount span{font-size:12px;color:#aebfd6}.raceStart{flex:none;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(110deg,#183f78,#2277ca 80%,#124c98);color:white;border:1px solid #1c5fa6;border-radius:4px;box-shadow:inset 0 1px #ffffff55,0 3px 5px #0b336e25;text-align:left;padding:9px 16px;min-height:61px}.raceStart small{display:block;font-size:9px;letter-spacing:1.4px;color:#c9e3ff}.raceStart strong{font-size:22px;font-style:italic}.playArrow{font-size:24px;color:#d1eaff}.homeTiles{gap:6px}.homeTiles button{min-height:56px;display:flex;align-items:center;gap:10px;background:linear-gradient(145deg,#fff,#e1e9f4);border:1px solid #b8c8da;border-radius:4px;padding:7px 10px;color:#1a2d47;font-weight:850;font-size:14px}.homeTiles i{font-style:normal;font-size:23px;color:#2b649e;width:27px;text-align:center}.homeTiles small{color:#586f8c;opacity:1}.homeNews{display:flex;align-items:center;gap:8px;font-size:10px;min-height:28px;background:#fff;border:1px solid #cbd5e3;overflow:hidden;white-space:nowrap}.homeNews b{background:#243956;color:white;align-self:stretch;display:grid;place-items:center;padding:0 7px;font-size:9px}.homeNews span{overflow:hidden;text-overflow:ellipsis}.horse.selected{border:2px solid #367bc4;background:#e1edff}.horse small,.stats small{color:#61738c}.slot{color:#253e63}.slot strong{color:#2464a7}.progress{background:#bfcbdc}.progress div{background:linear-gradient(90deg,#19549a,#71b6fa)}.rankstrip>div{background:linear-gradient(#fff,#e6edf6);border-color:#c4d0df;color:#203b60}.comment{border-left:4px solid #2a69ae;background:#f9fbff;color:#182d49;box-shadow:0 1px 4px #0001}.controls .on{background:#233c62;color:white}.medal{color:#193e73;font-weight:900}.medal small{display:block;font-size:10px;color:#5778a3;letter-spacing:1.5px}.results{background:#f8fbff;border-bottom-color:#cbd6e4}.schedule div{border-color:#cbd5e3}.schedule .current{border-color:#3678bf;background:#e1efff}.detailGrid div{background:#e9f0fa}.stats strong{color:#235899}.titlebar{border-left:3px solid #2568b1;padding-left:8px}.error{background:#24384f}.homeHero{min-height:0}@media(max-height:650px){#app{grid-template-rows:46px minmax(0,1fr) 51px}main{gap:5px;padding:6px}.seasonbar{min-height:36px;padding:3px 8px}.seasonbar b{font-size:13px}.seasonCount{font-size:19px}.homeTiles button{min-height:43px;padding:4px 7px}.raceStart{min-height:45px;padding:4px 10px}.raceStart strong{font-size:17px}.homeNews{min-height:22px}.heroBottom{padding:15px 9px 8px}}@media(min-width:750px){.homeTiles button{min-height:61px}.homeHero{flex:1}}
/* V0.4: edge-to-edge race broadcast and independent club events */
#app.watch-full{display:block;max-width:none;position:fixed;inset:0;width:100%;height:100dvh;background:#101925}
#app.watch-full header,#app.watch-full nav{display:none}
#app.watch-full main{position:absolute;inset:0;padding:0;display:block;overflow:hidden}
#app.watch-full .fullrace{position:absolute;inset:0;border:0;border-radius:0}
.raceHudTop,.raceHudBottom{position:absolute;left:0;right:0;z-index:2;padding:9px max(10px,env(safe-area-inset-right)) 10px max(10px,env(safe-area-inset-left));color:white;pointer-events:none}
.raceHudTop{top:0;padding-top:max(9px,env(safe-area-inset-top));background:linear-gradient(#0a1422ed,#0a142277,transparent)}
.raceHudBottom{bottom:0;padding-bottom:max(10px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#0b1625c9 20%,#0b1625fa);display:grid;gap:6px}
.raceHudTitle{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;text-shadow:0 1px 3px #000}.raceHudTitle .eyebrow{color:#a8d3ff}.raceTime{text-align:right}.raceTime b,.raceTime small{display:block}.raceTime b{font-size:24px;font-variant-numeric:tabular-nums}.raceTime small{font-size:11px}.raceStatus{display:flex;justify-content:space-between;margin-top:6px;font-size:11px}.raceHudBottom .controls{pointer-events:auto}.raceHudBottom .controls button{min-height:40px;border-color:#7593b5;background:#162b43df;color:white}.raceHudBottom .controls .on{background:#2674ca;border-color:#90caff}.raceHudBottom .comment{color:white;background:#142338d9;min-height:32px}.raceHudBottom .rankstrip>div{color:white;background:#142338db;border-color:#51657e}.raceHudBottom .rankstrip{min-height:35px}.clubstrip{display:flex;gap:6px;flex:none}.clubstrip button{background:#f4f7fc;border:1px solid #becde0;border-radius:4px;padding:5px 9px;color:#234269;font-weight:750;min-height:37px}.clubstrip button:first-child{flex:1;display:flex;justify-content:space-between;align-items:center;gap:5px}.clubstrip span{font-size:9px;letter-spacing:1px}.wallet{display:grid;gap:6px;background:linear-gradient(120deg,#182b47,#245184);color:white}.wallet strong{font-size:30px}.wallet .muted{color:#c4d8f2}.wallet small{letter-spacing:1px;color:#c2d5ee}.clubicon{font-size:24px;color:#3269a7;min-width:32px;text-align:center}.clubitem .secondary{flex:none}.eventquiz{display:grid;gap:10px}.eventquiz .on{background:#245d98;color:white}.eventquiz h2{margin-bottom:6px}
@media(max-height:480px) and (orientation:landscape){.raceHudTop{max-width:55%;right:auto}.raceHudBottom{max-width:62%;left:auto}.raceHudTitle h2{font-size:15px}.raceHudBottom .comment{min-height:24px;font-size:11px}.raceHudBottom .controls button{min-height:32px}.raceTime b{font-size:18px}}
