@charset "UTF-8";
:root{--paper:#f7f5e9;--ink:#294b3b;--muted:#7e8978;--line:#d9decd;--green:#56765a;--orange:#e77850;--yellow:#f3c75d;--white:#fffdf5;--radius:22px;font-family:"Microsoft YaHei","PingFang SC",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,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,canvas:focus-visible,input:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button{touch-action:manipulation}button:hover:not(:disabled){filter:brightness(.97)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}a{color:inherit}strong,b{font-weight:750}.app-shell{width:min(1180px,calc(100% - 72px));margin:auto}.app-header{height:106px;display:flex;align-items:center;justify-content:space-between;gap:22px;border-bottom:1px solid var(--line);margin-bottom:26px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;letter-spacing:1px;font-size:23px;font-weight:800}.brand img{transform:rotate(-6deg)}.brand small{display:block;margin-top:5px;font-size:11px;letter-spacing:2px;color:var(--muted);font-weight:500}.mode-switch{display:flex;padding:5px;background:#e9ecdf;border-radius:100px;gap:4px}.mode-switch button{border:0;background:transparent;padding:10px 22px;font-size:13px;border-radius:100px;color:#71816d}.mode-switch .selected{background:var(--ink);color:#fffdf5;box-shadow:0 2px 4px #203b2a12}.mode-switch span{margin-left:4px}.header-tools{display:flex;gap:10px}.icon-button{height:40px;min-width:40px;border:1px solid var(--line);background:transparent;display:inline-flex;justify-content:center;align-items:center;border-radius:50%;font-size:24px}.icon-button.muted{opacity:.45}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:42px}.pasture-panel{min-width:0}.pasture-heading{height:68px;display:flex;align-items:flex-start;justify-content:space-between;padding:0 6px;margin-bottom:12px}.eyebrow{display:block;font-size:11px;color:var(--muted);letter-spacing:1.4px}.wool-dot{display:inline-block;width:9px;height:9px;border-radius:4px;background:var(--orange);margin-right:7px}.balance>strong{display:block;font-size:40px;font-weight:750;letter-spacing:-1px;line-height:1.2;font-variant-numeric:tabular-nums}.balance>strong>span{font-size:12px;letter-spacing:0;margin-left:8px;font-weight:500;color:var(--muted)}.passive-stat{display:flex;gap:8px;align-items:center;margin-top:13px;font-size:11px;color:var(--muted)}.passive-stat strong{display:block;font-size:15px;color:var(--ink);margin-top:5px;font-variant-numeric:tabular-nums}.live-dot{width:7px;height:7px;background:#98ad86;border-radius:50%;margin-top:18px}.field-shell{position:relative;border:1px solid #c7d1b8;background:#dfe8cd;border-radius:var(--radius);overflow:hidden;box-shadow:0 6px 0 #d2dac340,0 16px 32px #344a3010}.field-topline{position:absolute;top:16px;left:22px;right:22px;display:flex;justify-content:space-between;z-index:2;pointer-events:none;font-size:11px;color:#637b50;letter-spacing:.6px}.field-topline span:last-child{font-size:10px;opacity:.65;letter-spacing:1px}.canvas-wrap{position:relative;width:100%;max-height:calc(100vh - 340px);min-height:320px;aspect-ratio:600/640;display:flex;align-items:center;justify-content:center}#pasture{display:block;height:100%;width:auto;max-width:100%;max-height:100%;aspect-ratio:600/640;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none}.field-hint{pointer-events:none;position:absolute;bottom:24px;left:50%;transform:translateX(-50%);background:#fffdf0de;backdrop-filter:blur(4px);color:#536b45;padding:10px 17px;border:1px solid #fffefa;border-radius:100px;font-size:12px;white-space:nowrap;transition:opacity .3s}.field-hint.faded{opacity:0}.rhythm-panel{display:flex;align-items:center;gap:16px;padding:19px 8px 12px;min-height:100px}.tempo-orb{width:60px;height:60px;position:relative;flex:none;display:grid;place-items:center;border-radius:50%;background:#eeeddf;transition:background .1s,box-shadow .1s}.tempo-orb svg{position:absolute;inset:0;width:60px;height:60px;transform:rotate(-90deg)}.tempo-orb circle{fill:none;stroke-width:3.5}.orb-base{stroke:#dedfcf}#orb-progress{stroke:var(--green);stroke-dasharray:157.08;stroke-dashoffset:0;stroke-linecap:round}.tempo-orb>span{font-size:22px}.tempo-orb.ready{background:#f5d17b;box-shadow:0 0 0 5px #f3c75d24}.tempo-orb.perfect{background:#f6be89;box-shadow:0 0 0 5px #e7785020}.rhythm-copy{flex:1;min-width:0}.rhythm-copy strong{display:block;font-size:15px;letter-spacing:.4px}.rhythm-copy>span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.beat-track{margin-top:9px;height:4px;background:#e3e5d8;border-radius:4px;position:relative;overflow:hidden;max-width:270px}.beat-track>span{display:block;height:100%;width:100%;background:#8da279;border-radius:4px}.beat-notch{position:absolute;height:4px;width:1px;background:var(--paper);top:0;left:80%}.combo{text-align:right;min-width:90px}.combo>span{display:block;font-size:10px;color:var(--muted)}.combo>strong{display:block;font-size:28px;color:var(--orange);font-variant-numeric:tabular-nums;font-weight:650;line-height:1.3}.field-footer{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#929b88;padding:4px 8px}.field-footer i{font-style:normal;margin:0 6px}.workshop{padding-top:1px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:3px 0 20px}.section-heading h1{font-size:25px;letter-spacing:1px;margin:7px 0 0;font-weight:750}.section-heading h1 span{margin-left:15px;font-weight:400;color:#94a582}.shop-count{font-size:10px;border:1px solid var(--line);border-radius:100px;padding:7px 10px;color:var(--muted);white-space:nowrap}.automation-card{padding:17px 18px;background:#eaedde;border:1px solid #d7deca;border-radius:16px;margin-bottom:20px}.auto-card-head{display:flex;gap:12px;align-items:center}.machine-icon{display:grid;place-items:center;border-radius:12px;height:42px;width:42px;background:#dce3ce;font-size:23px;flex:none}.auto-card-head strong{font-size:13px}.auto-card-head p{font-size:10px;margin:5px 0 0;color:#829173}.unlock-track{height:4px;border-radius:8px;background:#d7dfc8;margin-top:14px;overflow:hidden}.unlock-track>span{display:block;height:100%;background:var(--green);width:0%;transition:width .2s}#auto-controls{margin-top:12px}#auto-controls label{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#758469}#auto-controls b{font-size:12px;color:var(--ink)}#auto-share{width:100%;margin-top:7px;padding:6px 9px;background:#f4f5eb;border:1px solid #cdd5bd;border-radius:7px;color:var(--ink);font-size:11px}.microcopy{font-size:10px;line-height:1.7;color:var(--muted);margin:8px 0 0}.upgrade-list{display:flex;flex-direction:column;gap:8px}.upgrade-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center;border:1px solid #dce1d0;background:#fffdf5;border-radius:13px;padding:12px 13px;width:100%;text-align:left;min-height:77px;transition:background .15s,border-color .15s,box-shadow .15s;position:relative}.upgrade-card.affordable{border-color:#b8c7a6}.upgrade-card.affordable:hover{background:#fcfff3;box-shadow:0 3px 12px #4e673d0b}.upgrade-card:disabled{opacity:.72}.upgrade-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:#f0eddf;color:#79905f}.upgrade-icon svg{height:24px;width:24px}.upgrade-info strong{font-size:12px}.upgrade-info small{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5}.upgrade-info .upgrade-level{display:inline;font-size:9px;color:#9aa48e;margin-left:7px;font-weight:400}.upgrade-price{background:#edf0e3;border-radius:8px;padding:9px 10px;font-size:12px;font-weight:750;min-width:66px;text-align:center;font-variant-numeric:tabular-nums}.upgrade-card.affordable .upgrade-price{color:var(--white);background:var(--ink)}.upgrade-price small{display:block;font-size:8px;font-weight:400;opacity:.65;margin-top:2px}.session-strip{display:flex;justify-content:space-between;margin:20px 2px 0;padding-top:16px;border-top:1px solid var(--line);gap:10px}.session-strip>div>span{font-size:10px;color:var(--muted)}.session-strip strong{display:block;font-size:12px;margin-top:7px;font-weight:500}.session-strip b{font-size:16px}.howto{font-size:11px;color:var(--muted);margin-top:18px}.howto summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between}.howto summary::-webkit-details-marker{display:none}.howto p{line-height:1.9}.page-footer{display:flex;justify-content:space-between;gap:10px;color:#99a08e;font-size:9px;letter-spacing:1px;padding:25px 0 18px}.page-footer i{font-style:normal;margin:0 10px;color:#a3ae92}.lab-tools{display:flex;flex-wrap:wrap;gap:6px;padding:10px;margin:0 0 10px;border-radius:12px;background:#f7e9bf;border:1px solid #e8d79e;font-size:10px;align-items:center}.lab-tools>span{margin-right:5px;font-weight:700}.lab-tools button{border:1px solid #ddc88b;border-radius:7px;background:#fff9e9;padding:6px 9px;font-size:10px}.toast{position:fixed;z-index:20;bottom:26px;left:50%;transform:translate(-50%,14px);padding:13px 20px;border-radius:13px;background:var(--ink);color:var(--white);font-size:13px;box-shadow:0 8px 25px #213b2525;max-width:90vw;opacity:0;pointer-events:none;transition:transform .2s,opacity .2s;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.save-warning{position:fixed;z-index:18;bottom:12px;left:12px;right:12px;padding:12px 18px;background:#fff0dc;border:1px solid #daac77;border-radius:10px;color:#825b31;font-size:12px;line-height:1.7}.modal{position:fixed;inset:0;display:flex;justify-content:center;align-items:center;z-index:30;padding:20px}.modal-scrim{position:absolute;inset:0;background:#203e345c;backdrop-filter:blur(5px)}.modal-card{width:410px;max-width:100%;max-height:90vh;overflow:auto;position:relative;background:var(--paper);border-radius:25px;padding:28px;box-shadow:0 24px 80px #14301f35}.modal-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-card h2{font-size:21px;margin:0}.modal-card p{line-height:1.8}.modal-heading .icon-button{height:32px;min-width:32px;font-size:23px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--line);font-size:13px;cursor:pointer}.setting-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.setting-row input{width:20px;height:20px;accent-color:var(--green)}.volume-row{display:flex;gap:25px;align-items:center;margin:24px 0;font-size:13px}.volume-row input{width:100%;accent-color:var(--green)}.settings-note{font-size:11px;color:var(--muted)}.text-button{padding:8px 0;border:0;background:none;font-size:12px}.danger{color:#ba6f52}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.primary-button,.secondary-button{border:0;border-radius:10px;padding:11px 18px;font-size:13px;background:var(--ink);color:white}.secondary-button{background:#e4e8da;color:var(--ink)}.modal-card.small{width:360px}.modal-card.small p{font-size:13px;color:var(--muted)}body.reduced-motion *{transition:none!important;animation:none!important}
@media(min-width:1500px){.app-shell{max-width:1270px}.game-layout{grid-template-columns:minmax(0,1fr) 370px;gap:60px}.canvas-wrap{max-height:640px}.upgrade-card{min-height:84px}}
@media(max-width:980px){.app-shell{width:calc(100% - 40px)}.game-layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px}.brand{font-size:19px}.mode-switch button{padding:10px 16px}.field-footer{font-size:9px}.page-footer span:last-child{display:none}.upgrade-card{padding:10px;gap:9px}}
@media(max-width:740px){.app-shell{width:calc(100% - 28px)}.app-header{height:79px;gap:10px;margin-bottom:20px}.brand{font-size:17px;gap:8px;letter-spacing:0}.brand img{width:36px;height:36px}.brand small{font-size:9px;letter-spacing:1px}.mode-switch{padding:3px;gap:0}.mode-switch button{padding:8px 10px;font-size:11px}.mode-switch span{display:none}.header-tools{gap:5px}.header-tools .icon-button{height:32px;min-width:32px;font-size:21px}.header-tools svg{width:18px}.game-layout{display:block}.pasture-heading{margin-bottom:12px;height:62px}.balance>strong{font-size:35px}.canvas-wrap{max-height:none;min-height:0;aspect-ratio:600/640}#pasture{width:100%;height:auto}.field-topline{top:13px;left:17px;right:17px;font-size:10px}.rhythm-panel{padding:17px 3px 12px;gap:13px}.rhythm-copy strong{font-size:14px}.rhythm-copy>span{font-size:10px}.field-footer{font-size:9px;padding:3px 0}.workshop{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.section-heading h1{font-size:22px}.automation-card{padding:14px}.upgrade-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.upgrade-card{grid-template-columns:32px 1fr;gap:7px;padding:11px;min-height:105px}.upgrade-icon{width:30px;height:30px;border-radius:9px}.upgrade-icon svg{width:20px;height:20px}.upgrade-info strong{font-size:11px}.upgrade-info .upgrade-level{font-size:8px;margin-left:4px}.upgrade-info small{font-size:9px}.upgrade-price{grid-column:1/-1;padding:6px;font-size:11px}.upgrade-price small{display:inline;margin-left:5px}.session-strip{padding-top:16px}.page-footer{justify-content:center;font-size:8px;padding-top:30px}.lab-tools{font-size:9px;gap:5px}.lab-tools>span{width:100%}.lab-tools button{font-size:10px;padding:6px 8px}.modal-card{padding:23px}.toast{font-size:12px;bottom:18px}.field-hint{bottom:15px;font-size:11px}}
@media(max-width:380px){.app-shell{width:calc(100% - 20px)}.brand small{display:none}.brand{font-size:15px}.brand img{width:30px;height:30px}.mode-switch button{padding:8px;font-size:10px}.header-tools{gap:4px}.header-tools .icon-button{min-width:28px;height:28px}.rhythm-copy strong{font-size:12px}.combo{min-width:70px}.field-topline span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.growth-card{padding:17px;background:#eaedde;border:1px solid #d7deca;border-radius:16px;margin-bottom:18px}
.growth-card-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;font-size:12px}
.growth-card-title>span{font-size:10px;color:#6b8257;background:#f6f7ed;border-radius:12px;padding:4px 7px}
.growth-stages{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:19px 0 12px;font-size:10px;color:#839278}
.growth-stages>span{display:flex;gap:5px;align-items:center}
.growth-stages>b{font-weight:400;opacity:.5}.growth-stages .harvestable{color:var(--ink);font-weight:700}
.stage-dot{display:inline-block;width:13px;height:13px;border-radius:50%;background:#e4ac97;border:1px solid #c78c78}
.stage-dot.short{background:#eee5d1;border:2px dotted #acb196}
.stage-dot.fluffy{background:#fffdf0;box-shadow:0 0 0 2px #bdcba8;border-color:#fffdf0}
.stage-dot.full{background:#fffdf0;box-shadow:0 0 0 3px #edc65c;border-color:#fffdf0}
.growth-card p{font-size:10px;line-height:1.7;color:#758469;margin:0}
.music-mark{width:58px;flex:none;text-align:center;color:var(--green)}
.music-mark>span{height:33px;display:flex;align-items:center;justify-content:center;gap:4px}
.music-mark i{width:4px;height:20px;border-radius:4px;background:currentColor;transform:scaleY(var(--pulse-scale,1))}
.music-mark i:nth-child(2){height:29px;}.music-mark i:nth-child(3){height:15px;}.music-mark i:nth-child(4){height:24px;}
.music-mark small{display:block;font-size:8px;letter-spacing:1px;margin-top:3px}
body.muted .music-mark i{transform:none;opacity:.35}
body.reduced-motion .music-mark i{transform:none}
#pasture{cursor:none}
.rhythm-score{display:grid;gap:3px;margin-top:5px}
.rhythm-score>div{display:flex;flex-wrap:wrap;gap:2px}
.rhythm-score span{flex:0 1 19px;min-width:0;text-align:center;font-size:11px;line-height:19px;color:#647160;border-radius:4px}
.rhythm-score .kick{color:var(--ink);background:#e3e9d6}
.rhythm-score .half-beat{flex-basis:14px;border-top:2px solid #8b9f76;line-height:17px}
.rhythm-copy{container-type:inline-size}
/* Wrap the final phrase after its first four-kick roll on narrow fields. */
@container (max-width:235px){
  .rhythm-score[data-pattern=stage3]>div:last-child{display:grid;grid-template-columns:repeat(9,minmax(0,19px))}
}
.rhythm-score .rest{outline:1px dashed #85947d;outline-offset:-1px}
.rhythm-score .rest.current{background:#f4dc9f;color:#4d472d}
.rhythm-score .current{box-shadow:inset 0 -2px currentColor}
.rhythm-score .kick.current{background:var(--ink);color:var(--white)}
.rhythm-unlock{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:12px 15px;border:1px solid #d9d4b9;border-radius:13px;background:#f4f0dd}
.rhythm-unlock strong{font-size:13px}
.rhythm-unlock span{display:block;margin-top:4px;font-size:11px;color:#637357;font-variant-numeric:tabular-nums}
.rhythm-unlock button{border:0;border-radius:8px;padding:10px 12px;font-size:12px;background:var(--ink);color:var(--white)}
.rhythm-unlock button:disabled{background:#e3e4d1;color:#68745e}
.rhythm-settings{border:1px solid var(--line);border-radius:14px;padding:14px;margin:0 0 7px;min-width:0;background:#eef0e3}
.rhythm-settings legend{padding:0 6px;font-size:13px;font-weight:750}
.rhythm-settings .microcopy{margin:0}
.score-editor{display:grid;gap:9px;margin-bottom:16px}
.score-editor label{font-size:12px;font-weight:650}
.score-stage{display:flex;align-items:center;justify-content:space-between}
.lab-rhythm-control{display:inline-flex;align-items:center;gap:5px}
.lab-rhythm-control select{color:var(--ink);border:1px solid #ddc88b;border-radius:7px;background:#fff9e9;padding:5px;font-size:10px}
.score-stage select{border:1px solid #c5d0b9;border-radius:8px;color:var(--ink);background:var(--white);padding:8px;font:inherit}
.score-toolbar,.score-toolbar>div{display:flex;align-items:center;gap:5px}
.score-toolbar{justify-content:space-between;gap:10px}
.score-toolbar b,.score-label{font-size:12px}
.score-toolbar button{border:0;background:transparent;color:var(--ink);font-size:12px;padding:5px}
.score-toolbar button:disabled{opacity:.45}
.score-toolbar #score-delete:enabled{color:#984434}
.score-palette,.score-sequence{display:grid;grid-template-columns:repeat(6,minmax(0,48px));gap:4px}
.score-sequence{min-height:48px;align-content:start;padding:7px;border:1px solid #cbd3bd;border-radius:10px;background:#f6f6ec}
.score-sequence:empty::before{content:'从下方添加第一个音符';grid-column:1/-1;align-self:center;font-size:12px;color:#64705d;line-height:32px}
.score-note{position:relative;min-width:0;height:32px;padding:0 2px;border:1px solid var(--note-line);border-radius:7px;background:var(--note-fill);color:var(--note-ink);font-size:12px;white-space:nowrap}
.score-note[data-token="咚"],.score-note[data-token="半咚"]{--note-fill:#e2ecda;--note-line:#afc2a4;--note-ink:#345437}
.score-note[data-token="哒"],.score-note[data-token="半哒"]{--note-fill:#f7e4d9;--note-line:#d7b6a4;--note-ink:#76452f}
.score-note[data-token="休"],.score-note[data-token="半休"]{--note-fill:#e4eaf0;--note-line:#b5c3cf;--note-ink:#405769}
.score-note[data-token^="半"]{background:linear-gradient(to bottom right,var(--note-fill) calc(50% - .5px),var(--note-line) calc(50% - .5px),var(--note-line) calc(50% + .5px),transparent calc(50% + .5px))}
.score-sequence .score-note{touch-action:none;user-select:none;cursor:grab}
.score-sequence .score-note[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--note-ink);border-color:var(--note-ink)}
.score-sequence .score-note[aria-current=step]{--note-fill:#fff195;--note-line:#bd8525;border-color:var(--note-line);box-shadow:0 0 0 2px #e9ae3d,0 0 8px #e9ae3d80;font-weight:700}
.score-sequence .drag-source{opacity:.55;cursor:grabbing}
.score-note.drop-before::before,.score-note.drop-after::after{content:'';position:absolute;top:1px;bottom:1px;width:3px;background:var(--ink);border-radius:2px;pointer-events:none}
.score-note.drop-before::before{left:-4px}.score-note.drop-after::after{right:-4px}
.score-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.score-actions .text-button{margin-left:auto}
.window-presets{display:flex;gap:7px;margin:12px 0 16px}
.window-presets button{flex:1;border:1px solid #c5d0b9;background:var(--white);border-radius:8px;padding:8px 5px;font-size:10px}
.window-presets button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--white)}
.window-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;margin-top:13px;font-size:11px}
.window-control>span{display:flex;align-items:center;gap:4px;color:var(--muted);font-size:10px}
.window-control input[type=number]{width:65px;border:1px solid #c5d0b9;border-radius:6px;padding:5px;background:var(--white);color:var(--ink);font-size:12px}
.window-control input[type=range]{grid-column:1/-1;width:100%;margin:3px 0;accent-color:var(--green)}
.window-summary{font-size:10px;color:#617552;margin:12px 0 0;line-height:1.7}
.volume-row{gap:12px;white-space:nowrap;margin:18px 0}
.setting-row select{font:inherit;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:8px;padding:8px 10px}
.volume-row input{min-width:0}.volume-row output{min-width:34px;text-align:right;font-size:11px;font-variant-numeric:tabular-nums;color:var(--muted)}

/* Keep the logical pasture and its visible frame at the same aspect ratio. */
.field-topline{top:9px;left:12px;right:12px}
.field-topline>span{background:#f7f5e9e8;border-radius:20px;padding:4px 8px;line-height:1.4}
.field-topline span:last-child{opacity:.85}
@media(min-width:741px){
  .app-shell{max-width:1020px}
  .app-header{height:80px;margin-bottom:20px}
  .game-layout{grid-template-columns:clamp(340px,calc(93.75vh - 281.25px),600px) minmax(300px,340px);gap:36px;justify-content:center;align-items:start}
  .pasture-heading{height:60px;margin-bottom:10px}
  .canvas-wrap{min-height:0;max-height:none;aspect-ratio:600/640}
  #pasture{width:100%;height:auto;max-height:none}
  .rhythm-panel{min-height:86px;padding:14px 2px 10px;gap:10px}
  .rhythm-copy strong{font-size:13px}
  .rhythm-copy>span{font-size:10px}
  .combo{min-width:76px}
  .combo>span{font-size:9px}
  .field-footer{padding:4px 0;font-size:9px}
  .workshop{max-height:calc(100vh - 125px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c4cfb6 transparent;padding:0 8px 16px 0}
  .workshop::-webkit-scrollbar{width:4px}
  .workshop::-webkit-scrollbar-thumb{background:#c4cfb6;border-radius:4px}
  .section-heading{margin-bottom:16px}
  .section-heading h1{font-size:23px}
  .upgrade-card{min-height:72px}
  .page-footer{padding:17px 0}
}
@media(min-width:741px) and (max-width:850px){
  .game-layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px}
}
