:root{color-scheme:light;--ink:#213e37;--muted:#626c5e;--paper:#fbf4df;--coral:#b44831;--line:#cac5aa;--green:#216256;--gold:#eab750;font:15px/1.45 "Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink)}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#e8e4ce}
body{background-image:radial-gradient(#a6977045 .65px,transparent .85px),linear-gradient(125deg,#f8f0d9,#e0e3c9);background-size:5px 5px,100% 100%}
button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default}
button:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #047e8b;outline-offset:3px}
button:active:not(:disabled){transform:translateY(2px)}
svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.symbols{position:absolute;width:0;height:0;overflow:hidden}
[hidden]{display:none!important}
.shell{width:min(100%,1536px);margin:0 auto;padding:16px clamp(16px,2.8vw,42px) 20px;min-height:100svh;display:flex;flex-direction:column;gap:14px}
.mast,.identity,.mast nav,.tool,.meter-head,.meter-head span,.meter-foot,.stock,.view-head,.play-actions,.primary,.unit,.choice,.installed,.balance{display:flex;align-items:center}
.mast{justify-content:space-between;gap:12px}
.identity{gap:10px}
.brand-mark{width:43px;height:40px;stroke:none}
h1,h2,p{margin:0}
h1{font-size:clamp(22px,2.4vw,36px);font-weight:950;letter-spacing:-.075em;line-height:1.1}
.type-tag{font-size:11px;letter-spacing:.09em;color:#4d6250;border-left:1px solid #999d83;padding-left:12px;margin-left:3px}
.mast nav{gap:7px}
.tool,.minor{border:1px solid #a4a891;background:#f9f4e3;border-radius:9px;font-size:13px;font-weight:650}
.tool{gap:7px;justify-content:center;min-height:37px;padding:6px 11px}
.tool svg{width:16px;height:16px}
.tool:hover,.minor:hover{background:white;border-color:var(--green)}
.tool:disabled{opacity:.65}.sound{width:38px;padding:0}
.layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(260px,22vw,322px);gap:15px;min-height:520px;height:calc(100svh - 92px);max-height:1020px}
.stage{position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:0;background:#adcbb9;border:2px solid #315648;border-radius:21px;box-shadow:0 3px 0 #72836c}
.landscape{position:absolute;inset:0;background:#a4c9b9 url("landscape.svg") center center/cover no-repeat;pointer-events:none}
#game-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:manipulation;cursor:crosshair;-webkit-tap-highlight-color:transparent;user-select:none}
body[data-phase=start] #game-canvas,body[data-phase=fall] #game-canvas,body[data-phase=draft] #game-canvas{cursor:default}
.board-ticket{pointer-events:none;position:absolute;z-index:2;color:#345344;font-size:12px;font-weight:750}
.board-ticket{left:17px;top:16px;display:flex;align-items:center;gap:7px;border:1px solid #748f78;background:#f9f1cfed;border-radius:20px;padding:5px 11px;box-shadow:0 2px 0 #3c594322}
.board-ticket i{width:7px;height:7px;border-radius:50%;background:#bb5137}
body[data-phase=play] .board-ticket i,body[data-phase=place] .board-ticket i{background:#177859}
.console{min-height:0;background:var(--paper);border:2px solid #405348;border-radius:18px;padding:clamp(14px,1.7vw,24px);display:flex;flex-direction:column;box-shadow:0 3px 0 #7b806b;overflow:auto;scrollbar-width:thin}
.meter{padding-bottom:15px}
.meter-head,.meter-foot,.view-head{justify-content:space-between;gap:7px}
.meter-head span{gap:6px;font-weight:750;letter-spacing:.04em}
.meter-head svg{color:#946d1a;width:17px;height:17px}
.meter-head strong{font-size:12px;background:#e8ead8;border:1px solid #bbc4a9;border-radius:5px;padding:2px 6px;font-weight:700}
.balance{align-items:baseline;gap:9px;margin:7px 0 6px;font-family:ui-rounded,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.balance b{font-size:clamp(36px,4.05vw,58px);line-height:1.08;letter-spacing:-.055em;font-weight:800}
.balance span{color:var(--muted);font-size:16px}.balance em{font-style:normal;font-weight:650}
#tribute-bar{height:10px;border-radius:50px;background:#dbd9bd;box-shadow:inset 0 1px 2px #8a8e6e44;overflow:hidden}
#tribute-fill{width:0;height:100%;background:#d39c39;border-radius:inherit;transition:width .22s}
#tribute-fill.ready{background:#42886a}
.meter-foot{font-size:12px;color:var(--muted);margin-top:6px}
#h-income{color:#855f19;font-variant-numeric:tabular-nums}
.stock{gap:10px;min-height:48px;border-block:1px dashed #b2ad8e;font-size:13px;font-weight:700}
.stock>b{font-size:20px;line-height:1;color:var(--green);font-variant-numeric:tabular-nums}
.remove-tool{border:1px solid #ae9778;border-radius:7px;padding:4px 7px;background:#f8edda;color:#704830;white-space:nowrap;font-size:12px}
.remove-tool:hover:not(:disabled){border-color:#965a37;background:#f8e0bf}
.remove-tool:disabled{opacity:.55}
.remove-tool strong{font-variant-numeric:tabular-nums}
.remove-actions{display:flex;gap:7px}.remove-actions .primary{flex:1}
#remove-choice{font-weight:700;color:#79432d;min-height:1.7em}
.touch-place{display:none}
#remove-cell,#place-cell{width:100%;min-width:0;min-height:42px;padding:5px 7px;color:var(--ink);background:#fffbed;border:1px solid #aaa88c;border-radius:7px;font:inherit}
body[data-phase=remove] #game-canvas{cursor:pointer}
#ball-pips{display:flex;gap:3px;flex:1;justify-content:flex-end;flex-wrap:wrap}
.pip{width:7px;height:9px;border-radius:50%;background:#cc8062;border:1px solid #a25840}
.pip.spent{background:#e6e1c9;border-color:#cbc7ae}
.view{display:flex;flex-direction:column;gap:14px;flex:1;padding-top:clamp(13px,2.1vh,23px);min-height:min-content}
h2{font-size:20px;letter-spacing:-.04em;font-weight:850}
.cast{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.cast.six{grid-template-columns:repeat(3,minmax(0,1fr))}
.cast-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}
#cast-page{min-width:0;padding:4px 3px;font:inherit;font-size:12px;color:var(--ink);background:#fffbed;border:1px solid #b4b397;border-radius:6px}
.art-credit{font-size:11px;color:var(--muted);margin-top:3px}.art-credit summary{width:max-content;cursor:pointer}.art-credit a{color:var(--green)}
.cast button{min-width:0;padding:5px 1px 6px;background:#fffbed;border:1px solid #c7c3a7;border-radius:9px;text-align:center}
.cast button[aria-pressed=true]{background:#e7edd2;border-color:#427460;box-shadow:inset 0 0 0 1px #427460}
.cast button:hover{border-color:#427460}.cast img{width:100%;height:46px;object-fit:contain;display:block;margin:auto}
.cast button span{display:block;margin-top:3px;font-size:11px;font-weight:750}
#ov-start{gap:9px}
#cast-rule b{margin-right:.5em;color:var(--ink)}
.explain,.detail{color:#526052;line-height:1.65;font-size:13px}
.actions{margin-top:auto;padding-top:10px}
.primary{border:1.5px solid #603d2c;border-radius:10px;min-height:47px;width:100%;justify-content:center;gap:9px;background:#ba5038;color:#fff6db;font-size:18px;font-weight:800;box-shadow:0 3px 0 #74442e}
.primary:not(:disabled):hover{background:#a84231}
.primary:disabled{background:#e3deca;color:#707562;box-shadow:none;border-color:#c3c3ac}
.fine{font-size:12px;line-height:1.5;color:var(--muted);margin:9px 0 0}
.play-actions{gap:8px}.play-actions .primary{flex:1}.minor{min-height:46px;padding:4px 13px}
body[data-phase=place] .play-actions{display:none}
.minor.on{background:#d6ebcc;border-color:#3e7659}
.minor:disabled{opacity:.55}
.installed{align-items:start;flex-wrap:wrap;gap:6px}
.unit{border:1px solid #bfbaa0;background:#f2edd8;border-radius:9px;gap:3px;padding:4px 6px;min-height:42px;font-size:12px}
.unit.active{border:2px solid #427460;background:#e8edcf;padding:3px 5px}
.unit img{width:31px;height:31px;object-fit:contain}.unit span{font-weight:700;white-space:nowrap}
.detail b{display:block;color:var(--ink);font-size:15px;margin-bottom:3px}.detail small{display:block;color:#786946;margin-top:4px;font-size:12px}
.view-head span{font-size:12px;color:#686849}
#draft-cards{display:flex;flex-direction:column;gap:9px}
.choice{width:100%;text-align:left;gap:9px;border:1.5px solid #b9b79d;background:#fffbed;border-radius:11px;padding:8px 9px;position:relative;color:var(--ink)}
.choice:hover,.choice:focus-visible{border-color:#38725a;background:#ebf1d7}
.choice img{width:48px;height:48px;flex-shrink:0;object-fit:contain}
.choice .words{flex:1;min-width:0}.choice b,.choice small{display:block}
.choice b{font-size:15px;line-height:1.34}.choice small{font-size:12px;color:#546051;line-height:1.45;margin-top:3px}
.choice kbd{font:11px/1.4 monospace;border:1px solid #d5cfb7;border-radius:3px;padding:0 3px;color:#766f55}
.receipt{border-block:1px dashed var(--line);padding:8px 0}
.receipt div{display:flex;justify-content:space-between;gap:8px;font-size:14px;padding:5px 0}
#drop-log{border-top:1px dashed var(--line);color:var(--muted);font-size:12px}
#drop-log summary{padding:7px 0;cursor:pointer}#drop-log .receipt{border:0;padding:0}#drop-log .receipt div{font-size:12px;padding:2px 0}
#toast{pointer-events:none;position:fixed;left:50%;bottom:20px;transform:translate(-50%,8px);opacity:0;transition:opacity .15s,transform .15s;padding:8px 15px;border-radius:8px;background:#193c33;color:#fff5d8;z-index:20;text-align:center;max-width:90vw;font-size:13px}
#toast.show{opacity:1;transform:translate(-50%,0)}
#fatal{position:absolute;inset:20%;display:grid;place-content:center;background:var(--paper);z-index:8;padding:14px;color:#8c3d2d;text-align:center}
#selftest{position:fixed;bottom:0;left:0;z-index:30;background:white;color:black;font:12px monospace}
@media(min-width:761px) and (max-height:670px){.shell{padding-top:8px;padding-bottom:10px;gap:8px}.layout{height:calc(100svh - 62px);min-height:380px}.view{gap:7px;padding-top:10px}.console{padding:12px 15px}.balance b{font-size:32px}.meter{padding-bottom:8px}.stock{min-height:35px}.choice{padding:4px 7px}.choice img{width:34px;height:34px}.cast img{height:43px}.actions{padding-top:4px}}
@media(max-width:760px),(min-width:761px) and (max-width:960px) and (orientation:portrait){
 .shell{padding:8px 8px max(10px,env(safe-area-inset-bottom));gap:7px}.mast{gap:4px;min-height:34px}.identity{gap:5px}.brand-mark{width:28px;height:27px}h1{font-size:21px}.type-tag{display:none}
 .mast nav{gap:4px}.tool{font-size:11px;padding:4px 6px;gap:3px;min-height:32px;border-radius:7px}.tool svg{width:13px;height:13px}.tool.sound{width:30px}
 .layout{height:auto;min-height:0;max-height:none;display:flex;flex-direction:column;gap:7px}
 .stage{height:clamp(225px,42svh,490px);flex:none;border-radius:14px}.board-ticket{font-size:10px;left:8px;top:8px;padding:3px 7px}
 .console{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 12px;overflow:visible;border-radius:13px;padding:10px 12px}
 .meter{padding:0;grid-column:1}.meter-head{justify-content:flex-start;gap:7px}.meter-head span{font-size:12px}.meter-head svg{width:13px;height:13px}.meter-head strong{font-size:10px}.balance{margin:2px 0}.balance b{font-size:28px}.balance span{font-size:12px}.meter-foot{margin-top:3px;font-size:10px}#tribute-bar{height:6px}
 .stock{grid-column:2;align-self:center;flex-direction:column;gap:3px;max-width:94px;min-width:58px;border:0;font-size:11px}.stock>b{order:1}.stock #ball-pips{order:2;max-width:84px;flex:none}.pip{width:5px;height:6px}
 .remove-tool{order:3;min-height:40px;padding:2px 8px;font-size:12px}
 .view{grid-column:1/-1;min-width:0;border-top:1px dashed var(--line);margin-top:8px;padding:8px 0 0;gap:6px}h2{font-size:15px}.cast img{height:34px}.cast button{padding:2px 2px 4px}.cast button span{margin:0}
 #ov-start .explain{font-size:12px}
 .actions{padding:0}.primary,.minor{min-height:40px}.primary{font-size:16px}.fine{font-size:11px;margin:5px 0 0}.detail{font-size:12px}.detail b{display:inline;font-size:13px;margin-right:5px}.detail small{display:inline;margin-left:5px;font-size:11px}
 .installed{gap:4px}.unit{min-height:30px;padding:2px 4px}.unit.active{padding:1px 3px}.unit img{width:24px;height:24px}.unit span{font-size:11px}
 #draft-cards{flex-direction:row;gap:5px}.choice{flex:1;min-width:0;flex-direction:column;gap:2px;padding:5px 3px;text-align:center;border-radius:8px}.choice img{width:37px;height:37px}.choice b{font-size:12px}.choice small{font-size:11px;line-height:1.3}.choice kbd{display:none}
}
@media(max-width:365px){.tool:not(.sound) svg{display:none}h1{font-size:19px}.brand-mark{width:24px}.console{padding:8px 9px}.stage{height:43svh}}
@media(min-width:560px) and (max-height:520px) and (orientation:landscape){.shell{padding:5px 9px;gap:4px}.mast{min-height:30px}.brand-mark{height:26px;width:29px}h1{font-size:22px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;height:calc(100svh - 49px);min-height:0}.stage{height:auto}.console{display:flex;overflow:auto;padding:8px 12px}.balance b{font-size:23px}.meter-head span{font-size:12px}.meter-foot{font-size:10px}.stock{display:flex;flex-direction:row;align-self:stretch;max-width:none;min-height:27px}.view,#ov-start{display:flex;gap:5px}.cast img{height:28px}.cast figcaption,.fine{font-size:10px}.explain,.detail{font-size:11px}.choice img{width:23px;height:23px}#draft-cards{gap:4px}.primary,.minor{min-height:34px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
@media(pointer:coarse),(max-width:760px){
 body[data-phase=place] .touch-place{display:flex;align-items:center;gap:6px}
 .touch-place select{flex:1}.touch-place button{white-space:nowrap}
 .cast button,.choice,.remove-tool,#remove-cell,#place-cell,.primary,.minor{min-height:44px}
 #ov-start{gap:6px}
}
@media(max-width:960px) and (orientation:portrait){
 .shell{padding-top:max(8px,env(safe-area-inset-top));padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}
 .mast .tool{min-height:44px}.mast .sound{min-width:40px}
}
@media(max-width:760px) and (max-height:780px) and (orientation:portrait),(min-width:560px) and (max-height:520px) and (orientation:landscape){
 body[data-phase=start] .meter,body[data-phase=start] .stock{display:none}
 #ov-start{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;margin:0;border:0;padding:0;gap:6px}
 .cast-heading{grid-column:1;grid-row:1;align-self:center;justify-content:flex-start}
 #ov-start .actions{display:contents}
 #btn-start{grid-column:2;grid-row:1;width:auto;padding:4px 12px}
 #cast{grid-column:1/-1;grid-row:2}
 #cast-rule{grid-column:1/-1;grid-row:3}
 #ov-start .fine{grid-column:1/-1;grid-row:4;margin:0}
}
@media(min-width:560px) and (max-height:520px) and (orientation:landscape){.cast-heading h2{display:none}}
@media(pointer:coarse){#cast-page{min-height:40px}}
@media(orientation:landscape) and (max-height:520px){
 .shell{height:100svh;min-height:0;padding:max(5px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left))}
 .layout{flex:1;height:auto;min-height:0}
}
.mast-name{font-size:clamp(20px,2vw,30px);font-weight:900;letter-spacing:-.055em;line-height:1}
.home-link{min-height:38px}.home-link svg{width:17px}
.mast .creator{display:flex;align-items:center;gap:9px;background:#23483f;color:#fff3d3;border:1px solid #183e35;padding:4px 6px 4px 5px;border-radius:11px;text-align:left}
.creator img{display:block;width:36px;height:36px;object-fit:cover;border-radius:50%;border:1.5px solid #e7c779}
.creator-copy{display:grid}.creator-copy strong{font-size:13px}.creator-copy small{font-size:10px;color:#e2dfba}
.creator b{background:#f5ce72;color:#3a3724;border-radius:6px;padding:4px 7px;font-size:12px;white-space:nowrap}
.mast .creator:hover{background:#30594d}.mast .creator:disabled,.mast .medal-link:disabled{opacity:.86}
.mast .medal-link{color:#74501d;background:#fff0c3;border-color:#b6a074;white-space:nowrap}
body[data-phase=home] .layout{grid-template-columns:minmax(260px,.72fr) minmax(0,1.48fr);gap:0;border:2px solid #284d41;border-radius:22px;background:#21493e;overflow:hidden;box-shadow:0 4px 0 #77846b;min-height:450px}
body[data-phase=home] .stage{border:0;border-left:2px solid #2d5144;border-radius:0;box-shadow:none}
body[data-phase=home] #game-canvas{cursor:default}
.home-panel{display:flex;flex-direction:column;justify-content:center;gap:clamp(22px,6vh,70px);padding:clamp(22px,3.8vw,65px);color:#fff2cf;background:radial-gradient(ellipse at 0 0,#386c56,transparent 72%),#21483d;min-width:0}
.home-mode{display:flex;align-items:center;gap:9px;color:#f1cf86;font-size:13px;letter-spacing:.14em;font-weight:750}
.home-mode::before{content:"";display:inline-block;width:24px;height:2px;background:#eab957}
#home-title{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:clamp(53px,5.6vw,94px);line-height:1.07;letter-spacing:-.065em;margin:14px 0 18px;font-weight:950}
#home-title span,#home-title em{display:block}#home-title em{font-style:normal;color:#ffce6c}
#home-rule{color:#e6e9d1;font-size:clamp(13px,1.15vw,17px);line-height:1.8}
.home-controls{max-width:420px}.home-play{background:#f6c464;color:#293c2d;border-color:#c99a40;box-shadow:0 3px 0 #886b36;min-height:53px}
.home-play:not(:disabled):hover{background:#ffda88}.home-secondary{display:flex;gap:8px;margin-top:12px}
.home-secondary .minor{display:flex;align-items:center;justify-content:center;gap:5px;color:#f6ecd1;border-color:#8ca18a;background:#2e5447;flex:1;white-space:nowrap;min-height:43px;padding:5px 7px}
.home-secondary .minor:hover{background:#416957}.home-secondary svg{width:17px}.home-secondary b{font:700 10px/1.2 system-ui;letter-spacing:.05em;color:#f4d58b}
.home-best{display:flex;align-items:center;gap:10px;color:#c2d1bb;font-size:12px;margin-top:19px}.home-best strong{color:#f9ecc7;font-weight:650}
.rescue{display:grid;grid-template-columns:25px 1fr;gap:4px 7px;align-items:center;padding:11px;background:#f4e9c4;border:1px solid #c3ac71;border-radius:9px}.rescue>svg{color:#936e28}.rescue p{font-size:12px;color:#675a3c}.rescue button{grid-column:1/-1;font-weight:750}.end-actions{display:grid;gap:8px}
.text-button{background:none;border:0;color:var(--green);font-size:12px;text-decoration:underline;text-underline-offset:3px;min-height:35px}
#menu-dialog{position:fixed;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:clamp(17px,3vw,27px);color:var(--ink);background:#fff6df;border:2px solid #345447;border-radius:15px;box-shadow:0 16px 65px #0c282c4d;overflow:auto}
#menu-dialog::backdrop{background:#09291fd1}
.dialog-head,.dialog-actions,.rank-summary{display:flex;gap:10px;align-items:center}.dialog-head{justify-content:space-between;margin-bottom:12px}.dialog-head h2{font-size:23px}
.close-dialog{display:grid;place-content:center;font:25px/1 system-ui;border:1px solid #c6c0a3;background:#f5ecd2;border-radius:50%;min-height:38px;min-width:38px}.dialog-actions{margin-top:15px}.dialog-actions button{flex:1;width:auto;font-size:14px;min-height:44px}
.dialog-status,.rank-rule{font-size:13px;color:#526351}.dialog-status{margin-top:12px}.dialog-status:empty{display:none}
.rank-summary{margin:14px 0 8px;padding:11px 14px;background:#e9edda;border-radius:9px}.rank-summary div{flex:1;min-width:0}.rank-summary small,.rank-summary b{display:block}.rank-summary small{font-size:11px;color:#546451}.rank-summary b{font-size:17px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.rank-scroll{overflow:auto;max-height:min(43dvh,380px);margin-top:9px;overscroll-behavior:contain}.rank-scroll:has(tbody:empty){display:none}
.rank-scroll table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}.rank-scroll th,.rank-scroll td{text-align:left;padding:7px 5px;border-bottom:1px solid #ddd4b8}.rank-scroll th{position:sticky;top:0;background:#fff6df;color:#607061;font-size:11px}.rank-scroll th:last-child,.rank-scroll td:last-child{text-align:right}.rank-scroll td:nth-child(2){overflow-wrap:anywhere}.rank-scroll tr:nth-child(-n+3) td:first-child{color:#9a6426;font-weight:800}
@media(min-width:761px) and (max-width:1070px){.home-panel{padding:24px}.home-secondary svg{display:none}}
@media(max-width:760px),(min-width:761px) and (max-width:960px) and (orientation:portrait){
 .mast{gap:5px}.mast .identity,.mast nav{gap:4px}.mast .type-tag{display:none}.mast-name{font-size:16px}.mast .creator{gap:4px;padding:3px 4px}.creator img{width:28px;height:28px}.creator b{font-size:11px;padding:3px 4px}.mast .tool{padding-inline:5px}.mast .home-link span{display:none}.mast .sound{min-width:32px;width:32px}
 body:not([data-phase=home]) .mast-name,body:not([data-phase=home]) .identity .brand-mark{display:none}
 body[data-phase=home] .mast-name{display:none}.creator-copy strong{font-size:11px}.creator-copy small{font-size:9px}.mast .medal-link{font-size:11px}
 body[data-phase=home] .layout{display:flex;flex-direction:column;min-height:0;height:auto;max-height:none;gap:0;border-radius:14px}
 body[data-phase=home] .stage{order:0;height:clamp(188px,39svh,380px);flex:none;border:0;border-bottom:2px solid #375442}
 .home-panel{order:1;padding:17px clamp(15px,5vw,36px) 15px;gap:16px}.home-heading,.home-controls{width:100%;max-width:520px;margin-inline:auto}
 #home-title{display:flex;gap:.1em;font-size:clamp(34px,8vw,53px);margin:4px 0 6px}.home-mode{font-size:10px}.home-mode::before{width:14px}#home-rule{font-size:12px;line-height:1.55}.home-play{min-height:45px}
 .home-secondary{margin-top:8px}.home-secondary .minor{min-height:44px}.home-best{margin-top:9px;font-size:11px}.mast .home-link{min-width:36px}
}
@media(max-width:375px){.mast .medal-link svg{display:none}.creator b{padding:3px}.mast .creator-copy small{font-size:9px}}
@media(max-width:960px) and (orientation:portrait){
 body[data-phase=home] .layout{flex:1}
 .home-panel{flex:1;gap:clamp(15px,3.5svh,32px)}
 #home-title{font-size:clamp(37px,8vw,53px)}
}
@media(orientation:landscape) and (max-height:520px){
 body[data-phase=home] .layout{display:grid;grid-template-columns:minmax(215px,.75fr) minmax(0,1.45fr);min-height:0;height:auto;flex:1}
 body[data-phase=home] .stage{grid-column:2;grid-row:1;height:auto;order:0;border:0;border-left:1px solid #526c54}
 .home-panel{grid-column:1;grid-row:1;order:0;padding:10px 16px;gap:10px;overflow:auto}.home-mode{font-size:10px}#home-title{display:block;font-size:clamp(25px,5vw,43px);margin:3px 0}#home-title span,#home-title em{display:inline}#home-rule{font-size:11px;line-height:1.4}
 .home-play,.home-secondary .minor{min-height:36px}.home-secondary{margin-top:6px}.home-best{font-size:10px;margin-top:6px}.mast .creator img{width:23px;height:23px}.mast .creator-copy small{display:none}.mast .tool{min-height:30px}.mast .creator{padding:2px 5px}
}
