@font-face{font-family:HorseSystem;src:local('Microsoft YaHei')}*{box-sizing:border-box} :root{--ink:#453c30;--muted:#797c66;--paper:#f7f4e7;--green:#466448;--grass:#a4bc79;--orange:#ec9c62;--line:#dedcc9;--font:HorseSystem,'PingFang SC','Microsoft YaHei',system-ui,sans-serif}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.6}button,input{font:inherit}button{color:inherit;cursor:pointer;border:0}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #dc7b45;outline-offset:4px}button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:not(:disabled){transition:transform .16s ease,background .16s ease,box-shadow .16s ease}button:not(:disabled):active{transform:translateY(2px)}svg{display:block}.icon{width:24px;height:24px;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:48px;line-height:1.24;letter-spacing:-1.8px;font-weight:900}h2{font-size:24px;letter-spacing:-.6px}.topbar{max-width:1140px;margin:0 auto;padding:24px 28px 20px;display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;background:none;text-align:left;padding:0;flex-shrink:0}.brand span{font-size:23px;font-weight:900;line-height:1.2;letter-spacing:-.6px}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:1px;font-weight:500;margin-top:5px}.topbar nav{display:flex;gap:7px;margin-left:auto}.topbar nav button{background:none;min-height:44px;padding:8px 15px;font-size:13px;color:#727761;font-weight:600;border-radius:22px}.topbar nav button.active{color:var(--green);background:#e5e9d4}.header-tools{display:flex;align-items:center;gap:14px}.wallet{display:flex;align-items:center;gap:7px;font-size:19px}.wallet svg{width:29px;height:29px}.icon-button{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dddec9;background:#fdfbed;border-radius:50%}.icon-button:hover{background:#e5e9d4}main{max-width:1140px;margin:auto;padding:32px 28px}.intro{display:flex;justify-content:space-between;align-items:center;margin:0 0 29px;gap:25px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--muted);display:inline-flex;align-items:center;gap:8px}.eyebrow i{width:7px;height:7px;background:#7c985e;border-radius:50%}.intro h1{margin:13px 0 13px}.intro h1 br{display:none}.intro h1 span{color:var(--green)}.intro p,.page-heading p{color:var(--muted);font-size:13px;margin-top:12px}.daily-stamp{width:128px;flex-shrink:0;text-align:center;border:1px dashed #b9bd9e;border-radius:50% 50% 15px 15px;padding:13px 10px 11px;transform:rotate(6deg);display:grid;justify-items:center;line-height:1.4}.daily-stamp svg{width:27px;height:27px;margin-bottom:4px}.daily-stamp span{font-size:10px;letter-spacing:3px}.daily-stamp strong{font-size:18px;letter-spacing:2px;margin:3px 0}.daily-stamp small{font-size:8px;color:var(--muted);letter-spacing:.5px}.ranch{height:340px;border:2px solid var(--ink);border-radius:25px;position:relative;overflow:hidden;box-shadow:0 5px 0 #ddd9bb}.landscape{position:absolute;width:100%;height:100%;inset:0;pointer-events:none}.ranch-top{position:relative;z-index:1;display:flex;justify-content:space-between;padding:19px 22px;align-items:center}.ranch-sign{padding:7px 16px;background:#fff5d9;border:2px solid var(--ink);border-radius:5px;transform:rotate(-3deg);font-weight:800;font-size:13px;box-shadow:0 3px 0 #453c3020}.build-progress{font-size:11px;color:#3b5333;background:#f6f6dfcf;padding:5px 12px;border-radius:20px}.plots{position:absolute;left:28%;right:5%;bottom:51px;display:flex;justify-content:space-between;align-items:flex-end;z-index:2}.plot{width:29%;padding:0;background:none;display:grid;justify-items:center}.building-art{width:160px;max-width:100%;height:auto}.plot:hover .building-art{transform:translateY(-4px)}.plot-label{border:1.5px solid var(--ink);background:#fff8de;border-radius:9px;min-width:110px;padding:6px 10px;box-shadow:0 3px 0 #453c3020;display:grid;line-height:1.6}.plot-label strong{font-size:13px}.plot-label small{font-size:9px;white-space:nowrap;color:#7b7055}.ranch-horse{position:absolute;width:180px;left:6%;bottom:39px;z-index:2}.horse{width:100%;height:auto}.ranch-horse>span{position:absolute;background:#fff8df;border:1.5px solid var(--ink);border-radius:12px 12px 12px 0;top:-5px;left:51px;white-space:nowrap;padding:6px 10px;font-size:10px;transform:rotate(-5deg)}.ranch-caption{position:absolute;bottom:13px;right:24px;color:#465c36;font-size:10px;letter-spacing:.8px}.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px;margin-top:28px}.mode-card{position:relative;text-align:left;padding:24px 23px;display:flex;align-items:center;gap:17px;border:2px solid var(--ink);border-radius:18px;box-shadow:0 4px 0 #dedbc6;min-height:141px}.mode-card:hover{transform:translateY(-3px);box-shadow:0 7px 0 #dedbc6}.casual{background:#fcf9ec}.daily{background:var(--green);color:#fff9e4}.mode-number{font-size:48px;font-weight:900;color:#c5ccb3;letter-spacing:-4px;line-height:1}.daily .mode-number{color:#738a68}.mode-card .eyebrow{font-size:9px;letter-spacing:1.5px}.daily .eyebrow{color:#d1ddbb}.mode-card h2{margin-top:6px;font-size:24px;display:flex;gap:8px;align-items:center}.daily h2 svg{stroke:#edc875;width:22px}.mode-card p{font-size:10px;color:#7b8069;margin-top:6px}.daily p{color:#d1ddbb}.round-arrow{margin-left:auto;width:39px;height:39px;border:1.5px solid currentColor;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.round-arrow .icon{width:24px}.daily .round-arrow{background:#f5cf82;color:var(--ink);border-color:var(--ink)}.home-bottom{display:flex;justify-content:space-between;align-items:center;margin:20px 1px 0;color:var(--muted);font-size:10px}.home-bottom>span{display:flex;align-items:center;gap:9px}.home-bottom svg{width:19px;height:19px}.text-button{background:none;display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:6px;color:var(--green);font-size:12px;text-decoration:underline;text-decoration-color:#aab494;text-underline-offset:5px}.text-button svg{width:19px;height:19px}.footer{max-width:1084px;margin:0 auto;padding:15px 0 25px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:9px;letter-spacing:1px;color:#858872}.mobile-nav{display:none}.page-heading{padding:14px 0 26px}.page-heading h1{font-size:35px;margin-top:12px}.heading-dot{color:#df945c}.journey-strip{display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--line);padding-bottom:23px;margin-bottom:25px}.journey-strip>.horse{width:110px}.journey-strip>div{flex:1}.journey-strip strong{font-size:30px}.journey-strip small{font-size:12px;color:var(--muted);font-weight:500}.journey-strip>.icon{width:45px;height:45px}.progress{height:7px;background:#e4e6d3;border-radius:10px;overflow:hidden}.progress i{height:100%;display:block;background:#7b985f;transition:width .2s}.journey-strip .progress{margin-top:8px}.level-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:15px}.level{background:#fffaf0;border:1.5px solid var(--line);border-radius:14px;padding:16px 8px;display:grid;place-items:center;gap:8px}.level>span{font-size:29px;font-weight:800;letter-spacing:-1px}.level small{font-size:10px;display:flex;gap:4px;align-items:center;min-height:20px}.level small svg{width:17px;height:17px}.level.current{background:#e6eccf;border:2px solid var(--green);box-shadow:0 3px 0 var(--green)}.level.completed{border-color:#abb88e;color:#526c42}.level:disabled{color:#929581;background:#ececde}.level:not(:disabled):hover{background:#e8ecd5;transform:translateY(-2px)}.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.horse-card{border:1.5px solid var(--line);border-radius:20px;background:#fcf9ed;padding:20px 15px;text-align:center;overflow:hidden}.collection-no{font-size:10px;color:#8a8c77;display:block;text-align:left;letter-spacing:2px}.horse-card .horse{max-width:205px;margin:10px auto 0}.horse-card h2{font-size:18px;margin:8px 0}.horse-card p{font-size:10px;color:var(--muted);min-height:40px}.horse-card.locked .horse{filter:saturate(.3);opacity:.65}.pill{min-height:44px;border:1.5px solid #a9b58d;border-radius:25px;background:#e6ecd2;color:var(--green);font-size:12px;display:flex;justify-content:center;align-items:center;gap:7px;width:100%;margin-top:13px}.pill svg{width:19px;height:19px}.pill.selected{background:var(--green);color:#fff9e2}.pill.selected svg{stroke:#fff9e2}.pill:disabled:not(.selected){border-color:#d9dcc9;background:#eeefe1;color:#8d917d}.game-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.game-header>div{display:flex;gap:17px;align-items:center}.game-header h1{font-size:25px;letter-spacing:-.6px;margin-top:3px}.game-header h1 small{font-size:10px;font-weight:500;background:#e6e9d4;color:#68775c;padding:5px 9px;border-radius:20px;margin-left:13px;vertical-align:middle;letter-spacing:0}.game-header .eyebrow{font-size:9px}.game-layout{display:grid;grid-template-columns:1fr 440px;gap:90px;align-items:center;max-width:900px;margin:0 auto}.game-aside{padding:0 20px 40px 10px}.game-aside .horse{width:220px;margin:8px 0 12px}.game-aside h2{font-size:26px;line-height:1.5}.game-aside p{font-size:12px;color:var(--muted);margin-top:13px;line-height:1.9;max-width:270px}.mini-fact{border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;align-items:center;gap:15px;padding:16px 0;margin:23px 0 10px}.mini-fact strong{font-size:39px;line-height:1;color:var(--green)}.mini-fact span{font-size:10px;color:var(--muted)}.play-area{width:100%;min-width:0}.board-info{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding:0 3px}.board-info b{color:var(--green);font-size:12px}.board-info b span{font-weight:400;font-size:10px;color:var(--muted)}.board-progress{height:5px;margin:8px 0 18px}.board-wrap{position:relative;border:1.5px solid #d5dac1;border-radius:19px;background:#e9edda;padding:16px 11px;min-height:230px}.board{position:relative;width:100%;aspect-ratio:6.4/5.4;--unit:calc(100% / 6.4)}.tile{position:absolute;left:calc(var(--x)*100% / 6.4);top:calc(var(--y)*100% / 5.4);width:calc(100% / 6.4);aspect-ratio:1;background:#fff9e9;border:1.8px solid var(--ink);border-radius:9px;padding:4px;box-shadow:0 4px 0 #acae8d;display:grid;place-items:center;transition:filter .15s,transform .15s!important}.tile.covered{background:#c5ceb0;box-shadow:0 3px 0 #8d9c7b;border-color:#7e8c72;filter:brightness(.92)}.tile.covered svg{opacity:.38}.tile:not(:disabled):hover{transform:translateY(-3px);background:#fffefa}.tile-art{width:100%;height:100%;max-width:60px}.tray-heading{display:flex;justify-content:space-between;margin:17px 3px 6px;font-size:10px;color:#738061}.tray-heading b{font-weight:700}.danger{color:#b45d38}.tray{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;background:#d7dfbf;border:1.8px solid var(--ink);padding:8px;border-radius:13px;box-shadow:0 4px 0 #c0c7a5}.slot{aspect-ratio:1;background:#b9c79d;border-radius:7px;box-shadow:inset 0 2px 2px #82926733}.tray-tile{width:100%;height:100%;padding:3px;background:#fff9e9;border:1.5px solid var(--ink);border-radius:7px;box-shadow:0 2px 0 #7d8b66}.tray.warning{border-color:#b27349;background:#e5cda2}.reserve-row{display:flex;align-items:center;gap:13px;min-height:61px;margin:13px 0;color:#7c8069}.reserve-row>span{font-size:10px;line-height:1.6;flex-shrink:0}.reserve-row>span small{display:block;font-size:8px;color:#92967e}.reserve-cards{display:flex;gap:7px;align-items:center}.reserve-cards .tile{position:static;width:45px;height:45px}.reserve-empty{font-size:10px;color:#777e66}.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.tool{border:1.5px solid #aab48b;background:#f9f7e8;min-height:61px;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;box-shadow:0 3px 0 #dddcc2}.tool>svg{width:28px;height:28px}.tool span{font-size:12px;font-weight:700;text-align:left}.tool small{display:block;font-size:8px;font-weight:400;color:#7c8068;line-height:1.5}.tool:disabled{opacity:.48;box-shadow:none}.game-footnote{text-align:center;font-size:9px;color:#858972;margin-top:12px;letter-spacing:1px}.result-overlay{position:absolute;inset:0;background:#e9eddae8;z-index:30;border-radius:18px;display:grid;place-items:center;padding:13px;backdrop-filter:blur(3px)}.result-card{text-align:center;max-width:310px;width:100%}.result-symbol{display:grid;place-items:center;margin-bottom:8px}.result-symbol svg{width:35px;height:35px}.result-card .eyebrow{font-size:9px}.result-card h2{font-size:28px;margin:4px 0}.result-card p{font-size:11px;color:var(--muted);margin-bottom:13px}.primary,.secondary{min-height:46px;width:100%;display:flex;align-items:center;justify-content:center;gap:12px;border:1.5px solid var(--ink);border-radius:11px;padding:9px 15px;font-weight:700;font-size:13px}.primary{background:var(--green);color:#fff7dd;box-shadow:0 3px 0 #2c442e}.primary svg{stroke:#fff7dd}.primary:hover{background:#56734e}.primary:disabled{opacity:.55;box-shadow:none}.secondary{background:#fff8e8;margin-top:10px}.result-card .primary,.result-card .secondary{min-height:42px;font-size:12px}.result-card .text-button{font-size:10px;min-height:30px}dialog{border:2px solid var(--ink);border-radius:22px;background:#fffbed;color:var(--ink);padding:34px 28px 28px;width:min(440px,calc(100% - 30px));max-height:calc(100dvh - 30px);overflow:auto;box-shadow:0 8px 0 #302d2240}dialog::backdrop{background:#26302185;backdrop-filter:blur(4px)}dialog h2{font-size:24px;margin:10px 25px 15px 0;line-height:1.4}dialog p{font-size:12px;color:var(--muted);margin:10px 0 20px}dialog .dialog-close{position:absolute;right:12px;top:12px;width:36px;height:36px;min-width:44px;min-height:44px;border:none;background:none}dialog .dialog-close svg{width:22px;height:22px}.plot-dialog{text-align:center}.plot-dialog>.building-art{width:170px;margin:0 auto 15px}.plot-dialog h2{margin:8px 0}.plot-dialog .eyebrow{font-size:10px}.price-line{display:flex;align-items:center;justify-content:center;gap:7px;margin-bottom:20px}.price-line strong{font-size:27px}.price-line span{font-size:11px;color:var(--muted);margin-left:14px}.help-demo{display:flex;align-items:center;justify-content:center;gap:7px;padding:13px 0;background:#e8edda;border-radius:13px}.help-demo .tile-art{width:46px;height:46px}.help-demo>.icon{width:21px;height:21px}.instructions{padding-left:20px;color:#686e55;font-size:12px;line-height:1.9;margin:20px 0}.instructions li{padding-left:4px;margin:7px 0}.fine-print{font-size:10px!important;color:#7d806a!important;line-height:1.8}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.setting-row strong{font-size:13px}.setting-row p{font-size:10px;margin:4px 0 0}.switch{background:#e7ecd4;border:1.5px solid #a6b28a;border-radius:25px;min-height:44px;min-width:64px;font-size:12px}.switch[aria-pressed=true]{background:var(--green);color:#fff6de;border-color:var(--green)}.share-input{width:100%;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:12px;margin-bottom:20px;background:#fff}.flying-tile{position:fixed;z-index:1000;pointer-events:none;background:#fff8e6;border:2px solid var(--ink);border-radius:9px;padding:4px}.pop{animation:pop .3s}.upgraded .building-art{animation:pop .5s}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,14px);background:#394a32;color:#fff7df;padding:11px 21px;max-width:calc(100% - 24px);border-radius:30px;font-size:12px;z-index:1001;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center;box-shadow:0 3px 15px #28352125;white-space:nowrap}#toast.show{opacity:1;transform:translate(-50%,0)}#notices:empty{display:none}#notices{position:sticky;bottom:0;background:#fff0bb;border-top:1px solid #c2a65c;padding:10px 20px;color:#684c26;text-align:center;font-size:12px;z-index:80}@keyframes pop{50%{transform:scale(1.05)}}.reduced *, .reduced *::before,.reduced *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1400px){main{padding-top:40px}.ranch{height:370px}.intro{margin-bottom:33px}.mode-grid{margin-top:31px}}
@media(max-width:950px){.topbar{padding:19px 22px;gap:16px}.topbar nav{gap:0}.topbar nav button{padding:8px 10px}.header-tools{gap:8px}main{padding:28px 22px}.intro h1{font-size:38px}.intro h1 br{display:block}.ranch{height:310px}.ranch-horse{width:145px;left:2%}.plots{left:25%;right:4%}.plot-label{min-width:93px;padding:5px 7px}.mode-number{display:none}.mode-card{padding:20px 17px}.mode-card h2{font-size:22px}.footer{margin:0 22px}.game-layout{grid-template-columns:1fr 420px;gap:25px}.game-aside{padding-left:0}.game-aside .horse{width:170px}.game-aside h2{font-size:22px}.gallery-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){body{padding-bottom:72px}.topbar{padding:15px 18px 13px;gap:10px}.brand img{width:36px;height:36px}.brand span{font-size:21px}.brand small{font-size:8px;letter-spacing:.8px}.topbar nav{display:none}.header-tools{margin-left:auto;gap:12px}.wallet{font-size:17px}.wallet svg{width:26px;height:26px}.header-tools .icon-button{width:36px;height:44px;border:0;background:none}main{padding:25px 18px 17px}.intro{gap:10px;margin-bottom:22px}.intro h1{font-size:35px;line-height:1.3;letter-spacing:-1.4px;margin:10px 0}.intro h1 br{display:block}.intro p{font-size:10px;max-width:230px;line-height:1.8}.intro .eyebrow{font-size:8px;letter-spacing:1.2px}.daily-stamp{width:91px;padding:11px 5px;align-self:flex-start;margin-top:28px}.daily-stamp svg{width:23px;height:23px}.daily-stamp span{font-size:8px}.daily-stamp strong{font-size:14px}.daily-stamp small{font-size:6px}.ranch{height:300px;border-radius:19px;box-shadow:0 4px 0 #ddd9bb}.ranch-top{padding:13px 13px}.ranch-sign{font-size:10px;padding:5px 10px}.build-progress{font-size:8px;padding:5px 8px}.ranch-horse{width:88px;bottom:auto;top:65px;left:19px}.ranch-horse>span{font-size:8px;top:10px;left:79px;padding:5px 8px}.plots{left:3%;right:3%;bottom:34px}.plot{width:31%}.plot .building-art{width:110px}.plot-label{min-width:0;width:100%;border-radius:7px;padding:5px 2px}.plot-label strong{font-size:11px}.plot-label small{font-size:8px;letter-spacing:-.2px}.ranch-caption{font-size:8px;right:12px;bottom:9px}.mode-grid{grid-template-columns:1fr;gap:14px;margin-top:23px}.mode-card{min-height:113px;padding:17px 18px;border-radius:15px;gap:14px}.mode-number{display:block;font-size:40px;letter-spacing:-3px}.mode-card h2{font-size:22px;margin-top:3px}.mode-card .eyebrow{font-size:8px}.mode-card p{font-size:9px;margin-top:5px}.round-arrow{width:33px;height:33px}.round-arrow svg{width:20px}.home-bottom{margin:13px 0 0;display:block;text-align:center}.home-bottom>span{justify-content:center;font-size:9px}.home-bottom .text-button{font-size:10px;min-height:36px}.footer{padding:12px 0 20px;margin:0 18px;display:flex;flex-direction:column;gap:5px;align-items:center;font-size:8px}.mobile-nav{position:fixed;bottom:0;left:0;width:100%;padding:7px 15px calc(7px + env(safe-area-inset-bottom));display:flex;background:#f9f7eaf2;backdrop-filter:blur(12px);border-top:1px solid var(--line);gap:8px;z-index:50}.mobile-nav button{flex:1;font-size:11px;min-height:44px;border-radius:12px;background:none;color:#717a60}.mobile-nav button.active{background:#e3e9d0;color:#3d5d3a;font-weight:800}.page-heading{padding:4px 0 22px}.page-heading h1{font-size:28px;letter-spacing:-.9px}.page-heading p{font-size:11px}.page-heading .eyebrow{font-size:9px}.journey-strip{gap:13px;margin-bottom:20px}.journey-strip>.horse{width:85px}.journey-strip strong{font-size:25px}.journey-strip small{font-size:10px}.journey-strip>.icon{width:32px}.level-grid{grid-template-columns:repeat(4,1fr);gap:10px}.level{border-radius:11px;padding:13px 3px;gap:3px}.level>span{font-size:24px}.level small{font-size:8px}.gallery-grid{gap:12px}.horse-card{padding:15px 10px}.horse-card h2{font-size:16px}.horse-card p{font-size:9px}.collection-no{font-size:8px}.pill{font-size:10px}.game-header{margin-bottom:17px}.game-header>div{gap:9px}.game-header h1{font-size:21px;margin-top:2px}.game-header h1 small{font-size:8px;margin-left:7px;padding:4px 7px}.game-header .eyebrow{font-size:8px}.game-header .icon-button{width:36px;height:44px;border:none;background:none}.game-layout{display:block;max-width:440px}.game-aside{display:none}.in-game main{padding:15px 14px 10px}.in-game .topbar{padding-top:11px;padding-bottom:10px}.in-game .footer{display:none}.board-wrap{padding:12px 8px;border-radius:15px}.board-progress{margin:6px 0 12px}.tile{border-radius:7px;padding:3px;border-width:1.5px;box-shadow:0 3px 0 #acae8d}.tray-heading{margin-top:13px}.tray{gap:4px;padding:6px;border-radius:11px}.tray-tile{padding:2px}.slot{border-radius:5px}.reserve-row{min-height:52px;margin:10px 0}.tools{gap:8px}.tool{min-height:55px;gap:6px}.tool>svg{width:25px;height:25px}.tool span{font-size:11px}.tool small{font-size:8px}.game-footnote{margin-top:10px;font-size:8px}.result-card h2{font-size:24px}.result-card p{font-size:10px;margin-bottom:9px}.result-symbol{margin-bottom:3px}.result-symbol svg{width:28px;height:28px}.result-card .primary,.result-card .secondary{min-height:44px;padding:6px 12px;font-size:11px}.result-card .secondary{margin-top:7px}.result-card .text-button{min-height:30px}#toast{bottom:85px;font-size:10px;padding:10px 15px;white-space:normal;width:max-content;max-width:90%}#notices{position:fixed;bottom:65px;font-size:10px;width:100%;padding:7px 12px}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.intro h1{font-size:30px}.daily-stamp{width:80px}.mode-card{padding:15px 12px;gap:10px}.mode-number{font-size:35px}.mode-card h2{font-size:20px}.game-header h1 small{display:none}.in-game main{padding-left:9px;padding-right:9px}.tile-art{max-width:100%}.reserve-cards .tile{width:44px;height:44px}.tool{gap:4px}.tool>svg{width:22px}.result-card h2{font-size:22px}.result-symbol{display:none}}
.result-card{animation:pop .45s ease-out}
/* Keep touch targets usable without depending on newer WebView layout APIs. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.tile,.tray-tile{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
dialog{max-height:calc(100vh - 30px);max-height:calc(100dvh - 30px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
dialog:not([open]){display:none}
.dialog-open{position:fixed;width:100%;overflow:hidden}
.dialog-open #app{pointer-events:none}
#dialog-backdrop:not([hidden]){position:fixed;inset:0;background:#26302185;z-index:200}
dialog.fallback[open]{display:block;position:fixed;z-index:201;top:50%;left:50%;margin:0;transform:translate(-50%,-50%)}
.share-input{font-size:16px;user-select:text;-webkit-user-select:text}
@supports not (aspect-ratio:1){.board::before{content:'';display:block;padding-top:84.375%}.board .tile{height:calc(100% / 5.4)}.slot{position:relative;padding-top:100%}.tray-tile{position:absolute;inset:0}}
@media(hover:none){.tile:not(:disabled):hover,.mode-card:hover,.level:not(:disabled):hover{transform:none}.plot:hover .building-art{transform:none}}
@media(max-width:700px){
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
  main{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
  .header-tools .icon-button,.game-header .icon-button{width:44px;flex-shrink:0}
  .intro p,.mode-card p,.plot-label small,.page-heading p,.horse-card p{font-size:11px}
  .level small,.pill,.home-bottom .text-button{font-size:11px}
  .home-bottom .text-button{min-height:44px}
  .in-game{padding-bottom:env(safe-area-inset-bottom)}
  .in-game .topbar,.in-game .mobile-nav{display:none}
  .in-game main{padding-top:max(10px,env(safe-area-inset-top));padding-bottom:12px}
  .game-header{margin-bottom:10px;min-height:44px}
  .game-header>div{gap:4px}
  .game-header h1{font-size:20px}.game-header h1 small{display:none}
  .game-header .eyebrow{font-size:10px;letter-spacing:1px}
  .board-info,.tray-heading{font-size:11px}
  .board-progress{margin:5px 0 8px}
  .board-wrap{padding:8px;border-radius:14px}
  .tray-heading{margin-top:10px;margin-bottom:4px}
  .reserve-row{min-height:48px;margin:8px 0}
  .reserve-row.empty{min-height:24px;margin:7px 0}
  .reserve-row.empty>span small{display:none}
  .reserve-row>span,.reserve-empty{font-size:11px}
  .tool{min-height:52px}.tool small{font-size:10px}.tool span{font-size:12px}
  .game-footnote{font-size:10px;margin-top:8px}
  .result-card p,.result-card .primary,.result-card .secondary{font-size:12px}
  .result-card .text-button{min-height:44px;font-size:11px}
  .in-game #toast{bottom:calc(12px + env(safe-area-inset-bottom))}
  #toast{font-size:12px}
  .in-game #notices{position:relative;bottom:auto}
  dialog p,.instructions{font-size:14px}.fine-print{font-size:12px!important}
}
@media(max-width:700px) and (max-height:740px){.game-footnote{display:none}.in-game .play-area{max-width:350px;margin:auto}}
@media(max-width:360px){
  .in-game main{padding-left:4px;padding-right:4px;padding-top:max(6px,env(safe-area-inset-top))}
  .in-game .play-area{max-width:300px}.game-header h1{font-size:18px;white-space:nowrap}
  .game-header .eyebrow{font-size:9px;letter-spacing:0}.board-wrap{padding:5px}
  .board-progress{margin-bottom:5px}.tray-heading{margin-top:7px}.reserve-row{margin:5px 0}
}
@media(orientation:landscape) and (min-width:600px) and (max-height:520px){
  body.in-game{padding:0}
  .in-game .topbar,.in-game .mobile-nav,.in-game .footer,.game-aside,.game-footnote{display:none}
  .in-game main{padding:8px max(16px,env(safe-area-inset-right)) 8px max(16px,env(safe-area-inset-left));max-width:850px}
  .game-header{margin-bottom:7px;min-height:44px}.game-header h1{font-size:20px}.game-header h1 small{display:none}.game-header .eyebrow{font-size:10px}
  .game-layout{display:block;max-width:none}
  .in-game .play-area{display:grid;grid-template-columns:minmax(282px,1fr) minmax(240px,1fr);grid-template-rows:auto auto auto 1fr;column-gap:20px;max-width:none;align-items:start}
  .board-info{grid-column:1;grid-row:1;font-size:11px}.board-progress{grid-column:1;grid-row:2;margin:4px 0 7px}
  .board-wrap{grid-column:1;grid-row:3 / 6;width:100%;max-width:320px;justify-self:center;padding:7px;min-height:0}
  .tray-heading{grid-column:2;grid-row:1;margin:0 3px 7px;font-size:11px}
  .tray{grid-column:2;grid-row:2 / 4;gap:4px;padding:6px}
  .reserve-row{grid-column:2;grid-row:4;min-height:52px;margin:15px 0}
  .tools{grid-column:2;grid-row:5;gap:6px}.tool{min-height:55px;gap:4px}.tool>svg{width:22px}.tool span{font-size:12px}.tool small{font-size:10px}
  .in-game #toast{bottom:8px}.result-symbol{display:none}.result-card h2{font-size:22px}.result-card p{font-size:11px;margin:8px 0}.result-card .primary,.result-card .secondary{min-height:44px}
}
