:root{--green:#58cc02;--green-dark:#439900;--ink:#344138;--muted:#7b867e;--border:#e5eae3;--blue:#1cb0f6;--surface:#fff;--bg:#fcfdf9}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:ui-rounded,"SF Pro Rounded","PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-size:14px;line-height:1.6}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible{outline:3px solid #1789bf;outline-offset:4px}svg{display:block;width:24px;height:24px}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.site-header{height:88px;background:#fff;border-bottom:2px solid var(--border)}.header-inner{height:100%;max-width:1160px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 24px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#51b900;font-size:25px;font-weight:900;letter-spacing:-1px}.brand-mark{width:38px;height:40px;border-radius:13px;background:var(--green);box-shadow:0 4px 0 #45a700;color:#fff;display:grid;place-items:center;transform:rotate(-7deg)}.brand-mark svg{width:25px;height:25px}.brand-dot{margin-left:-8px;color:#ffc800}.header-tag{display:flex;align-items:center;gap:8px;color:#7a8378;font-size:12px;font-weight:700;letter-spacing:1px}.header-tag>span{width:8px;height:8px;background:var(--green);border-radius:50%}main{max-width:1160px;padding:0 24px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;padding:44px 0 32px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2.2px;color:#8b9882;font-weight:800;margin-bottom:9px}h1{font-size:34px;letter-spacing:-1.5px;line-height:1.4;margin:0;font-weight:900}.green-text{color:#50b900}.intro p{margin:10px 0 0;color:var(--muted);font-size:14px}.intro-badge{display:flex;align-items:center;gap:12px;padding:14px 18px;border:2px solid #e2eed6;border-radius:18px;background:#f2fae9;transform:rotate(2deg)}.intro-badge>svg{color:#62b52c;width:28px;height:28px}.intro-badge strong,.intro-badge span{display:block}.intro-badge strong{font-size:13px;color:#57843e}.intro-badge span{font-size:11px;color:#8a9d7e;margin-top:3px}.workspace{display:grid;grid-template-columns:390px minmax(0,1fr);gap:28px;align-items:start}.card{background:#fff;border:2px solid var(--border);border-radius:24px;box-shadow:0 4px 0 #e9ede5}.setup{padding:26px}.section-heading{display:flex;align-items:center;gap:10px}h2{font-size:18px;letter-spacing:-.3px;margin:0;font-weight:850}.step{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#eff9e6;color:#58a625;font-size:14px;font-weight:900;flex-shrink:0}.step.blue{background:#eaf7ff;color:#219bd4}.small-label{font-size:10px;color:#a1aaa1;margin-left:auto;letter-spacing:.7px}form{margin-top:29px}.field-heading{display:flex;justify-content:space-between;align-items:center}label{font-weight:800;font-size:14px}.count{font-size:11px;color:#60a333;background:#f1fae8;border-radius:7px;padding:2px 7px;font-weight:750}.field-help{font-size:11px;color:#929b91;margin:5px 0 12px}textarea{width:100%;min-height:142px;resize:vertical;max-height:380px;padding:14px 15px;border:2px solid var(--border);border-radius:15px;background:#fafbf8;color:var(--ink);line-height:1.9;transition:border-color .15s}textarea::placeholder{color:#abb3a8;font-size:12px}textarea:focus,input:focus{outline:none;border-color:#8bd34e;box-shadow:0 0 0 3px #58cc0212}textarea[aria-invalid=true]{border-color:#e96e6e}.input-footer{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-top:7px;font-size:10px;color:#a1aaa0}.text-button{border:0;padding:2px 0;background:transparent;color:#65aa34;font-size:11px;font-weight:800;white-space:nowrap}.text-button:hover{color:#368000;text-decoration:underline}.text-button>span{margin-left:3px}.divider{height:1px;background:#edf0e9;margin:24px 0}.number-field{display:flex;justify-content:space-between;align-items:center;gap:10px}.number-field label{font-size:13px}.number-field .field-help{margin-bottom:0}.stepper{display:flex;align-items:center;flex-shrink:0;border:2px solid var(--border);border-radius:12px;background:#fafbf8;height:43px;overflow:hidden}.stepper button{border:0;background:transparent;color:#7b8a71;font-size:22px;width:31px;height:100%;padding:0}.stepper button:hover:enabled{background:#edf6e4}.stepper input{appearance:textfield;-moz-appearance:textfield;border:0;border-left:1px solid #e9ede4;border-right:1px solid #e9ede4;background:white;width:34px;height:25px;text-align:center;font-weight:800;color:var(--ink);border-radius:0}.stepper input::-webkit-inner-spin-button,.stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.tip{display:flex;align-items:flex-start;gap:9px;background:#f5f9ee;border-radius:12px;padding:12px;margin:23px 0}.tip>span{color:#89b64e;font-size:19px;line-height:1.3}.tip p{margin:0;color:#81916e;font-size:11px;line-height:1.8}.primary-button{border:0;background:var(--green);color:white;border-radius:14px;width:100%;min-height:51px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;font-weight:850;box-shadow:0 5px 0 #46a302;transition:transform .15s,box-shadow .15s,background .15s;padding:12px 9px}.primary-button:hover{background:#60d609;transform:translateY(-1px);box-shadow:0 6px 0 #46a302}.primary-button:active{transform:translateY(4px);box-shadow:0 1px 0 #46a302}.primary-button svg{width:19px;height:19px}.primary-button>span:last-child{margin-left:3px;font-size:19px}.save-note{display:flex;justify-content:center;align-items:center;gap:4px;font-size:10px;color:#a0aa9c;margin:17px 0 0}.save-note svg{width:13px;height:13px;color:#8fb470}.results-heading{min-height:32px;margin:0 0 17px;display:flex;justify-content:space-between;align-items:center;gap:10px}.status-pill{font-size:10px;color:#949e90;background:#f0f3ec;border-radius:20px;padding:4px 10px;white-space:nowrap}.status-pill.ready{color:#4c9b16;background:#eef9e3}.empty-state{min-height:526px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px 30px 28px;text-align:center;background:linear-gradient(180deg,#fff 55%,#fcfdf9)}.mascot-stage{width:245px;height:201px;position:relative;margin-top:-15px}.mascot{width:240px;height:210px;filter:drop-shadow(0 3px 0 #589d130b)}.float-badge{position:absolute;right:2px;top:46px;background:#fff8d8;border:2px solid #f8e7a4;color:#b49b40;border-radius:10px;transform:rotate(10deg);padding:3px 10px;font-size:10px;font-weight:900;letter-spacing:1px}.orbit{position:absolute;font-size:19px;font-weight:800;color:#c7dfaf}.orbit-one{left:3px;top:98px;transform:rotate(12deg)}.orbit-two{right:-9px;top:130px;color:#c9e8f6}.empty-state h3{font-size:22px;margin:8px 0 9px;font-weight:850;letter-spacing:-.6px}.empty-state>p{font-size:12px;color:#9aa295;line-height:1.9;margin:0}.empty-teams{display:flex;align-items:center;gap:17px;width:100%;max-width:370px;margin:27px 0 22px}.empty-teams>div{border:2px dashed #e3e9dd;border-radius:14px;padding:13px 18px;display:flex;flex-direction:column;align-items:center;flex:1;gap:8px}.empty-team-icon{display:grid;place-items:center;background:#edf7e3;color:#9cc380;border-radius:8px;width:28px;height:28px;font-size:12px;font-weight:900}.empty-team-icon.team-b{background:#eaf5fa;color:#99c8df}.skeleton-line{height:5px;width:59px;background:#eef1e9;border-radius:5px}.skeleton-line.short{width:40px}.versus{font-size:11px;color:#c2cabc;font-weight:900;font-style:italic}.empty-caption{display:flex;align-items:center;gap:12px;color:#bac2b3;font-size:10px;letter-spacing:1px}.empty-caption>span{width:28px;height:1px;background:#e6ebdf}.features{display:grid;grid-template-columns:repeat(3,1fr);padding:28px 0 32px;margin-top:30px;border-top:2px dashed #e6ecdf;gap:20px}.features>div{display:flex;align-items:center;justify-content:center;gap:12px}.feature-icon{width:37px;height:39px;display:grid;place-items:center;border-radius:12px;font-size:22px;font-weight:850}.feature-icon svg{width:20px;height:20px}.green-icon{background:#edf8e4;color:#75b544}.orange-icon{background:#fff5df;color:#e5b149}.purple-icon{background:#f2ecfc;color:#b595db}.features strong{font-size:12px}.features p{font-size:10px;color:#9ba491;margin:2px 0 0}footer{border-top:2px solid var(--border);max-width:1112px;margin:0 auto;padding:21px 0 25px;display:flex;align-items:center;gap:20px;color:#adb5a6}footer p{font-size:11px;margin:0}.footer-brand{font-size:15px;font-weight:850;color:#8b9c7f}.footer-brand span{color:#84c843}.footer-credit{margin-left:auto;font-size:9px;letter-spacing:1.4px;color:#b7bfaf}.form-error{color:#c94c43;background:#fff1ee;border-radius:10px;padding:10px;font-size:12px;margin:0 0 16px}.result-summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:#7b8a70;margin:0 2px 14px}.result-summary>span:before{content:'✓';display:inline-block;font-weight:900;color:#66b52c;margin-right:5px}.team-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.team-card{background:#fff;border:2px solid #dceacb;box-shadow:0 4px 0 #e4eedb;border-radius:20px;overflow:hidden;min-width:0}.team-card.b{border-color:#d7eaf4;box-shadow:0 4px 0 #e2eef5}.team-heading{padding:15px;background:#f1fae7;border-bottom:2px solid #e4efdb;display:flex;align-items:center;gap:8px}.b .team-heading{background:#eef8fd;border-color:#e0eef5}.team-emblem{display:grid;place-items:center;width:34px;height:36px;border-radius:11px;background:#7bcf37;color:white;box-shadow:0 3px 0 #60b122;font-size:18px;font-weight:900}.b .team-emblem{background:#4cbcf2;box-shadow:0 3px 0 #2e9fda}.team-heading h3{margin:0;font-size:15px;color:#609832}.b .team-heading h3{color:#379acb}.team-heading p{margin:0;font-size:9px;color:#90aa77}.b .team-heading p{color:#85acc1}.team-members{list-style:none;padding:0;margin:0}.member{padding:13px 14px;border-bottom:1px solid #eef2e9}.member:last-child{border-bottom:0}.member-header{display:flex;align-items:center;gap:8px;margin-bottom:9px}.avatar{width:28px;height:28px;background:#f0f7e8;border:1px solid #e5efdb;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:800;color:#7ca35e;flex-shrink:0}.b .avatar{background:#eef6fb;border-color:#e2eff6;color:#72a7c1}.member-name{font-size:13px;font-weight:800;overflow-wrap:anywhere;line-height:1.4}.hero-options{display:flex;flex-wrap:wrap;gap:5px}.hero-chip{background:#f7f9f4;border:1px solid #e9eee4;border-bottom-width:2px;border-radius:7px;padding:3px 7px;font-size:10px;color:#7b8a71}.b .hero-chip{background:#f6fafd;border-color:#e6eff4;color:#738e9f}.result-note{font-size:10px;color:#a4ae9b;text-align:center;margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}#resultContent.reveal{animation:reveal .35s ease-out}@keyframes reveal{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1400px){.intro{padding-top:55px;padding-bottom:40px}.features{margin-top:40px}}@media(max-width:1000px){.workspace{grid-template-columns:350px minmax(0,1fr);gap:20px}.setup{padding:22px}.intro-badge{display:none}h1{font-size:31px}.team-cards{grid-template-columns:1fr}.team-members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.member{border-bottom:1px solid #eef2e9}.empty-state{min-height:530px}.results-heading h2{font-size:16px}.status-pill{font-size:9px;padding:4px 7px}}@media(max-width:740px){.site-header{height:73px}.header-inner{padding:0 20px}.brand{font-size:22px}.brand-mark{width:31px;height:33px;border-radius:10px}.brand-mark svg{width:22px;height:22px}.header-tag{font-size:9px;letter-spacing:0;gap:5px}.header-tag>span{width:6px;height:6px}main{padding:0 20px}.intro{padding:30px 0 25px}.eyebrow{font-size:8px;letter-spacing:1.8px}h1{font-size:27px;letter-spacing:-1.2px}.intro p{font-size:11px;margin-top:8px}.workspace{grid-template-columns:1fr;gap:30px}.setup{padding:23px}.small-label{font-size:10px}form{margin-top:23px}textarea{min-height:116px}.results-heading{margin-bottom:13px}.results-heading h2{font-size:18px}.empty-state{min-height:415px;padding:20px}.mascot-stage{height:175px;margin-top:-10px}.mascot{height:180px}.empty-state h3{font-size:20px}.empty-teams{margin:20px 0 17px;max-width:310px}.features{margin-top:28px;gap:10px;padding:22px 0}.features>div{flex-direction:column;text-align:center;gap:6px}.features strong{font-size:11px}.features p{font-size:9px;max-width:90px;line-height:1.8}.feature-icon{width:32px;height:34px;border-radius:10px}footer{margin:0 20px;gap:12px;padding:18px 0 22px;flex-wrap:wrap}.footer-brand{font-size:12px}footer p{font-size:10px}.footer-credit{font-size:7px;letter-spacing:.8px}.team-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.team-members{display:block}.team-heading{padding:12px 10px}.team-heading h3{font-size:13px}.team-heading p{font-size:8px}.team-emblem{width:28px;height:30px;font-size:15px;border-radius:9px}.member{padding:12px 10px}.member-header{gap:6px}.member-name{font-size:12px}.avatar{width:24px;height:24px;font-size:10px;border-radius:8px}.hero-chip{padding:3px 6px;font-size:10px}.result-summary{font-size:10px}.result-note{line-height:1.8}.save-note{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Keep action hints and hero choices readable on small screens. */
.field-help{color:#7d8978;font-size:12px}.tip p{color:#71815e;font-size:12px}.hero-chip{font-size:12px;color:#657557}.b .hero-chip{color:#5b7c90}.empty-state>p{color:#818d79}.input-footer{color:#88947f}.save-note{color:#85917c}.result-note{color:#87947b}.result-summary{color:#71845f}
@media(max-width:740px){.field-help,.tip p{font-size:11px}.hero-chip{font-size:11px}}

.player-list{list-style:none;margin:14px 0 10px;padding:2px 4px 4px 0;max-height:348px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#cfe4bd transparent;scroll-behavior:auto}
.player-row{display:flex;align-items:center;gap:7px;background:#fafcf7;border:2px solid #e6eddf;border-bottom-width:3px;border-radius:12px;min-height:49px;margin-bottom:7px;padding:3px 7px 3px 3px}
.player-row:last-child{margin-bottom:0}.player-row:focus-within{border-color:#a3d978;background:#f5fbea}
.drag-handle{display:grid;place-items:center;align-self:stretch;min-width:30px;border:0;border-radius:7px;background:transparent;color:#9cba87;font-size:25px;line-height:1;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.drag-handle:hover{background:#eaf5dd;color:#64a72f}.rank-number{width:23px;height:25px;border-radius:7px;display:grid;place-items:center;background:#edf5e5;color:#79a555;font-size:11px;font-weight:850;flex-shrink:0}
.player-name{min-width:0;width:100%;border:0;background:transparent;color:var(--ink);padding:6px 0;font-size:14px;font-weight:700;border-radius:4px}.player-name:focus{box-shadow:none}.player-name[aria-invalid=true],#addNameInput[aria-invalid=true]{outline:2px solid #e9877b}
.remove-player{border:0;background:transparent;border-radius:8px;min-width:30px;min-height:34px;color:#a8b49f;font-size:21px;line-height:1}.remove-player:hover{background:#fff0ec;color:#d37863}
.is-sorting{user-select:none;-webkit-user-select:none}.is-sorting .drag-handle{cursor:grabbing}.player-row.is-dragging{background:#edfadd;border-color:#75c93c;box-shadow:0 3px 10px #47702022}.is-dragging .drag-handle{color:#58a424}
.add-player{display:flex;gap:8px;margin-top:12px}.add-player input{min-width:0;flex:1;height:43px;padding:9px 12px;border:2px dashed #dfe9d5;border-radius:12px;background:#fcfdf9;color:var(--ink);font-size:12px}.add-player input::placeholder{color:#9eac93}.add-player button{width:43px;border:2px solid #d8e9c7;border-bottom-width:4px;border-radius:12px;background:#eef9e3;color:#6aab36;font-size:24px;font-weight:800}.add-player button:hover{background:#e5f5d4}.add-player button:active{border-bottom-width:2px;transform:translateY(2px)}
.empty-roster{border:2px dashed #e3ecd9;border-radius:14px;background:#fafcf7;text-align:center;color:#94a485;font-size:12px;padding:25px 8px;margin:12px 0}.empty-roster span{margin-left:5px;color:#89bb5d}
@media(max-width:740px){.drag-handle{min-width:36px}.player-row{min-height:51px;gap:7px}.player-name{font-size:16px}.remove-player{min-width:34px;min-height:39px}.add-player input{font-size:16px;height:46px}.add-player input::placeholder{font-size:12px}.add-player button{width:46px}.player-list{max-height:348px}}

/* Manual player scores replace drag ordering. */
.roster-columns{display:flex;justify-content:space-between;margin:16px 37px 0 3px;font-size:10px;color:#92a082}.player-list{margin-top:8px}.player-row{gap:9px;padding:5px 5px 5px 9px}.rank-number{width:24px}.player-name{font-size:13px}.score-wrap{display:flex;align-items:center;gap:3px;background:white;border:1px solid #e1ebd7;border-bottom-width:2px;border-radius:9px;padding:3px 6px;flex-shrink:0}.player-score{width:36px;padding:4px 0;border:0;background:transparent;color:#64a32f;font-weight:850;font-size:14px;text-align:center;appearance:textfield;-moz-appearance:textfield}.player-score::-webkit-inner-spin-button,.player-score::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.player-score:focus{box-shadow:none}.score-wrap:focus-within{border-color:#79c546;box-shadow:0 0 0 2px #58cc0212}.score-unit{font-size:10px;color:#9bae8d}.player-score::placeholder{font-size:11px;color:#a2b392;font-weight:500}.score-wrap:has([aria-invalid=true]){border-color:#e9877b;background:#fff6f1}.member-score{margin-left:auto;flex-shrink:0;font-size:10px;color:#87a172}.b .member-score{color:#7c9eb1}.member-header{flex-wrap:wrap}.remove-player{min-width:26px}.player-row .player-name{flex:1}
@media(max-width:740px){.player-name,.player-score{font-size:16px}.score-wrap{padding:2px 5px}.player-row{gap:7px}.member-score{font-size:9px}.remove-player{min-width:28px}}
.setup,.results{min-width:0}.roster-columns>span{white-space:nowrap}@media(max-width:380px){.setup{padding:18px}.number-field{gap:6px}.player-row{gap:5px}.score-wrap{padding:2px 4px}.player-score{width:31px}.remove-player{min-width:24px}.result-summary{flex-wrap:wrap}.member-name{font-size:11px}}

/* Full portraits use the original 326:500 ratio, with names underneath. */
.pool-hint{font-size:11px;color:#829471;margin:11px 0 0;line-height:1.8}.pool-hint.over-capacity{color:#bd7146}
.team-members{display:block}.member{padding:15px 13px}.member-header{margin-bottom:12px}.hero-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(73px,1fr));gap:8px;align-items:start}.hero-chip{display:flex;flex-direction:column;align-items:center;gap:0;padding:7px 5px 8px;min-width:0;border:1px solid #e3ebda;border-bottom:3px solid #dfebd3;border-radius:11px;background:linear-gradient(155deg,#fafcf6,#eff6e8);overflow:hidden}.b .hero-chip{background:linear-gradient(155deg,#fafcfe,#edf5fa);border-color:#dfeaf1;border-bottom-color:#dce9f3}.hero-portrait{width:100%;max-width:92px;aspect-ratio:326/500;display:flex;align-items:center;justify-content:center;margin:0 auto 5px}.hero-portrait img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 3px 2px #264c2222)}.hero-name{font-size:12px;font-weight:750;color:#627a50;line-height:1.4;text-align:center;white-space:nowrap}.b .hero-name{color:#557c93}.portrait-missing{color:#99aa8b;font-size:10px;text-align:center}.result-note{line-height:1.9}.team-heading p{font-size:10px}.team-card{align-self:start}
@media(max-width:1000px) and (min-width:741px){.hero-options{grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}.hero-portrait{max-width:96px}}
@media(max-width:740px){.team-cards{grid-template-columns:minmax(0,1fr);gap:20px}.member{padding:15px}.member-header{gap:8px}.member-name{font-size:14px}.member-score{font-size:11px}.hero-options{grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:9px}.hero-chip{padding:8px 6px;border-radius:12px}.hero-portrait{max-width:94px}.hero-name{font-size:12px}.team-heading{padding:14px}.team-heading h3{font-size:15px}.team-heading p{font-size:11px}.team-emblem{width:34px;height:36px;font-size:18px}.pool-hint{font-size:10px}}
