@font-face{font-family:Club;src:url('assets/Chinese.otf')}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#03090d;color:#f2eee2;font-family:Club,'PingFang SC',sans-serif}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #96e8ed;outline-offset:5px}button:disabled{cursor:not-allowed;opacity:.4}::selection{background:#d7b779;color:#071116}#viewport{position:absolute;inset:0;display:grid;place-items:center}#stage{width:1920px;height:1080px;position:relative;overflow:hidden;flex-shrink:0;transform-origin:center;isolation:isolate;background:#07191d}#environment{position:absolute;inset:-24px;background:url('assets/stadium.png') center/cover;z-index:-3;will-change:transform}.vignette{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#020c14aa,transparent 22%,transparent 82%,#020b14bb),linear-gradient(#01091065,transparent 40%,transparent 75%,#02091055);pointer-events:none}#stage>header{position:absolute;left:38px;right:40px;top:26px;display:flex;align-items:center;gap:70px;text-shadow:0 3px 7px #000}.brand{font:700 27px Georgia,serif;letter-spacing:2px;color:#ead7ac}.brand small{display:block;font:14px Club;letter-spacing:7px;margin-top:8px}.round{font-size:17px;color:#c3d0d1}.round b{font-size:24px;color:#fff}.round span{margin-left:28px;color:#e5ce94}#bank{display:flex;gap:30px;margin-left:auto}.resource{display:flex;align-items:center;gap:9px}.resource svg{width:27px;height:27px;color:var(--resource)}.resource small{display:block;font-size:12px;color:#c6d5d6}.resource b{font-size:22px;line-height:1.1}h2{margin:0;font-size:19px;font-weight:400;text-shadow:0 4px 9px #000}h2 small{font-size:13px;margin-left:18px;color:#a9bdc3}.movable{position:absolute}#clubs{left:36px;top:159px;width:244px}.club{display:flex;gap:14px;align-items:center;margin-top:28px;filter:drop-shadow(3px 8px 6px #0008)}.club i{font-size:24px;font-style:normal;display:grid;place-items:center;width:52px;height:63px;background:linear-gradient(125deg,#415363,#0b1b27);clip-path:polygon(50% 0,100% 16%,91% 74%,50% 100%,9% 74%,0 16%);color:#cbd4d7}.current i{background:linear-gradient(130deg,#e4c88a,#6d5e40);color:#142330}.club strong{display:block;font-size:19px;font-weight:400}.club small{display:block;font-size:12px;color:#bdc8ca;margin-top:6px}.current small{color:#e0c489}.club>b{margin-left:auto;font:38px Georgia;color:#f0dbab}.club em{font:12px Club;font-style:normal;color:#c2cacc}.event{font-size:13px;color:#d0dadd;line-height:1.9;margin-top:34px}.event small{color:#8ba5b0}#tierlabels{position:absolute;left:353px;top:135px;display:flex;gap:0}#tierlabels h2{width:441px;font-size:20px;color:#c6dce0}#tierlabels h2 small{display:block;margin:5px 0 0;color:#c4ac77;font-size:12px;letter-spacing:3px}#market,#hand{position:absolute;inset:0;pointer-events:none;perspective:1500px}.card-wrap{position:absolute;pointer-events:auto;cursor:pointer;outline:none;transform-style:preserve-3d}.card-body{position:relative;width:100%;height:100%;border-radius:9px;transform:rotateX(var(--pitch)) rotateY(var(--yaw)) rotateZ(var(--rot));transform-style:preserve-3d;background:#0a1820;box-shadow:3px 5px 0 #101b20,6px 10px 0 #061014,15px 32px 16px #000b,32px 55px 29px #0006;transition:transform 180ms cubic-bezier(.23,1,.32,1);overflow:hidden}.card-body:after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 0 0 2px var(--tier),inset 0 0 0 5px #091218b0; background:linear-gradient(130deg,#f4f6de35,transparent 25%,transparent 72%,#0005)}.portrait{position:absolute;inset:0 0 16%;background-image:url('assets/portraits.png');background-size:300% 200%;background-position:var(--portrait);filter:saturate(.68) contrast(1.06)}.card-info{position:absolute;inset:57% 0 0;padding:24px 13px 9px;background:linear-gradient(transparent,#06121cf2 24%,#06121c 85%);z-index:1}.card-info strong{font-size:17px;display:block;color:#fff;font-weight:400}.card-info small{display:block;font-size:11px;color:#d3d9d4;margin-top:5px}.card-cost{display:flex;gap:9px;margin-top:9px;font-size:12px;color:#ded9c9}.card-cost span{display:flex;align-items:center;gap:3px}.card-cost svg{width:15px;height:15px;color:var(--resource)}.position{position:absolute;top:12px;left:12px;font:italic 18px Georgia;color:#fff;text-shadow:0 2px 5px #000}.points{position:absolute;right:12px;top:9px;font:30px Georgia;color:#f4e4bc;text-shadow:0 2px 5px #000}.hand-card .card-body{box-shadow:3px 5px 0 #131c21,6px 10px 0 #061014,18px 27px 25px #000c}.hand-card .card-info strong{font-size:19px}.hand-card .portrait{filter:saturate(.82)}.card-wrap:focus-visible .card-body{outline:3px solid #96e8ed}.card-wrap.selected .card-body{outline:3px solid #95e4ed;outline-offset:5px}.edit-mode .movable{outline:1px dashed #87d3e780;cursor:move}.edit-mode .card-wrap{cursor:grab}.edit-mode .selected{outline:2px solid #90e5ec;outline-offset:6px}.edit-mode .card-wrap.selected{outline:none}#negotiation{left:38px;top:604px;width:240px}#reserved{position:relative;height:176px;margin-top:18px;perspective:1200px}#reserved .card-wrap{width:106px!important;height:151px!important;left:0!important;top:0!important}#reserved .card-info strong{font-size:11px}#reserved .card-info small,#reserved .card-cost{display:none}#reserved .points{font-size:22px}#negotiation p{font-size:12px;color:#b5c5ce}#coaches{left:1710px;top:159px;width:172px}.coach{display:flex;align-items:center;gap:9px;width:172px;padding:0;margin:20px 0;border:0;background:transparent;text-align:left;color:#e9e3d5;filter:drop-shadow(8px 12px 9px #000a)}.coach .portrait{position:static;width:60px;height:77px;flex-shrink:0;box-shadow:inset 0 0 0 1px #bbae87;transform:rotate(-5deg)}.coach strong{display:block;font-size:15px;font-weight:400}.coach small{font-size:11px;color:#b5c3c8}.balance-title{margin-top:45px}#wallet{margin-top:16px}#wallet .resource{margin:10px 0;gap:13px}#wallet .resource svg{width:21px;height:21px}#wallet .resource>div{display:flex;align-items:center;width:130px;justify-content:space-between}#wallet .resource b{font-size:17px}.mycoach{margin-top:34px;border-top:1px solid #a9bec133;padding-top:14px}.mycoach small{color:#b6c8cf;font-size:12px;display:block}.mycoach strong{font-size:17px;display:block;margin-top:7px;font-weight:400}#actions{left:534px;top:770px;display:flex;gap:20px;align-items:center;filter:drop-shadow(5px 13px 9px #000b)}#actions button{height:52px;width:169px;border:1px solid #95a9af66;background:linear-gradient(#23323bd9,#0d1922f2);color:#e1e9e9;border-radius:5px;font-size:18px;text-shadow:0 2px 2px #000}#actions .primary{background:linear-gradient(#9c804d,#433621);border-color:#d6bd80;color:#fff1c9}#actions .skip{width:134px}#actions>small{position:absolute;top:66px;left:0;right:0;text-align:center;color:#a9bec5;font-size:12px}#handlabel{position:absolute;left:354px;top:899px;font-size:17px;color:#e8e0ca;z-index:30;text-shadow:0 3px 8px #000}#handlabel span{display:block;font-size:12px;color:#b6c7ce;margin-top:6px}#appcontrols{position:absolute;left:33px;bottom:22px;z-index:300;display:flex;gap:9px;align-items:center}#appcontrols button{background:#091820b0;border:1px solid #8ba2ad55;border-radius:4px;color:#cbd9de;font-size:12px;padding:8px 11px}#appcontrols span{font-size:10px;color:#a4b6be;margin-left:10px}#editor{position:fixed;right:18px;top:18px;bottom:18px;width:290px;background:#101e28f5;border:1px solid #4c6876;padding:21px;z-index:1000;overflow:auto;box-shadow:0 20px 80px #000b;color:#dce5e8;font-size:13px}.editor-head{display:flex;align-items:center;justify-content:space-between}.editor-head h1{font-size:22px;margin:0}.editor-head button,#closeDetail{background:none;border:0;color:#cfdee6;font-size:25px}.editor-head+p{color:#b1c3cc;line-height:1.8}#editor label{display:block;margin:19px 0}#editor input{display:block;width:100%;margin-top:8px;accent-color:#d8ba7d}#editor input[type=number]{background:#0a141c;color:#fff;border:1px solid #4a626f;padding:6px}#editor hr{border:0;border-top:1px solid #3d5461}.editor-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.editor-buttons button{padding:9px 0;background:#243947;border:1px solid #527081;color:#e9f0f2;border-radius:4px}#saveStatus{color:#b2c6ca;font-size:12px;line-height:1.7}dialog{color:#e3eced;background:#0e202c;border:1px solid #6f8b96;border-radius:10px;padding:28px;max-width:480px;box-shadow:0 28px 80px #000b}dialog::backdrop{background:#0009}#closeDetail{float:right}#detailContent{line-height:1.9}#detailContent h2{font-size:25px;margin-right:28px}#detailContent p{font-size:15px}#detailContent small{color:#9eb8c6}#toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%);background:#122938;color:#fff;padding:13px 22px;border:1px solid #547380;border-radius:6px;z-index:1100;opacity:0;pointer-events:none}#toast.visible{opacity:1}.no-motion .card-body{transition:none}@media(hover:hover) and (pointer:fine){body:not(.edit-mode) .card-wrap:hover{z-index:100!important}body:not(.edit-mode) .card-wrap:hover .card-body{transform:translateY(-20px) rotateX(0) rotateY(0) rotateZ(0) scale(1.07)}body:not(.edit-mode) .hand-card:hover .card-body{transform:translateY(-12px) rotateZ(0) scale(1.025)}button:not(:disabled):hover{filter:brightness(1.16)}}@media(prefers-reduced-motion:reduce){.card-body{transition:none}body:not(.edit-mode) .card-wrap:hover .card-body{transform:rotateX(0) rotateY(0) rotateZ(0)}body:not(.edit-mode) .hand-card:hover .card-body{transform:translateY(-12px)}}

