.livery-shop{max-width:760px;margin:0 auto;padding:16px;background:#12382bee;border:1px solid #b8a16988;border-radius:18px;color:#f3ead7}.livery-shop h2{margin:0;font-family:Georgia,serif;color:#f3d596}.livery-shop h3{margin:16px 0 8px;font-size:15px;color:#e7d6ae}.livery-shop p{margin:4px 0;color:#d7ded5;font-size:13px}.livery-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.livery-balance{display:flex;align-items:center;gap:6px;font-weight:700;white-space:nowrap;padding:6px 10px;border:1px solid #b8a16966;border-radius:10px}.livery-balance img{width:18px;height:18px}.livery-stage{display:flex;align-items:center;gap:16px;margin-top:12px;padding:10px;border-radius:14px;background:#0b231c}.livery-preview{width:150px;height:auto;flex:none}.livery-stage label{display:grid;gap:4px;font-size:13px}.livery-stage select{min-height:44px;border-radius:10px;background:#183d31;color:#f3ead7;border:1px solid #b8a16988;padding:0 10px;font-size:16px}.livery-swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}.livery-swatches button{display:grid;justify-items:center;gap:3px;min-height:84px;padding:8px 4px;border-radius:12px;border:1px solid #b8a16955;background:#183d31;color:#f3ead7}.livery-swatches button[aria-pressed=true]{border-color:#f3d596;box-shadow:0 0 0 2px #f3d59688;background:#21503f}.livery-swatches .swatch{width:30px;height:30px;border-radius:50%;background:var(--c,#6d7d72);border:2px solid #ffffff55}.livery-swatches .swatch-default .swatch{background:repeating-linear-gradient(45deg,#6d7d72 0 4px,#3d4c43 4px 8px)}.livery-swatches small{font-size:11px;line-height:1.2;text-align:center}.livery-swatches b{display:flex;align-items:center;gap:3px;font-size:11px;color:#9fe3ff}.livery-note{margin-top:14px!important;font-size:12px!important;color:#b9c2b6!important}@media(max-width:600px){.livery-shop{padding:12px;border-radius:14px}.livery-stage{flex-direction:column;align-items:stretch}.livery-preview{width:100%;max-width:220px;align-self:center}.livery-swatches{grid-template-columns:repeat(3,1fr)}}.courtyard-flagpole{position:absolute;left:calc(80vw - max(13.7vw,24.343dvh));top:max(14dvh,7.879vw);width:max(8.111vw,14.4118dvh);height:max(37dvh,20.823vw);pointer-events:none;z-index:2}#app .courtyard-art:has(>.courtyard-flagpole)>img{object-position:80% top}.courtyard-flagpole>svg{display:block;width:100%;height:100%;overflow:visible}.flag-cloth{transform-box:fill-box;transform-origin:left center;animation:none}@keyframes flag-breeze{0%{transform:skewY(-2deg) scaleX(.96)}to{transform:skewY(3deg) scaleX(1)}}.flagpole-preview{height:180px;position:relative;float:left;width:110px;margin-right:18px}.flagpole-preview .courtyard-flagpole{inset:0;width:100%;height:100%}.flagpole-shop{overflow:auto;max-height:calc(100dvh - 170px)}.flagpole-shop p{color:#e3e8dd!important}.flagpole-shop .primary{background:#e7c78c;color:#142c23;border:1px solid #f4dab0}.flagpole-shop button{display:block;min-height:48px;margin-top:12px}@media(prefers-reduced-motion:reduce){.flag-cloth{animation:none}}.courtyard-fence-foreground{position:absolute;pointer-events:none;z-index:3;left:calc(80vw - max(80vw,142.144dvh));top:0;width:max(100vw,177.68dvh);height:max(100dvh,56.28vw);clip-path:polygon(65% 40.7%,67.8% 41.4%,68.2% 42%,70% 44%,70% 54%,64% 54%)}.courtyard-fence-foreground>img{display:block;width:100%;height:100%}.flagpole-shop .flagpole-country-hint a{color:#e7c78c;font-weight:600;text-decoration:underline;text-underline-offset:3px}.courtyard-flagpole[data-remembrance=true]{pointer-events:auto;cursor:pointer}.courtyard-flagpole[data-remembrance=true]:focus-visible{outline:2px solid #e7c78c;outline-offset:4px;border-radius:8px}.remembrance-dialog{max-width:min(92vw,460px);border:1px solid #c7b886;border-radius:18px;background:#102d25;color:#f3ead7;padding:28px 24px;text-align:center}.remembrance-dialog::backdrop{background:#050e0bb8}.remembrance-dialog .eyebrow{letter-spacing:.18em;font-size:12px;color:#e7c78c;margin:0 0 14px}.remembrance-dialog blockquote{margin:0;font-family:Georgia,serif;font-size:21px;line-height:1.45}.remembrance-dialog blockquote p{margin:0}.remembrance-dialog .remembrance-by{margin:14px 0 20px;color:#d9cfb8}.remembrance-dialog .primary{background:#e7c78c;color:#142c23;border:1px solid #f4dab0;min-height:44px;padding:0 28px}#remembrance.remembrance-dialog blockquote p{color:#f6eedb!important}#remembrance.remembrance-dialog .remembrance-by{color:#e7c78c!important}.daily-route{position:relative;margin:12px auto;padding:12px;max-width:720px;background:#183b30;color:#f2e6ca;border:1px solid #aa946a;border-radius:12px;box-sizing:border-box}.daily-route summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}.daily-route p{line-height:1.5;margin:10px 0}.daily-route nav{display:flex;flex-wrap:wrap;gap:8px}.daily-route button,.daily-route a{min-height:44px;padding:10px;box-sizing:border-box}.daily-route small{display:block;margin-top:10px}#settings-dialog.settings-game{width:min(520px,calc(100vw - 24px));height:min(600px,calc(100dvh - 24px));max-height:none;box-sizing:border-box;padding:20px;overflow:visible;border:1px solid #b59d68;background:linear-gradient(145deg,#244936,#103228);color:#f4e3b9}#settings-dialog.settings-game[open]{display:flex;flex-direction:column;gap:12px}#settings-dialog.settings-game h2{margin:0;font:28px Georgia}#settings-dialog .settings-game-tabs{display:flex;gap:6px}#settings-dialog .settings-game-tabs button{flex:1;min-height:44px;margin:0;padding:6px;font-size:12px;background:#214734;color:#f2dfb6;border:1px solid #8b805a;border-radius:8px}#settings-dialog .settings-game-tabs button[aria-pressed=true]{background:#dcc18c;color:#163226}#settings-dialog .settings-game-page{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:12px}#settings-dialog .settings-game-page[hidden]{display:none!important}#settings-dialog .settings-game-page>p{margin:0}#settings-dialog .settings-game-page>button{margin:0;min-height:44px}#settings-dialog #close-settings{margin:0;min-height:44px;flex:none}#settings-dialog .audio-settings{margin:0;padding:0;border:0}#settings-dialog #language-control{margin:0;position:static;box-sizing:border-box;width:100%}#settings-dialog .account-profile-entry a{margin:0}@media(orientation:landscape)and (max-height:600px){#settings-dialog.settings-game{width:min(650px,calc(100vw - 20px));padding:12px;gap:6px;height:calc(100dvh - 16px)}#settings-dialog.settings-game h2{font-size:21px}#settings-dialog .settings-game-tabs button,#settings-dialog #close-settings{min-height:32px}#settings-dialog .settings-game-page{display:grid;grid-template-columns:1fr 1fr;align-content:center;align-items:center;gap:8px}#settings-dialog .settings-game-page>button{min-height:34px;font-size:12px;padding:6px}#settings-dialog .settings-game-page>p{font-size:11px}#settings-dialog .account-profile-entry a{padding:10px;font-size:13px;min-height:34px}#settings-dialog .audio-settings label{font-size:11px;margin:3px 0}#settings-dialog .audio-settings button{min-height:32px;padding:5px;margin:0}#settings-dialog .audio-settings input{height:24px}}#settings-dialog .settings-game-tabs button[aria-pressed=false]{background:#214734!important;color:#f2dfb6!important}#settings-dialog .settings-game-tabs button[aria-pressed=true]{background:#dcc18c!important;color:#163226!important}#game-loading{position:fixed;inset:0;z-index:100000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:max(20px,env(safe-area-inset-top)) 24px;background:radial-gradient(ellipse at 50% 40%,#295341,#091e1a 75%);color:#f6e3b2;text-align:center;overflow:auto}#game-loading h1{font:700 clamp(24px,5vw,38px) Georgia,serif;margin:0}#game-loading p{margin:0;color:#e4e9df}#game-loading small{letter-spacing:.25em}#game-loading progress{width:min(320px,80vw);height:8px;accent-color:#dab566}#game-loading .loading-count{font-size:13px;font-variant-numeric:tabular-nums}#game-loading button{min-height:44px;background:transparent;color:#f6e3b2;border:1px solid #9f8c5e;border-radius:12px;padding:8px 18px}#game-loading button[hidden]{display:none}.loading-emblem{font-size:72px;width:120px;height:120px;display:grid;place-items:center;border:2px solid #c8a866;border-radius:50%;box-shadow:0 0 45px #d4ac4530;animation:loading-breathe 1.8s ease-in-out infinite}@keyframes loading-breathe{50%{transform:translateY(-5px);box-shadow:0 0 60px #d4ac4560}}@media(max-height:450px){#game-loading{gap:8px}.loading-emblem{width:64px;height:64px;font-size:44px}#game-loading h1{font-size:24px}}@media(prefers-reduced-motion:reduce){.loading-emblem{animation:none}}#scene-transition{position:fixed;inset:0;z-index:100001;background:#102c24;color:#f4e7c6;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;padding:clamp(16px,5vw,70px);gap:clamp(16px,4vw,60px);overflow:auto}#scene-transition>img{width:100%;max-height:75dvh;object-fit:contain;border-radius:16px;box-shadow:0 20px 60px #0006}#scene-transition .transition-copy{display:grid;gap:18px;max-width:620px}#scene-transition h2{font:clamp(24px,3vw,40px) Georgia;margin:0}#scene-transition p{font-size:clamp(17px,2vw,24px);line-height:1.5;margin:0}#scene-transition small{color:#d0c4a6;line-height:1.4}#scene-transition progress{width:100%;height:12px;accent-color:#d8bb74}#scene-transition a{color:#dfc483}#scene-transition button{min-height:44px;padding:10px;border:1px solid #c4ab72;background:#214b3b;color:#fff1d1;border-radius:8px}@media(orientation:portrait){#scene-transition{grid-template-columns:1fr;align-content:center;gap:20px}#scene-transition>img{max-height:34dvh}#scene-transition .transition-copy{gap:12px}}#scene-transition p{color:#f1ead8}#scene-transition h2{color:#f7e5b6}#app .stable-content[data-tab-view=stable] .stall-name{z-index:4;width:min(230px,36vw);max-height:calc(100dvh - 235px);overflow:auto;overscroll-behavior:contain;padding:4px;box-sizing:border-box;scrollbar-width:thin}#app .stall-name .horse-context-actions{display:grid;grid-template-columns:minmax(0,1fr);max-width:100%;gap:8px}#app .stall-name .stable-rider{position:static;width:100%;margin-top:8px}#app .stall-name :is(.care-entry,.jockey-choice,.horse-race-entry>button){width:100%;min-height:44px;white-space:normal;box-sizing:border-box}#app .stall-name .care-entry{background:#eed19a;color:#172d23;border:2px solid #fff0c7;font-weight:750;box-shadow:0 3px 10px #0007}#app .stall-name .horse-race-entry>button{background:#193d30;color:#fff0cb;border:1px solid #bcaa78}#app .stall-name .care-entry:focus-visible{outline:3px solid white;outline-offset:2px}#app .stall-name h1{overflow-wrap:anywhere}#app .care-room{isolation:isolate;overflow:hidden;gap:6px}#app .care-room .room-backdrop{pointer-events:none;z-index:0}#app .care-room>.care-route-actions{position:relative;flex:none;z-index:4;width:100%;box-sizing:border-box;margin:0;gap:8px}#app .care-room>h1{position:relative!important;inset:auto!important;margin:0!important;flex:none;font-size:clamp(18px,3vw,30px);z-index:3;max-width:100%;overflow-wrap:anywhere}#app .care-room .care-layout{position:relative!important;inset:auto!important;transform:none!important;margin:0 0 0 auto!important;width:min(440px,48%)!important;flex:1;min-height:0;overflow:auto!important;z-index:3;overscroll-behavior:contain;scrollbar-width:thin}#app .care-room .care-details{position:static!important;inset:auto!important;width:100%!important;max-height:none!important;margin:0!important;box-sizing:border-box}#app .care-room .care-overview section{position:static!important;inset:auto!important;width:100%!important;max-height:none!important;overflow:visible!important;margin:0 0 8px}#app .care-room .care-subnav{position:relative!important;inset:auto!important;transform:none!important;width:min(440px,48%)!important;max-width:none!important;max-height:28dvh;overflow:auto;margin:0 0 0 auto!important;flex:none;z-index:4;box-sizing:border-box;overscroll-behavior:contain}#app .care-room .room-nav{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important;flex:none;z-index:4;overflow-x:auto;box-sizing:border-box}#app .care-room :is(button,summary){min-height:44px!important;touch-action:manipulation}#app .care-room .room-nav button{flex:1 0 64px!important;width:auto!important;white-space:normal}@media(orientation:portrait){#app .stable-content[data-tab-view=stable] .stall-name{width:min(230px,55vw);max-height:calc(100dvh - 390px);min-height:100px}#app .care-room .care-layout,#app .care-room .care-subnav{width:100%!important}#app .care-room .care-layout{margin-top:min(15dvh,100px)!important}#app .care-room>.care-route-actions .horse-race-entry small{display:none}}@media(orientation:landscape)and (max-height:600px){#app .stable-content[data-tab-view=stable] .stall-name{top:58px!important;width:min(190px,32vw);max-height:calc(100dvh - 150px)}#app .stall-name h1{font-size:20px;margin:2px 0}#app .stall-name>span,#app .stall-name .horse-race-entry small{display:none}#app .care-room>.care-route-actions .horse-race-entry small{display:none}#app .care-room>h1{display:none}#app .care-room .care-details{padding:8px}}#app .care-room .care-route-actions>.room-home{position:static!important;inset:auto!important;transform:none!important;flex:none;width:auto;max-width:45%;min-height:44px;box-sizing:border-box}#app[data-screen=room] .care-room .room-nav,#app[data-screen=room] .care-room.has-action-strip.integrated-feeding .room-nav{position:fixed!important;inset:auto 16px 12px 120px!important;width:auto!important;max-width:none!important;height:64px!important;transform:none!important;z-index:12;overflow-x:auto!important}#app[data-screen=room] .care-room>.care-route-actions{position:fixed;left:16px;right:16px;top:80px;width:auto;z-index:10}#app[data-screen=room] .care-room>.care-route-actions .horse-race-entry small{display:none}#app[data-screen=room] .care-room>h1{position:fixed!important;left:18px!important;top:144px!important;max-width:240px}#app[data-screen=room] .care-room .care-layout{position:fixed!important;inset:170px 16px 96px auto!important;width:min(340px,30vw)!important;overflow-y:auto!important;max-height:none!important}#app[data-screen=room] .care-room .care-subnav{position:fixed!important;inset:170px 16px auto auto!important;width:min(340px,30vw)!important;max-height:calc(100dvh - 270px)!important;overflow:auto!important}#app[data-screen=room] .care-room.has-action-strip.integrated-feeding .care-details{position:static!important;inset:auto!important;width:100%!important;max-height:none!important}#app[data-screen=room] .care-room.has-action-strip.integrated-feeding .care-layout{display:block!important}#app[data-screen=room] .care-room.has-action-strip.integrated-feeding .feeding-panel>.care-subnav{position:static!important;inset:auto!important;width:100%!important;max-height:none!important}@media(max-width:600px)and (orientation:portrait){#app[data-screen=room] .care-room>.care-route-actions{top:24px;left:12px;right:12px}#app[data-screen=room] .care-room>h1{top:88px!important;left:14px!important;font-size:22px}#app[data-screen=room] .care-room .room-backdrop>.scene-horse{top:95px!important;height:230px!important;min-height:0!important}#app[data-screen=room] .care-room .care-layout,#app[data-screen=room] .care-room .care-subnav{inset:350px 12px 94px!important;width:auto!important;max-height:none!important;margin:0!important}#app[data-screen=room] .care-room .room-nav,#app[data-screen=room] .care-room.has-action-strip.integrated-feeding .room-nav{left:12px!important;right:12px!important;bottom:8px!important;width:auto!important;height:66px!important}#app[data-screen=room] .care-room>.stable-view-toggle{top:290px!important;bottom:auto!important;left:12px!important}#app .stable-content[data-tab-view=stable] .stall-name{width:auto;max-height:none;overflow:visible}#app .stable-content[data-tab-view=stable] .stall-name .horse-context-actions{position:fixed;left:12px;right:12px;bottom:266px;display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:none}#app .stall-name .horse-race-entry small{display:none}#app .stable-content[data-tab-view=stable] .stall-name .stable-rider{position:fixed;left:12px;bottom:206px;top:auto!important;width:170px;margin:0}#app .stable-content[data-tab-view=stable] .stall-info{position:fixed!important;inset:auto 12px 158px auto!important;width:180px!important;max-height:96px!important;overflow:auto!important;display:block!important}#app .stable-content[data-tab-view=stable] .stall-visual>.scene-horse{top:180px!important;height:clamp(130px,calc(100dvh - 500px),220px)!important;min-height:0!important}#app .stable-scene>.stable-view-toggle{inset:164px 12px auto auto!important}}@media(orientation:landscape)and (max-height:600px){#app[data-screen=room] .care-room>.care-route-actions{top:55px}#app[data-screen=room] .care-room .care-layout,#app[data-screen=room] .care-room .care-subnav{top:110px!important;bottom:86px!important;max-height:calc(100dvh - 196px)!important;width:30vw!important}}#app .care-room .care-progress{display:block!important;width:100%;box-sizing:border-box;padding:8px 0;margin:4px 0;color:#fff0c9}#app .care-room .care-progress-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}#app .care-room .care-progress-heading b{white-space:nowrap;font-variant-numeric:tabular-nums}#app .care-room .care-progress progress{display:block;width:100%;height:12px;accent-color:#e6bf72;transition:none}#app .care-room .care-progress[data-complete=true] progress{accent-color:#9ac18b}#app[data-screen=room] main>.care-route-actions{position:fixed;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;z-index:40;display:flex;justify-content:space-between;gap:12px;pointer-events:none}#app[data-screen=room] main>.care-route-actions button{pointer-events:auto;min-height:44px;padding:8px 16px;border:1px solid #cdb57c;border-radius:10px;background:#183b2f;color:#fff0c7}#app[data-screen=room] main>.care-route-actions~.quest-screen{top:76px!important}@media(max-width:600px)and (orientation:portrait),(orientation:landscape)and (max-height:600px){#app[data-screen=room] .care-room.integrated-care .care-subnav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto minmax(44px,1fr) minmax(44px,1fr) 44px;gap:4px;align-content:stretch;overflow:visible!important;max-height:none!important}#app .care-room.integrated-care .care-subnav>button{height:auto!important;min-height:44px!important;font-size:11px;line-height:1.15;overflow:visible;padding:3px}#app .care-room.integrated-care .care-subnav>button img{width:20px;height:20px;min-width:20px;min-height:20px}#app .care-room.integrated-care .care-subnav>.section-help{grid-column:1/-1;font-size:18px}#app .care-room.integrated-care .care-morale-summary{position:static;padding:2px}#app .care-room.integrated-care .care-progress{padding:2px 0;margin:2px 0}#app .care-room.integrated-care .care-progress-heading{font-size:11px}#app .care-room.integrated-care .room-nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));overflow:visible!important;gap:0;padding:4px!important}#app .care-room.integrated-care .room-nav button{min-width:0!important;padding:3px!important;font-size:10px!important}}@media(max-width:600px)and (orientation:portrait){#app[data-screen=room] .care-room.integrated-care .care-subnav{top:clamp(300px,calc(100dvh - 370px),350px)!important;bottom:86px!important}}@media(orientation:landscape)and (max-height:600px){#app[data-screen=room] .care-room.integrated-care .care-subnav{top:66px!important;bottom:80px!important;width:320px!important;grid-template-rows:auto minmax(44px,1fr) minmax(44px,1fr) 32px}#app .care-room.integrated-care .care-subnav>.section-help{min-height:32px!important}}@media(max-width:600px)and (orientation:portrait){#app .care-room.integrated-care>.stable-view-toggle{top:clamp(245px,calc(100dvh - 420px),295px)!important;bottom:auto!important}}@media(orientation:landscape)and (max-height:600px){#app[data-screen=room] .care-room:not(.training-room)>.care-route-actions{top:max(8px,env(safe-area-inset-top))}}.courtyard-portrait-backdrop,.courtyard-portrait-title,.courtyard-portrait-label{display:none}@media(orientation:portrait){#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-hub{background:#10251f}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-portrait-backdrop{display:block;position:absolute;inset:0;pointer-events:none;background:#10251f}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-portrait-backdrop img{width:100%;height:100%;object-fit:cover;object-position:70% center;filter:blur(12px);opacity:.38}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-portrait-backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(#0b211c80,#0b211c22 32%,#0b211c55 60%,#0b211cf2)}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-art{--portrait-width: min( calc(100vw - 24px) , 640px);left:calc((100vw - var(--portrait-width)) / 2);top:max(100px,calc((100dvh - 146px - var(--portrait-width) * 941 / 1222) / 2));width:var(--portrait-width);height:calc(var(--portrait-width) * 941 / 1222);aspect-ratio:1222/941;isolation:isolate}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-art>img{object-fit:cover;object-position:right top;border-radius:18px;outline:1px solid #d0b77c88;box-shadow:0 20px 55px #06120dcc}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-portrait-title{display:block;position:absolute;left:0;right:0;bottom:calc(100% + 22px);margin:0;color:#f4d798;font:30px Georgia,serif;letter-spacing:.06em;text-align:center;text-shadow:0 2px 8px #000}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-portrait-label{display:grid;place-items:center;position:absolute;z-index:4;pointer-events:none;color:#f8d58f;font-family:Georgia,serif;font-size:clamp(10px,2.8vw,18px);line-height:1;text-shadow:0 1px 2px #160b00}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-portrait-stable{left:4.91%;top:23.4%;width:20.45%;height:5%}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-portrait-market{left:78.78%;top:33.2%;width:19.15%;height:6.8%}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-flagpole{left:53.89%;top:14%;width:11.1%;height:37%}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-fence-foreground{left:-36.825%;top:0;width:136.825%;height:100%}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-sign{position:fixed;z-index:5;top:auto;bottom:max(90px,calc(env(safe-area-inset-bottom) + 24px));width:min(160px,calc((100vw - 48px)/2));height:56px;font-size:22px;box-shadow:0 7px 20px #06120d88!important}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-stable{left:calc(50% - min(172px,calc(50vw - 12px)))}#app[data-screen=stable][data-stable-tab=courtyard] .courtyard-market{left:calc(50% + 12px)}}.courtyard-hub{position:relative;display:grid;place-items:center;min-height:calc(100dvh - 96px);background:#201e17;overflow:hidden}.courtyard-art{position:relative;width:min(100%,calc((100dvh - 96px)*1.7768));aspect-ratio:1672/941;flex:none}.courtyard-art>img{display:block;width:100%;height:100%;object-fit:contain}.courtyard-sign{position:absolute;min-height:44px;background:transparent!important;border:0!important;box-shadow:none!important;color:#f8d58f;font-family:Georgia,serif;line-height:1.05;display:grid;place-items:center;padding:0 5px;cursor:pointer;text-shadow:0 2px 3px #160b00;touch-action:manipulation}.courtyard-stable{left:30.5%;top:23.4%;width:15%;height:5%;font-size:clamp(12px,2vw,29px)}.courtyard-market{left:84.5%;top:33.2%;width:14%;height:6.8%;font-size:clamp(12px,1.8vw,27px)}.courtyard-sign:hover{color:#fff5d3;filter:brightness(1.2)}.courtyard-sign:focus-visible{outline:3px solid #fff0b6!important;outline-offset:3px;border-radius:4px}@media(orientation:portrait){.courtyard-hub{align-content:center;gap:16px}.courtyard-art{width:100%}}@media(orientation:landscape)and (max-height:450px){.courtyard-hub{min-height:calc(100dvh - 60px)}.courtyard-art{width:min(100%,calc((100dvh - 60px)*1.7768))}}.season-choice{position:fixed;bottom:14px;left:50%;transform:translate(-50%);z-index:20;display:flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid #bfa17166;border-radius:12px;background:#201e17ed;color:#f6e7c9;font-size:12px}.season-choice select{max-width:230px;min-height:44px;color:inherit;background:#302b20;border:1px solid #bfa171;border-radius:8px}.republic-decor{position:absolute;left:0;right:0;top:0;height:clamp(20px,7vw,70px);pointer-events:none;z-index:2;filter:drop-shadow(0 3px 2px #0005)}.republic-decor svg{width:100%;height:100%;display:block}#app[data-screen=stable][data-stable-tab=courtyard] main{padding:0;margin:0;max-width:none;width:100%;overflow:auto}#app[data-stable-tab=courtyard] footer{display:none}#app .courtyard-hub{position:fixed;inset:0;min-height:0;width:100%;height:100dvh;z-index:0;display:block}#app .courtyard-art{position:absolute;left:0;top:0;width:100%;height:100%;aspect-ratio:auto}#app .courtyard-art>img{width:100%;height:100%;object-fit:cover;object-position:left top}#app .courtyard-sign{position:fixed;top:auto;bottom:max(90px,env(safe-area-inset-bottom));width:160px;height:56px;background:#173d30ee!important;border:1px solid #d0b77c!important;border-radius:12px;font-size:22px}#app .courtyard-stable{left:calc(50% - 172px)}#app .courtyard-market{left:calc(50% + 12px)}@media(max-height:450px){#app .courtyard-sign{bottom:70px;height:44px;font-size:18px}}@media(min-aspect-ratio:16/9){#app .courtyard-art{width:max(100vw,177.68dvh);height:max(100dvh,56.28vw);left:0;top:0}#app .courtyard-sign{position:absolute;bottom:auto;background:transparent!important;border:0!important;border-radius:0;height:6%;font-size:clamp(14px,2vw,29px)}#app .courtyard-stable{left:30.5%;top:23.4%;width:15%}#app .courtyard-market{left:84.5%;top:33.2%;width:14%}}.horse-context-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;margin-top:10px;max-width:380px}.horse-context-actions>button,.horse-race-entry>button{min-height:44px;padding:10px 16px;border-radius:12px;font-size:14px;white-space:nowrap}.horse-race-entry{display:flex;flex-direction:column;gap:4px;min-width:0}.horse-race-entry small{font-size:11px;line-height:1.35;max-width:230px;color:inherit;text-shadow:0 1px 3px #0008}.care-route-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px;position:relative;z-index:5}.care-route-actions .horse-race-entry small{text-shadow:none}.race-return-care{position:relative;z-index:5;min-height:44px;margin:8px 12px;padding:8px 14px}#app .game-nav:has(~.stable-content[data-tab-view=stable]){left:50%!important;right:auto!important;width:min(320px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;transform:translate(-50%)!important}@media(max-height:600px)and (orientation:landscape){.stable-content[data-tab-view=stable] .horse-context-actions{margin-top:5px;gap:6px;max-width:340px}.horse-context-actions>button,.horse-race-entry>button{padding:7px 12px;font-size:13px}.horse-race-entry small{max-width:190px;font-size:10px}.care-route-actions{margin-bottom:6px}}@media(max-width:480px){.stable-content[data-tab-view=stable] .horse-context-actions{max-width:calc(100vw - 32px)}.care-route-actions{align-items:flex-start}}.stable-content[data-tab-view=prepare]:has(.race-hub){display:flex;flex-direction:column;min-height:0}.stable-content[data-tab-view=prepare]>.race-return-care{flex:none;align-self:flex-start}.stable-content[data-tab-view=prepare]>.race-hub{flex:1;min-height:0;overflow:auto}.release-entry{display:block;width:100%;margin-top:12px;min-height:44px}.release-notes{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;background:#17392c;color:#f5e8c8;border:1px solid #bba778;border-radius:14px}.release-notes::backdrop{background:#071b16b8}.release-notes li{margin-bottom:10px;line-height:1.5}.release-notes button{min-height:44px}.weekly-game-shell{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#142e25;color:#fff1d0;overflow:hidden;box-sizing:border-box}.weekly-game-shell[open]{display:flex;flex-direction:column}.weekly-game-shell::backdrop{background:#0b1c16}.weekly-shell-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px;border-bottom:1px solid #887b50;flex:none;min-height:56px;background:#19382c}.weekly-shell-bar button{min-height:44px;padding:6px 14px;width:auto}.weekly-game-shell #weekly-cup{flex:1;min-height:0;overflow:auto;padding:12px max(12px,calc((100vw - 1100px)/2));overscroll-behavior:contain}.weekly-game-shell #weekly-cup .back,.weekly-game-shell #weekly-cup .results a{display:inline-flex;min-height:44px;align-items:center;color:#f1d58d}.weekly-game-shell #weekly-cup .hero{position:static;display:block;background:none;padding:8px 0;border:0;box-shadow:none}.weekly-game-shell #weekly-cup h1{font-size:26px;margin:8px 0}.weekly-game-shell #weekly-cup h2{font-size:22px;margin:18px 0 10px}.weekly-game-shell #weekly-cup h3{font-size:19px;margin:6px 0}.weekly-game-shell #weekly-cup p{font-size:14px;line-height:1.5;color:#e6e3cf;margin:8px 0}.weekly-game-shell #weekly-cup .notice{padding:10px 14px;border-left:3px solid #d6bd7e;background:#284838;font-size:13px;line-height:1.5}.weekly-game-shell #weekly-cup .cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:12px}.weekly-game-shell #weekly-cup article{padding:14px;border:1px solid #778565;border-radius:12px;background:#203e30}.weekly-game-shell #weekly-cup article header{position:static;display:block;padding:0;background:none;box-shadow:none;border:0}.weekly-game-shell #weekly-cup article footer{display:block;position:static;padding:8px 0 0;margin-top:8px;background:none;border-top:1px solid #657551;font-size:12px}.weekly-game-shell #weekly-cup .results{list-style:none;padding:0}.weekly-game-shell #weekly-cup .results li{display:flex;flex-direction:column;gap:5px;border-bottom:1px solid #657551;padding:10px 0}.weekly-game-shell #weekly-cup button,.weekly-game-shell #weekly-cup select{min-height:44px;width:auto;padding:6px 12px}.weekly-game-shell #weekly-cup .replay-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0}.weekly-game-shell #weekly-cup .replay-controls label{display:flex;gap:8px;align-items:center;font-size:12px}.weekly-game-shell #weekly-cup .replay-controls input{min-height:44px;max-width:50vw}.weekly-game-shell #weekly-cup .race-stage{position:relative;width:100%;height:clamp(160px,55dvh,520px);overflow:hidden;border-radius:12px}.weekly-game-shell #weekly-cup .track{width:100%;height:100%;display:block}.weekly-game-shell #weekly-cup .track-standings li{border:0;padding:0}.weekly-game-shell #weekly-cup .rotate-hint{display:none}@media(orientation:landscape)and (max-height:420px){.weekly-shell-bar{min-height:48px;padding:2px 8px;font-size:12px}.weekly-game-shell #weekly-cup{padding:4px 8px}.weekly-game-shell #weekly-cup.replay>.back,.weekly-game-shell #weekly-cup.replay>h1,.weekly-game-shell #weekly-cup.replay>#replay-status{display:inline-flex;margin:0 10px 0 0;font-size:14px;vertical-align:middle}.weekly-game-shell #weekly-cup .race-stage{height:max(100px,calc(100dvh - 152px))}.weekly-game-shell #weekly-cup .replay-controls{gap:4px}.weekly-game-shell #weekly-cup .replay-controls button{font-size:12px}}.weekly-game-shell{font-family:Arial,Helvetica,sans-serif;font-size:14px}.weekly-game-shell button,.weekly-game-shell select{border:1px solid #d6bd7e;border-radius:10px;background:linear-gradient(#f1d493,#be8e44);color:#2e2011;font:inherit;font-weight:700;cursor:pointer}.weekly-game-shell a:focus-visible,.weekly-game-shell button:focus-visible{outline:3px solid #fff1d0;outline-offset:2px}.weekly-game-shell #weekly-cup h1,.weekly-game-shell #weekly-cup h2,.weekly-game-shell #weekly-cup h3{color:#fff1d0}.hub-race.weekly-results-card{display:flex;flex-direction:column;cursor:default;background:linear-gradient(145deg,#5a4b24,#203b30);border-color:#d4b66e;gap:6px;min-width:210px}.weekly-results-card h2{margin:0}.weekly-result-copy{min-height:0;overflow:auto;flex:1}.weekly-result-copy p{margin:4px 0;font-size:12px;line-height:1.4}.weekly-results-link{display:flex;align-items:center;justify-content:center;flex:none;min-height:44px;background:#ecd699;color:#203b30;border-radius:8px;font-weight:700;font-size:13px;text-decoration:none}@media(orientation:landscape)and (max-height:420px){.hub-race.weekly-results-card{padding:6px;gap:3px}.weekly-results-card h2{font-size:18px}.weekly-results-card .weekly-result-copy p,.weekly-results-card .weekly-result-copy small{font-size:11px}}@media(orientation:landscape)and (max-height:280px){.hub-race.weekly-results-card{height:108px;min-height:108px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:22px 68px;gap:3px 7px;padding:6px}.weekly-results-card h2{grid-column:1/-1;font-size:17px}.weekly-result-copy{grid-column:1;max-height:68px}.weekly-results-link{grid-column:2;grid-row:2;align-self:center;font-size:11px;min-height:44px}.race-hub:has(.weekly-results-card)>header{flex-wrap:nowrap;align-items:center;gap:6px;margin-bottom:3px}.race-hub:has(.weekly-results-card)>header h1{font-size:16px;white-space:nowrap}.race-hub:has(.weekly-results-card)>header p{display:none}.race-hub:has(.weekly-results-card) .hub-header-actions{flex-wrap:nowrap;gap:5px}.race-hub:has(.weekly-results-card) .hub-header-actions .hub-tool{font-size:11px;padding:6px;min-height:44px}}.career-credit-icon{object-fit:contain;flex-shrink:0}.candidate-guide{font-size:.85rem;line-height:1.5;margin:12px 0}.candidate-guide summary{cursor:pointer;padding:8px 0}.candidate-guide p{font-size:inherit!important;line-height:1.5!important}.candidate-guide small{display:block}.candidate-guide:focus-within{outline-offset:3px}.plan-horse-visual.jockey-ready{background-image:none!important}.plan-horse-visual.jockey-ready .scene-horse{visibility:hidden}.plan-horse-visual canvas{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none}@media(orientation:landscape)and (max-height:600px){.plan-screen .plan-horse-area:has(.jockey-ready),.plan-screen .plan-horse-area:has(.jockey-loading){min-height:185px;grid-template-rows:24px 120px auto;gap:4px}.plan-screen .plan-horse-area:has(canvas) .plan-horse-name{display:flex;align-items:center;gap:8px}.plan-screen .plan-horse-area:has(canvas) .plan-horse-name h2{font-size:16px;margin:0}.plan-screen .plan-horse-area:has(canvas) .plan-horse-name span{font-size:10px;margin:0}.plan-screen .plan-horse-visual.jockey-ready,.plan-screen .plan-horse-visual.jockey-loading{min-height:120px;height:120px}}@media(orientation:landscape)and (max-height:600px){.plan-scroll:has(.jockey-ready),.plan-scroll:has(.jockey-loading){display:flex;flex-direction:column}.plan-scroll:has(.jockey-ready)>.plan-body,.plan-scroll:has(.jockey-loading)>.plan-body{order:0;flex-shrink:0}.plan-scroll:has(.jockey-ready)>.plan-race-summary,.plan-scroll:has(.jockey-loading)>.plan-race-summary{order:1;flex-shrink:0}.plan-scroll:has(.jockey-ready)>.race-options,.plan-scroll:has(.jockey-loading)>.race-options{order:2;flex-shrink:0}}.plan-screen .plan-back{flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:1px solid #ceb87666;border-radius:50%;background:#122b23b3;color:#f4df9f;box-shadow:inset 0 1px #ffffff12;display:grid;place-items:center}.plan-back span{font:32px/1 Georgia,serif}.plan-back:hover{background:#385843;border-color:#e8cc88}.plan-back:focus-visible{outline:2px solid #ffe6a0;outline-offset:3px}.plan-screen{background:radial-gradient(ellipse at 16% 48%,#42634c66,transparent 57%),linear-gradient(135deg,#203e30,#142e25)!important;border:1px solid #bda26735;box-shadow:inset 0 1px #ffffff0a}.plan-screen .plan-race-summary{gap:12px;align-items:center}.plan-screen .plan-horse-name h2{color:#f7e8c1}.plan-screen .plan-performance{background:#10291fb3;border-color:#bda26740;box-shadow:none}.plan-screen .plan-controls .tactics button{border-radius:12px}.plan-screen .plan-actions{background:transparent;border-top-color:#bda26740}@media(orientation:landscape)and (max-height:600px){.plan-screen{position:relative}.plan-screen .plan-back{position:absolute;left:8px;top:8px;z-index:4;width:36px;height:36px;min-height:36px}.plan-screen .plan-horse-name{padding-left:42px;min-height:36px}.plan-screen .plan-horse-area:has(.jockey-ready){grid-template-rows:36px 140px auto}.plan-screen .plan-horse-visual.jockey-ready{height:140px;min-height:140px}}.plan-screen .plan-race-summary .plan-back span{display:block;font:32px/1 Georgia,serif!important;letter-spacing:0;color:#f4df9f}@media(max-width:650px)and (orientation:portrait){.plan-scroll .race-options{display:flex;flex-wrap:wrap;gap:8px}.plan-scroll .race-options>p{flex-basis:100%;min-width:0;margin:0;overflow-wrap:normal}.plan-scroll .race-options>label{flex:1 1 130px;min-width:0}}@media(max-width:650px)and (orientation:portrait){.plan-scroll .race-options>label{display:flex;flex-direction:column;align-items:stretch;gap:4px}.plan-scroll .race-options select{width:100%;min-width:0;box-sizing:border-box}}@media(orientation:landscape)and (max-height:600px){.plan-scroll:has(.jockey-ready)>.race-venue-banner,.plan-scroll:has(.jockey-loading)>.race-venue-banner,.plan-scroll:has(.jockey-ready)>.event-conditions,.plan-scroll:has(.jockey-loading)>.event-conditions{order:3;flex-shrink:0}}.collection-game[open]{position:fixed!important;inset:12px!important;width:min(900px,calc(100vw - 24px))!important;height:calc(100dvh - 24px)!important;max-height:none!important;max-width:none!important;margin:auto!important;display:flex!important;flex-direction:column;gap:10px;padding:18px;box-sizing:border-box;overflow:visible!important;background:linear-gradient(140deg,#284b38,#102e25);border:1px solid #c3aa70;border-radius:18px;color:#f5e5bf}.collection-game [hidden]{display:none!important}.collection-game>header{position:static!important;display:flex;align-items:center;gap:10px;padding:0!important;margin:0!important;background:none!important;flex:none}.collection-game>header h2{font:25px Georgia,serif;margin:0;flex:1}.collection-game>header button{min-height:44px;margin:0}.collection-game .collection-help-open{width:44px;border-radius:50%}.collection-game>.collection-cover{height:110px!important;min-height:0!important;flex:none;margin:0!important}.collection-game>.history-balance{margin:0;flex:none;font-size:13px}.collection-game>nav:not(.collection-pages){display:flex;gap:8px;flex:none;margin:0}.collection-game>nav button{min-height:44px;flex:1;margin:0}.collection-game>.history-tasks,.collection-game>.history-cards{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr);place-items:center;flex:1;min-height:0;margin:0;overflow:visible!important}.collection-game .history-tasks>article,.collection-game .history-cards>article{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;max-width:620px;width:100%;height:100%;min-height:0;padding:16px;box-sizing:border-box;margin:0;border:1px solid #9e905f;border-radius:12px;background:#204633;color:#f6e9c5}.collection-game article h3{font:26px Georgia,serif;margin:0;text-align:center}.collection-game article p{font-size:14px;margin:0}.collection-game article img{width:auto!important;height:clamp(70px,18dvh,180px)!important;max-width:100%;object-fit:contain;border-radius:8px}.collection-game article progress{width:min(100%,360px);height:12px;accent-color:#d6bc78}.collection-game article button{min-height:44px;margin:0}.collection-game .collection-pages{display:flex;justify-content:center;align-items:center;gap:24px;flex:none;margin:0}.collection-pages button{min-height:40px!important;width:50px;flex:none!important}.collection-game>button{flex:none;margin:0!important;min-height:44px;padding:8px;font-size:12px}.collection-help{max-width:500px;width:calc(100vw - 32px);box-sizing:border-box;background:#15382b;color:#f7e5bb;border:1px solid #bba468;border-radius:14px;padding:18px}.collection-help p{font-size:14px;line-height:1.4}.collection-help button{min-height:44px;width:100%}.collection-help::backdrop{background:#061b15bd}@media(max-width:600px)and (orientation:portrait){.collection-game[open]{inset:8px!important;height:calc(100dvh - 16px)!important;width:calc(100vw - 16px)!important;padding:12px;gap:8px}.collection-game>header h2{font-size:19px}.collection-game>header button{font-size:12px;padding:7px}.collection-game>.collection-cover{height:90px!important}.collection-game article h3{font-size:22px}.collection-game article p{font-size:12px}.collection-game .history-tasks>article,.collection-game .history-cards>article{padding:12px}.collection-game article img{height:clamp(70px,16dvh,150px)!important}}@media(orientation:landscape)and (max-height:600px){.collection-game[open]{padding:10px;gap:5px;display:grid!important;grid-template-columns:180px minmax(0,1fr);grid-template-rows:36px 36px minmax(0,1fr) 34px 34px}.collection-game>header{grid-column:1/-1}.collection-game>header h2{font-size:20px}.collection-game>header button{min-height:32px;font-size:11px;padding:4px 10px}.collection-game>.collection-cover{grid-column:1;grid-row:2/4;height:100%!important;width:100%}.collection-game>.history-balance{grid-column:1;grid-row:4;font-size:10px}.collection-game>nav:not(.collection-pages){grid-column:2;grid-row:2}.collection-game>nav button{min-height:32px;font-size:11px;padding:5px}.collection-game>.history-cards,.collection-game>.history-tasks{grid-column:2;grid-row:3}.collection-game .collection-pages{grid-column:2;grid-row:4}.collection-game>button{grid-row:5;font-size:10px;min-height:30px}.collection-game article h3{font-size:18px}.collection-game article p{font-size:11px}.collection-game article button{min-height:32px;font-size:11px;padding:5px 10px}.collection-game .history-tasks>article,.collection-game .history-cards>article{padding:8px;gap:5px}.collection-game article img{height:64px!important}.collection-game .collection-pages button{min-height:30px!important;padding:3px}.collection-help p{font-size:11px;margin:6px 0}.collection-help{padding:12px}}.collection-game .collection-cover>div{padding:10px 16px;box-sizing:border-box}.collection-game .collection-cover h3{font-size:24px;margin:2px 0}.collection-game .collection-cover small{font-size:11px}.collection-game>.history-balance{padding:8px 12px}.history-reader[open]{width:min(760px,calc(100vw - 24px));height:min(760px,calc(100dvh - 24px));max-height:none;display:flex;flex-direction:column;gap:12px;overflow:visible;padding:16px}.history-reader>header{position:static;flex:none;padding:0}.history-reader>img{flex:1;min-height:0;height:0;object-fit:contain;float:none;margin:0}.history-reader>p{flex:none;font-size:clamp(13px,2vw,17px);line-height:1.45;margin:0}.history-reader>small{font-size:11px;flex:none}.history-reader>a{flex:none;min-height:32px}@media(orientation:landscape)and (max-height:600px){.history-reader[open]{display:grid;grid-template-columns:42% 1fr;grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px}.history-reader>header{grid-column:1/-1}.history-reader>img{grid-column:1;grid-row:2/5;width:100%;height:100%;max-height:100%}.history-reader>p{grid-column:2;font-size:13px;align-self:center}.history-reader>small,.history-reader>a{grid-column:2;font-size:10px}.history-reader h2{font-size:18px}.history-reader button{min-height:32px;padding:6px 10px}}.history-reader[open]>img{width:100%!important;float:none!important;margin:0!important;max-width:none!important}@media(orientation:landscape)and (max-height:600px){.history-reader[open]>img{height:100%!important;object-fit:contain!important}}.history-dialog{box-sizing:border-box;width:min(960px,calc(100vw - 24px));max-height:90dvh;border:1px solid #b79a59;border-radius:18px;padding:24px;background:#172a24;color:#fff4d8;box-shadow:0 20px 80px #0009}.history-dialog *{box-sizing:border-box}.history-dialog::backdrop{background:#091510c9}.history-dialog header,.history-dialog nav{display:flex;gap:12px;align-items:center;justify-content:space-between}.history-dialog h2{margin:0;font-size:24px}.history-dialog h3{font-size:17px;line-height:1.4}.history-dialog p{line-height:1.6}.history-dialog button{min-height:44px;background:#d9ba70;color:#172a24;border:1px solid #e4cf9b;border-radius:9px;padding:10px 16px;cursor:pointer;font-weight:700}.history-dialog button:disabled{opacity:.45;cursor:default}.history-dialog button:focus-visible,.history-dialog a:focus-visible{outline:3px solid #fff;outline-offset:3px}.history-dialog nav{justify-content:flex-start;margin:16px 0}.history-dialog nav [aria-pressed=false]{background:transparent;color:inherit}.history-balance{padding:16px;border:1px solid #9e884e;border-radius:12px;font-weight:700}.history-tasks,.history-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.history-tasks article,.history-cards article{padding:16px;background:#223c31;border:1px solid #536747;border-radius:12px}.history-dialog progress{width:100%;accent-color:#ddbc67}.history-cards img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px}.history-detail{padding:20px;background:#21382e;margin:16px 0}.history-detail a{display:block;color:#f1d790;margin-top:12px}.history-dialog>button,.history-dialog>details{margin-top:14px}.history-entry{width:100%;margin:8px 0;min-height:44px}.history-dialog small{display:block;line-height:1.5}@media(max-width:600px){.history-dialog{padding:16px}.history-tasks,.history-cards{grid-template-columns:1fr}.history-dialog nav{flex-wrap:wrap}.history-dialog h2{font-size:20px}}.history-dialog{max-width:960px!important}.history-dialog header{background:transparent;padding:0;position:static;border:0;box-shadow:none}.history-dialog h2,.history-dialog h3{color:#fff4d8}.history-dialog p,.history-dialog small{color:#dedcc9}.history-dialog nav{background:transparent;padding:0}.history-dialog progress{display:block;appearance:auto}.history-dialog article{min-width:0}.collection-coin{display:inline-flex;vertical-align:middle;width:28px;height:28px;flex:none;margin-right:7px}.collection-coin svg{width:100%;height:100%}.history-balance{display:flex;align-items:center}.history-cards button .collection-coin{width:24px;height:24px}.history-reader{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid #c7ac6b;border-radius:14px;padding:20px;background:#172a24;color:#fff4d8}.history-reader::backdrop{background:#08130ee8}.history-reader header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:sticky;top:-20px;padding:12px 0;background:#172a24;z-index:1}.history-reader h2{font-size:22px;line-height:1.3;margin:0;color:inherit}.history-reader p{font-size:17px;line-height:1.7}.history-reader button{flex:none;min-height:44px;padding:8px 16px;background:#dfc27c;color:#172a24;border:0;border-radius:8px}.history-reader a{display:inline-flex;min-height:44px;align-items:center;color:#f3d895}.history-reader h2:focus{outline:none}@media(orientation:landscape)and (max-height:420px){.history-reader{padding:12px}.history-reader header{top:-12px;padding:4px 0}.history-reader h2{font-size:18px}.history-reader p{font-size:16px;line-height:1.5}}.history-reader p{color:#eee8d8}.history-reader>img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:8px}.history-reader>small{display:block;color:#cfc7b1;line-height:1.4}.history-reader>a{display:flex}@media(orientation:landscape)and (max-height:420px){.history-reader>img{width:42%;float:left;margin:4px 14px 8px 0}.history-reader>small{clear:both}.history-reader header{clear:both}}.market-horse.horse3d-market .scene-horse{top:64px!important;height:calc(100% - 150px)!important}@media(max-height:600px)and (orientation:landscape){.market-horse.horse3d-market .scene-horse{top:56px!important;left:16%!important;width:36%!important;height:calc(100% - 124px)!important}}@media(max-width:600px)and (orientation:portrait){.market-horse.horse3d-market .scene-horse{top:68px!important;left:30%!important;width:66%!important;height:calc(42% - 68px)!important}}.daily-bale-entry{display:flex!important;align-items:center;gap:10px;background:linear-gradient(120deg,#6b4826,#304c32)!important;border:1px solid #e9c579!important;border-radius:16px!important;padding:9px 16px!important;box-shadow:0 4px 16px #0006,inset 0 0 14px #e5b04a22;color:#fff0c9!important;font-weight:700;text-decoration:none!important;min-height:60px}.daily-bale-entry img{width:56px;height:56px;filter:drop-shadow(0 3px 5px #0006)}.selected-horse-care{position:fixed;left:12px;bottom:12px;z-index:70;display:flex;align-items:center;gap:8px;width:138px;min-height:64px;background:linear-gradient(#efd89a,#c3a46a);color:#203c2f;border:1px solid #f9e7b4;border-radius:14px;font-weight:700;padding:8px}.selected-horse-care>span:first-child{font-size:28px}.game-nav:has(~.stable-content[data-tab-view=stable]){left:158px!important;right:12px!important;width:max-content;max-width:calc(100% - 170px);transform:none!important}.retirement-options{margin-top:30px;text-align:right;border-top:1px solid #ffffff18;padding-top:10px}.retirement-options summary{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:16px;opacity:.65;cursor:pointer}.retirement-options button{display:block;margin-left:auto}.market-scroll-hint{position:sticky;top:0;z-index:5;display:flex;gap:8px;align-items:center;background:#18382ef5;color:#f4dba3;padding:7px 10px;font-size:12px;border-bottom:1px solid #bea46977}.market-scroll-hint>span:first-child{font-size:22px}.home-racecourse .race-venue-banner{margin:4px 0}.home-racecourse .race-venue-banner.has-photo{min-height:100px}@media(max-height:600px)and (orientation:landscape){.market-showcase .market-information{width:46%!important;right:8px!important;font-size:14px!important;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.market-information .horse-card{font-size:14px!important}.market-information .horse-title h3{font-size:20px!important}.market-information .stat{font-size:13px!important}.selected-horse-care{min-height:52px;bottom:8px}.home-racecourse .race-venue-banner.has-photo{min-height:76px}.home-racecourse .race-venue-copy{padding:8px 12px}}@media(max-width:600px)and (orientation:portrait){.market-showcase .market-information{width:calc(100% - 24px)!important;inset:42% 12px 100px!important;overflow:auto;background:#17392ef5;border-radius:14px}.market-scroll-hint{font-size:13px}}@media(max-height:600px)and (orientation:landscape){.market-showcase .market-information{max-width:none;top:52px!important;bottom:58px!important;padding-top:0!important}.market-information .hint,.market-information .card-top,.market-information .card-action button{font-size:13px!important}.market-information .card-top{flex-wrap:wrap!important}}.gift-product button{background:linear-gradient(120deg,#e2bf73,#b58c3b);color:#173526;font-weight:700;border:1px solid #f8e0a1;min-height:44px;border-radius:12px;box-shadow:0 3px 9px #0005}.gift-product .care-item-art{filter:drop-shadow(0 3px 5px #0006)}.feed-sack{width:70px;height:80px;flex:none}.feed-price{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.feed-price img{width:24px;height:24px}button[data-care=buy]{display:flex;align-items:center;justify-content:center;gap:20px}.feed-purchase-receipt{position:fixed;z-index:10000;left:50%;top:20%;transform:translate(-50%);display:flex;align-items:center;gap:14px;padding:14px 24px;max-width:90vw;border:2px solid #dbbc73;border-radius:20px;background:#18362bf5;color:#fff1cf;box-shadow:0 12px 45px #0009;pointer-events:none;animation:feed-delivery 2.8s both}.feed-purchase-receipt strong{font-size:26px;display:block}.feed-purchase-receipt div>span{display:block;margin-top:4px}.feed-purchase-receipt .feed-sack{animation:sack-bounce .5s ease-out}@keyframes feed-delivery{0%{opacity:0;transform:translate(-50%,15px) scale(.85)}12%,82%{opacity:1;transform:translate(-50%) scale(1)}to{opacity:0;transform:translate(-50%,-12px)}}@keyframes sack-bounce{0%{transform:rotate(-14deg) scale(.6)}70%{transform:rotate(7deg) scale(1.1)}to{transform:rotate(0) scale(1)}}@media(prefers-reduced-motion:reduce){.feed-purchase-receipt,.feed-purchase-receipt .feed-sack{animation:none}}.market-lore{margin:12px 0;padding:12px;border:1px solid #c7b27855;border-radius:10px;background:#10251ee8;color:#f4e7ce;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.market-lore>small{color:#e3c681}.market-lore p{margin:6px 0}.market-lore summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline}.market-lore dl{margin:8px 0}.market-lore dt{font-size:11px;color:#dbc79b;margin-top:9px}.market-lore dd{margin:0}.market-lore .lore-notice{font-size:12px;color:#e3c681}.market-showcase .market-lore p{color:#f4e7ce;opacity:1}.market-showcase .market-lore .lore-notice{color:#e3c681}.horse-novella{margin:12px 0;border-top:1px solid #c7b27855;padding-top:8px}.horse-novella summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#e3c681}.horse-novella>small{color:#cabb9c;font-size:11px}.horse-novella-pages{max-width:62ch;margin:auto}.horse-novella .horse-novella-pages p{font-size:15px;line-height:1.85;margin:16px 0;color:#f4e7ce;white-space:normal;text-align:start}.horse-novella-pages p:first-child:first-letter{font-size:2em;color:#e3c681;line-height:1}.market-lore .horse-novella .horse-novella-pages p{font-size:14px;line-height:1.75}@media(max-height:500px){.horse-novella .horse-novella-pages p{font-size:14px;line-height:1.65;margin:12px 0}}.identity-dashboard .horse-novella .horse-novella-pages p{font-size:15px!important;line-height:1.8!important;margin:16px 0!important}.care-supply-mode{background:radial-gradient(ellipse at top,#594329,#14251e 75%)!important}.care-shop{color:#fff1d1}.care-shop-grid article{background:linear-gradient(145deg,#4e3b25,#211e16);border:2px solid #c3934e!important;border-radius:18px!important;text-align:center;box-shadow:inset 0 0 20px #e5b34d22,0 5px 12px #0005}.care-item-art{width:100px;height:100px;filter:drop-shadow(0 6px 5px #0005)}.care-shop-grid button,.daily-care-gift button{background:linear-gradient(#f1d493,#be8e44);border:2px solid #f8de9e;border-radius:12px;color:#2e2011;font-weight:700;min-height:48px}.daily-care-gift{text-align:center;background:radial-gradient(ellipse,#90704455,#1e2e22);border:1px solid #cbaa68;border-radius:22px;padding:20px;margin:16px 0}.gift-bale{width:160px;height:160px;filter:drop-shadow(0 12px 14px #0007)}.daily-care-gift ul{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:0;list-style:none}.daily-care-gift li{display:flex;align-items:center;gap:6px;background:#10251ee8;padding:8px;border-radius:12px}.gift-opened li{animation:gift-reveal .6s ease both}.gift-opened .gift-bale{animation:bale-open .7s ease}.care-working{color:#f1ce82!important}.morale-meter progress{transition:all 1s linear}@keyframes gift-reveal{0%{opacity:0;transform:translateY(25px) scale(.6)}to{opacity:1;transform:none}}@keyframes bale-open{0%{transform:rotate(-8deg) scale(.8)}40%{transform:rotate(8deg) scale(1.1)}to{transform:none}}@media(prefers-reduced-motion:reduce){.gift-opened li,.gift-opened .gift-bale{animation:none}.morale-meter progress{transition:none}}.market-showcase .care-shop p,.market-showcase .care-shop h2,.market-showcase .care-shop h3{color:#fff1d1}.care-subnav img{display:block;margin:auto}.care-subnav button{position:relative}.care-working{animation:care-glow 2s ease-in-out infinite}@keyframes care-glow{50%{opacity:.65}}@media(prefers-reduced-motion:reduce){.care-working{animation:none}}.gift-modal{position:fixed;inset:12% max(16px,calc((100vw - 540px)/2));z-index:150;overflow:auto;margin:0;background:#203e2e;box-shadow:0 0 0 100vmax #000b}.gift-close{position:absolute;right:10px;top:10px;min-width:44px;font-size:24px}.gift-product .care-item-art{width:100px;height:100px}@media(orientation:landscape)and (max-height:600px){.gift-modal{inset:65px 15% 8px;padding:12px}.gift-modal .gift-bale{width:80px;height:80px}.gift-modal h3,.gift-modal p{margin:5px}.gift-modal ul{margin:8px 0}}.market-categories{position:relative;z-index:6;display:flex;gap:8px;overflow-x:auto;padding:8px 12px;background:#142e25}.market-categories button{white-space:nowrap;min-height:40px;border:1px solid #b59861;border-radius:20px;background:#234737;color:#f6e6bf;padding:6px 16px}.market-categories button[aria-pressed=true]{background:#ddbf7e;color:#143526}.unified-market{overflow:auto;padding-bottom:85px}.unified-market .care-shop{padding:12px}.unified-market .care-shop-grid{display:flex;gap:12px;overflow-x:auto;align-items:flex-start}.unified-market .care-shop-grid article{flex:0 0 235px;padding:12px;box-sizing:border-box}.unified-market .care-shop-grid p{font-size:13px}.unified-market .care-shop-grid button{display:block;width:100%;margin-top:8px}.feed-grain{font-size:60px;display:block}.market-coming{padding:24px;color:#f6e6bf}.market-showcase:has(.market-categories) .market-heading{margin-top:50px}.market-showcase:has(.market-categories) .market-information{padding-top:42px}@media(orientation:landscape)and (max-height:600px){.unified-market .care-shop{padding:6px 12px}.unified-market .care-shop h2{font-size:17px;margin:4px 0}.unified-market .care-shop-grid article{flex-basis:300px;padding:8px;text-align:left}.unified-market .care-item-art,.unified-market .feed-grain{float:left;width:48px;height:48px;font-size:36px;margin:0 10px 5px 0}.unified-market .care-shop-grid h3{font-size:15px;margin:4px}.unified-market .care-shop-grid p{font-size:12px;margin:4px;line-height:1.3}.unified-market .care-shop-grid button{min-height:36px;margin-top:5px;font-size:12px}.market-categories{padding:4px 8px}.market-categories button{min-height:36px}}.market-showcase.unified-market{padding:0 8px 16px!important;height:100%}.unified-market .care-shop{margin:0!important;padding:6px 4px!important}.unified-market .care-shop>h2{margin:4px 0 8px}.unified-market .care-shop-grid{align-items:stretch;gap:10px}.unified-market .care-shop-grid article{flex:0 0 260px;min-height:162px;padding:10px!important;text-align:left;border-radius:12px!important;display:flex;flex-direction:column;gap:6px}.unified-market .care-shop-grid article>h3,.unified-market .care-shop-grid article>p{margin:0}.unified-market .care-shop-grid .care-item-art{width:48px;height:48px;float:none;margin:0}.feed-shop-heading{display:flex;align-items:center;gap:16px;margin:0 0 8px;flex-wrap:wrap}.feed-shop-heading h2{font-size:18px;margin:0}.feed-shop-heading label{display:flex;align-items:center;gap:8px;font-size:12px}.feed-shop-heading select{min-height:32px;padding:4px 8px}.product-heading{display:flex;align-items:center;gap:10px;min-height:58px}.product-heading .feed-sack{width:48px;height:54px}.unified-market .product-heading h3{font-size:15px!important;line-height:1.2;margin:0 0 4px!important}.unified-market .product-heading p{margin:0!important;font-size:12px}.unified-market .product-effect{font-size:12px;margin:0;line-height:1.4}.unified-market .care-shop-grid .product-offer{margin-top:auto!important;min-height:38px;display:flex!important;align-items:center;justify-content:center;gap:12px;width:100%;font-size:14px;box-sizing:border-box}.product-offer .feed-price img{width:22px;height:22px}.market-categories #close-market{margin-left:auto;order:2;min-width:40px;padding:4px;font-size:23px;position:sticky;right:0}.unified-market .market-categories{padding:4px 0;margin:0 0 4px}.unified-market .care-shop-grid article>button:last-child{margin-top:auto}.gift-modal.golden-bale{border:3px solid #f5c950;background:radial-gradient(ellipse at top,#705323,#172e25 70%);box-shadow:0 0 50px #e6b32c80}.golden-bale .gift-bale{filter:sepia(.65) saturate(2) drop-shadow(0 0 18px #ffcf4b)}.golden-bale h3{color:#ffe198}@media(orientation:landscape)and (max-height:600px){.gift-modal{display:grid;grid-template-columns:90px minmax(0,1fr);align-content:center;column-gap:12px;box-sizing:border-box}.gift-modal>.gift-bale{grid-column:1;grid-row:1/5;align-self:center}.gift-modal>h3,.gift-modal>ul,.gift-modal>p,.gift-modal>button:not(.gift-close){grid-column:2}.gift-modal>h3{padding-right:40px}.gift-modal li{padding:5px;font-size:12px;gap:4px}.gift-modal li img{width:26px;height:26px}.gift-modal>ul{gap:5px}.gift-modal>button:not(.gift-close){justify-self:center;min-height:36px}.gift-modal>.gift-close{min-height:36px;min-width:36px;right:8px;top:8px}}.plan-screen[data-venue=sirinyer][data-lighting=day]{background:linear-gradient(90deg,#10291ee8,#10291e60 55%,#10291ee0),url(/assets/venues/sirinyer-day.jpg) center 64%/cover no-repeat!important}.plan-screen[data-venue=sirinyer][data-lighting=night]{background:linear-gradient(120deg,#081321,#183043)!important}.venue-caption{display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:7px 10px;margin-bottom:8px;border-radius:8px;background:#10261de8;color:#f7e8c8;font-size:13px}.venue-caption a{margin-left:auto;font-size:11px;color:#ebd49d;text-decoration:underline}@media(max-width:600px){.plan-screen[data-venue=sirinyer][data-lighting=day]{background-position:center,65% 65%!important}.venue-caption{font-size:11px}.venue-caption a{font-size:10px}}.race-venue-banner{position:relative;isolation:isolate;overflow:hidden;border-radius:12px;background:#18352b;margin:0 0 12px;min-height:76px;color:#fff3db}.race-venue-banner.has-photo{min-height:130px}.race-venue-banner>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 64%;z-index:-2}.race-venue-banner.has-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#071d18f2,#071d1870);z-index:-1}.race-venue-banner[data-lighting=night]{background:linear-gradient(120deg,#081321,#183043)}.race-venue-copy{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:16px;overflow-wrap:anywhere}.race-venue-copy span,.race-venue-copy a{font-size:12px;color:inherit}.race-venue-copy a{text-decoration:underline}@media(max-width:600px){.race-venue-banner.has-photo{min-height:115px}.race-venue-copy{padding:12px}.race-venue-copy strong{font-size:14px}}#promotion-celebration{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:36px 28px 24px;text-align:center;color:#f9edc9;border:1px solid #d6b66a;border-radius:24px;background:radial-gradient(ellipse at 50% 20%,#45664a,#153c32 65%);box-shadow:0 20px 90px #0008;animation:promotion-arrival .55s ease-out}#promotion-celebration::backdrop{background:#061c20b8}#promotion-celebration .promotion-close{position:absolute;right:8px;top:8px;min-width:44px;min-height:44px;background:transparent;border:0;color:#fff;font-size:26px;z-index:2}.promotion-emblem{position:relative;display:flex;align-items:center;justify-content:center;gap:20px;height:128px;color:#f5d581;animation:promotion-medal 1s ease-out}.promotion-emblem b{display:grid;place-items:center;width:104px;height:104px;border:3px solid #f1d182;border-radius:50%;font:700 64px Georgia,serif;background:linear-gradient(135deg,#f5dfa2,#b58a38);color:#183b2e;box-shadow:0 0 40px #e7bd5555}.promotion-eyebrow{font-size:10px;letter-spacing:1.5px;margin-top:18px!important}#promotion-celebration h2{font:700 32px Georgia,serif;color:#fff1c7;margin:12px 0}.promotion-horse{font-size:22px;overflow-wrap:anywhere}#promotion-celebration p{line-height:1.5;margin:12px 0}.promotion-continue{min-height:44px;margin-top:10px}.promotion-sparks{position:absolute;top:108px;left:50%;pointer-events:none}.promotion-sparks i{position:absolute;width:5px;height:10px;background:#ecd08a;opacity:0;animation:promotion-spark 1.8s var(--delay) ease-out;transform:rotate(var(--angle))}@keyframes promotion-arrival{0%{opacity:0;transform:scale(.88) translateY(12px)}to{opacity:1;transform:none}}@keyframes promotion-medal{0%{opacity:0;transform:scale(.5) rotate(-15deg)}to{opacity:1;transform:none}}@keyframes promotion-spark{20%{opacity:1}to{opacity:0;transform:rotate(var(--angle)) translateY(150px) rotate(90deg)}}@media(max-height:500px){#promotion-celebration{padding:16px 24px}.promotion-emblem{height:76px}.promotion-emblem b{width:64px;height:64px;font-size:40px}#promotion-celebration h2{font-size:25px;margin:6px 0}#promotion-celebration p{margin:6px 0}.promotion-eyebrow{display:none}.promotion-horse{font-size:18px}.promotion-sparks{top:60px}}@media(prefers-reduced-motion:reduce){#promotion-celebration,.promotion-emblem,.promotion-sparks i{animation:none}.promotion-sparks{display:none}}#promotion-celebration{width:min(900px,calc(100vw - 16px));padding:24px;max-height:calc(100dvh - 16px)}.promotion-unlocks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:left}.promotion-unlocks article{min-width:0;border:1px solid #bba26466;background:#092b2580;border-radius:14px;padding:12px}.promotion-unlocks h3{margin:6px 0;color:#ffe3a0;font-size:17px}#promotion-celebration .promotion-unlocks p{font-size:14px;margin:6px 0}.promotion-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;position:sticky;bottom:-24px;padding:12px 0;background:#153c32}.promotion-actions button,.promotion-unlocks button{min-height:44px}.promotion-actions .promotion-continue{margin:0}@media(max-width:540px){.promotion-unlocks{grid-template-columns:1fr;gap:6px}.promotion-unlocks article{padding:8px 12px}.promotion-unlocks article>span{float:right}.promotion-actions{bottom:-24px}}@media(max-height:500px)and (min-width:541px){#promotion-celebration{padding:12px 24px}.promotion-emblem{height:48px}.promotion-emblem b{width:44px;height:44px;font-size:28px}#promotion-celebration h2{font-size:22px;margin:4px}.promotion-unlocks article{padding:6px 10px}.promotion-unlocks h3{font-size:15px}.promotion-unlocks article>span{display:none}.promotion-actions{bottom:-12px;padding:8px 0}}#event-calendar{width:min(720px,calc(100vw - 24px));max-width:none;height:min(680px,calc(100dvh - 24px));max-height:none;box-sizing:border-box;padding:16px;border:1px solid #ac955c;border-radius:18px;color:#f4ead0;background:#18382d}#event-calendar[open]{display:flex;flex-direction:column;gap:10px}#event-calendar::backdrop{background:#071b16bd}#event-calendar header{display:flex;align-items:center;justify-content:space-between;flex:none;background:none;padding:0;border:0;height:auto;position:static}#event-calendar h2{color:#efd28d;margin:4px 0;font:25px Georgia,serif}#event-calendar header button{width:44px;min-height:44px;background:#294d3d;color:#fff;border:1px solid #6c8168;border-radius:10px}#event-calendar .calendar-toolbar{display:flex;align-items:center;gap:18px;flex:none;font-size:12px}#event-calendar label{display:flex;align-items:center;gap:8px}#event-calendar select{min-height:36px;background:#294d3d;color:#fff;border:1px solid #6c8168;border-radius:8px;padding:5px}#event-calendar .calendar-note{font-size:12px;margin:0;line-height:1.4;color:#d7dcca}#event-calendar .calendar-scroll{overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}#event-calendar .calendar-item{display:flex;gap:14px;align-items:center;padding:12px;border:1px solid #46654e;border-radius:12px;margin-bottom:8px;background:#244435}#event-calendar .calendar-symbol{font-size:28px;color:#e4c679}#event-calendar .calendar-item h3{font-size:18px;margin:4px 0;color:#f2deb0}#event-calendar .calendar-item small,#event-calendar .calendar-status{font-size:12px;color:#cbd7c6}#event-calendar .calendar-item p{font-size:11px;margin:6px 0}#event-calendar .remembrance{background:#293a33}#event-calendar footer{flex:none;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#cbd7c6}@media(max-height:500px){#event-calendar{padding:10px;gap:5px}#event-calendar h2{font-size:20px}#event-calendar .calendar-item{padding:8px}#event-calendar .calendar-note{font-size:11px}}.hub-header-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.hub-header-actions button{white-space:nowrap}#event-calendar footer{padding:0;margin:0;border:0;background:none;height:auto;min-height:0}#event-calendar footer span{margin:0}.horse-strip .expand-stall,.horse-strip .empty-stall{border:1px dashed #d4bb74;background:#203e32e8;color:#f5e6bd;min-width:165px}.horse-strip .stall-door{display:grid;place-items:center;width:35px;height:38px;border:1px solid #baa269;border-radius:10px 10px 2px 2px;font-size:25px;color:#e9d193;flex-shrink:0}.horse-strip .expand-stall b,.horse-strip .empty-stall b{font-size:12px}.horse-strip .expand-stall small,.horse-strip .empty-stall small{font-size:10px}.sale-link{font-size:11px;padding:6px 10px}#stable-trade{max-width:440px;width:calc(100vw - 40px);box-sizing:border-box;border:1px solid #b99e61;border-radius:16px;padding:24px;background:#f4eedb;color:#203b2e}#stable-trade::backdrop{background:#061f18b5}#stable-trade p{line-height:1.6}#stable-trade .trade-price{font-size:26px;color:#75501d}#stable-trade .dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.race-hub{padding:20px 24px 110px;max-width:1260px;margin:auto;color:#f1e8cc}.race-hub>header{display:flex;justify-content:space-between;align-items:center;background:none;border:0;padding:0;margin-bottom:20px;position:static;height:auto}.race-hub h1{font:clamp(26px,3vw,42px) Georgia,serif;margin:8px 0;color:#f9e5ae}.race-hub p{color:#cbd8cd}.hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px}.hub-race{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;min-height:275px;padding:24px;border:1px solid #527564;border-radius:18px;color:#edf3e9;background:linear-gradient(145deg,#234d3a,#142b24);cursor:pointer;overflow:hidden}.hub-race:hover,.hub-race:focus-visible{border-color:#ead083;box-shadow:0 0 0 2px #ead08344}.hub-race h2,.hub-race h3{font:26px Georgia,serif;margin:0;color:#f4e3b3}.hub-race p,.hub-race small{margin:0;color:#d1dcd2;line-height:1.5}.hub-race strong{color:#f2d17f;font-size:16px}.hub-tag{font-size:11px;letter-spacing:1px;color:#d7c08a}.hub-symbol{position:absolute;right:18px;top:10px;font-size:65px;opacity:.14}.hub-go{margin-top:auto;padding-top:14px;font-weight:700;color:#f3e3b1}.hub-event{background:linear-gradient(145deg,#61522c,#262f24);border-color:#aa8b4b}.hub-practice{background:linear-gradient(145deg,#294d54,#162d31)}.hub-race:disabled{opacity:.5;cursor:default}.event-conditions{padding:12px 18px;background:#153528;color:#eadfbe;border-radius:12px;line-height:1.5}.event-conditions summary{cursor:pointer}.event-conditions .prize-grid{display:flex;gap:24px}.event-conditions .prize-grid>div{display:grid}.race-back{margin:8px 16px}.stall-info .trophy-shelf{width:auto!important;margin:0 0 5px auto!important;padding:4px 9px!important;min-height:28px!important;gap:6px!important;border-radius:20px!important;background:#1a362bdd!important}.stall-info .trophy-shelf .shelf-art svg{width:17px;height:21px}.stall-info .trophy-shelf .shelf-art svg:not(:first-child){display:none}.stall-info .trophy-shelf>span:last-child{display:flex;align-items:center;gap:8px}.stall-info .trophy-shelf b,.stall-info .trophy-shelf small{font-size:10px!important}.welcome-events{display:grid;gap:10px}.welcome-event{border:1px solid #b59b58;border-radius:12px;padding:14px;background:#294736}.welcome-event h3{margin:5px 0}.welcome-event strong{display:block;margin-bottom:12px}.welcome-event p{margin:6px 0!important}#updates-dialog .welcome-heading{font:30px Georgia,serif;color:#eed397}#updates-dialog .welcome-news p{white-space:pre-line}#updates-dialog{max-height:85dvh;overflow:auto}@media(max-height:500px){.race-hub{padding:12px 16px 100px}.race-hub>header{margin-bottom:12px}.race-hub h1{font-size:26px}.hub-grid{grid-template-columns:repeat(3,minmax(215px,1fr))}.hub-race{min-height:230px;padding:16px;gap:9px}.hub-race h2,.hub-race h3{font-size:22px}}@media(max-width:600px){.hub-grid{grid-template-columns:1fr}.race-hub>header{align-items:flex-start;gap:8px}.race-hub>header button{font-size:11px}.hub-race{min-height:230px}}#updates-dialog .welcome-event{padding:14px;color:#f1e5bf}#updates-dialog .welcome-event h3,#updates-dialog .welcome-event p{color:inherit}#updates-dialog .welcome-heading{color:#254b37}@media(max-height:500px){.race-hub>header{margin-bottom:8px}.race-hub h1{font-size:22px;margin:4px 0}.race-hub>header p{font-size:11px;margin:4px 0}.hub-race{min-height:170px;padding:12px;gap:5px}.hub-race h2,.hub-race h3{font-size:20px}.hub-race p{font-size:11px;line-height:1.25}.hub-race small{font-size:10px;line-height:1.25}.hub-race strong{font-size:13px}.hub-go{padding-top:4px;font-size:12px}.hub-event>small{display:none}}.stable-content[data-tab-view=prepare]:has(.plan-screen){display:flex;flex-direction:column;min-height:0;overflow:hidden}.stable-content[data-tab-view=prepare]>.race-back{align-self:flex-start;flex:none;margin:0 0 5px;min-height:32px;padding:5px 12px}.stable-content[data-tab-view=prepare]>.plan-screen{flex:1;min-height:0;height:auto;overflow:hidden}.plan-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:8px}.plan-scroll .plan-body{min-height:310px}.plan-scroll .plan-controls .tactics{overflow:visible;flex:0 0 auto}.plan-actions{flex:none;padding:8px 0 0;background:#18382c;border-top:1px solid #d8bf7955}.plan-actions #start{width:100%;min-height:44px;background:#e8cc88;color:#183527;border-radius:12px}.plan-scroll .event-conditions{margin:6px 0;padding:8px 12px}@media(orientation:landscape)and (max-height:600px){.plan-scroll .plan-body{min-height:180px}.plan-actions{padding-top:4px}.plan-scroll .plan-race-summary{flex-wrap:wrap;gap:4px 14px}.plan-scroll .plan-race-summary p{margin:0}.plan-scroll .plan-controls .tactics{min-height:50px}}@media(max-width:650px)and (orientation:portrait){.plan-scroll .plan-body{display:flex;flex-direction:column;gap:12px}.plan-scroll .plan-horse-area{min-height:230px}.plan-scroll .plan-controls{min-height:0}.plan-scroll .plan-race-summary{flex-wrap:wrap;gap:6px}.plan-scroll .plan-race-summary p{order:3;flex-basis:100%;margin:0}.plan-scroll .plan-race-summary h2{font-size:20px}}.stable-content[data-tab-view=prepare]:has(.race-hub){overflow:hidden;min-height:0}.race-hub{box-sizing:border-box;height:100%;min-height:0;max-width:none;padding:4px 6px;display:flex;flex-direction:column;overflow:hidden}.race-hub>header{flex:none;gap:12px;margin:0 0 8px}.race-hub h1{font-size:24px;margin:3px 0}.race-hub>header p{font-size:12px;margin:3px 0}.race-hub>header small{font-size:10px}.hub-swipe{flex:none;color:#ddce9c;font-size:11px;margin:0 0 5px;text-align:right}.hub-grid{display:flex;flex:1;min-height:0;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding:3px;overscroll-behavior-x:contain;padding:3px 3px 8px;scrollbar-width:thin;scrollbar-color:#b49d61 #19372a}.hub-race{flex:0 0 calc((100% - 24px)/3);height:100%;min-height:0;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:always;padding:16px;gap:8px;white-space:normal}.hub-race h2,.hub-race h3{font-size:23px;line-height:1.15;overflow-wrap:anywhere}.hub-race p,.hub-race small{font-size:12px;line-height:1.35}.hub-race strong{font-size:15px}.hub-race .hub-go{padding-top:6px;font-size:13px}.hub-event>small{display:block}.hub-race .hub-symbol{font-size:50px}@media(max-width:650px){.hub-race{flex-basis:88%;padding:18px;gap:12px}.race-hub>header{align-items:center}.race-hub h1{font-size:22px}.race-hub>header button{font-size:11px;padding:8px}.hub-race h2,.hub-race h3{font-size:25px}}@media(orientation:landscape)and (max-height:600px){.race-hub>header{margin-bottom:2px}.race-hub>header small,.race-hub>header p{display:none}.race-hub h1{font-size:19px;margin:0}.race-hub>header button{min-height:30px;padding:4px 10px;font-size:11px}.hub-swipe{margin:0;font-size:10px}.hub-grid{gap:10px;padding-bottom:5px}.hub-race{flex-basis:44%;padding:9px 12px;gap:4px}.hub-race h2,.hub-race h3{font-size:19px}.hub-race p,.hub-race small{font-size:11px;line-height:1.2}.hub-race strong{font-size:13px}.hub-tag{font-size:9px}.hub-race .hub-go{font-size:11px;padding-top:2px}}@media(orientation:landscape)and (max-height:360px){.hub-race{gap:3px;padding:7px 10px}.hub-race>p{display:none}.hub-race h2,.hub-race h3{font-size:17px}.hub-race .hub-go{padding-top:0}}.hub-grid{flex:0 1 232px;align-items:stretch;gap:10px}.hub-race{flex-basis:240px;padding:12px;gap:6px;border-radius:13px}.hub-race h2,.hub-race h3{font-size:20px}.hub-race .hub-symbol{font-size:36px}.hub-race .hub-go{min-height:30px;display:flex;align-items:flex-end}.hub-practice>p,.hub-mixed>p{display:none}@media(max-width:650px){.hub-race{flex-basis:220px;padding:12px;gap:6px}.hub-race h2,.hub-race h3{font-size:20px}}@media(orientation:landscape)and (max-height:600px){.hub-grid{flex:0 1 188px;gap:8px}.hub-race{flex-basis:max(190px,calc((100% - 16px)/3));padding:9px;gap:4px}.hub-race h2,.hub-race h3{font-size:18px}.hub-race .hub-go{min-height:24px}.hub-race>small{line-height:1.25}}.hub-distance button{min-height:40px;width:100%;padding:6px 8px;font-size:13px;border-radius:8px;border:1px solid #9eb494;background:#294e3b;color:#fff5d7}.hub-distance>small:last-child{font-size:10px}.hub-distance{cursor:default}.hub-distance h2{font-size:19px}@media(orientation:landscape)and (max-height:600px){.hub-distance>small{display:none}.hub-distance button{min-height:36px;flex-shrink:0;font-size:11px;white-space:nowrap;padding:4px}.hub-distance h2{font-size:17px}.hub-distance{gap:4px}}.hub-distance{gap:4px}.hub-distance .hub-race-content{display:flex;flex-direction:column;gap:10px;height:100%}.hub-locked{position:relative;overflow:hidden}.hub-locked .hub-race-content{filter:blur(2px);opacity:.38;pointer-events:none;-webkit-user-select:none;user-select:none}.hub-tier-lock{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px;text-align:center;background:#10251e55;color:#fff0ca}.hub-tier-lock>span{font-size:36px;color:#e8c87d}.hub-tier-lock strong{font-size:18px;line-height:1.35}.hub-tier-lock small{font-size:13px;line-height:1.5}.trophy-shelf{display:flex;align-items:center;gap:10px;width:100%;padding:10px!important;border:1px solid #b28c51;border-radius:12px;background:linear-gradient(180deg,#213f31,#152b22 80%,#715033 81%,#3e2c20);color:#f5dfa5;cursor:pointer;margin-bottom:8px}.shelf-art{display:flex;align-items:end}.shelf-art svg{width:30px;height:42px;filter:drop-shadow(0 2px 3px #0008)}.trophy-shelf b,.trophy-shelf small{display:block;font-size:12px;color:#f5dfa5}.trophy-cabinet{width:min(850px,94vw);max-height:85dvh;box-sizing:border-box;border:1px solid #c4a464;border-radius:20px;background:radial-gradient(ellipse at top,#365c43,#102b22 70%);color:#f5e6bf;padding:22px;overflow:auto}.trophy-cabinet::backdrop{background:#051810c9;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.trophy-cabinet header{display:flex;justify-content:space-between;align-items:center;background:none;padding:0;min-height:0}.trophy-cabinet h2,.trophy-cabinet h3,.trophy-cabinet p,.trophy-cabinet b,.trophy-cabinet small{color:inherit}.trophy-cabinet h2{font:32px Georgia,serif;margin:5px 0}.trophy-cabinet header button{border:1px solid #c4a464;background:#294936;color:#ffe9b3;border-radius:50%;width:40px;height:40px;cursor:pointer}.trophy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px}.trophy-grid article{padding:18px;text-align:center;border:1px solid #79643f;border-radius:12px;background:linear-gradient(#193b2b,#13291e 87%,#725134 88%,#39291f);box-shadow:inset 0 1px 20px #0004}.award-art{display:flex;justify-content:center;gap:12px}.award-art svg{height:110px;width:90px;filter:drop-shadow(0 5px 8px #0008)}.trophy-grid h3{font:18px Georgia,serif}.trophy-grid p{font-size:12px}.trophy-empty{grid-column:1/-1;text-align:center;padding:20px}.trophy-empty .award-art{opacity:.6}.trophy-cabinet{width:min(850px,calc(100vw - 24px));height:min(720px,calc(100dvh - 24px));max-height:none;padding:18px;overflow:hidden}.trophy-cabinet[open]{display:flex;flex-direction:column;gap:10px}.trophy-cabinet header{flex:none;gap:12px;position:static;border:0}.trophy-cabinet header button{flex:none;width:44px;height:44px}.trophy-cabinet h2{font-size:clamp(20px,3vw,30px)}.museum-content{min-height:0;overflow:auto;overscroll-behavior:contain;padding:3px}.museum-content>p{font-size:13px;margin:4px 0 12px}.museum-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:10px}.museum-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:12px 8px;border:1px solid #65806d;border-radius:12px;background:linear-gradient(#284936,#182f25);color:#f1e4c2;cursor:pointer}.museum-card:hover,.museum-card:focus-visible{outline:2px solid #eed188;outline-offset:-2px}.museum-card b{font:14px Georgia,serif;line-height:1.25}.museum-card small{font-size:11px;margin-top:auto;color:#b8cabb}.museum-card.earned{border-color:#c8a24d;background:linear-gradient(#42503a,#223629)}.museum-art{display:flex;justify-content:center}.museum-art svg{width:82px;height:94px;filter:drop-shadow(0 3px 4px #0006)}.locked .museum-art,.museum-art.locked{filter:grayscale(1);opacity:.55}.museum-card strong{color:#edcf8d}.museum-detail{width:min(700px,calc(100vw - 24px));height:auto;max-height:calc(100dvh - 24px)}.museum-detail-body{display:grid;grid-template-columns:40% 1fr;gap:20px}.museum-detail .museum-art svg{width:100%;height:260px}.museum-detail h3{margin:8px 0;font-size:18px}.museum-detail p{font-size:13px;line-height:1.6}.museum-detail ul{list-style:none;padding:0}.museum-detail li{padding:9px 0;border-top:1px solid #58705f;font-size:13px}.museum-detail time{display:block;font-size:12px;margin-top:4px;color:#cad4c8}@media(max-width:480px){.museum-detail-body{grid-template-columns:1fr;gap:4px}.museum-detail .museum-art svg{height:180px}.trophy-cabinet{padding:12px}.museum-grid{gap:8px}}@media(max-height:500px){.trophy-cabinet{padding:10px;gap:4px}.museum-card{padding:8px}.museum-art svg{height:70px}.museum-detail .museum-art svg{height:190px}.museum-detail-body{grid-template-columns:35% 1fr}}#trophy-dialog{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:12px 20px;gap:8px;box-sizing:border-box}#trophy-dialog>header{height:48px}#trophy-dialog h2{font-size:24px;margin:0}#trophy-dialog header small{font-size:10px}#trophy-dialog>.museum-content{flex:1;padding:2px;min-height:0}#trophy-dialog .museum-content>p{font-size:12px;margin:0 0 8px}#trophy-dialog .museum-grid{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;align-content:start}#trophy-dialog .museum-card{height:86px;padding:5px 4px;gap:2px;position:relative;overflow:hidden;border-radius:8px}#trophy-dialog .museum-card[hidden]{display:none}#trophy-dialog .museum-art svg{width:44px;height:48px}#trophy-dialog .museum-card b{font:10px/1.15 Georgia,serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#trophy-dialog .museum-card small{display:none}#trophy-dialog .museum-card strong,#trophy-dialog .museum-card>span:not(.museum-art){font-size:9px;line-height:10px}#trophy-dialog .museum-card.earned:after{content:"✓";position:absolute;top:3px;right:5px;color:#f4d274;font-size:11px}.museum-tabs{display:flex;justify-content:center;gap:8px;flex:none;padding:6px 0 max(4px,env(safe-area-inset-bottom));border-top:1px solid #526957}.museum-tabs button{width:min(180px,40vw);height:44px;border:1px solid #6c836d;border-radius:10px;background:#1c382c;color:#e2dec8;font-size:14px;cursor:pointer}.museum-tabs button[aria-pressed=true]{background:#d9bd78;color:#20372a;border-color:#f2d88d}.museum-tabs button:focus-visible{outline:2px solid #fff;outline-offset:2px}@media(max-width:600px){#trophy-dialog{padding:8px;gap:5px}#trophy-dialog h2{font-size:20px}#trophy-dialog .museum-grid{grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:5px}#trophy-dialog .museum-card{height:78px}#trophy-dialog .museum-art svg{width:36px;height:40px}}@media(max-height:500px){#trophy-dialog>header{height:40px}#trophy-dialog header small{display:none}#trophy-dialog .museum-content>p{margin-bottom:4px}#trophy-dialog .museum-grid{grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:5px}#trophy-dialog .museum-card{height:76px}#trophy-dialog .museum-art svg{height:38px}.museum-tabs{padding-top:4px}.museum-tabs button{height:40px}}#trophy-dialog .museum-card small{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.qualification-preparation,.race-draw{max-width:820px;margin:12px auto;text-align:center;padding:18px;border-radius:18px;background:#183c30;color:#f4e6c8}.qualification-preparation h1,.qualification-preparation h2,.race-draw h1{color:inherit}.qualification-preparation>.primary,.qualification-preparation>.secondary{margin:6px}.qualification-preparation .tactics{display:flex;gap:8px}.qualification-preparation .tactic{flex:1;min-width:0}.qualification-preparation .tactic b,.qualification-preparation .tactic small{display:block}.draw-lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.draw-lane{display:flex;align-items:center;gap:10px;padding:12px;background:#284e3e;border:1px solid #68816d;border-radius:12px}.draw-lane b{font-size:26px;color:#f1cf81}.draw-lane span{opacity:0;transform:translateY(6px);transition:opacity .25s,transform .25s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draw-lane.revealed span{opacity:1;transform:none}.draw-lane.mine{border-color:#ebcd7d;background:#5b5430}.draw-countdown{font-size:32px;min-height:38px;margin:10px;color:#f5d78b}@media(prefers-reduced-motion:reduce){.draw-lane span{transition:none}}@media(max-height:500px){.qualification-preparation,.race-draw{padding:10px;margin:0 auto}.qualification-preparation h1,.race-draw h1{font-size:24px;margin:5px}.qualification-preparation h2{font-size:18px;margin:5px}.qualification-preparation p,.race-draw p{margin:6px}.qualification-preparation .tactic,.draw-lane{padding:8px}}.qualification-preparation>p,.race-draw>p{color:#eee1c5}.qualification-preparation .tactic[aria-pressed=true]{outline:3px solid #e3bf69;background:#f3dfaa;color:#20392b}.qualification-preparation>.primary{background:#e3bf69;color:#20392b}.qualification-preparation{box-sizing:border-box;max-height:calc(100dvh - 130px);overflow:auto}.qualification-preparation label{display:flex;align-items:center;justify-content:center;gap:12px}.qualification-preparation select{min-height:44px}.qualification-actions{position:sticky;bottom:-18px;padding:10px 0;background:#183c30;display:flex;justify-content:center;gap:8px}.qualification-actions button{min-height:44px}.qualification-actions .primary{background:#e3bf69;color:#20392b}@media(max-height:500px){.qualification-preparation .tactic small{display:none}.qualification-actions{bottom:-10px}.qualification-preparation>p{font-size:12px}}@media(max-height:500px){.qualification-preparation{max-height:calc(100dvh - 85px)}.qualification-preparation>h2,.qualification-preparation>p:last-of-type{display:none}.qualification-actions{padding:6px 0}}@media(max-height:500px){.qualification-preparation>h1{display:inline;font-size:16px;margin:0 0 0 10px}.qualification-preparation{padding-top:6px}.qualification-preparation label{margin-top:4px}}.care-room.has-action-strip .care-subnav{position:fixed;bottom:84px;max-width:calc(100vw - 24px);display:flex;flex-wrap:nowrap;align-items:stretch;gap:6px;overflow-x:auto}.care-room.has-action-strip .care-subnav button{flex:0 0 auto;width:auto;min-height:44px;min-width:88px;margin:0;padding:7px 12px;font-size:13px;border-radius:9px}.care-room.has-action-strip .care-subnav button b,.care-room.has-action-strip .care-subnav button span{display:block}.care-room.has-action-strip .care-subnav .training-choice>span{display:none}.care-room.has-action-strip .care-subnav .section-help{min-width:44px;width:44px;padding:8px;font-size:22px;background:#315540;color:#ffe7b0}.care-room.has-action-strip .care-subnav [aria-pressed=true]{outline:2px solid #f3d089;outline-offset:-3px;background:#355c40;color:#fff0c6}.care-room.has-action-strip .care-layout{max-height:calc(100dvh - 245px);bottom:auto}.care-room.has-action-strip .care-details{max-height:calc(100dvh - 245px);overflow:auto}.section-help-dialog{max-width:420px;width:calc(100vw - 40px);box-sizing:border-box}.section-help-dialog p{font-size:16px;line-height:1.6}.section-help-dialog::backdrop{background:#061b14b8}@media(max-width:480px){.care-room.has-action-strip .care-subnav{gap:4px;padding:6px}.care-room.has-action-strip .care-subnav button{min-width:78px;padding:6px;font-size:12px}.care-room.has-action-strip .care-subnav .section-help{min-width:36px;width:36px}}.quest-screen{position:fixed;inset:76px 16px 12px;z-index:40;box-sizing:border-box;background:radial-gradient(ellipse at top,#31533c,#102b23 75%);border:1px solid #8c8151;border-radius:18px;color:#f6efd8;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:10px;padding:18px;overflow:hidden}.quest-screen header{display:flex!important;align-items:center;justify-content:space-between;gap:12px;background:none!important;padding:0!important}.quest-screen h1{font:26px Georgia,serif;margin:0}.quest-screen header p{margin:4px 0;font-size:13px}.quest-screen button{cursor:pointer;min-height:44px;padding:8px 14px;border-radius:9px;border:1px solid #ac9a62;background:#e5c98c;color:#153c2c;font:inherit}.quest-screen .quest-steps{display:flex;justify-content:center;gap:6px;flex-wrap:nowrap}.quest-screen .quest-steps button{min-height:34px;min-width:34px;padding:5px;font-size:12px;background:#254a37;color:#f7e7c4}.quest-screen .quest-steps button[aria-current=step]{background:#e5c98c;color:#153c2c}.quest-screen .quest-focus{display:flex;flex-direction:column;justify-content:center;gap:10px;max-width:680px;width:100%;margin:auto;max-height:100%;text-align:center}.quest-focus h2{font:clamp(20px,3vw,32px) Georgia,serif;margin:0}.quest-focus p{font-size:16px;line-height:1.45;margin:0}.quest-focus .quest-reward{font-size:22px;color:#eed18a}.quest-focus progress{width:100%;accent-color:#d8bc72;height:12px}.quest-focus button{align-self:center}.quest-screen .quest-pager{display:flex;align-items:center;justify-content:space-between}.quest-screen .qualification-path{font-size:13px;color:#d7c58e}.quest-screen .quest-focus small{font-size:13px}.quest-screen .quest-focus .qualification-warning{font-size:13px;color:#f1d2a0}@media(orientation:landscape)and (max-height:600px){.quest-screen{inset:56px 10px 6px;padding:10px;gap:5px}.quest-screen h1{font-size:20px}.quest-screen header p{display:none}.quest-screen .quest-steps button{min-height:28px;padding:2px}.quest-screen .quest-focus{gap:5px}.quest-screen .quest-focus h2{font-size:23px}.quest-screen .quest-focus p{font-size:13px}.quest-screen .quest-focus .quest-reward{font-size:16px}.quest-screen .quest-pager button{min-height:36px}.quest-screen .quest-focus small{font-size:11px}}@media(max-width:480px)and (orientation:portrait){.quest-screen{inset:140px 8px 8px;padding:12px;gap:10px}.quest-screen h1{font-size:21px}.quest-screen .quest-steps{gap:3px}.quest-screen .quest-steps button{min-width:28px;padding:4px}.quest-screen .quest-focus p{font-size:14px}}.quest-screen>header{min-height:0;height:auto;border:0;box-shadow:none}.quest-screen h1,.quest-screen h2,.quest-screen p,.quest-screen strong,.quest-screen b,.quest-screen small,.quest-screen .quest-pager span{color:#f6efd8}.quest-screen .quest-focus{height:100%;min-height:0;margin:0 auto}.quest-screen .quest-focus progress{display:block;flex:0 0 8px;height:8px;min-height:8px;margin:0}.quest-screen .quest-focus .quest-reward{color:#eed18a}.quest-screen .quest-focus p{color:#dfdfcb}.stall-info [data-room],.stall-info [data-select]{display:none!important}#app[data-screen=stable] .game-nav{display:flex;flex-wrap:nowrap;width:min(440px,calc(100% - 24px));height:74px;overflow-x:auto;overflow-y:hidden}#app[data-screen=stable] .game-nav button{flex:1 0 auto;min-width:64px;white-space:nowrap;min-height:0;height:62px}@media(orientation:landscape)and (max-height:600px){#app[data-screen=stable] .game-nav{height:62px;width:min(400px,calc(100% - 24px))}#app[data-screen=stable] .game-nav button{height:50px}}.stable-content[data-tab-view=stable] .horse-strip{height:106px!important;padding-top:44px;box-sizing:border-box;align-items:stretch}.horse-strip .horse-strip-item{position:relative;flex:0 0 175px;min-width:0;display:flex}.horse-strip .horse-strip-item>[data-display-horse]{width:100%;flex:1;min-width:0}.horse-strip .horse-strip-item>.horse-care-entry{position:absolute;bottom:calc(100% + 6px);left:0;width:100%;height:36px;min-height:36px;justify-content:center;white-space:nowrap;padding:6px 8px;border:1px solid #e1c991;border-radius:10px;background:#183d30f5;color:#ffedbf;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 3px 12px #0005}@media(orientation:landscape)and (max-height:600px){.stable-content[data-tab-view=stable] .horse-strip{height:96px!important}}.quest-celebration{display:flex;flex-direction:column;align-items:center;gap:10px;animation:quest-reward-in .45s ease-out}.quest-celebration .reward-star{font-size:44px;color:#f3cf79;text-shadow:0 0 24px #e8b64180}.quest-celebration strong{font-size:20px}.quest-celebration small{letter-spacing:.04em;color:#d8c797}@keyframes quest-reward-in{0%{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.quest-celebration{animation:none}}@media(orientation:landscape)and (max-height:600px){.quest-celebration{gap:4px}.quest-celebration .reward-star{font-size:24px}.quest-celebration strong{font-size:16px}.quest-celebration h2{font-size:20px!important}.quest-celebration p{font-size:12px!important}}#app[data-screen=room] .room-nav{left:158px;right:12px;bottom:max(8px,env(safe-area-inset-bottom));transform:none;width:auto;max-width:600px;display:flex;flex-wrap:nowrap;justify-content:flex-start}#app[data-screen=room] .room-nav button{flex:1 0 auto;min-width:64px;padding-inline:8px}#app[data-screen=room] #care-back.room-home{position:fixed;left:max(12px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));z-index:15;width:134px;height:58px;min-height:58px;margin:0;padding:8px 12px;color:#18382a;background:linear-gradient(135deg,#fff0bd,#d9b86d);border:2px solid #ffdf93;border-radius:12px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:9px;text-decoration:none;box-shadow:0 4px 16px #0006;font-family:inherit;cursor:pointer}#app[data-screen=room] #care-back.room-home svg{width:30px;height:30px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}#app[data-screen=room] #care-back.room-home span{font-size:15px;font-weight:700;line-height:1.2;white-space:normal}#app[data-screen=room] #care-back.room-home:hover{filter:brightness(1.08)}#app[data-screen=room] #care-back.room-home:focus-visible{outline:3px solid #fff;outline-offset:3px}@media(max-width:480px){#app[data-screen=room] #care-back.room-home{left:8px;width:88px;gap:3px;flex-direction:column;padding:5px;height:62px}#app[data-screen=room] #care-back.room-home span{font-size:13px}#app[data-screen=room] .room-nav{left:104px;right:8px}}.quest-screen{display:block;overflow:auto}.quest-screen>header{position:static!important;min-height:60px;margin-bottom:16px}.quest-screen>.quest-group-title{font-size:20px;margin:18px 0}.quest-screen .quest-group{background:linear-gradient(135deg,#34553c,#152e26);color:#f9e4b7;padding:24px;text-align:left}.quest-screen .quest-group h2{font-size:20px}.quest-screen>button{display:inline-block}.quest-screen .quest-groups{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px}.quest-screen .quest-group{flex:0 0 min(340px,85vw);scroll-snap-align:start}.quest-screen .quest-timeline{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:18px;padding:18px 4px 20px;margin:0;overscroll-behavior-x:contain}.quest-screen .quest-timeline li{flex:0 0 min(330px,75vw);display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px;border:1px solid #ab925b;border-radius:16px;padding:24px 18px 16px;margin:12px 0 0;background:linear-gradient(145deg,#36523b,#183328);scroll-snap-align:start;min-height:220px;box-sizing:border-box}.quest-screen .quest-node{top:-17px;left:18px}.quest-screen .quest-timeline li>div{flex:1}.quest-screen .quest-timeline h3{font-size:19px}.quest-screen .quest-swipe-hint{font-size:12px;color:#d7c58e}.quest-screen .quest-timeline li.claimed{opacity:.75}@media(orientation:landscape)and (max-height:600px){.quest-screen>header{min-height:36px;margin-bottom:6px}.quest-screen>.quest-group-title{display:inline-block;margin:6px 16px;font-size:17px}.quest-screen .quest-swipe-hint{margin:4px 0}.quest-screen .quest-timeline li{min-height:170px;gap:6px;padding:20px 14px 10px}.quest-screen .quest-timeline h3{font-size:17px}}html,body,*{scrollbar-width:none!important}*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}.quest-screen .quest-timeline{gap:0;align-items:flex-start;padding:8px 0 12px;scroll-padding-left:0}.quest-screen .quest-timeline li{flex:0 0 235px;min-height:0!important;margin:0;padding:44px 18px 8px 8px;border:0;border-radius:0;background:none;box-shadow:none;justify-content:flex-start;gap:8px;position:relative}.quest-screen .quest-timeline li:before{content:"";position:absolute;top:17px;left:10px;right:-10px;height:2px;background:linear-gradient(90deg,#d5b267,#776743)}.quest-screen .quest-timeline li:last-child:before{display:none}.quest-screen .quest-node{top:0;left:8px;width:34px;height:34px;box-shadow:0 0 0 4px #173529,0 0 15px #d5b26733}.quest-screen .quest-timeline li>div{flex:0 0 auto}.quest-screen .quest-timeline h3{font-size:15px;margin:0 0 6px;line-height:1.25}.quest-screen .quest-timeline p{font-size:12px;line-height:1.4;margin:0 0 6px}.quest-screen .quest-timeline small{font-size:11px;color:#d8be82}.quest-screen .quest-timeline button{font-size:12px;min-height:36px;padding:6px 12px;border-radius:18px}.quest-screen .quest-route-controls{display:flex;align-items:center;gap:6px;margin:4px 0 10px}.quest-screen .quest-route-controls p{flex:1;margin:0}.quest-screen .quest-route-controls button{padding:0;width:44px;height:44px;border-radius:50%;font-size:24px;background:#254934;color:#e8cb88}.quest-screen .quest-group{flex-basis:230px;padding:14px 16px;min-height:0}.quest-screen .quest-group h2{font-size:17px;margin:6px 0}.quest-screen .quest-group p{font-size:12px;margin:6px 0}.quest-screen .quest-timeline .qualification-card{padding:0}.quest-screen .quest-timeline h2{font-size:15px}@media(orientation:landscape)and (max-height:600px){.quest-screen .quest-route-controls{margin:0 0 4px}.quest-screen .quest-timeline li{flex-basis:220px;padding-top:40px}.quest-screen .quest-timeline h3{font-size:14px}}@media(orientation:landscape)and (max-height:600px){.quest-screen>header{min-height:28px;margin-bottom:0}.quest-screen>header button,.quest-screen>button{min-height:36px;padding:5px 10px}.quest-screen .quest-route-controls{height:36px}.quest-screen .quest-route-controls button{height:36px;min-height:36px;width:40px}.quest-screen .quest-timeline li{padding-top:38px}.quest-screen .quest-timeline p{line-height:1.25}}.care-subnav .form-training-choice{background:linear-gradient(#edd79b,#bb9551)!important;color:#183b2b!important;border:2px solid #f6dfa7!important;border-radius:12px;font-weight:700}.care-subnav .form-training-choice small{display:none}.training-dashboard .form-status{margin:8px 0 14px}.training-dashboard .form-status meter{width:100%;height:14px}.training-dashboard .training-stats{margin-top:12px}@media(orientation:landscape)and (max-height:450px){.quest-screen .quest-timeline li{flex-basis:240px;gap:5px;padding-top:36px}.quest-screen .quest-timeline h3,.quest-screen .quest-timeline p{margin-bottom:4px}.quest-screen .quest-route-controls{height:30px}.quest-screen .quest-route-controls button{height:30px;min-height:30px}.quest-screen .quest-timeline{padding-top:4px}}@media(orientation:landscape)and (max-height:450px){.quest-screen .quest-timeline li:last-child{flex-basis:420px}.quest-screen .promotion-checks{gap:5px;margin:4px 0}.quest-screen .promotion-checks>div{padding:5px}.quest-screen .promotion-checks small{font-size:10px;line-height:1.15}.quest-screen .promotion-checks b{font-size:14px;margin:3px 0}.quest-screen .promotion-journey h2{margin:0 0 4px}.quest-screen .journey-note,.quest-screen .journey-actions{margin:4px 0}}@media(orientation:landscape)and (max-height:450px){.quest-screen .promotion-checks>div{gap:2px;padding:4px}.quest-screen .promotion-checks small{margin:0!important}.quest-screen .promotion-checks b{margin:0;line-height:1.15}.quest-screen .promotion-checks progress{height:8px}.quest-screen .promotion-journey{gap:2px}.quest-screen .promotion-checks{margin:2px 0}}@media(orientation:landscape)and (max-height:450px){.quest-screen .quest-timeline li:last-child{flex-basis:min(560px,80vw)}.quest-screen .promotion-checks small{font-size:10px!important}.quest-screen .promotion-checks b{font-size:13px!important}.quest-screen .journey-actions button{min-height:32px;padding:4px 10px}.quest-screen .journey-note{font-size:11px!important;margin:2px 0!important}.quest-screen .journey-actions{margin:0}}@media(orientation:portrait)and (max-width:480px){.quest-screen .quest-timeline li:last-child{flex-basis:calc(100vw - 64px)}.quest-screen .promotion-journey{gap:6px}.quest-screen .promotion-checks{gap:4px}.quest-screen .promotion-checks>div{padding:5px;gap:4px}.quest-screen .promotion-checks b{font-size:13px}.quest-screen .promotion-checks small{font-size:11px;margin:0}.quest-screen .promotion-journey h2{margin:0 0 5px}}.quest-screen:not(.quest-hub){display:grid;grid-template-areas:"heading heading" "route controls" "steps steps";grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr);gap:8px;overflow:hidden}.quest-screen:not(.quest-hub)>header{grid-area:heading;min-height:44px;margin:0}.quest-route-heading{grid-area:route;display:flex;align-items:center;gap:12px;min-width:0}.quest-screen .quest-route-heading h2{font-size:17px;margin:0}.quest-screen .quest-route-controls{grid-area:controls;margin:0;height:auto}.quest-screen .quest-route-controls button{width:44px;height:44px;min-height:44px}.quest-screen .quest-timeline{grid-area:steps;min-height:0;margin:0;padding:4px 0 0;align-items:flex-start}.quest-screen .quest-timeline li.quest-qualification{flex-basis:min(680px,100%);padding-right:8px;box-sizing:border-box}.quest-screen .quest-qualification>div{width:100%;min-width:0}.quest-screen .promotion-journey{gap:6px}.quest-screen .promotion-checks{gap:8px;margin:0}.quest-screen .promotion-checks>div{padding:8px;gap:3px}.quest-screen .promotion-checks small{margin:0;font-size:12px!important;line-height:1.25}.quest-screen .promotion-checks b{margin:0;font-size:16px!important;line-height:1.2;overflow-wrap:anywhere}.quest-screen .promotion-journey h2{margin:0;font-size:18px}.quest-screen .journey-note{margin:0!important;font-size:12px!important;line-height:1.3}.quest-screen .journey-actions{margin:0}.quest-screen .journey-actions button{min-height:44px;padding:7px 12px;font-size:13px}@media(max-width:600px)and (orientation:portrait){.quest-screen:not(.quest-hub){grid-template-areas:"heading" "route" "controls" "steps";grid-template-columns:minmax(0,1fr);gap:6px;inset:130px 8px max(8px,env(safe-area-inset-bottom));padding:10px}.quest-route-heading{justify-content:space-between;gap:8px}.quest-screen .quest-route-heading h2{font-size:15px;text-align:right}.quest-screen .quest-route-heading button{font-size:12px;padding:6px 8px}.quest-screen .promotion-checks{gap:4px}.quest-screen .promotion-checks>div{padding:6px}.quest-screen .promotion-checks b{font-size:14px!important}}@media(orientation:landscape)and (max-height:600px){.quest-screen:not(.quest-hub){inset:52px 8px max(6px,env(safe-area-inset-bottom));padding:8px;gap:4px}.quest-screen .quest-route-controls .quest-swipe-hint{display:none}.quest-screen .quest-timeline li{padding-top:38px}.quest-screen .promotion-checks>div{padding:5px 8px}.quest-screen .promotion-journey{gap:4px}.quest-screen .promotion-journey h2{font-size:16px}}.quest-screen .promotion-checks progress{display:block;height:8px;min-height:8px;margin:3px 0 0}.quest-screen .promotion-checks small{overflow-wrap:anywhere;min-width:0}@media(max-width:600px)and (orientation:portrait){.quest-screen:not(.quest-hub)>header{flex-wrap:nowrap;flex-direction:row;align-items:center}.quest-screen:not(.quest-hub)>header p{display:none}.quest-screen:not(.quest-hub)>header button{width:auto;max-width:60%;margin:0;font-size:12px}}@media(max-width:600px)and (orientation:portrait){.quest-screen:not(.quest-hub){grid-template-rows:auto auto auto minmax(0,1fr)}}#app .care-room.integrated-care .care-layout{display:none}#app .care-room.integrated-care .care-subnav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:4px;padding:4px;position:absolute;inset:64px 8px 80px auto;transform:none;width:164px;max-width:calc(100% - 16px);max-height:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d7bf83 #203c30;scroll-padding-top:42px}#app .care-room.integrated-care .care-subnav>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;width:100%;height:64px;min-height:64px;padding:3px;font-size:11px;line-height:13px;white-space:normal;overflow:hidden}#app .care-room.integrated-care .care-subnav>button img{display:block;width:40px;height:40px;min-width:40px;min-height:40px;flex:none;object-fit:contain;margin:0}#app .care-room.integrated-care .care-subnav>button small{display:none}#app .care-room.integrated-care .care-subnav>.section-help{font-size:22px}#app .care-room.integrated-care .care-morale-summary{grid-column:1/-1;position:sticky;top:-4px;z-index:2;background:#203c30;border-bottom:1px solid #c6b77b;padding:4px;margin:0;color:#fff1c7;min-height:34px;height:auto}#app .care-room.integrated-care .care-morale-summary label{display:flex;justify-content:space-between;font-size:12px;line-height:16px;margin:0}#app .care-room.integrated-care .care-morale-summary progress{display:block;width:100%;height:8px;margin:2px 0 0}#app .care-room.integrated-care .care-morale-summary small{display:none}@media(orientation:landscape)and (max-height:420px){#app .care-room.integrated-care .care-subnav{top:54px;bottom:76px;width:156px}}@media(orientation:portrait){#app .care-room.integrated-care .care-subnav{top:174px;bottom:84px;width:144px}}#app .care-room.integrated-care .care-subnav{max-height:252px}#app[data-screen=room] .care-room.integrated-feeding .care-layout{display:contents}#app[data-screen=room] .care-room.integrated-feeding .care-details{position:absolute!important;inset:64px 8px 80px auto!important;width:164px!important;max-height:310px!important;padding:6px!important;margin:0!important;overflow:auto!important;box-sizing:border-box}#app .care-room.integrated-feeding .feeding-panel{display:flex;flex-direction:column;gap:3px}#app .care-room.integrated-feeding .feeding-panel>h2{display:none}#app .care-room.integrated-feeding .feeding-panel>label{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0;font-size:11px;line-height:15px}#app .care-room.integrated-feeding .feeding-panel progress{width:65%;height:7px;margin:0}#app .care-room.integrated-feeding .feeding-panel>p{order:2;margin:3px 0;font-size:11px;line-height:1.25}#app .care-room.integrated-feeding .feeding-panel>.care-subnav{position:static!important;transform:none!important;width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px;padding:0!important;margin:2px 0!important;border:0;background:none;box-shadow:none;order:1}#app .care-room.integrated-feeding .care-subnav>button{width:100%!important;min-width:0!important;min-height:44px!important;height:auto!important;padding:4px!important;font-size:11px!important;line-height:1.15;white-space:normal;order:2}#app .care-room.integrated-feeding .care-subnav>[data-care=standard],#app .care-room.integrated-feeding .care-subnav>[data-care=water]{order:0}#app[data-screen=room] .care-room.integrated-feeding .room-nav{left:158px!important;right:8px!important;width:auto!important;bottom:8px!important;transform:none!important;justify-content:flex-start;overflow-x:auto}#app[data-screen=room] .care-room.integrated-feeding .room-nav button{flex:1 0 auto!important;min-width:64px!important;width:auto!important;white-space:nowrap!important}@media(orientation:landscape)and (max-height:420px){#app[data-screen=room] .care-room.integrated-feeding .care-details{top:54px!important;bottom:76px!important;width:156px!important}}@media(orientation:portrait){#app[data-screen=room] .care-room.integrated-feeding .care-details{top:174px!important;bottom:84px!important;width:144px!important}#app[data-screen=room] .care-room.integrated-feeding .room-nav{left:104px!important}}.promotion-journey{display:flex;flex-direction:column;gap:12px;width:100%}.promotion-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.promotion-checks>div{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #857b57;border-radius:12px;background:#153728}.promotion-checks>div.met{border-color:#8ebd82;background:#234b32}.promotion-checks b{font-size:19px}.promotion-checks progress{width:100%}.journey-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.quest-focus .journey-note{font-size:14px}.promotion-journey+dialog p{color:#20392b}.promotion-journey+dialog b{color:#20392b}@media(orientation:landscape)and (max-height:600px){.promotion-journey{gap:4px}.promotion-checks{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.promotion-checks>div{padding:6px;gap:4px}.promotion-checks b{font-size:15px}.quest-focus .journey-note{font-size:12px}.journey-actions button{min-height:36px;padding:6px 10px}}.morale-meter{padding:8px 0;font-size:13px}.morale-meter label{display:flex;justify-content:space-between;gap:12px}.morale-meter progress{width:100%;height:12px;accent-color:#d5b56a}.morale-meter small{display:block;font-size:12px}.quest-panel h2{font-size:22px}.quest-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #bbaa7755}.quest-row p{font-size:13px;line-height:1.4;margin:5px 0}.quest-row small{font-size:12px}.quest-row button,.qualification-card button{min-height:44px;flex-shrink:0;padding:8px 12px;border-radius:8px;background:#ead29a;color:#203c2e;border:0}.quest-row.quest-complete b{color:#b5e3ab}.quest-summary{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;background:#234635;color:#f7e5ba;padding:10px 14px;border:1px solid #ab945a;border-radius:10px;cursor:pointer}.qualification-card{padding:12px 0}.qualification-card small{display:block;margin:8px 0}.care-room:has(.quest-panel) .care-layout{overflow:auto;bottom:76px}.care-room:has(.quest-panel) .care-details{max-height:100%;overflow:auto}.care-subnav{position:absolute;bottom:76px;left:50%;transform:translate(-50%);display:flex;gap:8px;max-width:95%;padding:8px;background:#173529ed;border-radius:12px;border:1px solid #b9a365;z-index:5}.care-subnav button{min-height:44px;min-width:88px;width:auto;padding:6px 12px;background:#ead29a;color:#203c2e;border:0;border-radius:8px;cursor:pointer}.care-subnav small{display:block;font-size:11px}.care-room:has(.care-mood) .care-layout{bottom:150px;overflow:auto}.room-nav{display:flex!important;flex-direction:row!important;overflow-x:auto;max-width:100%;justify-content:center}.room-nav button{flex:0 0 auto}.care-mood p{font-size:14px;line-height:1.5}.care-mood small{font-size:12px;line-height:1.5}.care-room .quest-row button{width:auto;margin:0}.care-room .quest-panel h2{font-size:22px}@media(max-width:700px){.room-nav{justify-content:flex-start}.quest-row{gap:8px}.quest-row button{padding:6px 8px}.care-room:has(.quest-panel) .care-layout{width:calc(100% - 24px)}}.care-room .room-nav{width:min(600px,calc(100% - 24px));bottom:8px;gap:4px;justify-content:space-evenly}.care-room .room-nav button{min-width:64px;padding:6px 8px}.care-room .care-subnav{bottom:84px}.care-room:has(.care-mood) .care-layout{top:36px;bottom:152px;height:auto;max-height:calc(100% - 188px)}.care-room:has(.care-mood) .care-details{max-height:100%;overflow:auto;box-sizing:border-box}.care-room:has(.quest-panel) .care-layout{top:36px;bottom:88px;height:auto;max-height:calc(100% - 124px)}@media(max-width:480px){.care-room .room-nav{justify-content:flex-start}.care-room .room-nav button{min-width:60px}.care-room:has(.care-mood) .care-layout{width:calc(100% - 24px)}}.care-room:has(.care-mood) .care-layout,.care-room:has(.care-mood) .care-details{max-height:min(440px,calc(100dvh - 248px));height:auto;bottom:auto}.care-room:has(.quest-panel) .care-layout,.care-room:has(.quest-panel) .care-details{max-height:min(580px,calc(100dvh - 166px));height:auto;bottom:auto}.quest-toast{position:fixed;top:76px;left:50%;transform:translate(-50%);z-index:10000;background:#214935;color:#ffedb0;border:1px solid #d1b572;padding:12px 20px;border-radius:12px;box-shadow:0 8px 30px #0006;animation:quest-celebrate .35s ease-out}@keyframes quest-celebrate{0%{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){.quest-toast{animation:none}}.stable-scene .stall-info{max-height:calc(100dvh - 140px);overflow-y:auto}.stall-info .quest-summary{position:static;display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:8px;font-size:12px;color:#f7e5ba;background:#234635;margin-bottom:6px}.stall-info .quest-summary b,.stall-info .quest-summary span{display:block;color:inherit;font-size:inherit}.stall-info .morale-meter{padding:4px 0;margin:0 8px 8px}.stall-info .morale-meter small{font-size:11px}.stall-info .morale-meter progress{height:8px}.stall-info .morale-meter{background:#173529f5;color:#f7e5ba;border-radius:10px;padding:8px;margin:0 0 8px}.stall-info .morale-meter small{color:#dfe6cd}@media(max-width:480px)and (orientation:portrait){.care-room:has(.quest-panel) .care-layout,.care-room:has(.care-mood) .care-layout{position:fixed;inset:220px 12px 96px;width:auto;height:auto;max-height:none;overflow:hidden}.care-room:has(.care-mood) .care-layout{bottom:170px}.care-room:has(.quest-panel) .care-details,.care-room:has(.care-mood) .care-details{height:100%;max-height:100%;overflow:auto}.care-room .room-nav{position:fixed;bottom:8px}.care-room .care-subnav{position:fixed;bottom:84px}}.quest-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.quest-group{background:linear-gradient(135deg,#34553c,#152e26);color:#f9e4b7;border:1px solid #bea36b;border-radius:16px;padding:24px;text-align:left;cursor:pointer}.quest-group h2,.quest-group-title{font-size:20px}.quest-timeline{list-style:none;padding:0 0 80px 12px;margin:24px 0}.quest-timeline li{position:relative;display:flex;align-items:center;gap:16px;border-left:2px solid #a98d57;padding:0 0 24px 28px;min-height:85px}.quest-timeline li:last-child{border-color:transparent}.quest-node{position:absolute;left:-17px;top:0;width:32px;height:32px;display:grid;place-items:center;background:#304b38;border:2px solid #bda264;border-radius:50%;color:#fff1c9}.quest-timeline .claimed .quest-node{background:#518256}.quest-timeline .ready .quest-node{background:#b88c37}.quest-timeline h3{font-size:16px;margin:0 0 5px}.quest-timeline p{font-size:13px;margin:0 0 6px}.quest-timeline li>div{flex:1}.quest-timeline button,.quest-screen>button,.quest-reward-overlay>button{min-height:44px;background:#e7cd93;color:#173529;border:0;border-radius:8px;padding:8px 14px}.quest-reward-overlay{position:fixed;inset:15% max(16px,calc((100vw - 600px)/2));z-index:100;background:#183e30;border:2px solid #dab976;border-radius:20px;padding:24px;overflow:auto;box-shadow:0 0 0 100vmax #000b;text-align:center}@media(max-width:600px){.quest-timeline li{flex-wrap:wrap;gap:8px}.quest-timeline li>div{flex-basis:100%}.quest-reward-overlay{inset:10% 16px}}.quest-timeline .locked .quest-node{background:#26362e;border-color:#717566;color:#b9beb5}.quest-lock{font-size:12px;color:#c4bba3}.quest-timeline .locked h3{color:#c4c9be}#email-verify-banner,#email-verify-status{position:fixed;z-index:90;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:min(370px,calc(100vw - 24px));max-height:45dvh;overflow:auto;background:#17382f;color:#fff4dc;border:1px solid #d7b976;border-radius:12px;padding:12px;box-shadow:0 8px 25px #0008}#email-verify-banner p{margin:0 0 8px;color:#fff4dc}#email-verify-banner form{display:flex;flex-wrap:wrap;gap:8px}#email-verify-banner input{max-width:150px}#email-verify-banner button{min-height:40px}:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#243b32;background:#f5f3ec;font-synthesis:none;font-size:15px;line-height:1.5}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;border:0;transition:background .15s,transform .15s}button:disabled{cursor:not-allowed;opacity:.45}button:not(:disabled):hover{filter:brightness(.94)}button:focus-visible,a:focus-visible{outline:3px solid #c88f3d;outline-offset:4px}header{height:96px;border-bottom:1px solid #deded2;display:flex;align-items:center;justify-content:space-between;padding:0 6%;background:#faf9f4}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;font-weight:750;font-size:16px;letter-spacing:2.3px}.brand-mark{display:grid;place-items:center;width:39px;height:46px;border:1px solid #a89567;border-radius:20px 20px 15px 15px;font-family:Georgia,serif;font-size:29px;color:#a08a58}.brand small{display:block;font-size:9px;letter-spacing:4px;font-weight:500;color:#819087;margin-top:3px}.header-right{display:flex;align-items:center;gap:27px}.prototype{font-size:10px;letter-spacing:1.6px;color:#879087}.wallet{font-size:20px;font-weight:650}.wallet>span{color:#ba9855;margin-right:4px}.wallet small{font-size:12px;font-weight:400;color:#68786e}.text-button{background:none;color:#69766d;font-size:12px;padding:8px}main{max-width:1260px;margin:auto;padding:45px 40px 70px;min-height:calc(100vh - 165px)}.intro{display:flex;justify-content:space-between;gap:55px;align-items:center;margin-bottom:43px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#8b7956;margin-bottom:13px}h1{font-family:Georgia,Times New Roman,serif;font-weight:400;font-size:49px;line-height:1.1;letter-spacing:normal;word-spacing:.06em;white-space:pre-line;margin:0 0 19px;color:#213e32}p{color:#758178;font-size:14px;line-height:1.8;margin:0}.intro p{max-width:530px}.race-ticket{width:285px;flex-shrink:0;background:#eaeadd;border:1px solid #dcddcd;padding:23px 27px;border-radius:4px;position:relative}.race-ticket>span{font-size:9px;letter-spacing:2px;color:#788475}.race-ticket strong{display:block;font-family:Georgia,serif;font-size:26px;font-weight:400;margin:9px 0}.race-ticket div{font-size:11px;color:#77806f}.race-ticket i{margin:0 8px}.race-ticket hr{border:0;border-top:1px solid #d6dacb;margin:18px 0}.race-ticket small{font-size:9px;letter-spacing:1.5px;color:#818575}.race-ticket b{display:block;font-size:29px;color:#877347;font-weight:500}.race-ticket em{font-size:12px;font-style:normal}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}h2{font-family:Georgia,serif;font-size:24px;font-weight:400;margin:0}h3{font-family:Georgia,serif;font-size:28px;font-weight:400;margin:0}.section-heading>span{font-size:11px;color:#849085}.horse-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:21px}.horse-card{background:#fffef9;border:1px solid #e0e1d6;border-radius:8px;padding:20px 23px;overflow:hidden;position:relative}.horse-card.selected{border:2px solid #547e66;padding:19px 22px;box-shadow:0 4px 16px #294b3510}.card-top{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:10px;color:#8b8d7f}.status{font-size:9px;padding:4px 7px;border-radius:20px;background:#eeeee4;color:#8b846d;white-space:nowrap}.status.ready{background:#e9f0e6;color:#547953}.horse-portrait{width:100%;max-width:240px;aspect-ratio:2 / 3;margin:16px auto;border-radius:8px;background-image:url(/assets/stable-horses-v1.png);background-size:300% 100%;background-repeat:no-repeat}.horse-title{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:18px}.horse-title>span{font-size:11px;color:#998657}.stat{display:flex;justify-content:space-between;align-items:center;margin:9px 0;font-size:11px;color:#738077}.bars{display:flex;gap:4px}.bars i{display:block;width:22px;height:6px;border-radius:1px;background:#e8e9df}.bars i.filled{background:#708b77}.card-action{margin-top:24px;min-height:46px}.primary,.secondary,.chosen,.subtle{padding:13px 21px;border-radius:4px;font-size:12px;font-weight:600}.primary{background:#254d3c;color:#fffdf2}.secondary{background:#f3f3eb;color:#45634e;border:1px solid #dedfd2}.chosen{background:#e4eee2;color:#426749}.subtle{background:#f4efdf;color:#8c7849;font-size:10px;padding:10px}.full{width:100%}.hint{font-size:11px;color:#92998f;margin-top:16px}.onboarding{display:flex;justify-content:center;gap:60px;margin-top:37px;padding-top:25px;border-top:1px solid #e1e1d5;font-size:12px;color:#9aa296}.onboarding b{color:#4b6654;font-weight:500;margin-left:8px}.preparation{margin-top:40px;border-top:1px solid #dedfd1;padding-top:31px}.preparation .eyebrow{margin-bottom:5px}.tactics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.tactic{text-align:left;border:1px solid #dcded0;background:#f9f8f0;border-radius:5px;padding:18px;position:relative;color:#4e6455}.tactic.active{border-color:#638169;background:#eaf0e4;box-shadow:inset 0 0 0 1px #638169}.tactic b{display:block;font-size:13px;margin-bottom:6px}.tactic small{font-size:11px;color:#7b8878;display:block;padding-right:15px}.tactic-icon{float:right;font-size:23px;color:#a59870}.start-line{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:25px}.start-line b{font-size:13px}.start-line p{font-size:11px;max-width:620px;margin-top:4px}.start-line .primary{min-width:185px;padding:17px 24px}.start-line .primary span{margin-left:28px}.rest-line{display:flex;justify-content:space-between;font-size:11px;color:#a28551;margin-bottom:6px}.race-heading{margin:10px 0 25px}.race-heading h1{font-size:39px;margin-bottom:0}.live-dot{color:#648d64!important}.live-dot:before{content:"●";margin-right:8px;color:#7b9969}.race-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:25px}.track{width:100%;display:block}.ranking-panel{border:1px solid #dfe2d6;border-radius:6px;background:#fdfcf6;padding:24px 18px}.ranking-panel ol{list-style:none;padding:0;margin:15px 0}.ranking-panel li{display:flex;gap:12px;align-items:center;padding:15px 8px;border-bottom:1px solid #e9ebdf;font-size:12px}.ranking-panel li>span{color:#a3936c;width:13px}.ranking-panel li b{font-weight:500}.ranking-panel li small{margin-left:auto;font-size:10px;color:#8b9487}.mine{background:#eaf0e3}.ranking-panel p{font-size:11px;margin-top:20px}.energy-panel{margin-top:22px;padding:20px 25px;background:#efeee3;border-radius:5px}.energy-panel>div{display:flex;justify-content:space-between;font-size:12px}.energy-panel small{font-size:11px;color:#7a8775}progress{appearance:none;width:100%;height:8px;border:none;margin:15px 0;background:#d9decd;border-radius:10px;overflow:hidden}progress::-webkit-progress-bar{background:#d9decd}progress::-webkit-progress-value{background:#7b9668}progress::-moz-progress-bar{background:#7b9668}.result-hero{text-align:center;margin:4px 0 35px}.result-hero h1{font-size:43px}.first-win-note{margin:6px 0 10px;font-size:18px;color:var(--gold, #e3c27a)}.medallion{display:grid;place-items:center;width:64px;height:64px;border:1px solid #c7b886;border-radius:50%;margin:17px auto;color:#ab8d4e;font-family:Georgia,serif;font-size:32px}.result-reward{font-size:28px;color:#9a8050;margin:12px 0 4px}.result-reward span{font-size:13px}.result-hero>small{font-size:10px;color:#92988a}.results-table{max-width:900px;margin:auto;background:#fffef9;border:1px solid #e1e2d5;border-radius:6px;padding:26px}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:10px;text-transform:uppercase;color:#8d978a;font-weight:500;padding:12px}td{padding:14px 12px;border-top:1px solid #e8e9df}td:last-child{font-variant-numeric:tabular-nums}td:nth-child(3){color:#8b9485;font-size:11px}.you{font-size:8px;letter-spacing:1px;margin-left:8px;color:#7d966c}.result-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:28px;gap:20px}.result-bottom p{font-size:11px}footer{display:flex;justify-content:space-between;padding:22px 6%;border-top:1px solid #e0e1d6;font-size:10px;color:#90988a;letter-spacing:.3px}footer i{margin:0 12px;color:#b7bcae}.error{padding:15px 20px;margin-bottom:25px;border:1px solid #d7b1a0;background:#f7e9df;color:#895a49;border-radius:4px;font-size:13px}.loading{padding:100px 0;text-align:center}.loading button{margin-top:20px}dialog{max-width:440px;border:1px solid #d1d7c4;border-radius:8px;background:#fbfaf3;padding:30px;color:#294432}dialog::backdrop{background:#1d302766;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}dialog h2{margin-bottom:15px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}@media(max-width:950px){header{padding:0 25px}.prototype{display:none}main{padding:30px 25px 50px}h1{font-size:40px}.race-ticket{width:240px}.horse-card{padding:15px}.horse-card.selected{padding:14px}.card-top{flex-direction:column;align-items:flex-start}.bars i{width:16px}.race-layout{grid-template-columns:1fr}.ranking-panel ol{display:grid;grid-template-columns:1fr 1fr}.ranking-panel p{display:none}}@media(max-width:690px){.intro{display:block}.race-ticket{margin-top:25px;width:100%}.horse-grid,.tactics{grid-template-columns:1fr}.brand{font-size:12px}.header-right{gap:8px}.brand small{letter-spacing:2px}.wallet{font-size:16px}.section-heading{align-items:flex-start}.section-heading>span{max-width:140px}.onboarding{gap:15px;flex-wrap:wrap}.start-line,.result-bottom{align-items:stretch;flex-direction:column}.card-top{flex-direction:row}.bars i{width:25px}footer{gap:15px;flex-direction:column}table{font-size:11px}td,th{padding:10px 6px}.you{display:block;margin:2px 0}.result-hero h1{font-size:36px}}.live-plan{margin-top:14px;padding:20px 24px;background:#fffef8;border:1px solid #dce0d1;border-radius:7px}.phase-strip{display:flex;gap:5px;margin-bottom:18px}.phase-strip span{flex:1;border-top:3px solid #e5e7dc;padding-top:7px;font-size:10px;color:#929b8b}.phase-strip .current{border-color:#b99850;color:#796133;font-weight:700}.phase-strip .done{border-color:#739177;color:#607d61}.plan-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.plan-heading b{font-size:17px;font-family:Georgia,serif}.plan-heading span{background:#eef1e5;border-radius:20px;padding:4px 10px;color:#68805d;font-size:11px}.live-plan p{font-size:12px;margin-top:8px;min-height:40px}.live-readings{display:flex;gap:30px;border-top:1px solid #eceee3;margin-top:12px;padding-top:12px;font-size:10px;color:#88917f}.live-readings b{display:block;color:#42614c;font-size:15px;font-weight:500;margin-top:3px}.ranking-panel ol{display:flex;flex-direction:column}.race-insights{max-width:900px;margin:0 auto 24px;background:#eeefe3;border:1px solid #dfe3d2;border-radius:7px;padding:25px}.race-insights h2{font-size:24px}.race-insights .eyebrow{margin-bottom:5px}.insight-summary{font-size:13px;color:#546d54}.split-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0 10px}.split-card{background:#fafbf3;border:1px solid #e1e6d5;border-radius:5px;padding:14px}.split-card>span{font-size:10px;color:#8b997e;letter-spacing:.5px}.split-card>strong{display:block;margin:8px 0;font-family:Georgia,serif;font-size:26px;font-weight:400;color:#3f624b}.split-card strong small{font-family:inherit;font-size:11px}.split-card>small{display:block;font-size:10px;color:#7d8e74;margin-top:5px}.split-energy{height:5px;background:#e0e6d6;border-radius:3px;overflow:hidden}.split-energy i{display:block;height:100%;background:#839c6f}.rival-comparison{margin-top:20px;padding-top:15px;border-top:1px solid #d8e0ca;color:#4a6449;font-size:13px}.racing-horse{pointer-events:none}@media(max-width:690px){.split-grid{grid-template-columns:repeat(2,1fr)}.race-insights{padding:18px}.live-plan{padding:16px}.plan-heading{align-items:flex-start}.race-insights .section-heading{flex-direction:column;gap:8px}.live-readings{gap:15px}}@media(min-width:761px)and (max-width:950px){.race-layout{grid-template-columns:minmax(0,1fr) 205px;gap:14px}.ranking-panel{padding:20px 12px}.ranking-panel ol{display:flex}.ranking-panel li{padding:14px 4px;gap:7px}.ranking-panel p{display:block}}.gate-scene{max-width:950px;margin:30px auto;text-align:center}.gate-scene svg{width:100%;display:block;margin:24px 0}.gate-scene h1{margin:16px 0}.gate-horse{transform:translateY(115px);opacity:.5;transition:transform .65s ease,opacity .65s}.gate-horse.loaded{transform:translateY(0);opacity:1}.gate-horse.released{transform:translateY(110px)}.gate-door{transition:opacity .15s,transform .25s;transform-box:fill-box;transform-origin:left}.gate-door.open{transform:scaleX(.1);opacity:.3}@media(prefers-reduced-motion:reduce){.gate-horse,.gate-door{transition:none}}.care-room{max-width:1000px;margin:25px auto}.care-room h1{margin:16px 0 24px}.care-layout{display:grid;grid-template-columns:1fr 1.3fr;gap:36px}.care-portrait{background:#e9e4d8;padding:18px;border-radius:16px;text-align:center}.care-portrait .horse-portrait{max-width:300px}.care-portrait.groomed{box-shadow:inset 0 0 0 3px #a7b28d}.care-portrait.groomed .horse-portrait{filter:brightness(1.06)}.care-details{padding:24px;background:#fffdf7;border:1px solid #ddd9ca;border-radius:16px}.care-details p{line-height:1.6}.care-details button{display:block;margin:14px 0;width:100%}@media(max-width:700px){.care-layout{grid-template-columns:1fr}}.horse-status-group{display:flex;flex-direction:column;align-items:flex-end;gap:6px;max-width:65%;text-align:right}.horse-recommendation{color:#576c5b;font-size:11px;line-height:1.5}.player-progress{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:18px;background:#e9eddf;border-radius:12px;margin:12px 0}.player-progress progress{width:180px}.player-progress small{flex-basis:100%;color:#596b54}.market-panel{margin-top:40px}.market-tabs{display:flex;gap:10px;flex-wrap:wrap}.identity-panel{background:#fffdf7;padding:20px;border-radius:12px;margin-bottom:20px}.identity-panel input,#purchase-name{padding:10px;border:1px solid #a8b29d;border-radius:6px;max-width:100%}.identity-panel button{margin:8px}button,.brand{touch-action:manipulation}button{min-height:44px}#app{min-height:100dvh}header{height:68px;padding:0 max(24px,env(safe-area-inset-left))}main{padding:20px 24px 40px}.player-progress{margin-bottom:16px;padding:10px 16px;font-size:12px}.player-progress small{display:none}.game-nav{display:flex;gap:8px;padding:6px;background:#183e32;border-radius:14px;margin-bottom:20px}.game-nav button{flex:1;border:0;background:transparent;color:#e4eade;border-radius:10px;font-weight:700}.game-nav button[aria-pressed=true]{background:#e6c887;color:#193a30;box-shadow:0 2px 8px #0002}.stable-content .intro{display:none}.stable-content[data-tab-view=stable]>.market-panel,.stable-content[data-tab-view=stable]>.preparation,.stable-content[data-tab-view=market]>.horse-grid,.stable-content[data-tab-view=market]>.section-heading,.stable-content[data-tab-view=market]>.preparation,.stable-content[data-tab-view=prepare]>.horse-grid,.stable-content[data-tab-view=prepare]>.market-panel,.stable-content[data-tab-view=prepare]>.section-heading,.stable-content[data-tab-view=prepare]>.hint{display:none}.stable-content[data-tab-view=prepare] .intro{display:flex;margin:0 0 16px}.stable-content[data-tab-view=prepare] .intro>div{display:none}.race-ticket{width:100%;padding:16px 20px;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.race-ticket hr,.race-ticket>p{display:none}.race-ticket b{font-size:24px;margin:0}.market-panel{margin:0}.horse-card{border-radius:16px;overflow:hidden}.horse-card .horse-portrait{height:180px;width:120px;margin:12px auto}.rotate-hint{display:none}dialog{max-height:85dvh;overflow:auto;max-width:min(520px,90vw)}input{font-size:16px;min-height:44px;max-width:100%}footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}@media(orientation:portrait)and (max-width:700px){.rotate-hint{display:block;text-align:center;background:#e6c887;padding:8px 16px;font-size:12px}header{padding:8px 12px;height:auto;gap:8px;flex-wrap:wrap}.brand{font-size:12px}main{padding:12px}.header-right{gap:8px}}@media(orientation:landscape)and (max-height:600px){header{height:52px;padding:0 max(16px,env(safe-area-inset-left))}.brand{font-size:12px;gap:8px}.brand-mark{width:32px;height:32px;font-size:22px}.brand small,footer{display:none}.header-right{gap:14px}main{padding:10px max(16px,env(safe-area-inset-right)) 20px max(16px,env(safe-area-inset-left));min-height:0}.player-progress{padding:4px 12px;margin-bottom:8px;gap:10px}.player-progress progress{height:6px}.game-nav{margin-bottom:12px;padding:3px}.section-heading{margin-bottom:10px}h1{font-size:26px;margin:6px 0}h2{font-size:19px}.horse-grid{display:flex;overflow-x:auto;gap:12px;scroll-snap-type:x proximity;padding-bottom:10px}.horse-card{flex:0 0 280px;padding:14px;scroll-snap-align:start}.horse-card .horse-portrait{float:left;height:140px;width:92px;margin:10px 12px 8px 0}.horse-card .horse-title{margin-top:10px}.horse-title h3{font-size:23px}.horse-card .stat{font-size:11px;gap:4px}.horse-card .hint{font-size:10px}.horse-card .card-action{clear:both}.card-top{font-size:10px}.tactics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.tactic{padding:12px}.tactic-icon{display:none}.preparation{margin-top:0;padding-top:0}.start-line{margin-top:12px;gap:12px}.start-line p{font-size:11px;margin:4px 0}.care-layout{grid-template-columns:180px 1fr;gap:18px}.care-portrait{position:sticky;top:12px;align-self:start}.care-portrait .horse-portrait{max-height:240px}.care-details{padding:16px}#app[data-screen=race] main{padding-top:4px}.race-heading{margin:0 0 4px}.race-heading h1{font-size:18px;margin:0}.race-heading .eyebrow{display:none}.race-layout{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:10px}.track{height:calc(100dvh - 98px);min-height:200px}.ranking-panel{padding:8px;font-size:11px}.ranking-panel li{padding:7px 3px;font-size:11px}.ranking-panel>p{display:none}.energy-panel{margin-top:8px;padding:10px}.live-plan{padding:12px}.result-hero{padding:14px}.medallion{width:46px;height:46px;font-size:24px;margin:0 auto}}@media(orientation:landscape)and (max-height:600px){.player-progress{margin:0 0 6px;min-height:20px}.player-progress span,.player-progress progress{display:none}.horse-card{flex-basis:390px}.card-top{display:flex;justify-content:space-between;align-items:start;gap:8px}.horse-status-group{max-width:220px}.horse-card .horse-portrait{height:120px;width:80px}.horse-card .hint{margin:4px 0}.horse-card .horse-title{margin-bottom:4px}.horse-card .stat{margin:4px 0}}.horse-identity{margin:12px 0;border:1px solid #d4dacd;border-radius:12px;padding:0 16px}.horse-identity summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}.horse-identity summary:before{content:"＋";margin-right:10px}.horse-identity[open] summary:before{content:"−"}#app[data-screen=stable] main{padding-bottom:110px}#app[data-screen=stable] footer{padding-bottom:100px}.game-nav{position:fixed;z-index:20;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);width:min(360px,calc(100% - 32px));box-sizing:border-box;margin:0;padding:5px;gap:5px;border:1px solid #bda474;border-radius:22px;background:linear-gradient(180deg,#284d3e,#122e26);box-shadow:0 6px 24px #102d3040,inset 0 1px #ffffff24}.game-nav button{min-height:62px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:6px 12px;font-size:12px;border-radius:16px}.game-nav svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.game-nav button:disabled{opacity:.4;cursor:default}.game-nav button[aria-pressed=true]{background:linear-gradient(180deg,#f4dc9d,#d0ad65)}@media(orientation:landscape)and (max-height:600px){.game-nav{bottom:max(6px,env(safe-area-inset-bottom));width:300px}.game-nav button{min-height:52px;padding:4px 10px;font-size:11px}.game-nav svg{width:22px;height:22px}#app[data-screen=stable] main{padding-bottom:85px}}#app[data-screen=stable] main{box-sizing:border-box;height:calc(100dvh - 160px);min-height:0;overflow-y:auto;padding-bottom:24px;overscroll-behavior-y:contain}#app[data-screen=stable] footer{display:none}@media(orientation:landscape)and (max-height:600px){#app[data-screen=stable] main{height:calc(100dvh - 126px)}}@media(orientation:portrait)and (max-width:700px){#app[data-screen=stable] main{height:calc(100dvh - 230px)}}#app[data-screen=room] main{box-sizing:border-box;height:calc(100dvh - 160px);min-height:0;overflow-y:auto;padding-bottom:24px}#app[data-screen=room] footer{display:none}.care-room>h1{margin:4px 0 18px}.care-room .identity-panel{margin:0;padding:0;border:0;background:none}.care-room .training-panel>hr{display:none}.care-room .care-details>h2,.care-room .training-panel>h2{margin-top:0}@media(orientation:landscape)and (max-height:600px){#app[data-screen=room] main{height:calc(100dvh - 126px)}#app[data-screen=room] .player-progress{display:none}.care-room>.eyebrow{display:none}.care-room>h1{display:inline-block;margin:0 0 10px 12px;font-size:24px}.care-layout{max-width:100%;grid-template-columns:160px minmax(0,1fr)}.care-portrait .horse-portrait{max-height:190px}.care-portrait p{font-size:11px}.care-details{min-width:0}.care-details button{margin:4px 4px 4px 0}}@media(orientation:portrait)and (max-width:700px){#app[data-screen=room] main{height:calc(100dvh - 230px)}}@media(orientation:landscape)and (max-height:600px){#app[data-screen=room] main{padding-top:2px}.care-room .training-panel{display:flex;flex-wrap:wrap;gap:6px 10px}.training-panel>h2{flex-basis:100%;margin:0}.training-panel>.stat{flex:1 1 26%;font-size:11px;margin:0;display:block}.training-panel .bars{display:flex;margin-top:4px}.training-panel>p{flex-basis:100%;margin:3px 0;font-size:12px}.training-panel>button{width:auto;flex:1 1 25%;font-size:12px;padding:8px}.training-panel>.hint{font-size:11px}}.result-analysis{margin:16px 0;border:1px solid #d4dacd;border-radius:12px;padding:0 16px}.result-analysis summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:600}.result-analysis summary:before{content:"＋";margin-right:10px}.result-analysis[open] summary:before{content:"−"}#app[data-screen=result] .result-hero{padding:20px;border-radius:18px;background:linear-gradient(135deg,#173b30,#2e5743);color:#fff4da}#app[data-screen=result] .result-hero h1,#app[data-screen=result] .result-hero .eyebrow,#app[data-screen=result] .result-hero p,#app[data-screen=result] .result-hero small{color:inherit}#app[data-screen=result] .result-hero small{opacity:.7}@media(orientation:landscape)and (max-height:600px){#app[data-screen=result] .player-progress{display:none}#app[data-screen=result] .result-hero{text-align:left;padding:14px 20px}#app[data-screen=result] .medallion{float:left;margin:8px 18px 35px 0}#app[data-screen=result] .result-hero h1{font-size:25px;margin:4px 0}#app[data-screen=result] .result-hero p{margin:4px 0;font-size:12px}#app[data-screen=result] .result-reward{font-size:26px;margin:4px 0}#app[data-screen=result] main{padding-bottom:90px}.result-bottom{margin:0}.result-bottom>p{display:none}.result-bottom #back{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));z-index:20;box-shadow:0 4px 16px #102d3040}.results-table{padding-bottom:60px}}#app[data-screen=result] .result-reward,#app[data-screen=result] .result-reward span,#app[data-screen=result] .medallion{color:#f4d88f}.header-right{gap:14px}.experience-button{border:1px solid #d4dacd;border-radius:12px;background:#e9eddf;color:#254334;padding:6px 12px;font-weight:700}.experience-button small{font-weight:400}.settings-button{display:grid;place-items:center;min-width:44px;padding:8px;background:#173b30;color:#f4dc9d;border:0;border-radius:12px}.settings-button svg{width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round}#experience-dialog .player-progress{display:flex;flex-direction:column;align-items:start;gap:10px}#experience-dialog .player-progress span,#experience-dialog .player-progress progress{display:block}@media(max-width:700px){.header-right{gap:6px}.experience-button{padding:6px 8px;font-size:12px}.wallet{font-size:16px}}@media(orientation:landscape)and (max-height:600px){.brand{flex-shrink:0}.header-right{gap:8px}}#app #experience-dialog .player-progress{display:flex}.currency-icon{width:26px;height:26px;flex-shrink:0;vertical-align:middle}.wallet,.gem-preview{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.gem-preview{color:#276a7e;font-size:14px;padding:4px 8px;border:1px solid #b7d8df;border-radius:12px;background:#eaf5f5}.gem-preview small{font-size:11px}@media(orientation:landscape)and (max-width:740px){header .brand>span:last-child{display:none}header .header-right{gap:6px}.gem-preview{padding:4px}}@media(orientation:portrait)and (max-width:700px){header .header-right{flex-wrap:wrap}}html,body{height:100%;overflow:hidden;overscroll-behavior:none}#app{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}#app>header{flex-shrink:0}#app>.rotate-hint{flex-shrink:0}#app[data-screen]>main{flex:1 1 0;min-height:0;height:auto;width:100%;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}#app[data-screen]>footer{display:none}#app[data-screen=stable]>main,#app[data-screen=room]>main{margin-bottom:calc(90px + env(safe-area-inset-bottom))}@media(orientation:landscape)and (max-height:600px){#app[data-screen=stable]>main,#app[data-screen=room]>main{margin-bottom:calc(74px + env(safe-area-inset-bottom))}}.stable-scene{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:16px;min-height:0}.stall-visual{position:relative;min-height:0;overflow:hidden;border-radius:18px;background:radial-gradient(ellipse at top,#ad9670,#322b22 85%);display:flex;justify-content:center}.stall-visual>.horse-portrait{height:100%;width:auto;aspect-ratio:2/3;max-width:none;margin:0;border-radius:0}.stall-name{position:absolute;top:16px;left:16px;color:#fff4d7;text-shadow:0 2px 8px #000}.stall-name h1{color:inherit;font-size:30px;margin:4px 0}.stall-name span{font-size:11px;letter-spacing:2px}.stall-info{min-height:0;overflow:auto}.stall-info .horse-card{padding:14px;border:0;box-shadow:none}.stall-info .horse-card>.horse-portrait,.stall-info .horse-title{display:none}.horse-strip{display:flex;overflow-x:auto;gap:8px;min-height:0;padding:4px 0}.horse-strip button{flex:0 0 175px;display:flex;gap:10px;align-items:center;padding:6px;border:1px solid #bdc9ba;border-radius:12px;background:#f9f8f0;text-align:left}.horse-strip button[aria-pressed=true]{border:2px solid #b08a40;background:#f2e4c4}.horse-strip .horse-portrait{width:36px;height:48px;margin:0;border-radius:6px;flex-shrink:0}.horse-strip small{display:block;font-size:10px}.stable-content:not([data-tab-view=stable])>.stable-scene,.stable-content:not([data-tab-view=stable])>.horse-strip{display:none}#app[data-screen=stable][data-stable-tab=stable] main{overflow:hidden;padding:10px 16px}.stable-content[data-tab-view=stable]{height:100%;display:grid;grid-template-rows:minmax(0,1fr) 72px;gap:8px}.stable-content[data-tab-view=stable]>.section-heading,.stable-content[data-tab-view=stable]>.hint{display:none}@media(orientation:landscape)and (max-height:600px){.stable-scene{grid-template-columns:minmax(0,1fr) minmax(280px,1fr);gap:10px}.stall-info .horse-card{padding:6px 10px}.stall-info .card-top{align-items:center}.stall-info .horse-card .hint{display:none}.stall-info .horse-card .stat{display:inline-flex;width:30%;flex-direction:column}.stall-info .horse-card button{font-size:11px;min-height:44px;padding:6px}.stall-info .horse-card>button{width:48%;float:left}.stall-info .card-action{clear:none;margin:0 0 0 51%}.stall-info .horse-recommendation{font-size:10px}.stable-content[data-tab-view=stable]{grid-template-rows:minmax(0,1fr) 62px;gap:4px}.horse-strip button{padding:3px 6px}.horse-strip .horse-portrait{height:40px;width:28px}#app[data-screen=result]>main{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 48px;gap:8px 14px;overflow:hidden;padding:10px 16px 70px}#app[data-screen=result] .result-hero{grid-column:1;grid-row:1;overflow:auto;margin:0;padding:12px}#app[data-screen=result] .result-analysis{grid-column:1;grid-row:2;margin:0;overflow:auto;padding:0 8px}#app[data-screen=result] .result-analysis[open]{grid-row:1 / 3;z-index:2;background:#f5f3ec}#app[data-screen=result] .result-analysis summary{font-size:11px}#app[data-screen=result] .results-table{grid-column:2;grid-row:1 / 3;overflow:auto;padding:0;margin:0}#app[data-screen=result] .results-table td,#app[data-screen=result] .results-table th{padding:8px 4px;font-size:11px}#app[data-screen=result] .result-hero small{display:none}}@media(orientation:portrait)and (max-width:700px){.stable-scene{grid-template-columns:1fr;grid-template-rows:minmax(130px,1fr) minmax(0,1fr)}}#app[data-screen=stable][data-stable-tab=stable]{position:relative;isolation:isolate;background:#30291e}#app[data-screen=stable][data-stable-tab=stable]>header{position:relative;z-index:3;background:linear-gradient(#132820dc,#13282090);border:0;color:#fff3d7}#app[data-screen=stable][data-stable-tab=stable]>header .brand,#app[data-screen=stable][data-stable-tab=stable]>header .text-button,#app[data-screen=stable][data-stable-tab=stable]>header .wallet{color:#fff3d7}#app[data-screen=stable][data-stable-tab=stable]>main{margin:0;max-width:none;padding:0;overflow:hidden}.stable-content[data-tab-view=stable],.stable-content[data-tab-view=stable] .stable-scene{display:block}.stable-content[data-tab-view=stable] .stall-visual{position:absolute;inset:0;z-index:-1;border-radius:0;display:block}.immersive-stall{position:absolute;inset:0;background-image:url(/assets/stable-scene-v2.png);background-size:100% 300%;background-position:center var(--scene-y)}.stall-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0b170da8,transparent 35%,transparent 75%,#0b170d40);pointer-events:none}.stable-content[data-tab-view=stable] .stall-name{top:84px;left:24px;z-index:1}.stable-content[data-tab-view=stable] .stall-info{position:absolute;top:88px;right:20px;width:260px;max-height:calc(100% - 230px);z-index:2;border-radius:16px}.stall-info .horse-card{background:#112a22d9;color:#f4edda;border:1px solid #d1bd8266;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.stall-info .horse-card .stat,.stall-info .card-top{color:#f4edda}.stall-info .horse-card .hint{display:none}.stall-info .horse-card .stat{display:inline-flex;flex-direction:column;width:31%;font-size:11px}.stall-info .horse-card .bars{display:flex;gap:3px}.stall-info .horse-card button{font-size:12px}.stall-info .horse-card .horse-recommendation{color:#e6dfc8}.stable-content[data-tab-view=stable] .horse-strip{position:absolute;left:20px;right:20px;bottom:96px;z-index:2;height:62px}.horse-strip button{background:#18382ddc;color:#fff3d7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.horse-strip button[aria-pressed=true]{background:#dbc38ce8;color:#243b32}@media(orientation:landscape)and (max-height:600px){.stable-content[data-tab-view=stable] .stall-name{top:64px;left:18px}.stable-content[data-tab-view=stable] .stall-info{top:62px;right:12px;width:245px;max-height:calc(100% - 195px)}.stable-content[data-tab-view=stable] .horse-strip{bottom:72px;left:16px;right:16px;height:52px}.stall-info .horse-card{padding:8px}.stall-info .card-top>span{display:none}.stall-info .horse-status-group{max-width:none;text-align:left}.stall-info .horse-card .stat{margin:2px 0}}@media(orientation:portrait)and (max-width:700px){.stable-content[data-tab-view=stable] .stall-name{top:150px}.stable-content[data-tab-view=stable] .stall-info{top:auto;bottom:170px;right:12px;width:225px;max-height:220px}}.stall-info .horse-card .stat{vertical-align:top;align-items:flex-start;gap:4px}.stall-info .horse-card .bars{width:100%;max-width:64px}.stall-info .horse-card .bars i{width:auto;flex:1;min-width:0;height:4px}.stall-info .horse-card .stat>span:first-child{min-height:30px}.immersive-stall{background-image:url(/assets/stable-interior-v3.png);background-size:100% 100%;background-position:center}.scene-horse{position:absolute;left:27%;top:12%;height:74%;width:32%;background-image:url(/assets/horse-layer-v4.png);background-size:300% 100%;background-position:var(--horse-x) center;background-repeat:no-repeat}.immersive-stall,.scene-horse{background-image:url(/assets/stable-scene-v2.png);background-size:100% 300%;background-position:center top}.scene-horse{inset:0;width:100%;height:100%;clip-path:polygon(27% 76%,26% 68%,26.5% 56%,28% 43%,32% 35%,38% 33%,42% 29%,44% 21%,46% 16%,47% 11%,48% 16%,50% 13%,50.5% 20%,52% 24%,54.5% 31%,54% 37%,52% 39%,50% 35%,49% 34%,47% 40%,45% 48%,44% 59%,43% 69%,44% 83%,45% 85%,43% 87%,41.5% 84%,41% 68%,40% 60%,39% 65%,38% 79%,39% 81%,37% 82%,36% 79%,36.5% 62%,35% 58%,33% 63%,31% 72%,31% 82%,32% 84%,30% 85%,29% 82%,29% 70%,29% 63%,28% 69%,28% 77%);filter:var(--coat-filter, none)}.scene-horse{display:none}.immersive-stall{background-position:center var(--scene-y, 0%)}.immersive-stall{filter:brightness(var(--scene-light, 1))}#app[data-screen=room],#app[data-screen=shop]{position:relative;isolation:isolate;background:#30291e}.room-backdrop{position:absolute;inset:0;z-index:-1;pointer-events:none}.room-backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#0b170da8,transparent 35%,transparent 75%,#0b170d40)}#app[data-screen=room]>header,#app[data-screen=shop]>header{background:linear-gradient(#132820dc,#13282090);border:0}#app[data-screen=room] .brand,#app[data-screen=shop] .brand,#app[data-screen=room] header .text-button,#app[data-screen=shop] header .text-button,#app[data-screen=room] .wallet,#app[data-screen=shop] .wallet{color:#fff3d7}#app[data-screen=room]>main,#app[data-screen=shop]>main{max-width:none;overflow:hidden;padding:12px 18px;margin-bottom:80px}.care-room{height:100%;display:flex;flex-direction:column;align-items:flex-start;min-height:0}.care-room>.text-button,.care-room>h1,.care-room>.eyebrow{color:#fff3d7;text-shadow:0 1px 4px #000}.care-room>h1{position:absolute;left:24px;top:116px}.care-room>.eyebrow{display:none}.care-room .care-layout{display:block;margin-left:auto;width:min(440px,48%);flex:1;min-height:0;overflow:auto}.care-room .care-portrait{display:none}.care-room .care-details{background:#112a22e8;border:1px solid #d1bd8266;border-radius:16px;padding:16px;color:#f4edda;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.care-room .care-details :is(h2,h3,p,.hint,.stat){color:inherit}.care-room .identity-panel{color:inherit}@media(orientation:landscape)and (max-height:600px){.care-room>.text-button{position:absolute;left:16px;top:56px}.care-room>h1{top:100px;left:16px;margin:0}.care-room .care-layout{width:43%}.care-room .care-details{padding:12px;font-size:12px}}@media(orientation:portrait)and (max-width:700px){.care-room .care-layout{width:100%;margin-top:150px}}.immersive-stall{background-image:url(/assets/stable-interior-v3.png);background-size:100% 100%;background-position:center;filter:none}.scene-horse{display:block;inset:7% auto auto 24%;width:34%;height:84%;background-image:var(--horse-image);background-size:contain;background-position:center bottom;background-repeat:no-repeat;clip-path:none;filter:drop-shadow(3px 8px 5px #26190e50)}.stall-visual:after,.room-backdrop:after{background:linear-gradient(0deg,#0b170d55,transparent 24%,transparent 86%,#0b170d22)}.room-nav{width:min(420px,calc(100% - 24px))}.feeding-panel h2{margin:0 0 6px}.feeding-panel p{margin:6px 0;font-size:12px}.feed-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.care-room .feeding-panel button{width:100%;margin:3px 0;font-size:12px;padding:6px;min-height:44px}.feeding-panel small{display:block;margin-top:4px;font-size:10px}@media(orientation:landscape)and (max-height:600px){.room-nav{width:min(380px,calc(100% - 24px))}.care-room .feeding-panel h2{font-size:19px}}.care-room .feeding-panel .feed-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;border:2px solid #738b7d;border-radius:8px}.feed-choice span{font-size:11px}.care-room .feeding-panel .feed-active{background:#f3d48a;color:#18372c;border-color:#ffebb6;box-shadow:0 0 0 1px #b59143;opacity:1}.care-room .feeding-panel .feed-choice[aria-pressed=false]:not(:disabled){background:#213f34;color:#f4edda}#app[data-screen=result]{background:radial-gradient(ellipse at 20% 10%,#385d46,#122c24 65%);color:#f3ecd9}#app[data-screen=result]>header{background:#10281fbb;border-color:#d5bf7b33}#app[data-screen=result] header :is(.brand,.wallet,.text-button){color:#f3ecd9}#app[data-screen=result]>main{max-width:1400px}#app[data-screen=result] .result-hero{background:linear-gradient(145deg,#345b44dd,#142f26);border:1px solid #c6a76388;box-shadow:inset 0 1px #fff1;border-radius:20px}#app[data-screen=result] .medallion{float:none;display:grid;place-items:center;width:64px;height:64px;margin:0 auto 12px;border:2px solid #dfc17b;color:#ffe7a6;background:radial-gradient(#506444,#213e2d);box-shadow:0 0 0 5px #d2b56b15}.result-time{color:#f5dfaa;font-size:16px;font-weight:600}.result-time span{padding:0 6px;opacity:.5}#app[data-screen=result] .result-time small{display:inline;font-size:11px;margin-left:8px}#app[data-screen=result] .result-reward{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;background:#d3af5320;border:1px solid #d3af5340;border-radius:12px;margin:12px 0 4px}#app[data-screen=result] .result-xp{color:#c6dfbd}#app[data-screen=result] .results-table{border:1px solid #a6bc9950;border-radius:18px;background:#122b23d9;padding:18px}#app[data-screen=result] .results-table :is(h2,.hint){color:#eee6cf}#app[data-screen=result] .results-table .section-heading>span{color:#b6c6ae;font-size:11px}#app[data-screen=result] .results-table table{background:transparent}#app[data-screen=result] .results-table th{color:#b3c5ac;font-size:10px;border-bottom:1px solid #fff2}#app[data-screen=result] .results-table td{border-bottom:1px solid #fff1;color:#eee6cf}#app[data-screen=result] .results-table tr.mine{background:#d4b56c22}#app[data-screen=result] .you{color:#f5d68c;font-size:8px}.rank-badge{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#ffffff0c;color:#b9c7b2}.rank-1{background:#e2c276;color:#29372a}.rank-2{background:#c2ccc6;color:#29372a}.rank-3{background:#b69067;color:#1c2d24}#app[data-screen=result] .result-analysis{border:1px solid #c2b07855;background:#17382d;color:#f6e4b5;border-radius:12px}#app[data-screen=result] .result-analysis[open]{background:#f5f3ec;color:#243b32}#app[data-screen=result] #back{background:linear-gradient(#f2d898,#d4b46d);color:#1c382c;border:1px solid #efdbac;border-radius:14px}@media(orientation:landscape)and (max-height:600px){#app[data-screen=result]>main{grid-template-columns:minmax(0,.9fr) minmax(0,1.15fr);gap:8px 12px;padding:10px 16px 66px}#app[data-screen=result] .result-hero{padding:12px 16px;text-align:center}#app[data-screen=result] .medallion{float:left;width:38px;height:38px;margin:10px 8px 0 0;font-size:20px}#app[data-screen=result] .result-hero h1{font-size:23px}#app[data-screen=result] .result-hero .eyebrow{font-size:9px;letter-spacing:1px}#app[data-screen=result] .result-performance{font-size:11px;margin:6px 0}#app[data-screen=result] .result-time{font-size:13px}#app[data-screen=result] .result-reward{font-size:22px;padding:4px 12px;margin:6px 0 2px}#app[data-screen=result] .results-table{padding:10px}#app[data-screen=result] .results-table .section-heading{margin-bottom:6px}#app[data-screen=result] .results-table td{padding:4px;font-size:11px}#app[data-screen=result] .results-table h2{font-size:19px}}#app[data-screen=result] :is(.result-hero,.results-table,.result-analysis){scrollbar-width:thin;scrollbar-color:#78907a55 transparent}#app[data-screen=result] .result-analysis:not([open]){overflow:hidden}@media(orientation:landscape)and (max-height:600px){#app[data-screen=result] .results-table .section-heading{align-items:center}#app[data-screen=result] .results-table h2{margin:0}#app[data-screen=result] .results-table td{padding:3px 4px;line-height:1.2}#app[data-screen=result] .results-table th{padding:5px 4px}#app[data-screen=result] .rank-badge{width:22px;height:22px}#app[data-screen=result] .result-hero{padding:10px 12px}}.stable-content:not([data-tab-view=market]) .market-showcase{display:none}#app[data-screen=stable][data-stable-tab=market]{background:radial-gradient(ellipse at 35% 40%,#52624a,#172f26 75%);color:#f2e6c9;position:relative;isolation:isolate}#app[data-screen=stable][data-stable-tab=market]>header{background:#10281fcc;border:0}#app[data-screen=stable][data-stable-tab=market] header :is(.brand,.wallet,.text-button){color:#f2e6c9}#app[data-screen=stable][data-stable-tab=market]>main{overflow:hidden;padding:0;max-width:none;margin-bottom:80px}.stable-content[data-tab-view=market]{height:100%}.stable-content[data-tab-view=market]>:is(.hint,.onboarding){display:none}.market-showcase{position:relative;height:100%;overflow:hidden}.market-setting{position:absolute;inset:0;background:radial-gradient(ellipse at 38% 75%,#bc9d5960,transparent 35%),linear-gradient(0deg,#172c21aa,transparent);border-bottom:1px solid #d9bf7033}.market-heading{position:absolute;top:12px;left:20px;z-index:2}.market-heading h2{color:#f2e6c9;margin:0 0 8px}.market-heading .market-tabs{margin:0;gap:6px}.market-heading button{padding:8px 12px;font-size:12px}.market-heading p{font-size:12px;max-width:360px}.market-horse{position:absolute;inset:0;pointer-events:none}.market-horse .scene-horse{left:22%;top:4%;height:80%;width:32%}.market-information{position:absolute;right:18px;top:16px;bottom:88px;width:32%;max-width:340px;overflow:auto;scrollbar-width:thin}.market-information .horse-card{background:#112a22eb;border:1px solid #d1bd8266;border-radius:16px;padding:16px;color:#f2e6c9}.market-information .horse-card>.horse-portrait{display:none}.market-information :is(.horse-title h3,.hint,.stat,.card-top){color:inherit}.market-information .horse-title{margin:8px 0}.market-information .horse-title h3{font-size:25px}.market-information .card-action{margin-top:12px}.market-information .card-action button{background:#e5c780;color:#18372a;border-radius:10px}.market-candidates{position:absolute;bottom:8px;left:18px;right:18px;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 0}.market-candidates button{scroll-snap-align:start;flex:0 0 180px;min-height:58px;display:flex;gap:10px;align-items:center;padding:5px 8px;text-align:left;border:1px solid #afbb8c66;border-radius:12px;background:#16372ae8;color:#f2e6c9}.market-candidates button[aria-pressed=true]{background:#e4cb91;color:#18372a;border:2px solid #ffe8b3}.market-candidates .horse-portrait{width:32px;height:44px;margin:0;border-radius:6px;flex-shrink:0}.market-candidates small{display:block;font-size:11px}.market-empty{position:absolute;top:45%;left:20px}@media(orientation:landscape)and (max-height:600px){.market-heading{top:8px;left:14px}.market-horse .scene-horse{height:65%}.market-heading h2{font-size:18px;margin:0 0 4px}.market-heading .market-tabs{flex-direction:column;align-items:flex-start;gap:3px}.market-heading button{min-height:36px;padding:5px 10px}.market-heading p{max-width:150px;font-size:10px;margin:4px 0}.market-information{top:8px;bottom:68px;width:36%;right:12px}.market-information .horse-card{padding:8px 10px}.market-information .card-top{font-size:9px;flex-direction:row;align-items:center;flex-wrap:nowrap}.market-information .horse-title{margin:2px 0}.market-information .horse-title h3{font-size:20px}.market-information .hint{font-size:10px;margin:3px 0}.market-information .stat{display:inline-flex;flex-direction:column;width:31%;align-items:start;font-size:10px;margin:3px 0}.market-information .bars{width:100%;gap:2px}.market-information .bars i{flex:1;width:auto;min-width:0;height:4px}.market-information .card-action{margin-top:4px}.market-information .card-action button{padding:6px;font-size:11px}.market-candidates{bottom:4px}.market-candidates button{flex-basis:170px;min-height:48px}.market-candidates .horse-portrait{height:36px;width:26px}}@media(orientation:portrait)and (max-width:700px){.market-horse .scene-horse{left:0;top:16%;width:50%;height:65%}.market-information{top:120px;right:8px;width:49%;bottom:76px}.market-information .horse-card{padding:10px}}#app[data-screen=race]{background:radial-gradient(ellipse at 35% 40%,#31513b,#10291f);color:#f3e9d1}#app[data-screen=race] header{background:#10271ee8;color:#f3e9d1;border-color:#dcc68c33}#app[data-screen=race] main{display:flex;flex-direction:column;overflow:hidden;min-height:0;padding:10px 18px;width:100%;max-width:none}#app[data-screen=race] .race-heading{flex:0 0 auto;margin:0 0 8px}#app[data-screen=race] .race-heading h1{font-size:24px;margin:0;color:#f3e9d1}#app[data-screen=race] .eyebrow{color:#d4c393}#app[data-screen=race] .live-dot{color:#d2e9b7!important}#app[data-screen=race] .race-layout{flex:1;min-height:0;grid-template-columns:minmax(0,1fr) 240px;gap:14px}.race-stage{display:flex;flex-direction:column;min-height:0;min-width:0}#app[data-screen=race] .track{flex:1;height:0;min-height:0;width:100%}.race-sidebar{min-height:0;overflow:auto}#app[data-screen=race] .ranking-panel{padding:12px;border:1px solid #d1bd8244;border-radius:14px;background:#102a22d9}#app[data-screen=race] .ranking-panel ol{margin:8px 0 0}#app[data-screen=race] .ranking-panel li{padding:10px 5px;color:#eee4ca;border-color:#e9ebdf18;gap:8px}#app[data-screen=race] .ranking-panel li small{color:#c1c8ad}#app[data-screen=race] .ranking-panel .mine{background:#e4c67c;color:#19392a;border-radius:7px}#app[data-screen=race] .mine :is(span,small){color:#31472c}#app[data-screen=race] .energy-panel{margin:8px 0 0;padding:12px;background:#102a22d9;border:1px solid #d1bd8244;border-radius:14px}#app[data-screen=race] .energy-panel small{display:block;color:#c7ccb3;font-size:10px}#app[data-screen=race] progress{margin:8px 0}.race-spectator-note{font-size:11px;color:#c7ccb3;text-align:center}#app[data-screen=race] .live-plan{flex:0 0 auto;margin:8px 0 0;padding:10px 14px;border:1px solid #d1bd8244;border-radius:14px;background:#102a22d9;color:#eee4ca}#app[data-screen=race] .live-plan p{margin:4px 0;color:#c7ccb3}#app[data-screen=race] .phase-strip span{background:#284638;color:#c9d2bb}#app[data-screen=race] .phase-strip .current{background:#e4c67c;color:#19392a}#app[data-screen=race] .live-readings{color:#c7ccb3}#app[data-screen=race] .live-readings b{color:#f3e9d1}@media(orientation:landscape)and (max-height:600px){#app[data-screen=race] main{padding:4px 10px 6px}#app[data-screen=race] .race-heading{margin-bottom:3px}#app[data-screen=race] .race-heading h1{font-size:17px}#app[data-screen=race] .race-layout{grid-template-columns:minmax(0,1fr) 190px;gap:8px}#app[data-screen=race] .ranking-panel{padding:6px 8px}#app[data-screen=race] .ranking-panel ol{margin-top:3px}#app[data-screen=race] .ranking-panel li{padding:5px 3px;font-size:11px}#app[data-screen=race] .energy-panel{padding:7px 9px;margin-top:5px}#app[data-screen=race] .energy-panel small{font-size:9px}#app[data-screen=race] .live-plan{padding:5px 10px;margin-top:3px}#app[data-screen=race] .live-plan p{display:none}#app[data-screen=race] .phase-strip span{padding:3px 5px;font-size:9px}#app[data-screen=race] .plan-heading{margin-top:3px;font-size:11px}#app[data-screen=race] .live-readings{margin-top:3px;font-size:10px}.race-spectator-note{display:none}}@media(orientation:portrait)and (max-width:600px){#app[data-screen=race] .race-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}.race-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:220px}.race-spectator-note{display:none}}@media(orientation:landscape)and (max-height:600px){#app[data-screen=race] .phase-strip{margin-bottom:3px}#app[data-screen=race] .plan-heading b{font-size:12px}#app[data-screen=race] .plan-heading span{padding:2px 8px;font-size:10px}#app[data-screen=race] .live-readings{padding-top:3px;gap:18px;border-color:#eceee322}#app[data-screen=race] .live-readings b{display:inline;font-size:11px;margin-left:5px}}@media(orientation:landscape)and (max-height:400px){#app[data-screen=race] .ranking-panel li{padding-top:4px;padding-bottom:4px}#app[data-screen=race] .energy-panel{padding-top:5px;padding-bottom:5px}#app[data-screen=race] .energy-panel progress{margin:5px 0}}#app[data-screen=stable][data-stable-tab=prepare]{background:radial-gradient(ellipse at 25% 50%,#426048,#112b22);color:#f4e8cb}#app[data-stable-tab=prepare] header{background:#10291ee8;color:#f4e8cb;border-color:#e1ce9422}#app[data-screen=stable][data-stable-tab=prepare] main{overflow:hidden;padding:8px 14px;max-width:none;width:100%;margin-bottom:80px}.stable-content[data-tab-view=prepare]{height:100%}.stable-content[data-tab-view=prepare]>.intro{display:none}.plan-screen{height:100%;display:flex;flex-direction:column;padding:0;margin:0;border:0;background:none}.plan-race-summary{display:flex;align-items:center;gap:20px;border-bottom:1px solid #ead6a333;padding-bottom:8px;flex-shrink:0}.plan-race-summary span,.plan-prize small{font-size:10px;color:#cfbf93}.plan-race-summary h2{margin:0;font-size:23px;color:inherit}.plan-race-summary p{font-size:12px;color:#d6ddc8}.plan-prize{margin-left:auto;text-align:right}.plan-prize b{display:block;color:#ebcc80;font-size:20px}.plan-body{display:grid;grid-template-columns:1fr 1fr;gap:20px;flex:1;min-height:0;padding-top:8px}.plan-horse-area{position:relative;min-width:0;min-height:0}.plan-horse-visual{position:absolute;inset:0 0 66px}.plan-horse-visual .scene-horse{left:20%;top:0;width:70%;height:100%}.plan-horse-name{position:relative;pointer-events:none}.plan-horse-name h2{color:#f4e8cb;margin:0}.plan-horse-name span{font-size:11px;color:#d7dfbd}.plan-horse-choices{position:absolute;bottom:0;left:0;right:0;display:flex;gap:6px;overflow-x:auto}.plan-horse-choices button{flex:0 0 145px;display:flex;align-items:center;gap:7px;background:#16382ce8;color:#f4e8cb;border:1px solid #d5c28566;border-radius:10px;padding:4px 7px;text-align:left}.plan-horse-choices button[aria-pressed=true]{background:#e6cb8c;color:#183527;border-color:#ffe6ab}.plan-horse-choices .horse-portrait{width:28px;height:38px;margin:0;flex-shrink:0;border-radius:5px}.plan-horse-choices small{display:block;font-size:10px}.plan-controls{display:flex;flex-direction:column;gap:8px;min-height:0}.plan-instruction h2{color:inherit;margin:0;font-size:18px}.plan-instruction small{color:#cdd4ba;font-size:10px}.plan-controls .tactics{display:flex;flex-direction:column;gap:6px;flex:1;min-height:0;overflow:auto}.plan-controls .tactic{display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;align-content:center;gap:2px 8px;text-align:left;min-height:54px;padding:8px 12px;border:1px solid #e1cc9044;border-radius:12px;background:#102c22de;color:#f4e8cb;flex:1}.plan-controls .tactic-icon{grid-row:1 / 3;align-self:center;margin:0;font-size:24px;color:inherit}.plan-controls .tactic b{font-size:13px;color:inherit;margin:0}.plan-controls .tactic small{font-size:11px;line-height:1.3;color:#cbd2ba}.plan-controls .tactic.active{background:#e5cd96;color:#173528;border-color:#fff0be;box-shadow:inset 4px 0 #fff0be}.plan-controls .tactic.active small{color:#36503a}.plan-controls #start{flex-shrink:0;width:100%;min-height:44px;background:#e8cc88;color:#183527;border-radius:12px}@media(orientation:landscape)and (max-height:600px){#app[data-screen=stable][data-stable-tab=prepare] main{padding:4px 12px;margin-bottom:72px}.plan-race-summary{padding-bottom:3px;gap:15px}.plan-race-summary h2{font-size:17px}.plan-race-summary p{margin:0;font-size:10px}.plan-prize b{font-size:16px}.plan-body{padding-top:4px;gap:14px;grid-template-columns:44% minmax(0,1fr)}.plan-instruction{display:flex;align-items:center;justify-content:space-between;gap:5px}.plan-instruction h2{font-size:13px}.plan-instruction small{font-size:9px}.plan-controls,.plan-controls .tactics{gap:4px}.plan-controls .tactic{min-height:44px;padding:4px 8px;grid-template-columns:23px 1fr}.plan-controls .tactic b{font-size:11px}.plan-controls .tactic small{font-size:9px}.plan-controls #start{min-height:40px;padding:6px}.plan-horse-name h2{font-size:20px}.plan-horse-visual{bottom:50px}.plan-horse-choices button{flex-basis:135px}}.plan-controls .tactic-icon{display:block;grid-column:1}.plan-controls .tactic b{grid-column:2;grid-row:1}.plan-controls .tactic small{grid-column:2;grid-row:2}@media(orientation:landscape)and (max-height:600px){.plan-race-summary{min-height:32px;padding-bottom:2px}.plan-race-summary>div:first-child>span{display:none}.plan-race-summary h2{line-height:1.2}.plan-prize{display:flex;align-items:center;gap:6px}.plan-prize small{font-size:9px}.plan-prize b{line-height:1.2}.plan-controls .tactic{min-height:44px}}#app[data-screen=gate]{background:radial-gradient(ellipse at center,#34543e,#10291f);color:#f3e6c5}#app[data-screen=gate] header{background:#10271ee8;color:#f3e6c5;border-color:#dcc68c33}#app[data-screen=gate] main{overflow:hidden;padding:10px 18px;width:100%;max-width:none}.gate-scene{height:100%;max-width:1100px;margin:0 auto;display:flex;flex-direction:column;text-align:left}.gate-heading{display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.gate-heading .eyebrow{color:#d9c692}.gate-heading h1{font-size:25px;margin:3px 0;color:#f3e6c5}.gate-player{color:#e5c879;font-size:12px}.gate-player:before{content:"●";margin-right:7px}.gate-stage{flex:1;min-height:0;display:flex;justify-content:center}.gate-stage svg{width:100%;height:100%;min-height:0;margin:0}.gate-bottom{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-shrink:0;padding:8px 12px;border:1px solid #dfc78b44;background:#102a22d9;border-radius:14px}.gate-phases{display:flex;gap:6px}.gate-phases span{font-size:11px;padding:4px 12px;border-radius:20px;color:#bfcbb7;background:#2d493a}.gate-phases .current{background:#e5c782;color:#19362a;font-weight:700}#gate-status{margin:5px 0 0;font-size:13px;color:#f3e6c5}#skip-gate{background:#254b3b;color:#f3e6c5;border:1px solid #d7c48788;border-radius:10px;min-height:44px;flex-shrink:0}@media(orientation:landscape)and (max-height:600px){#app[data-screen=gate] main{padding:4px 12px 6px}.gate-heading h1{font-size:18px;margin:0}.gate-heading .eyebrow{font-size:9px}.gate-player{font-size:10px}.gate-bottom{padding:5px 10px}.gate-phases span{padding:2px 10px;font-size:10px}#gate-status{font-size:11px;margin-top:3px}}.care-room .training-dashboard{display:flex;flex-direction:column;gap:10px}.training-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.training-heading h2{margin:0;font-size:20px}.training-heading>span{font-size:11px;color:#dcc88e}.training-stats{display:flex;gap:8px}.training-stats .stat{flex:1;display:block;min-width:0;font-size:11px;margin:0}.training-stats .bars{display:flex;gap:2px;margin-top:3px}.training-stats .bars i{flex:1;min-width:0;width:auto}.training-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.care-details .training-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:100%;margin:0;padding:8px 4px;border:1px solid #d6c28677;background:#254938;color:#f6e9c6;border-radius:10px}.training-choice>span{font-size:22px;color:#e9cd87}.training-choice b{font-size:11px}.training-choice small{font-size:10px}.care-details .training-choice.is-training{background:#d8bf83;color:#193728;opacity:1}.training-choice.is-training>span{color:inherit}.training-running,.training-readiness{display:flex;justify-content:space-between;gap:8px;font-size:11px}.training-running{background:#d9c488;color:#193728;padding:6px 8px;border-radius:8px}.training-readiness{padding:6px 0;border-bottom:1px solid #d6c28633}.training-report{border-left:2px solid #d6bd7f;padding-left:8px}.training-report>small{font-size:9px;letter-spacing:1px;color:#dbc58f}.care-details .training-report p{font-size:11px;line-height:1.4;margin:3px 0 0}.training-footnote{color:#c0cbb3;font-size:10px;line-height:1.4}@media(orientation:landscape)and (max-height:600px){.care-room .training-dashboard{gap:5px}.training-heading h2{font-size:17px}.care-details .training-choice{padding:4px 3px;gap:1px}.training-choice>span{font-size:16px}.training-choice small{font-size:9px}.training-readiness{padding:3px 0;font-size:10px}.training-footnote{font-size:9px}}@media(orientation:landscape)and (max-height:600px){.care-room:has(.training-dashboard) .care-layout{top:58px}.care-room:has(.training-dashboard) .care-details{padding:8px}.care-details .training-choice{min-height:60px}.training-dashboard .training-stats .stat{margin:0}.training-dashboard .training-report p{font-size:10px}}@media(orientation:landscape)and (max-height:600px){.care-room:has(.training-dashboard){margin-top:0;margin-bottom:0}.training-dashboard .training-choice{line-height:12px}.training-dashboard .training-stats .stat{line-height:14px}.training-dashboard .training-stats .bars{margin:3px 0 0}}.identity-dashboard{display:flex;flex-direction:column;gap:8px}.identity-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.identity-heading h2{margin:0;font-size:20px}.identity-heading>span{background:#dfc88d;color:#203d2c;padding:3px 9px;border-radius:20px;font-size:11px}.care-details .identity-breed,.care-details .identity-lineage{margin:0;font-size:11px}.identity-name label{font-size:10px;color:#d9ca9e}.identity-name>div{display:flex;gap:6px}.identity-name input{min-width:0;width:100%;flex:1;background:#0c211a;color:#f7ecd0;border:1px solid #c4b47a66;border-radius:8px;padding:6px 9px}.care-details .identity-name button{width:auto;margin:0;min-height:44px;background:#dac286;color:#173525;padding:6px 10px;border-radius:8px}.pedigree-cards{display:grid;grid-template-columns:1fr 1fr;gap:6px}.pedigree-cards>div{background:#294738;border:1px solid #ceb97a44;border-radius:8px;padding:6px 8px;min-width:0}.pedigree-cards small,.identity-promotion>small{display:block;font-size:9px;letter-spacing:1px;color:#d9ca9e}.pedigree-cards b{display:block;font-size:12px;overflow-wrap:anywhere}.identity-story{border-block:1px solid #c6b47c33}.identity-story summary{cursor:pointer;min-height:32px;display:flex;align-items:center;font-size:12px}.identity-story summary:before{content:"+";margin-right:8px;color:#e6cb88}.identity-story[open] summary:before{content:"−"}.care-details .identity-story p,.care-details .identity-promotion p{font-size:11px;line-height:1.4;margin:4px 0}.identity-promotion{border-left:2px solid #d9bf7c;padding-left:8px}@media(orientation:landscape)and (max-height:600px){.care-room:has(.identity-dashboard){margin-top:0;margin-bottom:0}.care-room:has(.identity-dashboard) .care-details{padding:8px}.identity-dashboard{gap:4px}.identity-heading h2{font-size:17px}.pedigree-cards>div{padding:3px 7px}.identity-story summary{min-height:28px}}@media(orientation:landscape)and (max-height:600px){.identity-dashboard{line-height:14px;gap:3px}.identity-heading h2{line-height:20px}.identity-name label{display:block;line-height:13px}.identity-name input{margin:0}.identity-story summary{min-height:24px}.pedigree-cards b{line-height:16px}}.identity-fixed-name small{display:block;color:#d9ca9e;font-size:9px;letter-spacing:1px}.identity-fixed-name b{display:block;font-size:17px;overflow-wrap:anywhere}@media(orientation:landscape)and (max-height:400px)and (max-width:740px){.care-room:has(.training-dashboard) .care-layout{width:50%}.training-dashboard .training-choice>span{display:none}.training-dashboard .training-choice{min-height:48px}.training-dashboard .training-choice b{font-size:10px}.training-dashboard .training-stats .stat{white-space:nowrap;font-size:10px}.training-dashboard .training-footnote{font-size:8px;line-height:1.2}.training-dashboard .training-report p{font-size:10px;line-height:1.2}}.horse-history{border-block:1px solid #d5bd7733}.horse-history summary{cursor:pointer;padding:9px 0;font-size:12px}.care-details .horse-history p,.horse-history li{font-size:11px;line-height:1.5}.history-race{border-top:1px solid #d5bd7733}.history-race ol{padding-left:0;list-style:none}#history-dialog{width:min(920px,96vw);max-width:96vw;height:90dvh;max-height:90dvh;box-sizing:border-box;overflow:auto;background:#142f25;color:#f4e8ca;border:1px solid #d8c18a;border-radius:14px;padding:16px}#history-dialog h2{color:inherit}#history-dialog>button{position:sticky;top:0;z-index:1;background:#e4cc94;color:#183527}.history-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.history-filters{display:flex;gap:12px;flex-wrap:wrap;margin:10px 0}.history-filters label{display:flex;align-items:center;gap:8px;font-size:12px}.history-filters select{min-height:44px;background:#244a39;color:#f3e8cc;border:1px solid #c4b079;border-radius:8px;padding:5px 10px}@media(orientation:landscape)and (max-height:600px){#history-dialog{padding:10px 14px;height:94dvh;max-height:94dvh}#history-dialog h2{font-size:18px;margin:8px 0}#history-dialog p{font-size:11px;margin:5px 0}}.plan-performance{position:absolute;left:0;top:58px;width:135px;padding:8px;border:1px solid #d7c28a55;border-radius:12px;background:#112b23e8}.plan-performance>small{color:#dcc58a;font-size:9px;letter-spacing:.6px}.plan-performance .stat{display:block;margin:6px 0;font-size:11px;color:#f5e9cb}.plan-performance .bars{display:flex;gap:2px;margin-top:2px}.plan-performance .bars i{flex:1;width:auto;min-width:0;height:4px}.plan-performance>span{display:block;font-size:9px;line-height:1.3;color:#c8d4bd}.plan-horse-visual .scene-horse{left:39%;width:60%}.stall-info .horse-card{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.stall-info .horse-card .card-top{grid-column:1 / -1}.stall-info .horse-card .stat{width:100%;min-width:0;font-size:10px}.stall-info .horse-card>button,.stall-info .horse-card .card-action{grid-column:1 / -1;width:100%;margin:0}.stall-info .horse-card button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:44px;width:100%;margin:0;padding:6px 10px;border-radius:9px;line-height:1.2}.horse-card button svg{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.stall-info .horse-card .card-action{display:flex;flex-direction:column;gap:4px}.stall-info .horse-card .horse-status-group{align-items:flex-start}.stall-info .horse-card .bars{width:100%}.stall-info .horse-card .bars i{flex:1;width:auto;min-width:0}@media(orientation:landscape)and (max-height:600px){.plan-performance{top:43px;width:112px;padding:5px 7px}.plan-performance .stat{margin:3px 0;font-size:10px;line-height:12px}.plan-performance>small{font-size:8px}.plan-performance>span{font-size:8px}.stable-content[data-tab-view=stable] .stall-info{max-height:calc(100% - 188px);overflow:auto}.stall-info .horse-card{gap:4px}.stall-info .horse-card .horse-recommendation{font-size:10px;line-height:1.2}}@media(orientation:landscape)and (max-height:600px){.stall-info .horse-card .stat{white-space:nowrap;font-size:9px}.stall-info .horse-card .bars{margin-top:3px}}.plan-performance{line-height:12px;text-align:left;box-sizing:border-box}.plan-performance>small{display:block;white-space:nowrap;letter-spacing:0;line-height:12px}.plan-performance .stat>span{line-height:12px}.plan-performance .stat .bars{height:4px;margin:2px 0 0}@media(orientation:landscape)and (max-height:600px){.plan-performance{top:46px;width:118px}.plan-performance .stat{display:block;margin:3px 0}.plan-performance>span{margin-top:3px;line-height:10px}.plan-horse-choices button{flex-basis:135px;min-height:44px;white-space:nowrap}.plan-horse-choices button b{font-size:12px}.plan-horse-choices small{font-size:9px}}@media(orientation:landscape)and (max-height:600px){.plan-performance>span{white-space:nowrap;font-size:7px}}.care-room.is-overview .care-layout{width:100%;margin:0;overflow:visible}.care-room.is-overview .care-details{background:none;border:0;padding:0;-webkit-backdrop-filter:none;backdrop-filter:none}.care-overview{color:#f4edda}.care-overview section{position:absolute;z-index:2;background:#10291ee6;border:1px solid #ceb77755;border-radius:12px;padding:10px;box-sizing:border-box}.care-overview small{color:#d6c08a;font-size:9px;letter-spacing:.4px}.overview-performance{left:16px;top:158px;width:170px}.overview-status{right:16px;top:80px;width:195px}.care-overview h2{font-size:18px;margin:3px 0}.care-overview p{font-size:11px;margin:4px 0;line-height:1.35}.care-overview .stat{display:block;font-size:11px;margin:5px 0}.care-overview .bars{display:flex;gap:3px;margin:3px 0}.care-overview .bars i{flex:1;width:auto;min-width:0}.care-details .care-overview button{display:block;width:100%;margin:5px 0 0;min-height:44px;padding:5px;border-radius:8px;font-size:11px;background:#284b39;color:#f3e7c7}.care-overview button small{display:block;font-size:9px}.overview-news{left:16px;bottom:88px;max-width:340px}@media(orientation:landscape)and (max-height:600px){.overview-performance{top:130px;width:155px;padding:7px!important}.overview-status{top:60px;width:170px;padding:7px!important}.overview-news{left:180px;right:192px;bottom:74px;max-width:none;padding:6px 8px!important}.overview-news p{font-size:10px;margin:2px 0}.care-overview .stat{font-size:10px;margin:3px 0;line-height:12px}.care-overview .bars i{height:4px}.room-nav button{min-width:64px}}.care-overview .overview-news{position:static;width:auto;max-width:none;margin-top:5px;padding:0!important}.overview-news summary{cursor:pointer;min-height:28px;font-size:11px;display:flex;align-items:center}.overview-news summary:before{content:"+";margin-right:6px;color:#dec784}.overview-news[open] summary:before{content:"−"}@media(orientation:landscape)and (max-height:600px){.overview-performance{top:126px;max-height:calc(100dvh - 204px);overflow:auto}}.account-screen{min-height:100dvh;display:grid;place-items:center;background:linear-gradient(120deg,#102e27ee,#0a191dee),url(/assets/stable-interior-v3.png) center/cover;padding:24px;overflow:auto}.account-card,.lobby-card{width:min(640px,100%);margin:auto;padding:24px;border:1px solid #c9b17955;border-radius:20px;background:#122a26;color:#f4ead1}.account-card h1,.lobby-card h1{font-size:clamp(23px,4vw,38px);margin:12px 0;color:#f4ead1}.account-card p,.lobby-card p,.account-card .text-button{color:#cbd8cf}.account-card form{display:grid;gap:12px}.account-card label{display:grid;gap:5px}.account-card input{width:100%;padding:10px;background:#071b18;color:#fff;border:1px solid #9baf9d;border-radius:8px}.account-actions{display:flex;gap:10px;flex-wrap:wrap}.account-card code{display:block;padding:16px;background:#071b18;overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.account-card [hidden]{display:none}.lobby-card{text-align:center}.lobby-card strong{font-size:40px;color:#e9c576}@media(orientation:landscape)and (max-height:500px){.account-screen{padding:12px}.account-card{padding:16px}.account-card form{grid-template-columns:1fr 1fr;gap:8px}.account-actions,.account-card form>small,.account-card form>p{grid-column:1/-1}.account-card p{margin:8px 0}.lobby-card{padding:12px}.lobby-card h1{font-size:24px}.lobby-card p{margin:8px}}.online-gate #skip-gate{display:none}.online-gate{height:100%;min-height:0}.race-options{display:flex;align-items:center;gap:12px;padding:6px 0;flex-shrink:0}.race-options label{display:flex;align-items:center;gap:6px;font-size:12px;color:#e7d7ac}.race-options select{min-height:40px;border:1px solid #d3b97b;background:#193c2c;color:#fff0cf;border-radius:8px;padding:4px 10px;font:inherit}.race-options p{font-size:12px;margin:0;color:#c7d2bc}@media(orientation:landscape)and (max-height:500px){.race-options{gap:10px;padding:2px 0}.race-options select{min-height:36px;font-size:11px}.race-options p,.race-options label{font-size:10px}.plan-instruction small{display:none}.plan-controls .tactic{min-height:36px}.plan-controls .tactic small{font-size:9px}}@media(orientation:landscape)and (max-height:500px){.plan-controls .tactics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible}.plan-controls .tactic{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;padding:4px;text-align:center}.plan-controls .tactic small{display:none}.plan-controls .tactic-icon{font-size:20px}.plan-instruction small{display:block;font-size:10px;line-height:1.25}.plan-horse-choices{scrollbar-width:none}.plan-horse-choices::-webkit-scrollbar{display:none}}@media(orientation:landscape)and (max-height:500px){.plan-performance{width:148px;padding:4px 6px}.plan-performance .stat{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:2px 0}.plan-performance .stat .bars{flex:0 0 28px;width:28px;margin:0}}.race-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.race-tools .secondary{min-height:36px;padding:5px 9px;font-size:12px}#race-clock{font-variant-numeric:tabular-nums;color:#eed295;min-width:54px}.race-stage{position:relative}.race-overlay{position:absolute;left:12px;top:8px;pointer-events:none;max-width:calc(100% - 125px)}.race-overlay p{margin:0 0 5px;background:#112b23ed;color:#f9e9b7;padding:6px 10px;border-radius:8px;font-size:12px}#race-notice{border-left:3px solid #e9c465}.mini-map{position:absolute;right:10px;top:8px;width:108px;border:1px solid #c9b17488;border-radius:10px;background:#102c23eb}.mini-map svg{width:100%;display:block}.mini-map[hidden],#race-notice[hidden]{display:none}.final-stretch{box-shadow:inset 0 0 0 2px #e9c465;border-radius:18px}.result-bottom{flex-wrap:wrap}@media(orientation:landscape)and (max-height:500px){.race-tools{gap:4px;flex-wrap:nowrap}.race-tools .secondary{min-height:32px;padding:4px 7px;font-size:10px}.race-tools .live-dot{display:none}.race-overlay{left:5px;top:5px;max-width:calc(100% - 90px)}.race-overlay p{font-size:10px;padding:4px 6px}.mini-map{width:76px;right:5px;top:5px}.race-heading h1{font-size:18px}#race-clock{font-size:11px;min-width:44px}}@media(prefers-reduced-motion:reduce){.final-stretch{box-shadow:none}}@media(orientation:landscape)and (max-height:400px){#app[data-screen=race] .ranking-panel li{padding-top:3px;padding-bottom:3px}}.jockey-choice{display:flex;align-items:center;gap:8px;width:100%;padding:7px 10px;border:1px solid #d6bc7b88;border-radius:10px;background:#254937;color:#f9e9bf;text-align:left;min-height:40px;font-size:12px;flex-shrink:0}.jockey-choice small{margin-left:auto;white-space:nowrap;color:#e2c583}.jockey-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.jockey-roster button{display:flex;flex-direction:column;gap:6px;text-align:left;border:2px solid #64786b;background:#153329;color:#f7eacc;border-radius:12px;padding:12px}.jockey-roster button[aria-pressed=true]{border-color:#edc774;background:#36583c}.jockey-roster small{min-height:42px}.jockey-roster span{font-size:12px}.jockey-roster strong{font-size:18px}#jockey-dialog{width:min(760px,95vw);max-height:92dvh;overflow:auto}#close-jockeys{margin-top:12px}.result-jockey{display:block;font-size:10px}.jockey-report{border-left:3px solid #b39042;padding-left:10px}@media(orientation:landscape)and (max-height:500px){.jockey-choice{padding:3px 7px;min-height:32px;font-size:10px}.plan-controls{gap:5px}.plan-instruction h2{font-size:15px}.plan-instruction small{font-size:9px}#jockey-dialog{padding:12px}#jockey-dialog h2{font-size:18px;margin:0}#jockey-dialog p{font-size:11px;margin:6px 0}.jockey-roster button{padding:8px;gap:3px}.jockey-roster small{font-size:10px;min-height:25px}.jockey-roster span{font-size:10px}.jockey-roster strong{font-size:15px}}@media(orientation:landscape)and (max-height:500px){.plan-controls{gap:3px}.plan-instruction{display:block}.plan-instruction h2{font-size:12px;line-height:1.2;white-space:nowrap}.plan-instruction small{display:block;font-size:9px;line-height:1.15}.plan-controls .tactics{flex:1 0 44px;min-height:44px}.plan-controls .tactic-icon{font-size:16px}.plan-controls .tactic b{font-size:10px}.plan-controls #start{min-height:36px;padding:4px}}.jockey-avatar{width:32px;height:32px;object-fit:cover;border-radius:50%;flex-shrink:0;border:1px solid #d6bc7b88}.jockey-identity{display:flex;flex-direction:column;min-width:0;gap:2px}.jockey-identity>span{font-size:.9em;color:#d9d6c2}.jockey-portrait{width:100%;height:190px;object-fit:cover;object-position:center 25%;background:#172c23;border-radius:8px}.jockey-roster strong{font-size:16px}@media(orientation:landscape)and (max-height:500px){.jockey-avatar{width:26px;height:26px}.jockey-identity{gap:0;line-height:1.15}.jockey-portrait{height:104px}.jockey-roster strong{font-size:12px}.jockey-roster button>b{font-size:11px}.jockey-roster small{min-height:24px;line-height:1.2}}#jockey-dialog{max-width:760px;padding-top:18px}#jockey-dialog h2{padding-right:76px}#close-jockeys{position:absolute;right:12px;top:10px;margin:0;min-height:34px;padding:5px 12px}@media(orientation:landscape)and (max-height:500px){#jockey-dialog{padding:12px;max-height:96dvh}#jockey-dialog>p{padding-right:65px}.jockey-roster button{padding:6px}}.stable-jockey{position:absolute;left:20px;top:145px;width:210px;z-index:2;background:#112a22ed;border:1px solid #d1bd8266;border-radius:14px;padding:12px;color:#fff3d7}.stable-jockey>img{display:block;width:100%;height:160px;object-fit:cover;object-position:center 25%;border-radius:8px}.stable-jockey h2{font-size:19px;margin:8px 0}.jockey-skills>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px;font-size:15px;margin:6px 0}.jockey-skills small{font-size:11px;color:#c7cfbd}.jockey-skills meter{grid-column:1/-1;width:100%;height:7px;accent-color:#dfbd72}.stable-jockey>button{width:100%;min-height:40px;margin-top:7px;background:#36583c;border:1px solid #d6bc7b88;border-radius:8px;color:#fff0cb;font-size:14px}.stall-info .horse-card{grid-template-columns:1fr;gap:10px}.stall-info .horse-card .stat{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;font-size:17px;gap:8px;margin:2px 0}.stall-info .horse-card .stat>span:first-child{min-height:0}.stall-info .horse-card .bars{flex:0 0 52px;margin:0}.stall-info .horse-card .horse-recommendation{font-size:13px;line-height:1.3}.stall-info .horse-card button{font-size:15px}@media(orientation:landscape)and (max-height:600px){.stable-jockey{left:12px;top:59px;width:174px;padding:7px}.stable-jockey>img{height:76px}.stable-jockey h2{font-size:15px;margin:4px 0}.jockey-skills>div{font-size:12px;margin:3px 0;gap:1px}.jockey-skills meter{height:5px}.stable-jockey>button{min-height:32px;font-size:12px;margin-top:3px}.stable-content[data-tab-view=stable] .stall-info{top:59px;width:192px;max-height:calc(100% - 120px)}.stall-info .horse-card{gap:5px;padding:8px}.stall-info .horse-card .stat{font-size:14px;line-height:20px;margin:0}.stall-info .horse-card .horse-recommendation{font-size:11px;line-height:1.25}.stall-info .horse-card button{font-size:13px;min-height:36px}.stable-content[data-tab-view=stable] .stall-name{left:200px;top:62px}}@media(orientation:landscape)and (max-height:600px){.stable-content[data-tab-view=stable] .horse-strip{left:198px;right:210px}}.stable-content[data-tab-view=stable] .horse-strip{scrollbar-width:none}.stable-content[data-tab-view=stable] .horse-strip::-webkit-scrollbar{display:none}.jockey-monogram{display:grid;place-items:center;width:100%;height:104px;border-radius:8px;background:linear-gradient(140deg,#486449,#142d29);color:#eed295;font-size:38px;font-weight:700}.jockey-tree{padding:12px 0;color:#193c2c}.jockey-tree h3{margin:8px 0}.jockey-tree button{display:block;width:100%;min-height:42px;margin:5px 0;background:#254937;color:#fff0cb;border:1px solid #aa975e;border-radius:8px;font-size:14px}#toggle-candidates{margin:4px 0 10px;min-height:36px}.jockey-roster{align-items:stretch}.jockey-roster button:disabled,.jockey-tree button:disabled{opacity:.55}.stable-jockey .jockey-monogram{height:160px}@media(orientation:landscape)and (max-height:600px){.stable-jockey .jockey-monogram{height:76px}}.stat strong{font-size:1.1em;color:inherit;white-space:nowrap}.stat strong small{font-size:10px;font-weight:400}#jockey-dialog.education-dialog{width:96vw;max-width:1100px;height:90dvh;max-height:90dvh;background:linear-gradient(120deg,#18372f,#0c201c);color:#fff1ce;border:1px solid #b59a60;padding:18px;overflow:auto}.education-header{display:flex;align-items:center;gap:20px;border-bottom:1px solid #d4b77855;padding-bottom:12px}.education-header>div{flex:1}.education-header h2{margin:4px 0;padding:0!important}.education-header small{color:#d5bd82}.education-header #close-jockeys{position:static;margin:0;background:#304e40;color:#fff1ce}.education-body{display:grid;grid-template-columns:180px 1fr;gap:20px;margin-top:16px}.education-profile img{width:100%;border-radius:12px}.education-profile p{font-size:15px}.education-profile>small{display:block;margin-top:12px;color:#c7d0bd}.education-profile button{width:100%;min-height:40px;background:#29483a;color:#f1ddb0;border:1px solid #b39c66;border-radius:8px}.education-map{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start}.education-branch{background:#28483aaa;border:1px solid #c3a76277;border-radius:14px;padding:14px}.education-branch h3{font-size:18px;margin:10px 0}.education-symbol{font-size:26px;color:#e1bd65}.education-path{display:flex;align-items:center;gap:6px;padding:12px 0;border-top:1px solid #ffffff22;border-bottom:1px solid #ffffff22;font-size:12px}.education-path strong{border:1px solid #d5b66d;border-radius:8px;padding:8px}.education-path i{font-style:normal;color:#d6ba79}.education-branch p{font-size:14px;line-height:1.4}.education-preview{font-size:19px;padding:8px 0}.education-preview small{font-size:11px}.education-branch button{width:100%;min-height:44px;border:1px solid #d8bc75;border-radius:8px;background:#dfc17e;color:#173329;font-weight:700}.education-branch button:disabled{opacity:.5}.education-explanation{grid-column:1/-1;font-size:12px;color:#d2d7c9}@media(orientation:landscape)and (max-height:600px){#jockey-dialog.education-dialog{height:96dvh;max-height:96dvh;padding:12px}.education-header{gap:10px;padding-bottom:7px}.education-header h2{font-size:19px}.education-header small{font-size:10px}.education-header>b{font-size:13px}.education-body{grid-template-columns:115px 1fr;gap:10px;margin-top:9px}.education-map{gap:7px}.education-branch{padding:8px}.education-symbol{font-size:18px}.education-branch h3{font-size:14px;margin:5px 0}.education-branch p{font-size:11px;margin:6px 0}.education-path{padding:6px 0;gap:3px;font-size:9px}.education-path strong{padding:4px}.education-preview{font-size:16px;padding:5px 0}.education-branch button{font-size:11px;min-height:36px}.education-profile p,.education-profile>small{font-size:11px}.education-profile button{font-size:12px}.education-explanation{margin:0;font-size:10px}}#jockey-dialog.education-dialog p{color:#e4e7d8}@media(orientation:landscape)and (max-height:600px){.education-header{padding-bottom:4px}.education-branch{padding:6px}.education-path{padding:4px 0}.education-profile p{line-height:1.3}.education-explanation{line-height:12px}}.career-summary p{margin:5px 0;font-size:13px}.stable-jockey h2 small{font-size:11px;color:#d8bf85}@media(orientation:landscape)and (max-height:600px){.education-profile>img{height:76px;object-fit:cover;object-position:center 25%}.career-summary p{font-size:11px;line-height:1.2;margin:4px 0}.education-profile>small{margin-top:6px;font-size:10px}}.plan-screen .plan-performance{width:180px;padding:12px;line-height:1.35;background:linear-gradient(145deg,#173a30f5,#10291ff2);box-shadow:0 5px 20px #0003}.plan-screen .plan-performance>small{font-size:11px;line-height:1.3;margin-bottom:8px;letter-spacing:.5px}.plan-screen .plan-performance .stat{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:7px 0;border-bottom:1px solid #ffffff18;font-size:14px;line-height:1.3}.plan-screen .plan-performance .stat>span{line-height:1.3}.plan-screen .plan-performance .stat strong{color:#ffe2a0;font-size:20px;white-space:nowrap}.plan-screen .plan-performance .stat strong small{display:none}.plan-screen .plan-performance>span{font-size:11px;line-height:1.35;white-space:normal;margin-top:8px}@media(orientation:landscape)and (max-height:600px){.plan-screen .plan-performance{top:40px;width:154px;padding:7px 9px}.plan-screen .plan-performance>small{font-size:10px;margin-bottom:3px}.plan-screen .plan-performance .stat{padding:3px 0;font-size:12px}.plan-screen .plan-performance .stat strong{font-size:17px}.plan-screen .plan-performance>span{font-size:10px;margin-top:4px}}.audio-settings{display:grid;gap:12px;margin:16px 0}.audio-settings label{display:grid;grid-template-columns:70px 1fr;align-items:center;gap:12px;font-size:14px}.audio-settings input{width:100%;min-height:32px;accent-color:#d9bc78}#settings-dialog{max-height:90dvh;overflow-y:auto}#daily-notice{position:fixed;z-index:60;right:24px;bottom:24px;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 100px);overflow:auto;padding:25px;background:linear-gradient(135deg,#f6f2df,#e8edda);color:#1c3e2f;border:1px solid #b6c48d;border-radius:16px;box-shadow:0 16px 60px #06191066}#daily-notice .notice-kicker{font-size:10px;letter-spacing:2px;color:#557548;font-weight:700}#daily-notice h2{font-size:25px;color:#183c2c;margin:13px 15px 12px 0}#daily-notice p{font-size:14px;line-height:1.65;color:#496047;white-space:pre-wrap}#daily-notice>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#daily-notice a{background:#295a3e;color:#fff8dc;padding:12px 16px;border-radius:8px;font-weight:700;text-decoration:none;font-size:13px}#daily-notice button{background:transparent;color:#526946;border:0;font-size:12px;padding:8px;min-height:36px}#daily-notice #notice-close{position:absolute;right:10px;top:7px;font-size:25px}#daily-notice #notice-error{display:block;color:#923b29;margin-top:6px}@media(max-height:550px){#daily-notice{bottom:12px;right:12px;padding:16px;max-height:calc(100dvh - 80px)}#daily-notice h2{font-size:20px}#daily-notice p{font-size:12px;margin:8px 0}}#app[data-first-horse=true] .market-heading{width:min(355px,34vw);top:26px;left:26px}.first-horse-intro{padding:22px;background:#102d25ed;border:1px solid #a6b77b99;border-radius:14px;box-shadow:0 10px 30px #0003}.first-horse-intro .first-step{font-size:11px;letter-spacing:1.7px;color:#e5ce91;font-weight:700}.first-horse-intro h2{font-size:clamp(23px,2.5vw,34px);line-height:1.15;margin:15px 0;color:#fff1cd}.first-horse-intro p{font-size:16px!important;line-height:1.6;color:#e2e7d3!important;opacity:1!important}.first-horse-intro strong{color:#ffe5a3}.first-horse-intro ol{padding:0;list-style:none;counter-reset:first-step;display:grid;gap:12px;margin:18px 0}.first-horse-intro li{counter-increment:first-step;display:grid;grid-template-columns:27px 1fr;column-gap:10px;font-size:14px}.first-horse-intro li:before{content:counter(first-step);grid-row:span 2;display:grid;place-items:center;background:#d9c489;color:#244a32;border-radius:7px;font-weight:700;height:27px}.first-horse-intro li b{color:#fff0ce}.first-horse-intro li span{color:#d1dbc6;font-size:13px;line-height:1.5}.first-horse-intro>small{color:#c5d4b6;font-size:12px;line-height:1.5}.first-horse-intro~.market-tabs{margin-top:10px}.first-horse-intro~p{display:none}.tour-text{display:block;background:none;border:0;color:#c5d4b6;text-decoration:underline;font-size:12px;padding:10px 0}.tour-highlight{outline:3px solid #efca6d!important;outline-offset:5px;box-shadow:0 0 0 8px #e9be4c25!important}.tour-highlight:focus-visible{outline-width:4px!important}#guided-tour{position:fixed;z-index:65;left:22px;top:88px;width:min(350px,calc(100vw - 32px));max-height:calc(100dvh - 190px);overflow:auto;border:1px solid #a9ba80;background:linear-gradient(135deg,#f7f2df,#e8eedb);box-shadow:0 12px 40px #001c1955;border-radius:15px;padding:22px;color:#244b35}#guided-tour .tour-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:1.2px}#guided-tour .tour-top button{background:none;border:0;color:#5e7050;font-size:12px;min-height:32px;padding:4px}#guided-tour h2{font-size:26px;line-height:1.15;margin:13px 0;color:#1a3c2b}#guided-tour p{font-size:16px;line-height:1.65;color:#465f40}#guided-tour>small{font-size:10px;color:#6d8259}.tour-progress{display:flex;gap:4px;margin:12px 0}.tour-progress i{height:4px;flex:1;border-radius:4px;background:#ccd7be}.tour-progress i.filled{background:#487445}.tour-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:16px}#guided-tour .tour-actions button{padding:11px 12px;border:1px solid #bacba3;border-radius:8px;background:transparent;color:#46673b;font-size:13px;min-height:44px}#guided-tour #tour-next{background:#2c5c3b;color:#fff3d1;border-color:#2c5c3b;font-weight:700}#guided-tour button:disabled{opacity:.35}#tour-save{display:block;margin-top:8px}@media(max-height:600px)and (orientation:landscape){#app[data-first-horse=true] .market-heading{top:10px;left:12px;width:31vw}.first-horse-intro{padding:12px}.first-horse-intro h2{font-size:21px;margin:9px 0}.first-horse-intro p{font-size:13px!important;margin:6px 0}.first-horse-intro ol{gap:6px;margin:8px 0}.first-horse-intro li span{font-size:11px}.first-horse-intro>small{font-size:10px}.first-horse-intro .first-step{font-size:9px}.first-horse-intro~.market-tabs{display:none}#guided-tour{top:72px;left:12px;width:30vw;max-height:calc(100dvh - 150px);padding:14px}#guided-tour h2{font-size:21px}#guided-tour p{font-size:13px;line-height:1.5}#guided-tour .tour-top>span{display:none}.tour-actions{flex-wrap:wrap}}@media(max-width:650px)and (orientation:portrait){#app[data-first-horse=true] .market-heading{position:relative;width:auto;left:auto;top:auto;margin:10px}.first-horse-intro{padding:15px}.first-horse-intro h2{font-size:25px}.first-horse-intro ol{display:none}#guided-tour{top:auto;bottom:88px;left:12px;width:calc(100vw - 24px);max-height:40dvh;padding:16px}#guided-tour h2{font-size:23px}#guided-tour p{font-size:14px}}#app[data-first-horse=true] .first-horse-intro{padding:18px 20px}#app[data-first-horse=true] .first-horse-intro h2{font-size:clamp(23px,2.4vw,30px);margin:12px 0}#app[data-first-horse=true] .first-horse-intro ol{gap:10px;margin:16px 0}#app[data-first-horse=true] .first-horse-intro p{margin:12px 0}@media(max-height:600px)and (orientation:landscape){#app[data-first-horse=true] .first-horse-intro{padding:10px 12px}#app[data-first-horse=true] .first-horse-intro h2{font-size:21px;margin:8px 0}#app[data-first-horse=true] .first-horse-intro ol{gap:6px;margin:10px 0}}@media(min-width:651px){#guided-tour[data-step="5"]{left:auto;right:22px}}#guided-tour.is-minimized{padding:12px 16px}#guided-tour.is-minimized>:not(.tour-top){display:none}#guided-tour .tour-top button{min-height:32px;white-space:nowrap}#guided-tour.is-minimized .tour-top{margin:0}.account-card .email-consent{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5;margin-top:14px}.account-card .email-consent input{width:18px;height:18px;flex:none;margin-top:2px}.account-card .email-info{font-size:13px;line-height:1.5;opacity:.8}#registration-email[hidden]{display:none}.tour-mentor{display:flex;align-items:center;gap:13px;margin:12px 0 16px}.tour-mentor img{width:76px;height:76px;object-fit:cover;border-radius:50%;border:3px solid #d1b56b;box-shadow:0 4px 15px #11251930;flex:none}.tour-mentor strong{display:block;font-size:19px;font-family:Georgia,serif}.tour-mentor span{display:block;font-size:12px;margin-top:5px;opacity:.8}.first-horse-intro .tour-mentor{color:#f7ebc9}.tour-inline-actions{display:flex;gap:8px;flex-wrap:wrap}.tour-inline-actions button{font-size:12px;padding:9px;background:#203e32;color:#eee2bc;border:1px solid #7c9064;border-radius:7px}#tour-launcher{position:fixed;z-index:65;right:20px;bottom:100px;display:flex;flex-direction:column;align-items:center;padding:5px;border-radius:36px 36px 15px 15px;background:#f4efd9;border:2px solid #c7a354;box-shadow:0 5px 20px #0004;color:#274935}#tour-launcher img{border-radius:50%;width:60px;height:60px;object-fit:cover}#tour-launcher span{font-size:12px;font-weight:700;padding:5px}#app[data-first-horse=true] .first-horse-intro{max-height:calc(100dvh - 250px);overflow:auto}#guided-tour .tour-top{letter-spacing:.5px}@media(max-height:600px){.tour-mentor img{width:52px;height:52px}.tour-mentor{margin:7px 0}.tour-mentor strong{font-size:16px}.tour-mentor span{font-size:10px}#app[data-first-horse=true] .first-horse-intro{max-height:calc(100dvh - 195px)}}#app[data-screen=race] .ranking-panel li{min-width:0}#app[data-screen=race] .ranking-panel li>span{flex:none}#app[data-screen=race] .ranking-panel li b{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#app[data-screen=race] .ranking-panel li small{flex:none;white-space:nowrap;font-variant-numeric:tabular-nums}#app[data-screen=race] .ranking-panel li.mine small,#app[data-screen=race] .ranking-panel li.mine>span{color:#19392a;font-weight:600}#app>header{background:#102c25f5!important;border-bottom:1px solid #d6bc7e33!important;padding:10px 22px;gap:18px;color:#f2ead4;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}#app>header .brand{color:#f2ead4!important;gap:10px;font-size:20px;letter-spacing:3px;flex-shrink:0}#app>header .brand small{color:#b7c2ae;font-size:8px;letter-spacing:3px}#app>header .brand-mark{width:34px;height:42px;font-size:26px;border-color:#cbb579;color:#e1c88b}#app>header .header-right{gap:10px;min-width:0;flex-wrap:nowrap}#app>header .header-nav,#app>header .header-balances{display:flex;align-items:center;gap:7px}#app>header .header-action,#app>header .settings-button,#app>header .balance-card{height:44px;min-height:44px;box-sizing:border-box;border:1px solid #b9c8ac33;border-radius:10px;background:#ffffff07;color:#f2ead4!important;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:8px 12px;font-size:12px;line-height:1.15;white-space:nowrap;font-family:inherit}#app>header .header-action>span:first-child{font-size:19px;color:#dbc68d;line-height:1;width:20px;text-align:center}#app>header .balance-card{justify-content:flex-start;min-width:100px;background:#f1e8d30b;padding:7px 11px}#app>header .balance-copy{display:flex;flex-direction:column;gap:3px;margin:0;color:inherit}#app>header .balance-copy small{display:block;margin:0;font-size:10px;line-height:1;color:#b7c4b6;font-weight:500}#app>header .balance-copy b{font-size:15px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums;color:#f7edcf}#app>header .currency-icon,#app>header .xp-icon{width:24px;height:24px;flex:none}#app>header .xp-icon{display:grid;place-items:center;border:1px solid #b8c99c;border-radius:50%;font-size:9px;font-weight:750;color:#dce7c6}#app>header .settings-button{width:44px;padding:10px;flex:none}#app>header .settings-button svg{width:22px;height:22px;stroke:#dbc68d}#app>header .header-action:hover,#app>header button:hover{background:#d6bc7e20;filter:none}@media(max-width:1100px){#app>header{padding-inline:12px;gap:10px}#app>header .header-right{gap:6px}#app>header .header-action .header-label{display:none}#app>header .header-action{width:44px;padding:8px}#app>header .balance-card{min-width:92px}}@media(max-width:740px){#app>header .brand>span:last-child{display:block;font-size:15px;letter-spacing:1.5px}#app>header .brand small{display:none}#app>header .brand-mark{display:none}#app>header .header-nav{gap:4px}#app>header .header-action,#app>header .settings-button{width:34px;height:40px;min-height:40px;padding:6px}#app>header .balance-card{min-width:66px;height:40px;min-height:40px;padding:5px;gap:4px}#app>header .currency-icon,#app>header .xp-icon{width:18px;height:18px}#app>header .balance-copy b{font-size:12px}#app>header .balance-copy small{font-size:9px}#app>header .header-balances{gap:4px}#app>header .header-right{gap:4px}}@media(max-width:510px)and (orientation:portrait){#app>header{height:auto;min-height:100px;flex-wrap:wrap;justify-content:center;gap:6px;padding:8px}#app>header .brand{width:100%;justify-content:center}#app>header .header-right{justify-content:center;width:100%}}.plan-screen[data-mode]{padding:14px;border-radius:16px;overflow:auto;height:100%;box-sizing:border-box}.plan-screen[data-mode=npc]{background:linear-gradient(120deg,#193b2ee8,#47644066)}.plan-screen[data-mode=mixed]{background:linear-gradient(120deg,#172b44ef,#72592d88)}.race-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0;flex:none}.race-mode-options button{display:grid;gap:5px;text-align:left;padding:12px 16px;border:1px solid #d9c58b44;border-radius:10px;background:#10271ec9;color:#f5ecd0;font-family:inherit}.race-mode-options button[aria-pressed=true]{border-color:#e7ca7b;background:#c6a65c25;box-shadow:inset 3px 0 #e7ca7b}.race-mode-options b{font-size:15px}.race-mode-options span{font-size:12px;color:#d2dac8}.race-mode-options strong{font-size:17px;color:#f3d990}.race-mode-options small{font-size:10px;font-weight:400}.plan-screen .plan-horse-area{display:grid;grid-template-columns:minmax(0,1fr) 180px;grid-template-rows:auto minmax(150px,1fr) auto;gap:12px;min-height:290px}.plan-screen .plan-horse-name{grid-column:1/-1;position:relative;z-index:1;overflow-wrap:anywhere}.plan-screen .plan-horse-name span{display:block;font-size:13px;margin-top:6px}.plan-screen .plan-performance{position:relative;inset:auto;grid-column:2;grid-row:2;align-self:start;box-sizing:border-box;width:180px;margin:0}.plan-screen .plan-horse-visual{position:relative;inset:auto;grid-column:1;grid-row:2;min-height:150px}.plan-screen .plan-horse-visual .scene-horse{left:0;top:0;width:100%;height:100%}.plan-horse-locked{grid-column:1/-1;grid-row:3;position:relative;font-size:12px;line-height:1.5;color:#d2dbc8;margin:0}.plan-screen .plan-body{min-height:300px;flex:1 0 auto}@media(max-height:600px){.race-mode-options{margin:6px 0;gap:6px}.race-mode-options button{padding:8px 10px;gap:3px}.race-mode-options b{font-size:12px}.race-mode-options span{font-size:10px}.race-mode-options strong{font-size:14px}.plan-screen[data-mode]{padding:8px}.plan-screen .plan-horse-area{grid-template-columns:minmax(0,1fr) 154px}.plan-screen .plan-performance{width:154px}}@media(max-width:650px)and (orientation:portrait){.plan-screen .plan-body,.race-mode-options{grid-template-columns:1fr}.plan-screen .plan-controls{min-height:300px}}.currency-tooltip{position:fixed;z-index:100;width:min(290px,calc(100vw - 24px));box-sizing:border-box;padding:14px 16px;border:1px solid #bba66c;border-radius:12px;background:#f5eed9;color:#213d2e;box-shadow:0 8px 28px #001b1855;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;line-height:1.6;white-space:normal}.currency-tooltip[hidden]{display:none}#app>header .balance-card:focus-visible{outline:2px solid #ebd08d;outline-offset:3px}#app>header .wallet,#app>header .gem-preview{cursor:help}.horse-portrait.individual-horse{background-image:var(--horse-image);background-size:contain;background-position:center bottom;background-repeat:no-repeat;filter:var(--horse-tone,none)}.scene-horse{filter:var(--horse-tone,none) drop-shadow(3px 8px 5px #26190e50)}.stable-content[data-tab-view=farm]>:not(.farm-screen){display:none!important}#app[data-stable-tab=farm] main{overflow:auto;padding:18px 24px 100px;background:linear-gradient(130deg,#142f26,#354e3a)}.farm-screen{max-width:1180px;margin:0 auto;color:#eee9d2;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.farm-intro{padding:24px 0}.farm-intro>small{color:#d9bf7e;letter-spacing:2px;font-size:11px}.farm-intro h1{font-family:Georgia,serif;font-size:38px;margin:12px 0}.farm-intro p{max-width:720px;font-size:16px;line-height:1.7;color:#ced7c4}.farm-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.farm-panel{padding:24px;background:#102c25d9;border:1px solid #c7b17344;border-radius:16px}.farm-panel h2{font-size:21px;color:#f3e7bf;margin:0 0 16px}.farm-panel h3{font-size:19px;color:#f3e7bf}.farm-panel h3 small{font-size:12px;color:#b8c8b0}.farm-panel p,.farm-panel li{font-size:14px;line-height:1.75;color:#d1dbc8}.farm-panel ol{padding-left:22px}.farm-panel li{padding-bottom:10px}.farm-panel b{color:#f7e4af}.farm-panel a{color:#e4cd8d}.farm-panel label{display:grid;gap:7px;font-size:13px;margin-bottom:14px}.farm-panel select,.farm-panel input{width:100%;box-sizing:border-box;padding:12px;border:1px solid #718369;background:#203e31;color:#f5ebcb;border-radius:8px;font:inherit;min-height:44px}.farm-panel button{background:#e2c47d;color:#203b2c;padding:13px 16px;border:0;border-radius:10px;font:600 14px Inter,sans-serif;min-height:44px}.farm-panel button:disabled{opacity:.45;cursor:not-allowed}.farm-horses{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.farm-locked{padding:18px;border:1px dashed #b5a876;border-radius:10px}.lineage-detail{font-size:12px;line-height:1.7}.farm-screen>h2{margin-top:30px}.identity-dashboard .lineage-detail{padding:12px;border:1px solid #b8b68a55;border-radius:8px}@media(max-width:700px){.farm-grid{grid-template-columns:1fr}.farm-intro h1{font-size:28px}.farm-panel{padding:18px}#app[data-stable-tab=farm] main{padding:12px 12px 100px}}#app[data-stable-tab=farm]{background:#173329;color:#eee9d2}.farm-screen .farm-intro h1{color:#f4e8c6}@media(max-width:600px)and (orientation:portrait){#app[data-screen=race] main{overflow:auto}#app[data-screen=race] .race-heading{align-items:center}#app[data-screen=race] .race-heading h1{font-size:19px;white-space:nowrap}#app[data-screen=race] .race-heading .eyebrow,#app[data-screen=race] .live-dot{display:none}#app[data-screen=race] .race-layout{flex:none;grid-template-rows:auto auto}#app[data-screen=race] .track{flex:none;height:260px;min-height:260px}#app[data-screen=race] .live-plan{padding:7px 10px}#app[data-screen=race] .live-plan p{display:none}#app[data-screen=race] .mini-map{width:68px;height:44px}#app[data-screen=race] .race-overlay{max-width:58%;font-size:10px}#app>header .header-action,#app>header .settings-button{width:28px;padding:4px}#app>header .balance-card{min-width:60px;padding:4px;gap:3px}}#updates-dialog{width:min(560px,calc(100vw - 32px));box-sizing:border-box;padding:24px;border:1px solid #bfa768;border-radius:16px;background:#f5efdc;color:#203e31;max-height:85dvh;overflow:auto}#updates-dialog::backdrop{background:#081b16a8}#updates-dialog article{padding:18px 0;border-top:1px solid #c8c7ae}#updates-dialog p{white-space:pre-wrap;font-size:15px;line-height:1.65}#updates-dialog h3{font-size:21px;margin:10px 0}#updates-dialog a{color:#285e3f;font-weight:700}#updates-close{position:sticky;top:0;float:right;background:#f5efdc}#updates-button{white-space:nowrap}#updates-dialog{max-height:calc(100dvh - 24px);padding:16px;overflow:hidden}#updates-dialog[open]{display:flex;flex-direction:column;gap:12px}#updates-dialog .news-heading{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:12px;flex:none}#updates-dialog .news-heading h2{margin:0;font-size:24px}#updates-dialog #updates-close{position:static;float:none;min-height:44px;flex:none;margin:0}#updates-dialog .news-content{overflow:auto;min-height:0;overscroll-behavior:contain}@media(max-width:900px),(max-height:600px){#app.guide-compact[data-first-horse=true] .first-horse-intro{display:none}#tour-launcher{top:72px;bottom:auto;right:12px;max-width:calc(100vw - 24px);flex-direction:row;border-radius:24px;padding:4px 10px 4px 4px;min-height:44px}#tour-launcher img{width:32px;height:32px}#tour-launcher span{font-size:12px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#guided-tour .tour-top{position:sticky;top:-16px;background:#f0efde;z-index:1;padding:6px 0}#guided-tour .tour-top button{min-height:44px}}#app>header #updates-button{position:relative;width:40px;min-width:40px;flex:0 0 40px;padding:8px}#updates-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#updates-button .updates-dot{position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;background:#f2cc75;border:1px solid #193d30}#updates-button .updates-dot[hidden]{display:none}@media(max-width:740px){#app>header #updates-button{width:32px;min-width:32px;flex-basis:32px;padding:5px}}#app>header #updates-button{background:transparent;border-color:#ffffff20;box-shadow:none}#app>header #updates-button:hover{background:#ffffff0c;box-shadow:none}#app>header #updates-button:focus{box-shadow:none}#app>header #updates-button:focus-visible{outline:2px solid #c3d9d3;outline-offset:2px}#app>header #updates-button .updates-dot{inset:auto 50% 4px auto;transform:translate(50%);width:10px;height:2px;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:2px;background:#a5d6c9;box-shadow:none;animation:none}#updates-dialog{padding:0;width:min(580px,calc(100vw - 20px));max-height:calc(100dvh - 24px);background:linear-gradient(145deg,#244435,#10271f);color:#f6eed5;border:1px solid #a48d59;box-shadow:0 18px 60px #0009;overflow:hidden}#updates-dialog .news-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border-bottom:1px solid #b69c5940;background:#142e24}#updates-dialog .welcome-heading{margin:0;font-size:20px;color:#f6e3ad}#updates-dialog #updates-close{position:static;float:none;min-width:70px;min-height:44px;background:#ffffff09;color:#f6eed5;border:1px solid #c5b07566;border-radius:9px}#updates-dialog .news-content{padding:10px;max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain}#updates-dialog .news-note{margin:0 0 7px;border:1px solid #d1bd7833;border-radius:10px;background:#ffffff05}#updates-dialog .news-note summary{display:flex;align-items:center;gap:10px;padding:12px;min-height:44px;cursor:pointer;list-style:none}#updates-dialog .news-note summary::-webkit-details-marker{display:none}#updates-dialog .news-note summary>span:nth-child(2){flex:1;min-width:0}#updates-dialog .news-note summary small{display:block;color:#b9c9b5;font-size:11px;margin-bottom:4px}#updates-dialog .news-note summary b{display:block;color:#f4e7c7;font-size:14px;line-height:1.4;overflow-wrap:anywhere}#updates-dialog .news-note-icon{color:#d8bc76;font-size:22px}#updates-dialog .news-note[open]{background:#ffffff0a}#updates-dialog .news-note-body{padding:0 14px 14px}#updates-dialog .news-note-body p{font-size:14px;color:#dce5d8;line-height:1.6}#updates-dialog .news-note-body a{display:inline-block;padding:10px 0;color:#f1d394}#updates-dialog .news-events h3{font-size:13px;color:#b9c9b5;margin:16px 4px 8px}@media(max-height:480px){#updates-dialog .news-heading{padding:6px 12px}#updates-dialog .news-content{max-height:calc(100dvh - 90px)}}.home-racecourse{padding:8px 12px;border:1px solid #b99b57;border-radius:12px;background:#173a30;color:#fff0cc}.home-racecourse summary{cursor:pointer;min-height:36px}.home-racecourse form{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.home-racecourse select{max-width:100%;min-height:44px}.home-racecourse label{min-width:0}.home-racecourse p{font-size:13px}.home-racecourse button{min-height:44px}.stable-content:has(>.home-racecourse){display:flex;flex-direction:column;min-height:0;overflow:auto}.home-racecourse{flex:none;position:relative;z-index:2}.home-racecourse details[open]{max-height:55dvh;overflow:auto}.stable-content>.home-racecourse+.race-hub{flex:1;min-height:180px;width:100%;box-sizing:border-box}.home-racecourse select{width:min(100%,320px)}.form-training-choice{min-height:44px;max-width:100%;white-space:normal;padding:6px 10px}.form-training-choice small{display:block;font-size:11px;line-height:1.3}.form-status{max-width:100%;padding:8px 10px;border:1px solid #b99c5a55;border-radius:8px;background:#101c19}.form-status>div{display:flex;justify-content:space-between;gap:12px}.form-status meter{display:block;width:100%;height:12px;margin:4px 0}.form-status small{display:block;line-height:1.4}.training-dashboard .form-training-choice{display:block;width:100%;margin:8px 0;text-align:center;overflow-wrap:anywhere}.care-shop{padding:12px;color:#f6e9c6;background:#193728;border-radius:12px;margin:12px 0}.care-shop-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}.care-shop-grid article{padding:10px;border:1px solid #d6c28677;border-radius:8px}.care-shop-grid button{min-height:44px;width:100%;white-space:normal}.market-showcase .open-care-shop{position:absolute;z-index:8;right:12px;top:12px;min-height:44px;max-width:45%}.market-showcase.care-supply-mode{padding:12px 12px 100px;overflow-y:auto;background:#193728}.care-supply-mode>button{min-height:44px;position:relative;z-index:1}.care-supply-mode .care-shop{position:relative;margin:10px 0}.care-supply-mode .care-shop h3{font-size:18px}@media(orientation:portrait)and (max-width:700px){.care-room:has(.care-mood) .care-layout{position:fixed;inset:190px 12px 220px;width:auto;margin:0;overflow-y:auto}.care-room:has(.care-mood) .care-details{max-height:none}}.cheer-control{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;font-size:.75rem;padding:.35rem .6rem;background:#183d31;border:1px solid #b99548;border-radius:12px}.cheer-control button{min-width:44px;min-height:44px;padding:4px;font-size:24px}.cheer-control label{display:flex;gap:.4rem;align-items:center}.cheer-control progress{width:70px;height:8px}.cheer-control b{color:#ffd16e}#main-track{touch-action:manipulation}.cheer-tap{position:fixed;width:34px;height:34px;border:2px solid #ffd16e;border-radius:50%;pointer-events:none;z-index:90;animation:cheer-ripple .35s ease-out forwards}@keyframes cheer-ripple{to{transform:scale(1.8);opacity:0}}@media(prefers-reduced-motion:reduce){.cheer-tap{animation:none;opacity:.5}}.cheer-control{display:grid;grid-template-columns:44px 1fr 32px;gap:3px 5px;padding:4px;align-items:center}.cheer-control button{grid-row:1/3;border:1px solid #c3a45f;border-radius:50%;background:#244c3b;color:#ffe8a2;min-width:44px;width:44px;min-height:44px;height:44px;margin:0}.cheer-control>span{grid-column:2/4;font-size:10px}.cheer-control label{font-size:0;margin:0;padding:0;min-height:0}.cheer-control progress{width:100%;height:8px;margin:0}.cheer-control b{font-size:10px}@media(max-height:500px)and (orientation:landscape){.race-sidebar .ranking-panel{padding:6px}.race-sidebar .ranking-panel li{padding:3px 5px;min-height:0}.race-sidebar .energy-panel{padding:6px;margin-top:4px}.race-sidebar .race-spectator-note{display:none}.race-sidebar .cheer-control{margin-bottom:4px}}@media(max-height:500px)and (orientation:landscape){.race-sidebar #ranking{gap:1px;margin:3px 0 0}.race-sidebar #ranking li{height:20px;min-height:20px;padding:1px 4px;line-height:18px;font-size:10px}.race-sidebar .energy-panel small{font-size:9px;line-height:12px}.race-sidebar .energy-panel{padding:5px}.race-sidebar .ranking-panel .eyebrow{font-size:9px}}.care-details .feeding-panel h2{margin:0 0 8px;font-size:20px}.care-details .feeding-panel>label{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:8px;margin:6px 0;font-size:13px}.care-details .feeding-panel progress{width:100%;height:9px;margin:0}.care-details .feeding-panel>p{margin:6px 0;font-size:12px;line-height:1.3}@media(max-height:500px){.care-room:has(.feeding-panel) .care-details{padding:10px}.care-details .feeding-panel h2{font-size:18px;margin-bottom:5px}.care-details .feeding-panel>label,.care-details .feeding-panel>p{margin:4px 0}}.care-room:has(.feeding-panel) .care-subnav{width:max-content;max-width:calc(100vw - 24px);box-sizing:border-box}@media(max-width:480px)and (orientation:portrait){.care-room:has(.feeding-panel) .care-subnav{position:fixed;bottom:84px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:calc(100vw - 24px)}.care-room:has(.feeding-panel) .care-subnav button{min-width:0;white-space:normal;font-size:12px;padding:6px}.care-room:has(.feeding-panel) .care-subnav .section-help{grid-column:1/-1;width:100%;min-height:32px;padding:2px}.care-room:has(.feeding-panel) .room-nav{position:fixed;bottom:8px}}@media(orientation:portrait)and (max-width:600px){.care-room:has(.scene-horse canvas) .room-backdrop .scene-horse{left:0;top:130px;width:100%;height:calc(100dvh - 470px);min-height:180px}.care-room:has(.scene-horse canvas) .care-overview section{top:auto;bottom:88px;width:calc(50% - 12px);max-height:230px;overflow:auto;scrollbar-width:none;padding:8px}.care-room:has(.scene-horse canvas) .overview-performance{left:8px}.care-room:has(.scene-horse canvas) .overview-status{right:8px}.care-room:has(.scene-horse canvas) .care-overview section::-webkit-scrollbar{display:none}}@media(orientation:landscape)and (max-height:600px){.care-room:has(.scene-horse canvas) .overview-status{bottom:80px;max-height:calc(100dvh - 140px);overflow:auto;scrollbar-width:none}.care-room:has(.scene-horse canvas) .overview-status::-webkit-scrollbar{display:none}.care-room:has(.scene-horse canvas) .care-details .care-overview button{min-height:32px;margin-top:3px}.care-room:has(.scene-horse canvas) .overview-status p{font-size:10px;line-height:1.1;margin:2px 0}}@media(orientation:portrait)and (max-width:600px){.care-room:has(.scene-horse canvas):has(.feeding-panel) .care-details{position:fixed;inset:auto 8px 245px;width:auto;margin:0;padding:8px;max-height:140px}.care-room:has(.scene-horse canvas) .feeding-panel h2{font-size:17px;margin-bottom:4px}}@media(orientation:portrait)and (max-width:600px){.care-room:has(.scene-horse canvas) .room-backdrop .immersive-stall{bottom:280px}}@media(orientation:landscape)and (max-height:600px){.care-room:has(.scene-horse canvas):has(.feeding-panel) .care-details{position:fixed;top:60px;right:8px;left:auto;width:40vw;margin:0;padding:8px;max-height:140px}.care-room:has(.scene-horse canvas):has(.feeding-panel) .care-subnav{left:auto;right:8px;transform:none;width:40vw;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:6px;gap:4px;bottom:80px}.care-room:has(.scene-horse canvas):has(.feeding-panel) .care-subnav button{min-width:0;width:100%;min-height:40px;font-size:11px;padding:4px;white-space:normal}}@media(orientation:portrait)and (max-width:600px){.care-room:has(.scene-horse canvas):has(.care-mood) .care-layout{inset:auto 8px 255px;max-height:145px;overflow:auto}.care-room:has(.scene-horse canvas):has(.care-mood) .care-details{padding:10px}.care-room:has(.scene-horse canvas) .care-mood h2{font-size:18px;margin:0 0 6px}.care-room:has(.scene-horse canvas):has(.care-mood) .care-subnav{left:8px;right:8px;bottom:84px;transform:none;width:auto;max-width:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px}.care-room:has(.scene-horse canvas):has(.care-mood) .care-subnav button{min-width:0;width:100%;min-height:60px;white-space:normal;padding:4px;font-size:11px}}@media(orientation:landscape)and (max-height:600px){.care-room:has(.scene-horse canvas):has(.care-mood) .care-layout{position:fixed;top:60px;right:8px;left:auto;width:40vw;margin:0}.care-room:has(.scene-horse canvas):has(.care-mood) .care-details{width:100%;padding:8px}.care-room:has(.scene-horse canvas) .care-mood h2{font-size:17px;margin:0 0 4px}.care-room:has(.scene-horse canvas):has(.care-mood) .care-subnav{left:auto;right:8px;bottom:80px;transform:none;width:40vw;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px}.care-room:has(.scene-horse canvas):has(.care-mood) .care-subnav button{min-width:0;width:100%;min-height:44px;white-space:normal;padding:3px;font-size:11px}}@media(orientation:landscape)and (max-height:600px){.care-room:has(.scene-horse canvas):has(.care-mood) .care-subnav button img{width:20px;height:20px}.care-room:has(.scene-horse canvas):has(.care-mood) .care-subnav button{line-height:1.1}}@media(min-width:1000px)and (min-height:501px){.care-room:has(.scene-horse canvas) .room-backdrop .scene-horse{left:20%;width:34%}}@media(orientation:portrait)and (max-width:600px){.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stall-info{inset:auto 12px 160px;width:auto;max-height:140px;overflow:auto}}@media(orientation:landscape)and (max-height:500px){#app .stable-content[data-tab-view=stable]:has(.scene-horse canvas) .horse-strip{left:12px;right:auto;width:36%;overflow-x:auto;pointer-events:auto}}@media(orientation:portrait)and (max-width:600px){.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stall-info{display:grid;grid-template-columns:1fr 1fr;gap:5px}.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stall-info .quest-summary{margin:0;min-height:48px;padding:6px}.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stall-info .morale-meter{margin:0;padding:6px}.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stall-info .stable-details{grid-column:1/-1;margin:0}.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stall-info .stable-details summary{padding:6px;min-height:32px}}.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .horse-strip{pointer-events:none}.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .horse-strip button{pointer-events:auto}@media(orientation:portrait)and (max-width:600px){.care-room:has(.scene-horse canvas):has(.feeding-panel) .care-subnav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));left:8px;right:8px;width:auto;transform:none;gap:4px;padding:6px}.care-room:has(.scene-horse canvas):has(.feeding-panel) .care-subnav button{width:100%;min-width:0;min-height:44px;grid-column:auto;white-space:normal;padding:4px;font-size:12px}.care-room:has(.scene-horse canvas):has(.feeding-panel) .care-details{bottom:195px}}.stall-visual:has(.scene-horse canvas) .scene-horse,.care-room:has(.scene-horse canvas) .room-backdrop .scene-horse{filter:none}@media(orientation:landscape){.stall-visual:has(.scene-horse canvas) .scene-horse{left:22%}}@media(orientation:portrait)and (max-width:600px){.stall-visual:has(.scene-horse canvas) .immersive-stall{bottom:210px}}@media(orientation:landscape){.stall-visual:has(.scene-horse canvas) .scene-horse{left:-11%;width:100%}.care-room:has(.scene-horse canvas) .room-backdrop .scene-horse{left:-13%;width:100%}}@media(orientation:landscape)and (max-height:450px){#app[data-screen=room] .care-room:has(.scene-horse canvas):has(.feeding-panel) .room-nav{left:auto;right:8px;bottom:12px;width:38vw;transform:none;gap:2px;padding:5px}#app[data-screen=room] .care-room:has(.scene-horse canvas):has(.feeding-panel) .room-nav button{min-width:0;min-height:48px;flex:1;padding:3px 1px;font-size:10px}}@media(orientation:landscape)and (max-height:450px){#app[data-screen=room] .care-room:has(.scene-horse canvas):has(.feeding-panel) .room-nav button{flex:1 1 0;width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.1}#app[data-screen=room] .care-room:has(.scene-horse canvas):has(.feeding-panel) .room-nav button span{max-width:100%;white-space:normal;overflow-wrap:anywhere}}@media(orientation:portrait){.stable-content[data-tab-view=stable] .stall-visual:has(.scene-horse canvas)>.scene-horse,#app[data-screen=room] .care-room:has(.scene-horse canvas) .room-backdrop .scene-horse{left:-24%;width:124%}}.stall-visual:has(.scene-horse canvas) .immersive-stall,.room-backdrop:has(.scene-horse canvas) .immersive-stall{background-image:url(/assets/stable-interior-wall-care-v2.png)}@media(orientation:landscape)and (max-height:450px){.stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stall-info{width:130px;max-width:130px}#app[data-screen=room] .care-room:has(.scene-horse canvas):has(.feeding-panel) .care-details{left:8px;right:auto;width:32vw}}@media(orientation:landscape)and (max-height:450px){#app[data-screen=room] .care-room:has(.scene-horse canvas):has(.feeding-panel) .care-subnav{left:8px;right:auto;width:32vw}}@media(orientation:landscape)and (max-width:740px)and (max-height:450px){#app .stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stall-info{gap:3px}#app .stable-content[data-tab-view=stable]:has(.scene-horse canvas) .morale-meter{padding:2px 6px}#app .stable-content[data-tab-view=stable]:has(.scene-horse canvas) .morale-meter progress{margin:0}#app .stable-content[data-tab-view=stable]:has(.scene-horse canvas) .stable-details:not([open]){position:fixed;top:auto;bottom:76px;right:12px;width:130px}}@media(orientation:landscape)and (max-width:740px)and (max-height:450px){#app[data-screen=stable]:has(.scene-horse canvas) .selected-horse-care{font-size:13px;line-height:1.15;min-height:60px;padding:6px}}.care-details .horse-lifecycle{display:grid;gap:8px;margin-top:12px}.care-details .horse-lifecycle h3{margin:0;font-size:20px;line-height:1.3}.care-details .horse-lifecycle p{margin:0;line-height:1.5}.candidate-links{display:grid;gap:12px;margin:20px 0}.candidate-links a{color:#244737;padding:12px;border:1px solid #82927c;border-radius:8px;line-height:1.4}.candidate-links a:focus-visible{outline:3px solid #244737;outline-offset:3px}@media(max-width:600px)and (orientation:portrait){#app>header .header-right:has(#candidate-menu){flex-wrap:wrap;justify-content:center}}@media(max-width:600px)and (orientation:portrait){#app:has(#candidate-menu) .stable-content[data-tab-view=stable] .stall-name{top:calc(var(--candidate-shell-top,154px) + 12px)}#app:has(#candidate-menu) .stable-rider{top:calc(var(--candidate-shell-top,154px) + 73px)}body:has(#candidate-menu) #tour-launcher{top:calc(var(--candidate-shell-top,154px) + 12px)}}.stall-visual:has(.stable-loading),.room-backdrop:has(.stable-loading){background:#75634b}.stall-visual:has(.stable-loading) .immersive-stall,.room-backdrop:has(.stable-loading) .immersive-stall,.stall-visual:has(.stable-world) .immersive-stall,.room-backdrop:has(.stable-world) .immersive-stall{visibility:hidden}.scene-load-status{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;background:#75634b;color:#fff4d8;font:500 14px/1.5 system-ui;z-index:3;pointer-events:none}.stall-visual>.scene-horse.stable-loading,.room-backdrop>.scene-horse.stable-loading{inset:0!important;width:100%!important;height:100%!important;min-height:0!important;filter:none}.stable-world canvas,.jockey-ready canvas{animation:scene-reveal .2s ease-out}@keyframes scene-reveal{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.stable-world canvas,.jockey-ready canvas{animation:none}}.scene-load-status.scene-load-error{inset:auto 0 0;padding:8px;background:#203c30ed;font-size:12px}.scene-load-retry{position:absolute;bottom:48px;left:12px;z-index:4;min-height:44px;pointer-events:auto}.scene-load-error button{pointer-events:auto;min-height:44px;margin-top:6px}#jockey-dialog .jockey-roster button:disabled{opacity:1;background:#53675e;color:#fff1d5;cursor:not-allowed}#jockey-dialog .jockey-roster button:disabled .jockey-portrait{filter:grayscale(.65);opacity:.7}#jockey-dialog .assignment-confirm-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}#jockey-dialog .assignment-confirm-actions button{min-height:44px;padding:10px 16px}@media(max-width:600px){#jockey-dialog .jockey-roster{grid-template-columns:1fr}#jockey-dialog .jockey-roster button{display:grid;grid-template-columns:68px minmax(0,1fr);gap:5px 12px;padding:10px}#jockey-dialog .jockey-roster .jockey-portrait,#jockey-dialog .jockey-roster .jockey-monogram{grid-column:1;grid-row:1/5;width:68px;height:94px;object-fit:cover;border-radius:6px}#jockey-dialog .jockey-roster button>strong,#jockey-dialog .jockey-roster button>b,#jockey-dialog .jockey-roster button>small,#jockey-dialog .jockey-roster button>span{grid-column:2;min-height:0}#jockey-dialog .jockey-roster button>b{font-size:12px}}#tour-bubble{position:fixed;z-index:70;max-width:min(240px,calc(100vw - 24px));padding:10px 14px;border:0;border-radius:14px;background:#f5efdd;color:#17372a;font:600 14px/1.35 system-ui,sans-serif;text-align:left;box-shadow:0 8px 24px #0006;cursor:pointer;animation:tour-bubble-in .35s ease-out,tour-bubble-bob 2.4s ease-in-out .35s infinite}#tour-bubble:after{content:"";position:absolute;right:var(--tail,18px);border:8px solid transparent}#tour-bubble[data-side=below]:after{bottom:100%;border-bottom-color:#f5efdd}#tour-bubble[data-side=above]:after{top:100%;border-top-color:#f5efdd}@keyframes tour-bubble-in{0%{opacity:0;transform:translateY(-6px) scale(.96)}to{opacity:1;transform:none}}@keyframes tour-bubble-bob{50%{transform:translateY(-3px)}}#app[data-screen=race] #tour-bubble,#app[data-screen=gate] #tour-bubble{display:none}.courtyard-market.tour-highlight{animation:tour-market-pulse 1.6s ease-in-out infinite}@keyframes tour-market-pulse{50%{box-shadow:0 0 0 6px #d6bb7e88,0 0 22px #d6bb7e}}@media(prefers-reduced-motion:reduce){#tour-bubble,.courtyard-market.tour-highlight{animation:none}}@media(max-width:600px)and (orientation:portrait){#app:has(.stable-content[data-tab-view=stable] .stall-visual) #tour-launcher{top:auto!important;bottom:calc(170px + env(safe-area-inset-bottom))!important}}#app[data-screen=stable][data-stable-tab=market]>main{margin-bottom:0;min-height:0;flex:1}#app[data-screen=stable][data-stable-tab=market] .game-nav{display:none!important}#app .compact-market{box-sizing:border-box;padding:0 max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;overflow:hidden;color:#f6ebd4}#app .horse-market{display:grid;grid-template-rows:48px 44px minmax(142px,1fr) 90px;gap:4px}#app .compact-market .market-categories{padding:2px 0;margin:0;gap:4px;min-width:0;scrollbar-width:thin}#app .compact-market button{min-height:44px;min-width:44px;font-size:13px;line-height:1.2}#app .compact-market .market-categories button{padding:5px 10px;border-radius:9px;flex-shrink:0}#app .compact-market #close-market{order:-1;margin:0;position:sticky;left:0;right:auto;z-index:2;background:#183e30;font-size:13px}#app .market-toolbar{display:flex;gap:10px;align-items:center;min-width:0}#app .market-toolbar h2{font-size:18px;margin:0;white-space:nowrap;color:inherit}#app .market-toolbar .market-tabs{display:flex;overflow-x:auto;min-width:0;flex:1;margin:0;gap:4px;scrollbar-width:thin}#app .market-toolbar .market-tabs button{padding:4px 10px;white-space:nowrap;flex:none}#app .market-main{display:grid;grid-template-columns:minmax(120px,.75fr) minmax(0,1.25fr);gap:12px;min-height:0}#app .compact-market .market-horse{position:relative;inset:auto;min-width:0;min-height:0;overflow:hidden;border-radius:12px;background:radial-gradient(ellipse at bottom,#81916a55,transparent)}#app .compact-market .market-horse .scene-horse{inset:0!important;width:100%!important;height:100%!important}#app .market-summary{display:grid;grid-template-rows:auto 1fr auto;gap:5px;min-width:0;padding:8px 10px;background:#112d26f5;border:1px solid #bda77566;border-radius:12px}#app .market-title{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}#app .market-title h3{font-size:20px;line-height:1.1;margin:0;color:#fff0cc;overflow-wrap:anywhere}#app .market-title small{font-size:11px;line-height:1.2;display:block;margin-top:2px}#app .market-title button{padding:4px 8px;flex:none}#app .market-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-content:center}#app .market-stat-grid .stat{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:0;border:0;font-size:12px;line-height:1.1;color:#e8e5cf}#app .market-stat-grid strong{font-size:19px;color:#fff5d9;font-variant-numeric:tabular-nums}#app .market-stat-grid strong small{font-size:10px}#app .market-purchase{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #bda77544;padding-top:4px}#app .market-price{display:flex;flex-direction:column;gap:2px;min-width:0}#app .market-price b{font-size:17px;white-space:nowrap}#app .market-price small{font-size:11px;line-height:1.2}#app .market-purchase button{min-width:130px;max-width:48%;padding:6px 10px;background:#eed18d;color:#17392a;border:1px solid #f4dfaa;border-radius:9px}#app .market-choice-list{min-height:0;overflow:hidden}#app .market-choice-list>small{display:block;font-size:11px;line-height:18px;color:#e3d4ad}#app .market-choice-list>small span{float:right}#app .compact-market .market-candidates{position:static;display:flex;gap:8px;max-width:none;width:100%;height:68px;overflow-x:auto;overflow-y:hidden;padding:0 0 4px;scrollbar-width:thin;scroll-snap-type:x proximity}#app .compact-market .market-candidates>button{flex:1 0 200px;max-width:none;min-width:200px;display:grid;grid-template-columns:32px 1fr;grid-template-rows:1fr auto;gap:0 8px;padding:5px 8px;border-radius:10px;text-align:left;scroll-snap-align:start}#app .compact-market .market-candidates .horse-portrait{width:32px;height:42px;margin:0;grid-row:1/3}#app .candidate-copy{display:flex;align-items:center;justify-content:space-between;gap:5px;min-width:0}#app .candidate-copy b{font-size:13px;line-height:1.1;overflow-wrap:anywhere}#app .candidate-copy small{font-size:11px;white-space:nowrap}#app .candidate-stats{display:flex;gap:8px;justify-content:space-between}#app .candidate-stats .stat{padding:0;border:0;font-size:12px;color:inherit}#app .candidate-stats .stat>span,#app .candidate-stats small{display:none}#app .market-tools #tour-launcher{position:static!important;width:44px!important;height:44px!important;min-height:44px!important;padding:2px!important;border-radius:50%;box-shadow:none}#app .market-tools #tour-launcher img{width:34px!important;height:34px!important}#app .market-tools #tour-launcher span{display:none}#market-details-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;box-sizing:border-box;overflow:auto}.market-detail-heading{position:sticky;top:-16px;background:#f7f3e8;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;z-index:1}.market-detail-heading h2{margin:0;font-size:22px;overflow-wrap:anywhere}#purchase-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 16px - env(safe-area-inset-bottom));overflow:auto;padding:16px}#purchase-dialog h2{font-size:22px;margin:0 0 8px}#purchase-dialog p{font-size:14px;line-height:1.4;margin:6px 0}#purchase-dialog label{display:block;font-size:13px}#purchase-dialog input{width:100%;box-sizing:border-box;min-height:44px;margin-top:4px}#purchase-dialog .dialog-actions{position:sticky;bottom:-16px;background:#f7f3e8;padding:8px 0;margin:4px 0 0;display:flex;gap:12px}#purchase-dialog .dialog-actions button{min-height:44px;flex:1}#app .compact-market.unified-market{display:flex;flex-direction:column;gap:4px}#app .compact-market.unified-market .market-categories{flex:0 0 48px}#app .compact-market .care-shop{min-height:0;overflow:auto;scrollbar-width:thin}#app .compact-market .care-shop-grid{display:flex;align-items:stretch;overflow-x:auto;gap:10px;padding-bottom:8px;scroll-snap-type:x proximity}#app .compact-market .care-shop-grid article{flex:1 0 190px;min-width:190px;max-width:320px;min-height:148px;gap:5px;padding:8px!important;scroll-snap-align:start}#app .compact-market .care-shop-grid .care-item-art{width:32px;height:32px}#app .compact-market .care-shop-grid h3{font-size:15px;margin:0}#app .compact-market .care-shop-grid button{min-height:44px!important;font-size:13px;margin-top:auto}#app .compact-market .product-heading{min-height:38px}#app .compact-market .product-heading .feed-sack{width:32px;height:36px}#app .compact-market .care-shop>h2{font-size:18px}#app .compact-market .care-shop:after{content:"Diğer ürünler için sağa kaydır →";display:block;font-size:12px;color:#e3d4ad;padding:4px}@media(orientation:portrait){#app .horse-market{grid-template-rows:48px 44px minmax(300px,1fr) 90px}#app .market-main{grid-template-columns:1fr;grid-template-rows:minmax(90px,1fr) 172px;gap:4px}#app .market-toolbar{gap:6px}#app .market-toolbar h2{font-size:16px}#app .compact-market .market-candidates>button{flex:0 0 200px}#app .market-purchase button{min-width:126px}#app .compact-market .care-shop-grid{flex-direction:column;overflow-x:hidden}#app .compact-market .care-shop-grid article{flex:none;max-width:none;min-height:140px}#app .compact-market .care-shop:after{content:"Diğer ürünler aşağıda ↓"}}@media(orientation:landscape)and (max-height:420px){#app .horse-market{grid-template-rows:46px 44px minmax(142px,1fr) 76px;gap:2px}#app .compact-market .market-candidates{height:56px}#app .market-summary{padding:4px 8px;gap:2px}#app .market-title h3{font-size:18px}#app .market-stat-grid strong{font-size:17px}#app .market-stat-grid{gap:4px}#app .market-purchase{padding-top:2px}#app .market-title small{font-size:10px}#app .compact-market .care-shop-grid article{min-height:144px}}@media(orientation:landscape)and (max-height:340px){#app .horse-market{grid-template-rows:44px minmax(142px,1fr) 62px}#app .market-toolbar{position:absolute;left:8px;top:48px;z-index:2;width:28%;flex-wrap:wrap;gap:2px}#app .market-toolbar h2{display:none}#app .market-toolbar .market-tabs{max-width:100%}#app .market-main{grid-template-columns:minmax(100px,.55fr) minmax(0,1.45fr)}#app .market-choice-list>small{display:none}#app .market-tools{display:none}#purchase-dialog{padding:8px 12px}#purchase-dialog h2{font-size:18px}#purchase-dialog .purchase-note{font-size:12px}}#app .market-stat-grid .stat,#app .candidate-stats .stat{margin:0}#app .stable-content:not([data-tab-view=market]) .compact-market{display:none!important}@media(max-width:600px)and (orientation:portrait){#app[data-stable-tab=market]>header{height:56px;min-height:56px;flex-wrap:nowrap;justify-content:space-between;padding:4px 8px}#app[data-stable-tab=market]>header .brand{width:auto;font-size:14px}#app[data-stable-tab=market]>header .header-right{width:auto}#app[data-stable-tab=market]>header :is(.header-nav,#updates-button,#fullscreen,#experience,#candidate-menu){display:none!important}#app[data-stable-tab=market]>header .balance-card,#app[data-stable-tab=market]>header .settings-button{height:44px;min-height:44px}#app[data-stable-tab=market]>.rotate-hint{display:none}#app .market-main{grid-template-rows:minmax(90px,240px) 172px;align-content:center}}#app .market-toolbar .market-tabs{flex-wrap:nowrap}@media(orientation:portrait){#app .horse-market{grid-template-rows:48px 44px minmax(180px,220px) minmax(0,1fr)}#app .market-main{grid-template-columns:86px minmax(0,1fr);grid-template-rows:1fr;align-content:stretch;gap:6px}#app .market-summary{padding:6px}#app .market-title{gap:4px}#app .market-title h3{font-size:18px}#app .market-title small{font-size:10px}#app .market-title button{padding:4px;font-size:12px}#app .market-stat-grid{gap:3px}#app .market-stat-grid .stat{font-size:11px}#app .market-stat-grid strong{font-size:17px}#app .market-stat-grid strong small{display:none}#app .market-purchase{gap:4px}#app .market-purchase button{min-width:108px;font-size:12px}#app .market-price b{font-size:15px}#app .market-choice-list{display:flex;flex-direction:column;gap:4px}#app .market-choice-list>small{line-height:16px}#app .market-choice-list>small span{font-size:0}#app .market-choice-list>small span:after{content:"↓ Adaylar";font-size:11px}#app .compact-market .market-candidates{height:auto;flex:1;flex-direction:column;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y proximity}#app .compact-market .market-candidates>button{flex:0 0 64px;min-width:0;width:100%;grid-template-columns:42px 1fr}#app .compact-market .market-candidates .horse-portrait{width:42px;height:48px}}#market-category-select,#market-tier-select{display:none}#app .candidate-stats .stat>span{display:block;font-size:12px;line-height:16px}#app .candidate-stats .stat{display:flex;flex-direction:column;gap:1px}#app .candidate-stats strong{font-size:15px;line-height:18px}#app .compact-market .market-candidates{height:74px}#app .compact-market .market-candidates>button{min-width:280px}@media(orientation:landscape)and (max-height:420px){#app[data-stable-tab=market]>header{height:44px;min-height:44px;padding:0 8px;flex-wrap:nowrap}#app[data-stable-tab=market]>header :is(.header-nav,#updates-button,#fullscreen,#experience,#candidate-menu){display:none!important}#app[data-stable-tab=market]>header .brand{width:auto;font-size:14px}#app[data-stable-tab=market]>header .header-right{width:auto}#app[data-stable-tab=market]>header :is(.balance-card,.settings-button){height:44px;min-height:44px}#app .horse-market{grid-template-rows:44px minmax(142px,1fr) 76px;gap:2px}#app .horse-market .market-toolbar{display:none}#app .compact-market .market-categories{height:44px;padding:0;overflow:visible}#app .market-categories button[data-market-category]{display:none}#app .market-categories select{display:block;height:44px;min-height:44px;min-width:120px;max-width:40%;font-size:14px;padding:4px 10px;background:#183e30;color:#fff0ce;border:1px solid #a8ae8b;border-radius:8px}#app .market-choice-list>small{display:none}#app .compact-market .market-candidates{height:74px}#app .market-main{grid-template-columns:minmax(100px,.55fr) minmax(0,1.45fr)}#app .market-title small{font-size:11px}}@media(orientation:portrait){#app .compact-market .market-candidates{height:auto}#app .compact-market .market-candidates>button{min-width:0;flex-basis:82px}}@media(orientation:landscape)and (max-height:420px){#app .market-categories .market-tools{display:block;margin-left:auto}}#app .market-title-actions{display:flex;gap:6px;flex:none}#app #market-compare{display:none}#market-compare-dialog{box-sizing:border-box;width:min(660px,calc(100vw - 16px));max-height:calc(100dvh - 16px);padding:10px;overflow:auto;background:#17392c;color:#fff0ce;border:1px solid #bda775}#market-compare-dialog .market-detail-heading{top:-10px;background:#17392c;padding:0 0 6px}#market-compare-dialog h2{font-size:18px;color:inherit}#market-compare-dialog p{font-size:13px;margin:4px 0 8px}#market-compare-dialog .market-candidates{height:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible!important;gap:8px}#app #market-compare-dialog .market-candidates>button{min-width:0;min-height:82px;background:#214936;color:#fff0ce;border:1px solid #bda775}#app #market-compare-dialog .market-candidates>button[aria-pressed=true]{background:#e5cc94;color:#17392c}#market-compare-dialog button{min-height:44px}@media(orientation:landscape)and (max-height:310px){#app .horse-market{grid-template-rows:44px minmax(0,1fr)}#app .horse-market>.market-choice-list{display:none}#app #market-compare{display:block;max-width:130px}#app .market-main{grid-template-columns:minmax(64px,.4fr) minmax(0,1.6fr);gap:6px;min-height:0}#app .market-summary{min-height:0;grid-template-rows:44px minmax(32px,1fr) 48px}#app .market-stat-grid .stat{font-size:12px}#app .market-stat-grid strong,#app .market-title h3{font-size:18px}#app .market-title small{font-size:11px}#app .market-purchase{min-height:44px}#app .market-price small{font-size:12px}}@media(orientation:landscape)and (max-height:260px){#app[data-stable-tab=market]>header{display:none}#app .market-horse{opacity:.9}}@media(max-width:580px)and (orientation:landscape)and (max-height:310px){#app .market-main{grid-template-columns:64px minmax(0,1fr)}#app #market-compare{max-width:100px;font-size:12px}#app .market-title small{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#app .market-categories select{min-width:100px;max-width:35%}}@media(max-width:480px){#market-compare-dialog .market-candidates{grid-template-columns:1fr}}#app[data-screen=stable][data-stable-tab=stable]{--hud-ink:#fff0cd;--hud-edge:#d6b97170}#app[data-screen=stable][data-stable-tab=stable]>header{height:60px;min-height:60px;padding:6px 16px;background:linear-gradient(#10251ff5,#10251f85)!important}#app[data-screen=stable][data-stable-tab=stable]>footer{display:none}#app[data-screen=stable][data-stable-tab=stable] .header-label,#app[data-screen=stable][data-stable-tab=stable] .brand small{display:none}#app[data-screen=stable][data-stable-tab=stable] .balance-card{min-width:76px;border-radius:24px;background:#071b18b8}#app[data-screen=stable][data-stable-tab=stable] .balance-copy small{font-size:9px}.stable-content[data-tab-view=stable] .stall-name{top:80px;left:24px}.stable-content[data-tab-view=stable] .stall-name h1{font-size:clamp(26px,3.5vw,46px)}.stable-content[data-tab-view=stable] .stall-info{top:84px;right:20px;width:220px;max-height:calc(100dvh - 280px);overflow:visible;border-radius:0;display:flex;flex-direction:column;gap:10px}.stall-info .quest-summary{margin:0;padding:12px;border:1px solid var(--hud-edge);border-left:3px solid #eac979;border-radius:4px 14px 14px 4px;color:var(--hud-ink);background:linear-gradient(110deg,#122b25ed,#122b2590);box-shadow:0 4px 20px #0003;text-align:left}.stall-info .quest-summary b{font-size:12px}.stall-info .quest-summary span{font-size:13px;line-height:1.4}.stall-info .morale-meter{margin:0;padding:8px 12px;border:0;background:#0c211dbb;color:var(--hud-ink);border-radius:10px}.stall-info .morale-meter small{display:none}.stall-info .morale-meter progress{height:6px;accent-color:#a8d480}.stable-details{position:relative;color:var(--hud-ink)}.stable-details>summary{cursor:pointer;padding:10px 12px;min-height:44px;box-sizing:border-box;font-size:12px;border:1px solid var(--hud-edge);border-radius:10px;background:#102b23c9}.stable-details[open]>.horse-card{position:absolute;top:48px;right:0;width:260px;max-height:calc(100dvh - 330px);overflow:auto;z-index:12;box-sizing:border-box;background:#102b23fa;box-shadow:0 12px 40px #0009}.stable-rider{position:absolute;top:155px;left:24px;z-index:2;width:200px}.stable-rider .jockey-choice{padding:8px;min-height:44px;background:#102820bb;color:var(--hud-ink);border:1px solid var(--hud-edge);border-radius:30px 10px 10px 30px}.stable-rider .jockey-choice small,.stable-rider .jockey-identity>span{display:none}.stable-rider .jockey-avatar{width:36px;height:36px;border-radius:50%}#app[data-screen=stable] .game-nav{width:min(560px,calc(100% - 24px));background:linear-gradient(#19392eeb,#091d18f5);border:1px solid #c6a86680;box-shadow:0 5px 24px #0008,inset 0 1px #fce5aa30;border-radius:18px}#app[data-screen=stable] .game-nav button{background:transparent;color:#d4ddc7;border:0;border-radius:10px}#app[data-screen=stable] .game-nav button[aria-pressed=true]{color:#ffe7a4;background:linear-gradient(#cda94a35,#cda94a08);box-shadow:inset 0 -3px #dbb765}#app[data-screen=stable] .game-nav .trophy-shelf{width:auto;margin:0;padding:4px 8px;justify-content:center;flex-direction:column;gap:1px}.game-nav .trophy-shelf .shelf-art{width:24px;height:24px}.game-nav .trophy-shelf .shelf-art svg{width:24px;height:24px}.game-nav .trophy-shelf b{font-size:10px}.game-nav .trophy-shelf small{display:none}.stable-content[data-tab-view=stable] .horse-strip button[aria-pressed=true]{background:linear-gradient(#d9bd7b,#aa8749);border-color:#ffe4a1;box-shadow:0 0 15px #f3cb6230}@media(max-height:600px)and (orientation:landscape){#app[data-screen=stable][data-stable-tab=stable]>header{height:50px;min-height:50px;padding:3px 10px}.stable-content[data-tab-view=stable] .stall-name{top:58px;left:16px}.stable-content[data-tab-view=stable] .stall-name h1{font-size:26px}.stable-rider{top:112px;left:16px;width:165px}.stable-content[data-tab-view=stable] .stall-info{top:58px;right:12px;width:180px;gap:5px;max-height:none}.stall-info .quest-summary{padding:8px}.stall-info .quest-summary span{font-size:11px}.stall-info .morale-meter{padding:4px 8px}.stable-details>summary{padding:7px 9px}.stable-details[open]>.horse-card{top:0;max-height:calc(100dvh - 155px);transform:translateY(-90px)}}@media(max-width:600px)and (orientation:portrait){#app[data-screen=stable][data-stable-tab=stable]>header{height:auto;min-height:94px;padding:5px;gap:3px}.stable-content[data-tab-view=stable] .stall-name{top:108px;left:14px}.stable-rider{top:169px;left:14px;width:170px}.stable-content[data-tab-view=stable] .stall-info{top:auto;bottom:205px;right:12px;width:180px;gap:5px}.stable-details[open]>.horse-card{top:auto;bottom:48px;max-height:calc(100dvh - 340px)}#app[data-screen=stable] .game-nav{width:calc(100% - 16px)}}.stable-content[data-tab-view=stable] .horse-strip{left:20px;right:20px}@media(max-height:600px)and (orientation:landscape){.stable-content[data-tab-view=stable] .horse-strip{left:16px;right:16px}.stable-content[data-tab-view=stable] .stall-info{width:160px}}.stable-details[open]{position:fixed;top:70px;right:16px;width:min(280px,calc(100vw - 32px));z-index:30;border-radius:12px;background:#102b23;box-shadow:0 12px 40px #0009}.stable-details[open]>.horse-card{position:static;transform:none;width:100%;max-height:calc(100dvh - 240px);box-shadow:none}.stable-details[open]>summary{background:#254536;border-color:#ecd08c}@media(max-width:600px)and (orientation:portrait){.stable-details[open]{top:110px}}@media(max-width:600px)and (orientation:portrait){.stable-content[data-tab-view=stable] .stall-visual>.scene-horse{left:0;top:24%;width:76%;height:50%;background-position:center}.stable-content[data-tab-view=stable] .stall-info{top:235px;bottom:auto;width:155px}#app[data-screen=stable] .game-nav button,#app[data-screen=stable] .game-nav .trophy-shelf{flex:1 1 0;min-width:0;padding:4px}.game-nav .trophy-shelf b{display:block;white-space:normal;line-height:1.1;font-size:9px}}@media(max-width:600px)and (orientation:portrait){.stable-content[data-tab-view=stable] .stall-info{top:auto;bottom:205px}}.stable-scene .stall-info{background:#102c25ed;border:1px solid #b79b5b80;border-radius:16px;padding:10px;box-shadow:0 12px 30px #0003}.stall-info .history-entry,.stall-info .daily-bale-entry{background:#23473a;color:#f5e5bc;border:1px solid #aa945b80;border-radius:9px;min-height:44px;margin:5px 0;padding:8px;font-size:12px}.stall-info .daily-bale-entry{display:flex;align-items:center;gap:8px;text-align:left}.stall-info .daily-bale-entry img{width:30px;height:30px}.stall-info .stable-details{font-size:12px}.market-categories{gap:4px!important}.market-categories button{border-radius:9px!important;font-size:13px!important;min-height:44px}.market-categories button[aria-pressed=false]{background:#18392fe8!important;color:#e2e6d6!important;border-color:#718267!important}.market-showcase .horse-card{border-radius:16px!important;background:#15382fee!important;box-shadow:0 10px 30px #0003}.market-showcase .horse-title{border-bottom:1px solid #b79b5b55;padding-bottom:10px}.market-showcase .status{white-space:normal;line-height:1.4}.care-room.has-action-strip .care-subnav{border-radius:14px;padding:8px;background:#102d25f5;border-color:#b79b5b88;box-shadow:0 8px 24px #0004}.care-room.has-action-strip .care-subnav button{background:#294b3c;color:#f7e5bb;border:1px solid #8e925d70;text-align:left;border-radius:10px}.care-room.has-action-strip .care-subnav button:disabled{opacity:.55}.care-room.has-action-strip .care-subnav small{color:#d3d9c4;font-weight:400}.care-room.has-action-strip .care-subnav .section-help{align-self:start;flex:0 0 44px;height:44px;min-height:44px;border-radius:50%;text-align:center}.care-room .feeding-panel{background:#17392ff2;border:1px solid #b79b5b66;border-radius:14px;padding:14px}.feeding-panel label{display:block;margin:10px 0}.feeding-panel progress{display:block;width:100%;height:10px;accent-color:#d9ba70}.feeding-panel p{font-size:12px;line-height:1.5}.quest-screen.quest-hub{overflow:auto;display:block;background:radial-gradient(ellipse at top right,#35523b,#102e26 70%)}.quest-hub .quest-groups{width:min(920px,100%);margin:20px auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.quest-hub .quest-group{position:relative;min-height:240px;width:100%;overflow:hidden;padding:26px;display:flex;flex-direction:column;justify-content:end;background:linear-gradient(145deg,#37583e,#18382d);box-shadow:0 12px 30px #0003}.quest-hub .quest-group h2{font-size:24px;margin:10px 0}.quest-hub .quest-group span{font-size:14px}.quest-hub .collection-group{background:#18382d;padding-top:145px}.collection-group img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5}.collection-group:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#102c25)}.collection-group h2,.collection-group span{position:relative;z-index:1}.collection-cover{position:relative;margin:18px 0;border-radius:14px;overflow:hidden;height:210px;background:#234635}.collection-cover img{width:100%;height:100%;object-fit:cover;object-position:center 40%;opacity:.7}.collection-cover>div{position:absolute;inset:0;padding:24px;display:flex;flex-direction:column;justify-content:end;background:linear-gradient(transparent,#102b25ed)}.collection-cover h3{font-size:32px;margin:4px 0}.collection-cover span{color:#edcd84;font-weight:700}.history-dialog nav{position:sticky;top:0;z-index:2;background:#172a24;padding:10px 0}.history-dialog .history-balance{background:#254435}.history-dialog .history-tasks article{background:#1c342b}.history-dialog header button{background:transparent;color:#f6e8c2;border-color:#738269}@media(max-width:600px){.quest-hub .quest-groups{grid-template-columns:1fr;gap:12px;margin:12px auto}.quest-hub .quest-group{min-height:190px;padding:20px}.collection-cover{height:170px}.collection-cover h3{font-size:27px}}@media(orientation:landscape)and (max-height:600px){.quest-hub .quest-groups{margin:10px auto;gap:12px}.quest-hub .quest-group{min-height:180px;padding:18px}.quest-hub .quest-group h2{font-size:21px}.collection-cover{height:150px}.stable-scene .stall-info{padding:6px}.stall-info .morale-meter{margin-bottom:4px}}.care-room.has-action-strip .care-subnav button small span{display:inline}.care-room.has-action-strip .care-subnav button small{line-height:1.4;margin-top:3px}.care-room.has-action-strip .care-subnav button>span{font-weight:700}.care-room.has-action-strip .care-subnav button img{display:block;margin-bottom:6px}@media(min-width:900px){.care-room.has-action-strip .care-subnav{left:auto;right:calc((100vw - min(100vw,1280px))/2 + 24px);transform:none;max-width:480px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.care-room.has-action-strip .care-subnav button{min-width:0;width:100%}.care-room.has-action-strip .care-subnav .section-help{width:44px}}.care-room.integrated-feeding .care-subnav{position:static;transform:none;width:100%;max-width:100%;box-sizing:border-box;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px;box-shadow:none}.care-room.integrated-feeding .care-subnav button{min-width:0;white-space:normal;width:100%}.care-room.integrated-feeding .care-subnav .section-help{width:44px}.care-room.integrated-feeding .care-layout,.care-room.integrated-feeding .care-details{max-height:calc(100dvh - 205px)}@media(orientation:landscape)and (max-height:600px){.care-room.integrated-feeding .care-layout{position:absolute!important;inset:8px 10px 74px auto!important;width:40%!important;height:auto!important;max-height:none!important;overflow:auto!important}.care-room.integrated-feeding .care-details{max-height:none!important;height:auto!important;overflow:visible!important;padding:0!important}.care-room.integrated-feeding .feeding-panel{padding:10px}.care-room.integrated-feeding .feeding-panel h2{font-size:17px;margin:0 0 6px}.care-room.integrated-feeding .feeding-panel label,.care-room.integrated-feeding .feeding-panel p{margin:5px 0}.care-room.integrated-feeding .care-subnav{margin-top:6px;padding:4px;gap:4px}.care-room.integrated-feeding .care-subnav button{font-size:12px;padding:6px;min-height:44px}}.market-tabs button[aria-pressed=false]{background:#244437;color:#e9e5cc;border:1px solid #738269}.market-tabs button{border-radius:8px;min-height:44px}.market-showcase .market-lock-reason{background:#18392f;padding:8px;border-radius:8px;line-height:1.4}.market-showcase .market-intro-hint{font-size:12px}@media(orientation:landscape)and (max-height:600px){.market-showcase .market-intro-hint{display:none}.market-tabs{gap:3px}.market-tabs button{min-height:36px;padding:6px 8px}}.history-cards{counter-reset:collection-card}.history-cards article{position:relative;min-height:170px;padding:22px;background:radial-gradient(circle at top right,#58704b55,transparent 65%),#203b30;border-color:#bca36580;overflow:hidden}.history-cards article:before{counter-increment:collection-card;content:counter(collection-card,decimal-leading-zero);display:block;color:#d8b968;font-size:32px;font-family:Georgia,serif;letter-spacing:3px;margin-bottom:12px}.history-cards article h3{margin:0 0 12px}.history-cards article button{margin-top:10px}.history-dialog>p:first-of-type{display:none}.plan-horse-details{min-width:0}.plan-horse-details>summary,.plan-venue-details>summary{cursor:pointer;min-height:44px;padding:10px 12px;color:#f4e8cb}.plan-horse-details[open]>.plan-horse-area{min-height:310px;height:calc(100% - 44px)}@media(min-width:901px)and (min-height:601px){.plan-venue-details>summary{display:none}}@media(max-width:900px),(max-height:600px){#app[data-screen=stable][data-stable-tab=prepare] main{min-height:0;padding:8px 12px;margin-bottom:72px}.stable-content[data-tab-view=prepare]{min-width:0}.stable-content[data-tab-view=prepare]:has(.race-hub){overflow-y:auto}.race-hub{height:auto;overflow:visible;padding:0 0 12px}.race-hub>header{flex-wrap:wrap;gap:8px}.race-hub h1{font-size:22px}.race-hub>header p{display:block;font-size:14px;line-height:1.4}.race-hub>header small,.hub-swipe,.hub-atmosphere{display:none}.race-hub>header button{min-height:44px;font-size:14px;padding:8px 12px}.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:none;overflow:visible;gap:10px;padding:0}.hub-race{height:auto;min-height:170px;padding:12px;gap:8px}.hub-race h2,.hub-race h3{font-size:20px}.hub-race p,.hub-race small,.hub-race strong,.hub-race .hub-go{font-size:14px;line-height:1.4}.hub-race>p,.hub-event>small{display:block}.hub-tag{font-size:12px}.home-racecourse .race-venue-banner{display:none}.plan-screen .plan-scroll{display:flex;flex-direction:column;gap:8px;padding:0 2px 12px;overflow-x:hidden}.plan-race-summary{order:-2;display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px 10px;align-items:center;padding:4px 0 10px}.plan-screen .plan-race-summary h2{font-size:21px;line-height:1.25;overflow-wrap:anywhere}.plan-race-summary>div>span{display:none}.plan-screen .plan-race-summary p{grid-column:2;font-size:14px;line-height:1.4;margin:0}.plan-race-summary .plan-prize{grid-column:2;margin:0;text-align:left;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}.plan-screen .plan-prize small{font-size:13px}.plan-screen .plan-prize b{font-size:17px}.plan-back{width:44px;min-height:44px;padding:4px}.plan-scroll .plan-body{display:flex;flex-direction:column;min-height:0;gap:8px;padding:0}.plan-body .plan-controls{order:-1;gap:8px}.plan-controls .jockey-choice{min-height:44px}.plan-screen .plan-instruction{display:block}.plan-screen .plan-instruction h2{font-size:18px}.plan-screen .plan-instruction>small{display:none}.plan-scroll .plan-controls .tactics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:8px}.plan-screen .plan-controls .tactic{display:block;min-height:52px;padding:10px;white-space:normal;flex:none}.plan-screen .tactic .tactic-icon{display:none}.plan-screen .plan-controls .tactic b{font-size:15px;line-height:1.35}.plan-screen .plan-controls .tactic small{display:none;font-size:14px;line-height:1.45;margin-top:6px}.plan-screen .plan-controls .tactic.active{grid-column:1 / -1}.plan-screen .plan-controls .tactic.active small{display:block}.plan-scroll .event-conditions,.plan-horse-details,.plan-venue-details{flex:none;border:1px solid #76917e;border-radius:10px;background:#17392e;margin:0;padding:0}.plan-screen summary{min-height:44px;font-size:15px;line-height:1.4;padding:10px 12px;cursor:pointer}.plan-screen .event-conditions>:not(summary){margin:8px 12px;font-size:14px;line-height:1.5;color:#ede5ce}.plan-screen .event-conditions .prize-grid{flex-wrap:wrap}.plan-venue-details{order:3}.plan-screen .race-venue-banner{min-height:100px;margin:0}.plan-screen .race-venue-copy{padding:12px}.plan-horse-details[open]>.plan-horse-area{height:auto;min-height:0;padding:12px;display:grid;gap:8px}.plan-horse-area .plan-horse-visual{display:none}.plan-screen .plan-performance{position:static;width:auto;padding:10px}.plan-screen .plan-performance .stat{font-size:14px}.plan-screen .plan-horse-name h2{font-size:20px}.plan-screen .plan-horse-name span,.plan-screen .plan-performance>span{font-size:14px}.plan-screen .plan-horse-locked{position:static;margin:0;font-size:14px;line-height:1.4}.plan-actions{display:flex;align-items:stretch;gap:8px;padding:8px 0 max(8px,env(safe-area-inset-bottom))}.plan-actions #start{flex:1;width:auto;min-height:48px;font-size:15px;padding:10px;white-space:normal}#tour-launcher{width:44px;height:44px;min-height:44px;padding:6px;border-radius:50%}#tour-launcher img{width:28px;height:28px}#tour-launcher span{display:none}.plan-actions #tour-launcher{position:static;flex:0 0 48px;height:48px;width:48px;margin:0;border-radius:12px}#guided-tour{inset:auto 12px 80px auto;width:min(360px,calc(100vw - 24px));max-height:min(360px,calc(100dvh - 100px));padding:14px;border-radius:14px;background:#f4efd9;overflow-y:auto;box-sizing:border-box}#guided-tour:before,#guided-tour:after,#guided-tour .tour-mentor,#guided-tour .tour-progress,#guided-tour>small:not(#tour-save),#guided-tour .tour-top>span{display:none}#guided-tour .tour-top{position:sticky;top:-14px;margin:0;padding:4px 0;background:#f4efd9;gap:8px}#guided-tour .tour-top button,#guided-tour .tour-actions button{min-height:44px;font-size:14px}#guided-tour h2{font-size:19px;margin:10px 0}#guided-tour p{font-size:15px;line-height:1.5;margin:8px 0}#guided-tour .tour-actions{flex-wrap:nowrap;margin-top:10px}}@media(max-width:500px){.hub-grid{grid-template-columns:1fr}.plan-scroll .plan-controls .tactics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(orientation:landscape)and (max-height:600px){.plan-screen .plan-race-summary{grid-template-columns:44px minmax(0,1fr) auto}.plan-screen .plan-race-summary p{grid-column:2}.plan-race-summary .plan-prize{grid-column:3;grid-row:1 / 3;display:block}.plan-scroll .plan-controls .tactics{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-screen .plan-controls .tactic.active{grid-column:auto}#guided-tour{bottom:12px;max-height:calc(100dvh - 24px)}}@media(max-width:900px),(max-height:600px){#app[data-stable-tab=prepare] .rotate-hint{display:none}.plan-screen[data-venue=sirinyer][data-lighting=day]{background:#17392e!important}.plan-screen .plan-scroll>.plan-race-summary{order:-2!important}.plan-screen .plan-back{position:static;width:44px;height:44px;min-height:44px}.plan-screen .plan-scroll>.plan-body{order:0;flex:none}.plan-screen .plan-scroll>.event-conditions{order:1!important}.plan-screen .plan-scroll>.plan-venue-details{order:2}.plan-screen .plan-controls{min-height:0}}@media(max-width:500px){.plan-screen .plan-controls .tactic.active{order:1}}@media(max-width:900px),(max-height:600px){.plan-screen .plan-controls>.jockey-choice{order:2}}@media(orientation:landscape)and (max-height:600px){.plan-screen .plan-scroll{display:grid;grid-template-columns:minmax(220px,36%) minmax(0,1fr);align-items:start;align-content:start;gap:10px 16px}.plan-screen .plan-scroll>.plan-body{grid-column:2;grid-row:1 / 5}.plan-screen .plan-scroll>.plan-race-summary{grid-column:1;grid-row:1;grid-template-columns:44px minmax(0,1fr)}.plan-screen .plan-race-summary .plan-prize{grid-column:2;grid-row:auto;display:block}.plan-screen .plan-scroll>.event-conditions,.plan-screen .plan-scroll>.race-options,.plan-screen .plan-scroll>.plan-venue-details{grid-column:1}.plan-screen .plan-controls .tactic{padding:8px;text-align:left}}.plan-overview{display:contents}@media(orientation:landscape)and (max-height:600px){.plan-screen .plan-scroll{grid-template-rows:max-content max-content}.plan-screen .plan-scroll>.plan-overview{display:flex;flex-direction:column;gap:10px;grid-column:1;grid-row:1}.plan-screen .plan-scroll>.plan-body{grid-column:2;grid-row:1 / 3}.plan-screen .plan-overview .plan-race-summary{display:grid;grid-template-columns:44px minmax(0,1fr)}.plan-screen .plan-overview .plan-race-summary p{order:0}.plan-screen .plan-scroll>.plan-venue-details{grid-column:1;grid-row:2}}.mobile-tactic-details{display:none}@media(max-width:900px),(max-height:600px){.mobile-tactic-details{display:block;border:1px solid #76917e;border-radius:10px;background:#17392e}.mobile-tactic-details p{padding:0 12px 12px;margin:0;font-size:14px;line-height:1.5}.plan-screen .plan-controls .tactics{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-screen .plan-controls .tactic.active{order:0;grid-column:auto}.plan-screen .plan-controls .tactic.active small{display:none}}.plan-entry-cost{color:#e8d8af;font-size:12px}@media(max-width:900px),(max-height:600px){.plan-actions{position:relative;padding-top:24px}.plan-actions .plan-entry-cost{position:absolute;top:4px;left:0}.plan-screen .tactic .tactic-icon{display:block;font-size:22px;line-height:24px;margin-bottom:3px}.plan-screen .plan-controls .tactic{min-height:66px;padding:6px;text-align:center}}@media(orientation:landscape)and (max-height:400px){#app[data-stable-tab=prepare]>header{display:none}#app[data-stable-tab=prepare] .game-nav{min-height:48px;padding:4px}#app[data-stable-tab=prepare] .game-nav button{min-height:44px;padding:4px 10px}#app[data-stable-tab=prepare] .game-nav svg{width:20px;height:20px}#app[data-screen=stable][data-stable-tab=prepare] main{margin-bottom:58px}}@media(max-width:900px),(max-height:600px){.plan-screen .plan-controls .tactic{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:64px;padding:4px}.plan-screen .tactic .tactic-icon{position:static;float:none;margin:0;font-size:20px;line-height:22px}.plan-screen .plan-horse-details>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}@media(orientation:landscape)and (max-width:650px){.plan-screen .plan-controls .tactic b{font-size:14px;line-height:18px}}@media(min-width:901px)and (min-height:601px){.plan-horse-details>summary{display:none}.plan-horse-details[open]>.plan-horse-area{height:100%}}.race-hub .hub-header-actions{display:flex;gap:8px}.race-hub .hub-header-actions .hub-tool{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 14px;border:1px solid #b69d5f;border-radius:12px;color:#f5e4b8;background:linear-gradient(#345b47,#153c2d);box-shadow:inset 0 1px #ffffff25,0 3px #09251b;font-weight:700;touch-action:manipulation;transition:transform .1s,box-shadow .1s,background .1s}.race-hub .hub-tool svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.race-hub .hub-header-actions .hub-tool:active{transform:translateY(2px);box-shadow:inset 0 2px 5px #0006,0 1px #09251b;background:#123528}.race-hub .hub-tool:focus-visible{outline:3px solid #f0d68c;outline-offset:3px}@media(prefers-reduced-motion:reduce){.race-hub .hub-header-actions .hub-tool{transition:none}}#app[data-screen=stable][data-stable-tab=stable]{--home-edge:#d9bd7b80;--home-glass:#102b23df}.game-home .home-identity{position:fixed;top:82px;left:28px;z-index:5;color:#fff2cf;text-shadow:0 2px 6px #0009}.home-horse-name{display:flex;flex-direction:column;align-items:flex-start;padding:0;border:0;background:none;color:inherit;cursor:pointer;max-width:36vw;text-align:left}.home-horse-name small{font-size:10px;letter-spacing:2px}.home-horse-name>span{font:clamp(25px,3vw,44px) Georgia,serif;overflow-wrap:anywhere}.home-horse-name i{font:22px sans-serif;color:#f2cf87}.home-condition{display:block;font-size:12px;margin:6px 0 12px;color:#f5e1b6}.home-vitals{display:flex;gap:12px;max-width:300px}.home-vital{border:0;background:#102b238a;border-radius:5px;padding:6px 8px;color:#fff2cf;min-height:44px;width:90px;cursor:pointer}.home-vital span{display:flex;justify-content:space-between;gap:8px;font-size:11px}.home-vital b{font-variant-numeric:tabular-nums}.home-vital meter{display:block;width:100%;height:8px;margin-top:4px;accent-color:#c8d8a0}.home-tools{position:fixed;right:24px;top:86px;z-index:5;display:flex;gap:10px}.home-tools button{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:none;color:#ffedc6;text-shadow:0 2px 5px #000;cursor:pointer;max-width:105px;font-size:11px}.home-tools button>span:first-child{display:grid;place-items:center;width:46px;height:46px;border:1px solid var(--home-edge);border-radius:50%;background:var(--home-glass);font-size:25px;box-shadow:0 3px 12px #0005}.home-actions{position:fixed;z-index:7;bottom:28px;left:50%;transform:translate(-50%);display:flex;align-items:stretch;gap:8px;padding:8px;background:linear-gradient(#254336eb,#0c251ff5);border:1px solid var(--home-edge);border-radius:18px;box-shadow:0 8px 24px #0007}.home-actions>button,.home-actions .horse-race-entry>button{min-height:70px;width:150px;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #bfa66c60;border-radius:12px;background:#213d32;color:#ffedc6;font-weight:650;cursor:pointer}.home-actions>button:first-child{background:linear-gradient(#f0d9a3,#c6a366);color:#192d23;border-color:#fff1bb}.home-actions img,.home-actions svg{height:32px;width:32px;flex-shrink:0}.home-actions svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.home-actions .horse-race-entry{display:flex;margin:0}.home-actions .horse-race-entry small{display:none}.home-actions .horse-race-entry>button{background:#193f32}#app[data-screen=stable][data-stable-tab=stable] .game-nav{left:20px!important;right:auto!important;bottom:28px;transform:none!important;width:270px!important;height:86px;box-sizing:border-box;border:0;background:linear-gradient(0deg,#0a241ce8,#0a241c00);box-shadow:none;padding:4px;gap:2px}#app[data-screen=stable][data-stable-tab=stable] .game-nav button{font-size:10px}#app[data-screen=stable][data-stable-tab=stable] .stable-view-toggle{inset:auto 24px 48px auto!important;min-height:44px}#app[data-screen=stable][data-stable-tab=stable] .rotate-hint{display:none}.home-layer{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);box-sizing:border-box;overflow:auto;border:1px solid #d9bd7b;border-radius:18px;background:linear-gradient(140deg,#244537,#102b23);color:#fff0cc;padding:20px;box-shadow:0 24px 90px #0009}.home-layer::backdrop{background:#071a15a8;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.home-layer>header{display:flex;justify-content:space-between;align-items:center;position:static;height:auto;padding:0 0 12px;background:none;border:0;gap:12px}.home-layer h2{font:26px Georgia,serif;margin:0}.home-layer [data-home-close]{width:44px;height:44px;flex-shrink:0;border:1px solid #ddc17b80;background:#102b23;color:#ffe7ad;border-radius:50%;font-size:26px;cursor:pointer}.home-layer button{cursor:pointer}.home-layer .horse-card{margin:12px 0}.home-layer .quest-summary,.home-layer .history-entry,.home-gift{width:100%;min-height:48px;margin:8px 0;padding:12px;box-sizing:border-box;background:#183b30;border:1px solid #ab9469;border-radius:8px;color:#f8e7bd}.home-gift{display:flex;align-items:center;gap:12px}.home-layer .daily-route{margin:12px 0}.home-roster{display:grid;gap:10px}.home-roster>button{display:flex;align-items:center;gap:12px;padding:12px;min-height:70px;background:#18392e;border:1px solid #ac9666;border-radius:12px;color:#ffeac0;text-align:left}.home-roster>button[aria-pressed=true]{border:2px solid #f0d18a}.home-roster small{display:block;margin-top:6px}.home-roster .horse-art{width:70px;height:60px;flex-shrink:0}.game-home button:focus-visible,.home-layer button:focus-visible{outline:3px solid #fff4cf;outline-offset:3px}@media(max-width:1100px){#app[data-screen=stable][data-stable-tab=stable] .game-nav{width:220px!important}.home-actions>button,.home-actions .horse-race-entry>button{width:125px}}@media(max-width:600px)and (orientation:portrait){#app[data-screen=stable][data-stable-tab=stable]>header{height:54px;min-height:54px;display:flex;flex-wrap:nowrap;padding:4px 10px}#app[data-screen=stable][data-stable-tab=stable]>header .brand{display:none}#app[data-screen=stable][data-stable-tab=stable]>header .header-right{width:100%;gap:4px}#app[data-screen=stable][data-stable-tab=stable]>header .balance-card{min-width:0;padding:5px;gap:3px}#app[data-screen=stable][data-stable-tab=stable]>header .balance-copy small{font-size:8px}#app[data-screen=stable][data-stable-tab=stable]>header .balance-copy b{font-size:12px}#app[data-screen=stable][data-stable-tab=stable]>header .header-label{display:none}.game-home .home-identity{top:68px;left:14px}.home-horse-name{max-width:65vw}.home-horse-name>span{font-size:27px}.home-condition{font-size:11px;margin:4px 0 8px}.home-vitals{gap:4px;max-width:260px}.home-vital{width:75px;padding:5px}.home-tools{top:68px;right:10px;flex-direction:column;gap:10px}.home-tools button{width:66px;font-size:9px}.home-tools button>span:first-child{width:40px;height:40px}.home-actions{bottom:calc(78px + env(safe-area-inset-bottom));left:10px;right:10px;transform:none;padding:6px;gap:5px;border-radius:14px}.home-actions>button,.home-actions .horse-race-entry{flex:1;min-width:0}.home-actions>button,.home-actions .horse-race-entry>button{width:100%;min-height:64px;font-size:12px;flex-direction:column;gap:4px;padding:6px}.home-actions img,.home-actions svg{width:25px;height:25px}#app[data-screen=stable][data-stable-tab=stable] .game-nav{left:8px!important;right:64px!important;width:auto!important;height:58px;bottom:calc(8px + env(safe-area-inset-bottom))}#app[data-screen=stable][data-stable-tab=stable] .stable-view-toggle{right:8px!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;font-size:10px;padding:5px!important;max-width:52px}.stable-content[data-tab-view=stable] .game-home .stall-visual>.scene-horse{left:0;top:24%;width:100%;height:53%}}@media(orientation:landscape)and (max-height:600px){.game-home .home-identity{top:56px;left:14px}.home-horse-name>span{font-size:25px}.home-horse-name small{font-size:8px}.home-condition{margin:2px 0 4px;font-size:10px}.home-vitals{gap:4px}.home-vital{width:65px;padding:4px;font-size:10px}.home-tools{top:58px;right:12px;gap:6px}.home-tools button{font-size:9px;max-width:75px}.home-tools button>span:first-child{width:36px;height:36px}.home-actions{bottom:10px;gap:4px;padding:5px}.home-actions>button,.home-actions .horse-race-entry>button{width:108px;min-height:52px;padding:6px;font-size:11px;gap:5px}.home-actions img,.home-actions svg{width:24px;height:24px}#app[data-screen=stable][data-stable-tab=stable] .game-nav{left:8px!important;bottom:8px;width:190px!important;height:62px}#app[data-screen=stable][data-stable-tab=stable] .stable-view-toggle{right:12px!important;bottom:18px!important}}.home-utilities{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.home-utilities a,.home-utilities button{display:grid;place-items:center;min-height:44px;padding:8px 12px;box-sizing:border-box;color:#f4dfaf;background:#183b30;border:1px solid #ab9469;border-radius:8px;text-decoration:none}@media(max-width:600px)and (orientation:portrait){#app[data-screen=stable][data-stable-tab=stable]>header .header-nav,#app[data-screen=stable][data-stable-tab=stable] #fullscreen{display:none}#app[data-screen=stable][data-stable-tab=stable]>header .header-right{justify-content:space-between;min-width:0}#app[data-screen=stable][data-stable-tab=stable]>header .header-balances{gap:4px;min-width:0}.home-actions .horse-race-entry>button{flex-direction:row;white-space:normal}}#app[data-screen=stable][data-stable-tab=stable] .game-nav button,#app[data-screen=stable][data-stable-tab=stable] .game-nav .trophy-shelf{flex:1 1 0;min-width:0;padding:4px 2px}#app[data-screen=stable][data-stable-tab=stable] .game-nav .trophy-shelf b{font-size:9px;white-space:normal;line-height:1.1}@media(orientation:landscape)and (max-height:600px){.home-actions{left:214px;right:100px;transform:none}.home-actions>button,.home-actions .horse-race-entry{flex:1;min-width:0}.home-actions>button,.home-actions .horse-race-entry>button{width:100%;white-space:normal}.home-actions img,.home-actions svg{width:20px;height:20px}}#app .game-home .stall-visual .immersive-stall{bottom:0!important}#app .game-home .stall-visual .immersive-stall:before{display:none!important}@media(max-width:600px)and (orientation:portrait){#app .game-home .stall-visual>.scene-horse{transform:translateY(19dvh)!important}}.home-next{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:250px;padding:6px 10px;border:1px solid #bba775;border-radius:10px;background:#173b30e8;color:#f6e6ba;text-align:left;font-size:12px}.home-next small{font-size:10px;opacity:.85}.return-recap{border-bottom:1px solid #bba775;padding:8px 0}.return-recap p{margin:5px 0}.return-recap button{margin-left:8px}@media(orientation:landscape)and (max-height:600px){.home-next{max-width:180px;font-size:10px;padding:4px 7px}.home-next small{font-size:9px}}@media(max-width:600px)and (orientation:portrait){.home-next{max-width:190px;font-size:11px}}#home-journal{width:min(600px,calc(100vw - 24px));height:min(430px,calc(100dvh - 24px));max-height:none;box-sizing:border-box;overflow:visible;padding:16px}#home-journal[open]{display:flex;flex-direction:column;gap:10px}#home-journal>header{flex-shrink:0;padding:0}.journal-tabs{display:flex;gap:5px}.journal-tabs button{flex:1;min-height:42px;padding:5px;font-size:12px;background:#1b3b30;color:#f6e5b8;border:1px solid #b49b61;border-radius:8px}.journal-tabs button[aria-pressed=true]{background:#dfc58d;color:#17372b}.journal-pages{flex:1;min-height:0}.journal-pages>section:not([hidden]){height:100%;display:flex;flex-direction:column;justify-content:center;gap:8px}.journal-pages button,.journal-pages a{min-height:40px;box-sizing:border-box;color:#f7e6b8}.journal-pages p{margin:5px 0}.journal-pages .quest-summary,.journal-pages .history-entry,.journal-pages .home-gift{margin:0;padding:8px;min-height:40px}.journal-pages .home-cup-target{line-height:1.8}.journal-pages .return-recap{border:0}.journal-pages h3{margin:5px 0;font-size:18px}@media(orientation:landscape)and (max-height:600px){#home-journal{padding:10px;gap:5px}#home-journal h2{font-size:20px}#home-journal [data-home-close]{height:36px;width:36px}.journal-tabs button{min-height:36px;font-size:11px}.journal-pages{font-size:12px}.journal-pages>section:not([hidden]){gap:5px}.journal-pages .home-gift,.journal-pages .history-entry,.journal-pages .quest-summary{min-height:36px;padding:5px}}#home-journal .journal-tabs button{transition:none}#home-journal .journal-pages p,#home-journal .journal-pages small{color:#eee2c3;opacity:1}#home-journal .journal-pages button{background:#1b3b30;border:1px solid #b49b61;border-radius:8px;padding:7px 10px;color:#f7e6b8}#home-journal .journal-pages a{color:#f2d38e}#app>header .tier-chip .tier-star{font-size:18px;color:#e7c78c;line-height:1}.education-header .mastery-goal{display:block;color:#cfd8c9;font-size:12px;margin-top:2px}@media(max-width:600px)and (orientation:portrait){.education-header{flex-wrap:wrap;gap:6px 12px}.education-header>div{flex:1 1 100%}.education-header>b{flex:none;white-space:nowrap}.education-header .mastery-goal{flex:1}.education-body{grid-template-columns:1fr;gap:12px}.education-profile{display:grid;grid-template-columns:96px 1fr;gap:4px 12px;align-items:start}.education-profile img,.education-profile .jockey-monogram{grid-row:span 4}.education-map{grid-template-columns:1fr;gap:10px}.education-branch{display:grid;grid-template-columns:32px 1fr;gap:4px 10px;padding:12px}.education-branch>*{grid-column:2}.education-branch .education-symbol{grid-column:1;grid-row:span 2}.education-branch h3{font-size:17px;margin:0}}#app .market-game{position:fixed;inset:68px 0 0;height:auto;z-index:3;padding:22px 32px 18px!important;isolation:isolate;overflow:hidden;color:#fff0d1;box-sizing:border-box;background:#152e25!important;gap:14px}#app .market-game:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#132a20ab,#132a2040 52%,#10231ae8),var(--market-art) 74% 60% / cover no-repeat;filter:saturate(.7)}#app .market-game:after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,#10291eee,transparent 50%,#0b211b70)}#app .market-game.horse-market{display:grid;grid-template-rows:54px 48px 40px minmax(0,1fr) 100px}#app .market-game.unified-market{display:grid;grid-template-rows:54px 48px minmax(0,1fr);gap:14px}.market-shop-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.market-shop-heading small{font-size:10px;letter-spacing:3px;color:#e6ce96}.market-shop-heading h1{font:32px Georgia,serif;margin:3px 0;color:#fff0cb}.market-shop-balance{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;padding:8px 14px;border:1px solid #cfb67b70;border-radius:30px;background:#112c23dc}.market-shop-balance img{width:24px;height:24px}#app .market-game .market-categories{position:static;display:flex;align-items:center;height:48px;flex:none;overflow-x:auto;overflow-y:hidden;gap:8px;background:none;border:0;padding:0;margin:0;scrollbar-width:thin}#app .market-game .market-categories [data-market-category]{display:block;min-height:44px;padding:8px 18px;border:1px solid #d2b97860;border-radius:22px;background:#152e24de;color:#fff0ca;white-space:nowrap}#app .market-game .market-categories [aria-pressed=true]{background:#e7ce94;color:#17362a;border-color:#fff0bf}#app .market-game #close-market{position:sticky;left:0;flex:none;border-radius:50%;background:#122f25;border:1px solid #d9c08b;min-height:44px;z-index:2}#app .market-game .market-categories select{display:none}#app .market-game .market-toolbar{display:flex;position:static;width:auto;align-items:center;gap:14px;min-height:0}#app .market-game .market-toolbar h2{display:block;font:19px Georgia,serif;color:#f8e7bc}#app .market-game .market-tabs{display:flex;gap:5px;overflow-x:auto}#app .market-game .market-tabs button{min-height:36px;padding:6px 12px;background:#142e24ce;color:#e9d8ad;border:1px solid #a48f6070;border-radius:6px}#app .market-game .market-tabs [aria-pressed=true]{background:#d9bd7b;color:#183528}#app .market-game .market-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,350px);grid-template-rows:minmax(0,1fr);gap:24px;align-items:center;min-height:0}#app .market-game .market-horse{height:100%;width:100%;background:radial-gradient(ellipse at 50% 90%,#e9dbb544,transparent 60%);border:0;min-height:0;position:relative;inset:auto;overflow:hidden}#app .market-game .market-summary{height:auto;max-height:100%;overflow:auto;box-sizing:border-box;display:flex;flex-direction:column;gap:22px;padding:24px;border:1px solid #ccb37a80;border-radius:18px;background:linear-gradient(140deg,#18382fec,#0d271ff5);box-shadow:0 15px 40px #0004}#app .market-game .market-title{align-items:flex-start;gap:10px;flex-wrap:wrap}.market-game .market-title-actions{margin-left:auto}#app .market-game .market-title h3{font:32px Georgia,serif;margin:0 0 7px}.market-game .market-title small{line-height:1.5}#app .market-game .market-title button{background:transparent;border:1px solid #b9a272;color:#f1dfb2;border-radius:8px;min-height:44px}#app .market-game .market-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:15px 0;border-top:1px solid #c2a36a40;border-bottom:1px solid #c2a36a40}#app .market-game .market-stat-grid strong{font-size:24px}.market-game .market-stat-grid strong small{display:none}#app .market-game .market-purchase{display:flex;flex-wrap:wrap;gap:12px;border:0;padding:0}#app .market-game .market-price b{font-size:24px}.market-game .market-price small{font-size:12px;line-height:1.6}#app .market-game .market-purchase button{width:100%;max-width:none;min-height:48px;border-radius:10px;background:linear-gradient(#f1dca8,#c8a56b);color:#1d3327}#app .market-game .market-choice-list{display:block;min-height:0}.market-game .market-choice-list>small{margin-bottom:6px}#app .market-game .market-candidates{display:flex;flex-direction:row;overflow-x:auto;overflow-y:hidden;height:78px;gap:10px;width:100%;scroll-snap-type:x proximity}#app .market-game .market-candidates>button{flex:0 0 280px;min-width:240px;max-width:320px;min-height:72px;padding:8px 12px;grid-template-columns:46px 1fr;background:#173a2fde;border:1px solid #c7ac7460;color:#f2dfb3;border-radius:10px}#app .market-game .market-candidates>button[aria-pressed=true]{border-color:#ffe3a3;background:#e4c88a;color:#153529}#app .market-game .market-candidates .horse-portrait{width:44px;height:52px}#app .market-game .care-shop{overflow:auto;min-height:0;padding:12px 4px 24px;display:flex;flex-direction:column;justify-content:center}#app .market-game .care-shop>h2,#app .market-game .feed-shop-heading{font:26px Georgia,serif;text-align:center;margin:0 0 24px;color:#ffe8b4}#app .market-game .care-shop:after{display:none}#app .market-game .care-shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:28px;max-width:1000px;width:100%;margin:0 auto;overflow:visible;padding:0 0 12px;scroll-snap-type:none}#app .market-game .care-shop-grid article{position:relative;min-width:0;max-width:none;min-height:280px;padding:20px 18px 18px!important;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;background:linear-gradient(0deg,#382b1ff5,#382b1fbb 33%,#12271c20 70%);border:0!important;border-bottom:7px solid #705033!important;border-radius:4px 4px 12px 12px!important;box-shadow:0 14px 20px #0005,inset 0 -2px #c79d56}#app .market-game .care-shop-grid .care-item-art{width:124px;height:124px;max-width:80%;object-fit:contain;filter:drop-shadow(0 12px 8px #0007)}#app .market-game .care-shop-grid h3{font:22px Georgia,serif;margin:0;color:#ffe9bd}.market-game .care-shop-grid p{margin:0;line-height:1.5;font-size:13px}#app .market-game .care-shop-grid button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px!important;padding:10px 14px;margin-top:auto;font-size:14px;border:1px solid #f5dc9d;border-radius:8px;background:linear-gradient(#efd5a0,#c3a068);color:#223727}.market-game .product-stock{color:#ecdfc1}.product-price{display:flex;align-items:center;gap:5px;white-space:nowrap}.product-price img{width:19px;height:19px}#app .market-game button:disabled{opacity:.65;cursor:not-allowed}.market-game button:focus-visible,.market-game select:focus-visible{outline:3px solid #fff0c7;outline-offset:2px}#app .market-game .product-heading{display:flex;flex-direction:column;align-items:center;gap:12px}.market-game .product-heading .feed-sack{width:115px!important;height:124px!important}.market-game .product-effect{min-height:40px}.market-game .product-offer:not(button){margin-top:auto;padding:12px;color:#e8d2a1}#app .market-game .care-shop-grid:has(>article:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr));max-width:720px}#app .market-game .care-shop-grid:has(>article:only-child){grid-template-columns:minmax(0,340px);justify-content:center}#app .market-game .market-coming,#app .market-game .market-empty{margin:auto;padding:28px;max-width:460px;text-align:center;background:#142e24eb;border:1px solid #b79c63;border-radius:16px}#market-purchase-receipt{position:fixed;left:50%;bottom:max(20px,env(safe-area-inset-bottom));transform:translate(-50%);z-index:200;display:flex;align-items:center;gap:14px;width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;padding:12px 16px;background:#153b2cf5;color:#ffedc5;border:1px solid #d6b877;border-radius:14px;box-shadow:0 12px 28px #0007}#market-purchase-receipt>div{display:flex;flex-direction:column;gap:4px}#market-purchase-receipt button{min-width:44px;min-height:44px;background:transparent;color:#ffebc1;border:0;font-size:22px}@media(max-width:1000px){#app .market-game{padding:16px!important}.market-shop-heading h1{font-size:26px}#app .market-game .market-main{gap:12px;grid-template-columns:minmax(0,1fr) 300px}#app .market-game .market-summary{padding:16px;gap:12px}#app .market-game .care-shop-grid{gap:14px}}@media(max-width:600px)and (orientation:portrait){#app .market-game{top:56px;padding:12px!important;gap:10px}#app .market-game.horse-market{grid-template-rows:44px 48px 34px minmax(0,1fr) 88px}#app .market-game.unified-market{grid-template-rows:44px 48px minmax(0,1fr)}.market-shop-heading h1{font-size:25px}.market-shop-heading small{font-size:8px}.market-shop-balance{font-size:14px;padding:6px 10px}#app .market-game .market-categories [data-market-category]{padding:8px 14px}#app .market-game .market-toolbar h2{font-size:15px}#app .market-game .market-tabs button{font-size:11px;min-height:32px;padding:4px 8px}#app .market-game .market-main{grid-template-columns:1fr;grid-template-rows:minmax(90px,1fr) auto;gap:4px}#app .market-game .market-horse{min-height:90px}#app .market-game .market-summary{max-height:none;overflow:visible;padding:12px;gap:8px;display:grid;grid-template-columns:minmax(0,1fr) 135px;grid-template-rows:auto auto;border-radius:12px}#app .market-game .market-title{grid-column:1;display:flex;gap:4px}#app .market-game .market-title h3{font-size:24px;margin:0}.market-game .market-title-actions{margin:0}#app .market-game .market-title small{font-size:10px}#app .market-game .market-title button{min-height:32px;font-size:11px;padding:4px 8px}#app .market-game .market-stat-grid{grid-column:1;grid-row:2;gap:8px;padding:6px 0;border-bottom:0}#app .market-game .market-stat-grid .stat{font-size:10px}#app .market-game .market-stat-grid strong{font-size:18px}#app .market-game .market-purchase{grid-column:2;grid-row:1/3;flex-direction:column;justify-content:center;align-items:stretch;gap:8px}#app .market-game .market-price b{font-size:18px}#app .market-game .market-price small{font-size:10px}#app .market-game .market-purchase button{font-size:12px;min-width:0;padding:8px}#app .market-game .market-choice-list>small{font-size:10px;white-space:nowrap;overflow:hidden}#app .market-game .market-choice-list>small span{display:none}#app .market-game .market-candidates{height:64px}#app .market-game .market-candidates>button{min-width:230px;flex-basis:250px;min-height:60px;padding:6px 8px}.market-game .candidate-stats .stat>span{font-size:9px!important}#app .market-game .care-shop{justify-content:flex-start;padding-top:6px}#app .market-game .care-shop>h2,#app .market-game .feed-shop-heading{margin-bottom:14px;font-size:22px}#app .market-game .care-shop-grid,#app .market-game .care-shop-grid:has(>article:nth-child(2):last-child){grid-template-columns:1fr;gap:16px;max-width:360px}#app .market-game .care-shop-grid article{min-height:160px;display:grid;grid-template-columns:90px 1fr;grid-template-rows:auto auto auto;gap:8px;padding:14px!important;text-align:left}#app .market-game .care-shop-grid .care-item-art{width:90px;height:90px;grid-row:1/4;max-width:100%}#app .market-game .care-shop-grid h3{font-size:21px}#app .market-game .care-shop-grid button{grid-column:2;font-size:12px;padding:8px;gap:6px}#app .market-game .product-heading{grid-row:1/4;grid-column:1;max-width:100%}#app .market-game .product-heading h3{font-size:15px}.market-game .product-heading .feed-sack{width:70px!important;height:80px!important}#app .market-game .product-effect{grid-column:2;min-height:0}#app .market-game .gift-product .care-item-art{grid-row:1/4}.market-game .gift-product p{grid-column:2}}@media(orientation:landscape)and (max-height:500px){#app .market-game{top:44px;padding:8px 12px!important;gap:6px}#app .market-game.horse-market{grid-template-rows:44px minmax(0,1fr) 68px}#app .market-game.unified-market{grid-template-rows:44px minmax(0,1fr)}#app .market-game .market-shop-heading,#app .market-game .market-toolbar{display:none}#app .market-game .market-categories{height:44px}#app .market-game #market-tier-select{display:block;max-width:125px;min-width:110px;min-height:44px;background:#163829;color:#ffebba;border:1px solid #b9a171;border-radius:8px;padding:4px}#app .market-game .market-main{grid-template-columns:minmax(140px,1fr) minmax(300px,1fr);gap:12px}#app .market-game .market-summary{padding:10px;gap:6px;display:grid;grid-template-columns:1fr 135px;grid-template-rows:auto auto;overflow:auto}#app .market-game .market-title{grid-column:1;gap:4px}#app .market-game .market-title h3{font-size:23px;margin:0}#app .market-game .market-title small{font-size:10px}#app .market-game .market-title button{min-height:32px;font-size:11px;padding:4px 8px}#app .market-game .market-stat-grid{grid-column:1;grid-row:2;padding:5px 0;border-bottom:0;gap:6px}#app .market-game .market-stat-grid .stat{font-size:10px}#app .market-game .market-stat-grid strong{font-size:18px}#app .market-game .market-purchase{grid-column:2;grid-row:1/3;flex-direction:column;justify-content:center;gap:6px}#app .market-game .market-price b{font-size:18px}#app .market-game .market-price small{font-size:10px}#app .market-game .market-purchase button{font-size:12px;min-width:0}#app .market-game .market-choice-list>small{display:none}#app .market-game .market-candidates{height:64px}#app .market-game .market-candidates>button{min-height:60px}#app .market-game .care-shop{padding:6px 0;justify-content:flex-start}#app .market-game .care-shop>h2,#app .market-game .feed-shop-heading{display:none}#app .market-game .care-shop-grid{gap:12px;grid-template-columns:repeat(3,minmax(180px,1fr));overflow-x:auto}#app .market-game .care-shop-grid article{min-height:190px;padding:10px!important;gap:5px}#app .market-game .care-shop-grid .care-item-art{width:65px;height:65px}#app .market-game .care-shop-grid h3{font-size:18px}#app .market-game .care-shop-grid button{font-size:12px;padding:8px}.market-game .product-heading .feed-sack{width:60px!important;height:65px!important}#app .market-game .product-heading{flex-direction:row;gap:8px}.market-game .product-effect{min-height:0}}.market-game .republic-decor{display:none}#app .market-game .care-shop{background:transparent;border:0;box-shadow:none;border-radius:0}.market-game>.market-backdrop{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:74% 60%;z-index:-3;filter:saturate(.7);pointer-events:none}#app .market-game:before{background:linear-gradient(90deg,#132a20ab,#132a2040 52%,#10231ae8)}#app .market-game .feed-shop-heading{justify-content:center}#app[data-screen=stable][data-stable-tab=market] main>.error{position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:210;width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;padding:14px 20px;background:#562d25;color:#fff0dc;border:1px solid #e4a37d;border-radius:12px;box-shadow:0 8px 24px #0006}#app[data-stable-tab=market] :is(#purchase-dialog,#market-details-dialog,#market-compare-dialog){background:#17382c;color:#ffedc6;border:1px solid #cab17b;border-radius:16px;box-shadow:0 20px 70px #0008}#app[data-stable-tab=market] :is(#purchase-dialog,#market-details-dialog,#market-compare-dialog)::backdrop{background:#061c15aa;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}#app[data-stable-tab=market] #purchase-dialog h2,#app[data-stable-tab=market] .market-detail-heading h2{color:#ffedc6}#app[data-stable-tab=market] :is(#purchase-dialog .dialog-actions,.market-detail-heading){background:#17382c;color:#ffedc6}#app[data-stable-tab=market] #purchase-dialog input{background:#0c281f;color:#fff0d3;border:1px solid #b9a373;border-radius:8px;padding:10px}#app[data-screen=room] .training-room .care-layout{top:190px!important;bottom:auto!important;width:360px!important;max-height:none!important;overflow:visible!important}#app .training-room .care-details{padding:0!important;background:none!important;border:0!important;overflow:visible!important}#app .training-room .training-dashboard{display:grid!important;gap:14px!important;padding:20px!important;color:#ffedc8!important;background:linear-gradient(145deg,#234736f5,#0b2821f5);border:1px solid #d1b778;border-radius:18px;box-shadow:0 12px 40px #0005;box-sizing:border-box}#app .training-room .training-heading{display:flex!important;justify-content:space-between;align-items:center}#app .training-room .training-heading h2{display:block!important;font:26px Georgia,serif;margin:0!important;color:inherit}#app .training-room #training-info{border:1px solid #a38f65;border-radius:50%;background:none;color:inherit;width:44px;height:44px;padding:0;margin:0}#app .training-room .training-select{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#app .training-room .training-select button{padding:8px 4px;margin:0;min-width:0;border:1px solid #9e8d64;border-radius:8px;background:#14382c;color:#e4d7b7;font-size:12px;line-height:1.25;min-height:48px}#app .training-room .training-select button[aria-pressed=true]{background:#e7cb8e;color:#173327;border-color:#fff0c5}#app .training-room .training-focus{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px;color:#fff0d0}#app .training-room .training-focus>span{font:20px Georgia,serif}.training-focus>b{font-size:32px;font-variant-numeric:tabular-nums}.training-focus>small{grid-column:1/-1;font-size:12px;color:#c8c8ab}#app .training-room .training-start{display:block!important;width:100%;min-height:48px!important;margin:0;padding:10px;font-size:15px;background:linear-gradient(#f2dcaa,#c5a263);color:#173126;border:1px solid #ffe5a3;border-radius:9px}#app .training-room .training-start:disabled{opacity:1;background:#294b3b;color:#d7cba9;border-color:#7c805a}#app .training-room .training-readiness{display:grid!important;gap:5px;font-size:12px!important;color:#ecdfbb;opacity:1;line-height:1.4}.training-readiness>span{display:flex;justify-content:space-between;gap:10px}.training-info-dialog{width:min(460px,calc(100vw - 32px));box-sizing:border-box;border:1px solid #d7bd7e;border-radius:16px;background:#17382c;color:#ffedc8;padding:20px}.training-info-dialog::backdrop{background:#071f17b5;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.training-info-dialog p{font-size:14px;line-height:1.5}.training-info-dialog h2{font-family:Georgia,serif}.training-info-dialog button{min-height:44px;width:100%}#app .training-room button:focus-visible{outline:3px solid #fff0c9;outline-offset:2px}@media(max-width:600px)and (orientation:portrait){#app[data-screen=room] .training-room .care-layout{inset:auto 12px 88px!important;width:auto!important}#app .training-room .training-dashboard{padding:12px!important;gap:8px!important}#app .training-room .training-heading h2{font-size:22px}#app .training-room .training-focus{grid-template-columns:1fr auto auto;gap:12px}.training-focus>b{font-size:26px}#app .training-room .training-focus>small{grid-column:auto}#app .training-room .room-nav{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:0!important;padding:4px!important;overflow:visible!important}#app .training-room .room-nav button{min-width:0!important;padding:3px!important;font-size:10px!important}}@media(orientation:landscape)and (max-height:600px){#app[data-screen=room] .training-room .care-layout{top:72px!important;bottom:82px!important;width:320px!important;max-height:none!important}#app .training-room .training-dashboard{height:100%;padding:10px!important;gap:5px!important;grid-template-columns:1fr auto}#app .training-room .training-heading{grid-column:1/-1}#app .training-room .training-heading h2{font-size:20px}#app .training-room #training-info{min-height:32px!important;height:32px;width:32px}#app .training-room .training-select{grid-column:1/-1}#app .training-room .training-select button{min-height:44px!important}#app .training-room .training-focus{grid-template-columns:1fr auto;gap:2px}#app .training-room .training-focus>span{font-size:15px}.training-focus>b{font-size:22px}#app .training-room .training-start{width:130px;font-size:12px;padding:5px}#app .training-room .training-readiness{grid-column:1/-1;font-size:10px!important;gap:1px}.training-info-dialog{max-width:560px;padding:12px}.training-info-dialog p{margin:8px 0;font-size:12px}}@media(orientation:landscape)and (max-height:600px){#app .training-room>.care-route-actions .horse-race-entry{position:fixed;left:16px;top:124px;right:auto;max-width:134px}#app .training-room>.care-route-actions .horse-race-entry button{font-size:12px;padding:8px}}#app .training-room>.care-route-actions{pointer-events:none}#app .training-room>.care-route-actions button{pointer-events:auto}@media(orientation:landscape)and (max-height:600px){#app .training-room .room-backdrop>.scene-horse{transform:translate(-95px)!important}}#app .training-room .training-start .training-progress{position:static;display:block;width:100%;height:7px;margin:5px 0 0;padding:0;border:0;accent-color:#efcf86;opacity:1;overflow:hidden;border-radius:5px}#app .training-room .training-progress::-webkit-progress-bar{background:#102d24;border-radius:5px}#app .training-room .training-progress::-webkit-progress-value{background:#efcf86;border-radius:5px}#app .training-room .training-progress::-moz-progress-bar{background:#efcf86;border-radius:5px}@media(orientation:landscape)and (max-height:360px){#app[data-screen=room] .training-room .care-layout{top:48px!important;bottom:80px!important}#app .training-room .training-dashboard{padding:6px 10px!important;gap:3px!important}#app .training-room .training-readiness{padding:2px 0;grid-template-columns:1fr 1fr;gap:8px;font-size:10px!important}#app .training-room .training-readiness>span{flex-wrap:wrap;gap:1px 4px}}.training-heading-actions{display:flex;align-items:center;gap:6px}#app .training-room .training-goals{min-height:44px;padding:5px 9px;border:1px solid #a38f65;border-radius:9px;background:#17382c;color:#ffedc8;font-size:12px;line-height:1.2;margin:0}#app .training-room .training-completion{display:flex;flex-direction:column;gap:3px;color:#fff0d0;line-height:1.2}#app .training-room .training-completion i{font-style:normal;color:#bce3a7}#app .training-room .training-completion small{font-size:12px;color:#ffedc8}@media(max-width:600px)and (orientation:portrait){#app[data-screen=room] .training-room>.stable-view-toggle{top:144px!important;bottom:auto!important;left:12px!important;max-width:125px;white-space:normal}#app .training-room .room-nav button span{white-space:normal;overflow-wrap:anywhere;line-height:1.1;max-width:100%}}#app[data-stable-tab=prepare] .stable-content:has(.race-planning-game){position:fixed!important;inset:76px 20px 16px!important;display:flex!important;flex-direction:column;gap:8px;overflow:visible!important;padding:0!important}#app[data-stable-tab=prepare]:has(.race-planning-game) .game-nav{display:none!important}#app .race-planning-game{position:relative!important;inset:auto!important;display:flex!important;flex:1;min-height:0;flex-direction:column;padding:20px!important;gap:12px;background:radial-gradient(ellipse at 25% 80%,#55724660,transparent 60%),linear-gradient(140deg,#214b3b,#0d2922)!important;border:1px solid #c3ac72;border-radius:22px;box-shadow:0 18px 50px #0003;overflow:visible!important}#app .race-planning-game [hidden]{display:none!important}#app .race-planning-game .plan-race-summary{position:static!important;display:flex!important;align-items:center;gap:14px;margin:0!important;padding:0 0 10px!important;border-bottom:1px solid #bba56a55;flex:none}#app .race-planning-game .plan-race-summary h2{font:clamp(20px,2vw,30px) Georgia,serif;margin:0}#app .race-planning-game .plan-race-summary>p{font-size:12px;margin:0}#app .race-planning-game .plan-prize{margin-left:auto}.race-plan-steps{display:flex;justify-content:center;gap:8px;flex:none}.race-plan-steps button{display:flex;gap:8px;align-items:center;justify-content:center;min-height:48px;flex:1;max-width:240px;padding:8px;border:1px solid #998859;border-radius:10px;background:#173c30;color:#e6d8af;font-size:13px}.race-plan-steps button>span{display:grid;place-items:center;border:1px solid #a79563;border-radius:50%;width:25px;height:25px;flex:none}.race-plan-steps [aria-current=step]{background:#e7cd93;color:#20382b;border-color:#ffe6ac}.race-plan-pages{flex:1;min-height:0;display:grid;place-items:center}.race-plan-page{width:100%;height:100%;max-width:1000px;display:flex;flex-direction:column;justify-content:center;gap:14px;min-height:0}#app .race-planning-game .race-options{display:grid!important;grid-template-columns:1fr 1fr!important;gap:20px!important;max-width:660px;width:100%;align-self:center;margin:0!important;padding:20px!important;background:#0f3026c9;border:1px solid #ac986155;border-radius:14px;box-sizing:border-box}#app .race-planning-game .race-options label{display:flex;flex-direction:column;gap:8px;font-size:14px}#app .race-planning-game .race-options select{width:100%;min-height:48px;font-size:16px}#app .race-planning-game .race-options p{grid-column:1/-1;display:block!important;font-size:14px;line-height:1.5;white-space:normal;margin:0}#app .race-planning-game .plan-venue-details{display:block!important;position:static!important;width:100%;max-width:660px;align-self:center;font-size:12px}#app .race-planning-game .race-venue-banner{max-height:130px}#app .race-planning-game .race-venue-banner img{max-height:130px;object-fit:cover}#app .race-planning-game .plan-horse-details{display:block!important;height:100%;min-height:0;width:100%}#app .race-planning-game .plan-horse-details>summary{display:none!important}#app .race-planning-game .plan-horse-area{display:block!important;position:relative!important;height:100%!important;min-height:0!important;padding:0!important;border:0!important;background:none!important}#app .race-planning-game .plan-horse-visual{display:block!important;position:absolute!important;inset:25px 30% 25px 0!important;height:auto!important;width:auto!important;min-height:0!important}#app .race-planning-game .plan-horse-name{position:absolute!important;top:0;left:0;display:block!important}#app .race-planning-game .plan-horse-name h2{font:24px Georgia,serif}#app .race-planning-game .plan-performance{display:block!important;position:absolute!important;right:0!important;top:40px!important;width:26%!important;padding:12px!important;box-sizing:border-box;background:#15362bcc;border:1px solid #a9955b;border-radius:12px;font-size:12px}#app .race-planning-game .plan-horse-locked{display:block!important;position:absolute;bottom:0;left:0;font-size:11px;margin:0}#app .race-planning-game .jockey-choice{max-width:100%;min-height:44px;flex:none}#app .race-planning-game .plan-controls{display:flex!important;flex-direction:column;gap:12px;width:100%;max-width:800px;align-self:center;padding:0!important}#app .race-planning-game .plan-instruction{display:block!important}#app .race-planning-game .plan-instruction h2{font:26px Georgia,serif;margin:0 0 8px}#app .race-planning-game .plan-instruction small{display:block!important;font-size:14px;line-height:1.4}#app .race-planning-game .tactics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}#app .race-planning-game .tactic{display:flex!important;flex-direction:column;justify-content:center;gap:12px;min-height:130px;padding:14px!important;width:100%;box-sizing:border-box}#app .race-planning-game .tactic-icon{display:block!important;font-size:32px}#app .race-planning-game .tactic b{font-size:16px}#app .race-planning-game .tactic small,#app .race-planning-game .mobile-tactic-details{display:none!important}#app .race-planning-game .plan-actions{display:flex!important;align-items:center;gap:12px;flex:none;margin:0!important;padding:10px 0 0!important;border-top:1px solid #bba56a55;position:static!important}#app .race-planning-game .plan-actions button{min-height:48px;flex:1;max-width:380px;width:auto!important;margin:0}#app .race-planning-game .plan-entry-cost{margin-right:auto;font-size:12px}@media(max-width:600px)and (orientation:portrait){#app[data-stable-tab=prepare] .stable-content:has(.race-planning-game){inset:108px 8px 8px!important;gap:5px}#app .race-planning-game{padding:12px!important;gap:10px;border-radius:16px}#app .race-planning-game .plan-race-summary{gap:7px;flex-wrap:wrap}#app .race-planning-game .plan-race-summary>p{width:100%;font-size:10px}#app .race-planning-game .plan-race-summary>div>span{display:none}#app .race-planning-game .plan-prize{font-size:12px}#app .race-planning-game .plan-prize b{font-size:17px}.race-plan-steps{gap:4px}.race-plan-steps button{font-size:10px;gap:4px;padding:5px}.race-plan-steps button>span{width:20px;height:20px}#app .race-planning-game .race-options{gap:12px!important;padding:12px!important}#app .race-planning-game .race-options select{font-size:13px}#app .race-planning-game .race-options p{font-size:12px}#app .race-planning-game .plan-horse-name h2{font-size:18px}#app .race-planning-game .plan-horse-visual{inset:20px 25% 25px -10%!important}#app .race-planning-game .plan-performance{width:34%!important;padding:8px!important;top:35px!important}#app .race-planning-game .plan-performance .stat{font-size:11px!important}#app .race-planning-game .plan-performance b{font-size:16px!important}#app .race-planning-game .plan-horse-locked{font-size:9px}#app .race-planning-game .plan-instruction h2{font-size:22px}#app .race-planning-game .plan-instruction small{font-size:12px}#app .race-planning-game .tactics{gap:5px}#app .race-planning-game .tactic{padding:7px!important;min-height:100px;gap:7px}#app .race-planning-game .tactic b{font-size:12px}}@media(orientation:landscape)and (max-height:600px){#app[data-stable-tab=prepare] .stable-content:has(.race-planning-game){inset:52px 10px 6px!important;gap:4px}#app .race-planning-game{padding:8px 12px!important;gap:5px}#app .race-planning-game .plan-race-summary{padding-bottom:4px!important}#app .race-planning-game .plan-race-summary h2{font-size:18px}#app .race-planning-game .plan-race-summary>div>span{display:none}#app .race-planning-game .plan-back{height:34px;min-height:34px;width:34px}.race-plan-steps{position:absolute;left:190px;right:12px;top:-43px;gap:5px}.race-plan-steps button{min-height:36px;font-size:10px;padding:3px}.race-plan-steps button>span{width:18px;height:18px}#app .race-planning-game .plan-actions{padding-top:4px!important}#app .race-planning-game .plan-actions button{min-height:40px;font-size:12px}#app .race-planning-game .race-options{padding:8px!important;gap:5px 16px!important;max-width:550px}#app .race-planning-game .race-options label{font-size:11px;gap:2px}#app .race-planning-game .race-options select{min-height:36px;font-size:12px}#app .race-planning-game .race-options p{font-size:11px}#app .race-planning-game .plan-venue-details{font-size:10px}.race-plan-page{gap:4px}#app .race-planning-game .plan-instruction h2{font-size:17px;margin:0}#app .race-planning-game .plan-instruction small{font-size:11px}#app .race-planning-game .plan-controls{gap:5px;max-width:650px}#app .race-planning-game .tactic{min-height:64px;flex-direction:row;gap:6px;padding:6px!important}#app .race-planning-game .tactic b{font-size:12px}#app .race-planning-game .tactic-icon{font-size:22px}#app .race-planning-game .plan-horse-visual{inset:0 30% 0 20%!important}#app .race-planning-game .plan-horse-name h2{font-size:17px;margin:0}#app .race-planning-game .plan-horse-name span{font-size:10px}#app .race-planning-game .plan-performance{top:0!important;padding:5px!important;width:25%!important}#app .race-planning-game .plan-performance .stat{font-size:10px;margin:2px 0}#app .race-planning-game .plan-performance .stat b{font-size:14px}#app .race-planning-game .plan-horse-locked{font-size:9px;max-width:23%}#app .race-planning-game [data-plan-page="1"]>.jockey-choice{max-width:23%;position:absolute;top:90px;font-size:10px}}#app[data-stable-tab=prepare] .stable-content:has(.race-planning-game){height:auto!important;min-height:0!important;max-height:none!important;box-sizing:border-box}#app .race-planning-game{height:0!important;min-height:0!important;max-height:none!important;box-sizing:border-box}#app .race-planning-game .race-plan-page>.plan-horse-area{flex:1;height:0!important;min-height:0!important;width:100%;box-sizing:border-box}#app .race-planning-game .plan-entry-cost,#app .race-planning-game .plan-back{position:static!important;inset:auto!important;flex:none}#app .race-planning-game .plan-horse-name{padding:0!important;min-height:0!important}#app .race-planning-game .plan-performance{max-height:none!important;min-height:0!important}@media(orientation:portrait){#app .race-planning-game .plan-horse-name span{font-size:11px}#app .race-planning-game .plan-horse-locked{bottom:0;max-width:100%}#app .race-planning-game .plan-horse-visual{inset:35px 25% 18px -5%!important}}@media(orientation:landscape)and (max-height:600px){#app .race-planning-game .race-plan-page>.plan-horse-area{width:75%;align-self:flex-end}#app .race-planning-game .plan-horse-visual{inset:22px 32% 0 -5%!important}#app .race-planning-game .plan-horse-locked{left:-33%;width:30%;max-width:none}#app .race-planning-game [data-plan-page="1"]>.jockey-choice{left:12px;top:80px}#app .race-planning-game .plan-performance{width:30%!important}}#app .race-planning-game .plan-performance>small{display:block;white-space:normal;font-size:10px;line-height:1.2}#app .race-planning-game .plan-performance .stat{display:flex!important;justify-content:space-between;align-items:center;font-size:12px;margin:6px 0!important;padding:3px 0!important;gap:4px}#app .race-planning-game .plan-performance .stat b{font-size:18px!important}#app .race-planning-game .plan-performance .bars{display:none!important}#app .race-planning-game .plan-performance>span{font-size:10px}@media(max-width:600px)and (orientation:portrait){#app .race-planning-game .plan-race-summary .plan-prize{order:0;width:auto!important;display:flex!important;flex-direction:column;align-items:flex-end;gap:2px;margin-left:auto!important}#app .race-planning-game .plan-prize small{font-size:9px}#app .race-planning-game .plan-race-summary>p{order:1}#app .race-planning-game .plan-race-summary h2{font-size:19px}#app .race-planning-game .plan-back{width:34px;height:34px;min-height:34px;flex-basis:34px}#app .race-planning-game .plan-performance{top:36px!important}}@media(max-width:600px)and (orientation:portrait){#app .race-planning-game .plan-performance{top:28px!important;bottom:auto;left:auto;right:0!important;width:36%!important;padding:6px!important}#app .race-planning-game .plan-performance .stat{margin:1px 0!important;padding:0!important;font-size:10px!important;gap:2px}#app .race-planning-game .plan-performance .stat b{font-size:14px!important}#app .race-planning-game .plan-performance>span{font-size:8px;letter-spacing:0;line-height:1.2}#app .race-planning-game .plan-performance>small{font-size:9px;line-height:1.2}#app .race-planning-game .plan-horse-visual{inset:24px 30% 20px -5%!important}}@media(orientation:landscape)and (max-height:360px){#app[data-stable-tab=prepare] .stable-content:has(.race-planning-game){top:6px!important}#app .race-planning-game .tactic{min-height:44px;gap:4px}#app .race-planning-game .plan-performance .stat{margin:1px 0!important;padding:0!important}#app .race-planning-game .plan-performance .stat b{font-size:15px!important}#app .race-planning-game .plan-horse-locked{font-size:9px}}.race-plan-steps button{transition:none}#app[data-stable-tab=prepare] .stable-content:has(.race-hub-game){position:fixed!important;inset:76px 20px 14px!important;height:auto!important;min-height:0!important;padding:0!important;display:flex!important;flex-direction:column;gap:8px;overflow:visible!important}#app[data-stable-tab=prepare]:has(.race-hub-game) .game-nav{display:none!important}#app .race-hub-game{display:flex;flex:1;min-height:0;flex-direction:column;padding:0!important;gap:14px;overflow:visible!important;background:none!important}#app .race-hub-game>header{position:static!important;flex:none;background:none;padding:0;margin:0;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:16px}#app .race-hub-game h1{font:clamp(24px,3vw,38px) Georgia,serif;margin:0 0 8px}#app .race-hub-game>header p{font-size:13px;margin:0}#app .race-hub-game>header small{display:none}#app .race-hub-game .hub-swipe{display:none!important}#app .race-hub-game .hub-grid{display:grid!important;grid-template-columns:repeat(var(--hub-columns,3),minmax(0,1fr))!important;grid-template-rows:minmax(0,1fr);flex:1;min-height:0;gap:14px;overflow:visible!important;padding:0!important;width:100%!important}#app .race-hub-game .hub-grid>[hidden]{display:none!important}#app .race-hub-game .hub-grid>*{min-width:0;min-height:0!important;max-height:none!important;height:100%!important;margin:0!important;box-sizing:border-box;border-radius:18px;padding:clamp(14px,2vw,28px);background:radial-gradient(ellipse at top right,#91ae7225,transparent 60%),#163a2f;color:#f5e6bf;border:1px solid #ab965e;display:flex;flex-direction:column;justify-content:center;gap:12px;text-align:left;overflow:visible!important}#app .race-hub-game .hub-grid .hub-symbol{font-size:50px;position:static;opacity:1}#app .race-hub-game .hub-grid h2,#app .race-hub-game .hub-grid h3{font:clamp(22px,2.5vw,32px) Georgia,serif;margin:0}#app .race-hub-game .hub-grid p{font-size:14px;margin:0}#app .race-hub-game .hub-grid small{display:block;font-size:12px;line-height:1.4}#app .race-hub-game .hub-grid strong{font-size:20px;color:#ecd08f}#app .race-hub-game .hub-go{margin-top:12px;padding-top:12px;border-top:1px solid #c9b47860}.hub-page-controls{display:flex;justify-content:center;align-items:center;gap:24px;flex:none}.hub-page-controls button{width:52px;min-height:44px;background:#244c3b;border:1px solid #b59e65;border-radius:10px;color:#fff0c7;font-size:24px}.hub-page-controls span{font-size:14px;color:#ead5a6}.hub-page-controls button:disabled{opacity:.4}@media(max-width:600px)and (orientation:portrait){#app[data-stable-tab=prepare] .stable-content:has(.race-hub-game){inset:108px 12px 10px!important;gap:7px}#app .race-hub-game{gap:8px}#app .race-hub-game>header{flex-wrap:wrap;gap:8px}#app .race-hub-game h1{font-size:24px;margin:0 0 4px}#app .race-hub-game>header p{font-size:11px}#app .race-hub-game .hub-header-actions{width:100%;display:flex}#app .race-hub-game .hub-tool{flex:1;min-height:44px;font-size:12px}#app .race-hub-game .hub-grid>*{gap:8px;padding:16px}#app .race-hub-game .hub-grid .hub-symbol{font-size:32px}#app .race-hub-game .hub-grid h2,#app .race-hub-game .hub-grid h3{font-size:26px}#app .race-hub-game .hub-grid strong{font-size:18px}}@media(orientation:landscape)and (max-height:600px){#app[data-stable-tab=prepare] .stable-content:has(.race-hub-game){inset:52px 10px 6px!important;gap:4px}#app .race-hub-game{gap:5px}#app .race-hub-game h1{font-size:20px;margin:0}#app .race-hub-game>header p{font-size:10px}#app .race-hub-game .hub-tool{min-height:36px;padding:5px 8px;font-size:10px}#app .race-hub-game .hub-grid{gap:8px}#app .race-hub-game .hub-grid>*{padding:8px 12px;gap:3px;border-radius:12px}#app .race-hub-game .hub-grid .hub-symbol{display:none}#app .race-hub-game .hub-grid h2,#app .race-hub-game .hub-grid h3{font-size:20px}#app .race-hub-game .hub-grid p,#app .race-hub-game .hub-grid small{font-size:10px;line-height:1.15}#app .race-hub-game .hub-grid strong{font-size:14px}#app .race-hub-game .hub-go{margin:0;padding:3px 0 0;font-size:11px}.hub-page-controls button{min-height:32px;font-size:18px}.hub-page-controls{gap:16px}}#app[data-screen=result] main{padding:0!important}#app[data-screen=result]>footer{display:none}.result-game{position:fixed;inset:80px 24px 16px;display:flex;flex-direction:column;gap:12px;color:#f8e8bd;background:radial-gradient(ellipse at 50% 25%,#9d84412b,transparent 65%),#12362b;border:1px solid #b8a169;border-radius:20px;padding:18px;box-sizing:border-box}.result-game [hidden]{display:none!important}.result-game-tabs{display:flex;justify-content:center;gap:8px;flex:none}.result-game-tabs button{flex:1;max-width:220px;min-height:48px;padding:8px;background:#234b3b;border:1px solid #a99565;border-radius:10px;color:#ecdfbb;font-size:14px}.result-game-tabs [aria-pressed=true]{background:#e4ca8c;color:#18362a}.result-game-pages{display:grid;place-items:center;flex:1;min-height:0}.result-game-page{width:100%;height:100%;max-width:1100px;display:flex;flex-direction:column;justify-content:center;min-height:0}#app .result-game .result-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;margin:0;padding:12px;background:none;border:0;max-height:100%;box-sizing:border-box}#app .result-game .result-hero>*{margin:0}#app .result-game .medallion{height:84px;width:84px;min-height:84px;font-size:34px}#app .result-game .result-hero h1{font:clamp(26px,4vw,44px) Georgia,serif}#app .result-game .result-time{font-size:17px}#app .result-game .result-time small{display:block;margin-top:5px;font-size:12px}#app .result-game .result-reward{font-size:30px;padding:10px 20px}#app .result-game .result-performance{font-size:14px}#app .result-game .result-xp{font-size:13px}.result-game-actions{display:flex;justify-content:center;gap:12px;flex:none;border-top:1px solid #bba66e55;padding-top:12px}.result-game-actions button{min-height:48px;flex:1;max-width:340px;margin:0;border-radius:10px}#app .result-game .results-table{margin:0;padding:12px;max-width:none;background:none;border:0}#app .result-game .results-table table{width:100%;margin:0}#app .result-game .results-table th,#app .result-game .results-table td{padding:8px;font-size:13px}#app .result-game .results-table .section-heading{margin:0 0 8px}#app .result-game .rank-badge{width:28px;height:28px;font-size:14px}#app .result-game .result-jockey{display:block;font-size:10px}#app .result-game .result-analysis{display:block;width:100%;margin:0;padding:0;border:0;background:none}#app .result-game .result-analysis>summary{display:none}#app .result-game .race-insights{margin:0;padding:12px;background:none;border:0}#app .result-game .race-insights h2{font:24px Georgia,serif;margin:0}#app .result-game .race-insights p{font-size:13px;line-height:1.35;margin:8px 0}#app .result-game .split-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}#app .result-game .split-card{padding:12px;gap:6px;font-size:12px}#app .result-game .split-card strong{font-size:22px}#app .result-game .daily-route{display:block;margin:0 auto;padding:20px;width:100%;max-width:700px;box-sizing:border-box;background:#1e4234;border:1px solid #b39b64;border-radius:16px;color:#f7e5bd}#app .result-game .daily-route summary{pointer-events:none;list-style:none;font:24px Georgia,serif}#app .result-game .daily-route p{color:inherit;font-size:15px;line-height:1.5}#app .result-game .daily-route nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}#app .result-game .daily-route button,#app .result-game .daily-route a{min-height:48px;padding:10px;background:#2c503e;color:#fff0c5;border:1px solid #b8a16d;border-radius:8px;font-size:13px}#app .result-game .daily-route small{font-size:11px}@media(max-width:600px)and (orientation:portrait){.result-game{inset:108px 8px 8px;padding:10px;gap:8px}.result-game-tabs{gap:4px}.result-game-tabs button{font-size:11px;padding:5px;min-height:44px}.result-game-actions{gap:6px;padding-top:8px}.result-game-actions button{font-size:12px;padding:8px}#app .result-game .result-hero{gap:10px;padding:6px}#app .result-game .medallion{width:64px;height:64px;min-height:64px;font-size:28px}#app .result-game .result-time{font-size:14px}#app .result-game .result-reward{font-size:25px}#app .result-game .results-table{padding:0}#app .result-game .results-table th,#app .result-game .results-table td{padding:5px;font-size:10px}#app .result-game .results-table .section-heading h2{font-size:21px}#app .result-game .results-table .section-heading>span{font-size:10px}#app .result-game .you{display:block;font-size:8px}#app .result-game .race-insights{padding:0}#app .result-game .race-insights .section-heading{display:block}#app .result-game .race-insights .section-heading>span{font-size:11px}#app .result-game .race-insights p{font-size:11px;margin:6px 0}#app .result-game .split-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}#app .result-game .split-card{padding:7px;gap:2px}#app .result-game .split-card strong{font-size:17px}#app .result-game .split-card small{font-size:9px}#app .result-game .daily-route{padding:12px}#app .result-game .daily-route summary{font-size:20px}#app .result-game .daily-route p{font-size:12px}#app .result-game .daily-route nav{gap:6px}#app .result-game .daily-route button{font-size:11px;padding:6px}}@media(orientation:landscape)and (max-height:600px){.result-game{inset:52px 8px 6px;padding:8px;gap:5px}.result-game-tabs button{min-height:32px;font-size:11px;padding:4px}.result-game-actions{padding-top:5px}.result-game-actions button{min-height:36px;padding:5px;font-size:11px}#app .result-game .result-hero{position:relative;gap:5px;padding:4px 70px}#app .result-game .medallion{position:absolute;left:12px;width:50px;height:50px;min-height:50px;font-size:23px}#app .result-game .result-hero h1{font-size:25px}#app .result-game .result-reward{position:absolute;right:8px;font-size:19px;padding:6px}#app .result-game .result-reward img{width:18px;height:18px}#app .result-game .result-performance,#app .result-game .result-time,#app .result-game .result-xp{font-size:11px}#app .result-game .result-time small{font-size:10px;margin:0}#app .result-game .result-hero>small,#app .result-game .eyebrow{font-size:9px}#app .result-game .results-table{padding:0}#app .result-game .results-table .section-heading{margin:0}#app .result-game .results-table h2{font-size:16px}#app .result-game .results-table th,#app .result-game .results-table td{padding:2px 6px;font-size:10px}#app .result-game .rank-badge{width:20px;height:20px;font-size:11px}#app .result-game .result-jockey{display:inline;font-size:9px;margin-left:5px}#app .result-game .results-table .hint{font-size:9px;margin:2px}#app .result-game .race-insights{padding:0}#app .result-game .race-insights h2{font-size:17px}#app .result-game .race-insights .section-heading{margin:0}#app .result-game .race-insights .section-heading>span{font-size:10px}#app .result-game .race-insights p{font-size:10px;margin:3px 0}#app .result-game .split-card{padding:4px;gap:1px;font-size:10px}#app .result-game .split-card strong{font-size:15px}#app .result-game .split-card small{font-size:9px}#app .result-game .daily-route{padding:8px;max-width:900px}#app .result-game .daily-route summary{font-size:17px}#app .result-game .daily-route p{font-size:10px;margin:4px 0}#app .result-game .daily-route nav{grid-template-columns:repeat(4,1fr);gap:5px}#app .result-game .daily-route button,#app .result-game .daily-route a{min-height:32px;padding:4px;font-size:10px}#app .result-game .daily-route small{font-size:9px}}#app[data-screen=race] .race-tools button{border:1px solid #b9a36d;border-radius:9px;background:#214838;color:#f6e7bd;min-height:40px}#app[data-screen=race] .energy-panel{border-color:#b9a36d;background:#12382be8;border-radius:14px}#app[data-screen=race] .live-plan{background:#12382be8;border-color:#b9a36d;border-radius:14px}#app[data-screen=result] .result-game .result-analysis[open]{position:static!important;inset:auto!important;transform:none!important;max-height:none!important;max-width:none!important;width:100%!important;height:auto!important;overflow:visible!important;background:transparent!important;color:#f4e5bd!important;box-shadow:none!important;border:0!important;padding:0!important}#app .result-game .race-insights,#app .result-game .race-insights :is(h2,p,small,strong,.eyebrow){color:#f4e5bd!important}#app .result-game .split-card{background:#234b3b;border:1px solid #a59362;border-radius:8px;color:#f4e5bd}#app .result-game .daily-route>summary{cursor:default}@media(max-width:600px)and (orientation:portrait){#app .result-game .split-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#app .result-game .split-card{padding:5px;font-size:10px}#app .result-game .race-insights h2{font-size:20px}}#app .result-game .result-analysis[open]{z-index:auto!important;grid-area:auto!important}#app .result-game .race-insights{max-width:none;box-sizing:border-box}.result-splits{width:100%;max-width:900px;align-self:center}.result-splits h2{font:24px Georgia,serif}.result-splits .hint{font-size:12px;color:#eadbb7}#app .result-game .split-grid{margin:8px 0}#app .result-game .split-card strong{margin:5px 0}#app .result-game .split-card>small{margin-top:3px;color:#e7d9b9}#app .result-game .split-card>span{color:#c9c6a1}@media(max-width:600px){.result-game-tabs button{font-size:10px;padding:4px}.result-splits h2{font-size:20px}}@media(orientation:landscape)and (max-height:600px){.result-splits h2{font-size:18px;margin:4px 0}.result-splits .hint{font-size:10px;margin:4px 0}#app .result-game .race-insights .eyebrow{font-size:9px}#app .result-game .race-insights .section-heading{display:flex}}@media(orientation:landscape)and (max-height:600px){.result-game-page{justify-content:flex-start;overflow-y:auto;-webkit-overflow-scrolling:touch}#app .result-game .result-hero{justify-content:flex-start;max-height:none;flex:none}#app .guest-result-save{margin-top:6px;padding:8px 12px;grid-template-columns:1fr auto;align-items:center;max-width:620px}#app .guest-result-save p{font-size:12px}#app .guest-result-save .primary{min-height:38px;padding:4px 14px}}#app:has(.quest-screen)>header{display:none!important}#app:has(.quest-screen)>footer{display:none!important}#app[data-screen=room] main>.care-route-actions~.quest-screen{position:fixed!important;inset:76px 20px 16px!important;display:flex!important;flex-direction:column;gap:16px;padding:22px;min-height:0;overflow:visible!important;box-sizing:border-box;border:1px solid #bea76d;border-radius:20px;background:radial-gradient(ellipse at top,#4e694345,transparent 70%),#13362b}#app .quest-screen [hidden]{display:none!important}#app .quest-screen>header{position:static!important;display:flex;background:none;margin:0;padding:0;flex:none}#app .quest-screen>header>button{display:none}#app .quest-screen>header h1{font:30px Georgia,serif;margin:0}#app .quest-screen>header p{font-size:13px;margin:4px 0}.quest-game-groups{display:flex;gap:8px;justify-content:center;flex:none}.quest-game-groups button{flex:1;max-width:240px;min-height:48px;border-radius:10px;border:1px solid #ad9864;color:#f5e4bb;background:#234c3b}.quest-game-groups [aria-pressed=true]{background:#e5cb8e;color:#17362a}#app .quest-screen .quest-groups{display:grid!important;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr);flex:1;min-height:0;place-items:center;overflow:visible!important}#app .quest-screen .quest-group{width:min(100%,720px);height:100%;max-height:420px;min-height:0!important;box-sizing:border-box;padding:24px;display:flex;flex-direction:column;justify-content:center;gap:12px;background:#204534;border:1px solid #ae985f;border-radius:16px;overflow:visible!important;text-align:left;color:#f8e8bf}#app .quest-screen .collection-group{position:relative;isolation:isolate;overflow:hidden!important}#app .quest-screen .collection-group img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.42;z-index:-1}#app .quest-screen .quest-group h2{font:32px Georgia,serif;margin:0}#app .quest-screen .quest-group p{font-size:16px;margin:0}#app .quest-screen .quest-group small{font-size:12px}#app .quest-book .quest-route-heading{display:flex;justify-content:space-between;align-items:center;flex:none}#app .quest-book .quest-route-heading h2{font:24px Georgia,serif;margin:0}#app .quest-book .quest-route-heading button{min-height:44px;padding:8px 14px}#app .quest-book .quest-route-controls{display:flex;align-items:center;gap:8px;flex:none;margin:0}#app .quest-book .quest-page-count{margin:0 auto 0 0;color:#e7cf91;font-size:16px}#app .quest-book .quest-route-controls button{min-height:44px;width:48px}#app .quest-book .quest-timeline{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(0,1fr);place-items:center;flex:1;min-height:0;overflow:visible!important;margin:0;padding:0;width:100%;list-style:none;scroll-snap-type:none}#app .quest-book .quest-timeline>li{width:min(100%,760px)!important;min-width:0!important;max-width:none!important;height:100%;max-height:400px;box-sizing:border-box;padding:20px 28px!important;display:flex;flex-direction:column;justify-content:center;gap:12px;background:#234b38;border:1px solid #a6905c;border-radius:16px;position:relative;transform:none!important}#app .quest-book .quest-timeline>li:before,#app .quest-book .quest-timeline>li:after{display:none!important}#app .quest-book .quest-node{position:static!important;flex:none;width:42px;height:42px;font-size:20px;margin:0}#app .quest-book .quest-timeline h3{font:28px Georgia,serif;margin:0 0 12px}#app .quest-book .quest-timeline p{font-size:16px;line-height:1.4;margin:0 0 12px}#app .quest-book .quest-timeline small{font-size:13px;color:#e8cd91;line-height:1.4}#app .quest-book .quest-timeline button{min-height:44px;max-width:320px;padding:10px 20px;align-self:flex-start}@media(max-width:600px)and (orientation:portrait){#app[data-screen=room] main>.care-route-actions~.quest-screen{inset:72px 8px 8px!important;padding:14px;gap:10px}#app .quest-screen>header h1{font-size:26px}.quest-game-groups{gap:4px}.quest-game-groups button{font-size:12px;padding:6px}#app .quest-screen .quest-group{padding:18px;max-height:none}#app .quest-screen .quest-group h2{font-size:27px}#app .quest-screen .quest-group p{font-size:14px}#app .quest-book .quest-route-heading h2{font-size:18px}#app .quest-book .quest-route-heading button{font-size:12px;padding:6px 8px}#app .quest-book .quest-timeline>li{padding:18px!important;max-height:none}#app .quest-book .quest-timeline h3{font-size:25px}#app .quest-book .quest-timeline p{font-size:14px}#app .quest-book .quest-timeline small{font-size:12px}}@media(orientation:landscape)and (max-height:600px){#app[data-screen=room] main>.care-route-actions~.quest-screen{inset:64px 10px 6px!important;padding:10px;gap:5px}#app .quest-screen>header p{display:none}#app .quest-screen>header h1{font-size:20px}.quest-game-groups{position:absolute;left:170px;right:10px;top:7px}.quest-game-groups button{min-height:34px;font-size:11px;padding:4px}#app .quest-screen .quest-group{padding:12px;gap:5px;max-height:none}#app .quest-screen .quest-group h2{font-size:24px}#app .quest-screen .quest-group p{font-size:12px}#app .quest-book>header{display:none}#app .quest-book .quest-route-heading h2{font-size:20px}#app .quest-book .quest-route-heading button{min-height:32px;padding:4px 8px;font-size:11px}#app .quest-book .quest-route-controls{position:absolute;right:14px;top:47px;z-index:2}#app .quest-book .quest-route-controls button{min-height:32px;width:34px}#app .quest-book .quest-timeline>li{padding:12px!important;gap:5px;max-height:none}#app .quest-book .quest-timeline h3{font-size:21px;margin:0 0 5px}#app .quest-book .quest-timeline p{font-size:12px;margin:0 0 5px}#app .quest-book .quest-timeline small{font-size:10px}#app .quest-book .quest-node{width:30px;height:30px;font-size:16px}#app .quest-book .quest-timeline button{min-height:34px;padding:5px 12px}}#app:has(.quest-screen) .rotate-hint,#app:has(.quest-screen) main>.care-route-actions .horse-race-entry small{display:none!important}@media(orientation:landscape)and (max-height:600px){#app .quest-book>header{display:none!important}#app .quest-book .quest-route-controls{top:10px!important;right:14px}#app .quest-book .quest-route-heading{padding-right:140px}#app .quest-book .quest-route-heading h2{font-size:16px}}
