:root{font-family:ui-rounded,"Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#293e31;background:#f7f4e9;font-synthesis:none;--green:#244d38;--orange:#d35d32;--muted:#707868;--border:#dddccd;--power:#ad4e31;--speed:#456c91;--teamwork:#8b7131}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #c86d3a;outline-offset:4px}button{border:0}a{color:inherit}.site-header{max-width:1392px;margin:auto;padding:24px 36px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:17px;line-height:1.05;font-weight:900;letter-spacing:1px}.brand>span:last-child>span{display:block;font-size:11px;letter-spacing:6px;margin-top:5px}.brand-ball{font-size:34px;filter:grayscale(1);transform:rotate(-20deg)}.header-actions{display:flex;align-items:center;gap:8px}.version{font-size:10px;font-weight:700;letter-spacing:1.6px;margin-right:22px;color:var(--muted)}.quiet{border:1px solid var(--border);background:transparent;padding:0 15px;min-height:44px;border-radius:6px;font-size:13px;font-weight:650}.quiet:hover:not(:disabled){background:#edeedf}
main{max-width:1320px;margin:auto;padding:0 36px}.intro{display:flex;justify-content:space-between;align-items:center;padding:35px 0 30px;gap:20px}.eyebrow{display:block;font-size:10px;line-height:1.5;font-weight:800;letter-spacing:1.6px;color:var(--muted);text-transform:uppercase}h1,h2,h3,p{margin:0}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,3.2vw,44px);font-weight:500;letter-spacing:-1.5px;margin:8px 0 10px;line-height:1.1}h1 em{font-weight:normal;color:var(--green)}.intro p{font-size:14px;color:var(--muted)}.sandbox-stamp{flex-shrink:0;font-size:10px;text-align:center;border:1px solid #b9bea4;border-radius:50%;width:92px;height:92px;padding-top:18px;letter-spacing:1px;transform:rotate(9deg);color:#5c714f;line-height:1.5}.sandbox-stamp b{font-size:12px;display:block}.sandbox-stamp span{font-size:8px;display:block;margin-top:4px}
.scenarios{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.scenario{display:flex;align-items:center;text-align:left;gap:11px;background:#eeedde;border:1px solid transparent;border-radius:8px;padding:15px 14px;min-height:78px;transition:background .15s,transform .15s}.scenario:hover{transform:translateY(-2px)}.scenario.current{background:var(--green);color:#fff8e7;box-shadow:0 4px 0 #173725}.scenario-number{font-family:Georgia,serif;font-size:21px;opacity:.55}.scenario b{display:block;font-size:13px}.scenario small{display:block;font-size:11px;margin-top:4px;opacity:.7}.scenario-arrow{margin-left:auto;opacity:.6}.practice-note{display:flex;align-items:baseline;gap:15px;padding:23px 0 17px;border-bottom:1px solid var(--border)}.practice-note .eyebrow{white-space:nowrap;color:var(--orange)}.practice-note p{font-size:13px;line-height:1.5;color:#68705f}.game-toolbar{display:flex;align-items:center;justify-content:space-between;margin:7px 0;font-size:12px;font-weight:650}.game-toolbar>div{display:flex;gap:7px}.status-dot{display:inline-block;width:6px;height:6px;background:#7d9a5b;border-radius:50%;margin-right:7px}.text-button{padding:10px 8px;min-height:44px;background:transparent;font-size:12px;font-weight:700;text-decoration:underline;text-decoration-color:#b7beaa;text-underline-offset:4px}.text-button:hover{color:var(--orange)}
.game-layout{display:grid;grid-template-columns:minmax(0, .85fr) minmax(0,1.15fr);gap:22px;align-items:start}.field-column,.play-column{display:grid;gap:16px;min-width:0}.panel{border:1px solid var(--border);border-radius:10px;background:#fffdf6;padding:22px}.ballpark{background:#234632;color:#fdf4dd;border-radius:11px;overflow:hidden;box-shadow:0 5px 0 #dcdccd;padding:23px 24px 0}.scoreboard{display:grid;grid-template-columns:1fr .9fr 1fr;text-align:center;border-bottom:1px solid #ffffff1c;padding-bottom:19px}.scoreboard>div>span{display:block;font-size:9px;letter-spacing:1.5px;color:#c5d0b3;font-weight:700}.scoreboard strong{display:block;font-family:Georgia,serif;font-size:48px;line-height:1.15;color:#fcf4dc}.scoreboard small{display:block;font-size:10px;color:#b8c8ad}.inning-label{border-left:1px solid #ffffff1c;border-right:1px solid #ffffff1c}.inning-label b{display:block;font-family:Georgia,serif;font-size:18px;font-style:italic;font-weight:normal;line-height:3.1;color:#b8c8ad}.field{width:100%;height:246px;display:block;margin-top:10px}.base-caption{text-align:center;font-size:11px;line-height:1.5;color:#d0d6bb;min-height:22px;margin-bottom:12px}.field-footer{border-top:1px solid #ffffff22;display:flex;justify-content:space-between;align-items:center;padding:14px 0;font-size:11px;color:#cbd7b8}.role-pill{font-weight:700;color:#fcf3d9}.section-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.section-top h3{font-size:16px;margin-top:4px;letter-spacing:-.3px}.opponent{padding:19px 22px}.opponent p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:9px}.sealed{font-size:32px;color:#7b8d67;transform:rotate(9deg);background:repeating-linear-gradient(45deg,#e3e6d6 0 3px,#eef0e5 3px 6px);border:3px double #7b8d67;width:36px;height:45px;text-align:center;line-height:39px;border-radius:4px}
.resources{display:flex;gap:9px;margin:18px 0}.resource{display:flex;align-items:center;gap:7px;border-radius:6px;background:#f2e8dc;padding:10px 12px;flex:1;white-space:nowrap}.resource.power{background:#f6e9df;color:var(--power)}.resource.speed{background:#e9eff2;color:var(--speed)}.resource.teamwork{background:#f3efda;color:var(--teamwork)}.resource i{font-style:normal;font-size:20px}.resource b{font-size:20px;line-height:1}.resource span{font-size:10px;font-weight:700;letter-spacing:.1px}.resources.small{margin:12px 0 0;gap:6px}.small .resource{padding:7px;gap:5px}.small .resource i,.small .resource b{font-size:15px}.small .resource span{font-size:9px}.subtle{font-size:10px;color:var(--muted);text-align:right;max-width:110px}.animals{margin-top:12px}.animal{display:flex;gap:10px;align-items:center;padding:13px 0;border-top:1px solid #e6e6d9}.portrait{display:grid;place-items:center;width:41px;height:45px;flex-shrink:0;border-radius:8px;font-size:26px;background:#eeeddf}.active-animal .portrait{outline:2px solid #a3af88;outline-offset:2px}.animal-copy{flex:1;min-width:0}.animal-copy b{display:block;font-size:12px}.animal-copy small{font-weight:400;color:var(--muted);font-size:10px}.animal-copy p{font-size:10px;color:#69715f;line-height:1.5;margin-top:3px}.upgrade-copy{font-size:10px;display:block;color:#69715f;line-height:1.5;margin-top:3px}.develop{border:1px solid #c7d1b7;background:#f5f6eb;border-radius:5px;padding:7px 9px;font-size:10px;font-weight:800;min-height:44px;min-width:70px}.develop.queued{color:white;background:var(--green);border-color:var(--green)}.develop:disabled{opacity:.6}.footnote{font-size:10px;line-height:1.65;color:var(--muted);margin-top:12px}.centered{text-align:center}
h2{font-family:Georgia,serif;font-size:26px;line-height:1.2;letter-spacing:-.6px;font-weight:500;margin-top:4px}.turn-animal{font-size:29px;width:48px;height:48px;display:grid;place-items:center;background:#f0eedf;border-radius:50%}.choice-intro{font-size:12px;color:var(--muted);line-height:1.6;margin-top:9px}.hand{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.play-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;background:#f7f4e8;border:1px solid #dcdccc;border-radius:8px;padding:13px;position:relative;transition:transform .15s,box-shadow .15s;min-height:229px;overflow:hidden}.play-card:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 4px 8px #293e3110}.play-card.selected{border:2px solid #376d49;padding:12px;box-shadow:0 0 0 2px #d6dfc9;background:#f0f3e5}.play-card.selected:after{content:'✓';position:absolute;top:44px;right:14px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:white;font-size:11px;width:22px;height:22px}.play-card:disabled{opacity:.5}.card-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.card-top>span:first-child{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#6c7d58;font-weight:800}.pressure .card-top>span:first-child{color:#8d6934}.signature .card-top>span:first-child{color:#ac4f33}.strength{font-family:Georgia,serif;font-weight:700;font-size:22px;line-height:1;white-space:nowrap}.strength small{font:700 7px/1 sans-serif;letter-spacing:1px;display:inline-block;max-width:30px}.card-art{height:40px;font-family:Georgia,serif;font-size:45px;line-height:35px;color:#90a67b;margin:6px 0}.pressure .card-art{color:#b19a65}.signature .card-art{color:#cf8b62}.play-card strong{font-family:Georgia,serif;font-size:19px;line-height:1.2;letter-spacing:-.4px;font-weight:600}.hit-type{font-size:9px;color:#778169;margin-top:4px;text-transform:uppercase;letter-spacing:.5px}.card-description{font-size:11px;color:#61705c;line-height:1.5;margin:10px 0 13px}.card-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;border-top:1px solid #dddfce;padding-top:9px;margin-top:auto;font-size:9px;color:var(--muted);font-weight:600}.free{color:#737e63}.token{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;font-weight:800;font-size:11px}.token i{font-style:normal;font-size:14px}.token.power{color:var(--power)}.token.speed{color:var(--speed)}.token.teamwork{color:var(--teamwork)}
.boost-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:24px;border-top:1px solid var(--border);padding-top:20px}.boost-row h3{font-size:13px;margin-top:4px}.boost-row p{font-size:10px;color:var(--muted);margin-top:6px}.stepper{display:flex;align-items:center;gap:7px;flex-shrink:0;border:1px solid #d7dccc;border-radius:6px;background:#f6f5ec}.stepper button{width:44px;height:44px;background:transparent;font-size:21px}.stepper b{font-size:13px;min-width:12px;text-align:center}.commit-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;padding:20px 0 13px;color:#66705c;min-height:50px}.queued-note{font-size:10px;text-align:right;color:#3e6d49}.primary{width:100%;background:var(--green);color:#fff8e6;border-radius:6px;padding:15px 19px;min-height:51px;font-size:14px;font-weight:700;display:flex;justify-content:center;align-items:center;gap:17px;box-shadow:0 3px 0 #183b2a}.primary:disabled{opacity:.4;box-shadow:none}.primary span{font-size:20px;line-height:1}.inline-error{font-size:12px;line-height:1.6;color:#993f2b;padding:10px;border:1px solid #e2ba9e;border-radius:5px;background:#fff0e3;margin-bottom:14px}
.result h2{font-size:35px;margin:8px 0 23px}.reveal-pair{display:grid;grid-template-columns:1fr 1fr;position:relative;gap:12px}.revealed-card{text-align:center;background:#ecf0e2;border:1px solid #cad3bb;border-radius:9px;padding:20px 12px;animation:reveal .4s ease-out both}.their-reveal{background:#f4ebdd;border-color:#dccbb3;animation-delay:.12s}.revealed-card .eyebrow{font-size:9px}.reveal-animal{display:block;font-size:41px;margin:14px 0}.revealed-card h3{font-family:Georgia,serif;font-weight:500;font-size:22px}.revealed-card p{font-size:10px;color:var(--muted);line-height:1.6;margin-top:8px}.reveal-strength{margin-top:14px}.reveal-strength strong{font-family:Georgia,serif;font-size:46px;display:block;line-height:1}.reveal-strength span{display:block;font-size:10px;margin-top:5px}.versus{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:32px;height:32px;border-radius:50%;background:#fffdf6;display:grid;place-items:center;font-size:9px;font-weight:800;z-index:1}.result-explanation{font-size:15px;line-height:1.8;margin:23px 0}.gain-box{background:#f5f4e9;padding:15px;border-radius:7px;display:grid;gap:10px}.gain-box>div{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.gain-box b{font-weight:650}.result .action-row{margin-top:25px}.result>.text-button{display:block;margin:12px auto 0}.recap{text-align:center;padding:32px 28px}.recap-icon{font-size:60px;margin:25px 0}.recap h2{font-size:35px;max-width:340px;margin:0 auto}.recap>p{font-size:14px;line-height:1.8;color:var(--muted);margin:18px 0}.recap-stats{display:flex;justify-content:space-around;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:23px 0;margin:28px 0}.recap-stats strong{font-family:Georgia,serif;font-size:32px;display:block}.recap-stats span{font-size:10px;color:var(--muted);display:block;margin-top:5px}.recap .footnote{font-size:10px}
details{font-size:12px}summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;font-weight:700;gap:15px;list-style:none}summary:after{content:'+';font-size:20px;font-weight:400}details[open]>summary:after{content:'−'}summary::-webkit-details-marker{display:none}.play-log,.reflection{padding:8px 20px}.play-log summary span{font-size:10px;margin-left:auto;color:var(--muted);font-weight:500}.play-log ol{list-style:none;padding:0;margin:8px 0 13px}.play-log li{display:flex;gap:12px;border-top:1px solid var(--border);padding:13px 0}.play-log li>span{color:var(--orange);font-size:10px;font-weight:800;padding-top:3px;min-width:18px}.play-log li b{font-size:12px}.play-log li p{font-size:11px;line-height:1.6;color:var(--muted);margin-top:4px}.reflection>p{font-size:12px;line-height:1.7;color:var(--muted);margin:9px 0 16px}label{font-size:12px;display:block;font-weight:700}label small{font-size:10px;font-weight:400;color:var(--muted)}textarea{display:block;width:100%;border:1px solid var(--border);border-radius:6px;background:#fffdf7;padding:10px;margin-top:7px;font-size:13px;line-height:1.6;resize:vertical}.reflection .text-button{margin:9px 0}footer{border-top:1px solid var(--border);margin:40px 0 0;padding:24px 0;display:flex;justify-content:space-between;gap:15px;color:#7a816f;font-size:9px;letter-spacing:1px}footer>span:last-child{letter-spacing:0}
dialog{background:#fffdf4;color:#293e31;border:1px solid #d1d5c1;border-radius:12px;padding:28px;width:min(590px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-shadow:0 20px 100px #15271944}dialog::backdrop{background:#15271988;backdrop-filter:blur(3px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding-bottom:17px;margin-bottom:20px}.dialog-header h2{font-size:29px}.close{background:#eeefdf;border-radius:50%;width:44px;height:44px;font-size:25px;flex-shrink:0}.rules-content p,.rules-content li,#settings-form p{font-size:13px;line-height:1.8;color:#63705c}.rules-content ol,.rules-content ul{padding-left:20px}.rules-content li{padding-left:5px;margin:8px 0}.rules-content .lead{font-family:Georgia,serif;font-size:20px;line-height:1.6;color:var(--green)}.rules-content h3{font-size:14px;margin:22px 0 8px}.rules-content p+p{margin-top:10px}#settings-form label{margin-top:22px;display:flex;align-items:center;justify-content:space-between;gap:14px}select{font-size:16px;min-height:44px;border:1px solid var(--border);border-radius:5px;background:#f9f8ee;color:var(--green);padding:9px;min-width:130px}#settings-form>small{display:block;font-size:11px;line-height:1.6;color:var(--muted);margin-top:8px}.dialog-actions{display:grid;gap:12px;margin-top:30px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.upgrade-list{font-size:10px!important}
@keyframes reveal{from{opacity:0;transform:translateY(9px) rotateY(35deg)}to{opacity:1;transform:none}}

.version{display:none}.site-header{padding:20px 24px}main{padding:0 24px}.game-layout{gap:16px;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.panel{padding:17px}.ballpark{padding:19px 16px 0}.field{height:224px}.resources{gap:5px}.resource{padding:10px 8px;gap:5px}.resource span{font-size:9px}.animal{flex-wrap:wrap;gap:8px}.animal-copy{flex-basis:calc(100% - 60px)}.develop{margin-left:49px;min-height:44px}.animal-copy p,.upgrade-copy{font-size:10px}.roster .footnote{font-size:9px}.scenario{gap:8px;padding:13px 10px}.scenario b{font-size:12px}.scenario small{font-size:10px}.scenario-arrow{display:none}.card-description{font-size:10px}.play-card{padding:11px;min-height:239px}.play-card.selected{padding:10px}.play-card strong{font-size:18px}.play-log,.reflection{padding:8px 16px}

.site-header{padding:15px 16px}.brand{font-size:14px}.brand>span:last-child>span{font-size:9px;letter-spacing:4px}.brand-ball{font-size:27px}.header-actions{gap:5px}.quiet{font-size:11px;padding:0 10px}main{padding:0 16px}.intro{padding:27px 0 25px}.intro .eyebrow{font-size:8px}h1{font-size:34px;max-width:310px;line-height:1.1}h1 em{display:block}.intro p{font-size:12px}.sandbox-stamp{display:none}.scenarios{grid-template-columns:1fr 1fr;gap:9px}.scenario{min-height:72px;padding:12px}.scenario b{font-size:12px}.scenario small{font-size:10px}.scenario-number{font-size:21px}.practice-note{display:block;padding:20px 0 15px}.practice-note p{margin-top:5px;font-size:12px}.game-layout{display:flex;flex-direction:column;gap:16px}.field-column,.play-column{display:contents}.ballpark{order:0;width:100%;padding:18px 18px 0}.choices,.result,.recap{order:1;width:100%;padding:18px}.opponent{order:2;width:100%}.roster{order:3;width:100%}.play-log{order:4;width:100%}.reflection{order:5;width:100%}.field{height:180px;margin-top:0}.scoreboard{padding-bottom:10px}.scoreboard strong{font-size:36px}.scoreboard small{font-size:9px}.scoreboard>div>span{font-size:8px}.inning-label b{font-size:15px;line-height:2.8}.base-caption{font-size:10px;margin-bottom:5px}.field-footer{padding:11px 0}.resource span{font-size:10px}.resource{padding:9px 7px}.play-card{min-height:229px}.card-description{font-size:11px}.play-card strong{font-size:19px}.card-bottom{font-size:8px}.hand{gap:10px}.animal{flex-wrap:nowrap}.animal-copy{flex-basis:auto}.develop{margin-left:0;min-height:44px}.animal-copy p,.upgrade-copy{font-size:11px}.subtle{font-size:10px}.reflection,.play-log{padding:8px 18px}.result h2{font-size:31px}.revealed-card h3{font-size:20px}.choices .action-row{padding-top:5px}.commit-summary{font-size:10px}footer{display:block;margin-top:25px;font-size:8px;line-height:2}footer span{display:block}dialog{padding:22px}.dialog-header h2{font-size:25px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Phone-first practice flow: the hand comes before optional detail. */
.scenario-picker{border:1px solid var(--border);border-radius:9px;background:#eeedde;padding:0 16px}
.scenario-picker>summary{min-height:62px;gap:12px}
.scenario-picker>summary>span:first-child{display:grid;gap:4px}
.scenario-picker summary small{font-size:9px;letter-spacing:1.2px;color:var(--muted)}
.scenario-picker summary b{font-size:14px}
.change-scenario{margin-left:auto;font-size:11px;color:#596b4f}
.scenario-picker .scenarios{padding:5px 0 16px}
.upgrade-panel{margin-top:18px;border:1px solid #cdd5be;border-radius:8px;background:#f2f4e8}
.upgrade-panel>summary{padding:13px 14px;min-height:66px}
.upgrade-panel>summary b{font-size:13px}
.upgrade-panel>summary small{display:block;font-size:11px;font-weight:400;color:#63715a;margin-top:5px}
.upgrade-panel .roster{border:0;border-top:1px solid #d6ddc9;border-radius:0 0 8px 8px;background:transparent;padding:15px}
.upgrade-intro{font-size:12px;line-height:1.65;color:#596c51;margin-top:12px}
.upgrade-panel .animal{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:start;padding:16px 0}
.upgrade-panel .portrait{width:34px;height:40px;font-size:25px}
.upgrade-panel .animal-copy b{font-size:13px}
.upgrade-panel .animal-copy small{display:block;font-size:11px;margin-top:3px}
.upgrade-panel .animal-copy p{font-size:12px;line-height:1.5;margin-top:8px}
.upgrade-before>span,.upgrade-after>span{display:inline-block;font-weight:800;min-width:43px}
.upgrade-panel .upgrade-after{color:#234d38}
.upgrade-panel .upgrade-copy{font-size:11px;line-height:1.5;margin-top:8px}
.upgrade-panel .develop{grid-column:2;margin:0;justify-self:start;min-height:44px;font-size:12px;padding:10px 14px}
.upgrade-panel .footnote{font-size:11px}
.upgrade-impact{font-size:12px;line-height:1.6;padding:13px 15px;border-top:1px solid #d6ddc9;background:#e6eed9;border-radius:0 0 8px 8px}
.reveal-upgrade{font-weight:700;color:var(--green)!important}

 .site-header{padding:12px}.brand{font-size:13px;gap:6px}.brand-ball{font-size:23px}.brand>span:last-child>span{font-size:8px;letter-spacing:4px}.header-actions{gap:5px}.quiet{padding:0 8px;font-size:11px}
 main{padding:0 12px}.intro{padding:20px 0 18px}.intro .eyebrow{display:none}h1{font-size:29px;max-width:none;letter-spacing:-1px;margin:0 0 7px}h1 em{display:inline}.intro p{font-size:12px;line-height:1.5;max-width:300px}
 .practice-note{padding:12px 0;border:0}.practice-note .eyebrow{display:none}.practice-note p{font-size:12px;margin:0;line-height:1.55}.game-toolbar{font-size:11px;margin:0 0 4px}.game-toolbar>div{gap:0}.text-button{font-size:11px}
 .game-layout{gap:13px}.ballpark{padding:13px 14px 0;display:grid;grid-template-columns:minmax(0,1fr) 112px;column-gap:8px}.scoreboard{border:0;align-self:center;gap:5px;padding:0}.scoreboard strong{font-size:32px}.scoreboard small{font-size:9px;line-height:1.5}.scoreboard>div>span{font-size:7px;letter-spacing:.5px}.inning-label b{font-size:13px;line-height:2.4}.field{height:105px;margin:0}.base-caption{grid-column:1/-1;font-size:11px;margin:3px 0 8px;min-height:17px}.field-footer{grid-column:1/-1;padding:10px 0;font-size:11px}
 .choices,.result,.recap{padding:16px}.section-top h2{font-size:26px}.choice-intro{font-size:13px;line-height:1.6}.resources{gap:6px;margin:16px 0}.resource{padding:10px 7px;gap:5px;flex-wrap:wrap}.resource i,.resource b{font-size:18px}.resource span{font-size:10px}.hand{gap:9px}.play-card{min-height:210px;padding:11px}.play-card.selected{padding:10px}.play-card strong{font-size:19px}.card-art{height:25px;font-size:34px;line-height:25px;margin:5px 0 9px}.card-description{font-size:12px;line-height:1.5;margin:9px 0 11px}.card-top>span:first-child{font-size:9px}.card-bottom{font-size:10px;line-height:1.4}.hit-type{font-size:10px;line-height:1.5}.play-card.selected:after{top:36px;right:9px}.boost-row{margin-top:18px;padding-top:16px;gap:8px}.boost-row p{font-size:11px;line-height:1.5;max-width:160px}.boost-row h3{font-size:13px}.stepper{gap:0}.stepper button{width:44px}.stepper b{min-width:14px}.commit-summary{font-size:12px;align-items:flex-start;line-height:1.6}.queued-note{font-size:11px;max-width:100px}.footnote{font-size:11px}.result-explanation{font-size:14px}.revealed-card{padding:16px 8px}.revealed-card h3{font-size:20px}.revealed-card p{font-size:12px}.gain-box{padding:12px}.gain-box>div{font-size:12px;flex-wrap:wrap}textarea{font-size:16px}dialog{padding:18px}

@media (max-width:350px){.site-header{flex-wrap:wrap;gap:8px}.header-actions{margin-left:auto}.brand{font-size:12px}.brand-ball{display:none}.ballpark{grid-template-columns:minmax(0,1fr) 85px;column-gap:4px}.scoreboard small{font-size:8px}.field{height:90px}.choices,.result,.recap{padding:12px}.resource{gap:4px}.resource span{font-size:9px}.play-card strong{font-size:17px}.card-description{font-size:11px}.boost-row{flex-wrap:wrap}.stepper{margin-left:auto}.revealed-card h3{font-size:18px}.scenario{padding:10px 8px}.scenario-number{display:none}}

/* Scenario selection is the entry point, without a game underneath. */
.scenario-start { max-width: 760px; margin: 0 auto; padding-top: 32px; }
.scenario-start h1 { font-size: 34px; margin: 0 0 26px; }
.scenario-start .scenarios { grid-template-columns: 1fr; gap: 12px; }
.scenario-start .scenario { min-height: 92px; padding: 22px; text-align: left; }
.scenario-start .scenario b { font-size: 18px; }
.scenario-start .scenario small { font-size: 13px; line-height: 1.5; margin-top: 7px; }
.scenario-start .scenario-arrow { display: block; margin-left: auto; }
.scenario-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 8px; }
.scenario-current h1 { font-size: 24px; margin: 0; }
.scenario-start > .text-button { margin-top: 18px; }

 .scenario-start { padding-top: 28px; }
 .scenario-start h1 { font-size: 30px; }
 .scenario-current h1 { font-size: 22px; }


/* App-sized play surface. Secondary screens use the native dialog. */
.playing .site-header{padding:6px 16px;max-width:1000px;min-height:56px}
.playing main{max-width:1000px;padding:0 12px 12px}
.playing .scenario-current{padding:4px 0;min-height:48px}
.playing .scenario-current h1{font-size:20px}
.playing .game-layout{display:flex;flex-direction:column;gap:8px}
.playing .field-column,.playing .play-column{display:contents}
.playing main .ballpark{width:100%;display:grid;grid-template-columns:1fr auto;padding:8px 12px;box-shadow:none;gap:4px 12px}
.playing main .scoreboard{display:flex;align-items:center;gap:12px;border:0;padding:0}
.playing main .scoreboard>div{display:flex;align-items:center;gap:7px}
.playing main .scoreboard>div>span{font-size:9px;letter-spacing:0}
.playing main .scoreboard strong{font-size:26px}
.playing main .scoreboard small,.playing main .inning-label b,.playing main .inning-label>span{display:none}
.playing main .inning-label{border:0;order:3;margin-left:auto}
.playing main .inning-label small{display:block;font-size:10px}
.playing main .field{display:none}
.playing main .base-caption{grid-column:1;margin:0;text-align:left;min-height:0;font-size:10px}
.playing main .field-footer{grid-column:2;grid-row:1 / 3;border:0;padding:0;font-size:10px}
.playing main .field-footer>span:last-child{display:none}
.playing .choices,.playing .result,.playing .recap{width:100%;padding:12px}
.playing .section-top h2{font-size:23px;margin:0}
.playing .turn-animal{width:32px;height:32px;font-size:23px}
.playing .resources{margin:8px 0;gap:6px}
.playing .resource{padding:7px;flex-wrap:nowrap}
.playing .resource b,.playing .resource i{font-size:17px}
.playing .resource span{font-size:10px}
.playing .hand{gap:8px;grid-template-columns:repeat(4,minmax(0,1fr))}
.playing .play-card,.playing .play-card.selected{min-height:140px;padding:9px;border-width:1px;gap:3px}
.playing .play-card strong{font-size:18px}
.playing .card-art,.playing .card-top>span:first-child{display:none}
.playing .card-top{position:absolute;right:8px;top:8px}
.playing .strength{font-size:18px}
.playing .strength small{font-size:6px;letter-spacing:0}
.playing .play-card strong{padding-right:37px;min-height:40px}
.playing .hit-type{font-size:9px;line-height:1.3;letter-spacing:0;margin:0}
.playing .card-bottom{padding-top:5px;gap:3px;font-size:10px;line-height:1.2}
.playing .card-bottom>span{display:block}
.playing .play-card.selected:after{top:auto;bottom:7px;right:7px;width:16px;height:16px;font-size:9px}
.play-card[aria-disabled=true]{background:#efeee7;border-style:dashed;cursor:help}
.card-unavailable{color:#943c28;font-size:11px;font-weight:700;line-height:1.3;margin-top:3px}
.locked-explanation{font-size:15px;line-height:1.7;margin-bottom:16px}
.playing .upgrade-trigger{margin-top:8px;width:100%;text-align:left}
.playing .boost-row{margin-top:6px;padding-top:0;border:0;flex-wrap:nowrap;min-height:44px}
.playing .boost-row h3{margin:0}
.playing .boost-row p{margin-top:2px;max-width:none;font-size:10px}
.playing .commit-summary{min-height:0;padding:6px 0;font-size:11px;line-height:1.4}
.playing .primary{min-height:46px;padding:12px}
.playing .choices .action-row{padding:0}
.menu-actions{display:grid;gap:10px}
.playing .result h2{font-size:27px;margin:0 0 12px}
.playing .revealed-card{padding:12px 8px}
.playing .reveal-animal{font-size:28px;margin:0 0 8px}
.playing .revealed-card h3{font-size:20px}
.playing .reveal-strength{margin-top:8px}
.playing .reveal-strength strong{font-size:32px}
.playing .revealed-card p{font-size:11px;margin-top:5px}
.playing .result-explanation{font-size:13px;line-height:1.5;margin:12px 0}
.playing .gain-box{padding:10px;gap:5px}
.playing .result .action-row{margin-top:12px}
.playing .result>.text-button{margin:4px auto 0}
.playing .recap-icon{font-size:40px;margin:8px 0}
.playing .recap-stats{margin:15px 0;padding:15px 0}
dialog .ballpark{margin-bottom:12px}dialog .play-log{margin-top:12px}

 .playing .hand{grid-template-columns:repeat(2,minmax(0,1fr))}
 .playing .play-card,.playing .play-card.selected{min-height:116px}
 .playing .play-card strong{font-size:16px;min-height:36px;line-height:1.1}
 .playing .site-header{flex-wrap:nowrap}
 .playing .brand-ball{display:block}
 .playing .scoreboard{gap:8px!important}
 .playing main .scoreboard>div{gap:4px}
 .playing main .scoreboard>div>span{font-size:8px}
 .playing main .ballpark{gap:3px 5px;padding:7px 9px}
 .playing main .field-footer{font-size:9px}
 .playing .section-top h2{font-size:21px}

@media (max-width:360px){
 .playing main{padding:0 8px 8px}.playing .choices{padding:8px}
 .playing .resource span{font-size:9px}.playing .resource{gap:3px}
 .playing main .field-footer{display:none}.playing main .ballpark{grid-template-columns:1fr}
 .playing .card-bottom{font-size:9px}.playing .token{font-size:10px}
}
@media (max-width:360px){
 .playing .scenario-current{min-height:44px}.playing .scenario-current h1{font-size:18px}
 .playing .play-card,.playing .play-card.selected{padding:7px;min-height:110px}
 .playing .card-unavailable{font-size:10px}.playing .site-header{min-height:52px;padding-top:4px;padding-bottom:4px}
}
@media (max-width:360px){
 .playing .result{padding:10px}.playing .result h2{font-size:23px;margin-bottom:8px}
 .playing .revealed-card{padding:8px 6px}.playing .revealed-card h3{font-size:17px}
 .playing .reveal-animal{font-size:22px;margin-bottom:4px}.playing .revealed-card p{font-size:10px;line-height:1.4}
 .playing .result-explanation{margin:8px 0;font-size:12px}.playing .gain-box>div{font-size:10px}
}

/* Teammates: phone-first pre-match draft and compact in-game abilities. */
.lineup-heading h1{margin:6px 0 10px}.lineup-heading p{line-height:1.5;color:var(--muted,#687566);margin-bottom:18px}
.batting-order{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:6px}
.batting-order li{display:flex;align-items:center;gap:8px;background:#fffaf0;border:1px solid #dedfce;border-radius:12px;padding:4px 6px}
.order-number{font-size:13px;color:#687566;width:22px;text-align:center}.order-name{font-weight:700;flex:1}
.order-move{width:44px;min-height:44px;border:1px solid #d4dccb;border-radius:8px;background:#f4f4e9;color:#254b39;font-size:20px;cursor:pointer}.order-move:disabled{opacity:.35;cursor:default}
.draft-roster{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.teammate-card{display:flex;flex-direction:column;gap:10px;background:#fffdf5;color:#254b39;border:1px solid #cfd8c5;border-radius:14px;padding:14px;text-align:left;min-width:0;font:inherit}
button.teammate-card{cursor:pointer}.teammate-card.selected{border:2px solid #326347;padding:13px;background:#eff4e5}.teammate-card:disabled{opacity:.72;cursor:default}
.teammate-heading{display:flex;align-items:center;gap:8px}.teammate-heading b{display:block;font-size:18px}.teammate-heading small{display:block;font-size:11px;color:#63725f}.teammate-portrait{font-size:29px}.draft-check{margin-left:auto;color:#326347;font-size:18px}
.teammate-ability{font-size:13px;line-height:1.5}.signature-description{font-size:11px;line-height:1.5;color:#705820;border-top:1px solid #e5dfc9;padding-top:8px;margin-top:auto}
.draft-hint,.rival-lineup{font-size:12px;line-height:1.5;margin:14px 0;color:#58654f}.lineup-start{margin:12px 0}.lineup-start button{width:100%;min-height:48px}
.club-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#eff2e7;border-radius:12px;padding:14px;margin-top:20px;text-align:left}.club-progress b{font-size:14px}.club-progress p{font-size:12px;line-height:1.5;margin:6px 0 0}.club-progress .quiet{flex-shrink:0;min-height:44px}.match-reward{color:#386644;font-weight:700}
.recruit-options{display:grid;gap:12px;margin:16px 0}.recruit-options p{font-size:13px;line-height:1.5}.recruit-options button{min-height:44px}
.batter-ability{font-size:11px;line-height:1.45;color:#4f604a;display:flex;justify-content:space-between;gap:10px;margin:6px 0}.batter-ability small{flex-shrink:0;font-size:10px;color:#687566}
.team-actions{display:flex;gap:8px;margin-top:8px}.playing .team-actions .upgrade-trigger{width:auto;flex:1;margin:0;min-height:46px;font-size:12px}.signature-control{flex:1;text-align:left;min-height:46px;border:1px solid #cab772;background:#fcf6df;color:#55461f!important;line-height:1.3}.signature-control span{font-size:12px;display:block}.signature-control small{display:block;font-size:10px;font-weight:400;margin-top:3px}.signature-control.queued{background:#f5e7ab;border-color:#86712c}.signature-control:disabled{opacity:.6}
.scenario-start:has(.lineup-heading){padding-top:8px}.teammate-card{padding:11px;gap:8px}.teammate-card.selected{padding:10px}.teammate-heading b{font-size:16px}.teammate-portrait{font-size:24px}.draft-roster{gap:8px}.teammate-ability{font-size:12px}.club-progress{flex-wrap:wrap}.batter-ability{display:block}.batter-ability small{display:block;margin-top:2px}
@media (max-width:360px){.batter-ability{font-size:10px;margin:4px 0}.batter-ability small{display:none}.team-actions{gap:5px}.signature-control{padding:6px!important}.signature-control span{font-size:11px}.playing .team-actions .upgrade-trigger{padding:6px;font-size:11px}.teammate-card{padding:9px}.teammate-card.selected{padding:8px}.teammate-heading{gap:4px}.teammate-heading b{font-size:15px}.teammate-portrait{font-size:20px}}
.public-lineup{padding:0 0 0 22px;margin-top:14px}.public-lineup li{margin:12px 0;font-size:13px}.public-lineup span,.public-lineup small{display:block;font-size:12px;line-height:1.5;margin-top:3px;color:#58654f}

/* Full innings first; short drills live in the optional Practice section. */
.home-actions{display:grid;gap:12px}
.home-actions>.primary,.home-actions>.quiet{width:100%;min-height:52px;font-size:17px}
.home-hint{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.practice-entry{margin-top:28px;border-top:1px solid var(--border);padding-top:20px}
.practice-link{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:76px;padding:16px 18px;border-radius:8px;background:#eeedde;text-align:left}
.practice-link b{display:block;font-size:17px}
.practice-link small{display:block;margin-top:6px;font-size:13px;color:var(--muted)}
.scenario-start>.text-button:first-child{margin-top:0;margin-bottom:14px}

.multiplayer-link{display:flex;align-items:center;justify-content:center;min-height:44px;text-decoration:none;color:#254b39;margin-top:8px}

.brand-icon{display:block;width:40px;height:40px;border-radius:9px;flex-shrink:0}.brand-icon{width:32px;height:32px;border-radius:7px}

/* Friend games share one home without replacing the independent solo save. */
.saved-games{margin:0 0 24px;text-align:left}.saved-games h2{font-size:20px;margin:0 0 12px}.saved-games h2 span{font-weight:400}.saved-room-list{display:grid;gap:10px}.saved-room{display:grid;gap:7px;min-height:88px;padding:16px;border:1px solid #b9c8b5;border-radius:14px;background:#fffdf4;text-decoration:none;color:#254b39;overflow-wrap:anywhere}.saved-room:hover{background:#edf1df}.saved-room:focus-visible{outline:3px solid #a73525;outline-offset:3px}.saved-room-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.saved-room-heading b{min-width:0;font-size:17px}.saved-room-heading strong{white-space:nowrap;font-size:21px}.saved-room-status{font-size:14px;font-weight:650}.saved-room small,.saved-games-note,.saved-games-empty{font-size:13px;line-height:1.5;color:#516455}.saved-room small{display:flex;justify-content:space-between}.saved-games-note{margin:10px 0 0}.completed-games{margin-top:12px}.completed-games summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:650}.home-actions>a.primary{background:#254b39;color:#fff9e5;border-radius:12px;margin:0}.multiplayer [data-room-list]{margin-top:18px}

/* Sandlot game skin: logo brick, parchment, ink and selection gold. */
:root{--ink:#142e42;--brick:#a73525;--cream:#fff0cc;--gold:#efbc64;--green:#142e42;--orange:#a73525;--muted:#65686a;--border:#d6bc91;color:var(--ink);background:#a73525}
body{min-height:100svh;background:radial-gradient(ellipse at 50% 0,#c24b32 0,transparent 65%),repeating-linear-gradient(125deg,#ffffff03 0 2px,transparent 2px 8px),#a73525}
h1,h2,.play-card strong{font-family:ui-rounded,"Avenir Next",Avenir,sans-serif;font-weight:900;letter-spacing:-.7px}
.site-header,.playing .site-header{max-width:1000px;border:0;padding:8px 16px;min-height:64px;color:var(--cream)}
.brand{font-size:15px;letter-spacing:1px}.brand>span:last-child>span{font-size:10px;letter-spacing:4px}.brand-icon{width:42px;height:42px;border-radius:10px;box-shadow:0 2px 0 #70251e}
.site-header .quiet{color:var(--cream);border-color:#f3d29c66;background:#7e271c55;border-radius:12px}
.primary,.home-actions>a.primary,.multiplayer .primary{background:var(--ink);color:var(--cream);border-radius:14px;box-shadow:0 4px 0 #091c29;font-weight:850;min-height:48px;transition:transform .15s,box-shadow .15s}
.primary:hover:not(:disabled),.home-actions>a.primary:hover,.multiplayer .primary:hover:not(:disabled){background:#244c6a;color:var(--cream)}
.primary:active{transform:translateY(2px);box-shadow:0 2px 0 #091c29}.primary:disabled{opacity:.55}
.quiet{background:#fff2d8;border:1px solid #d2b58b;border-radius:10px;color:var(--ink)}.quiet:hover:not(:disabled){background:#ffe6b1;color:var(--ink)}
.site-header .quiet:hover:not(:disabled){background:var(--ink);color:var(--cream);border-color:var(--gold)}
.panel{background:#fff4dc;border:1px solid #e5c694;border-radius:18px;box-shadow:0 4px 0 #71251f33}
.scenario-start{max-width:700px;margin:0 auto;padding:12px 16px 24px;color:var(--cream)}
.scenario-start h1{font-size:30px;line-height:1.08;margin:6px 0 20px}.home-crest{text-align:center;margin:10px 0 18px}.home-crest img{width:clamp(112px,21svh,180px);height:auto;border-radius:26%;transform:rotate(-5deg);box-shadow:0 8px 0 #76271c,0 15px 35px #52180f40;border:3px solid #f6d69c}
.at-home .scenario-start{text-align:center;max-width:470px}.at-home .scenario-start h1{font-size:32px;max-width:300px;margin:0 auto 24px}
.home-actions{gap:12px}.home-actions>.quiet{box-shadow:0 4px 0 #73291f;border:0}.home-hint{color:#ffe6bc;font-size:12px;margin:4px 0}
.practice-entry{margin-top:16px;padding:0;border:0}.practice-link{padding:10px 14px;min-height:58px;background:#832b20;color:#fff0cc;border:1px solid #efbc6455;border-radius:14px}.practice-link b{font-size:15px}.practice-link small{color:#f6d7ac;font-size:12px;margin-top:3px}
.club-progress{margin-top:12px;background:#ffe9bf;color:var(--ink);padding:10px 12px}.club-progress b{font-size:12px}.club-progress p{font-size:11px}.club-progress .quiet{font-size:12px}
.saved-games{margin-bottom:14px}.saved-games h2{color:var(--cream);font-size:18px}.saved-room-list{max-height:230px;overflow:auto;padding:3px}.saved-room{background:#fff0cc;border:0;padding:12px;min-height:78px;box-shadow:0 3px 0 #70251e}.saved-games-empty,.saved-games-note{color:inherit}.completed-games summary{color:inherit}
.scenario-start .scenario{background:#fff0cc;color:var(--ink);border-radius:16px;box-shadow:0 4px 0 #76271c;min-height:90px;padding:16px}.scenario-start>.text-button{color:var(--cream)}
/* A roster board, not six long profile articles. Full powers stay in the guide. */
.drafting .scenario-start{max-width:760px;padding-top:0}.lineup-heading{position:relative}.lineup-heading .text-button{color:var(--cream);padding-left:0}.scenario-start .lineup-heading h1{font-size:26px;margin:2px 0 6px}.lineup-heading p{color:#ffe6bc;font-size:12px;margin:0 0 10px;line-height:1.4}
.batting-order{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px;counter-reset:order}.batting-order li{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:5px;background:#792c24;border-color:#c46f4b;color:var(--cream);border-radius:12px}.order-number{display:none}.order-name{grid-column:1/-1;text-align:center;font-size:12px;white-space:nowrap}.order-move{min-width:0;width:100%;height:44px;background:#a74530;border-color:#d48452;color:var(--cream);font-size:18px}
.draft-roster{gap:8px}.draft-roster .teammate-card{padding:10px;gap:5px;background:#ffeecb;border:2px solid transparent;box-shadow:0 3px 0 #74271d;min-height:110px}.draft-roster .teammate-card.selected{padding:10px;border-color:#f6c063;background:#fff8e6;box-shadow:0 0 0 1px #f6c063,0 3px 0 #74271d}.draft-roster .teammate-card:disabled{opacity:.65}.draft-roster .signature-description{display:none}.teammate-heading b{font-size:16px}.teammate-heading small{font-size:10px}.teammate-portrait{font-size:28px}.draft-check{color:var(--brick)}.teammate-ability{font-size:11px;line-height:1.35}.draft-hint,.rival-lineup{color:#fff0cc;font-size:11px;margin:8px 0}.lineup-start{display:grid;grid-template-columns:auto 1fr;gap:8px;position:sticky;bottom:0;z-index:2;background:#a73525;padding:10px 0;margin:0}.lineup-start .quiet{font-size:11px;padding:0 10px}.lineup-start .primary{font-size:14px}.drafting .club-progress{display:none}
/* The board is one connected surface: score, hand, then the play control. */
.playing main{max-width:900px;padding:0 12px 14px}.playing .game-layout{gap:10px}.playing main .ballpark{background:#142e42;border:1px solid #e6bd7744;border-radius:16px;padding:10px 12px;min-height:66px;box-shadow:0 3px 0 #75291f}.playing main .scoreboard strong{font-family:ui-monospace,monospace;color:#fff0cc;font-size:30px}.playing main .scoreboard>div>span{color:#eed4a7}.playing main .base-caption{color:#f7dba7}.playing main .field-footer{color:#fff0cc}
.playing .choices,.playing .result,.playing .recap{padding:12px;border-radius:18px}.playing .section-top h2{font-size:22px}.playing .turn-animal{width:40px;height:40px;font-size:28px;background:#eed5a7;border:2px solid #d6ad6c}.batter-ability{color:#5c5b52}.playing .resources{gap:6px;margin:8px 0 12px}.playing .resource{border-radius:9px;border:1px solid #d2ae7a;padding:8px 6px}.resource.power{background:#f8dac9;color:#943a26}.resource.speed{background:#dae7e8;color:#244c6a}.resource.teamwork{background:#f3e4af;color:#6c5518}
.playing .hand{gap:10px}.playing .play-card,.playing .play-card.selected{border:2px solid #cbb18a;padding:10px;min-height:142px;border-radius:13px;background:#fffaf0;box-shadow:0 4px 0 #d8c09b;gap:5px}.playing .play-card strong{font-size:17px;line-height:1.1;min-height:38px}.playing .strength{font-family:ui-monospace,monospace;font-size:22px;color:#a73525}.playing .card-top{right:9px;top:10px}.playing .play-card.selected{border-color:#a73525;background:#fff0cc;box-shadow:0 4px 0 #a73525,0 0 0 1px #a73525}.playing .play-card.selected:after{background:#a73525}.playing .play-card[aria-disabled=true]{background:#eae2d3;border-color:#c8bba4;border-style:dashed;box-shadow:0 3px 0 #d1c5b2}.playing .hit-type{color:#5a635f;font-size:10px}.playing .card-bottom{border-color:#dac6a6;font-size:10px;gap:5px}.card-unavailable{color:#943a26}.playing .team-actions{margin-top:14px}.signature-control{background:#f6e2aa;color:#5b411e!important;border-color:#cda857;border-radius:10px}.playing .team-actions .upgrade-trigger{background:#e5e9e5;border-color:#bdc9c8}.playing .commit-summary{padding:10px 0;color:#475b64}.playing .primary{min-height:48px}.playing .result h2{color:#a73525;font-weight:900}.revealed-card{border-radius:14px;background:#f6e5bf}.their-reveal{background:#e6e8df}.gain-box{border-radius:12px}.playing .result .action-row{margin-top:14px}
dialog{background:#fff4dc;color:var(--ink);border:2px solid #dfb777;border-radius:22px;box-shadow:0 20px 80px #0b1d32aa;max-height:calc(100dvh - 32px)}dialog::backdrop{background:#0b2134b8;backdrop-filter:blur(5px)}.dialog-header{border-color:#d6bc91}.dialog-header h2{font-weight:900}.close{background:#edd5ae;border-radius:50%}button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:#f0b653}

@media (max-width:360px){.site-header,.playing .site-header{min-height:56px;padding:6px 10px}.brand-icon{width:34px;height:34px}.scenario-start{padding:6px 10px 14px}.at-home .scenario-start h1{font-size:27px;margin-bottom:18px}.home-crest{margin:4px 0 14px}.home-crest img{width:112px}.playing main{padding:0 8px 10px}.playing .choices{padding:9px}.playing .play-card,.playing .play-card.selected{min-height:120px;padding:8px}.playing .play-card strong{font-size:15px;min-height:34px}.playing .hand{gap:8px}.playing .card-bottom{font-size:9px}.playing .resources{margin:6px 0 9px}.playing .resource{padding:6px 4px}.playing .team-actions{margin-top:10px}.playing .commit-summary{padding:7px 0}.draft-roster .teammate-card{padding:8px;min-height:106px}.draft-roster .teammate-card.selected{padding:8px}.teammate-ability{font-size:10px}.teammate-heading b{font-size:14px}.teammate-portrait{font-size:23px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep a miniature live diamond in the HUD without adding another panel. */
.playing main .ballpark{position:relative;padding-right:84px}
.playing main .field{display:block;position:absolute;width:72px;height:54px;right:7px;top:5px;margin:0}
.playing main .field-footer{grid-column:1;grid-row:3;font-size:9px}
.playing main .scoreboard>div>span{font-size:8px}
@media (max-width:360px){.playing main .field-footer{display:none}.playing main .ballpark{padding-right:67px}.playing main .field{width:58px;right:4px}.drafting .lineup-heading h1{font-size:23px}.drafting .lineup-heading p{font-size:11px;margin-bottom:8px}.draft-roster .teammate-heading small{display:none}.draft-roster .teammate-card,.draft-roster .teammate-card.selected{min-height:94px;padding:7px}.drafting .batting-order{margin-bottom:8px}.drafting .rival-lineup{font-size:10px;margin:5px 0}.drafting .draft-hint{font-size:10px;margin:5px 0}.drafting .lineup-start{padding:8px 0}.drafting .teammate-ability{line-height:1.25}}
/* Keep the crest visible above saved games; compact the returning-player heading. */
.at-home:has([data-action=resume]) .scenario-start h1,.at-home:has(.saved-room) .scenario-start h1{font-size:24px;margin:8px auto 16px}
.at-home .saved-room-list{max-height:190px}
/* Selection is carried by the red frame; never cover a cost or gain with a badge. */
.playing .play-card.selected:after{display:none}
/* Solo review: flow-based bottom actions stretch on tall screens and scroll
   after content on short screens. No fixed/sticky layer can cover a card. */
#app{min-height:100svh;min-height:100dvh;display:flex;flex-direction:column}
#app>.site-header{width:100%;flex-shrink:0}
#app>.scenario-start,.playing main{width:100%;flex:1;display:flex;flex-direction:column}
.drafting .lineup-heading{padding:clamp(16px,3dvh,32px) 0;flex-shrink:0}
.drafting .lineup-heading p{margin-bottom:0}
.drafting .lineup-start{position:static;margin-top:auto;padding-bottom:max(10px,env(safe-area-inset-bottom))}
.playing .game-layout{flex:1}
.playing .choices,.playing .result,.playing .recap{display:flex;flex-direction:column;flex:1}
.playing .choices>.action-row,.playing .result>.action-row{margin-top:auto;padding-top:4px}
.playing main{padding-bottom:max(14px,env(safe-area-inset-bottom))}
.playing main .ballpark{padding:8px 12px;grid-template-columns:minmax(0,1fr) minmax(100px,38%);gap:2px 8px}
.playing main .scoreboard{flex-direction:column;align-items:stretch;gap:0!important}
.playing main .scoreboard>div{justify-content:space-between}
.playing main .scoreboard>.inning-label{display:none}
.playing main .scoreboard>div>span{font-size:10px}
.playing main .scoreboard strong{font-size:26px;line-height:1.2}
.playing main .field{position:static;grid-column:2;grid-row:1 / 3;width:100%;height:84px;align-self:center}
.playing main .field-footer{grid-column:1;grid-row:2;display:block;font-size:10px}
.playing main .field-footer>span:last-child{display:inline;margin-left:6px;white-space:nowrap}
.playing .turn-animal{width:52px;height:52px;font-size:38px;flex-shrink:0}
.playing .hit-type{font-size:13px;font-weight:800;line-height:1.25}


/* Keep long card names clear of the strength badge on narrow phones. */
.playing .play-card strong{padding-right:27px;overflow-wrap:anywhere}
.playing .strength{text-align:center}
.playing .strength small{display:block;font-size:6px;letter-spacing:0;margin-top:3px}

/* Full-height entry and recap screens; spare space belongs above the actions.
   Minimum height (not a fixed height) preserves scrolling and enlarged text. */
#app>.scenario-start{padding-bottom:max(16px,env(safe-area-inset-bottom))}
.at-home .home-actions{margin-top:auto;padding-top:16px}
#app>.scenario-start>.scenarios{flex:1;align-content:center}
#app>.scenario-start>.club-progress{flex-shrink:0}
.playing .recap>.primary{margin-top:auto}
.playing .recap>.club-progress{margin-bottom:16px}

/* Team management is a full-height destination, not a dialog. */
.at-team .scenario-start{max-width:760px;text-align:left;gap:12px}
.at-team .scenario-start h1{margin:0;font-size:32px}
.at-team .scenario-start h2{font-size:21px;margin:20px 0 12px}
.at-team .club-progress{margin:0}
.team-roster{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.team-roster .teammate-card{background:#fff0cc;color:var(--ink);border-color:#e5c694;gap:8px}
.team-roster p{font-size:12px;line-height:1.5;margin:0}
.team-roster .signature-description{margin-top:auto;padding-top:10px}
.team-roster .quiet{width:100%;margin-top:4px}
.team-status{font-size:11px;font-weight:750;color:#6c5518;border-top:1px solid #d6bc91;padding-top:8px}
.team-intro,.team-footnote{font-size:13px;line-height:1.5;color:var(--cream)}
.team-intro{margin:0 0 16px}
.team-roster+.team-intro{margin:16px 0 0}
.team-footnote{margin-top:auto;padding-top:24px}

@media (max-width:380px){.site-header .brand>span{display:none}.site-header .header-actions{gap:6px}.site-header .quiet{padding:0 10px}.team-roster{gap:8px}}

/* Center the welcome mark in the space between navigation and bottom actions. */
.at-home .home-hero{flex:1;display:flex;flex-direction:column;justify-content:center;padding:20px 0}
.at-home .home-hero h1{margin-bottom:0}
.at-home .home-actions{margin-top:0}
.recruit-progress{display:grid;gap:7px;margin-top:6px}
.recruit-progress label{font-size:11px;font-weight:750}
.recruit-progress progress{width:100%;height:10px;accent-color:var(--brick);border:0;border-radius:8px;overflow:hidden;background:#dbc8a5}
.recruit-progress progress::-webkit-progress-bar{background:#dbc8a5;border-radius:8px}
.recruit-progress progress::-webkit-progress-value{background:var(--brick);border-radius:8px}
.recruit-progress progress::-moz-progress-bar{background:var(--brick);border-radius:8px}
.at-home .home-hero .home-crest{margin-top:0}
/* Show guide details on the board when the viewport has space for them. */
@media (min-width:370px) and (min-height:920px){
 .draft-roster .signature-description{display:block;line-height:1.35;padding-top:6px}
 .drafting .lineup-start{grid-template-columns:1fr}
 .drafting .lineup-start [data-action=teammate-guide]{display:none}
}
@media (max-height:740px){
 .drafting .lineup-heading{padding:16px 0}
 .drafting .lineup-heading h1{font-size:23px}
 .drafting .lineup-heading p{font-size:11px}
 .drafting .draft-roster .teammate-card{min-height:94px;padding:7px;gap:4px}
 .drafting .teammate-portrait{font-size:23px}
 .drafting .teammate-heading b{font-size:14px}
 .drafting .teammate-heading small{display:none}
}

/* Phone height budget: keep the complete hand and Reveal in the visible play
   area, including queued-upgrade shortages. Keep natural flow for larger text. */

 .playing .site-header{min-height:56px;padding:6px 12px}
 .playing .brand-icon{width:36px;height:36px}
 .playing .game-layout{gap:8px}
 .playing main .ballpark{padding:6px 10px}
 .playing main .field{height:64px}
 .playing main .scoreboard strong{font-size:23px}
 .playing .choices{padding:10px}
 .playing .turn-animal{width:40px;height:40px;font-size:29px}
 .playing .section-top h2{font-size:21px}
 .playing .batter-ability{margin:4px 0;line-height:1.3}
 .playing .batter-ability small{margin-top:1px}
 .playing .resources{margin:6px 0 8px}
 .playing .resource{padding:6px}
 .playing .hand{gap:8px}
 .playing .play-card,.playing .play-card.selected{min-height:112px;padding:8px;gap:3px}
 .playing .play-card strong{font-size:16px;min-height:32px;padding-right:25px}
 .playing .card-top{top:8px;right:7px}
 .playing .strength{font-size:20px}
 .playing .hit-type{font-size:11px;line-height:1.2}
 .playing .card-bottom{font-size:10px;gap:3px;padding-top:4px;line-height:1.2}
 .playing .card-unavailable{font-size:10px;line-height:1.2;margin-top:1px}
 .playing .team-actions{margin-top:8px}
 .playing .signature-control{padding:6px 8px}
 .playing .signature-control small{margin-top:1px}
 .playing .commit-summary{padding:6px 0}

@media (max-height:780px){
 .playing main .field{height:54px}
 .playing .turn-animal{width:34px;height:34px;font-size:25px}
 .playing .section-top h2{font-size:20px}
 .playing .signature-control small{display:inline;font-size:10px}
 .playing .signature-control small+small:before{content:' · '}
 .playing .commit-summary{padding:4px 0}
}

 /* Printed gains remain prominent; an absent gain needs no extra visible row. */
 .playing .card-bottom .no-gain{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

@media (max-height:740px){
 .playing .choices{padding:8px}
 .playing main .scoreboard strong{font-size:20px}
 .playing .resources{margin:4px 0 6px}
 .playing .commit-summary{padding:2px 0}
 .playing .team-actions{margin-top:6px}
}

/* One phone-sized app, rendered directly in the page at every host width. */
html{background:#142e42}
body{width:100%;max-width:390px;margin-inline:auto}
body dialog,body .mp-room-dialog{max-width:min(366px,calc(100vw - 24px))}