.hand-card:focus-visible .card-body{transform:translateY(-12px) rotateZ(0) scale(1.025)}
#phaseHint{position:absolute;left:575px;top:733px;color:#f1d69b;font-size:14px;max-width:880px;text-shadow:0 3px 9px #000}#handPaging{position:absolute;left:355px;top:960px;display:flex;align-items:center;gap:12px;z-index:70;font-size:13px}#handPaging button{background:#102632b0;color:#dbe7e9;border:1px solid #69828b;padding:4px 13px;border-radius:3px}.empty-hand{position:absolute;top:942px;left:810px;color:#c0ccd0;font-size:18px;line-height:1.8}.empty-hand small{display:block;font-size:13px;color:#9eb7c1}.availability{position:absolute;top:44px;right:8px;z-index:3;font-size:10px;padding:3px 5px;background:#18362feb;color:#c3f4db;border-radius:3px}.upgrade-target .card-body{outline:2px solid #98e8cf;outline-offset:3px}.upgrade-target .availability{background:#235b45;color:#fff}.affordable .card-body:after{box-shadow:inset 0 0 0 2px #e2cd92,inset 0 0 0 5px #091218b0}.club{cursor:pointer}.club:focus-visible{outline:2px solid #9edce9}.club.current small{color:#e4ca87}#reserved{display:flex;gap:10px;height:172px}#reserved .card-wrap{position:relative!important;flex:0 0 73px;width:73px!important;height:110px!important;top:0!important;left:0!important}#reserved .card-info{padding:12px 6px 2px}#reserved .card-info strong{font-size:9px}#reserved .position{font-size:11px;left:6px;top:8px}#reserved .points{font-size:16px;right:7px;top:6px}#reserved .availability{display:none}.empty-reserve{border:1px dashed #91a8ad55;border-radius:5px;width:73px;height:109px;display:grid;place-items:center;color:#9cb0b5;font-size:12px}#detail{width:580px;max-width:90vw;max-height:85vh;overflow:auto}#detailContent h2{margin-bottom:8px}.detail-meta{font-size:13px;color:#acbfc8}.cost-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}.cost-grid div{padding:8px;background:#182d3a;font-size:12px;border-radius:5px}.cost-grid b{display:block;font-size:18px;color:#e4cea0}.cost-grid small{font-size:10px!important}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:21px}.detail-actions button,.resource-picker button{padding:11px 17px;border:1px solid #819599;border-radius:5px;background:#213945;color:#e8eef0}.detail-actions .confirm{background:#b8975e;color:#08151e;border-color:#e2c286}.failure{color:#e8aaa5;font-size:13px}.ready{color:#a4dfc4;font-size:13px}.resource-picker{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}.resource-picker button{display:flex;flex-direction:column;gap:6px;align-items:center;min-width:80px}.resource-picker svg{width:25px;height:25px;color:var(--resource)}.resource-picker .chosen{background:#5a5136;border-color:#dcc48c}.choice-modes{display:flex;gap:10px;margin-top:20px}.choice-modes button{background:transparent;border:0;border-bottom:2px solid #758f99;padding:8px;color:#cddce0}.choice-modes button.active{border-color:#edcc8d;color:#edcc8d}.game-log{font-size:14px;line-height:1.8;max-height:380px;overflow:auto;padding-left:24px}.game-log li{margin-bottom:10px}.reward-chip{color:#d3c091}.coach:disabled{opacity:1;cursor:default}#actions{z-index:125}.coach-selected{color:#efdca9}#appcontrols{gap:6px}#appcontrols span{display:none}#wallet .resource{margin:7px 0}.balance-title{margin-top:25px}#actions .primary:disabled{opacity:.45}.no-motion .card-body{transition:none}

