@charset "UTF-8";
:root{--paper:#f7f4ec;--ink:#243b30;--green:#245b47;--muted:#657568;--line:#dde2d5;--gold:#d9ab50;--cream:#f2e7c9;--white:#fffefa;--radius:24px;font-family:"Yu Gothic UI","Yu Gothic",Meiryo,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default;opacity:.48}button,input,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a77935}button{border:0;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(24px,4.8vw,34px);line-height:1.45;letter-spacing:-.04em}h2{font-size:21px;letter-spacing:-.025em}h3{font-size:17px}p{line-height:1.8}a{color:var(--green)}img{display:block;max-width:100%}svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.8}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:700;color:var(--muted);margin-bottom:10px}.num{font-variant-numeric:tabular-nums}.coin-dot{display:inline-flex;align-items:center;justify-content:center;border:1.5px solid #9d782f;border-radius:50%;width:19px;height:19px;font:700 11px Georgia;color:#98712c;flex:none}.chip{display:inline-flex;align-items:center;gap:6px;background:#eef0e4;border-radius:99px;padding:6px 11px;font-size:11px;white-space:nowrap}.chip.gold{background:#f1e3be;color:#7a5b20}.row{display:flex;align-items:center;gap:12px}.between{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:20px}.card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:24px}.section-title{margin-bottom:16px}.btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:50px;padding:13px 22px;border-radius:16px;font-weight:700;font-size:14px;background:var(--green);color:white;transition:transform .15s,background .15s}.btn:hover:not(:disabled){background:#174a38;transform:translateY(-1px)}.btn.secondary{background:#eaf0e2;color:var(--green)}.btn.light{background:#f5edda;color:var(--green)}.btn.outline{background:transparent;color:var(--green);border:1px solid var(--line)}.btn.full{width:100%}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:transparent;border-radius:14px;flex:none}.icon-btn:hover{background:#e8eddf}.text-btn{background:transparent;min-height:44px;color:var(--green);font-size:12px;font-weight:700;padding:8px}.divider{border:0;border-top:1px solid var(--line);margin:20px 0}.skip{position:fixed;top:-80px;left:20px;padding:12px;background:#fff;z-index:200}.skip:focus{top:10px}.loading{padding:100px 20px;text-align:center;color:var(--muted)}
.topbar{max-width:1120px;margin:auto;height:94px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:11px;font-size:22px;font-weight:850;letter-spacing:-.05em;background:none;padding:0;text-align:left}.brand-mark{display:grid;place-items:center;background:var(--green);color:#f5e9c7;width:39px;height:42px;border-radius:13px 13px 18px 18px;transform:rotate(-4deg)}.brand small{display:block;font-size:8px;letter-spacing:.21em;margin-top:2px;color:#627561}.header-right{display:flex;align-items:center;gap:16px}.wallet{display:flex;gap:8px;align-items:center;background:#f1e3b9;min-width:97px;justify-content:center;border-radius:100px;padding:9px 15px;font-size:17px;font-weight:800}.owner{font-size:12px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.desktop-label{font-size:10px;border:1px solid #ccd5c6;padding:3px 7px;border-radius:5px;letter-spacing:.08em}.nav{display:flex;justify-content:center;gap:5px;max-width:510px;margin:0 auto 25px;padding:6px;background:#eaece1;border-radius:18px}.nav button{flex:1;background:none;border-radius:13px;display:flex;justify-content:center;align-items:center;gap:8px;min-height:43px;padding:8px 14px;font-size:13px;color:var(--muted);font-weight:600}.nav button.active{color:var(--green);background:var(--white);box-shadow:0 2px 7px #3048320c}.nav .icon{width:18px;height:18px}.page{max-width:1052px;margin:0 auto;padding:8px 24px 40px;animation:page-in .25s ease}.page-head{margin:0 0 26px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.page-head>.btn{flex-shrink:0;white-space:nowrap}.page-head p{margin-top:9px;font-size:13px;color:var(--muted)}.layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:26px;align-items:start}.foot{padding:25px 0 0;font-size:10px;display:flex;justify-content:space-between;color:#71806f;gap:12px}.foot button{font-size:10px;background:transparent;padding:0;min-height:36px;text-decoration:underline}.label{display:block;font-size:13px;font-weight:700;margin:16px 0 7px}.input{width:100%;min-height:51px;padding:12px 14px;border:1px solid #cfd8c9;background:#fffefa;border-radius:13px;color:var(--ink)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.error-note{font-size:13px;color:#a44637;background:#fff1eb;border:1px solid #e5c5b8;padding:12px;border-radius:12px;line-height:1.6;margin:12px 0}.error-note:empty{display:none}.empty-state{text-align:center;padding:24px 10px}.empty-state p{font-size:13px;color:var(--muted);margin:10px 0 18px}.empty-state .icon{width:34px;height:34px;margin:0 auto 15px;color:#7e9576}
.horse-card{overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}.pasture{width:100%;position:relative;background:#dce8d5;aspect-ratio:350/248;overflow:hidden;isolation:isolate}.pasture>.sky{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.pasture>.sun{position:absolute;width:12.6%;right:11%;top:8.5%}.pasture>.hill-far{position:absolute;width:100%;height:58.5%;bottom:0}.pasture>.hill-near{position:absolute;width:100%;height:39%;bottom:0}.pasture>.fence{position:absolute;width:91%;left:3.3%;bottom:24.8%;height:25%}.pasture>.horse-img{position:absolute;width:45%;left:28%;bottom:7%;animation:breathe 3.4s ease-in-out infinite;transform-origin:bottom center}.horse-img.coat-dark{filter:brightness(.63) saturate(.6)}.horse-img.coat-black{filter:brightness(.44) saturate(.3)}.horse-img.coat-gray{filter:saturate(.1) brightness(1.45)}.horse-img.coat-bay{filter:hue-rotate(-10deg) saturate(.85) brightness(.87)}.weather{position:absolute;top:16px;left:17px;display:flex;align-items:center;gap:6px;border-radius:30px;font-size:10px;background:#fffef8df;padding:7px 11px}.weather .icon{width:14px;height:14px}.pasture-caption{position:absolute;bottom:12px;right:15px;color:#294b31b3;letter-spacing:.15em;font-size:8px}.horse-info{padding:22px}.horse-name{display:flex;gap:10px;align-items:center;min-width:0}.horse-name h2{font-size:26px;overflow-wrap:anywhere}.horse-meta{font-size:12px;color:var(--muted);margin:6px 0 22px}.rarity{font-size:10px;letter-spacing:.05em;font-weight:800;background:#e9eddf;color:#62724e;padding:4px 7px;border-radius:6px}.rarity.r{background:#e0e9e6;color:#406c60}.rarity.sr{background:#f2e2b5;color:#936e25}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.stat-top{display:flex;justify-content:space-between;font-size:11px;gap:4px}.stat-top b{font-size:14px}.meter{height:5px;background:#e5eadf;border-radius:4px;overflow:hidden;margin-top:9px}.meter>span{height:100%;display:block;border-radius:4px;background:var(--green)}.stats>div:last-child .meter>span{background:#b89a56}.care-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.care-btn{background:var(--white);border:1px solid var(--line);border-radius:18px;padding:16px 4px;min-height:123px;display:flex;flex-direction:column;align-items:center;gap:7px;transition:transform .2s,box-shadow .2s}.care-btn:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 5px 14px #49673811}.care-btn .care-ico{width:32px;height:32px;border-radius:12px;display:grid;place-items:center;background:#f2e9da;color:#b7754a}.care-btn:nth-child(2) .care-ico{background:#e9eee0;color:#6b8953}.care-btn:nth-child(3) .care-ico{background:#e9e9df;color:#8c8d69}.care-btn strong{font-size:12px}.care-btn small{font-size:10px;color:var(--muted)}.care-btn .reward{font-size:11px;font-weight:700;color:#86702f}.care-note{text-align:center;margin-top:9px;font-size:10px;color:var(--muted)}.mission{background:#eee8d9;border:0}.mission-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.mission-icon{width:35px;height:35px;border-radius:12px;display:grid;place-items:center;background:#e1d4b4;color:#8b713a}.checks{display:flex;gap:7px;margin-top:15px}.check{flex:1;border-radius:9px;padding:8px 3px;font-size:10px;text-align:center;border:1px solid #d9d4c3;color:#75806c}.check.done{background:#d7e0ca;border-color:#b7c6a7;color:#31583a}.mission p{font-size:12px;color:#69715e}.mini-race{background:#245b47;color:#f5edda;border:0;position:relative;overflow:hidden}.mini-race .eyebrow,.mini-race .small{color:#d5dfbf}.mini-race h3{font-size:22px;margin-bottom:12px}.mini-race .btn{margin-top:18px}.mini-race>.decor{position:absolute;right:-20px;top:20px;width:100px;height:100px;border:1px solid #ffffff14;border-radius:50%;box-shadow:0 0 0 25px #ffffff08}.stable{margin-top:26px}.horse-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.horse-tile{text-align:left;display:flex;align-items:center;gap:11px;background:var(--white);padding:12px;border:1px solid var(--line);border-radius:16px;min-height:88px}.horse-tile.selected{border:2px solid #3f7155;background:#eff3e8;padding:11px}.horse-tile .horse-img{width:54px;flex:none}.horse-tile strong{font-size:13px;display:block;overflow-wrap:anywhere}.horse-tile small{font-size:10px;color:var(--muted)}.horse-tile .rarity{font-size:8px;margin-left:4px}.first-pony{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:20px;text-align:center;background:linear-gradient(transparent,#dce8d5b5)}.first-pony p{font-size:12px;margin:0 0 12px}.pasture.unclaimed .horse-img{opacity:.38}
.gacha-scene{background:#e9dfc2;aspect-ratio:350/312;border-radius:24px;position:relative;overflow:hidden}.gacha-scene::before{content:"";position:absolute;width:64%;aspect-ratio:1;background:#f7edcc;border-radius:50%;left:18%;top:12%}.barn{position:absolute;left:19.7%;top:18%;width:60.6%;height:63%}.barn img{position:absolute}.barn-roof{width:100%;top:0;left:0;height:36.2%}.barn-wall{width:85%;left:7.5%;height:63.8%;bottom:0}.barn-door{width:52%;left:24%;height:53%;bottom:0}.barn-cross{width:52%;left:24%;height:53%;bottom:0}.gacha-scene p{position:absolute;bottom:20px;text-align:center;width:100%;font-size:12px}.gacha-box .btn.full{margin-top:20px;font-size:17px;min-height:60px}.gacha-box>.small{text-align:center;margin-top:13px}.odds{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.odds>div{padding:15px 5px;text-align:center;background:#f5f5ed;border-radius:12px}.odds strong{font-size:21px;display:block;margin-top:7px}.tip-list{list-style:none;padding:0;margin:0;display:grid;gap:17px;font-size:12px;line-height:1.8}.tip-list li{display:flex;align-items:flex-start;gap:12px}.tip-list .icon{color:#8b956d;margin-top:3px}.gacha-reveal{text-align:center}.gacha-reveal .horse-img{width:155px;margin:18px auto;animation:reveal .6s ease-out}.gacha-reveal h2{font-size:27px;margin:9px 0}.gacha-reveal .small{margin-bottom:22px}.reveal-circle{border-radius:50%;background:#edf0df;aspect-ratio:1;width:220px;display:grid;place-items:center;margin:18px auto}
.race-card{background:var(--green);color:#f4edd6;border-radius:24px;padding:25px;position:relative;overflow:hidden}.race-card h2{font-size:23px;margin:15px 0;overflow-wrap:anywhere}.race-card .eyebrow{color:#d7e3c7;margin:0}.race-card .chip{background:#ffffff14;color:#e3edcf}.race-detail{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;margin-bottom:18px;color:#d9e5ce}.race-card .btn{margin-top:10px}.race-card .small{color:#dce6d1}.race-card.finished{background:#fdfcf8;color:var(--ink);border:1px solid var(--line)}.race-card.finished .eyebrow,.race-card.finished .small,.race-card.finished .race-detail{color:var(--muted)}.race-card.finished .chip{background:#eef1e6;color:var(--green)}.entry-picker{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fdfcf8;margin-bottom:20px}.entry-picker .horse-img{width:45px}.entry-picker strong{font-size:13px}.entry-picker .text-btn{margin-left:auto}.practice{background:#eee8da;border-color:transparent}.practice p{font-size:12px;margin:12px 0 20px;color:#63705c}.practice .icon{color:#97743f}.history-item{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 0;border-bottom:1px solid var(--line)}.history-item:last-child{border-bottom:0}.history-item strong{font-size:13px;display:block}.history-item small{font-size:10px;color:var(--muted)}.history-item .amount{font-size:14px;white-space:nowrap;font-weight:700;color:#50794b}.history-item .amount.negative{color:#a46e4a}.race-log{padding:18px;background:#fffefa;border:1px solid var(--line);border-radius:18px}.race-log h3{margin-bottom:8px}.host-note{background:#edeedb;border-radius:12px;padding:12px;font-size:11px;line-height:1.8}.admin-row{padding:15px 0;border-top:1px solid var(--line)}.admin-row h3{font-size:14px;margin-bottom:6px}.admin-row .btn{min-height:44px;padding:10px 14px;font-size:12px}.player-result{background:#edf2e4!important;border:1px solid #b8cbaa!important}
dialog{border:1px solid var(--line);border-radius:26px;background:var(--paper);color:var(--ink);padding:26px;width:calc(100% - 32px);max-width:460px;max-height:90dvh;overflow:auto;box-shadow:0 25px 90px #1b30242b}dialog::backdrop{background:#16332470;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:16px}.modal-head h2{font-size:20px}.modal-head .icon-btn{margin:-8px -8px -8px 0}.welcome-icon{width:92px;margin:5px auto 16px}.welcome{text-align:center}.welcome h2{font-size:26px;margin-bottom:14px}.welcome p{font-size:13px;color:var(--muted)}.welcome-form{text-align:left}.welcome-form .btn{margin-top:20px}.welcome-form .small{text-align:center;margin-top:14px}.form-error{color:#a44637;font-size:12px;line-height:1.7;margin-top:12px}.form-error:empty{display:none}#toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;border-radius:16px;background:#173d2f;color:#f7f4e8;padding:13px 22px;font-size:13px;max-width:calc(100% - 32px);width:max-content;z-index:100;transition:opacity .2s,transform .2s;box-shadow:0 7px 25px #18342122}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#914a3d}dialog.race-modal{max-width:690px}.race-summary{text-align:center;margin:5px 0 18px}.race-summary .eyebrow{margin:5px 0}.race-summary h2{font-size:22px}.race-summary p{font-size:11px;color:var(--muted)}.track{background:#89a96e;padding:7px 14px 7px 25px;border-radius:17px;position:relative;overflow:hidden;margin:15px 0}.track::after{content:"";position:absolute;right:29px;top:0;bottom:0;width:5px;background:repeating-linear-gradient(#fff 0 8px,#486641 8px 16px);opacity:.8}.lane{height:54px;position:relative;border-bottom:1px dashed #f0f5d34f}.lane:last-child{border:0}.lane-number{position:absolute;left:-17px;top:20px;font-size:9px;color:#fff}.runner-space{position:absolute;left:0;right:47px;top:0;bottom:0}.runner{position:absolute;width:42px;left:0;bottom:4px;z-index:1}.runner .horse-img{width:42px;transform-origin:bottom}.track.running .runner .horse-img{animation:gallop .23s ease-in-out infinite alternate}.runner-label{position:absolute;top:-10px;left:-8px;font-size:8px;white-space:nowrap;background:#fff9;padding:1px 4px;border-radius:4px}.race-status{text-align:center;font-size:13px;font-weight:700;min-height:24px;margin:10px 0}.results-list{display:grid;gap:8px}.result-row{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fffefa;border:1px solid var(--line);border-radius:13px}.result-row .rank{font-size:20px;font-weight:800;width:23px;text-align:center;color:#8e835c}.result-row .rank.first{color:#b58d38}.result-row .horse-img{width:35px}.result-row .result-name{flex:1;min-width:0}.result-row strong{font-size:13px;display:block;overflow-wrap:anywhere}.result-row small{font-size:10px;color:var(--muted)}.result-row .result-reward{font-size:12px;font-weight:700;color:#5e7e49;white-space:nowrap}.race-actions{display:flex;gap:10px;margin-top:18px}.race-actions .btn{flex:1}.results-list[hidden]{display:none}.host-panel{margin-top:25px}
@keyframes breathe{50%{transform:translateY(-3px) rotate(.7deg)}}@keyframes reveal{0%{opacity:0;transform:translateY(12px) scale(.7)}70%{transform:scale(1.05)}100%{opacity:1;transform:scale(1)}}@keyframes gallop{to{transform:rotate(-8deg) translateY(-4px)}}@keyframes page-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:750px){.topbar{height:78px;padding:0 21px;gap:8px}.brand{font-size:20px;gap:8px}.brand-mark{width:33px;height:36px}.brand small{font-size:7px}.desktop-label,.owner{display:none}.header-right{gap:5px}.wallet{min-width:88px;font-size:16px;padding:8px 12px}.header-right>.icon-btn{width:34px}.nav{position:fixed;bottom:0;left:0;right:0;width:100%;max-width:none;margin:0;border-radius:22px 22px 0 0;background:#fffefaf5;backdrop-filter:blur(15px);border-top:1px solid #e2e6da;padding:6px 14px max(10px,env(safe-area-inset-bottom));gap:4px;z-index:20}.nav button{flex-direction:column;gap:4px;min-height:54px;font-size:10px;padding:6px 5px;position:relative}.nav button.active{background:#edf2e6;box-shadow:none}.nav .icon{width:21px;height:21px}.page{padding:10px 20px 105px}.page-head{margin-bottom:20px}.page-head>.btn{flex-shrink:0;white-space:nowrap}.page-head p{font-size:11px;margin-top:7px}.page-head .eyebrow{font-size:9px;margin-bottom:8px}.page-head h1{font-size:25px}.page-head>.chip{display:none}.layout{grid-template-columns:1fr;gap:20px}.layout>.side{display:grid;gap:18px;grid-template-columns:1fr}.card{padding:20px}.horse-info{padding:19px}.horse-name h2{font-size:24px}.horse-meta{margin-bottom:19px}.care-grid{gap:8px;margin-top:13px}.care-btn{min-height:118px;padding:12px 3px;gap:6px}.care-btn strong{font-size:11px}.care-btn .care-ico{width:29px;height:29px}.care-btn .icon{width:19px;height:19px}.care-btn small{font-size:9px}.care-note{font-size:9px}.stable{margin-top:22px}.horse-list{gap:8px}.horse-tile{gap:7px;padding:9px;min-height:83px}.horse-tile.selected{padding:8px}.horse-tile .horse-img{width:42px}.horse-tile strong{font-size:11px}.horse-tile small{font-size:9px}.horse-tile .rarity{margin-left:2px;padding:2px 4px}.foot{font-size:9px;line-height:1.7;align-items:center}.foot>span{max-width:200px}.gacha-box .btn.full{font-size:15px}.gacha-box>.small{font-size:11px}.gacha-scene p{font-size:11px}.race-card{padding:22px}.race-card h2{font-size:22px}.race-detail{font-size:11px}.race-card .small{font-size:10px}.entry-picker{padding:11px 13px}.entry-picker .horse-img{width:38px}.entry-picker .text-btn{font-size:10px}.entry-picker strong{font-size:12px}#toast{bottom:92px;font-size:12px;padding:13px 17px}dialog{padding:22px;border-radius:24px;max-height:87dvh}.race-modal{padding:18px}.race-summary h2{font-size:19px}.lane{height:49px}.runner{width:36px}.runner .horse-img{width:36px}.result-row{gap:8px;padding:10px}.result-row .horse-img{width:28px}.result-row strong{font-size:11px}.result-row small{font-size:9px}.result-row .result-reward{font-size:10px}.stats{gap:12px}.stat-top{font-size:10px}.stat-top b{font-size:13px}}
@media(min-width:751px){.gacha-layout{grid-template-columns:1.2fr 1fr}.race-layout{grid-template-columns:1.4fr 1fr}.horse-card .pasture{max-height:365px}.mission{margin-top:0}.mobile-only{display:none}.welcome-icon{width:110px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
