*{box-sizing:border-box}body{margin:0;background:#f3f7fc;color:#112d50;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN",sans-serif;padding-bottom:95px}header{height:77px;padding:calc(env(safe-area-inset-top) + 13px) 18px 12px;background:#fff;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5edf7;position:sticky;top:0;z-index:5}.brand{display:flex;gap:10px;align-items:center}.brand b{font-size:17px;letter-spacing:.06em}.brand small{display:block;font-size:9px;color:#7e93a9;letter-spacing:.16em}.mark{display:grid;place-items:center;background:#0b4da5;color:white;font-size:24px;font-weight:900;width:39px;height:39px;border-radius:11px}.version{font-size:10px;color:#8397b1}main{max-width:720px;margin:auto;padding:22px 15px}.page{display:none}.page.active{display:block}.eyebrow{font-size:10px;letter-spacing:.22em;color:#0e6bd2;font-weight:800}h1{font-size:25px;margin:7px 0 20px}.datebar{display:flex;gap:10px;margin-bottom:16px}.datebar input,.datebar button{border:1px solid #d9e6f5;border-radius:12px;background:white;padding:12px;font-size:14px;color:#174b8b}.datebar input{flex:1;min-width:0}.datebar button{font-weight:700}.statline{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:25px}.statline>div{background:#fff;border:1px solid #e3ecf8;border-radius:14px;padding:13px 10px;min-width:0}.statline small{display:block;color:#8296ac;font-size:10px}.statline strong{font-size:19px;display:block;margin-top:6px}.statline #status{font-size:12px}.sectiontitle{font-size:11px;letter-spacing:.13em;font-weight:800;color:#849bb3;margin-bottom:12px}.venues{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.venue{border:1px solid #e0eaf5;background:#fff;border-radius:13px;min-height:95px;padding:10px 4px;text-align:center;color:#183b68;box-shadow:0 2px 9px #153f6a07}.venue .num{font-size:10px;color:#8da3bd}.venue strong{display:block;font-size:15px;margin:7px 0}.venue .state{font-size:10px;color:#0b70c7}.venue.off{background:#edf1f6;color:#9aa9b9;box-shadow:none}.venue.off .state{color:#a6b2be}.venue.live{border-top:3px solid #1269d1}.content-card{background:white;border:1px solid #e1eaf5;border-radius:18px;padding:17px;margin-top:15px}.content-card h2{font-size:16px}.content-card p{font-size:13px;line-height:1.8;color:#58718e}.back{border:0;background:none;color:#1768bd;font-weight:700;margin-bottom:20px}.race-tabs{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.race-tabs button{border:1px solid #dce7f3;background:white;border-radius:9px;padding:12px 2px;color:#32567d}.race-tabs button.selected{background:#0b4da5;color:white}.lane{display:grid;grid-template-columns:37px 1fr;align-items:center;border-bottom:1px solid #e9eff6;padding:12px 0;gap:10px}.lane:last-child{border:0}.lane .boat{width:35px;height:35px;border-radius:9px;display:grid;place-items:center;font-weight:900;border:1px solid #d6e2ef}.lane:nth-child(2) .boat{background:#1b2737;color:white}.lane:nth-child(3) .boat{background:#e52c39;color:white}.lane:nth-child(4) .boat{background:#2861d2;color:white}.lane:nth-child(5) .boat{background:#f6d23e;color:#222}.lane:nth-child(6) .boat{background:#22a267;color:white}.lane strong{font-size:14px}.lane small{display:block;color:#8298b0;font-size:11px;margin-top:3px}nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;background:#fff;border-top:1px solid #dbe7f5;padding:8px 10px calc(8px + env(safe-area-inset-bottom));z-index:10}nav button{border:0;background:none;color:#8497ae;font-size:11px;min-width:70px}nav button span{display:block;font-size:23px;margin-bottom:3px}nav button.on{color:#095bb9;font-weight:800}@media(max-width:360px){.venues{gap:5px}.venue strong{font-size:13px}.venue{min-height:87px}}
/* v0.19.1 home rebuilt from user reference */
body{background:#f5f5fa;color:#121b2a}header{background:linear-gradient(110deg,#07529b,#0088c5);color:#fff;border:0;height:83px;padding:calc(env(safe-area-inset-top) + 10px) 16px 12px}.brand b{font-size:21px;font-weight:900;letter-spacing:-.05em}.brand small{color:#d4eefa;font-size:9px}.mark{background:#fff;color:#0a5ca5;border-radius:50%;font-family:Georgia,serif}.head-actions{display:flex;align-items:center;gap:10px}.head-actions button{background:none;border:0;color:white;font-size:29px}.version{color:#d4ebfa}main{padding:0 0 25px;max-width:720px}.dashboard-top{background:linear-gradient(110deg,#07529b,#0088c5);padding:9px 15px 17px}.dashboard-top:after{content:"";display:block;clear:both}.dash-heading{background:#fff;border-radius:15px 15px 0 0;display:flex;align-items:center;gap:12px;padding:16px 15px 7px}.dash-emblem{background:#102e50;color:#f9c954;border:3px solid #c6a65b;border-radius:50%;width:49px;height:49px;display:grid;place-items:center;font:900 28px Georgia,serif}.dash-user strong{display:block;font-size:16px}.dash-user small{font-size:10px;color:#7c94ac}.dash-metrics{background:white;border-radius:0 0 15px 15px;display:grid;grid-template-columns:repeat(4,1fr);padding:7px 8px 13px;gap:5px}.dash-metrics>div{text-align:center;border-radius:9px;background:#f5f7fb;padding:7px 1px}.dash-metrics small{display:block;font-size:9px;color:#8b9aac}.dash-metrics strong{font-size:17px;color:#ff852e}.dash-metrics>div:nth-child(2) strong{color:#138bd0}.dash-metrics b{font-size:13px}.race-heading{padding:19px 14px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.race-heading h1{margin:0;font-size:23px;color:#101010}.datebar{margin:0;gap:5px}.datebar input{max-width:120px;padding:7px 4px;font-size:11px}.datebar button{padding:6px 10px}.venues{padding:0 12px;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.venue{min-height:104px;border-radius:14px;text-align:left;padding:11px 7px 8px 10px;box-shadow:0 3px 9px #182b4b0b;position:relative;border:1px solid #e5e9f0}.venue:before{content:"";position:absolute;left:6px;top:14px;bottom:13px;width:4px;background:#15c4e2;border-radius:5px}.venue .num{display:none}.venue strong{font-size:16px;color:#111;margin:3px 0 10px;padding-left:6px;white-space:nowrap}.venue .state{display:block;font-size:10px;color:#333;padding-left:6px;line-height:1.6}.venue .time{display:block;font-size:11px;color:#111;font-weight:800;padding-left:6px;white-space:nowrap}.venue.off{background:#f3f4f8;opacity:.52}.venue.off:before{background:#d5d8df}.venue.off strong,.venue.off .state,.venue.off .time{color:#adb3bd}.venue.morning:before{background:#ff912e}.venue.summer:before{background:#5a8df6}.venue.day:before{background:#00c1df}.venue.night:before{background:#c832dc}.venue.midnight:before{background:#1237c7}.venue.off{pointer-events:none}.legend{background:#fff;border-radius:14px;margin:15px 12px 0;padding:13px;display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:#84909b}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:10px;height:10px;border-radius:50%;display:inline-block}.legend .morning{background:#ff912e}.legend .summer{background:#5a8df6}.legend .day{background:#00c1df}.legend .night{background:#c832dc}.legend .midnight{background:#1237c7}.data-note{font-size:11px;color:#8a98a7;margin:12px 15px}nav{background:#07152e;color:white;border:0}nav button{color:#c5ccda}nav button.on{color:#3ea6ff}@media(max-width:390px){.venues{gap:6px;padding:0 9px}.venue{padding-left:8px}.venue strong{font-size:14px}.venue .state,.venue .time{font-size:9px}}
/* v0.19.2: fixed header + daily data, safe-area-aware scrolling */
html{height:100%;overflow:hidden}
body{height:100dvh;min-height:100%;overflow:hidden;padding:0;background:#f5f5fa}
.fixed-top{position:fixed;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:30;background:linear-gradient(110deg,#07529b,#0088c5);box-shadow:0 2px 8px #0b36651a}
.fixed-top header{position:relative;top:auto;height:68px;padding:10px 16px 8px}
.fixed-top .dashboard-top{padding:5px 14px 15px}
.fixed-top .dash-panel{background:#fff;border-radius:16px;display:flex;align-items:center;padding:12px 10px;gap:8px;min-height:96px}
.fixed-top .dash-heading{border-radius:0;padding:0 10px 0 0;flex:1.12;min-width:0;gap:8px;border-right:1px solid #dce1e8}
.fixed-top .dash-emblem{width:43px;height:43px;flex:none;font-size:24px}
.fixed-top .dash-user{min-width:0;flex:1}
.fixed-top .dash-user strong{font-size:14px;white-space:nowrap}
.fixed-top .dash-user small{font-size:9px;display:block;margin:3px 0 6px}
.fixed-top .dash-progress{height:7px;background:#e9eaf0;border-radius:9px;width:100%}
.fixed-top .dash-metrics{flex:1.15;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:5px;background:transparent}
.fixed-top .dash-metrics>div{padding:3px 1px;background:transparent}
.fixed-top .dash-metrics small{font-size:9px;white-space:nowrap}
.fixed-top .dash-metrics strong{font-size:17px}
.fixed-top .dash-metrics b{font-size:10px}
main{position:absolute;top:calc(env(safe-area-inset-top,0px) + 187px);bottom:calc(env(safe-area-inset-bottom,0px) + 68px);left:0;right:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;max-width:none;padding:0 0 18px}
nav{height:68px;bottom:env(safe-area-inset-bottom,0px);padding:7px 10px;z-index:40}
body:before{content:"";position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:#f5f5fa;z-index:50}
body:after{content:"";position:fixed;bottom:0;left:0;right:0;height:env(safe-area-inset-bottom,0px);background:#07152e;z-index:50}
@media(max-width:380px){.fixed-top .dash-panel{padding:9px 7px;gap:5px}.fixed-top .dash-heading{gap:5px;padding-right:6px}.fixed-top .dash-emblem{width:35px;height:35px;font-size:20px}.fixed-top .dash-user strong{font-size:12px}.fixed-top .dash-metrics small{font-size:8px}}

/* v0.19.3 compact bottom safe area */
nav{height:55px;bottom:env(safe-area-inset-bottom,0px);padding:4px 8px;align-items:center}
nav button{font-size:10px;line-height:1.1}
nav button span{font-size:19px;margin-bottom:2px}
main{bottom:calc(env(safe-area-inset-bottom,0px) + 55px)}
body:after{background:#07152e}

/* v0.19.4: eliminate oversized footer and home-only banner */
:root{--nav-height:52px}
nav{position:fixed;bottom:0;left:0;right:0;height:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));padding:4px 8px env(safe-area-inset-bottom,0px);box-sizing:border-box;align-items:center}
main{bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px))}
body:after{display:none!important}
body.detail-mode .fixed-top{display:none!important}
body.detail-mode main{top:env(safe-area-inset-top,0px);padding-top:8px;background:#f1f5fb}
body.detail-mode .page{padding:0 12px}
.detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #d9e5f4;border-radius:12px;padding:10px;margin:2px 0 12px}
.detail-head strong{font-size:16px}.detail-head .back{margin:0;padding:4px;border:0;font-size:12px;white-space:nowrap}.detail-tag{font-size:10px;color:#1c67b6;white-space:nowrap}
.race-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin-bottom:15px}.race-tabs button{padding:10px 0;font-size:12px}
.entry-header{background:#fff;border:1px solid #dce7f5;border-radius:13px 13px 0 0;padding:14px 12px 10px;color:#073f90;font-size:16px;font-weight:800}
.entry-switch{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;border:1px solid #cbdcf0;border-radius:9px;overflow:hidden}
.entry-switch button{border:0;background:#edf3fc;color:#355c85;padding:11px;font-weight:800}.entry-switch button.selected{background:#0757b4;color:#fff}
#detail .content-card{border-radius:0 0 13px 13px;margin:0;padding:12px 10px;border-top:0}
.race-caption{font-weight:800;color:#174f9c;font-size:12px;margin:0 0 8px}
.racer-card{border:2px solid #163c7d;border-radius:10px;overflow:hidden;margin-bottom:12px;background:#fff}
.racer-main{display:flex;min-height:95px}.racer-lane{width:53px;display:flex;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0;background:#fff;color:#111}.racer-lane b{font-size:32px;line-height:1}.racer-lane small{font-size:11px}.racer-lane.lane-2{background:#232936;color:#fff}.racer-lane.lane-3{background:#e52e39;color:#fff}.racer-lane.lane-4{background:#1766c8;color:#fff}.racer-lane.lane-5{background:#f8d531;color:#111}.racer-lane.lane-6{background:#229b50;color:#fff}
.racer-info{flex:1;min-width:0;padding:13px 7px}.racer-info strong{display:block;color:#0c4f9d;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.racer-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.racer-tags span{background:#eaf2fd;border-radius:5px;padding:4px;font-size:10px;font-weight:700}
.motor-info{width:95px;border-left:1px solid #dce6f2;padding:11px 5px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:5px}.motor-info small{font-size:10px;color:#174d93;font-weight:700}.motor-info b{font-size:20px}
.racer-sub{display:grid;grid-template-columns:repeat(4,1fr);border-top:2px solid #173e82}.racer-sub span{text-align:center;padding:9px 1px;border-right:1px solid #d1dce9;color:#0c4c96;font-size:10px;font-weight:700}.racer-sub span:last-child{border:0}.racer-sub b{display:block;margin-top:5px;color:#172d49;font-size:13px}

/* v0.19.5 iPhone bottom viewport correction */
html,body{height:100%;height:100dvh}
body{background:#07152e}
main{bottom:calc(57px + env(safe-area-inset-bottom,0px));background:#f1f5fb}
nav{position:fixed!important;bottom:0!important;height:calc(57px + env(safe-area-inset-bottom,0px))!important;padding:5px 10px max(5px,env(safe-area-inset-bottom,0px))!important;background:#07152e!important;align-items:flex-start!important}
nav button{height:50px}
body:after{display:none!important}
.racer-info{min-width:0}.racer-info strong{font-size:15px}.rank-line{display:flex;gap:5px;align-items:center;margin-top:7px}.rank-line small{font-size:10px;color:#55729a}
.score-pill{display:inline-block;padding:4px 7px;border-radius:6px;font-weight:900;color:#fff;font-size:12px;white-space:nowrap}
.score-A{background:#e33d42}.score-B{background:#36a75a}.score-C{background:#efb52d;color:#172944}.score-D{background:#3296d5}.score-pill.unknown{background:#9cacc0}
.motor-info .score-pill{margin:5px 0}.motor-info small{font-size:10px}
.reference-notice{font-size:10px!important;line-height:1.6!important;background:#eef5ff;border-radius:8px;padding:8px;margin:6px 0 13px!important}

/* v0.19.6 compact true viewport navigation; only safe inset below icons */
:root{--bottom-nav-content:48px}
html,body{height:100%;height:100dvh;margin:0;overflow:hidden}
body{background:#f1f5fb}
nav{position:fixed!important;bottom:0!important;top:auto!important;height:calc(var(--bottom-nav-content) + env(safe-area-inset-bottom,0px))!important;padding:2px 6px env(safe-area-inset-bottom,0px)!important;align-items:center!important;justify-content:space-around!important;box-sizing:border-box!important}
nav button{height:44px!important;min-height:0!important;line-height:1!important;padding:1px 0!important}
nav button span{font-size:18px!important;margin:0 0 3px!important}
main{bottom:calc(var(--bottom-nav-content) + env(safe-area-inset-bottom,0px))!important}
body:after{display:none!important}
.score-S{background:linear-gradient(115deg,#9b6a0c,#e6bb40);color:#fff}
.score-evolution{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px;font-size:10px;color:#637a99}.score-evolution span{background:#eef4fd;padding:4px 5px;border-radius:5px}.score-evolution b{color:#183e78}.score-evolution b.plus{color:#15985c}.score-evolution b.minus{color:#d64b53}
/* v0.19.27: event grade styling, preserving existing general-event cards */
.venue.live.grade-gold{border-top-color:#d6a52a;border-color:#e5c46e;background:linear-gradient(160deg,#fff9e9 0%,#fff 75%);box-shadow:0 2px 9px #9b76151c}
.venue.live.grade-gold .state{color:#9a6c08}
.venue.live.grade-silver{border-top-color:#8798b0;border-color:#bdc9d6;background:linear-gradient(160deg,#f1f4f8 0%,#fff 78%);box-shadow:0 2px 9px #52657816}
.venue.live.grade-silver .state{color:#5d6c81}
.racer-name .female-heart{display:inline-block;color:#ed4e85;font-size:.85em;margin-left:6px;vertical-align:baseline;line-height:1}

/* v0.19.28: clearly visible race grade card backgrounds, preserve general race styling */
.venue.live.grade-gold{background:linear-gradient(145deg,#ffdf77 0%,#f2bc3b 48%,#fff0b8 100%)!important;border:2px solid #c38b17!important;border-top:4px solid #a36a08!important;box-shadow:0 3px 11px #a67b3650!important}
.venue.live.grade-gold strong,.venue.live.grade-gold .time{color:#4a3100!important}
.venue.live.grade-gold .state{color:#72500c!important}
.venue.live.grade-silver{background:linear-gradient(145deg,#e1e8f1 0%,#bac6d5 52%,#f1f4f8 100%)!important;border:2px solid #8999ae!important;border-top:4px solid #65758b!important;box-shadow:0 3px 11px #63758b3d!important}
.venue.live.grade-silver strong,.venue.live.grade-silver .time{color:#23374f!important}
.venue.live.grade-silver .state{color:#3c536d!important}
.racer-name .female-heart{display:inline!important;color:#f23b86!important;font-size:18px!important;margin-left:7px!important}

/* v0.19.29: brighter pearl-silver grade cards */
.venue.live.grade-silver{background:linear-gradient(145deg,#ffffff 0%,#f4f7fb 40%,#e5ebf2 75%,#ffffff 100%)!important;border:2px solid #a9b5c5!important;border-top:4px solid #a6b4c7!important;box-shadow:0 3px 10px #73839a24!important}
.venue.live.grade-silver strong,.venue.live.grade-silver .time{color:#243951!important}
.venue.live.grade-silver .state{color:#586a80!important}

/* v0.19.30: vertical venue race listing */
.venue-detail-banner{background:linear-gradient(115deg,#0753a8,#069bd1);color:#fff;margin:0 -12px 18px}.venue-detail-actions{display:flex;gap:10px;padding:14px 15px 6px;background:#f3f5fb}.venue-detail-actions button{width:45px;height:45px;border-radius:50%;background:#fff;border:0;font-size:31px;color:#172b4b}.venue-detail-title{display:flex;align-items:center;gap:10px;padding:14px 16px 18px}.venue-detail-title strong{font-size:24px;flex:1}.venue-detail-title span{background:#ffffff24;border-radius:7px;padding:4px 8px}.venue-detail-title button{background:white;color:#0983b8;border:0;border-radius:10px;padding:10px;font-weight:800}.venue-detail-title #venueReload{font-size:23px;padding:4px 10px}.venue-menu{display:grid;grid-template-columns:repeat(3,1fr);background:#e9edf5}.venue-menu button{border:0;background:transparent;color:#2788bd;padding:15px 1px;font-weight:800}.venue-menu button.on{background:#0879bd;color:white}.race-list{padding:0 0 18px}.venue-race{background:white;border-radius:15px;overflow:hidden;border:1px solid #d7e3f2;margin:0 0 22px;box-shadow:0 3px 12px #142e5614}.venue-race-head{background:linear-gradient(110deg,#0753a8,#0899ce);color:#fff;display:flex;align-items:center;gap:9px;padding:17px 13px;font-weight:800}.venue-race-head b{font-size:23px}.venue-race-head span{font-size:15px}.venue-race-head em{font-style:normal;color:#ff4e56;font-size:13px}.venue-race-head em.closed{color:#d8e5f3}.venue-entry-cols,.venue-entry-row{display:grid;grid-template-columns:38px minmax(0,1fr) 58px 66px;align-items:stretch;text-align:center}.venue-entry-cols{background:#e9e9eb;color:#8b8d95;font-size:10px;min-height:45px;align-items:center}.venue-entry-row{min-height:66px;border-bottom:1px solid #ddd}.venue-entry-lane{display:grid;place-items:center;font-size:22px;font-weight:800;color:#111;background:#fff}.venue-entry-lane.lane-2{background:#080808;color:#fff}.venue-entry-lane.lane-3{background:#ff303d;color:#fff}.venue-entry-lane.lane-4{background:#0d91e9;color:#fff}.venue-entry-lane.lane-5{background:#ffd300;color:#111}.venue-entry-lane.lane-6{background:#24c15a;color:#fff}.venue-entry-person{display:flex;flex-direction:column;justify-content:center;padding:4px;min-width:0}.venue-entry-person b{font-size:15px;color:#161616}.venue-entry-person small{font-size:10px;color:#90949c}.venue-entry-grade{align-self:center;justify-self:center;border:1px solid #ef7777;color:#e84c58;border-radius:7px;padding:5px;font-size:13px;font-weight:800}.venue-entry-motor{display:flex;flex-direction:column;justify-content:center;border-left:1px solid #ddd;font-weight:800}.venue-entry-motor b{font-size:18px;text-decoration:underline}.venue-entry-motor small{border-top:1px solid #ddd;font-size:13px;padding-top:3px}.venue-race-actions{display:grid;grid-template-columns:1fr 1fr 1.6fr;gap:8px;background:#e7f0ff;padding:13px}.venue-race-actions button{background:#fff;color:#1787b9;border:1px solid #53b3d9;border-radius:12px;font-weight:800;padding:14px 2px}.venue-race-actions button:last-child{background:#078fc7;color:#fff}.female-heart{color:#ed4f92;margin-left:4px}

/* v0.19.34: motor/boat 2-ren rates and visible grade divider */
.venue-entry-cols,.venue-entry-row{grid-template-columns:34px minmax(0,1fr) 51px 54px 54px}
.venue-entry-grade{align-self:stretch;justify-self:stretch;display:flex;align-items:center;justify-content:center;border:0;border-left:1px solid #d1d8e3;border-right:1px solid #d1d8e3;border-radius:0;padding:3px 1px;font-size:12px;position:relative}
.venue-entry-grade::before{content:"";position:absolute;inset:calc(50% - 16px) 4px;border:1px solid #ef7777;border-radius:7px;pointer-events:none}
.venue-entry-motor,.venue-entry-boat{display:flex;flex-direction:column;justify-content:center;min-width:0;font-weight:800;border-left:1px solid #ddd}
.venue-entry-motor b,.venue-entry-boat b{font-size:16px;text-decoration:underline}
.venue-entry-motor small,.venue-entry-boat small{border-top:1px solid #ddd;font-size:11px;padding-top:3px}
.venue-entry-cols{font-size:9px}

/* v0.19.35: one consistent border at grade/motor boundary */
.venue-entry-grade{border-right:0}
.venue-entry-motor{border-left:1px solid #d1d8e3}
.venue-race-head{flex-wrap:wrap}
.race-result-button{margin-left:auto;border:1px solid #fff9;background:#fff;color:#0865a9;border-radius:9px;padding:7px 10px;font-size:12px;font-weight:800;white-space:nowrap}
.race-result-button:disabled{background:#d6e0ea;color:#69798c;border-color:#d6e0ea;opacity:1}
.race-result-panel{padding:12px;background:#f8fbff;border-top:1px solid #cddff1}
.race-result-panel[hidden]{display:none}
.race-result-panel h3{background:#078cdb;color:white;text-align:center;margin:12px 0 0;padding:10px;font-size:16px}
.result-pay-row,.result-finish-row,.result-start-row{display:grid;grid-template-columns:65px 1fr 100px;align-items:center;gap:8px;padding:9px 8px;border-bottom:1px solid #dce3ed;font-size:13px;background:#fff}
.result-pay-row:nth-of-type(even),.result-finish-row:nth-of-type(even),.result-start-row:nth-of-type(even){background:#edf2f7}
.result-pay-row strong{text-align:right}.result-finish-row{grid-template-columns:36px 32px 1fr 75px}.result-finish-row small{text-align:right}.result-start-row{grid-template-columns:32px 1fr 70px}.result-start-row b{text-align:right}
.result-lane{display:inline-grid;place-items:center;min-height:29px;background:#fff;color:#111;font-weight:800}.result-lane.lane-2{background:#111;color:#fff}.result-lane.lane-3{background:#f34;color:#fff}.result-lane.lane-4{background:#1497ee;color:#fff}.result-lane.lane-5{background:#ffd600}.result-lane.lane-6{background:#25bb60;color:#fff}
.result-empty{padding:12px;background:#fff;color:#677487}

/* v0.19.36 result-only enhancements */
.result-technique{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;background:#e8f3ff;color:#153a65;font-weight:700;border-bottom:1px solid #d5e4f5}
.result-technique strong{color:#007bc0;font-size:16px}
.result-heading-note{float:right;font-size:11px;font-weight:500;opacity:.9}
.venue-entry-person .female-heart,.result-finish-row .female-heart,.result-start-row .female-heart{display:inline!important;color:#ef4085!important;font-size:16px!important;margin-left:5px}

.result-pay-row{display:grid!important;grid-template-columns:62px minmax(65px,1fr) auto 70px!important;align-items:center;gap:5px!important}.result-pay-row .result-popularity{text-align:right;color:#60748e;font-size:11px;white-space:nowrap}.result-technique strong{font-size:13px!important;text-align:right}

/* v0.19.39 prediction view (no synthetic betting tickets) */
.prediction-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.prediction-ticket{border:1px solid #d4e2f4;border-radius:12px;padding:12px;min-width:0;background:#f7faff}.prediction-ticket h3{font-size:15px;margin:0 0 12px;color:#163b71}.prediction-unavailable{font-size:12px;color:#60748b;line-height:1.6}.prediction-comment{margin-top:14px;border:1px solid #d4e2f4;border-radius:12px;padding:14px}.prediction-comment h3{margin:0 0 8px;color:#163b71}@media(max-width:360px){.prediction-two-col{gap:6px}.prediction-ticket{padding:8px}}

/* v0.19.42: isolated legacy engine view */
#legacy{padding:0!important;}
.legacy-header{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fff;color:#12376a;font-size:13px}
.legacy-header button,.legacy-launch{border:0;border-radius:8px;padding:12px 15px;background:#1765ba;color:white;font-weight:700;cursor:pointer}
#legacyFrame{display:block;width:100%;height:calc(100dvh - 205px);min-height:400px;border:0;background:#fff}

.legacy-status{padding:6px 14px;margin:0;font-size:12px;color:#244a78;background:#e9f3ff}

/* v0.19.45 direct legacy prediction */
#legacy{display:none!important}.prediction-source{font-size:12px;color:#4774a8;margin-bottom:12px}.prediction-score{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 16px}.prediction-score span{padding:6px 9px;border-radius:8px;background:#edf4ff;font-size:12px}.prediction-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.prediction-columns section{min-width:0;background:#f4f8ff;border:1px solid #dce8fa;border-radius:12px;padding:10px 7px}.prediction-columns h3{font-size:14px;color:#163d77;margin:0 0 10px}.prediction-columns h3 small{display:block;font-size:10px;color:#6c829c;font-weight:normal}.prediction-ticket{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:3px;border-bottom:1px solid #dce6f4;padding:9px 2px;font-size:12px}.prediction-ticket b{font-size:15px;color:#113a7d}.prediction-ticket span{color:#526f91}.prediction-ticket strong{color:#165bb2}.prediction-reason{margin-top:16px;border:1px solid #dce8fa;border-radius:10px;padding:12px}.prediction-reason summary{font-weight:bold;cursor:pointer}.prediction-notice{font-size:12px;color:#8a6b35}@media(max-width:370px){.prediction-columns{gap:6px}.prediction-columns section{padding:8px 5px}.prediction-ticket b{font-size:13px}}

/* v0.19.46: reference-inspired compact 3-ren-tan / 2-ren-tan prediction layout */
#prediction{padding-left:10px;padding-right:10px}#prediction .eyebrow{display:none}#predictionHeading{text-align:center;font-size:19px;margin:9px 0 15px}#predictionBody{padding:0;background:transparent;border:0;box-shadow:none}
.pred-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;align-items:start}.pred-col,.pred-panel{min-width:0}.pred-panel{border:1px solid #d4e4f3;border-radius:15px;padding:10px 7px;background:#fff;box-shadow:0 3px 12px #102b4810}.pred-panel-tri{border-color:#f4d2d8}.pred-panel-pair{border-color:#cfe0f5}.pred-panel h2{font-size:16px;margin:0 0 4px;color:#172536;white-space:nowrap}.pred-panel h2 small{font-size:11px;color:#c63e4e}.pred-panel-pair h2 small{color:#2287c6}.pred-fire{color:#e32f45}.pred-blue{color:#158ccf}.pred-panel-sub{font-size:9px;line-height:1.4;color:#8092a7;margin-bottom:10px;min-height:26px}.pred-bets{display:grid;gap:5px}.pred-bet{display:flex;align-items:center;gap:3px;background:#f2f4f8;border:1px solid #e6e9f0;border-radius:8px;min-height:33px;padding:4px 3px;min-width:0}.pred-rank{flex:none;background:#e73349;color:white;font-size:10px;font-weight:800;border-radius:50%;width:17px;height:17px;display:grid;place-items:center}.pred-panel-pair .pred-rank{background:#158dc8}.pred-boats{display:flex;align-items:center;gap:1px;white-space:nowrap;min-width:0}.pred-boat{width:17px;height:19px;flex:none;display:grid;place-items:center;border-radius:4px;font-size:12px;font-weight:800;color:white}.pred-boat-1{background:#f8f8f8;color:#151515;border:1px solid #cfd5de}.pred-boat-2{background:#17191c}.pred-boat-3{background:#ed3348}.pred-boat-4{background:#2789e8}.pred-boat-5{background:#f7c626;color:#161616}.pred-boat-6{background:#2cbb61}.pred-dash{font-size:10px;color:#617083}.pred-odds{font-size:10px;color:#e23c50;margin-left:auto;white-space:nowrap}.pred-panel-pair .pred-odds{color:#168acb}.pred-group{margin:8px 0 11px}.pred-group h3{font-size:11px;padding:5px 6px;border-radius:6px;margin:0 0 5px}.pred-group-safe{background:#e4f4fd;color:#1281c5}.pred-group-return{background:#e9f8ed;color:#239c56}.pred-group-long{background:#fff0f0;color:#d64050}.pred-group .pred-bet{margin-bottom:5px}.pred-comment{border-top:1px solid #e3e8ef;margin-top:11px;padding-top:10px}.pred-comment b{font-size:11px;color:#e34356}.pred-panel-pair .pred-comment b{color:#208ac5}.pred-comment p{font-size:10px;color:#586577;line-height:1.6;margin:5px 0 0;overflow-wrap:anywhere}.pred-footer-note{background:#fff3f4;color:#ad5963;border:1px solid #f3d8dd;border-radius:12px;padding:12px;margin:14px 0 20px;font-size:11px;line-height:1.7}@media(min-width:650px){.pred-layout{gap:16px}.pred-panel{padding:16px}.pred-bet{min-height:40px;padding:7px}.pred-boat{width:23px;height:24px}.pred-odds{font-size:13px}.pred-comment p{font-size:12px}}@media(max-width:360px){.pred-layout{gap:5px}.pred-panel{padding:8px 4px}.pred-boat{width:15px;height:18px;font-size:11px}.pred-rank{width:15px;height:15px;font-size:9px}.pred-odds{font-size:9px}}

/* v0.19.47: dual trifecta prediction cards */
.pred-panel-hole{border-color:#cfe0f5}
.pred-panel-hole h2 small{color:#168acb}
.pred-panel-sub{display:flex;flex-wrap:wrap;gap:4px;min-height:0;margin:7px 0 12px}
.pred-key{font-size:9px;font-weight:700;border-radius:4px;padding:3px 4px}
.pred-key-red{color:#c9344a;background:#fff0f2}.pred-key-blue{color:#177cc7;background:#eaf5ff}
.pred-expanded .pred-rank{background:#168bd0}.pred-panel-hole .pred-selected .pred-rank{background:#e73349}
.pred-bet{align-items:flex-start;min-height:55px;padding:5px 3px}
.pred-bet-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}
.pred-stake{font-size:9px;color:#566779;white-space:nowrap}
.pred-bet-right{display:flex;flex-direction:column;align-items:flex-end;gap:3px;margin-left:auto;min-width:0}
.pred-estimate{font-size:8px;line-height:1.3;text-align:right;color:#738398;white-space:nowrap}
.pred-estimate strong{font-size:10px;color:#263e55}
.pred-panel-total{display:flex;justify-content:space-between;gap:4px;border-top:1px solid #e2e8f0;padding-top:9px;margin-top:10px;font-size:10px}
.pred-panel-total strong{font-size:12px}.pred-panel-note{font-size:9px;color:#728198;line-height:1.5;margin-top:8px}
@media(max-width:400px){.pred-panel{padding:8px 4px}.pred-boat{width:15px;height:18px;font-size:11px}.pred-rank{width:16px;height:16px;font-size:9px}.pred-stake{font-size:8px}.pred-estimate{font-size:7px}.pred-estimate strong{font-size:9px}.pred-panel h2{font-size:15px}.pred-panel h2 small{font-size:9px}}

/* v0.19.48: separate five- and ten-ticket estimated payout summaries */
.pred-odds-status{font-size:10px;color:#46728f;text-align:right;margin:0 3px 8px}
.pred-summary{border-top:1px solid #dce5ef;margin-top:10px;padding-top:9px;display:grid;gap:8px}
.pred-summary>div{display:flex;flex-direction:column;gap:3px;background:#f3f7fc;border-radius:7px;padding:7px 5px}
.pred-summary span{font-size:9px;color:#516b84;font-weight:700}
.pred-summary strong{font-size:14px;color:#174f88;text-align:right}
.pred-summary small{font-size:8px;color:#6c8095;line-height:1.5}

/* v0.19.53: staged prediction preparation indicator */
#predictionBody:has(.pred-loading){background:transparent;border:0;box-shadow:none;padding:0;margin-top:28px}
.pred-loading{max-width:480px;margin:32px auto;padding:35px 22px;text-align:center;background:white;border:1px solid #dce8f7;border-radius:22px;box-shadow:0 10px 35px #123c6a10}
.pred-loading-symbol{width:60px;height:60px;margin:0 auto 15px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#0b68c7,#51b4f7);color:white;font-size:29px;animation:pred-pulse 1.8s ease-in-out infinite}
.pred-loading h2{margin:0 0 10px;color:#173a66;font-size:22px}.pred-loading-stage{margin:0 0 20px;color:#49759e;font-size:13px;font-weight:700}
.pred-loading-track{height:11px;background:#e5effa;border-radius:20px;overflow:hidden}.pred-loading-fill{height:100%;border-radius:20px;background:linear-gradient(90deg,#0b71d7,#56c2f3);transition:width .5s ease;position:relative}.pred-loading-fill:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffff70,transparent);animation:pred-shimmer 1.5s linear infinite}
.pred-loading-meta{display:flex;justify-content:space-between;gap:10px;margin-top:12px;font-size:11px;color:#6a87a7}.pred-loading-hint{font-size:11px!important;color:#8497aa!important;margin-top:18px!important}
@keyframes pred-pulse{50%{transform:scale(1.06);box-shadow:0 0 0 9px #0b71d71a}}@keyframes pred-shimmer{to{transform:translateX(100%)}}
@media(max-width:390px){.pred-loading{margin:20px 10px;padding:26px 16px}.pred-loading-meta{font-size:10px}}

/* v0.19.54: bar represents only completed stages; never an estimated percentage */
.pred-loading-fill{transition:width .25s ease}
.pred-loading-steps{font-weight:700;color:#285e99}

/* v0.19.55: truthful indeterminate loading, gold suichi ticket */
.pred-loading-track{position:relative}
.pred-loading-fill.pred-loading-indeterminate{width:35%!important;transition:none;animation:pred-wait-slide 1.35s ease-in-out infinite alternate}
@keyframes pred-wait-slide{from{transform:translateX(0)}to{transform:translateX(185%)}}
.pred-bet.pred-suichi{background:linear-gradient(130deg,#fff8dc,#fff0b5 65%,#fff9e6);border:2px solid #d6a11e;box-shadow:0 0 0 1px #f9e6a0,0 2px 10px #b8860b38}
.pred-suichi-label{display:inline-flex;align-self:flex-start;color:#835500;background:#ffe18a;border:1px solid #d6a11e;border-radius:4px;font-weight:900;font-size:9px;padding:1px 4px;white-space:nowrap}

/* v0.19.57: dual-plan allocation and suichi legend */
.pred-key-gold{background:#fff2c9;color:#805500;border:1px solid #d9ad45}.pred-panel-sub{display:flex;flex-wrap:wrap;gap:5px}.pred-bet .pred-stake{display:block;white-space:nowrap;font-size:clamp(9px,1.6vw,12px)}.pred-bet .pred-estimate{line-height:1.5;font-size:clamp(9px,1.5vw,12px)}.pred-bet .pred-estimate strong{font-size:inherit}.pred-bet-main{min-width:0}.pred-bet-right{min-width:0}.pred-panel-total{line-height:1.7}

/* v0.19.58: category-matched ticket colors, with gold priority for suichi */
.pred-bet.pred-selected:not(.pred-suichi){background:#fff0f2;border:1px solid #efbac3;border-left:3px solid #e73349}
.pred-bet.pred-expanded:not(.pred-suichi){background:#eaf4ff;border:1px solid #b9d9f8;border-left:3px solid #168bd3}
.pred-bet.pred-suichi{background:linear-gradient(130deg,#fff8dc,#fff0b5 65%,#fff9e6);border:2px solid #d6a11e;box-shadow:0 0 0 1px #f9e6a0,0 2px 10px #b8860b38}
.pred-panel-sub .pred-key{white-space:nowrap}

/* v0.19.59: wave race loading, boat advances in ~8 seconds and waits for actual completion */
.pred-race-track{display:flex;align-items:center;gap:3px;width:100%;height:88px;margin:4px 0 0;overflow:visible}
.pred-turn{width:24px;flex:0 0 24px;height:52px;display:flex;align-items:center;justify-content:center;filter:drop-shadow(0 2px 2px #47799b44)}
.pred-turn svg{width:22px;height:42px}
.pred-wave{position:relative;flex:1;min-width:0;height:38px;border-radius:22px;background:repeating-linear-gradient(170deg,#d9f4ff 0px,#d9f4ff 11px,#b8e9fa 12px,#e5f8ff 22px);box-shadow:inset 0 2px 7px #83c5e555;overflow:visible}
.pred-wave:before,.pred-wave:after{content:"";position:absolute;left:0;right:0;height:9px;background:radial-gradient(ellipse 13px 7px at 13px 7px,#fff9 65%,transparent 72%) repeat-x;background-size:26px 9px;pointer-events:none}
.pred-wave:before{top:0}.pred-wave:after{bottom:0;transform:rotate(180deg)}
.pred-wave-water{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,#5bc7ef88,#1593e788);border-radius:22px;transition:width .09s linear}
.pred-loader-boat{position:absolute;z-index:2;top:-22px;width:44px;height:55px;left:0;transition:left .09s linear;filter:drop-shadow(0 4px 3px #145b9866)}
.pred-loader-boat svg{width:55px;height:55px;transform:rotate(5deg)}
.pred-loading-track-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
@media(max-width:390px){.pred-race-track{height:78px}.pred-turn{width:19px;flex-basis:19px}.pred-loader-boat svg{width:47px}}

/* v0.19.60: clock and isolated race animation; protect ticket lane numbers */
.pred-grand-clock{width:116px;height:116px;margin:0 auto 16px;filter:drop-shadow(0 3px 7px #1a639126)}
.pred-grand-clock svg{width:100%;height:100%;display:block}
.pred-clock-hand{transform-origin:60px 60px;transition:transform .09s linear}
.pred-boats .pred-boat{position:static!important;z-index:auto!important;top:auto!important;left:auto!important;transform:none!important;filter:none!important;transition:none!important;width:17px!important;height:19px!important;flex:0 0 17px!important;display:grid!important;place-items:center!important;border-radius:4px!important;font-size:12px!important}
#prediction{overflow:hidden;isolation:isolate}
#legacy{display:none!important;visibility:hidden!important}
@media(min-width:650px){.pred-boats .pred-boat{width:23px!important;height:24px!important;flex-basis:23px!important}}

/* v0.19.61: uniform ticket borders, hit badge; payout estimates remain only in summary */
.pred-bet.pred-selected:not(.pred-suichi){border:1px solid #efbac3}
.pred-bet.pred-expanded:not(.pred-suichi){border:1px solid #b9d9f8}
.pred-bet.pred-suichi{border:2px solid #d6a11e}
.pred-hit{display:inline-flex;align-items:center;justify-content:center;font-size:clamp(12px,2.2vw,18px);line-height:1;flex:none;margin-left:2px}

/* v0.19.62: compact side-by-side stake plans and confirmed prediction results */
.pred-stakes-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.pred-bet .pred-stakes-row .pred-stake{display:inline-block;font-size:clamp(8px,1.25vw,11px);white-space:nowrap}
.pred-result-panel{margin-top:12px;padding:10px 8px;border:1px solid #d7e2f0;border-radius:10px;background:#f6f9fd}
.pred-result-panel h3{font-size:clamp(12px,1.7vw,16px);margin:0 0 8px;color:#173b64;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.pred-result-panel p{font-size:11px;color:#64748b;margin:0}
.pred-result-ticket{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:clamp(10px,1.6vw,13px)}
.pred-result-ticket>span{display:flex;align-items:center;gap:2px}
.pred-result-ticket strong{white-space:nowrap;color:#e2364d}
.pred-result-won{border-color:#dfb34a;background:#fff9e9}
.pred-result-lost{border-color:#e3bac2;background:#fff4f5}
.pred-result-hit{color:#b07a0d;font-weight:800}
.pred-result-miss{color:#c7364c;font-weight:800}
.pred-result-details{margin-top:9px;display:grid;gap:7px}
.pred-result-details>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 6px;border-top:1px solid #e4d9bd;padding-top:7px;font-size:clamp(9px,1.3vw,12px)}
.pred-result-details span{color:#64748b}
.pred-result-details strong{text-align:right;color:#203e61}

/* v0.19.63: compact aligned totals and stake labels */
.pred-panel-total{display:flex;align-items:center;justify-content:space-between;gap:6px;line-height:1.3;font-size:clamp(10px,1.8vw,13px);white-space:nowrap}
.pred-panel-total strong{font-size:clamp(12px,2.3vw,16px);white-space:nowrap}
.pred-bet .pred-stakes-row{display:flex;flex-wrap:wrap;gap:2px 6px;align-items:center}
.pred-bet .pred-stakes-row .pred-stake{font-size:clamp(7px,1.12vw,10px);white-space:nowrap;letter-spacing:-.03em}
.pred-result-details span{overflow-wrap:anywhere}

/* v0.19.64: prediction commentary and legible stake labels */
.pred-reason{margin:0 0 12px;padding:10px 9px;background:#f5f8fd;border:1px solid #dce8f5;border-radius:10px;min-width:0}
.pred-reason h3{font-size:13px;font-weight:800;color:#244c76;margin:0 0 7px}
.pred-reason p{font-size:clamp(10px,1.65vw,13px);line-height:1.75;color:#3c526b;margin:0;overflow-wrap:anywhere}
.pred-reason strong{color:#1b426f}
.pred-panel-hole .pred-reason{background:#f1f8ff;border-color:#d0e4f8}
.pred-bet .pred-stakes-row .pred-stake{font-size:clamp(9px,1.55vw,12px);letter-spacing:-.025em;white-space:normal;line-height:1.45}
.pred-bet .pred-stakes-row{gap:3px 8px}
@media(max-width:400px){.pred-bet .pred-stakes-row .pred-stake{font-size:9px}}

/* v0.19.65: separator between reasoning and ticket list */
.pred-reason{margin-bottom:10px}
.pred-reason + .pred-bets{border-top:1px solid #d6e0ec;padding-top:12px}

/* v0.19.67: stronger prediction headings and aligned reasoning sections */
.pred-main-title{display:flex;align-items:center;gap:5px;font-size:clamp(17px,2.8vw,24px)!important;font-weight:900;letter-spacing:.02em;margin-bottom:13px!important}
.pred-main-title small{margin-left:auto;font-weight:800;white-space:nowrap}
.pred-main-icon{display:inline-grid;place-items:center;flex:none;width:25px;height:25px;border-radius:8px;background:#fff0f2;color:#df344b;font-size:20px;line-height:1}
.pred-panel-hole .pred-main-icon{background:#e8f4ff;color:#1689cc}
.pred-panel-hole .pred-main-title small{color:#1689cc}
.pred-reason-block{box-sizing:border-box;display:flex;flex-direction:column;margin-bottom:10px;min-width:0}
.pred-section-title{font-size:clamp(12px,1.8vw,15px);font-weight:900;color:#21476e;margin:0 0 9px;display:flex;align-items:center;gap:5px}
.pred-section-icon{display:inline-grid;place-items:center;width:21px;height:21px;flex:none;border-radius:6px;background:#e5f0fc;color:#197cc0;font-size:14px}
.pred-reason-block .pred-reason{flex:1;margin:0;padding:10px 9px}
.pred-tickets-section{border-top:1px solid #d6e0ec;padding-top:12px}
.pred-tickets-section .pred-panel-sub{margin:7px 0 12px}
.pred-reason + .pred-bets{border:0;padding:0}

/* v0.19.68: compact 24-venue overview */
#home .race-heading{padding:9px 12px 7px}#home .race-heading h1{font-size:19px}
#home .venues{gap:5px;padding:0 9px;grid-template-columns:repeat(4,minmax(0,1fr))}
#home .venue{min-height:69px;height:69px;padding:6px 3px 5px 8px;border-radius:10px;overflow:hidden}
#home .venue:before{top:9px;bottom:9px;left:4px;width:3px}
#home .venue strong{font-size:13px;margin:1px 0 4px;padding-left:3px;line-height:1.15}
#home .venue .state{font-size:9px;padding-left:3px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#home .venue .time{font-size:10px;padding-left:3px;line-height:1.3;white-space:nowrap}
#home .venue.venue-ended{background:#edf1f6;border-color:#d8e0eb}#home .venue.venue-ended .time{color:#68798e}
#home .venue.venue-cancelled{background:#f5eaea;border-color:#e7caca;opacity:.75}#home .venue.venue-cancelled .time{color:#aa4350}
.pred-loading-stage[hidden],.pred-loading-steps[hidden]{display:none!important}

/* v0.19.69: stakes stay in one row; use available panel width */
.pred-bet .pred-stakes-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px!important;width:100%;align-items:center}
.pred-bet .pred-stakes-row .pred-stake{font-size:clamp(9px,1.35vw,12px)!important;white-space:nowrap!important;letter-spacing:-.045em!important;line-height:1.4}
.pred-bet-main{width:100%}
@media(max-width:430px){.pred-bet .pred-stakes-row .pred-stake{font-size:clamp(8px,2.1vw,10px)!important}}
.today-counts{font-size:11px;color:#386a94;font-weight:800;white-space:nowrap}
#home .race-heading{gap:5px}
#home .race-heading h1{font-size:17px}
.dash-action{background:#f5f7fb;border:0;border-radius:8px;padding:4px 1px;min-width:0;cursor:pointer}
.dash-action small{display:block;font-size:9px;color:#70849c;white-space:nowrap}
.dash-action strong{display:block;font-size:15px;color:#166ca9}
.fixed-top .dash-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.fixed-top .dash-metrics>div{display:none}
.fixed-top .dash-panel{gap:5px}
.fixed-top .dash-heading{flex:.8}
.fixed-top .dash-metrics{flex:1.5}
.summary-panel{margin:5px 10px 10px;padding:10px;background:#fff;border:1px solid #cbdff2;border-radius:12px}
.summary-panel[hidden]{display:none}
.summary-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.summary-head button,.summary-race{background:#e8f3ff;border:1px solid #b6d5f4;border-radius:8px;padding:7px;margin:3px;font-size:12px}
.venue-race-actions .pin-race{background:#fff4d8;color:#895c08}

/* v0.19.70: icon pin in header, directly after deadline */
.venue-race-head .race-pin-icon{border:1px solid #ffffff85;background:#ffffff22;border-radius:10px;padding:5px 8px;color:#fff;font-size:20px;line-height:1;flex:0 0 auto}
.venue-race-head .race-pin-icon[aria-pressed="true"]{background:#fff1c7;border-color:#e5b53b}
.venue-race-head .race-result-button{margin-left:auto}
.venue-race-actions{grid-template-columns:1fr 1fr 1.6fr}
.fixed-top .dash-metrics>div{display:block!important}
.fixed-top .dash-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex:2.2}
.fixed-top .dash-panel{align-items:stretch;flex-wrap:wrap}
.fixed-top .dash-heading{flex:1;min-width:115px}
.fixed-top .dash-metrics .dash-action{background:#f5f7fb;padding:3px 1px}
.fixed-top .dash-metrics .dash-action strong{font-size:13px}
.fixed-top .dash-metrics .dash-action small{font-size:8px}
#home .race-heading{flex-wrap:wrap;justify-content:space-between}
#home .race-heading h1{flex:0 0 auto}
#home .race-heading .today-counts{order:1;flex:1 0 100%;text-align:left;font-size:12px}

/* v0.19.72: prevent the race header controls wrapping onto a second row */
.venue-race-head{display:flex!important;flex-wrap:nowrap!important;gap:clamp(3px,1vw,9px)!important;padding:12px clamp(7px,1.5vw,13px)!important;min-width:0}
.venue-race-head>b{font-size:clamp(18px,4.3vw,23px)!important;white-space:nowrap;flex:0 0 auto}
.venue-race-head>span{font-size:clamp(11px,2.5vw,15px)!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}
.venue-race-head>em{font-size:clamp(10px,2.3vw,13px)!important;white-space:nowrap;flex:0 0 auto}
.venue-race-head .race-pin-icon{padding:5px 6px!important;font-size:18px!important;flex:0 0 auto}
.venue-race-head .race-result-button{margin-left:0!important;padding:7px 8px!important;font-size:clamp(10px,2.4vw,12px)!important;flex:0 0 auto}
/* Keep all dashboard values readable without colliding with the title */
.fixed-top .dash-panel{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;padding:10px 12px!important}
.fixed-top .dash-heading{border-right:0!important;border-bottom:1px solid #e4eaf1;padding:0 0 7px!important;min-width:0!important}
.fixed-top .dash-user small,.fixed-top .dash-progress{display:none!important}
.fixed-top .dash-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important;width:100%;min-width:0;padding:0!important}
.fixed-top .dash-metrics>div{display:none!important}
.fixed-top .dash-metrics .dash-action{min-width:0;padding:6px 2px!important}
.fixed-top .dash-metrics .dash-action small{font-size:clamp(8px,2vw,10px)!important;white-space:normal!important;line-height:1.25}
.fixed-top .dash-metrics .dash-action strong{font-size:15px!important}
/* v0.19.74: keep venue/race counts adjacent to the section title. */
#home .race-heading{flex-wrap:nowrap!important;justify-content:flex-start!important;gap:6px!important}
#home .race-heading h1{flex:0 0 auto!important;white-space:nowrap;font-size:clamp(15px,4.2vw,19px)!important}
#home .race-heading .today-counts{order:0!important;flex:0 1 auto!important;text-align:left!important;font-size:clamp(9px,2.5vw,12px)!important;white-space:nowrap;min-width:0}
#home .race-heading .datebar{margin-left:auto!important;flex:0 0 auto;gap:3px}
#home .race-heading .datebar input{width:105px;max-width:105px;font-size:10px;padding:6px 2px}
#home .race-heading .datebar button{padding:6px 7px}

.hit-sync-status{font-size:11px;color:#54728b;padding:3px 12px 5px;line-height:1.4;overflow-wrap:anywhere}

.summary-hit-list{display:grid;gap:9px;margin-top:12px}.summary-hit-card{display:block;width:100%;text-align:left;background:#f7fbff;border:1px solid #c5d9ee;border-radius:12px;padding:12px;color:#173653}.summary-hit-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.summary-hit-top strong{font-size:15px}.summary-hit-top>span{font-size:11px;color:#1673b9}.summary-hit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.summary-hit-grid>span{display:flex;flex-direction:column;font-size:11px;color:#61778b;gap:3px}.summary-hit-grid b{font-size:14px;color:#163c66;overflow-wrap:anywhere}.summary-hit-extra{display:block;margin-top:10px;padding-top:8px;border-top:1px solid #dce9f4;font-size:11px;color:#45627c}

.pred-closed-quick{padding:24px 12px;text-align:center;color:#173e6a}.pred-closed-quick p{font-size:12px;color:#61758a}

.summary-hit-top strong{display:flex;align-items:center;gap:8px}
.summary-hit-number{display:inline-grid;place-items:center;min-width:25px;height:25px;border-radius:50%;font-size:13px;color:#fff;font-weight:800}
.summary-hit-main{background:#e5374d}.summary-hit-hole{background:#158acb}.summary-hit-pin{background:#63768a}
.summary-ticket-boats{display:inline-flex;vertical-align:middle;gap:2px;margin-top:2px}
.summary-ticket-boats .pred-boat{width:23px;height:25px;font-size:14px}
.summary-hit-ticket{display:block}

.summary-hit-card.summary-hit-selected{background:#fff0f2;border:1px solid #efbac3;border-left:4px solid #e73349}
.summary-hit-card.summary-hit-expanded{background:#eaf4ff;border:1px solid #b9d9f8;border-left:4px solid #168bd3}
.summary-hit-card.summary-hit-suichi{background:linear-gradient(130deg,#fff8dc,#fff0b5 65%,#fff9e6);border:2px solid #d6a11e}
.summary-hit-category{font-size:11px;font-weight:800;padding:3px 6px;border-radius:5px;white-space:nowrap;margin-left:auto}
.summary-hit-selected .summary-hit-category{background:#ffd8de;color:#bd263d}
.summary-hit-expanded .summary-hit-category{background:#cce7ff;color:#126ca9}
.summary-hit-suichi .summary-hit-category{background:#f5d574;color:#795400}
.summary-hit-top{flex-wrap:wrap}

/* v0.19.96: compact progress next to dashboard title; hide diagnostic rows */
#home #oddsPrefetchStatus,#home #hitSyncStatus{display:none!important}
.fixed-top .dash-heading{display:flex!important;align-items:center!important;flex-wrap:wrap!important}
.fixed-top .home-load-indicator{margin-left:auto;flex:0 0 116px;max-width:35%;display:flex;flex-direction:column;gap:5px;align-self:center}
.home-load-indicator>span{font-size:10px;font-weight:700;color:#51728c;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-load-track{height:7px;background:#e9eef5;border-radius:20px;overflow:hidden}
.home-load-track>span{display:block;height:100%;width:0%;background:linear-gradient(90deg,#2b95d9,#19bca6);border-radius:20px;transition:width .25s ease}
.summary-head{display:flex;align-items:center;gap:8px;justify-content:space-between}
.summary-controls{display:flex;align-items:center;gap:5px;margin-left:auto}
.summary-controls label{font-size:11px;color:#496b89;font-weight:700;white-space:nowrap}
.summary-controls select{border:1px solid #bdd5e9;background:#f1f8ff;color:#185b90;border-radius:8px;font-size:12px;padding:8px 4px;max-width:90px}
.summary-controls button{white-space:nowrap}

/* v0.19.97: venue day, weather, hits; top/bottom blue unity and lower nav placement */
#home .venue{height:79px;min-height:79px;padding-top:6px;padding-bottom:5px}
#home .venue strong{margin:0 0 3px;padding-right:0}
#home .venue .state{font-size:9px;line-height:1.2}
#home .venue .time{font-size:9px;line-height:1.2}
#home .venue-extras{position:absolute;top:5px;right:4px;display:flex;align-items:center;gap:2px;max-width:64%;pointer-events:none}
#home .venue-weather{font-size:12px;line-height:1}
#home .venue-hits{font-size:9px;font-weight:900;color:#d8464b;background:#fff4f1;border-radius:5px;padding:2px 3px;white-space:nowrap}
#home .venue.off .venue-extras{display:none}
nav{background:linear-gradient(110deg,#07529b,#0088c5)!important;border-top:1px solid #1682bd!important;--bottom-nav-content:52px;height:calc(52px + env(safe-area-inset-bottom,0px))!important;padding:4px 6px env(safe-area-inset-bottom,0px)!important;align-items:center!important}
nav button{color:#d6eaf7!important;height:44px!important}
nav button.on{color:#fff!important;font-weight:900}
nav button span{margin-bottom:2px!important}
main{bottom:calc(52px + env(safe-area-inset-bottom,0px))!important}
@media(max-width:390px){#home .venue{height:77px;min-height:77px}#home .venue strong{font-size:12px}#home .venue-hits{font-size:8px}}

/* v0.19.98: lower navigation content and reduce excessive bottom bar height */
:root{--bottom-nav-content:40px!important}
nav{height:calc(40px + env(safe-area-inset-bottom,0px))!important;padding:0 6px env(safe-area-inset-bottom,0px)!important;align-items:center!important}
nav button{height:36px!important;padding:0!important;font-size:10px!important}
nav button span{font-size:17px!important;margin:0 0 1px!important}
main{bottom:calc(40px + env(safe-area-inset-bottom,0px))!important}

/* v0.20.00: hit type color and dimensional venue surfaces */
.fixed-top .dash-action[data-summary="main"],.dash-action[data-summary="main"]{background:linear-gradient(160deg,#fff1f2,#ffe0e5)!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #d52b4430!important}
.fixed-top .dash-action[data-summary="main"] small,.dash-action[data-summary="main"] small{color:#ac3047!important}
.fixed-top .dash-action[data-summary="main"] strong,.dash-action[data-summary="main"] strong{color:#d82f4b!important}
.fixed-top .dash-action[data-summary="hole"],.dash-action[data-summary="hole"]{background:linear-gradient(160deg,#eff8ff,#dceeff)!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #217ac330!important}
.fixed-top .dash-action[data-summary="hole"] small,.dash-action[data-summary="hole"] small{color:#276a9e!important}
.fixed-top .dash-action[data-summary="hole"] strong,.dash-action[data-summary="hole"] strong{color:#187fcb!important}
#home .venue-hits{color:#fff!important;text-shadow:0 1px 1px #0004;border:1px solid #ffffff80;border-radius:6px;box-shadow:0 1px 3px #14294440}
#home .venue-hits-main{background:linear-gradient(145deg,#f65c6d,#c92341)!important}
#home .venue-hits-hole{background:linear-gradient(145deg,#55b8ff,#0876cb)!important}
#home .venue-hits-both{background:linear-gradient(90deg,#dc304d 0%,#dc304d 49.8%,#167dd1 50.2%,#167dd1 100%)!important}
#home .venue.live{box-shadow:inset 0 1px 0 #ffffffed,inset 0 -2px 3px #73849a24,0 4px 7px #354c7040,0 1px 1px #ffffffaa!important;transform:translateY(-1px);border-bottom-width:2px!important}
#home .venue.live:active{transform:translateY(1px);box-shadow:inset 0 2px 5px #354c7040!important}
#home .venue.live.grade-silver{background:linear-gradient(145deg,#fdfefe 0%,#dce3ed 28%,#aebdce 63%,#edf2f7 100%)!important;border:2px solid #8294ad!important;border-top:4px solid #667c9a!important;border-bottom-color:#63758d!important;box-shadow:inset 0 1px 0 #fff,0 4px 8px #50647c65,0 1px 2px #fff!important}
#home .venue.live.grade-silver strong{color:#172e49!important}
#home .venue.live.grade-gold{box-shadow:inset 0 1px 0 #fff7d5,0 4px 8px #98702b65!important}
#home .venue.venue-ended{transform:none;box-shadow:inset 0 1px 0 #fff,0 2px 5px #53647a24!important}

/* v0.20.01: split badges use separate solid halves (not a gradient behind emoji) */
#home .venue-hits-both{display:inline-flex!important;align-items:stretch!important;gap:0!important;padding:0!important;overflow:hidden!important;background:none!important;border:1px solid #fff!important;border-radius:7px!important;color:#fff!important}
#home .venue-hits-both .venue-hit-red{background:#df2945!important;color:white!important;padding:2px 1px 2px 3px!important;display:inline-flex;align-items:center}
#home .venue-hits-both .venue-hit-blue{background:#087cdb!important;color:white!important;padding:2px 4px 2px 2px!important;display:inline-flex;align-items:center;min-width:13px;justify-content:center}

/* v0.20.02: separate exclusive main, exclusive hole and shared hits */
#home .venue-extras .venue-hit-group{display:inline-flex;align-items:center;gap:2px;white-space:nowrap;max-width:100%}
#home .venue-extras .venue-hit-group .venue-hits{font-size:8px!important;line-height:14px!important;padding:1px 2px!important;flex-shrink:0}
#home .venue-extras .venue-hit-group .venue-hits-both{padding:0!important}
#home .venue-extras .venue-hit-group .venue-hit-red{padding:1px 0 1px 2px!important}
#home .venue-extras .venue-hit-group .venue-hit-blue{padding:1px 2px 1px 1px!important;min-width:9px}

/* v0.20.03: stack the three independent hit badges vertically inside venue card */
#home .venue-extras{align-items:flex-start!important;gap:3px!important;max-width:none!important;right:4px!important;top:5px!important}
#home .venue-extras .venue-weather{flex:0 0 auto;margin-top:1px}
#home .venue-extras .venue-hit-group{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:2px!important;white-space:nowrap!important;max-width:none!important}
#home .venue-extras .venue-hit-group .venue-hits{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:14px!important;line-height:12px!important;box-sizing:border-box!important}

/* v0.20.04: keep badges compact after every refresh */
#home .venue-extras .venue-hit-group{flex:0 0 auto!important;width:auto!important;min-width:0!important}
#home .venue-extras .venue-hit-group .venue-hits{font-size:8px!important;max-width:38px!important}

/* v0.20.05 racer detail */
.venue-entry-row[data-player-lane]{cursor:pointer}.venue-entry-row[data-player-lane]:active{background:#e9f4ff}.venue-entry-row[data-player-lane]:focus-visible{outline:3px solid #208ccf;outline-offset:-3px}.player-overlay{position:fixed;inset:0;z-index:10000;background:#102b4b88;display:flex;align-items:flex-end;justify-content:center}.player-overlay[hidden]{display:none}.player-sheet{background:#f2f6fc;color:#183759;width:100%;max-width:720px;max-height:91dvh;overflow-y:auto;border-radius:22px 22px 0 0;padding:0 14px calc(env(safe-area-inset-bottom) + 20px);box-shadow:0 -6px 30px #163c5c44}.player-sheet-top{position:sticky;top:0;z-index:2;background:linear-gradient(105deg,#0753a8,#079ed0);color:white;margin:0 -14px 14px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:8px}.player-sheet-top button{border:1px solid #ffffff80;background:#ffffff20;color:white;border-radius:9px;padding:8px;font-weight:700}.player-sheet-top span{font-size:12px}.player-identity{display:flex;align-items:center;gap:12px;padding:16px;background:white;border:1px solid #d7e4f4;border-radius:14px;margin-bottom:12px}.player-identity strong{font-size:21px;display:block}.player-identity small{color:#647e9d}.player-lane-pill{width:48px;height:52px;display:grid;place-items:center;border-radius:9px;font-size:28px;font-weight:900;background:white;color:#111;border:1px solid #ccd7e4}.player-lane-pill.lane-2{background:#151515;color:white}.player-lane-pill.lane-3{background:#f33;color:white}.player-lane-pill.lane-4{background:#198de8;color:white}.player-lane-pill.lane-5{background:#ffd322}.player-lane-pill.lane-6{background:#20b85b;color:white}.player-section{background:white;border:1px solid #d6e3f2;border-radius:13px;margin:11px 0;overflow:hidden}.player-section h3{font-size:15px;background:#e5f1fd;color:#075ca5;padding:11px 13px;margin:0}.player-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dce6f1}.player-stat{background:white;padding:11px 5px;text-align:center;min-width:0}.player-stat small{display:block;font-size:11px;color:#617d9b}.player-stat b{font-size:16px;display:block;margin-top:4px}.player-course{background:white;padding:10px 3px;text-align:center;display:flex;flex-direction:column;gap:4px}.player-course b{font-size:12px;color:#1769a8}.player-course small{font-size:10px}.player-data-note{color:#607992;font-size:12px;line-height:1.6;padding:0 5px}

/* v0.20.06: clear tappable racer name affordance */
.venue-entry-person .player-name-link{display:inline-block;align-self:center;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;text-decoration-color:#1779bd;cursor:pointer}
.venue-entry-row[data-player-lane]:active .player-name-link{color:#0878c1}
.player-history-status{padding:12px 14px;background:#e8f3fd;color:#155d96;border-radius:10px;font-size:12px;font-weight:700}
.player-scope-title{margin:18px 3px 7px;font-size:17px;font-weight:900;color:#075ba5}

/* v0.20.21: unified link treatment and equipment details */
.venue-entry-person .player-name-link{color:#161616;text-decoration-color:#161616;text-decoration-thickness:1.5px;text-underline-offset:2px}
.venue-entry-motor,.venue-entry-boat{cursor:pointer}
.venue-entry-motor:active,.venue-entry-boat:active{background:#e4f3ff}
.venue-entry-motor:focus-visible,.venue-entry-boat:focus-visible{outline:2px solid #168cd3;outline-offset:-2px}
.venue-entry-motor b,.venue-entry-boat b{text-decoration-color:#161616;text-decoration-thickness:1.5px;text-underline-offset:2px}
.equipment-identity{background:white;border:1px solid #d7e4f4;border-radius:14px;margin-bottom:12px;padding:16px;display:flex;flex-direction:column;gap:4px;color:#183759}
.equipment-identity strong{font-size:30px}.equipment-identity small,.equipment-identity span{color:#647e9d}
.equipment-user{padding:12px;border-bottom:1px solid #d6e3f2;display:flex;flex-direction:column;gap:4px;font-size:12px}.equipment-user b{font-size:15px}.equipment-user small{color:#647e9d}

/* v0.20.24: race list rider metadata, grade palette, balanced equipment columns */
.venue-entry-row:not(.venue-entry-cols){grid-template-columns:38px minmax(0,1fr) 58px 64px 64px}
.venue-entry-cols{grid-template-columns:38px minmax(0,1fr) 58px 64px 64px}
.venue-entry-person{padding:5px 3px}
.venue-entry-person small:first-child{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.venue-entry-person .player-name-link{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:#171717}
.venue-entry-grade{min-width:37px;box-sizing:border-box}
.venue-entry-grade.grade-a1{color:#e64c55;border-color:#ef7777;background:#fff6f6}
.venue-entry-grade.grade-a2{color:#ed8a35;border-color:#efa45b;background:#fff7ec}
.venue-entry-grade.grade-b1{color:#252525;border-color:#333;background:#f5f5f5}
.venue-entry-grade.grade-b2{color:#858a92;border-color:#a3a7af;background:#f1f2f4}
.venue-entry-grade.grade-unknown{color:#8a9099;border-color:#c8cbd0;background:#fafafa}
.venue-entry-motor,.venue-entry-boat{width:100%;box-sizing:border-box;align-items:stretch;text-align:center;min-width:0}
.venue-entry-motor b,.venue-entry-boat b{display:flex;align-items:flex-end;justify-content:center;flex:1;min-height:0;padding:3px 0 2px;font-size:16px;line-height:1.2}
.venue-entry-motor small,.venue-entry-boat small{display:flex;align-items:flex-start;justify-content:center;flex:1;min-height:0;padding:3px 0;font-size:11px;line-height:1.2}
@media(max-width:390px){.venue-entry-row:not(.venue-entry-cols),.venue-entry-cols{grid-template-columns:34px minmax(0,1fr) 49px 55px 55px}.venue-entry-person small:first-child{font-size:9px}}

/* v0.20.25: override legacy pseudo-frame and equalize equipment halves */
.venue-entry-grade.grade-a1::before{border-color:#ec6871!important}
.venue-entry-grade.grade-a2::before{border-color:#e99b42!important}
.venue-entry-grade.grade-b1::before{border-color:#333!important}
.venue-entry-grade.grade-b2::before{border-color:#a3a7af!important}
.venue-entry-grade.grade-unknown::before{border-color:#c8cbd0!important}
.venue-entry-grade.grade-a1,.venue-entry-grade.grade-a2,.venue-entry-grade.grade-b1,.venue-entry-grade.grade-b2{background:transparent!important}
.venue-entry-motor,.venue-entry-boat{display:grid!important;grid-template-rows:1fr 1fr;justify-content:stretch!important;align-items:stretch!important}
.venue-entry-motor b,.venue-entry-boat b{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;min-height:0!important}
.venue-entry-motor small,.venue-entry-boat small{display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;min-height:0!important;border-top:1px solid #d1d8e3!important}

/* v0.20.27: explicit venue result statuses */
#home .venue.venue-ended .time{color:#d63c48!important;font-weight:900!important}
#home .venue.venue-cancelled .time{color:#d63c48!important;font-weight:900!important}

/* v0.20.27: neutral separator and compact rank badge */
.venue-entry-grade.grade-a1,.venue-entry-grade.grade-a2,.venue-entry-grade.grade-b1,.venue-entry-grade.grade-b2,.venue-entry-grade.grade-unknown{border-left:1px solid #d1d8e3!important;border-right:0!important;background:transparent!important;}
.venue-entry-grade::before{inset:calc(50% - 13px) 8px!important;border-radius:6px!important;}

/* v0.20.29 compact racer profile and in-page basic stats */
.player-overlay-compact{align-items:center;padding:calc(env(safe-area-inset-top) + 12px) 14px calc(env(safe-area-inset-bottom) + 12px);box-sizing:border-box;background:rgba(12,30,54,.57)}
.player-overlay-compact .player-sheet{width:100%;max-width:460px;max-height:min(76dvh,610px);border-radius:18px;padding:0 10px 12px;box-shadow:0 14px 40px #071c3d66}
.player-overlay-compact .player-sheet-top{margin:0 -10px 8px;padding:11px 14px;justify-content:space-between}
.player-overlay-compact .player-sheet-top .player-close{font-size:21px;line-height:1;padding:4px 11px}
.player-overlay-compact .player-identity{padding:9px 11px;margin-bottom:8px;gap:9px}
.player-overlay-compact .player-identity strong{font-size:17px}
.player-overlay-compact .player-lane-pill{width:36px;height:39px;font-size:21px}
.player-overlay-compact .player-section{margin:6px 0}
.player-overlay-compact .player-section h3{padding:8px 10px;font-size:13px}
.player-overlay-compact .player-stat{padding:8px 3px}
.player-overlay-compact .player-stat small{font-size:10px}
.player-overlay-compact .player-stat b{font-size:14px}
.basic-player-data{margin:18px 0 8px}
.basic-player-data>h3{margin:0 0 6px;font-size:17px;color:#075ca5}
.basic-player-data>p{font-size:11px;color:#6a7c91;margin:0 0 10px}
.basic-racer-details{border:1px solid #d6e3f2;border-radius:12px;margin:8px 0;overflow:hidden;background:#fff}
.basic-racer-details>summary{display:flex;align-items:center;gap:10px;padding:9px 11px;cursor:pointer;list-style:none}
.basic-racer-details>summary::-webkit-details-marker{display:none}
.basic-racer-details>summary .player-lane-pill{width:31px;height:34px;font-size:18px}
.basic-racer-details>summary strong{flex:1;font-size:14px}
.basic-racer-details>summary>span:last-child{font-size:10px;color:#087ab5}
.basic-racer-details[open]>summary{border-bottom:1px solid #d6e3f2;background:#f1f7ff}
.player-data-inline{padding:8px;max-width:100%;overflow:hidden}
.player-data-inline>.player-sheet-top,.player-data-inline>.player-identity{display:none}
.player-data-inline .player-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.player-data-inline .player-section{margin:8px 0}
.player-data-inline .player-stat{padding:9px 2px}
.player-data-inline .player-stat b{font-size:14px}

/* v0.20.30 new-V preview layout */
.nv-pr-wrap{padding:10px 2px 24px;color:#eaf4ff;background:#071d36}.nv-pr-title{font-size:18px;font-weight:800;padding:10px 12px;color:#f4cb72}.nv-pr-card{background:linear-gradient(145deg,#102e4d,#071c34);border:1px solid #b58b45;border-radius:15px;margin:10px 3px;padding:13px 10px;box-shadow:0 3px 14px #0003}.nv-pr-card h3{font-size:17px;color:#f1c979;margin:0 0 13px;border-bottom:1px solid #a98348;padding:0 0 10px}.nv-pr-card h3 small{float:right;color:#a9c4d9;font-size:10px;font-weight:400}.nv-pr-grid{display:grid;grid-template-columns:67px repeat(6,minmax(0,1fr));border-top:1px solid #35516a;border-left:1px solid #35516a;overflow:hidden}.nv-pr-cell{min-width:0;overflow-wrap:anywhere;text-align:center;padding:11px 1px;font-size:11px;font-weight:700;border-right:1px solid #35516a;border-bottom:1px solid #35516a;background:#12314e}.nv-pr-key{font-size:10px;color:#b8d0e2;background:#0b2742;display:flex;align-items:center;justify-content:center}.nv-pr-lane{font-size:15px}.nv-pr-parts{font-size:9px;font-weight:400}.nv-pr-order{font-weight:800;font-size:15px;margin-bottom:12px}.nv-pr-slit-row{display:flex;align-items:center;gap:5px;margin:8px 0}.nv-pr-lane-pill{display:flex;align-items:center;justify-content:center;flex:0 0 26px;height:30px;border-radius:7px;font-weight:900}.nv-pr-course{font-size:9px;color:#bbd0e1;flex:0 0 47px}.nv-pr-track{height:29px;position:relative;flex:1;background:#08253f;border-radius:9px}.nv-pr-track i{position:absolute;left:72%;top:0;height:100%;border-left:3px solid #ed5a5a}.nv-pr-boat{position:absolute;top:2px;font-size:19px;transform:translateX(-50%);text-shadow:0 0 2px white}.nv-pr-slit-row>b{width:34px;text-align:right;font-size:12px}.nv-pr-weather{display:grid;grid-template-columns:1fr 1fr;gap:9px}.nv-pr-weather-tile{border:1px solid #3c6886;border-radius:11px;padding:13px 10px;min-height:75px;background:#12314d}.nv-pr-weather-tile small{display:block;color:#a9c3d9;font-size:12px}.nv-pr-weather-tile strong{display:block;color:#fff;font-size:21px;margin-top:8px;overflow-wrap:anywhere}.nv-pr-note{color:#b4c7d7;font-size:11px;line-height:1.6;margin:10px 3px 2px}

/* v0.20.31: preview panel follows the NEW V light-blue/white design. */
.nv-pr-wrap{background:#f2f5fc;color:#193c64;padding:12px 10px 26px}
.nv-pr-title{background:#fff;color:#1457a6;font-size:18px;font-weight:800;padding:15px 12px;border:1px solid #dce5f3;border-radius:15px 15px 0 0;margin:0 0 12px}
.nv-pr-card{background:#fff;border:1px solid #dce5f3;border-radius:15px;margin:12px 0;padding:0 0 14px;box-shadow:none;overflow:hidden}
.nv-pr-card h3{background:#e5f1ff;color:#075fae;border:0;border-bottom:1px solid #dce7f4;font-size:17px;font-weight:800;margin:0 0 12px;padding:15px 14px}
.nv-pr-card h3 small{color:#6e91b6;font-size:10px}
.nv-pr-grid{margin:0 10px;grid-template-columns:65px repeat(6,minmax(0,1fr));border-top:1px solid #d8e2ee;border-left:1px solid #d8e2ee}
.nv-pr-cell{background:#fff;color:#17385e;border-right:1px solid #d8e2ee;border-bottom:1px solid #d8e2ee;font-size:11px;padding:12px 1px}
.nv-pr-key{background:#edf4fc;color:#587b9f;font-size:10px}
.nv-pr-lane{font-size:15px}
.nv-pr-order{color:#164b83;margin:2px 12px 12px;font-size:15px}
.nv-pr-slit{padding:0 10px}
.nv-pr-slit-row{gap:6px;margin:8px 0}
.nv-pr-course{color:#6e8ba8;font-size:10px}
.nv-pr-track{background:#edf5fd;border:1px solid #d8e7f5;border-radius:8px}
.nv-pr-track i{border-color:#e95e64}
.nv-pr-slit-row>b{color:#244f7a}
.nv-pr-weather{padding:0 12px;gap:9px}
.nv-pr-weather-tile{background:#fff;border:1px solid #dce6f2;border-radius:12px;min-height:76px;padding:12px}
.nv-pr-weather-tile small{color:#718ba7;font-size:12px}
.nv-pr-weather-tile strong{color:#173d67;font-size:22px}
.nv-pr-note{color:#7890aa;font-size:11px;margin:10px 12px 2px;line-height:1.65}

/* v0.20.32: compact racer names in preview data and slit diagram */
.nv-pr-racer-name{display:block;font-size:10px;line-height:1.35;font-weight:700;overflow-wrap:anywhere;word-break:break-all;padding:1px 0}
.nv-pr-slit-name{display:block;font-size:10px;line-height:1.25;font-weight:700;color:#214c7b;overflow-wrap:anywhere;word-break:break-all}
.nv-pr-course{flex:0 0 88px;line-height:1.35}
.nv-pr-slit-row{gap:5px}
@media(max-width:390px){.nv-pr-course{flex-basis:76px}.nv-pr-racer-name{font-size:9px}.nv-pr-slit-name{font-size:9px}.nv-pr-cell{padding-left:0;padding-right:0}}

/* v0.20.33: venue interruptions and compact hit badges */
#home .venue{overflow:hidden!important}
#home .venue .venue-weather{display:none!important}
#home .venue .venue-extras{position:absolute!important;right:4px!important;top:4px!important;bottom:auto!important;max-height:36px!important;max-width:44px!important;overflow:hidden!important;z-index:2!important}
#home .venue .venue-hit-group{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:1px!important}
#home .venue .venue-hits{font-size:8px!important;line-height:12px!important;min-height:12px!important;padding:0 2px!important}
#home .venue strong{max-width:calc(100% - 43px)!important;overflow:hidden!important;text-overflow:ellipsis!important}
#home .venue .state,#home .venue .time{position:relative!important;z-index:3!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
#home .venue.venue-cancelled .state,#home .venue.venue-cancelled .time{color:#cb3447!important;font-weight:800!important}
#home .venue.venue-cancelled{opacity:1!important;background:#f9eeee!important}
#home .venue .venue-extras{max-height:32px!important}
#home .venue .venue-hit-group{gap:0!important}
#home .venue .venue-hits{font-size:7px!important;line-height:10px!important;min-height:10px!important;padding:0 2px!important}
/* v0.20.34: home venue card deadline warning */
@keyframes venueDeadlineBlink{0%,45%{color:#df233c;opacity:1}50%,100%{color:#df233c;opacity:.22}}
#home .venue.venue-deadline-soon:not(.venue-cancelled) .time{animation:venueDeadlineBlink 1s steps(1,end) infinite!important;color:#df233c!important;font-weight:900!important}
@media(prefers-reduced-motion:reduce){#home .venue.venue-deadline-soon:not(.venue-cancelled) .time{animation:none!important;color:#df233c!important}}
#home .venue .venue-extras{display:none!important}
#home .venue.venue-cancelled .state:empty{display:none!important}

/* v0.20.35: keep the event day and grade on cancelled venue cards. */
#home .venue.venue-cancelled .state{color:#354b67!important;font-weight:700!important}
#home .venue.venue-cancelled .time{color:#d23848!important}
/* Restore the independent red/blue hit badges without covering the closing time. */
#home .venue .venue-extras{display:flex!important;position:absolute!important;right:3px!important;top:3px!important;bottom:auto!important;max-width:39px!important;max-height:39px!important;overflow:visible!important;z-index:2!important;pointer-events:none!important}
#home .venue .venue-hit-group{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:1px!important}
#home .venue .venue-hits{display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:8px!important;line-height:12px!important;min-height:12px!important;padding:0 3px!important;white-space:nowrap!important}
#home .venue .venue-hits-both{padding:0!important}
#home .venue .venue-hits-both .venue-hit-red,#home .venue .venue-hits-both .venue-hit-blue{padding-top:0!important;padding-bottom:0!important}
#home .venue strong{font-size:clamp(11px,3.4vw,14px)!important;max-width:100%!important;padding-right:0!important;letter-spacing:-.04em!important;text-overflow:clip!important;overflow:visible!important;white-space:nowrap!important}
#home .venue:has(.venue-extras) strong{max-width:calc(100% - 30px)!important;font-size:clamp(10px,3vw,12px)!important;letter-spacing:-.07em!important}
#home .venue .state,#home .venue .time{position:relative!important;z-index:1!important;max-width:100%!important;overflow-wrap:normal!important;word-break:keep-all!important}
/* Three raised, tappable dashboard counters matching the dimensional venue cards. */
.fixed-top .dash-metrics .dash-action[data-summary]{border:1px solid #c7d7e8!important;border-bottom:2px solid #9aacc3!important;border-radius:10px!important;background:linear-gradient(155deg,#ffffff 0%,#e9f0fa 62%,#d6e3f1 100%)!important;box-shadow:inset 0 1px 0 #fff,0 3px 6px #38547438!important;transform:translateY(-1px);transition:transform .12s,box-shadow .12s}
.fixed-top .dash-metrics .dash-action[data-summary="main"]{background:linear-gradient(155deg,#fffafb,#ffe6ea 58%,#f5cbd4 100%)!important;border-color:#f3c3cf!important;border-bottom-color:#dc9cac!important;box-shadow:inset 0 1px 0 #fff,0 3px 6px #ad415034!important}
.fixed-top .dash-metrics .dash-action[data-summary="hole"]{background:linear-gradient(155deg,#ffffff,#e4f3ff 58%,#c9e2fa 100%)!important;border-color:#b7d8f1!important;border-bottom-color:#8bb9db!important;box-shadow:inset 0 1px 0 #fff,0 3px 6px #2677b034!important}
.fixed-top .dash-metrics .dash-action[data-summary]:active{transform:translateY(1px);box-shadow:inset 0 2px 5px #4d688b30!important}

/* v0.20.36: keep badges ready even before result reconciliation finishes. */
#home .venue .venue-extras:empty{display:none!important}
#home .venue:has(.venue-extras:empty) strong{max-width:100%!important;font-size:clamp(11px,3.4vw,14px)!important}
#home .venue.venue-cancelled .state{white-space:normal!important}

/* v0.20.38: one top-level tab bar, compact venue title back control */
#detail .venue-detail-actions{display:none!important}
#detail .venue-detail-title{gap:9px;padding:12px 12px 14px}
#detail .venue-detail-title #back{flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:#ffffff26;color:#fff;border:1px solid #ffffff65;font-size:30px;font-weight:500;line-height:1;padding:0}
#detail .venue-detail-title strong{min-width:0;font-size:23px}
#detail .entry-header{display:none!important}
#detail #raceBody{border-radius:14px;border-top:1px solid #e1eaf5;margin-top:0}
#detail .brv-odds-open{background:#0757b4;color:#fff;border:0;border-radius:10px;padding:12px 18px;font-weight:800}

/* v0.20.39 - responsive light-blue odds matrix */
.nv-odds{padding:12px 10px 30px;color:#1b385e}.nv-odds-title{font-size:19px;font-weight:800;color:#155c9c;display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.nv-odds-title button{background:#fff;border:1px solid #9cc7e9;border-radius:10px;padding:7px 12px;color:#1563a6;font-weight:700}.nv-odds-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}.nv-odds-tabs button{border:1px solid #c4d7ed;background:#eef4fc;border-radius:9px;padding:11px 2px;font-size:12px;font-weight:700;color:#39709e;white-space:nowrap}.nv-odds-tabs button.on{background:#1269b5;color:white;border-color:#1269b5;box-shadow:0 2px 6px #5a8dc04a}.nv-odds-status{font-size:11px;color:#587c9f;margin:7px 0 12px}.nv-odds-first{background:white;border:1px solid #d5e2f0;border-radius:12px;overflow:hidden;margin:0 0 12px;box-shadow:0 2px 6px #184b7720}.nv-odds-first-head{display:flex;align-items:center;gap:9px;padding:8px 10px;background:#e7f1fd;color:#1c5487;font-size:13px}.nv-odds-lane{display:inline-flex;justify-content:center;align-items:center;width:23px;height:26px;min-width:23px;border-radius:5px;font-weight:800;font-size:15px}.nv-odds-pairs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}.nv-odds-pair{min-width:0;border-right:1px solid #d9e5f1}.nv-odds-pair:last-child{border-right:0}.nv-odds-pair-head{display:flex;align-items:center;justify-content:center;gap:2px;padding:5px 0;background:#f5f8fd;font-size:9px;color:#6c8aab}.nv-odds-pair-head .nv-odds-lane{width:20px;min-width:20px;height:23px;font-size:13px}.nv-odds-cell{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-top:1px solid #e1e9f4;min-height:49px;padding:3px 0;gap:3px}.nv-odds-cell .nv-odds-lane{height:19px;width:19px;min-width:19px;font-size:11px}.nv-odds-cell b{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.nv-odds-cell b.nv-odds-high{color:#d9414d}.nv-odds-simple{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dce8f5}.nv-odds-simple-cell{min-width:0;display:flex;align-items:center;gap:5px;background:white;padding:12px 7px;font-size:12px}.nv-odds-simple-cell b{margin-left:auto;font-size:13px;font-variant-numeric:tabular-nums}.nv-odds-simple-cell span:not(.nv-odds-lane){font-size:11px}@media(max-width:390px){.nv-odds{padding:10px 6px}.nv-odds-cell b{font-size:10px}.nv-odds-pair-head span:not(.nv-odds-lane){display:none}.nv-odds-simple{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.20.42 odds racer name headers */
.nv-odds-first-head strong{min-width:0;overflow-wrap:anywhere}.nv-odds-first-head small{font-size:10px;font-weight:600;margin-left:4px;color:#6589ad}

/* v0.20.42 venue and race header selectors */
#detail .venue-detail-title{position:relative;flex-wrap:nowrap;gap:7px}
#detail .nv-venue-switch{display:flex;align-items:center;gap:6px;flex:1;min-width:0}
#detail .nv-venue-switch button{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #ffffff75;border-radius:11px;background:#ffffff20;color:white;min-height:40px;padding:5px 9px;font-size:18px;font-weight:800;white-space:nowrap}
#detail #nvVenueChoose{min-width:0;max-width:58%;}
#detail #nvVenueChoose #venueTitle{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#detail #nvRaceChoose{flex:0 0 auto;font-size:16px}
#detail .nv-select-arrow{font-size:12px;opacity:.9}
#detail .nv-picker{position:absolute;z-index:110;left:8px;right:8px;top:calc(100% - 8px);padding:12px;background:white;border:1px solid #bfd6ef;border-radius:14px;box-shadow:0 12px 25px #092b5480;color:#16436e;max-height:55vh;overflow-y:auto}
#detail .nv-picker[hidden]{display:none}
#detail .nv-picker-title{font-size:13px;font-weight:800;padding:4px 3px 10px}
#detail .nv-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
#detail .nv-picker-grid button{background:#eef4ff;border:1px solid #c8d9ed;color:#225682;border-radius:9px;padding:10px 2px;min-height:39px;font-weight:800;font-size:13px}
#detail .nv-picker-grid button.selected{background:#126cba;color:#fff;border-color:#126cba}
#detail .venue-detail-title #registerAll{font-size:11px;padding:8px 5px;white-space:nowrap}
#detail .venue-detail-title #venueReload{padding:4px 7px}
@media(max-width:390px){#detail .venue-detail-title{gap:5px;padding-left:7px;padding-right:7px}#detail .nv-venue-switch{gap:4px}#detail .nv-venue-switch button{font-size:15px;padding:5px 6px}#detail .venue-detail-title #registerAll{font-size:10px}}

/* v0.20.43: single race picker in header; single odds market picker in content */
#detail #raceTabs{display:none!important}
#detail #singleRace .content-card{margin-top:0}
.nv-odds-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px}
.nv-odds-kind-wrap{position:relative;min-width:0}
.nv-odds-kind-choose{display:flex;align-items:center;gap:14px;justify-content:space-between;min-width:138px;min-height:46px;padding:7px 10px 7px 16px;background:#ffffff22;color:#1765a6;border:1px solid #b7d2ed;border-radius:12px;font-size:17px;font-weight:800;box-shadow:0 2px 5px #124c8120}
.nv-odds-kind-choose .nv-select-arrow{display:grid;place-items:center;background:#e4effa;border-radius:8px;width:32px;height:32px;font-size:14px}
.nv-odds-kind-menu{position:absolute;top:calc(100% + 5px);left:0;z-index:30;min-width:178px;background:#fff;border:1px solid #b8d3eb;border-radius:12px;padding:5px;box-shadow:0 9px 24px #183b6670}
.nv-odds-kind-menu[hidden]{display:none}
.nv-odds-kind-menu button{display:block;width:100%;padding:11px 13px;text-align:left;background:white;border:0;border-radius:8px;color:#235780;font-size:14px;font-weight:700}
.nv-odds-kind-menu button.on{background:#146db7;color:#fff}
.nv-odds-refresh{background:#fff;border:1px solid #9cc7e9;border-radius:10px;padding:9px 12px;color:#1563a6;font-weight:700}

/* v0.20.49: compact grade column and prediction-hit marker */
.venue-entry-row:not(.venue-entry-cols),.venue-entry-cols{grid-template-columns:38px minmax(0,1fr) 43px 64px 64px!important}
.venue-entry-grade{min-width:0!important;font-size:11px!important;padding:1px 0!important}
.venue-entry-grade::before{inset:calc(50% - 12px) 3px!important;border-radius:5px!important}
.venue-race-actions .race-prediction-action{position:relative}
.race-prediction-hit{position:absolute;right:2px;top:1px;font-size:15px;line-height:1;pointer-events:none}
@media(max-width:390px){.venue-entry-row:not(.venue-entry-cols),.venue-entry-cols{grid-template-columns:34px minmax(0,1fr) 39px 55px 55px!important}}

/* v0.20.50: hit-specific prediction button outline, no extra emoji */
.venue-race-actions .race-prediction-action.hit-main,
.venue-race-actions .race-prediction-action.hit-hole,
.venue-race-actions .race-prediction-action.hit-both{border:3px solid transparent;padding:12px 0;background:linear-gradient(#078fc7,#078fc7) padding-box,linear-gradient(#078fc7,#078fc7) border-box;}
.venue-race-actions .race-prediction-action.hit-main{background:linear-gradient(#078fc7,#078fc7) padding-box,linear-gradient(#ef4358,#ef4358) border-box;box-shadow:0 0 0 1px #ef43583b;}
.venue-race-actions .race-prediction-action.hit-hole{background:linear-gradient(#078fc7,#078fc7) padding-box,linear-gradient(#168bea,#168bea) border-box;box-shadow:0 0 0 1px #168bea44;}
.venue-race-actions .race-prediction-action.hit-both{background:linear-gradient(#078fc7,#078fc7) padding-box,linear-gradient(90deg,#ef4358 0%,#ef4358 50%,#168bea 50%,#168bea 100%) border-box;}
/* Prediction page: navy-to-cyan branded hero, retaining existing prediction content */
#prediction .prediction-hero{position:relative;overflow:hidden;margin:0 -10px 14px;padding:20px 19px 17px;background:linear-gradient(112deg,#073c86 0%,#086cb9 55%,#0a9bcd 100%);color:white;border-radius:0 0 18px 18px;box-shadow:0 6px 17px #0b5a9e2b;}
#prediction .prediction-hero::after{content:"V";position:absolute;right:15px;top:-31px;font-size:138px;font-weight:900;line-height:1;color:#ffffff13;pointer-events:none;}
#prediction .prediction-hero-kicker{position:relative;z-index:1;font-size:10px;font-weight:800;letter-spacing:.15em;color:#c7eaff;}
#prediction .prediction-hero-kicker span{margin-left:8px;color:#f6d58a;}
#prediction #predictionHeading{position:relative;z-index:1;text-align:left;color:#fff;font-size:23px;margin:10px 0 13px;letter-spacing:.02em;}
#prediction .prediction-hero-foot{position:relative;z-index:1;display:flex;gap:9px;flex-wrap:wrap;}
#prediction .prediction-hero-foot span{display:inline-flex;align-items:center;gap:6px;border:1px solid #ffffff5b;border-radius:7px;padding:5px 9px;background:#ffffff18;color:white;font-size:11px;font-weight:800;}
#prediction .prediction-hero-dot{display:inline-block;width:8px;height:8px;border-radius:50%;}
#prediction .prediction-hero-dot.red{background:#ff6a80;}
#prediction .prediction-hero-dot.blue{background:#6ad2ff;}

/* v0.20.51: retain hit outline and show hit mark on prediction action */
.race-prediction-action.hit-main::after,.race-prediction-action.hit-hole::after,.race-prediction-action.hit-both::after{content:"🎯";position:absolute;top:-12px;right:-8px;font-size:17px;line-height:1;filter:drop-shadow(0 1px 2px rgba(0,0,0,.22));pointer-events:none;z-index:2}

/* v0.20.76: race list age/weight and two-level win rate column */
.venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){grid-template-columns:34px minmax(0,1fr) 44px 59px 52px 52px}
.venue-entry-cols{font-size:9px}
.venue-entry-cols small{font-size:8px;font-weight:normal}
.venue-entry-person .venue-racer-age-weight{font-size:10px;white-space:nowrap;color:#777e8c}
.venue-entry-winrate{display:grid;grid-template-rows:1fr 1fr;min-width:0;border-left:1px solid #d1d8e3;font-size:12px;font-weight:800;color:#172b43}
.venue-entry-winrate span{display:grid;place-items:center;min-width:0}
.venue-entry-winrate span+span{border-top:1px solid #d1d8e3}
@media(max-width:370px){.venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){grid-template-columns:30px minmax(0,1fr) 40px 54px 48px 48px}.venue-entry-person .player-name-link{font-size:13px}.venue-entry-winrate{font-size:11px}.venue-entry-person .venue-racer-age-weight{font-size:9px}}

/* v0.20.77: override legacy !important five-column rules; prevent sixth cell wrapping */
.venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) 44px 59px 52px 52px!important;
  grid-auto-flow:row!important;
  align-items:stretch;
  width:100%;
  box-sizing:border-box;
}
.venue-entry-row:not(.venue-entry-cols)>*,.venue-entry-cols>*{min-width:0;box-sizing:border-box}
.venue-entry-row:not(.venue-entry-cols){min-height:72px}
.venue-entry-winrate{min-height:0}
.venue-entry-person .venue-racer-age-weight{font-size:10px;white-space:nowrap;letter-spacing:-.2px}
@media(max-width:370px){
  .venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){grid-template-columns:30px minmax(0,1fr) 40px 54px 48px 48px!important}
  .venue-entry-person .venue-racer-age-weight{font-size:9px}
}

/* v0.20.79: five columns, compact class badge next to branch */
.venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){grid-template-columns:34px minmax(0,1fr) 59px 52px 52px!important}
.venue-entry-person small:first-child{display:flex;align-items:center;justify-content:center;gap:4px;overflow:visible;text-overflow:clip;white-space:nowrap}
.venue-inline-grade{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:19px;height:15px;box-sizing:border-box;border:1px solid #999;border-radius:3px;padding:0 2px;font-size:9px;line-height:1;font-weight:700;color:#333;background:#fff}
.venue-inline-grade.grade-a1{color:#dc4c54;border-color:#e5737a}.venue-inline-grade.grade-a2{color:#dc8732;border-color:#e4a35c}.venue-inline-grade.grade-b1{color:#333;border-color:#777}.venue-inline-grade.grade-b2{color:#8b909a;border-color:#a6aab2}
@media(max-width:370px){.venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){grid-template-columns:30px minmax(0,1fr) 54px 48px 48px!important}.venue-entry-person small:first-child{gap:2px;font-size:9px}.venue-inline-grade{font-size:8px;min-width:17px}}

/* v0.20.79: 7-column compact race entry table */
.venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){grid-template-columns:30px minmax(0,1fr) 36px 34px 47px 43px 43px!important}
.venue-entry-cols{font-size:8px;line-height:1.25;min-height:43px}
.venue-entry-cols small{font-size:7px}
.venue-entry-person{padding:4px 1px!important}
.venue-entry-person small:first-child{font-size:9px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.venue-entry-person .player-name-link{display:flex;align-items:center;justify-content:center;gap:3px;font-size:13px;white-space:nowrap}
.venue-entry-person .venue-racer-age-weight{font-size:9px!important;letter-spacing:-.4px;white-space:nowrap}
.venue-inline-grade{font-size:8px;min-width:17px;height:14px;padding:0 2px;text-decoration:none;flex-shrink:0}
.venue-entry-st,.venue-entry-fl{display:flex;align-items:center;justify-content:center;border-left:1px solid #d1d8e3;font-weight:800;font-size:11px;min-width:0}
.venue-entry-fl{flex-direction:column;font-size:10px}
.venue-entry-fl span{display:grid;place-items:center;flex:1;width:100%}
.venue-entry-fl span+span{border-top:1px solid #d1d8e3}
.venue-entry-winrate{font-size:11px}
.venue-entry-motor b,.venue-entry-boat b{font-size:15px}
.venue-entry-motor small,.venue-entry-boat small{font-size:10px}
@media(max-width:370px){
.venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){grid-template-columns:28px minmax(0,1fr) 32px 29px 42px 39px 39px!important}
.venue-entry-person .player-name-link{font-size:12px}
.venue-entry-person .venue-racer-age-weight{font-size:8px!important}
.venue-entry-st,.venue-entry-fl,.venue-entry-winrate{font-size:10px}
}

/* v0.20.80: compact header, continuous column separators */
.venue-entry-cols{
  min-height:29px!important;
  height:29px!important;
  padding:0!important;
  align-items:stretch!important;
  grid-auto-rows:29px!important;
  border-bottom:1px solid #cfd3db;
}
.venue-entry-cols>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:stretch!important;
  min-height:0!important;
  margin:0!important;
  padding:0 1px!important;
  border-right:1px solid #cfd3db;
  box-sizing:border-box;
  line-height:1.15!important;
}
.venue-entry-cols>span:last-child{border-right:0}
.venue-entry-cols small{line-height:1.1!important}

/* v0.20.84: align header dividers with body grid, including white lane 1 */
.venue-entry-cols,
.venue-entry-row:not(.venue-entry-cols){
  grid-template-columns:30px minmax(0,1fr) 36px 34px 47px 43px 43px!important;
  column-gap:0!important;
}
.venue-entry-cols>span{
  border-right:0!important;
  border-left:1px solid #d1d8e3!important;
}
.venue-entry-cols>span:first-child{border-left:0!important}
.venue-entry-row:not(.venue-entry-cols)>.venue-entry-lane{
  border-right:1px solid #d1d8e3!important;
}
@media(max-width:370px){
 .venue-entry-cols,.venue-entry-row:not(.venue-entry-cols){
   grid-template-columns:28px minmax(0,1fr) 32px 29px 42px 39px 39px!important;
 }
}

/* v0.20.84: race-list only navigation cleanup */
#detail:has(#raceList:not([hidden])) .venue-menu{display:none!important}
/* Preserve name underline while preventing it from crossing the grade badge */
.venue-entry-person .player-name-link{text-decoration:none!important}
.venue-entry-person .player-name-link .venue-inline-grade{text-decoration:none!important;border-bottom-style:solid!important}
.venue-entry-person .player-name-link .venue-racer-name{text-decoration:underline;text-decoration-color:#171717;text-decoration-thickness:1px;text-underline-offset:3px}
/* Share exact lane column boundary between header and body */
.venue-entry-cols>span{border-left:0!important;border-right:1px solid #d1d8e3!important}
.venue-entry-cols>span:last-child{border-right:0!important}
.venue-entry-row:not(.venue-entry-cols)>.venue-entry-lane{border-right:1px solid #d1d8e3!important}
.venue-race-location{appearance:none;background:none;border:0;padding:0;color:#fff;font-size:14px;font-weight:800;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px;white-space:nowrap;cursor:pointer}
.venue-race-head{gap:6px}
.venue-race-head .venue-race-location{flex-shrink:0}

/* v0.20.85: keep venue/race selector bar visible while scrolling the race list. */
body.detail-mode #detail .venue-detail-banner{
 position:sticky!important;
 top:0!important;
 z-index:28!important;
 margin-bottom:18px;
 box-shadow:0 3px 9px rgba(8,45,89,.12);
}
body.detail-mode #detail .venue-detail-title{position:relative}
body.detail-mode #detail .nv-picker{z-index:120}

/* v0.20.89: remove the 8px scrolling-content leak above sticky race selector. */
body.detail-mode main{padding-top:0!important;}
body.detail-mode #detail .venue-detail-banner{
 top:0!important;
 isolation:isolate;
}
body.detail-mode #detail .venue-detail-banner::before{
 content:"";
 position:absolute;
 left:0;right:0;top:-12px;height:12px;
 background:linear-gradient(110deg,#07529b,#0088c5);
 pointer-events:none;
}

/* v0.20.91: compact six-lane start exhibition table */
.nv-ex-wrap{margin:0 10px;border:1px solid #d6dfeb;border-radius:8px;overflow:hidden;background:#fff}
.nv-ex-head,.nv-ex-row{display:grid;grid-template-columns:32px minmax(64px,1.1fr) 39px 51px minmax(95px,1.6fr) 39px;align-items:stretch}
.nv-ex-head{background:#303b49;color:#fff;font-size:10px;font-weight:800;text-align:center}
.nv-ex-head>span{display:flex;align-items:center;justify-content:center;padding:7px 1px;line-height:1.15}
.nv-ex-row{min-height:47px;border-top:1px solid #dce2ea;font-size:11px;color:#172b43;font-weight:750}
.nv-ex-row>div:not(.nv-ex-track){display:flex;align-items:center;justify-content:center;text-align:center;padding:3px 1px;min-width:0}
.nv-ex-lane{font-size:17px;font-weight:900}
.nv-ex-name{overflow-wrap:anywhere;line-height:1.2}
.nv-ex-time{font-weight:900}
.nv-ex-track{position:relative;background:repeating-linear-gradient(135deg,#e7f5ff 0px,#e7f5ff 7px,#d7edfd 7px,#d7edfd 14px);min-width:0;overflow:hidden}
.nv-ex-zero{position:absolute;top:0;bottom:0;left:68%;width:2px;background:#e9464c;z-index:1}
.nv-ex-arrow{position:absolute;top:50%;transform:translate(-50%,-50%);height:25px;min-width:25px;padding:0 2px;display:flex;align-items:center;justify-content:center;clip-path:polygon(0 0,72% 0,100% 50%,72% 100%,0 100%);font-weight:900;font-size:14px;z-index:2}
.nv-ex-st{font-size:12px;font-weight:850}.nv-ex-f{color:#e32838!important}
@media(max-width:375px){.nv-ex-wrap{margin:0 4px}.nv-ex-head,.nv-ex-row{grid-template-columns:26px minmax(58px,1fr) 33px 45px minmax(75px,1.3fr) 36px}.nv-ex-row{font-size:10px}.nv-ex-st{font-size:11px}}

/* v0.20.92: keep all columns visible on narrow iPhone screens; rank exhibition times. */
.nv-ex-head,.nv-ex-row{grid-template-columns:26px minmax(0,1.35fr) 34px 45px minmax(0,1.35fr) 54px!important;width:100%;box-sizing:border-box}
.nv-ex-row>div{min-width:0;box-sizing:border-box}
.nv-ex-st{font-size:11px!important;white-space:nowrap;overflow:visible;letter-spacing:-.3px;padding:0 1px!important}
.nv-ex-time-badge{display:inline-block;padding:3px 2px;border-radius:2px;line-height:1.1;white-space:nowrap}
.nv-ex-time-first{background:#eb202b;color:#fff}
.nv-ex-time-second{background:#f4ad23;color:#fff}
.nv-ex-track{overflow:hidden}
.nv-ex-arrow{min-width:21px;height:23px;font-size:12px}
@media(max-width:375px){.nv-ex-head,.nv-ex-row{grid-template-columns:24px minmax(0,1.25fr) 30px 42px minmax(0,1.25fr) 52px!important}.nv-ex-row{font-size:10px}.nv-ex-st{font-size:10px!important}}

/* v0.20.93: unify preview sections with the blue race-card design */
.nv-pr-wrap{background:#eef3fd!important;color:#172a43!important;padding:0 0 16px!important}
.nv-pr-title{background:linear-gradient(110deg,#0753a8,#0899ce)!important;color:#fff!important;border:0!important;border-radius:14px 14px 0 0!important;margin:0!important;padding:17px 14px!important;font-size:19px!important;box-shadow:none!important}
.nv-pr-title span{font-size:13px;font-weight:700;margin-left:8px;color:#e6f5ff}
.nv-pr-card{border:1px solid #d6e1f0!important;border-radius:0!important;background:#fff!important;margin:0!important;padding:0 0 12px!important;box-shadow:none!important;overflow:hidden!important}
.nv-pr-card + .nv-pr-card{border-top:0!important}
.nv-pr-card:last-child{border-radius:0 0 14px 14px!important}
.nv-pr-card h3{background:linear-gradient(110deg,#0753a8,#0899ce)!important;color:#fff!important;border:0!important;border-bottom:1px solid #0879b8!important;margin:0 0 10px!important;padding:12px 14px!important;font-size:15px!important;line-height:1.3!important}
.nv-pr-card h3 small{color:#e2f3ff!important;font-size:10px!important}
.nv-pr-grid{margin:0 8px!important}
.nv-pr-weather{padding:0 8px!important}
.nv-pr-weather-tile{border-radius:7px!important;min-height:62px!important;padding:10px!important}
.nv-ex-wrap{margin:0 8px!important}
.nv-pr-note{margin:8px 10px 0!important}
@media(max-width:390px){.nv-pr-card h3{padding:11px 10px!important}.nv-pr-title{padding:14px 10px!important}}

/* v0.20.94 official-inspired data panels */
.nv-detail-grid{margin:0 8px;border:1px solid #cfd7e2;border-radius:7px;overflow:hidden;background:white;color:#1b2635}
.nv-detail-head,.nv-detail-row{display:grid;grid-template-columns:8% 25% 12% 12% 17% 26%;text-align:center;align-items:stretch}
.nv-detail-head{background:#27313b;color:#fff;font-size:10px;font-weight:700}
.nv-detail-head span{padding:9px 1px}
.nv-detail-row{min-height:47px;border-top:1px solid #cfd7e2;font-size:11px;font-weight:600}
.nv-detail-row>span{display:flex;align-items:center;justify-content:center;min-width:0;overflow-wrap:anywhere;padding:5px 1px;border-right:1px solid #e0e5eb}
.nv-detail-row>span:first-child{font-size:18px;font-weight:800}
.nv-pr-weather{display:block!important;padding:0 8px!important}
.nv-weather-scene{height:172px;position:relative;background:linear-gradient(155deg,#b5e9ff,#d7f4ff 65%,#b9eaff);overflow:hidden}
.nv-weather-sky{position:absolute;top:12px;left:14px;font-size:28px}
.nv-weather-mark{position:absolute;top:57px;font-size:26px}.nv-weather-mark.left{left:27%}.nv-weather-mark.right{right:27%}
.nv-weather-arrow{position:absolute;top:48%;left:50%;font-size:60px;line-height:1;color:#d8843e;transform:translate(-50%,-50%)}
.nv-weather-stand{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);color:#667784;font-weight:800;font-size:17px}
.nv-weather-speed{position:absolute;right:8px;bottom:8px;background:white;padding:6px 8px;color:#53616c;font-size:13px}
.nv-weather-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-left:1px solid #ccd4df;border-top:1px solid #ccd4df;color:#263646;text-align:center}
.nv-weather-facts>span{padding:9px 2px;border-right:1px solid #ccd4df;border-bottom:1px solid #ccd4df;font-size:12px;overflow-wrap:anywhere}
.nv-weather-facts>span:nth-child(4n/**/+1),.nv-weather-facts>span:nth-child(4n/**/+3){background:#f4f6f9;color:#647382}

/* v0.21.06: original mascot on home */
.v-mascot{display:flex;align-items:center;gap:12px;margin:10px 12px 14px;padding:10px;border:1px solid rgba(241,197,89,.5);border-radius:15px;background:linear-gradient(120deg,#0b3474,#076eae);color:white;box-shadow:0 5px 14px #0b34742b;overflow:hidden}.v-mascot img{width:96px;height:96px;flex:none;object-fit:cover;object-position:26% 44%;border-radius:12px;border:1px solid #ffffff65}.v-mascot-body{min-width:0;flex:1}.v-mascot-title{font-size:15px;font-weight:800}.v-mascot-title span{font-size:10px;color:#ffdf83;white-space:nowrap}.v-mascot p{font-size:12px;margin:5px 0;line-height:1.5}.v-mascot button{border:1px solid #ffdf83;background:#ffdf83;color:#163e70;border-radius:7px;padding:5px 9px;font-weight:700;font-size:11px}.v-mascot #vMascotMessage{margin-top:7px;color:#fff1b9}@media(max-width:370px){.v-mascot{gap:8px;margin-left:7px;margin-right:7px}.v-mascot img{width:78px;height:88px}.v-mascot-title{font-size:13px}}

/* v0.21.07: mascot wipe + speech bubble for both prediction comments only */
#prediction .pred-ojisan-dialog{display:flex;align-items:flex-start;gap:7px;margin-top:10px;min-width:0}
#prediction .pred-ojisan-wipe{position:relative;flex:0 0 55px;width:55px;height:55px;border:3px solid #e9c56c;border-radius:50%;overflow:hidden;background:#0c5c9e;box-shadow:0 3px 8px #102d4b30}
#prediction .pred-ojisan-wipe img{display:block;width:100%;height:100%;object-fit:cover;object-position:21% 32%;transform:scale(1.45)}
#prediction .pred-ojisan-wipe span{position:absolute;bottom:0;left:0;right:0;background:#073c78d9;color:white;text-align:center;font-size:9px;line-height:1.35;font-weight:800}
#prediction .pred-ojisan-bubble{position:relative;flex:1;min-width:0;margin:0!important;padding:10px 10px 12px!important;border:2px solid #8cbde5!important;border-radius:12px!important;background:#fff!important;box-shadow:0 3px 10px #1a5e9420}
#prediction .pred-ojisan-bubble::before{content:"";position:absolute;left:-9px;top:18px;width:13px;height:13px;background:#fff;border-left:2px solid #8cbde5;border-bottom:2px solid #8cbde5;transform:rotate(45deg)}
#prediction .pred-ojisan-speaker{font-size:11px;font-weight:900;color:#1265a2;margin-bottom:7px;border-bottom:1px solid #dceaf7;padding-bottom:5px}
#prediction .pred-ojisan-bubble p{position:relative;margin:0;line-height:1.85;overflow-wrap:anywhere}
@media(max-width:380px){#prediction .pred-ojisan-dialog{gap:6px}#prediction .pred-ojisan-wipe{flex-basis:42px;width:42px;height:42px}#prediction .pred-ojisan-bubble{padding:8px!important}#prediction .pred-ojisan-bubble p{font-size:11px}}

/* v0.21.08: full-body cutout mascot, dimensional stage and speech below */
#prediction .pred-ojisan-stage{position:relative;height:175px;margin:7px -3px 0;overflow:visible;border-radius:16px 16px 0 0;background:radial-gradient(circle at 40% 70%,#eaf8ff 0%,#d3edff 48%,#ffffff 85%);isolation:isolate}
#prediction .pred-ojisan-stage:before{content:"";position:absolute;inset:18px 12px 12px;border-radius:50%;background:radial-gradient(circle,#7dcaff66,transparent 72%);filter:blur(9px)}
#prediction .pred-ojisan-figure{position:absolute;left:50%;bottom:-5px;transform:translateX(-50%);height:183px;width:100%;max-width:260px;overflow:hidden;filter:drop-shadow(0 6px 6px #0b3d6b60);z-index:1}
#prediction .pred-ojisan-figure img{position:absolute;display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;transform:scale(1.12);transform-origin:center bottom}
#prediction .pred-ojisan-headline{position:absolute;bottom:1px;left:3px;right:3px;z-index:2;background:linear-gradient(90deg,#07488e,#057ac3);border:2px solid white;border-radius:22px;box-shadow:0 3px 7px #134f8070;color:white;text-align:center;font-size:12px;font-weight:900;padding:6px 2px;line-height:1.2}
#prediction .pred-ojisan-headline strong{color:#ffe16b}
#prediction .pred-ojisan-stage.is-hole{background:radial-gradient(circle at 40% 70%,#e9f7ff,#e5e8ff 55%,#fff 90%)}
#prediction .pred-ojisan-stage.is-hole .pred-ojisan-figure img{transform:scale(1.12)}
#prediction .pred-ojisan-stage.is-hole .pred-ojisan-headline{background:linear-gradient(90deg,#173f95,#0d77b7)}
#prediction .pred-ojisan-bubble{position:relative;display:block!important;margin:12px 0 0!important;padding:12px 10px!important;min-width:0;border:2px solid #398cce!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 12px #1a5e9422}
#prediction .pred-ojisan-bubble:before{content:"";position:absolute;left:50%;top:-11px;width:17px;height:17px;transform:translateX(-50%) rotate(45deg);background:#fff;border-left:2px solid #398cce;border-top:2px solid #398cce;border-bottom:0}
#prediction .pred-ojisan-bubble p{font-size:clamp(11px,2.7vw,14px);line-height:1.85;overflow-wrap:anywhere;word-break:normal}
@media(min-width:650px){#prediction .pred-ojisan-stage{height:205px}#prediction .pred-ojisan-figure{height:210px;max-width:300px}#prediction .pred-ojisan-bubble p{font-size:14px}}

/* v0.21.11: dedicated honmei/ana characters, preserve full illustrations */
#prediction .pred-ojisan-stage.is-main{background:radial-gradient(circle at 45% 75%,#fff2e6,#e9f5ff 65%,#fff)}
#prediction .pred-ojisan-stage.is-hole{background:radial-gradient(circle at 45% 75%,#e3f5ff,#e6f0ff 65%,#fff)}
#prediction .pred-ojisan-figure img,#prediction .pred-ojisan-stage.is-hole .pred-ojisan-figure img{transform:scale(1.06);object-fit:contain;object-position:center bottom}

/* v0.21.12: fix washed-out mascot assets, show opaque illustrations */
#prediction .pred-ojisan-stage{overflow:hidden;background:#fff!important}
#prediction .pred-ojisan-figure{height:183px;max-width:260px;bottom:0;filter:drop-shadow(0 3px 5px #0b3d6b30)}
#prediction .pred-ojisan-figure img,#prediction .pred-ojisan-stage.is-hole .pred-ojisan-figure img{width:100%;height:100%;object-fit:cover;object-position:center 25%;transform:none;opacity:1;filter:none}
@media(min-width:650px){#prediction .pred-ojisan-figure{height:210px;max-width:300px}}

/* v0.21.14: confirmed-result-only character reaction; independent for each prediction */
.pred-ojisan-reaction{display:flex;align-items:center;gap:9px;margin:10px 0 12px;min-width:0}
.pred-ojisan-reaction>img{width:66px;height:66px;flex:0 0 66px;object-fit:cover;object-position:center 38%;border-radius:50%;border:2px solid #78b5dc;background:#fff;box-shadow:0 3px 9px #12385d22}
.pred-ojisan-reaction.is-win>img{border-color:#e5a72b}
.pred-ojisan-reaction-bubble{position:relative;min-width:0;flex:1;background:#fff;border:1.5px solid #85b5d8;border-radius:13px;padding:8px 9px;color:#1d4263;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.pred-ojisan-reaction-bubble:before{content:"";position:absolute;left:-7px;top:23px;width:11px;height:11px;background:#fff;border-left:1.5px solid #85b5d8;border-bottom:1.5px solid #85b5d8;transform:rotate(45deg)}
.pred-ojisan-reaction-bubble b{display:block;font-size:12px;color:#0868a5}
.pred-ojisan-reaction-bubble p{margin:3px 0 0}
.pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble{border-color:#e5b65e}
.pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble:before{border-color:#e5b65e}
@media(max-width:390px){.pred-ojisan-reaction{gap:6px}.pred-ojisan-reaction>img{width:52px;height:52px;flex-basis:52px}.pred-ojisan-reaction-bubble{padding:6px;font-size:11px}}

/* v0.21.16: crop pre-existing speech outline baked into Shigeki winning portrait */
.pred-ojisan-reaction.is-shigeki.is-win>img{object-position:12% 38%;object-fit:cover;transform:none;clip-path:circle(49% at 50% 50%)}

/* v0.21.17: keep Shigeki face centered in circular result wipe */
.pred-ojisan-reaction.is-shigeki.is-win>img{object-position:center center}

/* v0.21.18: winning portrait wider framing, losing portrait lowered in wipe */
.pred-ojisan-reaction.is-shigeki.is-win>img{object-position:center center;clip-path:none}
.pred-ojisan-reaction.is-shigeki.is-lose>img{object-position:center 12%}

/* v0.21.19: use balanced, centered shigeki win portrait without oversized face */
.pred-ojisan-reaction.is-shigeki.is-win>img{object-fit:contain;object-position:50% 50%;transform:none;clip-path:none}

/* v0.21.20: Shigeki result portrait fine tune; winning slightly closer, losing face slightly lower. */
.pred-ojisan-reaction.is-shigeki.is-win>img{object-fit:cover;object-position:50% 50%;transform:none;clip-path:none}
.pred-ojisan-reaction.is-shigeki.is-lose>img{object-fit:cover;object-position:50% 0%;transform:none}

/* v0.21.21: closer Shigeki winning portrait is supplied as a cropped image; retain circle sizing and no CSS scaling. */

/* v0.21.22: move only Shigeki winning portrait left and down, retain original dimensions */
.pred-ojisan-reaction.is-shigeki.is-win>img{transform:translate(-9px, 14px);}

/* v0.21.23: further move Shigeki winning portrait left and down; size unchanged */
.pred-ojisan-reaction.is-shigeki.is-win>img{transform:translate(-17px, 25px);}

/* v0.21.24: keep winning Shigeki portrait inside the circular wipe. */
.pred-ojisan-reaction.is-shigeki.is-win>img{transform:none!important;object-fit:cover;object-position:center center;}

/* v0.21.25: unified speech bubble, fixed top avatar, full-width commentary */
#prediction .pred-ojisan-reaction{position:relative;display:block;margin:10px 0 12px;min-width:0;padding:0;isolation:isolate}
#prediction .pred-ojisan-reaction>img{position:absolute;z-index:3;top:9px;left:5px;width:70px;height:70px;min-width:70px;max-width:70px;object-fit:cover;object-position:center center;border-radius:50%;transform:none!important;clip-path:none;box-sizing:border-box}
#prediction .pred-ojisan-reaction-bubble{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:146px;padding:12px 11px 13px;border:1.5px solid #85b5d8;border-radius:15px;background:#fff;color:#1d4263;font-size:12px;line-height:1.65;overflow-wrap:anywhere}
#prediction .pred-ojisan-reaction-bubble:before{left:73px;top:36px;width:12px;height:12px;z-index:1}
#prediction .pred-ojisan-reaction-bubble b{display:flex;align-items:center;min-height:70px;margin:0 0 9px 81px;font-size:12px;line-height:1.4;color:#0868a5}
#prediction .pred-ojisan-reaction-bubble p{display:block;margin:0;padding-top:10px;border-top:1px solid #dce8f1;min-height:35px;line-height:1.75}
#prediction .pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble p{border-top-color:#f0dfb6}
@media(max-width:390px){#prediction .pred-ojisan-reaction>img{width:60px;height:60px;min-width:60px;max-width:60px;top:10px;left:3px}#prediction .pred-ojisan-reaction-bubble b{min-height:63px;margin-left:68px;font-size:11px}#prediction .pred-ojisan-reaction-bubble:before{left:62px;top:32px}}

/* v0.21.26: one continuous speech bubble, avatar pinned directly under result heading.
   The tail meets the avatar at its right edge; the commentary uses the full card width. */
#prediction .pred-ojisan-reaction{position:relative;display:block;margin:12px 0 12px;padding:0;min-width:0;isolation:isolate}
#prediction .pred-ojisan-reaction>img{position:absolute;z-index:4;left:5px;top:12px;width:70px;height:70px;min-width:70px;max-width:70px;box-sizing:border-box;object-fit:cover;object-position:center center;border-radius:50%;transform:none!important;clip-path:none}
#prediction .pred-ojisan-reaction-bubble{position:relative;display:block;width:100%;min-width:0;min-height:0;box-sizing:border-box;padding:10px 11px 13px;border:1.5px solid #85b5d8;border-radius:16px;background:#fff;color:#1d4263;font-size:12px;line-height:1.7;overflow:visible;overflow-wrap:break-word}
/* Triangle is part of the same bubble, with its tip touching the avatar. */
#prediction .pred-ojisan-reaction-bubble:before{content:"";position:absolute;z-index:2;left:75px;top:37px;width:12px;height:12px;background:#fff;border-left:1.5px solid #85b5d8;border-bottom:1.5px solid #85b5d8;transform:rotate(45deg);box-sizing:border-box}
#prediction .pred-ojisan-reaction-bubble b{display:flex;align-items:center;min-height:75px;margin:0 0 8px 84px;padding:0;font-size:12px;line-height:1.45;color:#0868a5;overflow-wrap:break-word}
#prediction .pred-ojisan-reaction-bubble p{display:block;margin:0;padding:12px 0 0;border-top:1px solid #dce8f1;min-height:0;line-height:1.75;white-space:normal;overflow-wrap:break-word}
#prediction .pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble{border-color:#e5b65e}
#prediction .pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble:before{border-color:#e5b65e}
#prediction .pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble p{border-top-color:#f0dfb6}
@media(max-width:390px){
 #prediction .pred-ojisan-reaction>img{left:3px;top:11px;width:60px;height:60px;min-width:60px;max-width:60px}
 #prediction .pred-ojisan-reaction-bubble b{min-height:66px;margin-left:72px;font-size:11px}
 #prediction .pred-ojisan-reaction-bubble:before{left:63px;top:32px}
}

/* v0.21.27: continuous comic balloon with an inset circular portrait and
   a real connecting pointer, rather than a rectangle behind the portrait. */
#prediction .pred-ojisan-reaction{--reaction-stroke:#85b5d8;--reaction-avatar:70px;position:relative;margin:12px 0;padding:0;isolation:isolate}
#prediction .pred-ojisan-reaction.is-win{--reaction-stroke:#e5b65e}
#prediction .pred-ojisan-reaction-bubble{position:relative;box-sizing:border-box;width:100%;padding:10px 11px 13px;border:1.5px solid var(--reaction-stroke);border-radius:17px;background:#fff;overflow:visible}
/* Hide the box's upper-left corner behind the portrait and replace it with
   a rounded, joined contour that runs from the portrait down to the body. */
#prediction .pred-ojisan-reaction-bubble:after{content:"";position:absolute;z-index:1;pointer-events:none;left:-2px;top:-2px;width:calc(var(--reaction-avatar) + 13px);height:calc(var(--reaction-avatar) + 20px);background:#fff;border-bottom:1.5px solid var(--reaction-stroke);border-right:1.5px solid var(--reaction-stroke);border-bottom-right-radius:39px;border-top-left-radius:17px;box-sizing:border-box}
#prediction .pred-ojisan-reaction>img{position:absolute;z-index:4;left:6px;top:9px;width:var(--reaction-avatar);height:var(--reaction-avatar);min-width:var(--reaction-avatar);max-width:var(--reaction-avatar);border:2px solid var(--reaction-stroke);border-radius:50%;object-fit:cover;object-position:center;transform:none!important;clip-path:none}
#prediction .pred-ojisan-reaction-bubble:before{content:"";position:absolute;z-index:3;left:calc(var(--reaction-avatar) + 2px);top:35px;width:15px;height:15px;background:#fff;border-left:1.5px solid var(--reaction-stroke);border-bottom:1.5px solid var(--reaction-stroke);transform:rotate(45deg);box-sizing:border-box}
#prediction .pred-ojisan-reaction-bubble b{position:relative;z-index:3;display:flex;align-items:center;min-height:77px;margin:0 0 9px calc(var(--reaction-avatar) + 12px);padding:0;font-size:12px;line-height:1.45;overflow-wrap:normal;word-break:normal}
#prediction .pred-ojisan-reaction-bubble p{position:relative;z-index:3;display:block;margin:0;padding:12px 0 0;border-top:1px solid #dce8f1;font-size:12px;line-height:1.75;overflow-wrap:break-word}
#prediction .pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble p{border-top-color:#f0dfb6}
@media(max-width:390px){#prediction .pred-ojisan-reaction{--reaction-avatar:60px}#prediction .pred-ojisan-reaction>img{left:5px;top:10px}#prediction .pred-ojisan-reaction-bubble b{min-height:68px;font-size:11px}#prediction .pred-ojisan-reaction-bubble:before{top:31px}}


/* v0.21.29: joined rounded speech bubble; no floating arrow or square corners. */
#prediction .pred-ojisan-reaction{--reaction-avatar:70px;--reaction-stroke:#85b5d8;position:relative;isolation:isolate;margin:12px 0}
#prediction .pred-ojisan-reaction.is-win{--reaction-stroke:#e5b65e}
#prediction .pred-ojisan-reaction-bubble{position:relative;box-sizing:border-box;width:100%;padding:11px 12px 14px;border:1.5px solid var(--reaction-stroke);border-radius:26px;background:#fff;overflow:visible}
/* Rounded white inset replaces the upper-left corner and blends into the lower body. */
#prediction .pred-ojisan-reaction-bubble::after{content:"";position:absolute;pointer-events:none;z-index:1;left:-2px;top:-2px;width:calc(var(--reaction-avatar) + 17px);height:calc(var(--reaction-avatar) + 22px);box-sizing:border-box;background:#fff;border:0;border-bottom:1.5px solid var(--reaction-stroke);border-right:1.5px solid var(--reaction-stroke);border-bottom-right-radius:48px;border-top-left-radius:26px}
#prediction .pred-ojisan-reaction>img{position:absolute;z-index:5;left:6px;top:9px;width:var(--reaction-avatar);height:var(--reaction-avatar);min-width:var(--reaction-avatar);max-width:var(--reaction-avatar);border:2px solid var(--reaction-stroke);border-radius:50%;object-fit:cover;object-position:center;transform:none!important;clip-path:none}
/* Arrow is anchored to the inset's RIGHT edge, not left floating in whitespace. */
#prediction .pred-ojisan-reaction-bubble::before{content:"";position:absolute;z-index:3;left:calc(var(--reaction-avatar) + 9px);top:36px;width:14px;height:14px;box-sizing:border-box;background:#fff;border:0;border-left:1.5px solid var(--reaction-stroke);border-bottom:1.5px solid var(--reaction-stroke);transform:rotate(45deg);border-radius:0 0 0 3px}
#prediction .pred-ojisan-reaction-bubble b{position:relative;z-index:4;display:flex;align-items:center;min-height:78px;margin:0 0 8px calc(var(--reaction-avatar) + 22px);padding:0;font-size:12px;line-height:1.45;overflow-wrap:break-word}
#prediction .pred-ojisan-reaction-bubble p{position:relative;z-index:4;display:block;margin:0;padding:12px 0 0;border-top:1px solid #dce8f1;line-height:1.75;overflow-wrap:break-word}
#prediction .pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble p{border-top-color:#f0dfb6}
@media(max-width:390px){#prediction .pred-ojisan-reaction{--reaction-avatar:60px}#prediction .pred-ojisan-reaction>img{left:5px;top:10px}#prediction .pred-ojisan-reaction-bubble b{min-height:69px;font-size:11px}#prediction .pred-ojisan-reaction-bubble::before{top:31px}}

/* v0.21.30: soften the two inset junction corners and attach the speech tip. */
#prediction .pred-ojisan-reaction-bubble::after{
  border-top-right-radius:32px 25px !important;
  border-bottom-left-radius:29px 18px !important;
  border-bottom-right-radius:58px 52px !important;
  border-top-left-radius:26px !important;
  width:calc(var(--reaction-avatar) + 19px) !important;
  height:calc(var(--reaction-avatar) + 24px) !important;
}
#prediction .pred-ojisan-reaction-bubble::before{
  left:calc(var(--reaction-avatar) + 11px) !important;
  top:37px !important;
  border-radius:0 0 0 4px !important;
}
@media(max-width:390px){#prediction .pred-ojisan-reaction-bubble::before{top:32px !important}}

/* v0.21.31: single SVG-contour speech bubble matching the approved reference. */
#prediction .pred-ojisan-reaction{--reaction-stroke:#85b5d8;--reaction-avatar:70px;position:relative;display:block;margin:12px 0;isolation:isolate;min-width:0}
#prediction .pred-ojisan-reaction.is-win{--reaction-stroke:#e5b65e}
#prediction .pred-ojisan-reaction-bubble{position:relative;display:block;box-sizing:border-box;width:100%;min-width:0;padding:12px 12px 14px;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible;z-index:1}
#prediction .pred-ojisan-reaction-bubble::before,#prediction .pred-ojisan-reaction-bubble::after{content:none!important;display:none!important}
#prediction .pred-reaction-outline{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:visible}
#prediction .pred-reaction-outline path{fill:#fff;stroke:var(--reaction-stroke);stroke-width:1.7;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
#prediction .pred-ojisan-reaction>img{position:absolute;z-index:3;left:7px;top:13px;width:var(--reaction-avatar);height:var(--reaction-avatar);min-width:var(--reaction-avatar);max-width:var(--reaction-avatar);border:2px solid var(--reaction-stroke);border-radius:50%;object-fit:cover;object-position:center;transform:none!important;clip-path:none!important;background:#fff}
#prediction .pred-ojisan-reaction-bubble b{position:relative;z-index:2;display:flex;align-items:center;min-height:78px;margin:0 0 9px 55%;padding:0;font-size:12px;line-height:1.4;overflow-wrap:anywhere;color:#0868a5}
#prediction .pred-ojisan-reaction-bubble p{position:relative;z-index:2;display:block;margin:0;padding:13px 0 0;border-top:1px solid #dce8f1;line-height:1.75;overflow-wrap:break-word}
#prediction .pred-ojisan-reaction.is-win .pred-ojisan-reaction-bubble p{border-top-color:#f0dfb6}
@media(max-width:390px){#prediction .pred-ojisan-reaction{--reaction-avatar:60px}#prediction .pred-ojisan-reaction>img{left:6px;top:14px}#prediction .pred-ojisan-reaction-bubble b{min-height:75px;font-size:11px}}

/* v0.21.32: rebuild connected speech silhouette, no circle around portrait. */
#prediction .pred-ojisan-reaction-bubble{padding:12px 12px 15px!important}
#prediction .pred-ojisan-reaction-bubble b{margin-left:55%!important;min-height:79px!important;align-items:center!important;word-break:normal!important;overflow-wrap:anywhere!important}
#prediction .pred-ojisan-reaction>img{left:7px!important;top:12px!important;z-index:4!important;box-shadow:0 0 0 5px #fff!important}
#prediction .pred-reaction-outline{overflow:hidden!important}
#prediction .pred-reaction-outline path{stroke-linejoin:round!important;stroke-linecap:round!important}
@media(max-width:390px){#prediction .pred-ojisan-reaction>img{left:6px!important;top:12px!important}}

/* v0.21.33: smooth single-piece bubble contour, rounded upper and lower joins. */
#prediction .pred-ojisan-reaction-bubble{padding:12px 12px 15px!important}
#prediction .pred-reaction-outline{overflow:visible!important}
#prediction .pred-reaction-outline path{stroke-linejoin:round!important;stroke-linecap:round!important}
#prediction .pred-ojisan-reaction>img{box-shadow:0 0 0 5px #fff!important}

/* v0.21.34: refine speech tip only; preserve existing rounded silhouette. */

/* v0.21.37: explicitly stack name and verdict; do not alter avatar placement. */
#prediction .pred-ojisan-reaction-bubble b{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:2px!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;}
#prediction .pred-ojisan-reaction-bubble b span{display:block!important;white-space:nowrap!important;}


/* v0.21.39 prediction-stall home visual refresh; underlying app controls unchanged */
body:has(#home.active){background:#071c36}
body:has(#home.active) .fixed-top{background:#071c36 url("assets/yoso-stall-bg.png") center top/100% auto no-repeat!important}
body:has(#home.active) header{background:linear-gradient(180deg,#061b36ee,#082d51d8)!important;border-bottom:2px solid #b78a39!important;color:#fff!important}
body:has(#home.active) header .brand b{color:#fff;font-weight:900;text-shadow:0 2px 3px #001b39}
body:has(#home.active) header .brand small,body:has(#home.active) header .version{color:#e8d5ae}
body:has(#home.active) header .mark{background:radial-gradient(circle,#113d69,#06152b)!important;border:2px solid #eebd5d!important;border-radius:50%!important;color:#ffd66d!important}
body:has(#home.active) .dashboard-top{background:transparent!important;padding:0 10px 10px!important}
.yoso-shop{display:none}
body:has(#home.active) .yoso-shop{display:block;position:relative;height:177px;margin:0 -10px 0;overflow:hidden}
.yoso-noren{position:absolute;left:34%;right:34%;top:12px;display:flex;justify-content:center;gap:0;z-index:2;filter:drop-shadow(0 3px 3px #000a)}
.yoso-noren span{background:linear-gradient(#123c67,#051b37);border:1px solid #a87c43;color:#fff9e9;font-weight:900;font-size:26px;padding:7px 4px 11px;text-shadow:1px 2px #00152d}
.yoso-characters{display:flex;justify-content:space-between;align-items:end;height:100%;padding:8px 8px 0}
.yoso-person{position:relative;width:47%;height:100%;display:flex;align-items:end;justify-content:center}
.yoso-person img{max-height:151px;max-width:100%;object-fit:contain;object-position:bottom;filter:drop-shadow(0 3px 3px #0009)}
.yoso-person span{position:absolute;bottom:1px;left:0;background:linear-gradient(#f7dca0,#d49c4d);border:2px solid #75421e;color:#251308;border-radius:5px;padding:2px 7px;font-size:10px;line-height:1.25;font-weight:800;box-shadow:0 2px 5px #0009}
.yoso-person:last-child span{left:auto;right:0}
.yoso-person span b{font-size:15px}
body:has(#home.active) .dash-panel{background:linear-gradient(145deg,#e6b96c,#9b5727)!important;border:5px ridge #e2a953!important;border-radius:12px!important;box-shadow:0 5px 0 #4c2b15,0 7px 15px #0008!important}
body:has(#home.active) .dash-heading{background:linear-gradient(95deg,#48240c,#7b451d)!important;border:2px solid #e0ac61!important;border-radius:7px!important;padding:6px!important;color:#fff!important}
body:has(#home.active) .dash-user strong{color:#fff!important;font-size:17px!important}
body:has(#home.active) .dash-user small{color:#f3d8a7!important}
body:has(#home.active) .dash-metrics{gap:5px!important}
body:has(#home.active) .dash-metrics .dash-action{border:2px solid #ba8a45!important;box-shadow:0 3px 0 #8b5325!important}
body:has(#home.active) main{background:linear-gradient(#071c36,#0b2d4f)!important;padding:10px 8px 28px!important}
body:has(#home.active) #home .race-heading{background:linear-gradient(100deg,#8f1421,#c52e37 52%,#08284b 52%);border:2px solid #d5a251;border-radius:7px;padding:7px 5px!important;color:white!important;box-shadow:0 3px 8px #0007}
body:has(#home.active) #home .race-heading h1{color:#fff!important;font-size:17px!important;text-shadow:0 2px #4d1018}
body:has(#home.active) #home .today-counts{color:#f9dba4!important}
body:has(#home.active) #home .venues{gap:7px!important;padding:9px 1px!important}
body:has(#home.active) #home .venues>*,body:has(#home.active) #home .venues button{border-color:#b99252!important;box-shadow:0 3px 0 #60401d,0 4px 8px #0005!important}
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{background:linear-gradient(#ad7037 0%,#4e2a12 9%,#1c395d 10%,#082448 90%,#7b491c 91%,#ba7a32)!important;border-top:4px ridge #e0ac56!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{color:#fff!important;text-shadow:0 1px 2px #00142b}
body:has(#home.active) nav button.active,body:has(#detail.active) nav button.active,body:has(#prediction.active) nav button.active,body:has(#myracers.active) nav button.active,body:has(#searchracers.active) nav button.active,body:has(#legacy.active) nav button.active,body:has(#home.active) nav button.on,body:has(#detail.active) nav button.on,body:has(#prediction.active) nav button.on,body:has(#myracers.active) nav button.on,body:has(#searchracers.active) nav button.on,body:has(#legacy.active) nav button.on{background:linear-gradient(#b92d36,#7b1324)!important;border:1px solid #d3a254!important;border-radius:6px}
@media(max-width:380px){body:has(#home.active) .yoso-shop{height:154px}.yoso-person img{max-height:135px}.yoso-noren span{font-size:22px}}

/* v0.21.40: reference-oriented home, preserve functional HTML/JS */
body:has(#home.active) .fixed-top{background:#081e39!important;box-shadow:none!important}
body:has(#home.active) .fixed-top header{height:57px!important;padding:5px 13px!important;background:#061d38 url("assets/yoso-roof-banner.png") center 24%/cover no-repeat!important;border:0!important}
body:has(#home.active) .fixed-top header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(#b1782e,#4c2a11);pointer-events:none}
body:has(#home.active) header .brand b{font-size:21px!important}
body:has(#home.active) header .brand small{font-size:9px!important}
body:has(#home.active) .dashboard-top{padding:0 8px 9px!important;background:#081e39!important}
body:has(#home.active) .yoso-shop{height:166px!important;margin:0 -8px!important;background:#071c38 url("assets/yoso-roof-banner.png") center 60%/100% 100% no-repeat!important;overflow:hidden!important}
body:has(#home.active) .yoso-noren{top:10px!important;left:34%!important;right:34%!important}
body:has(#home.active) .yoso-noren span{font-size:24px!important;padding:8px 5px 12px!important}
body:has(#home.active) .yoso-characters{padding:10px 8px 0!important}
body:has(#home.active) .yoso-person img{max-height:150px!important;filter:drop-shadow(0 3px 4px #000c)!important}
body:has(#home.active) .yoso-person span{bottom:3px!important;background:linear-gradient(#ffe9b7,#d5a057)!important;border:2px solid #8a4d22!important;z-index:4}
body:has(#home.active) .dash-panel{position:relative!important;display:block!important;min-height:0!important;padding:19px 8px 8px!important;margin:0 1px!important;background:linear-gradient(#a96a2f,#e4ad61 25%,#b67b3c)!important;border:4px ridge #e5ad5a!important;border-radius:9px!important;box-shadow:0 4px 0 #5e3517!important}
body:has(#home.active) .dash-panel:before{content:"本日のデータ";position:absolute;top:-17px;left:30%;right:30%;text-align:center;white-space:nowrap;color:#211308;font-size:17px;font-weight:900;padding:5px 0;background:linear-gradient(#ffe1a0,#b97d38);border:2px solid #80501f;clip-path:polygon(8% 0,92% 0,100% 50%,92% 100%,8% 100%,0 50%);z-index:3;text-shadow:0 1px #fff5}
body:has(#home.active) .dash-heading{display:none!important}
body:has(#home.active) .dash-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;flex:auto!important}
body:has(#home.active) .dash-metrics>div{background:linear-gradient(#f9fcff,#dbe9f6)!important;border:2px solid #a5b7d0!important;border-radius:9px!important;padding:7px 1px!important;box-shadow:0 3px 0 #895525!important;text-align:center!important}
body:has(#home.active) .dash-metrics>div:nth-child(2){background:linear-gradient(#fff6f6,#f6c6cf)!important;border-color:#dd9eac!important}
body:has(#home.active) .dash-metrics>div:nth-child(3){background:linear-gradient(#f4faff,#c8e4f9)!important;border-color:#88b4d5!important}
body:has(#home.active) .dash-metrics small{font-size:9px!important;white-space:normal!important;color:#183e69!important}
body:has(#home.active) .dash-metrics strong{font-size:20px!important}
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 351px)!important;background:#071e39!important;padding:0 6px 18px!important}
body:has(#home.active) #home .race-heading{background:transparent!important;border:0!important;box-shadow:none!important;display:grid!important;grid-template-columns:1fr auto!important;gap:3px!important;padding:12px 1px 7px!important}
body:has(#home.active) #home .race-heading h1{background:linear-gradient(#bc2635,#7d1322)!important;border:2px solid #c48b3c!important;border-radius:3px!important;padding:8px 6px!important;font-size:17px!important;grid-row:1/3!important;align-self:stretch!important;display:flex!important;align-items:center!important}
body:has(#home.active) #home .today-counts{font-size:10px!important;white-space:nowrap!important}
body:has(#home.active) #home .datebar{justify-self:end!important}
body:has(#home.active) #home .venues{gap:7px!important;padding:4px 1px 8px!important}
body:has(#home.active) #home .venue{background:linear-gradient(145deg,#ffffff,#e5eef7)!important;border:2px solid #b78c49!important;border-radius:9px!important;box-shadow:0 3px 0 #63421f,0 5px 8px #0006!important}
body:has(#home.active) #home .venue.off,body:has(#home.active) #home .venue.disabled{background:linear-gradient(#f1f3f6,#cfd5df)!important;border-color:#9ca8b6!important;opacity:.67!important}
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{height:65px!important;background:linear-gradient(#b57b3c 0%,#663814 8%,#071e3b 12%,#071e3b 87%,#79441d 92%,#c38b43)!important;border-top:2px solid #d6a052!important;padding:5px 8px!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{font-weight:800!important;font-size:13px!important;border:1px solid #aa7d3f!important;border-radius:6px!important;background:linear-gradient(#14395c,#06182d)!important;margin:2px!important}
body:has(#home.active) nav button.on,body:has(#detail.active) nav button.on,body:has(#prediction.active) nav button.on,body:has(#myracers.active) nav button.on,body:has(#searchracers.active) nav button.on,body:has(#legacy.active) nav button.on{background:linear-gradient(#c6323e,#82111e)!important}
body:has(#home.active) nav button span,body:has(#detail.active) nav button span,body:has(#prediction.active) nav button span,body:has(#myracers.active) nav button span,body:has(#searchracers.active) nav button span,body:has(#legacy.active) nav button span{font-size:22px!important}
@media(max-width:380px){body:has(#home.active) .dash-metrics strong{font-size:17px!important}body:has(#home.active) .yoso-shop{height:150px!important}body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 335px)!important}}

/* v0.21.41: reference matching: red fabric noren + wood pier navigation */
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 313px)!important}
body:has(#home.active) #home .race-heading{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:7px!important;row-gap:1px!important;padding:2px 0 8px!important;align-items:center!important}
body:has(#home.active) #home .race-heading h1{grid-column:1!important;grid-row:1/3!important;align-self:stretch!important;min-height:66px!important;position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;margin:0!important;padding:12px 4px 7px!important;border:0!important;border-radius:0!important;background:transparent url("assets/yoso-red-noren.png") center top/100% 100% no-repeat!important;box-shadow:none!important;color:#fff!important;font-size:18px!important;font-weight:900!important;letter-spacing:.01em!important;text-shadow:0 2px 2px #3c0811!important;white-space:nowrap!important}
body:has(#home.active) #home .race-heading .race-noren-icon{font-size:20px!important;filter:drop-shadow(0 1px 2px #0009)}
body:has(#home.active) #home .today-counts{grid-column:2!important;grid-row:1!important;font-size:10px!important;color:#fff!important;text-align:center!important;white-space:nowrap!important;align-self:end!important}
body:has(#home.active) #home .datebar{grid-column:2!important;grid-row:2!important;display:flex!important;align-items:center!important;gap:3px!important;margin:0!important;width:100%!important}
body:has(#home.active) #home .datebar input{flex:1!important;min-width:0!important;width:0!important;padding:7px 1px!important;font-size:10px!important;border-radius:22px!important;text-align:center!important}
body:has(#home.active) #home .datebar button{flex:none!important;border-radius:50%!important;padding:6px 8px!important;font-size:17px!important}
body:has(#home.active) #home .venues{padding-top:3px!important}
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{height:78px!important;padding:8px 13px 10px!important;display:flex!important;gap:6px!important;align-items:center!important;background:#082242 url("assets/yoso-wood-footer.png") center center/100% 100% no-repeat!important;border:0!important;box-shadow:0 -2px 6px #0008!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{height:56px!important;flex:1!important;min-width:0!important;margin:0!important;padding:4px 1px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;border:2px solid #bb8747!important;border-radius:3px!important;background:linear-gradient(160deg,#163b66,#071d3a)!important;color:#fff!important;box-shadow:inset 0 0 0 1px #183e64,0 2px 3px #0007!important;font-size:13px!important;line-height:1.2!important}
body:has(#home.active) nav button.on,body:has(#detail.active) nav button.on,body:has(#prediction.active) nav button.on,body:has(#myracers.active) nav button.on,body:has(#searchracers.active) nav button.on,body:has(#legacy.active) nav button.on{background:linear-gradient(145deg,#c92e40,#821324)!important;border-color:#f2b35d!important}
body:has(#home.active) nav button span,body:has(#detail.active) nav button span,body:has(#prediction.active) nav button span,body:has(#myracers.active) nav button span,body:has(#searchracers.active) nav button span,body:has(#legacy.active) nav button span{display:block!important;font-size:23px!important;line-height:1!important;margin-bottom:3px!important}
@media(max-width:380px){body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 297px)!important}body:has(#home.active) #home .race-heading h1{font-size:15px!important;min-height:60px!important}body:has(#home.active) #home .today-counts{font-size:9px!important}}


/* v0.21.42 – high-fidelity visual refinement, all functional DOM controls retained */
body:has(#home.active){font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif!important}
body:has(#home.active) header .brand b{font-family:"Hiragino Mincho ProN","Yu Mincho",serif!important;font-weight:900!important;letter-spacing:-.04em!important;font-size:22px!important;text-shadow:0 2px 2px #001!important}
body:has(#home.active) header .mark{box-shadow:0 0 0 2px #27190b,0 2px 4px #0009!important}
body:has(#home.active) .yoso-noren{top:4px!important;filter:drop-shadow(0 4px 3px #000b)!important}
body:has(#home.active) .yoso-noren span{font-family:"Hiragino Mincho ProN","Yu Mincho",serif!important;font-weight:900!important;font-size:27px!important;border-radius:0 0 5px 5px!important}
body:has(#home.active) .yoso-person span{font-family:"Hiragino Mincho ProN","Yu Mincho",serif!important;font-weight:900!important}
body:has(#home.active) .dash-panel{padding:23px 8px 10px!important;background:linear-gradient(180deg,#a96931,#f3c883 18%,#d69a4d 82%,#9b602b)!important;border:4px solid #8c501d!important;outline:2px solid #e8b66d!important;outline-offset:-8px!important;border-radius:7px!important;box-shadow:inset 0 2px 3px #fff7,0 4px 0 #47240f!important}
body:has(#home.active) .dash-panel:before{font-family:"Hiragino Mincho ProN","Yu Mincho",serif!important;font-size:19px!important;font-weight:900!important;top:-19px!important;left:31%!important;right:31%!important;padding:5px 0!important;background:linear-gradient(#ffdf9c,#d29448)!important;border:2px solid #8a521f!important;clip-path:polygon(9% 0,91% 0,100% 50%,91% 100%,9% 100%,0 50%)!important;text-shadow:0 1px 1px #ffecbd!important;box-shadow:0 3px 2px #0007!important}
body:has(#home.active) .dash-panel:after{content:"集計完了 ✓";position:absolute;right:8px;top:-16px;background:linear-gradient(#122a3c,#071625);color:#fff;border:2px solid #e2aa4e;border-radius:22px;padding:4px 7px;font-size:10px;font-weight:800;box-shadow:0 2px 4px #0007;pointer-events:none}
body:has(#home.active) .dash-metrics{gap:4px!important}
body:has(#home.active) .dash-metrics .dash-action{min-width:0!important;min-height:61px!important;padding:7px 1px 5px!important;background:linear-gradient(#fff,#d8eafa)!important;border:2px solid #8cb5d6!important;border-radius:9px!important;box-shadow:0 3px 0 #865123,inset 0 1px #fff!important}
body:has(#home.active) .dash-metrics .dash-action:nth-child(2){background:linear-gradient(#fff3f3,#ffd1d7)!important;border-color:#d88a9b!important}
body:has(#home.active) .dash-metrics .dash-action:nth-child(3){background:linear-gradient(#f6fcff,#c3e5fc)!important;border-color:#7eb5d9!important}
body:has(#home.active) .dash-metrics .dash-action small{font-size:10px!important;font-weight:800!important;color:#173b65!important}
body:has(#home.active) .dash-metrics .dash-action strong{font-size:23px!important;font-weight:900!important;color:#075a92!important;line-height:1.2!important}
body:has(#home.active) .dash-metrics .dash-action:nth-child(2) strong{color:#c5233e!important}
body:has(#home.active) #home .race-heading{grid-template-columns:minmax(0,1.02fr) minmax(0,1fr)!important;column-gap:5px!important;padding:2px 1px 6px!important;min-height:60px!important}
body:has(#home.active) #home .race-heading h1{min-height:57px!important;font-family:"Hiragino Mincho ProN","Yu Mincho",serif!important;font-size:20px!important;letter-spacing:-.06em!important;justify-content:center!important;gap:3px!important;background-size:100% 100%!important;padding:10px 2px 5px!important}
body:has(#home.active) #home .race-heading .race-noren-icon{font-size:18px!important}
body:has(#home.active) #home .today-counts{font-size:10px!important;font-weight:900!important;background:linear-gradient(#123c65,#082440)!important;border:1px solid #3284b3!important;border-radius:16px!important;padding:4px 1px!important;line-height:1.2!important;align-self:center!important}
body:has(#home.active) #home .datebar input{background:#fff!important;color:#162b43!important;font-weight:800!important;border:1px solid #b8c6d6!important}
body:has(#home.active) #home .venue{border:2px solid #d7a03f!important;border-radius:9px!important;box-shadow:inset 0 0 0 1px #fff8,0 2px 0 #704315,0 4px 7px #0006!important}
body:has(#home.active) #home .venue:not(.off):not(.disabled){background:linear-gradient(160deg,#fff 10%,#eff7ff 68%,#b9d7ea)!important}
body:has(#home.active) #home .venue.off,body:has(#home.active) #home .venue.disabled{background:linear-gradient(#f3f4f7,#d6dce4)!important;opacity:.83!important;border-color:#8e9bad!important}
body:has(#home.active) #home .venue strong{font-weight:900!important}
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{height:85px!important;gap:5px!important;padding:9px 20px 14px!important;background-size:100% 100%!important;box-shadow:none!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{height:59px!important;border:3px ridge #d5a453!important;border-radius:4px!important;background:linear-gradient(140deg,#103f6a,#061b37)!important;box-shadow:inset 0 0 0 1px #e1b95c,0 2px 4px #000a!important;font-family:"Hiragino Mincho ProN","Yu Mincho",serif!important;font-weight:900!important;font-size:16px!important;text-shadow:0 2px 2px #000b!important;line-height:1.1!important}
body:has(#home.active) nav button.on,body:has(#detail.active) nav button.on,body:has(#prediction.active) nav button.on,body:has(#myracers.active) nav button.on,body:has(#searchracers.active) nav button.on,body:has(#legacy.active) nav button.on{background:linear-gradient(140deg,#bd1f31,#7d0c1e)!important}
body:has(#home.active) nav button span,body:has(#detail.active) nav button span,body:has(#prediction.active) nav button span,body:has(#myracers.active) nav button span,body:has(#searchracers.active) nav button span,body:has(#legacy.active) nav button span{font-family:system-ui,sans-serif!important;font-size:24px!important;font-weight:900!important;margin-bottom:2px!important}
@media(max-width:380px){body:has(#home.active) nav{padding:9px 13px 14px!important}body:has(#home.active) nav button{font-size:14px!important}body:has(#home.active) .dash-metrics .dash-action strong{font-size:19px!important}body:has(#home.active) #home .race-heading h1{font-size:17px!important}}

/* v0.21.43: vertical wooden prediction signs, raised stats board, fitted dock navigation */
body:has(#home.active) .yoso-person{overflow:visible!important}
body:has(#home.active) .yoso-person .yoso-name-sign{
 position:absolute!important;z-index:8!important;top:18px!important;bottom:auto!important;
 width:48px!important;min-height:105px!important;padding:7px 3px 9px!important;
 display:flex!important;flex-direction:row-reverse!important;align-items:center!important;justify-content:center!important;gap:2px!important;
 background:linear-gradient(90deg,#d28e3f,#ffdc92 44%,#e3a85c 90%)!important;
 border:2px solid #6e3814!important;border-radius:3px!important;
 box-shadow:inset 0 0 0 2px #ffeba9,2px 4px 5px #000a!important;
 color:#211306!important;text-shadow:none!important;line-height:1.15!important;
}
body:has(#home.active) .yoso-person:first-child .yoso-name-sign{left:1px!important;right:auto!important}
body:has(#home.active) .yoso-person:last-child .yoso-name-sign{right:1px!important;left:auto!important}
body:has(#home.active) .yoso-name-sign small{writing-mode:vertical-rl!important;font-size:10px!important;font-weight:800!important;white-space:nowrap!important}
body:has(#home.active) .yoso-name-sign b{writing-mode:vertical-rl!important;font-size:19px!important;font-weight:900!important;white-space:nowrap!important;letter-spacing:.06em!important}
body:has(#home.active) .dash-panel{margin-top:-13px!important;z-index:5!important}
body:has(#home.active) .dashboard-top{position:relative!important}
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 300px)!important}
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{
 height:85px!important;min-height:85px!important;
 padding:14px 30px 15px!important;gap:8px!important;
 background-position:center!important;background-size:100% 100%!important;
 overflow:hidden!important;box-sizing:border-box!important
}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{
 box-sizing:border-box!important;min-height:0!important;height:55px!important;
 padding:2px 2px 3px!important;margin:0!important;flex:1 1 0!important;
 border:2px solid #b77a2b!important;border-radius:2px!important;
 background:linear-gradient(150deg,#143d66,#061d3b)!important;
 box-shadow:inset 0 0 0 1px #e1b85b,0 1px 2px #0009!important;
 font-family:system-ui,"Hiragino Kaku Gothic ProN",sans-serif!important;
 font-size:15px!important;font-weight:900!important;line-height:1.05!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important
}
body:has(#home.active) nav button.on,body:has(#detail.active) nav button.on,body:has(#prediction.active) nav button.on,body:has(#myracers.active) nav button.on,body:has(#searchracers.active) nav button.on,body:has(#legacy.active) nav button.on{background:linear-gradient(155deg,#c72d3b,#861321)!important}
body:has(#home.active) nav button .yoso-nav-icon,body:has(#detail.active) nav button .yoso-nav-icon,body:has(#prediction.active) nav button .yoso-nav-icon,body:has(#myracers.active) nav button .yoso-nav-icon,body:has(#searchracers.active) nav button .yoso-nav-icon,body:has(#legacy.active) nav button .yoso-nav-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:25px!important;margin:0!important}
body:has(#home.active) nav button .yoso-nav-icon svg,body:has(#detail.active) nav button .yoso-nav-icon svg,body:has(#prediction.active) nav button .yoso-nav-icon svg,body:has(#myracers.active) nav button .yoso-nav-icon svg,body:has(#searchracers.active) nav button .yoso-nav-icon svg,body:has(#legacy.active) nav button .yoso-nav-icon svg{width:30px!important;height:25px!important;display:block!important}
@media(max-width:380px){
 body:has(#home.active) nav{padding-left:23px!important;padding-right:23px!important;gap:5px!important}
 body:has(#home.active) nav button{height:53px!important;font-size:13px!important}
 body:has(#home.active) .yoso-person .yoso-name-sign{width:41px!important;min-height:91px!important;top:16px!important}
 body:has(#home.active) .yoso-name-sign b{font-size:16px!important}
 body:has(#home.active) .yoso-name-sign small{font-size:9px!important}
 body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 284px)!important}
}

/* v0.21.44: illustration-backed "Today's data" panel; counters remain live DOM controls */
body:has(#home.active) .dash-panel{
 background: url("assets/todays-data-board.png") center center / 100% 100% no-repeat!important;
 border:0!important; border-radius:0!important; box-shadow:none!important;
 padding:63px 32px 24px!important; margin:-15px 0 0!important;
 position:relative!important; min-height:171px!important; box-sizing:border-box!important;
}
body:has(#home.active) .dash-panel:before{display:none!important;content:none!important}
body:has(#home.active) .dash-heading{display:none!important}
body:has(#home.active) .dash-metrics{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:6px!important;position:relative!important;z-index:2!important;
}
body:has(#home.active) .dash-metrics .dash-action{
 min-width:0!important;min-height:63px!important;padding:6px 2px!important;
 border-radius:10px!important; border:2px solid #8ab2d4!important;
 background:linear-gradient(#f7fbff,#dce9f9)!important;
 box-shadow:0 2px 0 #8a5d32!important;
}
body:has(#home.active) .dash-metrics .dash-action:nth-child(2){border-color:#d78598!important;background:linear-gradient(#fff4f5,#f5c6d0)!important}
body:has(#home.active) .dash-metrics .dash-action:nth-child(3){border-color:#75a9d4!important;background:linear-gradient(#f1faff,#c9e4fb)!important}
body:has(#home.active) .dash-metrics .dash-action small{font-size:10px!important;font-weight:800!important}
body:has(#home.active) .dash-metrics .dash-action strong{font-size:22px!important;line-height:1.15!important}
body:has(#home.active) .dash-panel .home-load-indicator{
 display:block!important;position:absolute!important;top:39px!important;right:20px!important;
 z-index:4!important;width:auto!important;max-width:100px!important;
 background:#082b47!important;color:white!important;border:1px solid #d9aa52!important;
 border-radius:20px!important;padding:3px 8px!important;font-size:10px!important;
}
body:has(#home.active) .dash-panel .home-load-track{display:none!important}
@media(max-width:380px){body:has(#home.active) .dash-panel{padding:59px 22px 22px!important;min-height:158px!important}body:has(#home.active) .dash-metrics .dash-action strong{font-size:19px!important}body:has(#home.active) .dash-metrics .dash-action small{font-size:9px!important}}

/* v0.21.45: cropped transparent board, no empty padding or giant container */
body:has(#home.active) .dashboard-top{padding-bottom:0!important}
body:has(#home.active) .dash-panel{
  margin:-15px 0 0!important;min-height:0!important;height:113px!important;
  padding:45px 20px 8px!important;box-sizing:border-box!important;
  background-image:url("assets/todays-data-board.png")!important;
  background-size:100% 100%!important;background-position:center center!important;
  border:0!important;outline:0!important;box-shadow:none!important;
}
body:has(#home.active) .dash-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
body:has(#home.active) .dash-metrics .dash-action{min-height:58px!important;padding:4px 2px!important;z-index:2!important}
body:has(#home.active) .dash-panel .home-load-indicator{top:17px!important;right:14px!important}
body:has(#home.active) .dash-panel:before{display:none!important}
body:has(#home.active) .dash-panel:after{display:none!important}
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 270px)!important}
body:has(#home.active) #home .race-heading{margin-top:0!important}
@media(max-width:380px){body:has(#home.active) .dash-panel{height:104px!important;padding:42px 16px 7px!important}body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 256px)!important}}

/* v0.21.46 — reference home composition; home-only, functional content remains live */
body:has(#home.active) .fixed-top{top:env(safe-area-inset-top,0px)!important;background:#061a31!important;box-shadow:none!important}
body:has(#home.active) .fixed-top>header{display:none!important}
body:has(#home.active) .dashboard-top{padding:0!important;background:#061a31!important}
body:has(#home.active) .yoso-shop{height:clamp(172px,51vw,265px)!important;margin:0!important;overflow:hidden!important;background:#071a31 url("assets/yoso-roof-banner.png") center top/100% 100% no-repeat!important}
body:has(#home.active) .yoso-characters{height:100%!important;padding:18px 8px 0!important;align-items:end!important}
body:has(#home.active) .yoso-person{height:100%!important;position:relative!important}
body:has(#home.active) .yoso-person img{max-height:none!important;height:92%!important;max-width:100%!important;object-fit:contain!important;object-position:center bottom!important}
body:has(#home.active) .yoso-noren{top:20px!important;left:34%!important;right:34%!important;z-index:5!important}
body:has(#home.active) .yoso-noren span{font-size:clamp(24px,5.7vw,39px)!important}
body:has(#home.active) .yoso-person .yoso-name-sign{top:32px!important;bottom:auto!important;width:clamp(35px,10vw,60px)!important;min-height:clamp(85px,25vw,150px)!important;padding:7px 2px!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:2px!important;border-radius:3px!important;background:linear-gradient(90deg,#bb7b32,#ffdfa0 22%,#ffdda0 80%,#b57930)!important;box-shadow:0 2px 5px #000a!important}
body:has(#home.active) .yoso-name-sign b{font-size:clamp(17px,4vw,26px)!important}
body:has(#home.active) .yoso-name-sign small{font-size:clamp(9px,2vw,12px)!important}
body:has(#home.active) .dash-panel{height:clamp(112px,28vw,174px)!important;min-height:0!important;margin:-11px 0 0!important;padding:clamp(37px,10vw,61px) 7.5% 8px!important;background:url("assets/todays-data-board.png") center/100% 100% no-repeat!important;box-shadow:none!important;border:0!important;outline:0!important;z-index:7!important}
body:has(#home.active) .dash-metrics{gap:4px!important;background:transparent!important;padding:0!important}
body:has(#home.active) .dash-metrics .dash-action{height:clamp(58px,15vw,93px)!important;min-height:0!important;border-radius:12px!important;box-shadow:0 3px 1px #79512c!important;padding:5px 1px!important}
body:has(#home.active) .dash-metrics .dash-action small{font-size:clamp(9px,2.25vw,13px)!important;white-space:nowrap!important}
body:has(#home.active) .dash-metrics .dash-action strong{font-size:clamp(20px,5.5vw,34px)!important}
body:has(#home.active) .dash-panel .home-load-indicator{top:clamp(17px,4.4vw,26px)!important;right:5%!important;font-size:10px!important}
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + clamp(273px,77vw,428px))!important;bottom:calc(88px + env(safe-area-inset-bottom,0px))!important;padding:0 5px 20px!important;background:#061a31!important}
body:has(#home.active) #home .race-heading{padding:0 0 5px!important;grid-template-columns:1fr 1fr!important}
body:has(#home.active) #home .race-heading h1{min-height:55px!important;font-size:clamp(17px,4.8vw,28px)!important;background:transparent url("assets/yoso-red-noren.png") center/100% 100% no-repeat!important}
body:has(#home.active) #home .venues{gap:8px!important;padding:4px 1px 10px!important}
body:has(#home.active) #home .venue{min-height:clamp(70px,17vw,115px)!important;border:2px solid #d4a34a!important;border-radius:10px!important;padding:7px 3px 5px 7px!important;background:linear-gradient(#fff,#e4f6ff)!important}
body:has(#home.active) #home .venue:before{display:none!important}
body:has(#home.active) #home .venue strong{padding:0!important;margin:0 0 5px!important;font-size:clamp(13px,3.4vw,20px)!important}
body:has(#home.active) #home .venue.off{background:linear-gradient(#f3f4f7,#dce1e8)!important;border-color:#9aa2ae!important;opacity:.78!important}
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{height:calc(88px + env(safe-area-inset-bottom,0px))!important;min-height:0!important;bottom:0!important;padding:12px 7.5% calc(12px + env(safe-area-inset-bottom,0px))!important;gap:3%!important;background:#071d37 url("assets/yoso-wood-footer.png") center/100% 100% no-repeat!important;border:0!important;overflow:hidden!important;align-items:center!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{height:58px!important;min-height:0!important;min-width:0!important;max-width:none!important;flex:1 1 0!important;margin:0!important;border:2px solid #e7ac4c!important;border-radius:9px!important;background:linear-gradient(150deg,#07385b,#04182d)!important;font-size:17px!important;line-height:1.08!important;padding:3px 0!important;box-shadow:0 2px 4px #0009!important}
body:has(#home.active) nav button.on,body:has(#detail.active) nav button.on,body:has(#prediction.active) nav button.on,body:has(#myracers.active) nav button.on,body:has(#searchracers.active) nav button.on,body:has(#legacy.active) nav button.on{background:linear-gradient(#d7192b,#870817)!important}
body:has(#home.active) nav button .yoso-nav-icon,body:has(#detail.active) nav button .yoso-nav-icon,body:has(#prediction.active) nav button .yoso-nav-icon,body:has(#myracers.active) nav button .yoso-nav-icon,body:has(#searchracers.active) nav button .yoso-nav-icon,body:has(#legacy.active) nav button .yoso-nav-icon{height:28px!important;width:37px!important}
body:has(#home.active) nav button .yoso-nav-icon svg,body:has(#detail.active) nav button .yoso-nav-icon svg,body:has(#prediction.active) nav button .yoso-nav-icon svg,body:has(#myracers.active) nav button .yoso-nav-icon svg,body:has(#searchracers.active) nav button .yoso-nav-icon svg,body:has(#legacy.active) nav button .yoso-nav-icon svg{height:27px!important;width:35px!important}
@media(max-width:380px){body:has(#home.active) .yoso-person .yoso-name-sign{top:26px!important}body:has(#home.active) nav{padding-left:7%!important;padding-right:7%!important}body:has(#home.active) nav button{font-size:14px!important;height:54px!important}}

/* v0.21.47: storefront reference fidelity. Home-only; no data/engine changes. */
body:has(#home.active) .yoso-shop{
  height:clamp(188px,55vw,300px)!important;
  background:#160d0b url("assets/yoso-storefront-v47.png") center top/100% 100% no-repeat!important;
}
body:has(#home.active) .yoso-shop:before{
  content:"V";position:absolute;z-index:8;top:1px;left:50%;transform:translateX(-50%);
  width:clamp(26px,8vw,46px);height:clamp(26px,8vw,46px);border-radius:50%;
  display:grid;place-items:center;color:#ffe89a;font:900 clamp(18px,5vw,30px) Georgia,serif;
  background:radial-gradient(circle at 35% 25%,#fa5b22,#ae180c 72%);
  border:2px solid #ffcf4f;box-shadow:0 2px 5px #0009;
}
body:has(#home.active) .yoso-noren{top:clamp(25px,7.8vw,44px)!important;z-index:5!important}
body:has(#home.active) .yoso-noren span{background:transparent!important;border:0!important;box-shadow:none!important;font-family:system-ui,"Hiragino Kaku Gothic ProN",sans-serif!important;font-size:clamp(24px,7.1vw,41px)!important;font-weight:900!important;padding:0 1px!important;text-shadow:0 3px 3px #000c!important}
body:has(#home.active) .yoso-characters{padding:clamp(20px,6vw,37px) 7px 0!important}
body:has(#home.active) .yoso-person img{height:91%!important;object-position:center bottom!important}
body:has(#home.active) .yoso-person .yoso-name-sign{top:clamp(43px,12vw,72px)!important;min-height:clamp(85px,24vw,146px)!important}
body:has(#home.active) .dash-panel{
 height:clamp(112px,30vw,185px)!important;margin:-9px 0 0!important;
 padding:clamp(37px,10.4vw,64px) 7% 10px!important;
 background:url("assets/todays-data-board.png") center/100% 100% no-repeat!important;
}
body:has(#home.active) .dash-panel:before{display:block!important;content:""!important;position:absolute!important;z-index:-1!important;left:2.5%!important;right:2.5%!important;top:37%!important;bottom:10%!important;border-radius:5px!important;background:linear-gradient(#b97829,#e5a34a 30%,#bd792c 90%,#8b4c19)!important;box-shadow:inset 0 2px 5px #59300c!important}
body:has(#home.active) .dash-metrics{position:relative!important;z-index:1!important}
body:has(#home.active) .dash-metrics .dash-action{height:clamp(60px,15.2vw,95px)!important;border:2px solid #7faac7!important;background:linear-gradient(#fff,#d4e9fc)!important;border-radius:12px!important;box-shadow:0 3px 1px #7d542b!important}
body:has(#home.active) .dash-metrics .dash-action:nth-child(2){border-color:#e99cac!important;background:linear-gradient(#fff3f4,#f9c8d4)!important}
body:has(#home.active) .dash-metrics .dash-action:nth-child(2) strong{color:#c72540!important}
body:has(#home.active) .dash-panel .home-load-indicator{top:clamp(18px,5.4vw,31px)!important;right:4%!important;background:#071a2b!important;border:1px solid #d6a34a!important;border-radius:22px!important;color:white!important;padding:4px 8px!important;box-shadow:0 2px 3px #0008!important}
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + clamp(291px,84vw,476px))!important;padding:0 5px 20px!important}
body:has(#home.active) #home .race-heading{grid-template-columns:1fr 1fr!important;align-items:center!important;gap:4px!important}
body:has(#home.active) #home .race-heading h1{min-height:clamp(52px,14vw,84px)!important;font-size:clamp(18px,5.1vw,30px)!important;font-family:system-ui,"Hiragino Kaku Gothic ProN",sans-serif!important;font-weight:900!important}
body:has(#home.active) #home .race-heading .race-noren-icon{font-size:clamp(17px,5vw,27px)!important}
body:has(#home.active) #home .venue{border-color:#e3a02a!important;box-shadow:0 3px 0 #74491c,0 5px 6px #0007!important;background:linear-gradient(165deg,#fff 4%,#f6fcff 48%,#b8e5f7 100%)!important}
body:has(#home.active) #home .venue.off{background:linear-gradient(#f4f4f6,#dce0e7)!important;border-color:#a5aab3!important}
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{height:calc(96px + env(safe-area-inset-bottom,0px))!important;padding:13px 7.5% calc(17px + env(safe-area-inset-bottom,0px))!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{height:clamp(57px,16vw,76px)!important;border:2px solid #ffbf39!important;border-radius:11px!important;font-size:clamp(15px,4.5vw,21px)!important;font-weight:900!important}
body:has(#home.active) nav button .yoso-nav-icon,body:has(#detail.active) nav button .yoso-nav-icon,body:has(#prediction.active) nav button .yoso-nav-icon,body:has(#myracers.active) nav button .yoso-nav-icon,body:has(#searchracers.active) nav button .yoso-nav-icon,body:has(#legacy.active) nav button .yoso-nav-icon{height:31px!important}
body:has(#home.active) nav button .yoso-nav-icon svg,body:has(#detail.active) nav button .yoso-nav-icon svg,body:has(#prediction.active) nav button .yoso-nav-icon svg,body:has(#myracers.active) nav button .yoso-nav-icon svg,body:has(#searchracers.active) nav button .yoso-nav-icon svg,body:has(#legacy.active) nav button .yoso-nav-icon svg{height:30px!important;width:38px!important}
@media(max-width:380px){body:has(#home.active) .yoso-shop{height:55vw!important}body:has(#home.active) .dash-panel{height:30vw!important;padding-top:10.4vw!important}body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 84vw)!important}}
/* v0.21.48: correct reference layout regressions */
body:has(#home.active) .yoso-shop{height:55vw!important;max-height:330px!important}
body:has(#home.active) .yoso-noren{top:9vw!important;left:35%!important;right:35%!important;display:flex!important;gap:1px!important;align-items:stretch!important}
body:has(#home.active) .yoso-noren span{display:flex!important;flex:1!important;justify-content:center!important;align-items:center!important;min-width:0!important;height:11.8vw!important;padding:0!important;font-size:6.3vw!important;line-height:1!important;color:#fff!important;background:linear-gradient(90deg,#06142c,#102c50 55%,#071b34)!important;border:1px solid #bd873d!important;box-shadow:0 2px 4px #0009!important;text-shadow:0 2px 2px #000!important}
body:has(#home.active) .yoso-characters{padding-top:9vw!important}
body:has(#home.active) .dash-panel{height:34vw!important;max-height:205px!important;margin:-2px 0 0!important;padding:15.4vw 7% 3.5vw!important;background:url("assets/todays-data-board.png") center center/100% 100% no-repeat!important;overflow:visible!important}
body:has(#home.active) .dash-panel:before{display:none!important}
body:has(#home.active) .dash-metrics{margin:0!important;position:relative!important;z-index:2!important}
body:has(#home.active) .dash-metrics .dash-action{height:14vw!important;max-height:84px!important}
body:has(#home.active) .dash-panel .home-load-indicator{top:8vw!important;right:4%!important}
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 89vw)!important}
body:has(#home.active) #home .race-heading h1{font-family:system-ui,"Hiragino Kaku Gothic ProN",sans-serif!important}
@media(max-width:380px){body:has(#home.active) .dash-panel{height:34vw!important;padding-top:15.4vw!important}body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 89vw)!important}}

/* v0.21.49 — structural correction: signboard title remains above the three counters. */
body:has(#home.active) .dashboard-top{overflow:visible!important}
body:has(#home.active) .yoso-shop{height:55vw!important;max-height:none!important}
body:has(#home.active) .yoso-noren{top:9vw!important}
body:has(#home.active) .dash-panel{
  height:39vw!important;max-height:none!important;min-height:0!important;
  margin:-1.2vw 0 0!important;padding:15.8vw 6.5% 5vw!important;
  background-image:url("assets/todays-data-board-v49.png")!important;
  background-position:center center!important;background-size:100% 100%!important;
  box-sizing:border-box!important;overflow:visible!important;
}
body:has(#home.active) .dash-panel .dash-metrics{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:1.2vw!important;position:relative!important;z-index:2!important;
}
body:has(#home.active) .dash-metrics .dash-action{
  height:15.5vw!important;max-height:none!important;min-height:0!important;
  border-radius:2.4vw!important;
}
body:has(#home.active) .dash-panel .home-load-indicator{
  top:9vw!important;right:3.5%!important;z-index:4!important;
}
body:has(#home.active) main{
  top:calc(env(safe-area-inset-top,0px) + 93vw)!important;
}
@media(max-width:380px){
 body:has(#home.active) .dash-panel{height:39vw!important;padding-top:15.8vw!important}
 body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 93vw)!important}
}
/* v0.21.50: raise the entire illustrated board and all three counters together */
body:has(#home.active) .dash-panel{
  margin-top:-11.2vw!important;
}
body:has(#home.active) main{
  top:calc(env(safe-area-inset-top,0px) + 83vw)!important;
}
@media(max-width:380px){
 body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 83vw)!important}
}

/* v0.21.51: lift board and its three counters together by ~60px on 393px iPhone */
body:has(#home.active) .dash-panel{margin-top:-26.5vw!important}
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 67.7vw)!important}
@media(max-width:380px){body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 67.7vw)!important}}

/* v0.21.52: lower illustrated board and its three counters together by ~30px at 393px viewport */
body:has(#home.active) .dash-panel{margin-top:-18.9vw!important}
body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 75.3vw)!important}
@media(max-width:380px){body:has(#home.active) main{top:calc(env(safe-area-inset-top,0px) + 75.3vw)!important}}

/* v0.21.53 — YOSOYA race-detail visual skin; preserve DOM and all race logic */
body:has(#detail.active){background:#061b33!important;color:#f6e8c9!important}
body:has(#detail.active) main{background:#061b33!important;padding-left:10px!important;padding-right:10px!important}
body:has(#detail.active) #detail .venue-detail-banner{background:linear-gradient(180deg,#1d120b,#573015 9%,#09213e 14%,#0a3153 90%,#a56b2a 96%,#3c210e)!important;border:2px solid #ba8438!important;border-radius:0 0 12px 12px!important;box-shadow:0 5px 12px #0009!important;margin:0 -10px 12px!important}
body:has(#detail.active) #detail .venue-detail-banner::before{background:#09213e!important}
body:has(#detail.active) #detail .venue-detail-title{padding:11px 9px 12px!important;gap:6px!important}
body:has(#detail.active) #detail .venue-detail-title #back,body:has(#detail.active) #detail .nv-venue-switch button,body:has(#detail.active) #detail #venueReload,body:has(#detail.active) #detail #brvDiagButton{background:linear-gradient(150deg,#17486d,#061d35)!important;border:1px solid #c89a53!important;color:#fff!important;box-shadow:inset 0 1px #ffffff30,0 2px 4px #0008!important;border-radius:8px!important}
body:has(#detail.active) #detail .nv-venue-switch button{font-family:"Hiragino Kaku Gothic ProN",sans-serif!important;font-weight:900!important}
body:has(#detail.active) #detail .venue-menu{background:#3b230f!important;gap:3px!important;padding:4px!important}
body:has(#detail.active) #detail .venue-menu button{background:linear-gradient(#13395b,#061a32)!important;color:#f9e7c3!important;border:1px solid #a87936!important;border-radius:5px!important;padding:10px 1px!important}
body:has(#detail.active) #detail .venue-menu button.on{background:linear-gradient(#b72a37,#74101d)!important;color:white!important;border-color:#f1bc62!important}
body:has(#detail.active) #detail .venue-race{background:#f9f7f1!important;border:3px solid #bd8b45!important;border-radius:15px!important;box-shadow:0 4px 0 #5e3619,0 8px 16px #0008!important;overflow:hidden!important;margin-bottom:20px!important}
body:has(#detail.active) #detail .venue-race-head{background:linear-gradient(180deg,#143e64,#061b35)!important;border-bottom:4px solid #d6a14c!important;color:#fff!important;min-height:59px!important;padding:11px 10px!important}
body:has(#detail.active) #detail .venue-race-head b{color:#fff!important;text-shadow:0 2px #0008!important}
body:has(#detail.active) #detail .venue-entry-cols{background:#eee8dc!important;color:#4d4b48!important;border-bottom:2px solid #ad8a5a!important}
body:has(#detail.active) #detail .venue-entry-row{background:linear-gradient(90deg,#fff,#f8f7f3)!important;border-bottom:1px solid #cbbda9!important}
body:has(#detail.active) #detail .venue-entry-person b,body:has(#detail.active) #detail .venue-entry-person .player-name-link{color:#17273a!important}
body:has(#detail.active) #detail .venue-race-actions{background:linear-gradient(#c99752,#8b5424)!important;border-top:3px solid #e5ba72!important;gap:7px!important;padding:10px!important}
body:has(#detail.active) #detail .venue-race-actions button{background:linear-gradient(#fff9eb,#e9d5ae)!important;color:#173455!important;border:2px solid #7b4b20!important;border-radius:9px!important;box-shadow:0 2px 3px #0005!important;font-weight:900!important}
body:has(#detail.active) #detail .venue-race-actions button:last-child{background:linear-gradient(#bd2638,#7b1221)!important;color:white!important;border-color:#f1c46d!important}
body:has(#detail.active) #detail .race-tabs{gap:4px!important;margin:10px 0!important}
body:has(#detail.active) #detail .race-tabs button{background:linear-gradient(#153c60,#081c34)!important;color:#fff!important;border:1px solid #b88c4b!important;border-radius:6px!important;font-weight:900!important}
body:has(#detail.active) #detail .race-tabs button.selected{background:linear-gradient(#bd2d3b,#7c1423)!important;border-color:#f5c46d!important}
body:has(#detail.active) #detail #raceBody{border:2px solid #ba8844!important;background:#fffdf8!important;color:#162d46!important;box-shadow:0 4px 12px #0007!important}
:not(*){height:calc(88px + env(safe-area-inset-bottom,0px))!important;bottom:0!important;padding:12px 7.5% calc(12px + env(safe-area-inset-bottom,0px))!important;gap:3%!important;background:#071d37 url("assets/yoso-wood-footer.png") center/100% 100% no-repeat!important;border:0!important;overflow:hidden!important;align-items:center!important}
:not(*){height:58px!important;min-height:0!important;min-width:0!important;flex:1 1 0!important;margin:0!important;border:2px solid #e7ac4c!important;border-radius:9px!important;background:linear-gradient(150deg,#07385b,#04182d)!important;color:#fff!important;font-size:17px!important;font-weight:900!important;line-height:1.08!important;padding:3px 0!important;box-shadow:0 2px 4px #0009!important}
:not(*){background:linear-gradient(#d7192b,#870817)!important}
:not(*){color:white!important}
@media(max-width:380px){body:has(#detail.active) #detail .venue-detail-title{gap:4px!important;padding-left:5px!important;padding-right:5px!important}body:has(#detail.active) #detail .nv-venue-switch button{font-size:14px!important;padding:4px 5px!important}}

/* v0.21.54: consistent YOSOYA styling for basic, exhibition and odds views */
body:has(#detail.active) #raceBody,
body:has(#detail.active) #singleRace .content-card{background:#fffaf0!important;border:2px solid #bd8a43!important;border-radius:15px!important;box-shadow:0 5px 0 #563416,0 8px 18px #0007!important;color:#182d43!important;overflow:hidden}
body:has(#detail.active) #raceBody h2,body:has(#detail.active) #raceBody h3,
body:has(#detail.active) #raceBody .pred-section-title,
body:has(#detail.active) #raceBody .player-section-title{color:#fff!important;background:linear-gradient(180deg,#154268,#071d37)!important;border-bottom:3px solid #c89746!important;padding:10px!important;text-shadow:0 1px 2px #0008!important}
body:has(#detail.active) #raceBody table{border-collapse:separate!important;border-spacing:0!important;border:2px solid #b88a4c!important;border-radius:9px!important;overflow:hidden!important;background:#fffdf8!important}
body:has(#detail.active) #raceBody th{background:linear-gradient(#173b5c,#0b223b)!important;color:#fff!important;border-color:#a47d49!important}
body:has(#detail.active) #raceBody td{border-color:#d8c9af!important}
body:has(#detail.active) #raceBody .nv-odds-kind-choose,
body:has(#detail.active) #raceBody .nv-odds-refresh{background:linear-gradient(#fff8e7,#ead4a9)!important;color:#123653!important;border:2px solid #b88a4c!important;border-radius:9px!important}
body:has(#detail.active) #raceBody .nv-odds-first,
body:has(#detail.active) #raceBody .nv-odds-pairs{border:2px solid #c39a56!important;border-radius:12px!important;overflow:hidden!important;background:#fffdf8!important}
body:has(#detail.active) #raceBody .nv-odds-first-head{background:#e9dcc6!important;color:#133350!important}
body:has(#detail.active) #raceBody .nv-odds-cell{border-color:#d4c5ad!important}
body:has(#detail.active) #raceBody button:not(.lane):not(.nv-odds-lane){border-radius:8px}
/* Navigation icons must not inherit the global span/icon dimensions. */
:not(*){box-sizing:border-box!important;height:calc(96px + env(safe-area-inset-bottom,0px))!important;padding:12px 7.5% calc(16px + env(safe-area-inset-bottom,0px))!important;display:flex!important;gap:3%!important;overflow:hidden!important}
:not(*){box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;height:clamp(54px,15vw,68px)!important;padding:4px 0!important;font-size:clamp(13px,3.7vw,17px)!important;line-height:1.05!important;overflow:hidden!important}
:not(*){display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 27px!important;width:36px!important;height:27px!important;min-height:0!important;max-height:27px!important;margin:0!important;font-size:0!important;line-height:0!important}
:not(*){display:block!important;position:static!important;width:34px!important;height:27px!important;max-width:100%!important;max-height:100%!important;transform:none!important}
:not(*){vector-effect:non-scaling-stroke}

/* v0.21.55 — prediction screens harmonized with YOSOYA storefront */
#prediction{background:#071d35!important;color:#f7e7c5;min-height:100%;padding-bottom:110px!important}
#prediction .prediction-hero{margin:0 -10px 14px!important;padding:18px 15px 16px!important;border-radius:0!important;background:repeating-linear-gradient(90deg,transparent 0 49px,#00000012 50px 52px),linear-gradient(180deg,#142f49,#071a30 82%)!important;border-bottom:5px solid #b77b2d;box-shadow:inset 0 5px #7c4b22,0 5px 12px #0008!important;text-align:center}
#prediction .prediction-hero::before{content:"予 想 屋";display:block;position:relative;z-index:1;width:max-content;margin:0 auto 9px;padding:7px 21px;background:linear-gradient(135deg,#173b60,#061c36);border:2px solid #c38b3c;border-radius:5px;box-shadow:0 3px 0 #3e2611;color:#fff4d9;font-weight:900;font-size:23px;letter-spacing:.16em;text-shadow:1px 2px 2px #000}
#prediction .prediction-hero::after{display:none!important}
#prediction .prediction-hero-kicker{font-size:9px;color:#c6a26b;letter-spacing:.12em}
#prediction .prediction-hero-kicker span{color:#f3d18e}
#prediction #predictionHeading{text-align:center!important;font-size:20px!important;color:#fff!important;margin:8px 0 10px!important;text-shadow:0 2px 3px #0008}
#prediction .prediction-hero-foot{justify-content:center}
#prediction .prediction-hero-foot span{background:linear-gradient(#173b59,#0a223b);border:1px solid #b78a4a;color:#ffe8b5;border-radius:5px;box-shadow:0 2px 3px #0006}
#predictionBody{color:#23364b}
#prediction .pred-odds-status{color:#d6b982;background:#0d2b46;border:1px solid #95692f;border-radius:8px;padding:8px 6px;text-align:center;margin:3px 1px 10px}
#prediction .pred-panel{border:2px solid #c4944e!important;border-radius:12px!important;background:linear-gradient(180deg,#fffaf0,#f5e8d2)!important;box-shadow:0 4px 0 #4b2b14,0 7px 12px #0007!important;overflow:hidden}
#prediction .pred-panel-tri{border-color:#c69a53!important}
#prediction .pred-panel-hole{border-color:#c69a53!important}
#prediction .pred-main-title,#prediction .pred-panel>h2{background:linear-gradient(180deg,#163e60,#071e37);color:#fff4d9!important;border:1px solid #c69a53;border-radius:6px;padding:6px 4px}
#prediction .pred-main-title *,#prediction .pred-panel>h2 *{color:inherit}
#prediction .pred-reason{background:#fffdf7!important;border:1px solid #c7a66d!important;border-radius:9px!important}
#prediction .pred-reason h3{color:#674015}
#prediction .pred-reason p{color:#3b3a36}
#prediction .pred-reason-block{background:transparent}
#prediction .pred-bet{background:#fffaf1;border-color:#d9c6a6}
#prediction .pred-group h3{border:1px solid #bfa67b}
#prediction .pred-footer-note{background:#142d46;color:#ead4ad;border:1px solid #ac7a39}
#predictionBody:has(.pred-loading){margin-top:8px!important}
#prediction .pred-loading{margin:12px auto 25px!important;padding:26px 18px!important;background:linear-gradient(180deg,#fff9ec,#f1e1c4)!important;border:5px ridge #b47b35!important;border-radius:13px!important;box-shadow:0 7px 0 #48290e,0 10px 20px #0008!important}
#prediction .pred-loading h2{color:#4a2b10;font-size:21px;text-shadow:0 1px #fff}
#prediction .pred-loading-meta{color:#745632}
#prediction .pred-race-track{max-width:100%}
#prediction .pred-grand-clock{filter:drop-shadow(0 3px 4px #6b431f55)}
@media(max-width:400px){#prediction .prediction-hero{padding:13px 10px 13px!important}#prediction .prediction-hero::before{font-size:19px;padding:6px 16px}#prediction .pred-panel{padding:7px 4px!important}#prediction .pred-loading{padding:20px 12px!important}}

/* v0.21.56 — legible race-entry figures and seamless mascot stage */
body:has(#detail.active) #detail .venue-entry-row .venue-entry-motor,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-boat,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-motor b,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-motor small,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-boat b,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-boat small,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-st,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-st *,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-win,
body:has(#detail.active) #detail .venue-entry-row .venue-entry-win *{color:#111!important;-webkit-text-fill-color:#111!important;text-shadow:none!important;opacity:1!important}
#prediction .pred-ojisan-stage,
#prediction .pred-ojisan-stage.is-main,
#prediction .pred-ojisan-stage.is-hole{background:#fffaf0!important;background-image:none!important}
#prediction .pred-ojisan-stage:before{display:none!important}
#prediction .pred-ojisan-figure{background:transparent!important}
#prediction .pred-ojisan-figure img{background:transparent!important}

/* v0.21.71 — PWA dock flush to CSS viewport bottom; eliminate 34px white band. */
:root { --brv-dock-height: 96px; --brv-safe-bottom: 0px; }
html { min-height:100%; background:#fff; }
body { min-height:100dvh; background:#fff; overflow:hidden; }
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{
 position:fixed!important;
 inset:auto 0 var(--brv-safe-bottom) 0!important;
 top:auto!important; bottom:var(--brv-safe-bottom)!important;
 transform:none!important; margin:0!important;
 width:100%!important; height:var(--brv-dock-height)!important;
 min-height:0!important; box-sizing:border-box!important;
 display:flex!important; align-items:center!important; justify-content:space-around!important;
 padding:12px 7.5%!important; gap:3%!important;
 background:#071d37 url("assets/yoso-wood-footer.png") center/100% 100% no-repeat!important;
 border:0!important; overflow:visible!important; z-index:1001!important;
}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{
 box-sizing:border-box!important; flex:1 1 0!important; min-width:0!important;
 height:68px!important; min-height:0!important; margin:0!important;
 display:flex!important; flex-direction:column!important;
 align-items:center!important; justify-content:center!important; gap:2px!important;
 border:2px solid #e7ac4c!important; border-radius:9px!important;
 background:linear-gradient(150deg,#07385b,#04182d)!important; color:#fff!important;
 font-size:clamp(13px,3.7vw,17px)!important; font-weight:900!important;
 line-height:1.05!important; padding:4px 0!important;
 box-shadow:0 2px 4px #0009!important; overflow:hidden!important;
}
body nav button.on { background:linear-gradient(#d7192b,#870817)!important; }
body nav button .yoso-nav-icon { display:flex!important; align-items:center!important;
 justify-content:center!important; flex:0 0 27px!important;
 width:36px!important; height:27px!important; min-height:0!important;
 margin:0!important; line-height:0!important; }
body nav button .yoso-nav-icon svg { display:block!important; width:34px!important;
 height:27px!important; max-width:100%!important; max-height:100%!important; }
body::after { content:""!important; position:fixed!important; inset:auto 0 0 0!important;
 height:0!important; background:transparent!important;
 z-index:1000!important; pointer-events:none!important; display:none!important; }
body:has(#home.active) main,
body:has(#detail.active) main,
body:has(#prediction.active) main {
 bottom:calc(var(--brv-safe-bottom) + var(--brv-dock-height))!important;
}

/* v0.21.72 — keep dock anchored, fit all three buttons within wooden frame. */
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{padding:18px 9% 18px!important;gap:3%!important;overflow:visible!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{height:58px!important;max-height:58px!important;min-height:0!important;padding:2px 0!important;font-size:clamp(12px,3.4vw,16px)!important;gap:1px!important;border-radius:9px!important}
body nav button .yoso-nav-icon{flex:0 0 23px!important;height:23px!important;width:30px!important}
body nav button .yoso-nav-icon svg{height:23px!important;width:29px!important}

/* v0.21.73 — compact all three dock buttons, preserve wooden bar dimensions and anchor. */
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{padding:19px 6%!important;gap:3%!important;justify-content:space-evenly!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{flex:0 1 27%!important;width:27%!important;max-width:27%!important;height:50px!important;max-height:50px!important;padding:2px 0!important;font-size:clamp(11px,3.1vw,14px)!important;gap:0!important;border-radius:8px!important}
body nav button .yoso-nav-icon{flex:0 0 20px!important;width:26px!important;height:20px!important}
body nav button .yoso-nav-icon svg{width:25px!important;height:20px!important}

/* v0.21.74 — further shrink the three buttons without moving the wooden dock. */
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{padding:25px 9%!important;gap:4%!important;justify-content:center!important;align-items:center!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{flex:0 0 22%!important;width:22%!important;max-width:22%!important;height:38px!important;max-height:38px!important;min-height:0!important;padding:1px 0!important;font-size:clamp(10px,2.7vw,12px)!important;gap:0!important;border-width:1.5px!important;border-radius:7px!important}
body nav button .yoso-nav-icon{flex:0 0 16px!important;width:20px!important;height:16px!important}
body nav button .yoso-nav-icon svg{width:19px!important;height:16px!important}

/* v0.21.75 — moderately enlarge buttons from v0.21.74; dock anchor unchanged. */
body:has(#home.active) nav,body:has(#detail.active) nav,body:has(#prediction.active) nav,body:has(#myracers.active) nav,body:has(#searchracers.active) nav,body:has(#legacy.active) nav{padding:22px 7%!important;gap:3%!important;justify-content:center!important;align-items:center!important}
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{flex:0 0 25%!important;width:25%!important;max-width:25%!important;height:44px!important;max-height:44px!important;min-height:0!important;padding:1px 0!important;font-size:clamp(11px,3vw,13px)!important;gap:0!important;border-width:1.5px!important;border-radius:8px!important}
body nav button .yoso-nav-icon{flex:0 0 19px!important;width:24px!important;height:19px!important}
body nav button .yoso-nav-icon svg{width:23px!important;height:19px!important}

/* v0.21.76 — raise only the three buttons 7px inside the wooden dock. */
body:has(#home.active) nav button,body:has(#detail.active) nav button,body:has(#prediction.active) nav button,body:has(#myracers.active) nav button,body:has(#searchracers.active) nav button,body:has(#legacy.active) nav button{
  transform:translateY(-7px)!important;
}

/* v0.21.77 — racer, motor and boat detail sheets: navy / gold / warm wood. */
.player-overlay:not([hidden]){
  background:rgba(1,12,27,.77)!important;
  backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);
  align-items:center!important;justify-content:center!important;
  padding:calc(env(safe-area-inset-top,0px) + 12px) 12px calc(env(safe-area-inset-bottom,0px) + 14px)!important;
  box-sizing:border-box!important;
}
.player-overlay .player-sheet{
  width:100%!important;max-width:540px!important;
  max-height:min(78dvh,740px)!important;
  border-radius:17px!important;
  padding:0 12px 15px!important;
  overflow-y:auto!important;overscroll-behavior:contain;
  background:linear-gradient(180deg,#112e4c 0%,#071b31 100%)!important;
  color:#f7e9c7!important;
  border:2px solid #b98842!important;
  box-shadow:0 10px 0 #3b2415,0 20px 45px #000b,inset 0 0 0 2px #6b4826!important;
}
.player-overlay .player-sheet-top{
  position:sticky!important;top:0!important;z-index:3!important;
  margin:0 -12px 12px!important;padding:13px 14px!important;
  background:linear-gradient(180deg,#805020 0%,#422711 20%,#102d4a 23%,#06192e 100%)!important;
  color:#fff3d0!important;border-bottom:2px solid #c89a50!important;
  min-height:56px;box-sizing:border-box;
}
.player-overlay .player-sheet-top strong{font-size:17px!important;color:#fff4d4!important;text-shadow:0 2px 2px #000}
.player-overlay .player-sheet-top span{color:#f1d5a0!important;font-size:11px!important}
.player-overlay .player-sheet-top button{
  border:1px solid #d8a654!important;border-radius:9px!important;
  background:linear-gradient(#173e60,#071d34)!important;
  color:#fff5d9!important;padding:7px 10px!important;font-weight:800!important;
  box-shadow:inset 0 1px #ffffff25!important;
}
.player-overlay .player-identity,.player-overlay .equipment-identity{
  background:linear-gradient(150deg,#173957,#0a213a)!important;
  border:1.5px solid #b98741!important;border-radius:12px!important;
  color:#fff5de!important;padding:12px!important;margin-bottom:12px!important;
  box-shadow:inset 0 1px #ffffff15!important;
}
.player-overlay .player-identity strong,.player-overlay .equipment-identity strong{color:#fff5de!important;font-size:19px!important}
.player-overlay .equipment-identity strong{font-size:27px!important}
.player-overlay .player-identity small,.player-overlay .equipment-identity small,.player-overlay .equipment-identity span{color:#d4e0ec!important}
.player-overlay .player-lane-pill{flex-shrink:0;border:2px solid #d7aa65!important;box-shadow:0 2px 6px #0005}
.player-overlay .player-section{
  background:#0b243e!important;border:1.5px solid #9e753e!important;
  border-radius:11px!important;margin:10px 0!important;overflow:hidden!important;
}
.player-overlay .player-section h3{
  background:linear-gradient(90deg,#71451f,#392713 40%,#102c49)!important;
  color:#ffe6a9!important;font-size:14px!important;font-weight:900!important;
  padding:11px 12px!important;margin:0!important;
  border-bottom:1px solid #b68b4c!important;
}
.player-overlay .player-stat-grid{background:#876d4c!important;gap:1px!important}
.player-overlay .player-stat,.player-overlay .player-course{
  background:#102c49!important;color:#fff5e0!important;
  padding:12px 4px!important;min-width:0!important;
}
.player-overlay .player-stat small,.player-overlay .player-course small{color:#c4d2e1!important;font-size:11px!important}
.player-overlay .player-stat b{color:#fff!important;font-size:17px!important;font-weight:900!important;overflow-wrap:anywhere}
.player-overlay .player-course b{color:#f4c977!important}
.player-overlay .player-data-note{color:#d1dce8!important;font-size:12px!important;line-height:1.65!important}
.player-overlay .equipment-user{background:#102c49!important;color:#f7ebd1!important;border-bottom:1px solid #856239!important;padding:12px!important}
.player-overlay .equipment-user small,.player-overlay .equipment-user span{color:#d0dce8!important}
/* Compact racer profile: centered, and still scrollable on short screens. */
.player-overlay-compact .player-sheet{max-width:460px!important;max-height:min(75dvh,620px)!important}
@media(max-width:380px){
 .player-overlay:not([hidden]){padding-left:8px!important;padding-right:8px!important}
 .player-overlay .player-stat{padding:9px 2px!important}
 .player-overlay .player-stat b{font-size:15px!important}
}

/* v0.21.78: compact adjacent day controls; remove legend and status footer visually. */
#home .legend,#home #status{display:none!important}
body:has(#home.active) #home .datebar{gap:4px!important;justify-content:flex-end!important}
body:has(#home.active) #home .datebar .brv-date-step{display:grid!important;place-items:center!important;width:30px!important;height:32px!important;min-width:30px!important;padding:0!important;border:1px solid #c5a05b!important;border-radius:9px!important;background:linear-gradient(#123e60,#071d36)!important;color:#fff!important;font-size:24px!important;line-height:1!important}
body:has(#home.active) #home .datebar .brv-date-step:disabled{opacity:.34!important;filter:grayscale(1)!important;cursor:not-allowed!important}
body:has(#home.active) #home .datebar input{width:0!important;min-width:0!important;flex:1 1 auto!important;font-size:10px!important}
@media(max-width:390px){body:has(#home.active) #home .datebar .brv-date-step{width:26px!important;min-width:26px!important}}

/* v0.21.79: character illustrations for live prediction state */
#prediction .pred-character-loading{padding:16px 12px 13px!important;text-align:center;overflow:hidden}
#prediction .pred-character-visual{position:relative;width:100%;max-width:550px;margin:0 auto 8px;aspect-ratio:780/300;overflow:hidden;border-radius:9px}
#prediction .pred-character-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .24s ease}
#prediction .pred-character-idea{opacity:0}
#prediction .pred-character-loading.is-ready .pred-character-thinking{opacity:0}
#prediction .pred-character-loading.is-ready .pred-character-idea{opacity:1}
#prediction .pred-character-loading h2{margin:6px 0 0!important}
#prediction .pred-character-loading .pred-loading-meta{margin-top:7px!important}

/* v0.21.80: independently moving characters and prediction-state animation. */
#prediction .pred-character-visual{aspect-ratio:780/239!important;overflow:hidden!important;background:#f6e9d1!important;isolation:isolate}
#prediction .pred-character-stage{position:absolute;inset:0;overflow:hidden;transition:opacity .24s ease;will-change:opacity}
#prediction .pred-character-thinking{opacity:1}
#prediction .pred-character-idea{opacity:0;pointer-events:none}
#prediction .pred-character-loading.is-ready .pred-character-thinking{opacity:0}
#prediction .pred-character-loading.is-ready .pred-character-idea{opacity:1}
#prediction .pred-character-half{position:absolute;inset:0;background-size:100% 100%;background-repeat:no-repeat;will-change:transform}
#prediction .pred-character-thinking .pred-character-half{background-image:url("assets/prediction-thinking-characters.webp")}
#prediction .pred-character-idea .pred-character-half{background-image:url("assets/prediction-idea-characters.webp")}
#prediction .pred-character-seiji{clip-path:inset(0 49% 0 0);transform-origin:28% 75%;animation:brv-seiji-think 2.5s ease-in-out infinite alternate}
#prediction .pred-character-shigeki{clip-path:inset(0 0 0 49%);transform-origin:74% 78%;animation:brv-shigeki-think 2s ease-in-out infinite alternate}
#prediction .pred-character-idea .pred-character-seiji{animation:brv-seiji-idea .7s ease-out both}
#prediction .pred-character-idea .pred-character-shigeki{animation:brv-shigeki-idea .85s ease-out both}
#prediction .pred-animated-mark{position:absolute;z-index:2;top:5%;color:#a26823;font-size:clamp(17px,4.2vw,27px);font-weight:900;text-shadow:0 2px #fff8;animation:brv-thought 1.6s ease-in-out infinite}
#prediction .pred-mark-left{left:9%}#prediction .pred-mark-right{right:9%;animation-delay:.7s}
#prediction .pred-idea-spark{position:absolute;z-index:4;top:8%;font-size:clamp(24px,7vw,45px);color:#ffd12b;text-shadow:0 0 10px #ff9c00,0 0 20px #fff;animation:brv-spark .55s ease-in-out infinite alternate}
#prediction .pred-spark-left{left:10%}#prediction .pred-spark-right{right:10%;animation-delay:.2s}
#prediction .pred-idea-flash{position:absolute;inset:0;z-index:3;pointer-events:none;background:#fff;opacity:0;animation:brv-flash 1s ease-out both}
#prediction .pred-character-caption{margin:9px 0 0!important;animation:brv-caption-pulse 1.6s ease-in-out infinite}
#prediction .pred-character-loading.is-ready .pred-character-caption{animation:none;color:#a64610!important}
@keyframes brv-seiji-think{0%,100%{transform:rotate(-1.3deg) translateY(2px)}45%{transform:rotate(1.4deg) translateY(-4px)}70%{transform:rotate(.3deg) translateY(0)}}
@keyframes brv-shigeki-think{0%,100%{transform:rotate(1.7deg) translateY(1px)}50%{transform:rotate(-1.7deg) translateY(-5px)}}
@keyframes brv-seiji-idea{0%{transform:translateY(15px) rotate(-7deg) scale(.95)}65%{transform:translateY(-9px) rotate(3deg) scale(1.045)}100%{transform:none}}
@keyframes brv-shigeki-idea{0%{transform:translateY(17px) rotate(7deg) scale(.94)}65%{transform:translateY(-11px) rotate(-3deg) scale(1.05)}100%{transform:none}}
@keyframes brv-thought{0%,100%{transform:translateY(2px) scale(.85);opacity:.4}50%{transform:translateY(-9px) scale(1.2);opacity:1}}
@keyframes brv-spark{from{transform:scale(.75) rotate(-18deg);opacity:.6}to{transform:scale(1.3) rotate(18deg);opacity:1}}
@keyframes brv-flash{0%{opacity:.85}60%{opacity:0}100%{opacity:0}}
@keyframes brv-caption-pulse{50%{opacity:.65}}
@media(prefers-reduced-motion:reduce){#prediction .pred-character-half,#prediction .pred-animated-mark,#prediction .pred-idea-spark,#prediction .pred-idea-flash,#prediction .pred-character-caption{animation:none!important}}

/* v0.21.81: independent transparent character cutouts, free of the old clock/paper backdrop. */
#prediction .pred-character-visual{aspect-ratio:780/270!important;overflow:visible!important;background:transparent!important;isolation:isolate;margin-top:5px!important}
#prediction .pred-character-stage{overflow:visible!important}
#prediction .pred-cutout{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:fill!important;pointer-events:none;transition:transform 1.05s ease-in-out!important;filter:drop-shadow(0 3px 3px #563e2930)}
#prediction .pred-character-thinking .pred-seiji{transform:translateX(var(--seiji-dx,0px)) rotate(var(--seiji-rot,0deg));transform-origin:28% 85%}
#prediction .pred-character-thinking .pred-shigeki{transform:translateX(var(--shigeki-dx,0px)) rotate(var(--shigeki-rot,0deg));transform-origin:75% 85%}
#prediction .pred-character-idea .pred-seiji{animation:brv-seiji-idea .75s ease-out both;transform-origin:28% 85%}
#prediction .pred-character-idea .pred-shigeki{animation:brv-shigeki-idea .85s ease-out both;transform-origin:75% 85%}
#prediction .pred-bubble{position:absolute;z-index:6;top:-5%;display:grid;place-items:center;min-width:38px;height:36px;padding:0 8px;border-radius:50%;background:#fffdf4;border:2px solid #78522e;box-shadow:0 3px 7px #0002;color:#633c20;font-size:22px;font-weight:900;animation:brv-bubble-bob 2.1s ease-in-out infinite;transition:translate .8s ease}
#prediction .pred-bubble-left{left:11%;translate:var(--bubble-left-x,0px) 0}
#prediction .pred-bubble-right{right:10%;translate:var(--bubble-right-x,0px) 0;animation-delay:-.9s}
#prediction .pred-character-idea .pred-bubble{background:#fff3ac;color:#c55b0a;border-color:#e9a01a;font-size:27px;box-shadow:0 0 16px #ffc84c}
#prediction .pred-character-loading .pred-character-caption{position:relative;z-index:8;margin:1px 0 0!important}
@keyframes brv-bubble-bob{0%,100%{transform:translateY(3px) scale(.9);opacity:.65}50%{transform:translateY(-11px) scale(1.08);opacity:1}}
@media(prefers-reduced-motion:reduce){#prediction .pred-cutout,#prediction .pred-bubble{animation:none!important;transition:none!important}}

/* v0.21.82: true alpha character sprites; prevent any legacy image/background bleed. */
#prediction .pred-character-visual{background:none!important;overflow:hidden!important;aspect-ratio:780/270!important}
#prediction .pred-character-stage{overflow:hidden!important}
#prediction .pred-cutout{object-fit:fill!important;background:none!important;clip-path:none!important;mix-blend-mode:normal!important}
#prediction .pred-character-thinking .pred-cutout,#prediction .pred-character-idea .pred-cutout{background-image:none!important}
#prediction .pred-bubble{z-index:9!important}

/* v0.21.83: two separate speech bubbles occupy the empty middle of the completed animation. */
#prediction .pred-complete-lines{position:absolute;z-index:12;left:35%;width:30%;top:5%;height:90%;display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:9px;pointer-events:none}
#prediction .pred-speech{position:relative;min-width:0;padding:7px 4px 8px;border:2px solid #b67c31;border-radius:14px;background:#fffdf4;color:#653615;box-shadow:0 3px 9px #5c3c2940;text-align:center;opacity:0;font-size:clamp(9px,2.1vw,13px);line-height:1.18;white-space:normal;overflow-wrap:anywhere}
#prediction .pred-speech small{display:block;color:#8d562a;font-size:clamp(8px,1.8vw,11px);margin-bottom:3px;font-weight:700}
#prediction .pred-speech strong{display:block;font-size:clamp(10px,2.35vw,14px);font-weight:900}
#prediction .pred-speech-seiji:before,#prediction .pred-speech-shigeki:before{content:"";position:absolute;top:35%;width:10px;height:10px;background:#fffdf4;border-bottom:2px solid #b67c31;border-left:2px solid #b67c31}
#prediction .pred-speech-seiji:before{left:-7px;transform:rotate(45deg)}
#prediction .pred-speech-shigeki:before{right:-7px;transform:rotate(225deg)}
#prediction .pred-character-loading.is-ready .pred-speech-seiji{animation:brv-speech-in-left .38s .15s cubic-bezier(.2,1.4,.4,1) forwards}
#prediction .pred-character-loading.is-ready .pred-speech-shigeki{animation:brv-speech-in-right .38s .48s cubic-bezier(.2,1.4,.4,1) forwards}
@keyframes brv-speech-in-left{from{opacity:0;transform:translate(-16px,9px) scale(.75)}to{opacity:1;transform:none}}
@keyframes brv-speech-in-right{from{opacity:0;transform:translate(16px,9px) scale(.75)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#prediction .pred-character-loading.is-ready .pred-speech{animation:none!important;opacity:1!important}}

/* v0.21.84: pre/post exhibition commentary */
.pred-main-icon{display:none!important}
.brv-reason-tabs{display:flex;gap:5px;margin:8px 0 10px}
.brv-reason-tab{flex:1;min-width:0;border:1px solid #c6a36c;border-radius:8px;background:#f4e8d5;color:#132e4c;padding:9px 2px;font-size:clamp(11px,2.8vw,15px);font-weight:800}
.brv-reason-tab.active{background:#0b3459;color:white;border-color:#d7a34c}
.brv-reason-tab:disabled{opacity:.42}
.brv-reason-copy{background:#fffaf0;border:1px solid #d9bf8c;border-radius:10px;padding:10px 12px;color:#242424;line-height:1.8;font-size:clamp(12px,3vw,16px);overflow-wrap:anywhere}
.brv-reason-copy[hidden]{display:none!important}
.brv-reason-copy p{margin:0}
.brv-comment-lane{font-weight:900;border-radius:4px;padding:0 2px;white-space:nowrap}
.brv-comment-lane-1{color:#111;background:#eee}
.brv-comment-lane-2{color:#111;background:#fff;border:1px solid #888}
.brv-comment-lane-3{color:#e21c2b}
.brv-comment-lane-4{color:#0876d7}
.brv-comment-lane-5{color:#806000;background:#fff0a0}
.brv-comment-lane-6{color:#078044}

/* v0.21.87: live acquisition flags in the prediction hero */
.prediction-hero-foot.brv-fetch-flags{display:flex!important;justify-content:center!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;}
.brv-fetch-flags>span{display:inline-flex!important;align-items:center!important;gap:5px!important;white-space:nowrap!important;font-size:clamp(10px,2.75vw,13px)!important;padding:7px 9px!important;}
.brv-fetch-flags .brv-fetch-dot{display:inline-block!important;flex:none!important;width:9px!important;height:9px!important;border-radius:50%!important;background:#5b6472!important;box-shadow:0 0 0 1px #ffffff33!important;}
.brv-fetch-flags .brv-fetch-ready .brv-fetch-dot{background:#21b45d!important;box-shadow:0 0 6px #21b45d77!important;}
.brv-fetch-flags b{font-weight:800!important;}

/* v0.21.87: restore ticket-category colors after the navy/wood theme override.
   Classification comes from existing pred-selected/pred-expanded/pred-suichi classes. */
#prediction .pred-bet.pred-selected:not(.pred-suichi){background:linear-gradient(135deg,#fff4f6,#ffe5eb)!important;border:1px solid #e9a4b4!important;border-left:3px solid #df4566!important}
#prediction .pred-bet.pred-expanded:not(.pred-suichi){background:linear-gradient(135deg,#f0f8ff,#dceeff)!important;border:1px solid #90c5ee!important;border-left:3px solid #278bd2!important}
#prediction .pred-bet.pred-suichi{background:linear-gradient(135deg,#fffbea,#fff0bf)!important;border:2px solid #dfb24d!important;box-shadow:0 0 0 1px #f8e5aa,0 2px 8px #b8860b24!important}

/* v0.21.89: duo commentary beneath each immediate-data section */
.brv-duo-comment{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 12px 5px;align-items:start}
.brv-duo-person{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.brv-duo-portrait{width:86px;height:83px;position:relative;overflow:hidden;border-radius:50%;border:2px solid #c59a54;background:#fff2d7;box-shadow:0 2px 6px #132c4b24}
.brv-duo-portrait img{width:100%;height:100%;object-fit:contain;object-position:center bottom}
.brv-duo-portrait b{position:absolute;bottom:0;left:0;right:0;background:#0a3153e8;color:#fff;font-size:11px;text-align:center;padding:2px}
.brv-duo-bubble{position:relative;width:100%;box-sizing:border-box;border:1.5px solid #d6b37b;border-radius:12px;background:#fffaf0;color:#20364e;font-size:12px;line-height:1.7;padding:10px 9px;overflow-wrap:anywhere;min-height:95px}
.brv-duo-bubble:before{content:"";position:absolute;top:-7px;left:calc(50% - 7px);width:12px;height:12px;transform:rotate(45deg);background:#fffaf0;border-top:1.5px solid #d6b37b;border-left:1.5px solid #d6b37b}
@media(max-width:370px){.brv-duo-comment{gap:6px;margin-inline:7px}.brv-duo-bubble{font-size:11px;padding:9px 7px}}

/* v0.21.90: compact left-side portrait wipes, vertical conversational rows */
.brv-duo-comment{display:flex!important;flex-direction:column!important;gap:12px!important;margin:14px 10px 10px!important;align-items:stretch!important}
.brv-duo-person{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;align-items:center!important;gap:11px!important;width:100%!important;min-width:0!important;flex-direction:row!important}
.brv-duo-portrait{width:56px!important;height:56px!important;min-width:56px!important;border-radius:50%!important;overflow:hidden!important;align-self:center!important}
.brv-duo-portrait img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 28%!important}
.brv-duo-portrait b{font-size:9px!important;line-height:1.1!important;padding:2px 0!important}
.brv-duo-bubble{width:100%!important;min-height:0!important;padding:10px 12px!important;font-size:clamp(11px,2.8vw,14px)!important;line-height:1.65!important;border-radius:12px!important}
.brv-duo-bubble:before{top:calc(50% - 7px)!important;left:-7px!important;transform:rotate(-45deg)!important;border-top:1.5px solid #d6b37b!important;border-left:1.5px solid #d6b37b!important;border-bottom:0!important;border-right:0!important}
@media(max-width:370px){.brv-duo-person{grid-template-columns:50px minmax(0,1fr)!important;gap:8px!important}.brv-duo-portrait{width:48px!important;height:48px!important;min-width:48px!important}}

/* v0.21.91: six compact entry cards, retaining every existing live data field. */
#detail .racer-card{display:grid!important;grid-template-columns:44px minmax(0,1fr) 91px!important;grid-template-rows:auto auto!important;margin-bottom:7px!important;border-width:1.5px!important;border-radius:10px!important;min-height:0!important}
#detail .racer-main{display:contents!important;min-height:0!important}
#detail .racer-lane{grid-column:1!important;grid-row:1/3!important;width:44px!important;min-height:108px!important}
#detail .racer-lane b{font-size:26px!important}
#detail .racer-lane small{font-size:10px!important}
#detail .racer-info{grid-column:2!important;grid-row:1!important;padding:8px 7px 2px!important;min-width:0!important}
#detail .racer-info strong{font-size:clamp(13px,3.5vw,17px)!important;line-height:1.25!important}
#detail .racer-tags{margin-top:5px!important;gap:4px!important}
#detail .racer-tags span{font-size:10px!important;padding:3px 4px!important}
#detail .rank-line{margin-top:4px!important;gap:4px!important}
#detail .rank-line small{font-size:9px!important}
#detail .score-pill{font-size:11px!important;padding:3px 5px!important}
#detail .score-evolution{margin-top:4px!important;gap:3px!important;font-size:9px!important}
#detail .score-evolution span{padding:2px 3px!important}
#detail .motor-info{grid-column:3!important;grid-row:1/3!important;width:auto!important;padding:6px 3px!important;gap:3px!important;border-left:1px solid #dce6f2!important}
#detail .motor-info small{font-size:10px!important;line-height:1.3!important}
#detail .motor-info .score-pill{margin:2px 0!important}
#detail .racer-sub{grid-column:2!important;grid-row:2!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:3px 7px!important;border-top:0!important;padding:2px 7px 7px!important}
#detail .racer-sub span{display:inline-flex!important;align-items:baseline!important;gap:3px!important;padding:0!important;border:0!important;font-size:9px!important;white-space:nowrap!important}
#detail .racer-sub b{display:inline!important;margin:0!important;font-size:11px!important}
@media(max-width:370px){#detail .racer-card{grid-template-columns:38px minmax(0,1fr) 76px!important}#detail .racer-lane{width:38px!important}#detail .racer-sub{gap:2px 5px!important}#detail .motor-info small{font-size:9px!important}}

/* v0.21.92: integrated player data in each compact entry card. */
#detail .racer-card-profile{grid-column:1/-1;grid-row:3;min-width:0;border-top:1px solid #d7e2ef;background:#f8fbff}
#detail .racer-card-profile>summary{display:flex;justify-content:center;align-items:center;gap:8px;list-style:none;cursor:pointer;padding:8px 10px;color:#075a9a;font-size:12px;font-weight:800;touch-action:manipulation}
#detail .racer-card-profile>summary::-webkit-details-marker{display:none}
#detail .racer-card-profile>summary .racer-profile-chevron{font-size:16px;transition:transform .18s}
#detail .racer-card-profile[open]>summary .racer-profile-chevron{transform:rotate(180deg)}
#detail .racer-card-profile[open]>summary{background:#eaf3ff;border-bottom:1px solid #d7e2ef}
#detail .racer-card-profile .player-data-inline{padding:9px 7px 12px;max-width:100%;overflow-x:auto}
#detail .racer-card-profile .player-sheet-top{display:none}

/* v0.21.93 compact summary cards */
#home .summary-panel{background:#fffaf0;border:2px solid #c4954a;border-radius:15px;padding:12px;margin:12px 8px 16px;max-width:100%;box-sizing:border-box;overflow:visible}
#home .summary-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
#home .summary-head>strong{color:#132c46;font-size:17px}
#home .summary-controls{display:flex;align-items:center;gap:5px}
#home .summary-controls label{font-size:11px}
#home .summary-controls select,#home .summary-controls button{border:1px solid #bc9a65;border-radius:7px;background:#f4e9d7;color:#102b46;padding:7px 6px}
#home .summary-hit-list{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:10px;max-height:none;overflow:visible}
#home .summary-hit-card{background:#fffdf7;border:1px solid #c9aa77;border-left:4px solid #c9aa77;border-radius:10px;padding:10px;min-width:0}
#home .summary-hit-card.summary-hit-selected{background:#fff1f2;border-left-color:#df3650}
#home .summary-hit-card.summary-hit-expanded{background:#eef7ff;border-left-color:#168bd3}
#home .summary-hit-card.summary-hit-suichi{background:#fff5d7;border-left-color:#d49d20}
#home .summary-hit-top{margin-bottom:7px}
#home .summary-hit-grid{gap:7px}
#home .summary-hit-grid b{font-size:14px}
#home .summary-pin-card{background:#f5f8fc;border-left-color:#b48a47}
#home .summary-pin-heading{display:flex;justify-content:space-between;align-items:center;gap:6px}
#home .summary-pin-heading strong{color:#102a47;font-size:15px}
#home .summary-pin-link{font-size:11px;color:#176eac;white-space:nowrap}
#home .summary-pin-deadline{display:block;font-size:12px;color:#556a80;margin:7px 0}
#home .summary-pin-result{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800;color:#607388}
#home .summary-pin-result.is-confirmed{color:#126b4c}
/* v0.21.96 My Racer / Search — navy and gold */
.brv-utility-page{padding:16px 14px 28px!important;color:#f7ebd1}
.brv-util-heading,.brv-util-card{border:2px solid #c69a54;border-radius:17px;background:linear-gradient(140deg,#123958,#071b33);padding:20px;margin-bottom:18px;box-shadow:0 8px 18px #0004}
.brv-util-heading small{letter-spacing:3px;color:#caa66e}.brv-util-heading h2{font-size:25px;color:#f4ce8c;margin:8px 0}
.brv-util-card h3{margin:0 0 16px;color:#f4ce8c;border-bottom:1px solid #9c794a;padding-bottom:12px}.brv-util-card h3 small{float:right;color:white}
.brv-saved-racer,.brv-search-hit{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px;border:1px solid #6485a0;border-radius:12px;margin-top:10px;background:#12324d}.brv-saved-racer small,.brv-search-hit small{display:block;color:#c3d1df;margin-top:5px;font-size:12px}
.brv-saved-racer button,.brv-search-hit button,.brv-search-form button{border:1px solid #e4b66c;border-radius:10px;background:linear-gradient(#f8dc96,#c99437);color:#13283f;font-weight:900;padding:11px}
.brv-util-empty,.brv-util-note{color:#c5d4e2;font-size:13px;line-height:1.6}
.brv-search-tabs{display:flex;gap:7px;margin-bottom:13px}.brv-search-tabs button{flex:1;padding:13px 2px;border-radius:10px;border:1px solid #ad8a53;background:#0c304e;color:#fff;font-weight:800}.brv-search-tabs button.active{background:linear-gradient(#f9e3a2,#d6a444);color:#14283d}
.brv-search-form{display:flex;gap:9px}.brv-search-form input{min-width:0;flex:1;background:#081b32;color:white;border:1px solid #a98249;border-radius:10px;padding:12px;font-size:16px}
.brv-profile-actions{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.brv-profile-actions button{font-size:12px;font-weight:900;padding:8px;border-radius:8px;border:1px solid #b59b67;color:#fff;background:#153a58}.brv-profile-actions button[data-kind=GOOD].chosen{background:#177b53}.brv-profile-actions button[data-kind=BAD].chosen{background:#a32735}
.brv-registered-tag{display:block!important;font-size:9px!important;line-height:1.2!important;font-weight:800!important;margin-top:2px!important}.brv-registered-tag.good{color:#168353!important}.brv-registered-tag.bad{color:#b22c39!important}

/* v0.21.97 — Utility screens inherit the existing wooden prediction-house shell. */
html:has(#myracers.active),html:has(#searchracers.active),
body:has(#myracers.active),body:has(#searchracers.active){background:#071c36!important;color:#f6e9d0!important}
body:has(#myracers.active) .fixed-top,body:has(#searchracers.active) .fixed-top{display:none!important}
body:has(#myracers.active) main,body:has(#searchracers.active) main{
 position:absolute!important;top:calc(env(safe-area-inset-top,0px) + 12px)!important;
 bottom:calc(env(safe-area-inset-bottom,0px) + 104px)!important;
 left:0!important;right:0!important;overflow-y:auto!important;overflow-x:hidden!important;
 background:#071c36!important;padding:0 10px 18px!important;max-width:none!important;
}
:not(*){
 position:fixed!important;top:auto!important;bottom:env(safe-area-inset-bottom,0px)!important;
 inset:auto 0 env(safe-area-inset-bottom,0px) 0!important;
 transform:none!important;width:100%!important;height:96px!important;min-height:0!important;
 padding:12px 7.5%!important;box-sizing:border-box!important;display:flex!important;
 align-items:center!important;justify-content:space-around!important;gap:3%!important;
 background:#071d37 url("assets/yoso-wood-footer.png") center/100% 100% no-repeat!important;
 border:0!important;overflow:visible!important;z-index:1001!important;margin:0!important;
}
:not(*){
 box-sizing:border-box!important;flex:1 1 0!important;min-width:0!important;max-width:none!important;
 height:68px!important;min-height:0!important;margin:0!important;display:flex!important;
 flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;
 border:2px solid #e7ac4c!important;border-radius:9px!important;
 background:linear-gradient(150deg,#07385b,#04182d)!important;color:white!important;
 font-size:clamp(12px,3.5vw,16px)!important;font-weight:900!important;line-height:1.05!important;
 padding:4px 0!important;box-shadow:0 2px 4px #0009!important;overflow:hidden!important;
}
:not(*){background:linear-gradient(#d7192b,#870817)!important;color:#fff!important}
:not(*){display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 27px!important;width:36px!important;height:27px!important;min-height:0!important;margin:0!important;line-height:0!important}
:not(*){display:block!important;width:34px!important;height:27px!important;max-width:100%!important;max-height:100%!important}
body:has(#myracers.active)::after,body:has(#searchracers.active)::after{height:env(safe-area-inset-bottom,0px)!important;background:#071c36!important}
.brv-utility-page{padding:0 0 22px!important;color:#f6e9d0!important;min-height:100%!important}
.brv-util-heading{background:linear-gradient(145deg,#103758,#061c36)!important;border:2px solid #bc8a42!important;border-radius:13px!important;padding:16px 18px!important;margin:0 0 15px!important;box-shadow:0 5px 12px #0005!important}
.brv-util-heading small{display:none!important}.brv-util-heading h2{margin:0!important;color:#f4d092!important;font-size:22px!important}
#brvMyRacerContent{background:#fffaf0!important;border:2px solid #bd8d49!important;border-radius:16px!important;padding:12px!important;min-height:calc(100% - 90px)!important}
#brvMyRacerContent .brv-util-card{background:#fff!important;border:1.5px solid #bd8d49!important;border-radius:12px!important;padding:0 0 12px!important;margin:0 0 14px!important;overflow:hidden!important;box-shadow:none!important}
#brvMyRacerContent .brv-util-card h3{background:linear-gradient(#123c5f,#061b33)!important;color:#fff!important;border-bottom:3px solid #c99b51!important;padding:12px 15px!important;margin:0!important;font-size:17px!important}
#brvMyRacerContent .brv-util-card h3 small{color:#fff!important}
#brvMyRacerContent .brv-util-empty{color:#61758a!important;text-align:center!important;padding:14px 5px!important}
#brvMyRacerContent .brv-saved-racer{background:#f8fafc!important;border:1px solid #d4dfe9!important;margin:12px!important;color:#102c4c!important}
#brvMyRacerContent .brv-saved-racer small{color:#64778a!important}
#searchracers .brv-search-tabs{margin:0 2px 12px!important}
#searchracers .brv-search-tabs button{border:1.5px solid #c89c54!important;background:linear-gradient(#123b5b,#061c34)!important;color:#fff!important}
#searchracers .brv-search-tabs button.active{background:linear-gradient(#ffe9ac,#d3a447)!important;color:#102a46!important}
#searchracers .brv-search-form{margin:0 2px 12px!important}
#searchracers .brv-util-note{color:#c5d4e2!important;margin:0 4px 12px!important}
#brvSearchResults:not(:empty){background:#fffaf0!important;border:2px solid #bd8d49!important;border-radius:14px!important;padding:10px!important;color:#102a46!important}
#brvSearchResults .brv-search-hit{background:#fff!important;color:#102a46!important;border-color:#d2b987!important;margin:7px 0!important}
#brvSearchResults .brv-search-hit small{color:#63788b!important}
#brvSearchResults .brv-util-empty{color:#63788b!important}

/* v0.21.98: Utility tabs use exactly the same dock geometry as Home. */
:not(*){
 padding:22px 7%!important;gap:3%!important;justify-content:center!important;align-items:center!important;
}
:not(*){
 flex:0 0 25%!important;width:25%!important;max-width:25%!important;
 height:44px!important;max-height:44px!important;min-height:0!important;
 padding:1px 0!important;font-size:clamp(11px,3vw,13px)!important;
 gap:0!important;border-width:1.5px!important;border-radius:8px!important;
 transform:translateY(-7px)!important;
}
:not(*){
 flex:0 0 19px!important;width:24px!important;height:19px!important;
}
:not(*){
 width:23px!important;height:19px!important;
}

/* v0.21.99: anchor utility dock to the same viewport bottom as Home.
   The prior env(safe-area-inset-bottom) offset raised the entire wood dock. */
:not(*){
  bottom:0!important;
  inset:auto 0 0 0!important;
}

/* v0.22.00: home-only controls and legacy feature bridge */
.brv22-home-tools{position:fixed;z-index:1300;top:calc(env(safe-area-inset-top,0px) + 10px);left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none}.brv22-home-tools button{pointer-events:auto;width:43px;height:43px;border:2px solid #d6a24c;border-radius:11px;color:#f9d994;background:linear-gradient(145deg,#17446a,#061b33);font-size:24px;box-shadow:0 3px 9px #0008}.brv22-pred-back{display:block;margin:0 0 10px 14px;padding:8px 15px;border:1.5px solid #d5a35a;border-radius:9px;background:#0a2a47;color:#ffe1a5;font-weight:800;font-size:14px}#brv22-shade{position:fixed;inset:0;background:#0009;z-index:3000}#brv22-shade[hidden],#brv22-legacy-panel[hidden]{display:none!important}#brv22-drawer{position:fixed;top:0;bottom:0;left:0;width:min(82vw,370px);box-sizing:border-box;overflow-y:auto;padding:calc(env(safe-area-inset-top,0px) + 18px) 16px 40px;background:linear-gradient(145deg,#103c5e,#041529);border-right:2px solid #d6a24c;z-index:3001;transform:translateX(-105%);transition:transform .2s;color:#ffe0a4}#brv22-drawer.open{transform:translateX(0)}.brv22-drawer-head{display:flex;justify-content:space-between;align-items:center;font-size:20px}.brv22-drawer-head button,#brv22-legacy-close{width:42px;height:42px;border:1px solid #d6a24c;border-radius:9px;background:#092840;color:#fff;font-size:27px}#brv22-drawer h3{font-size:15px;margin:26px 0 9px;padding-bottom:9px;border-bottom:1px solid #b58b4c}#brv22-drawer>button[data-legacy-action]{display:block;width:100%;padding:15px 14px;margin:9px 0;text-align:left;border:1.5px solid #d7ac61;border-radius:11px;background:linear-gradient(120deg,#18476e,#0c2846);color:#fff;font-weight:800;font-size:15px}#brv22-legacy-panel{position:fixed;inset:0;z-index:3200;background:#071a30;display:flex;flex-direction:column} .brv22-legacy-head{flex:none;height:56px;margin-top:env(safe-area-inset-top,0px);padding:0 14px;display:flex;align-items:center;justify-content:space-between;color:#f9d994;background:#092d49;border-bottom:2px solid #c89443}#brv22-legacy-frame{border:0;flex:1;width:100%;min-height:0;background:#071a30}

/* v0.22.01: wooden storefront drawer, unified with current V */
#brv22-drawer{width:min(84vw,390px)!important;padding:calc(env(safe-area-inset-top,0px) + 16px) 13px 45px!important;background:repeating-linear-gradient(0deg,#633412 0px,#7c471d 8px,#9c6028 19px,#754017 30px,#51280f 40px)!important;border-right:5px ridge #e5ae54!important;box-shadow:inset -8px 0 16px #2c1109,9px 0 24px #000a!important;color:#ffe6b3!important}
#brv22-drawer .brv22-drawer-head{position:sticky;top:-1px;z-index:2;padding:10px 12px;margin:0 0 18px;border:2px solid #d6a24c;border-radius:9px;background:linear-gradient(#183c5a,#061a30);box-shadow:0 4px 8px #0007;font-size:19px}
#brv22-drawer h3{margin:19px 3px 10px!important;padding:9px 12px!important;color:#ffe2a6!important;background:linear-gradient(100deg,#09243e,#173f5e,#09243e);border:2px solid #b88641!important;border-radius:7px;font-size:15px!important;text-shadow:0 2px 2px #0009}
#brv22-drawer>button[data-legacy-action]{display:flex!important;align-items:center;justify-content:space-between;min-height:52px;margin:7px 0!important;padding:10px 14px!important;border:2px solid #d6a24c!important;border-radius:9px!important;background:linear-gradient(160deg,#123b5d,#071a30 65%,#051426)!important;color:#fff2d4!important;box-shadow:inset 0 1px #ffffff30,0 3px 0 #3d200d,0 5px 7px #0007!important;font-size:14px!important;letter-spacing:.02em}
#brv22-drawer>button[data-legacy-action]:active{transform:translateY(2px);box-shadow:inset 0 1px #ffffff30,0 1px 0 #3d200d!important}
#brv22-shade{background:#020b1dcc!important;backdrop-filter:blur(2px)}
/* v0.22.02: integrated wooden feature surface and safe area */
#brv22-legacy-panel{background:#071b33!important;z-index:3200!important}
#brv22-legacy-panel .brv22-legacy-head{height:64px!important;margin-top:env(safe-area-inset-top,0px)!important;padding:0 16px!important;background:linear-gradient(180deg,#9a5c25 0%,#5e3010 11%,#123b5a 17%,#071b33 85%,#8c4e1f 100%)!important;border-bottom:3px solid #d8a34d!important;box-shadow:0 4px 9px #0009!important}
#brv22-legacy-title{font-size:19px!important;color:#ffe1a2!important}
#brv22-legacy-close{background:linear-gradient(#153d5c,#061a30)!important;border:2px solid #d5a34c!important}
#brv22-legacy-frame{background:#071b33!important}
#brv22-drawer{padding-bottom:calc(env(safe-area-inset-bottom,0px) + 36px)!important}

/* v0.22.03: native news and notice, styled as the current wooden V interface */
#brv23-native-panel[hidden]{display:none!important}
#brv23-native-panel{position:fixed;inset:0;z-index:3300;display:flex;flex-direction:column;background:#071b33;color:#f6e4c5;box-sizing:border-box}
#brv23-native-panel .brv23-panel-head{padding:calc(env(safe-area-inset-top,0px) + 12px) 15px 12px;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;background:linear-gradient(180deg,#865023 0%,#44250f 10%,#153b5a 22%,#071b33 87%,#8e5225 100%);border-bottom:3px solid #d6a24c;box-shadow:0 3px 10px #0008}
#brv23-native-panel .brv23-panel-head strong{font-size:19px;color:#ffe0a1}
#brv23-panel-close{width:42px;height:42px;border:2px solid #d6a24c;border-radius:10px;background:#092a46;color:#fff;font-size:26px}
#brv23-native-panel .brv23-panel-content{flex:1;min-height:0;overflow-y:auto;padding:15px 13px calc(env(safe-area-inset-bottom,0px) + 20px)}
#brv23-panel-status{color:#e8c98b;font-size:13px;margin:0 0 12px}
#brv23-panel-rows{display:grid;gap:10px}
#brv23-panel-rows .brv23-news-row{display:grid;gap:7px;text-decoration:none;padding:13px;border:2px solid #bc8e49;border-radius:12px;background:linear-gradient(#fffdf6,#f2e7d3);color:#102a43}
#brv23-panel-rows .brv23-news-row small{color:#7a5b35;font-size:11px}
#brv23-panel-rows .brv23-news-row b{font-size:14px;line-height:1.5}
#brv23-panel-rows .brv23-news-row span{font-size:12px;color:#136c9f;font-weight:800}
#brv23-panel-rows .brv23-empty{padding:18px 14px;border:2px solid #bd904e;border-radius:12px;background:#fff9ed;color:#253c53;line-height:1.7;font-size:14px}

/* v0.22.04: native ranking rows */
.brv24-rank-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 11px;border:2px solid #b78b47;border-radius:12px;background:linear-gradient(155deg,#fffdf4,#e8d8b7);color:#152f43}
.brv24-rank-row .brv24-place{font-weight:900;font-size:20px;color:#9b641d;text-align:center}
.brv24-rank-row .brv24-person{min-width:0;display:grid;gap:4px}.brv24-rank-row .brv24-person b{font-size:14px;overflow-wrap:anywhere}.brv24-rank-row .brv24-person small{font-size:11px;color:#635a4b}.brv24-rank-row strong{font-size:14px;color:#073b66;text-align:right;white-space:nowrap}
.brv24-rank-jump{border:1px solid #a87c39;border-radius:6px;background:#153e5a;color:#fff;padding:5px 9px;font-size:11px;width:max-content}
.brv24-course-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin:0 0 12px}.brv24-course-tabs button{background:#153c5b;color:#fff2d7;border:1px solid #a87c39;border-radius:6px;padding:9px 0}.brv24-course-tabs button.active{background:#d2a254;color:#152a3d}
.brv24-rank-refresh{margin:0 0 12px;background:#123d5b;border:1px solid #d5a354;border-radius:9px;color:#fff;padding:9px 13px}

/* v0.22.05 challenge entry */
#brv25-challenge{position:fixed;inset:0;z-index:3500;overflow:auto;background:radial-gradient(ellipse at top,#24405b,#07182d 70%);color:#ffe6ae;padding-bottom:env(safe-area-inset-bottom,0px)}
#brv25-challenge[hidden]{display:none!important}
.brv25-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;padding:calc(env(safe-area-inset-top,0px) + 13px) 18px 13px;background:repeating-linear-gradient(6deg,#3b2418 0px,#5d3923 6px,#352116 12px,#634029 18px);border-bottom:3px solid #d3a75d;box-shadow:0 5px 16px #0009}.brv25-head span{font-size:13px;font-weight:800;letter-spacing:.08em}.brv25-head b{color:#ffd878}.brv25-head button{width:40px;height:40px;border:2px solid #d9b06d;border-radius:9px;background:#102942;color:#ffe6ae;font-size:26px}
.brv25-body{max-width:550px;margin:auto;padding:22px 17px}.brv25-body h2{font-size:24px;color:#f8d28b;margin:0 0 8px}.brv25-body p{color:#d6dce5;font-size:13px;line-height:1.7}.brv25-choices{display:grid;gap:12px;margin:23px 0}.brv25-choice{display:flex;align-items:center;gap:14px;width:100%;padding:15px 14px;text-align:left;border:2px solid #bc8b48;border-radius:13px;background:linear-gradient(110deg,#55331d,#312117 13%,#133551 20%,#0a2139 90%);color:#f8e8c8;box-shadow:0 5px 12px #0006}.brv25-choice-icon{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border:1px solid #edc780;border-radius:9px;background:linear-gradient(#6e4927,#3c2415);font-size:22px;font-weight:900;color:#f8d58d}.brv25-choice span:nth-child(2){display:grid;gap:5px;flex:1}.brv25-choice b{font-size:16px}.brv25-choice small{font-size:11px;color:#b7c8d5}.brv25-choice strong{font-size:24px;color:#eec37c}.brv25-note{display:block;color:#b4bdc9;font-size:12px;line-height:1.7}

/* v0.22.07 challenge modal refinements */
#brv25-challenge .brv25-body{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}#brv25-challenge .brv25-choice{min-height:78px}#brv22-legacy-panel:has(#brv22-legacy-frame) .brv22-legacy-head{flex-shrink:0;min-height:54px}#brv22-legacy-frame{overscroll-behavior:contain}

/* v0.22.10 native challenge display (legacy engine remains data source) */
#brv28-calc-frame{position:fixed!important;width:1px!important;height:1px!important;left:-10000px!important;top:-10000px!important;border:0!important;pointer-events:none!important;opacity:0!important}
#brv28-challenge-native{position:fixed;inset:0;z-index:3450;display:flex;flex-direction:column;background:radial-gradient(ellipse at top,#173d5b,#07192e 78%);color:#f6e5c3}
#brv28-challenge-native[hidden]{display:none!important}
#brv28-challenge-native .brv25-head{flex-shrink:0;padding-top:calc(12px + env(safe-area-inset-top,0px))}
#brv28-challenge-native .brv28-body{overflow:auto;flex:1;min-height:0;padding:16px 13px calc(30px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}
#brv28-challenge-native h2{font-size:21px;color:#ffdf9e;margin:5px 0 18px;text-align:center}
#brv28-status{text-align:center;color:#e9c991;margin:20px auto}
#brv28-content{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
#brv28-content>div,#brv28-content section,#brv28-content article,#brv28-content table{max-width:100%;box-sizing:border-box}
#brv28-content table{width:100%;border-collapse:collapse;font-size:12px}
#brv28-content th,#brv28-content td{border:1px solid #b98a4b80;padding:5px 3px}
#brv28-content button,#brv28-content a{color:#ffe1a0;border-color:#b68b4c}
#brv28-content img{max-width:100%;height:auto}

/* v0.22.11: native challenge cards, data-only adapter */
.brv211-race{border:2px solid #bd8c4c;border-radius:12px;overflow:hidden;margin:0 0 16px;background:linear-gradient(150deg,#163c57,#081d31);box-shadow:0 5px 14px #0006}
.brv211-race-head{display:flex;flex-direction:column;gap:3px;padding:12px 13px;background:repeating-linear-gradient(8deg,#50321e 0,#6a4427 6px,#3b2519 12px);border-bottom:2px solid #d7aa62}.brv211-race-head strong{font-size:16px;color:#ffe1a1}.brv211-race-head small{color:#f5d8ad}
.brv211-bet{display:flex;justify-content:space-between;align-items:center;padding:8px 15px;border-bottom:1px solid #d2a66733;font-size:15px}.brv211-bet b{font-variant-numeric:tabular-nums;color:#fff}.brv211-bet span{font-weight:700;color:#f4d29a}.brv211-bet.is-hit{background:#4d3a1b}
.brv211-result{text-align:center;padding:11px;background:#061728;color:#f5d79b;font-weight:800}.brv211-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:14px 0}.brv211-totals>div{display:grid;gap:4px;text-align:center;padding:12px 3px;border:1px solid #c69956;border-radius:9px;background:#142f45}.brv211-totals small{font-size:11px;color:#cbd3dc}.brv211-totals b{font-size:15px;color:#ffe0a3}.brv211-goal{text-align:center;color:#f6d48f;font-weight:800}

/* v0.22.18: native challenge race navigation */
.brv218-race-jump{margin-left:auto;flex-shrink:0;border:1px solid #d8ad61;border-radius:8px;background:linear-gradient(140deg,#5d351c,#2e1a11);color:#ffe3a1;font-weight:800;padding:7px 10px;min-height:34px;font-size:12px}
.brv218-race-jump:active{filter:brightness(1.25)}

/* v0.22.22 new Shigeki challenge */
#brv-shigeki-panel{position:fixed;inset:0;z-index:3400;display:flex;flex-direction:column;background:#061b30;color:#f8e4b7;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
#brv-shigeki-panel[hidden]{display:none!important}.brv-sh-head{flex:none;display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border-bottom:3px solid #bb8c43;background:repeating-linear-gradient(7deg,#5b3219 0px,#754824 8px,#47250f 18px,#633819 26px)}.brv-sh-head div{display:grid;gap:3px}.brv-sh-head small{font-size:10px;letter-spacing:1.5px}.brv-sh-head strong{font-size:19px}.brv-sh-head button{background:#122c47;border:1px solid #d4aa5d;border-radius:9px;color:#fff;font-size:24px;width:42px;height:42px}.brv-sh-main{overflow:auto;padding:15px 13px 38px;flex:1}.brv-sh-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.brv-sh-summary>div{padding:13px 5px;border:1px solid #b68a45;background:linear-gradient(#143959,#071b32);border-radius:10px;text-align:center}.brv-sh-summary small{display:block;color:#d1bb8f;font-size:10px}.brv-sh-summary b{font-size:14px;color:#fff}.brv-sh-note,.brv-sh-info{line-height:1.7;font-size:12px;color:#e0cfac}.brv-sh-action{width:100%;padding:15px;border-radius:10px;border:2px solid #f2c879;background:linear-gradient(#a56c2a,#64350d);color:#fff;font-weight:800}.brv-sh-action:disabled{opacity:.45}.brv-sh-card{background:#0e2c47;border:1px solid #ac8040;border-radius:12px;padding:12px;margin:13px 0}.brv-sh-card-head{display:flex;justify-content:space-between;align-items:center;gap:6px}.brv-sh-card-head button{background:#173d5d;color:#f9dca1;border:1px solid #8c744f;border-radius:7px;padding:8px;font-size:11px}.brv-sh-card p{font-size:12px;color:#d4c5a6}.brv-sh-ticket{display:flex;justify-content:space-between;padding:7px 4px;border-top:1px solid #ffffff20;font-weight:700}.brv-sh-ticket span:last-child{color:#f6d68e}.brv-sh-result{display:block;margin-top:12px;color:#f9ce67}.brv-sh-total{padding:18px;background:#493017;border:2px solid #d7a958;border-radius:12px;display:grid;grid-template-columns:1fr 1fr;gap:7px}.brv-sh-total strong:nth-child(2){text-align:right}.brv-sh-total small{grid-column:1/-1}.brv-sh-warning{color:#ffe09e;border:1px solid #b77e37;padding:10px;border-radius:8px}
#brv22-drawer>button#brv-shigeki-open{display:block;width:100%;padding:15px 14px;margin:9px 0;text-align:left;border:1.5px solid #d7ac61;border-radius:11px;background:linear-gradient(120deg,#18476e,#0c2846);color:#fff;font-weight:800;font-size:15px}

/* v0.22.41 — prediction storefront compact back control beside sign */
#prediction .prediction-hero{position:relative!important}
#prediction .brv22-pred-back{position:absolute!important;z-index:5!important;top:19px!important;left:12px!important;display:flex!important;align-items:center!important;justify-content:center!important;width:39px!important;height:39px!important;margin:0!important;padding:0!important;border:2px solid #c38b3c!important;border-radius:7px!important;background:linear-gradient(145deg,#173b60,#061c36)!important;color:#fff4d9!important;font-size:21px!important;font-weight:800!important;line-height:1!important;box-shadow:0 3px 0 #3e2611!important;cursor:pointer!important}
@media(max-width:350px){#prediction .brv22-pred-back{left:8px!important;width:35px!important;height:35px!important}}

/* v0.22.48: Shigeki speech bubble shortcut on home */
body:has(#home.active) .yoso-person:last-child{isolation:isolate}
.brv-shigeki-speech{position:absolute;z-index:5;right:0;top:-25px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:110px;max-width:135px;padding:6px 9px 8px;border:2px solid #e7b75f;border-radius:15px;background:linear-gradient(160deg,#fff8dd,#ffdfa0);color:#502300;box-shadow:0 3px 0 #8e5522,0 6px 12px #0009;font-weight:900;line-height:1.1;cursor:pointer;touch-action:manipulation;transform:rotate(2deg)}
.brv-shigeki-speech small{font-size:10px;color:#7e401b}
.brv-shigeki-speech strong{font-size:14px;white-space:nowrap;color:#a5221d}
.brv-shigeki-speech>span{position:static!important;bottom:auto!important;left:auto!important;right:auto!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;font-size:10px!important;color:#4c2811!important}
.brv-shigeki-speech:after{content:"";position:absolute;right:27px;bottom:-13px;width:17px;height:17px;background:#ffdfa0;border-right:2px solid #e7b75f;border-bottom:2px solid #e7b75f;transform:rotate(45deg);z-index:-1}
.brv-shigeki-speech:active{transform:rotate(2deg) scale(.96)}
@media(max-width:370px){.brv-shigeki-speech{min-width:95px;padding:5px 6px}.brv-shigeki-speech strong{font-size:12px}}

/* Seiji challenge: mirrored speech bubble on the left */
.brv-seiji-speech{left:0;right:auto;transform:rotate(-2deg)}
.brv-seiji-speech:after{left:27px;right:auto}
.brv-seiji-speech:active{transform:rotate(-2deg) scale(.96)}
#brv-seiji-panel{position:fixed;inset:0;z-index:3400;display:flex;flex-direction:column;background:#061b30;color:#f8e4b7;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
#brv-seiji-panel[hidden]{display:none!important}

/* v0.23.30 transparent robot portraits */
#prediction .pred-ojisan-stage,#prediction .pred-ojisan-stage.is-main,#prediction .pred-ojisan-stage.is-hole{background:transparent!important;background-image:none!important}
#prediction .pred-ojisan-figure img,#prediction .pred-ojisan-stage.is-hole .pred-ojisan-figure img{object-fit:contain!important;object-position:center bottom!important;transform:none!important}

/* v0.23.31 robot loading card */
#prediction .pred-character-loading{background:linear-gradient(145deg,#f9fcff,#d5e3ed 60%,#f5faff) padding-box,var(--brv-silver-frame) border-box!important;border:4px solid transparent!important;border-radius:13px!important;box-shadow:var(--brv-silver-shadow),0 4px 12px #071a2d55!important}
#prediction .pred-character-loading h2,#prediction .pred-character-loading .pred-loading-meta{color:#15334c!important;text-shadow:none!important}
#prediction .pred-character-visual{aspect-ratio:780/270!important;border-radius:8px!important}
#prediction .pred-robot-thinking-art{object-fit:fill!important;animation:brv-caption-pulse 3s ease-in-out infinite}
#prediction .pred-character-loading .pred-speech{background:#f4faff;border-color:#809eb6;color:#15334c}
#prediction .pred-character-loading .pred-speech small{color:#15334c}
#prediction .pred-character-loading .pred-speech:before{background:#f4faff;border-color:#809eb6}
@media(prefers-reduced-motion:reduce){#prediction .pred-robot-thinking-art{animation:none!important}}

/* v0.23.32 transparent thinking art and animated loading bars */
#prediction .pred-character-visual{background:transparent!important;background-image:none!important;aspect-ratio:1774/740!important}
#prediction .pred-robot-thinking-art{object-fit:contain!important;animation:none!important;opacity:1!important}
#prediction .pred-robot-loader{display:flex;justify-content:center;gap:4px;margin:10px auto 3px;height:11px}
#prediction .pred-robot-loader i{display:block;width:15px;height:9px;transform:skewX(-32deg);background:linear-gradient(135deg,#1684f5,#72c5ff);animation:brvRobotLoad 1.2s ease-in-out infinite;opacity:.35}
#prediction .pred-robot-loader i:nth-child(2){animation-delay:.16s}
#prediction .pred-robot-loader i:nth-child(3){animation-delay:.32s}
#prediction .pred-character-loading.is-ready .pred-robot-loader{visibility:hidden}
@keyframes brvRobotLoad{0%,100%{opacity:.3}35%{opacity:1}65%{opacity:.55}}
@media(prefers-reduced-motion:reduce){#prediction .pred-robot-loader i{animation:none;opacity:.8}}

#prediction .pred-dialogue{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:4px 0 12px;position:relative;z-index:15} #prediction .pred-talk{position:relative;background:#f8fcff;border:2px solid #8298aa;border-radius:12px;padding:7px 5px;text-align:center;color:#15334c;min-height:48px;box-shadow:0 2px 5px #10283b33} #prediction .pred-talk:after{content:"";position:absolute;bottom:-7px;left:50%;width:10px;height:10px;background:#f8fcff;border-right:2px solid #8298aa;border-bottom:2px solid #8298aa;transform:rotate(45deg)} #prediction .pred-talk small{display:block;font-weight:900;font-size:11px} #prediction .pred-talk.ace small{color:#b51932} #prediction .pred-talk.blast small{color:#075bb7} #prediction .pred-talk strong{display:block;font-size:12px;line-height:1.4} #prediction .is-ready .pred-dialogue{animation:brv-ready-talk .35s ease-out} @keyframes brv-ready-talk{from{transform:translateY(5px);opacity:.4}to{transform:translateY(0);opacity:1}} #prediction .pred-enter-view{display:block;width:100%;margin:12px 0 0;padding:13px 8px;font-size:18px;font-weight:900;color:white!important;border:3px solid transparent!important;border-radius:12px;background:linear-gradient(135deg,#163b55,#071d30 55%,#0879a8) padding-box,var(--brv-silver-frame) border-box!important;box-shadow:var(--brv-silver-shadow)} #prediction .is-ready .pred-robot-loader{display:none!important} #prediction .is-ready .pred-character-caption{color:#15334c!important;opacity:1!important}

#prediction .pred-exhibition-warning{margin:12px 0 4px;padding:12px;border:2px solid #d68a26;border-radius:12px;background:linear-gradient(135deg,#fff7e7,#ffe5bd);color:#783d0c;text-align:left;font-size:13px;line-height:1.65;box-shadow:0 2px 5px #0002}#prediction .pred-exhibition-warning strong,#prediction .pred-exhibition-warning span{display:block}#prediction .pred-exhibition-warning strong{font-size:15px;margin-bottom:3px}

/* v0.23.39 equal visible character size in both states */
#prediction .pred-character-idea .pred-cutout{inset:auto!important;bottom:0!important;width:46%!important;height:100%!important;object-fit:fill!important;animation:none!important;transform:none!important;filter:none!important}
#prediction .pred-character-idea .pred-seiji{left:1.5%!important}
#prediction .pred-character-idea .pred-shigeki{right:1.5%!important}

/* v0.23.40 immediate commentary */
html body #detail .nv-pr-wrap .brv-duo-person:nth-child(2){grid-template-columns:minmax(0,1fr) 58px!important}
html body #detail .nv-pr-wrap .brv-duo-person:nth-child(2) .brv-duo-portrait{grid-column:2;grid-row:1}
html body #detail .nv-pr-wrap .brv-duo-person:nth-child(2) .brv-duo-bubble{grid-column:1;grid-row:1}
html body #detail .nv-pr-wrap .brv-duo-person:nth-child(2) .brv-duo-bubble:before{left:auto!important;right:-7px!important;transform:rotate(135deg)!important}
html body #detail .nv-pr-wrap .brv-duo-portrait{background:linear-gradient(145deg,#dce9f2,#fff)!important}
html body #detail .nv-pr-wrap .brv-duo-portrait b{background:#a9182b!important;font-size:8px!important}
html body #detail .nv-pr-wrap .brv-duo-person:nth-child(2) .brv-duo-portrait b{background:#0756a4!important}
@media(max-width:370px){html body #detail .nv-pr-wrap .brv-duo-person:nth-child(2){grid-template-columns:minmax(0,1fr) 50px!important}}

.brv-code-comment .brv-duo-portrait b{background:#087b78!important;font-size:8px!important}.brv-code-comment .brv-duo-portrait img{object-position:center!important}

/* v0.23.48 CODE circular wipe */
html body #detail .nv-pr-wrap .brv-code-comment .brv-duo-portrait{background:transparent!important;border:2px solid #b4c8d5!important;box-shadow:0 2px 5px #132c4b30!important;border-radius:50%!important;overflow:hidden!important;display:block!important;box-sizing:border-box!important}
html body #detail .nv-pr-wrap .brv-code-comment .brv-duo-portrait img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;display:block!important}

/* v0.23.51 unified evaluation index */
#detail .eval-index > h3{margin-bottom:6px!important}
#detail .eval-index section.pre-eval{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
#detail .eval-index section.pre-eval > h3{display:none!important}
#detail .eval-index-prior{margin:0 0 6px;padding:0;border:0;background:none}
#detail .eval-index-prior > summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:7px 9px;margin-bottom:5px;border:1px solid #aabac6;border-radius:7px;background:linear-gradient(145deg,#fff,#d6e6f0);font-size:12px;font-weight:700;color:#17344b}
#detail .eval-index-prior > summary::-webkit-details-marker{display:none}
#detail .eval-index-prior > summary::after{content:'＋'}
#detail .eval-index-prior[open] > summary::after{content:'−'}

#detail .eval-pair{padding:5px 3px 7px;margin:6px 0;border:1px solid #aabac6;border-radius:9px;background:rgba(255,255,255,.35)}
#detail .eval-pair-label{font-size:10px;font-weight:700;color:#536d80;margin:2px 3px 3px}
#detail .eval-pair-label.live{color:#086b98;margin-top:5px}
#detail .eval-pair .pre-eval-grid{margin:0!important}
.session-new-scroll{overflow-x:auto}.session-new-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px;color:#142d42;background:linear-gradient(135deg,#f7fbff,#c9deeb)}.session-new-table th,.session-new-table td{border:1px solid #aebfcb;text-align:center;padding:5px 1px;vertical-align:middle}.session-new-table thead th{background:linear-gradient(#f7fbff,#b9d2e2);font-size:10px}.session-new-table th:first-child{width:24%}.session-new-table tbody th span{display:block;font-size:10px;overflow-wrap:anywhere}.session-new-badge{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:5px;box-shadow:inset 0 1px 3px #ffffff99,0 1px 3px #0003;font-size:13px}.session-new-run{display:flex;flex-direction:column;align-items:center;line-height:1.25;margin:3px 0 7px}.session-new-run small{font-size:10px}.session-new-note{font-size:10px;color:#36536a;margin:8px 0 0}.session-new-badge.lane-1{background:#fff;color:#111}.session-new-badge.lane-2{background:#18212a;color:#fff}.session-new-badge.lane-3{background:#e52b42;color:#fff}.session-new-badge.lane-4{background:#1689d4;color:#fff}.session-new-badge.lane-5{background:#f5cf35;color:#111}.session-new-badge.lane-6{background:#169d64;color:#fff}

/* Session table: match start exhibition lane/name columns */
html body #detail .session-new-table thead th{background:linear-gradient(155deg,#faffff,#b4cddd 30%,#f4fbff 49%,#91b3cb)!important;color:#102b43!important;text-shadow:none!important;}
html body #detail .session-new-table th.session-lane-head{width:8%!important;}
html body #detail .session-new-table th.session-name-head{width:24%!important;}
html body #detail .session-new-table td.session-name{background:linear-gradient(145deg,#fff,#e4eef6 55%,#f7fbff)!important;color:#172b43!important;font-size:10px;font-weight:750;overflow-wrap:anywhere;}
html body #detail .session-new-table td.session-lane{font-size:17px;font-weight:800;padding:0;box-shadow:inset 1px 1px 2px #ffffff80,inset -2px -2px 3px #0003;}
html body #detail .session-new-table td.session-lane.lane-1{background:linear-gradient(145deg,#fff,#bacbd8 38%,#fff 62%,#dbe6ee)!important;color:#101c29!important;}
html body #detail .session-new-table td.session-lane.lane-2{background:linear-gradient(145deg,#626c78,#111821 38%,#303b49 62%,#05090f)!important;color:#fff!important;}
html body #detail .session-new-table td.session-lane.lane-3{background:linear-gradient(145deg,#ff9298,#e52538 38%,#ff5361 62%,#a90e23)!important;color:#fff!important;}
html body #detail .session-new-table td.session-lane.lane-4{background:linear-gradient(145deg,#86d9ff,#087bce 38%,#32a8f4 62%,#064c91)!important;color:#fff!important;}
html body #detail .session-new-table td.session-lane.lane-5{background:linear-gradient(145deg,#fff6a2,#f5c400 38%,#ffe65b 62%,#d69b00)!important;color:#171c22!important;}
html body #detail .session-new-table td.session-lane.lane-6{background:linear-gradient(145deg,#8bf3b2,#15a955 38%,#45d67c 62%,#08773c)!important;color:#fff!important;}

/* Compact horizontal session results */
html body .session-new-table{min-width:510px!important;}
html body .session-new-table th.session-lane-head{width:24px!important;}
html body .session-new-table th.session-name-head{width:66px!important;}
html body .session-new-table td{padding:3px 1px!important;}
html body .session-day-runs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1px;min-height:54px;align-content:center;}
html body .session-new-table .session-new-run{display:flex!important;flex-direction:column;align-items:center;min-width:0;width:100%;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#142d42!important;font-size:10px;line-height:1.25;cursor:pointer;}
html body .session-new-run small{font-size:9px!important;}
html body .session-new-run span{color:#075da5;font-weight:800;text-decoration:underline;}
html body .session-new-table .session-new-badge{width:100%;max-width:25px;height:21px;border-radius:3px;border:1px solid #ffffff99;box-shadow:inset 0 1px 2px #fff9,0 1px 2px #0004;font-size:12px;}
html body .session-new-table .session-new-badge.lane-1{background:linear-gradient(145deg,#fff,#bacbd8 38%,#fff 62%,#dbe6ee)!important;}
html body .session-new-table .session-new-badge.lane-2{background:linear-gradient(145deg,#626c78,#111821 38%,#303b49 62%,#05090f)!important;}
html body .session-new-table .session-new-badge.lane-3{background:linear-gradient(145deg,#ff9298,#e52538 38%,#ff5361 62%,#a90e23)!important;}
html body .session-new-table .session-new-badge.lane-4{background:linear-gradient(145deg,#86d9ff,#087bce 38%,#32a8f4 62%,#064c91)!important;}
html body .session-new-table .session-new-badge.lane-5{background:linear-gradient(145deg,#fff6a2,#f5c400 38%,#ffe65b 62%,#d69b00)!important;}
html body .session-new-table .session-new-badge.lane-6{background:linear-gradient(145deg,#8bf3b2,#15a955 38%,#45d67c 62%,#08773c)!important;}
/* v0.23.55: fit all seven session days in the viewport */
html body #detail .session-new-scroll{width:100%;max-width:100%;overflow-x:hidden!important;}
html body #detail .session-new-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;}
html body #detail .session-new-table th.session-lane-head{width:5.5%!important;}
html body #detail .session-new-table th.session-name-head{width:19%!important;}
html body #detail .session-new-table th,html body #detail .session-new-table td{padding:3px 0!important;}
html body #detail .session-new-table thead th{font-size:9px!important;white-space:nowrap;}
html body #detail .session-new-table td.session-name{font-size:9px!important;line-height:1.2;}
html body #detail .session-new-table td.session-lane{font-size:13px!important;}
html body #detail .session-day-runs{gap:0!important;min-height:46px;}
html body #detail .session-new-table .session-new-run{min-width:0!important;font-size:9px!important;line-height:1.2;}
html body #detail .session-new-run small{font-size:8px!important;letter-spacing:-.45px;white-space:nowrap;font-variant-numeric:tabular-nums;}
html body #detail .session-new-table .session-new-badge{max-width:100%;height:17px;font-size:10px;box-sizing:border-box;}
.sc-panel{margin-top:12px}.sc-table{width:100%;table-layout:fixed;border-collapse:collapse;color:#102b43;font-size:10px}.sc-table th,.sc-table td{border:1px solid #aabac7;padding:7px 0;text-align:center;overflow-wrap:anywhere;background:linear-gradient(145deg,#fff,#dce9f3)}.sc-table th:first-child{width:21%}.sc-table thead th{font-size:9px}.sc-table .sc-group th{background:linear-gradient(#214c70,#0b233d);color:white;font-size:12px}.sc-table td.sc-best{background:linear-gradient(#ff8995,#c71934);color:white;font-weight:bold}.sc-table td.sc-second{background:linear-gradient(#fff4ae,#e7b42c);font-weight:bold}.sc-table thead .lane-2,.sc-table thead .lane-3,.sc-table thead .lane-4,.sc-table thead .lane-6{color:white}.sc-table thead .lane-2{background:linear-gradient(#65717e,#101820)}.sc-table thead .lane-3{background:linear-gradient(#ff8995,#c71934)}.sc-table thead .lane-4{background:linear-gradient(#83cfff,#0865b5)}.sc-table thead .lane-5{background:linear-gradient(#fff4ae,#e7b42c)}.sc-table thead .lane-6{background:linear-gradient(#82e6a5,#078542)}

/* v0.23.59: compact horizontal session comparison */
.sc-panel .sc-horizontal{margin:0 0 10px;width:100%;table-layout:fixed;font-size:clamp(8px,2.5vw,12px)}
.sc-panel .sc-horizontal .sc-name-col{width:26%}
.sc-panel .sc-horizontal th:first-child{width:auto}
.sc-panel .sc-horizontal th,.sc-panel .sc-horizontal td{padding:5px 1px;line-height:1.25;white-space:nowrap;overflow-wrap:normal}
.sc-panel .sc-horizontal thead th{font-size:clamp(7px,2.1vw,10px);white-space:normal}
.sc-panel .sc-horizontal .sc-group th{font-size:12px;padding:7px 0}
.sc-panel .sc-horizontal .sc-racer{font-size:clamp(8px,2.3vw,11px);color:#102b43;background:linear-gradient(145deg,#fff,#dce9f3)}
.sc-racer .session-new-badge{display:inline-flex;width:16px;height:18px;font-size:10px;vertical-align:middle;align-items:center;justify-content:center;margin-right:2px}
.sc-racer span{vertical-align:middle;white-space:normal}

/* v0.23.59: comparison identity columns match session results */
html body #detail .sc-horizontal .sc-lane-col{width:5.5%}
html body #detail .sc-horizontal .sc-name-col{width:19%}
html body #detail .sc-horizontal td.session-name{background:linear-gradient(145deg,#fff,#e4eef6 55%,#f7fbff)!important;color:#172b43!important;font-size:10px;font-weight:750;overflow-wrap:anywhere;}
html body #detail .sc-horizontal td.session-lane{font-size:17px;font-weight:800;padding:0;box-shadow:inset 1px 1px 2px #ffffff80,inset -2px -2px 3px #0003;}
html body #detail .sc-horizontal td.session-lane.lane-1{background:linear-gradient(145deg,#fff,#bacbd8 38%,#fff 62%,#dbe6ee)!important;color:#101c29!important;}
html body #detail .sc-horizontal td.session-lane.lane-2{background:linear-gradient(145deg,#626c78,#111821 38%,#303b49 62%,#05090f)!important;color:#fff!important;}
html body #detail .sc-horizontal td.session-lane.lane-3{background:linear-gradient(145deg,#ff9298,#e52538 38%,#ff5361 62%,#a90e23)!important;color:#fff!important;}
html body #detail .sc-horizontal td.session-lane.lane-4{background:linear-gradient(145deg,#86d9ff,#087bce 38%,#32a8f4 62%,#064c91)!important;color:#fff!important;}
html body #detail .sc-horizontal td.session-lane.lane-5{background:linear-gradient(145deg,#fff6a2,#f5c400 38%,#ffe65b 62%,#d69b00)!important;color:#171c22!important;}
html body #detail .sc-horizontal td.session-lane.lane-6{background:linear-gradient(145deg,#8bf3b2,#15a955 38%,#45d67c 62%,#08773c)!important;color:#fff!important;}
html body #detail .sc-horizontal td.session-name{font-size:9px!important;line-height:1.2;}
html body #detail .sc-horizontal td.session-lane{font-size:13px!important;}
html body #detail .sc-horizontal td.session-name{white-space:normal;line-height:1.2;padding:5px 0!important;}
html body #detail .sc-horizontal td.session-lane{font-size:13px!important;}

/* v0.23.59: integrated session result banner */
html body #detail .session-new-table thead tr.session-result-group th{width:auto!important;font-size:12px!important;padding:7px 0!important;text-align:center;background:linear-gradient(145deg,#36566b,#081b2b 55%,#007da9)!important;color:#fff!important;}

.sc-panel .sc-group th{position:relative}.sc-all-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);border:1px solid #c8d7e2;border-radius:5px;background:linear-gradient(145deg,#45647a,#081c30,#0876a1);color:white;font-size:10px;padding:3px 9px}.sc-all>summary{display:none}.sc-all>p{font-size:11px;margin:4px 0;color:#173650}.sc-all th button{font:inherit;color:inherit;background:none;border:0;padding:0;width:100%}.sc-all{margin-bottom:10px}

.sc-table td.sc-penalty{color:#c7192e!important;font-weight:700!important;}

.session-motor-panel .session-motor-table{width:100%;table-layout:fixed;font-size:clamp(8px,2.5vw,12px);border-collapse:separate;border-spacing:0;border:2px solid #aabac7;border-radius:9px;overflow:hidden}.session-motor-panel .session-motor-table th:first-child{width:20%}.session-motor-panel .session-motor-table th,.session-motor-panel .session-motor-table td{padding:6px 1px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}.session-motor-panel .session-motor-table tbody th{background:linear-gradient(145deg,#35566e,#102c45);color:white}.session-motor-panel .session-motor-table button{font-size:inherit;padding:3px 1px;min-width:0;width:100%;color:white;background:linear-gradient(145deg,#45647a,#081c30,#0876a1);border:1px solid #aabac7;border-radius:4px}.session-motor-panel .session-motor-table thead th{font-size:clamp(8px,2.2vw,11px)}

html body #equipmentProfileOverlay .sc-horizontal .sc-lane-col{width:5.5%}
html body #equipmentProfileOverlay .sc-horizontal .sc-name-col{width:19%}
html body #equipmentProfileOverlay .sc-horizontal td.session-name{background:linear-gradient(145deg,#fff,#e4eef6 55%,#f7fbff)!important;color:#172b43!important;font-size:10px;font-weight:750;overflow-wrap:anywhere;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane{font-size:17px;font-weight:800;padding:0;box-shadow:inset 1px 1px 2px #ffffff80,inset -2px -2px 3px #0003;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane.lane-1{background:linear-gradient(145deg,#fff,#bacbd8 38%,#fff 62%,#dbe6ee)!important;color:#101c29!important;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane.lane-2{background:linear-gradient(145deg,#626c78,#111821 38%,#303b49 62%,#05090f)!important;color:#fff!important;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane.lane-3{background:linear-gradient(145deg,#ff9298,#e52538 38%,#ff5361 62%,#a90e23)!important;color:#fff!important;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane.lane-4{background:linear-gradient(145deg,#86d9ff,#087bce 38%,#32a8f4 62%,#064c91)!important;color:#fff!important;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane.lane-5{background:linear-gradient(145deg,#fff6a2,#f5c400 38%,#ffe65b 62%,#d69b00)!important;color:#171c22!important;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane.lane-6{background:linear-gradient(145deg,#8bf3b2,#15a955 38%,#45d67c 62%,#08773c)!important;color:#fff!important;}
html body #equipmentProfileOverlay .sc-horizontal td.session-name{font-size:9px!important;line-height:1.2;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane{font-size:13px!important;}
html body #equipmentProfileOverlay .sc-horizontal td.session-name{white-space:normal;line-height:1.2;padding:5px 0!important;}
html body #equipmentProfileOverlay .sc-horizontal td.session-lane{font-size:13px!important;}
#equipmentProfileOverlay .sc-panel{min-width:0;color:#102b43} #equipmentProfileOverlay .sc-horizontal{border-radius:8px;overflow:hidden} #equipmentProfileOverlay .sc-horizontal thead th{background:linear-gradient(145deg,#284d64,#091d30,#0876a1);color:white} #equipmentProfileOverlay .sc-panel h3{background:linear-gradient(#214c70,#0b233d);color:white;padding:12px;border-radius:8px} #equipmentProfileOverlay .sc-horizontal button{font-size:10px;padding:3px} #equipmentProfileOverlay .session-new-note{font-size:11px;color:#45647a}

/* v0.24.26 prediction status */
#prediction .pred-character-loading .pred-character-caption{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px 12px!important;border:2px solid #aab9c5;border-radius:10px;background:linear-gradient(120deg,#102638,#075778);color:#fff!important;font-size:clamp(20px,5vw,30px)!important;font-weight:900;letter-spacing:.06em;text-shadow:0 2px 3px #071a2a;box-shadow:inset 0 1px 2px #ffffff66,0 3px 7px #142c4640;animation:none!important}
#prediction .pred-character-loading.is-ready .pred-character-caption{color:#fff!important;background:linear-gradient(120deg,#132b40,#08729b,#132b40);border-color:#d5dce2;box-shadow:inset 0 0 0 1px #fff8,0 3px 8px #142c4666}
#prediction .pred-character-loading.is-ready .pred-character-caption:before{content:'✓';display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid #e5edf4;border-radius:50%;color:#fff;font-size:20px;background:#13688b}
#prediction .pred-character-loading.is-reading .pred-character-thinking{opacity:0!important}
#prediction .pred-character-loading.is-reading .pred-character-idea{opacity:1!important}

#prediction .pred-character-loading.is-ready button.pred-ready-action{width:100%;cursor:pointer;appearance:none;-webkit-appearance:none;min-height:48px;position:relative;padding-right:30px!important;}
#prediction .pred-character-loading.is-ready button.pred-ready-action:after{content:'›';position:absolute;right:12px;font-size:26px;}
#prediction .pred-character-loading.is-ready button.pred-ready-action:active{filter:brightness(1.18);transform:translateY(1px);}
#prediction .pred-character-loading.is-ready button.pred-ready-action:focus-visible{outline:2px solid #168bd0;outline-offset:3px;}

/* v0.24.59: plain result commentary, no speech outline */
#prediction .pred-ojisan-reaction-bubble{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
#prediction .pred-ojisan-reaction-bubble::before,#prediction .pred-ojisan-reaction-bubble::after,#prediction .pred-reaction-outline{display:none!important;content:none!important}

/* v0.24.62: independently expandable prediction commentary */
#prediction .pred-reason p.brv-comment-preview:not(.brv-comment-expanded){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden;}
#prediction .pred-reason .brv-comment-toggle{display:block;width:100%;margin:9px 0 0;padding:7px 2px;border:1px solid #aebbc5;border-radius:7px;background:linear-gradient(#fff,#dce5ec);color:#16476b;font-size:12px;font-weight:800;line-height:1.4;text-align:center;cursor:pointer;}
#prediction .pred-reason .brv-comment-toggle[hidden]{display:none!important;}

/* v0.24.64: fixed dialogue geometry across loading phases */
#prediction .pred-character-loading .pred-dialogue{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;}
#prediction .pred-character-loading .pred-talk{box-sizing:border-box!important;height:66px!important;min-height:66px!important;max-height:66px!important;display:flex!important;flex-direction:column;justify-content:center;min-width:0;}
#prediction .pred-character-loading .pred-talk small{flex:none;line-height:14px!important;}
#prediction .pred-character-loading .pred-talk strong{font-size:12px!important;line-height:16px!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:32px;overflow-wrap:anywhere;}
/* v0.24.72 search metallic layout */
html body #searchracers .brv-util-heading,html body #searchracers .brv-search-tabs button,html body #searchracers .brv-search-form button,html body #searchracers .brv-search-hit button{border:3px solid transparent!important;background:var(--v63-dark,linear-gradient(145deg,#47677e,#071b2c 40%,#126a9d)) padding-box,var(--brv-silver-frame) border-box!important;color:#fff!important;border-radius:10px!important;box-shadow:0 3px 6px #0005!important}
html body #searchracers .brv-util-heading h2{background:none!important;border:0!important;box-shadow:none!important;color:white!important;padding:0!important}
html body #searchracers .brv-search-tabs button.active{background:linear-gradient(145deg,#00a9df,#00569a,#073050) padding-box,var(--brv-silver-frame) border-box!important;color:white!important}
html body #searchracers .brv-search-form input,html body #searchracers #brvSearchResults:not(:empty),html body #searchracers .brv-search-hit{border:3px solid transparent!important;background:linear-gradient(145deg,#faffff,#c5d8e5 35%,#fff 60%,#b8cedf) padding-box,var(--brv-silver-frame) border-box!important;color:#102a46!important;border-radius:12px!important}
html body #searchracers .brv-search-form input::placeholder{color:#526b80!important}
html body #searchracers .brv-util-note{background:#102c45e8!important;color:#fff!important;padding:7px 10px!important;border-radius:8px!important}
html body #searchracers .brv-search-hit{display:block!important;padding:10px!important;box-shadow:0 2px 5px #0004!important}
#searchracers .brv-search-identity{display:flex;align-items:center;justify-content:space-between;gap:8px}
#searchracers .brv-search-races{display:grid;gap:5px;margin-top:8px}
html body #searchracers .brv-search-races button{display:flex;justify-content:space-between;align-items:center;gap:5px;width:100%;padding:8px!important;font-size:12px!important}

.player-identity strong .female-heart{display:inline!important;color:#ef4085!important;font-size:.85em!important;margin-left:5px;vertical-align:baseline;}