#stage{position:absolute;left:50%;top:50%}

/* v2 interaction layout */
#clubs{width:268px}#clubs h2 small{font-size:11px;color:#90a9b2;margin-left:8px}#clublist{display:grid;gap:7px;margin-top:13px}.club{width:100%;height:62px;margin:0;padding:5px 8px 5px 3px;border:1px solid transparent;background:linear-gradient(90deg,#101f29d9,#07131a66);color:#e9e3d5;text-align:left;border-radius:5px;filter:drop-shadow(3px 7px 5px #0007)}.club i{width:44px;height:51px;font-size:19px}.club strong{font-size:15px}.club small{font-size:10px;margin-top:3px}.club b{margin-left:auto;font-size:20px}.club.self{border-color:#d7bd7655;background:linear-gradient(90deg,#443b24e8,#0c1a2166)}.club.current{box-shadow:inset 3px 0 #e1c27a,0 0 18px #d6b96b24}
#negotiation{width:250px}#reserved .availability{display:block;top:6px;right:4px;transform:scale(.9)}#mycoach{width:150px;min-height:88px;padding:13px 15px;background:linear-gradient(145deg,#213744e6,#08151ddd);border:1px solid #9e8b6055;border-radius:6px;box-shadow:0 16px 30px #0008;color:#dce5e6}#mycoach small,#mycoach span{display:block;color:#9fb3ba;font-size:10px}#mycoach strong{display:block;color:#ead8ad;font-size:15px;margin:8px 0}
#coaches{width:204px}#coachlist{display:grid;gap:10px;margin-top:14px}.coach{position:relative;width:204px;height:92px;margin:0;padding:7px;border:1px solid #62778055;border-radius:6px;background:linear-gradient(100deg,#1b303bd9,#08151dbd);filter:drop-shadow(8px 12px 9px #0009);overflow:hidden}.coach .portrait{width:72px;height:82px}.coach strong{font-size:15px}.coach-badge{position:absolute;right:5px;top:5px;padding:3px 6px;border-radius:9px;background:#263943;color:#9fb2b9;font-size:9px;z-index:3}.coach-affordable{border-color:#d9bf765e;box-shadow:inset 0 0 0 1px #d9bf7628}.coach-affordable .coach-badge{background:#214936;color:#bff0d2}
#chat{width:204px;height:204px;padding:12px;background:#08151db8;border:1px solid #57717c55;border-radius:6px;color:#d7e1e3;box-shadow:0 18px 30px #0007}#chat h2,#resources h2{margin:0 0 9px;font-size:14px;letter-spacing:.08em}#chatMessages{height:124px;overflow:hidden}#chatMessages p{font-size:10px;line-height:1.5;margin:0 0 7px;color:#aebfc5}#chatForm{display:flex;gap:5px}#chatForm input{width:142px;min-width:0;background:#0d202a;border:1px solid #4d6873;color:#eef4f5;padding:7px;font-size:10px}#chatForm button{background:#2b414b;border:1px solid #607c86;color:#dce7e9;font-size:10px;padding:0 8px}
#resources{width:204px;padding:12px;background:#08151db8;border:1px solid #57717c55;border-radius:6px;color:#d7e1e3;box-shadow:0 18px 30px #0007}#wallet{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin:0}#wallet .resource{margin:0;padding:5px;background:#10242eaa;border-radius:4px}#wallet .resource svg{width:22px;height:22px}#wallet .resource b{font-size:14px}.balance-title{margin:0 0 10px!important}
#actions{gap:10px;z-index:82;filter:drop-shadow(5px 13px 9px #000b)}#actions button{width:148px;height:50px;font-size:15px}#actions .skip{width:122px}#actions button:disabled{opacity:.34;filter:saturate(.35)}#actions .active{box-shadow:0 0 0 2px #e1c27a66;background:linear-gradient(#80683f,#372d1c)}#actionHint{top:60px!important}
#developmentPanel{position:absolute;left:0;bottom:66px;width:610px;padding:15px;background:linear-gradient(145deg,#142b37fa,#091820fa);border:1px solid #718993;border-radius:8px;box-shadow:0 22px 50px #000b;z-index:90}#developmentPanel[hidden]{display:none}.development-head{display:flex;align-items:center;gap:13px;margin-bottom:12px}.development-head strong{font-size:16px;color:#ecd8a9}.development-head span{font-size:11px;color:#aabcc2}.development-head button{margin-left:auto;width:auto;height:30px;padding:0 11px;font-size:10px}#developmentChoices{display:flex;gap:8px}#developmentChoices button{width:103px;height:64px;display:grid;grid-template-columns:26px 1fr;align-items:center;padding:7px;font-size:11px}#developmentChoices svg{width:23px;color:var(--resource)}#developmentChoices small{font-size:9px;color:#9eb1b7}#developmentChoices .chosen{background:linear-gradient(#75603a,#382f20);border-color:#e0c27c}#developmentHint{display:block;margin-top:9px;color:#aabdc4;font-size:10px}
#hand{z-index:110}#hand .card-wrap{pointer-events:auto}.hand-card .availability{top:12px;right:10px}.game-selected .card-body{outline:3px solid #f0d188;outline-offset:4px;filter:drop-shadow(0 0 14px #dfba5d88)}.coach.game-selected{outline:3px solid #f0d188;outline-offset:3px}.upgrade-source .card-body:after{box-shadow:inset 0 0 0 2px #74d7bd,inset 0 0 0 5px #091218b0}#phaseHint{z-index:83}
@media(hover:hover) and (pointer:fine){body:not(.edit-mode) .hand-card:hover{z-index:420!important}body:not(.edit-mode) .hand-card:hover .card-body{transform:translateY(-12px) rotateZ(0) scale(1.025)}}
.hand-card:focus-visible{z-index:420!important}.hand-card:focus-visible .card-body{transform:translateY(-12px) rotateZ(0) scale(1.025)}
.player-count{display:flex;gap:14px;align-items:center;margin:18px 0}.player-count select{background:#18303c;color:#fff;border:1px solid #6c8791;padding:8px 14px}

/* V2 foreground: reserved players, owned coach and hand share one row. */
#actions>#actionHint{color:#f1d69b;font-size:14px;line-height:1.5}
#negotiation{width:250px}#negotiation h2,#mycoach h2{font-size:17px;line-height:24px;margin:0}
#reserved{height:136px;margin-top:16px;gap:10px}
#reserved .card-wrap{flex-basis:76px;width:76px!important;height:120px!important}
.empty-reserve{width:76px;height:120px;flex:0 0 76px}
#negotiation p{margin:8px 0 0;font-size:12px}
#mycoach{width:176px;min-height:0;padding:0;background:none;border:0;box-shadow:none}
.owned-coach{position:relative;height:128px;margin-top:16px;background:#10232ee6;border:1px solid #9e8b6055;border-radius:6px;overflow:hidden}
#mycoach .portrait{inset:0 0 24%;background-size:300% 200%;filter:saturate(.8)}
.owned-coach-info{position:absolute;inset:auto 0 0;padding:24px 12px 10px;background:linear-gradient(transparent,#07151cf5 36%)}
#mycoach strong{font-size:16px;margin:0 0 4px}#mycoach span{font-size:12px;line-height:1.5;color:#c4d4d8}
.coach-empty{height:100%;display:flex;flex-direction:column;justify-content:center;padding:16px}
#handlabel{left:510px;top:854px}#handPaging{left:510px;top:924px}
#resources{padding:14px 12px}#resources h2{display:flex;align-items:center;justify-content:space-between;letter-spacing:0}
#resources h2 small{margin:0;font-size:12px;white-space:nowrap}
#wallet{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#wallet .resource{display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;padding:8px 6px;min-width:0}
#wallet .resource svg{width:20px;height:20px}
#wallet .resource>div{display:block;width:auto;min-width:0}
#wallet .resource>div>small{font-size:11px;white-space:nowrap;margin-bottom:4px}
#wallet .resource b{display:flex;align-items:baseline;justify-content:space-between;font-size:19px;font-variant-numeric:tabular-nums}
#wallet .resource b small{font-size:10px;color:#a9c0c8}

/* Prevent keyboard focus from scrolling the fixed game canvas. */
#stage{overflow:clip}
#negotiation p{display:none}

/* Compact market and a full-height foreground card row. */
#tierlabels{top:112px}
#negotiation{width:501px}
#reserved{height:225.25px;margin-top:11px;gap:12px}
#reserved .card-wrap{flex:0 0 159px;width:159px!important;height:225.25px!important}
.empty-reserve{width:159px;height:225.25px;flex:0 0 159px}
#reserved .card-info{padding:24px 13px 9px}#reserved .card-info strong{font-size:17px}
#reserved .card-info small{display:block;font-size:11px}#reserved .card-cost{display:flex}
#reserved .position{font-size:18px;left:12px;top:12px}#reserved .points{font-size:30px;right:12px;top:9px}
#reserved .availability{top:44px;right:8px;transform:none}
#mycoach{width:159px}.owned-coach{height:225.25px;margin-top:11px;border-radius:9px}
#mycoach .portrait{inset:0 0 16%}.owned-coach-info{padding:30px 13px 14px}
#mycoach strong{font-size:17px}#mycoach span{font-size:12px}
#handlabel{left:766px;top:760px;display:flex;align-items:baseline;gap:14px;line-height:24px}
#handlabel span{display:inline;margin:0}#handPaging{left:1510px;top:757px;z-index:130}
.hand-card .card-info strong{font-size:17px}.hand-card .card-cost{display:none}
.empty-hand{left:840px;top:860px}
#broadcast{width:268px;height:140px}#broadcast h2{font-size:16px;margin-bottom:10px}
#broadcastMessages{height:106px;overflow:auto;scrollbar-width:thin;scrollbar-color:#526870 transparent}
#broadcastMessages p{font-size:12px;line-height:1.65;margin:0 0 8px;color:#b8ccd1}
#chatMessages{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#526870 transparent}
#chatForm button{white-space:nowrap;padding:0 6px;flex-shrink:0}
@media(prefers-reduced-motion:reduce){body:not(.edit-mode) .hand-card:hover .card-body,.hand-card:focus-visible .card-body{transform:rotateZ(0)}}
.no-motion .hand-card:hover .card-body,.no-motion .hand-card:focus-visible .card-body{transform:rotateZ(0)}

/* V2.1 staged actions, compact negotiation and hand controls. */
#mobileMarketTitle{display:none}
.status-stack{position:absolute;top:46px;right:8px;z-index:6;display:flex;flex-direction:column;align-items:flex-end;gap:5px;pointer-events:none}
.availability{position:static!important;display:block!important;padding:5px 8px!important;border:1px solid currentColor;border-radius:5px!important;font-size:11px!important;font-weight:700;line-height:1;letter-spacing:.04em;box-shadow:0 5px 14px #0008;transform:none!important;animation:status-arrive 320ms cubic-bezier(.16,1,.3,1) both}
.sign-badge{background:#173f31!important;color:#c9f5d9!important}
.upgrade-badge{background:#5b4720!important;color:#ffe5a2!important}
.upgrade-source .card-body,.upgrade-target .card-body{outline:3px solid #f0c968;outline-offset:4px;filter:drop-shadow(0 8px 16px #e5b94f72)}
.upgrade-source .card-body:after,.upgrade-target .card-body:after{box-shadow:inset 0 0 0 2px #f0c968,inset 0 0 0 5px #091218b0}
.game-selected .card-body{outline-color:#fff0b8;filter:drop-shadow(0 10px 20px #edc35a9e)}
#negotiation{width:340px}
#reserved{height:150px;gap:10px}
#reserved .card-wrap{flex:0 0 104px;width:104px!important;height:147.33px!important}
.empty-reserve{flex:0 0 104px;width:104px;height:147.33px}
#reserved .card-info{inset:44% 0 0;padding:13px 7px 5px}#reserved .card-info strong{font-size:12px;line-height:1.1}#reserved .card-info small{font-size:9px;line-height:1.15;margin-top:2px}
#reserved .card-cost{gap:3px;margin-top:3px;font-size:9px;line-height:1}#reserved .card-cost svg{width:10px;height:10px}
#reserved .position{font-size:13px;left:8px;top:8px}#reserved .points{font-size:21px;right:8px;top:6px}
#reserved .status-stack{top:34px;right:5px;gap:3px}#reserved .availability{font-size:8px!important;padding:3px 4px!important}
.coach-slot-empty{background:transparent!important;border:1px dashed #91a8ad55!important;box-shadow:none!important}
.coach-slot-empty .coach-empty{background:transparent;color:#aebfc5}
#handlabel{width:850px;justify-content:space-between}
.hand-title{display:flex!important;align-items:baseline;gap:14px}.hand-title small{font-size:12px;color:#b6c7ce}
.hand-sort{display:flex;align-items:center;gap:8px;color:#b7c8cd;font-size:12px;text-shadow:none}
.hand-sort select{height:32px;border:1px solid #657d85;border-radius:5px;background:#0d2029;color:#eef3ee;padding:0 28px 0 10px;cursor:pointer}
#scorePanel{position:relative;display:flex;align-items:baseline;gap:7px;margin:0 0 10px;padding:9px 10px;background:#10242eaa;border-radius:5px;color:#b8c9ce;overflow:visible}
#scorePanel span{font-size:11px}#scorePanel strong{margin-left:auto;color:#f1d69b;font:26px Georgia,serif;font-variant-numeric:tabular-nums}#scorePanel small{font-size:11px;color:#aebfc5}
#wallet .resource{position:relative}.gain-delta,.score-delta{position:absolute;right:7px;top:-7px;margin:0;color:#fff0aa;font-style:normal;font-weight:700;font-size:13px;pointer-events:none;animation:delta-rise 720ms cubic-bezier(.16,1,.3,1) both}
.value-gain b{animation:value-pop 520ms cubic-bezier(.16,1,.3,1)}.value-gain{border-color:var(--resource);filter:brightness(1.18)}
.score-gain strong{animation:score-pop 620ms cubic-bezier(.16,1,.3,1)}.score-gain{box-shadow:inset 0 0 0 1px #e6c56f99}
@keyframes status-arrive{from{opacity:.25;transform:translateY(-5px) scale(.9)}to{opacity:1;transform:none}}
@keyframes value-pop{0%{transform:scale(1)}40%{transform:scale(1.65);color:#fff3b8}100%{transform:scale(1)}}
@keyframes score-pop{0%{transform:scale(1)}35%{transform:scale(1.75);color:#fff}100%{transform:scale(1)}}
@keyframes delta-rise{0%{opacity:0;transform:translateY(7px) scale(.8)}35%{opacity:1}100%{opacity:0;transform:translateY(-18px) scale(1.08)}}

@media (prefers-reduced-motion:reduce){.availability,.gain-delta,.score-delta,.value-gain b,.score-gain strong{animation:none!important}.value-gain,.score-gain{filter:brightness(1.18)}}
.no-motion .availability,.no-motion .gain-delta,.no-motion .score-delta,.no-motion .value-gain b,.no-motion .score-gain strong{animation:none!important}

/* Phone play uses the same tabletop as desktop; portrait asks for a rotation. */



/* Release draft: three distinct card tiers, with explicit labels as well as colour. */
.card-wrap[data-tier="1"]{--level-colour:#61cfa2;--level-bg:#124c40}
.card-wrap[data-tier="2"]{--level-colour:#58b5ff;--level-bg:#153f76}
.card-wrap[data-tier="3"]{--level-colour:#edbb57;--level-bg:#694921}
.card-wrap[data-tier] .card-body{background:linear-gradient(145deg,var(--level-bg),#091923 85%);border-top:4px solid var(--level-colour)}
.card-wrap[data-tier] .portrait{inset:14px 0 30%;filter:none}
.player-name{position:absolute;left:9px;right:9px;top:55%;z-index:3;font-size:11px;line-height:1.3;color:#fff;text-shadow:0 1px 4px #000;font-weight:bold;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-wrap[data-tier] .card-info{inset:57% 0 0;padding-top:25px}
.card-wrap[data-tier] .card-info:after{content:'Ⅰ 新星';position:absolute;bottom:2px;right:7px;font-size:8px;color:var(--level-colour)}
.card-wrap[data-tier="2"] .card-info:after{content:'Ⅱ 主力'}
.card-wrap[data-tier="3"] .card-info:after{content:'Ⅲ 核心'}
#reserved .player-name{top:47%;font-size:9px;left:7px;right:7px}
#reserved .card-wrap .portrait{inset:8px 0 39%}
#reserved .card-wrap .card-info{inset:50% 0 0;padding:13px 7px 8px}
#reserved .card-info:after{bottom:3px;font-size:7px}

/* Card information: reward above, role below the enlarged identity. */
.card-wrap .position.player-reward{display:flex;align-items:center;left:9px;top:10px;font:700 16px Club,sans-serif;color:#fff;padding:3px 5px;border-radius:5px;background:#071b24df;max-width:65%;z-index:4}
.resource-reward{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;color:var(--resource)}.resource-reward svg{width:19px;height:19px;flex-shrink:0}
.card-wrap .player-name{top:54%;font-size:13px;line-height:1.35;left:9px;right:9px}
.card-wrap[data-tier] .card-info{inset:63% 0 0;padding:6px 9px 12px}
.card-wrap .card-info .role-label{color:var(--role-colour);font-size:15px;font-weight:700;line-height:1.2;min-height:19px}
.card-wrap[data-role-language="en"] .card-info .role-label{font-size:12px;min-height:29px;white-space:normal;overflow-wrap:normal}
.card-wrap .card-cost{margin-top:6px;gap:5px;flex-wrap:wrap;font-size:11px}.card-wrap .card-cost svg{width:13px;height:13px}
#reserved .card-wrap .player-name{top:48%;font-size:10px;left:6px;right:6px}
#reserved .card-wrap .card-info{inset:60% 0 0;padding:3px 6px 9px}
#reserved .card-wrap .role-label{font-size:11px;min-height:14px}
#reserved .card-wrap[data-role-language="en"] .role-label{font-size:8px;min-height:19px}
#reserved .card-cost{margin-top:3px;font-size:9px;gap:3px}#reserved .card-cost svg{width:10px;height:10px}
#reserved .position.player-reward{left:6px;top:7px;font-size:12px;padding:2px 4px}#reserved .resource-reward svg{width:14px;height:14px}
#handlabel{gap:10px}.hand-title{margin-right:auto}.hand-sort{flex-shrink:0}
.coach{height:104px;align-items:center;gap:8px}.coach-face{position:relative;width:72px;height:88px;flex-shrink:0}.coach .coach-face .portrait{width:100%;height:100%;transform:none;border-radius:4px}
.coach-rewards{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center;flex-wrap:wrap;gap:5px;padding:5px 2px;background:#061923ec;font-size:12px}.coach-rewards svg{width:15px;height:15px}
.coach-purchase{min-width:0;flex:1;align-self:center;padding-top:12px;text-align:left}.coach-purchase strong{font-size:13px;line-height:1.2;overflow-wrap:anywhere}.coach-purchase small{display:block;margin-top:4px;font-size:10px}.coach-cost{display:flex;flex-wrap:wrap;gap:4px 7px;margin-top:5px;font-size:11px}.coach-cost span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;color:var(--resource,#dfe8e7)}.coach-cost svg{width:14px;height:14px;flex-shrink:0}
.settings-options select{min-height:40px;max-width:150px;background:#132c27;color:#eef3e9;border:1px solid #728879;border-radius:5px;padding:6px 10px;font:inherit}

/* Keep name, role and price grouped at the lower edge. */
.card-wrap .player-name{top:64%;font-size:13px}
.card-wrap[data-tier] .card-info{inset:72% 0 0;padding:4px 9px 12px}
.card-wrap .card-info .role-label{min-height:0;line-height:1.15}
.card-wrap[data-role-language="en"] .card-info .role-label{min-height:0;font-size:11px;line-height:1.15}
.card-wrap .card-info .card-cost{position:absolute;left:9px;right:7px;bottom:14px;margin:0;flex-wrap:nowrap;gap:5px}
#reserved .card-wrap .player-name{top:61%;font-size:10px}
#reserved .card-wrap .card-info{inset:70% 0 0;padding:3px 6px 9px}
#reserved .card-wrap[data-role-language="en"] .role-label{font-size:8px;line-height:1.1;min-height:0}
#reserved .card-info .card-cost{left:6px;right:5px;bottom:12px;gap:3px}
.club i.club-avatar{background:none;clip-path:none;flex-shrink:0;padding:0;filter:none}
.club-crest{display:block;width:100%;height:100%}

#detail.club-profile-open{width:min(980px,96vw);max-width:96vw;max-height:88dvh;padding:28px 30px}.club-profile{display:grid;gap:24px;padding-right:4px}.club-profile-head h2{font-size:28px!important;margin:0!important}.club-profile-head p{color:#d7c38e;margin:5px 0 0!important}.club-profile-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.club-profile-resources span{display:flex;align-items:baseline;gap:7px;padding:9px 11px;background:#1a3039;border:1px solid #40575e;border-radius:6px;font-size:13px}.club-profile-resources b{font-weight:600;color:#e9e8dc}.club-profile-resources small{margin-left:auto;color:#a9d8bb!important;white-space:nowrap}.club-profile-tabs{display:flex;gap:8px;flex-wrap:wrap}.club-profile-tabs button{padding:9px 17px;background:#1a3039;color:#d4e3e3;border:1px solid #4a646c;border-radius:6px}.club-profile-tabs button[aria-pressed="true"]{background:#d4b96c;color:#102018;border-color:#d4b96c;font-weight:700}.club-profile section{border-top:1px solid #425a5e;padding-top:20px}.club-profile h3{margin:0 0 14px;font-size:18px;font-weight:600;color:#e9d49f}.club-profile h3 small{font-size:12px;color:#b0c5c7}.club-profile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(174px,1fr));gap:12px}.club-profile-card{min-width:0;background:#142630;border:1px solid #385159;border-radius:8px;padding:12px;display:grid;justify-items:center;align-content:start;gap:10px}.club-profile-art{width:150px;height:213px}.club-profile-art .card-wrap{position:relative!important;left:auto!important;top:auto!important;width:150px!important;height:213px!important;z-index:auto!important;--pitch:0deg!important;--yaw:0deg!important;--rot:0deg!important;pointer-events:none}.club-profile-art .card-body{transform:none!important}.club-profile-card-info{width:100%;font-size:12px;line-height:1.5}.club-profile-card-info strong{display:block;font-size:15px;color:#fff;overflow-wrap:anywhere}.club-profile-card-info p{margin:4px 0!important;color:#c3d3d6}.club-profile-empty{color:#a8bac0;font-size:14px}.club-profile-coach{display:flex;align-items:start;gap:16px;padding:14px;background:#142630;border:1px solid #385159;border-radius:8px}.club-profile-coach .portrait{position:relative;width:100px;height:128px;flex:0 0 100px;background-color:#213743;border-radius:6px}.club-profile-coach strong{font-size:18px;color:#f2e8d5}.club-profile-coach p{font-size:14px;margin:7px 0!important}.result-rankings{padding-left:20px}.result-rankings li{margin:9px 0;padding:7px 11px;background:#1a3039;border-radius:5px}.result-rankings li:first-child{color:#f0cf72;border:1px solid #ad9152}.result-rankings b{margin-right:12px}@media(max-width:600px){#detail.club-profile-open{width:calc(100vw - 16px);max-width:none;padding:18px 16px}.club-profile-resources{grid-template-columns:repeat(2,minmax(0,1fr))}.club-profile-resources span{display:block}.club-profile-resources small{display:block;margin-left:0}.club-profile-grid{grid-template-columns:1fr}.club-profile-card{display:flex;align-items:flex-start;justify-content:flex-start;gap:14px}.club-profile-art{width:112px;height:159px;flex:0 0 112px}.club-profile-art .card-wrap{width:112px!important;height:159px!important}.club-profile-art .player-name{font-size:10px}.club-profile-art .card-info{padding:3px 6px!important}.club-profile-art .role-label{font-size:10px!important}.club-profile-card-info{flex:1}.club-profile-coach .portrait{width:80px;height:102px;flex-basis:80px}}

/* A phone in landscape sees the complete desktop table, including all three markets. */
@media (pointer:coarse) and (orientation:landscape){
 #viewport{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
}
#rotatePrompt{display:none}
@media (pointer:coarse) and (orientation:portrait){
 body:not(.shell-open) #rotatePrompt{position:fixed;inset:0;z-index:1000;display:grid;place-content:center;gap:16px;padding:32px max(28px,env(safe-area-inset-right)) max(32px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left));text-align:center;background:linear-gradient(160deg,#102b28,#061216);color:#f3e4bd}
 #rotatePrompt svg{width:60px;height:60px;margin:auto;color:#e4c77d}
 #rotatePrompt strong{font-size:24px}
 #rotatePrompt span{font-size:15px;line-height:1.6;color:#cbdad0}
}
