.catalog-actions,.photo-buttons,.join-row,.team-heading,.pitch-tools,.rating-head,.lobby-team{display:flex;align-items:center;gap:10px}
.catalog-actions .ic,.pitch-tools .ic{width:19px;height:19px}
.team-actions{display:flex;gap:8px}
#mobile-match{display:none}
.team-heading{justify-content:space-between;margin:3px 0 20px}
.team-heading h1{margin:0;font-size:clamp(2.25rem,4vw,3.45rem);letter-spacing:-.055em;line-height:1.04}
.team-heading p,.squad-collection p,.small-note{margin:7px 0 0;color:var(--muted);line-height:1.45}
.team-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(238px,28%);gap:19px;align-items:start}
.field-panel,.club-box,.squad-collection{padding:17px;background:white;border:1px solid var(--line);border-radius:19px}
.pitch-tools{margin-bottom:13px;flex-wrap:wrap}
.pitch-tools label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.87rem}
select{color:var(--ink);font:inherit;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:5px 27px 5px 10px;background-color:white}
.pitch-tools select{font-size:.96rem;font-weight:550}
.pitch-tools .text-btn{margin-left:auto;gap:6px}
.lineup-pitch{position:relative;isolation:isolate;display:grid;grid-template-rows:repeat(4,minmax(64px,1fr));gap:5px;overflow:hidden;padding:12px 3%;min-height:445px;border-radius:13px;background:repeating-linear-gradient(0deg,#16715e 0%,#16715e 12.5%,#1c7964 12.5%,#1c7964 25%);box-shadow:inset 0 0 80px #073f4336}
.pitch-marks{position:absolute;z-index:-1;inset:15px;border:2px solid #ddfbd08a;border-radius:3px;pointer-events:none}
.pitch-marks::before,.pitch-marks::after,.pitch-marks i,.pitch-marks b{content:"";position:absolute;left:50%;transform:translateX(-50%)}
.pitch-marks::before{top:50%;width:100%;border-top:2px solid #ddfbd08a}
.pitch-marks::after{top:50%;width:100px;height:100px;border:2px solid #ddfbd08a;border-radius:50%;transform:translate(-50%,-50%)}
.pitch-marks i,.pitch-marks b{width:35%;height:13%;top:-1px;border:2px solid #ddfbd08a;border-top:0}
.pitch-marks b{top:auto;bottom:-1px;transform:translateX(-50%) rotate(180deg)}
.field-row{display:flex;justify-content:space-evenly;align-items:center;gap:3px;min-width:0}
.field-slot{min-width:0;max-width:110px;flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;background:transparent;padding:4px 0;color:white;border-radius:9px}
.field-slot:focus-visible{outline-color:var(--lime)}
.kit-wrap{position:relative;display:grid;place-items:center;height:48px;width:60px;max-width:100%}
.kit,.empty-kit{width:56px;height:44px;display:grid;place-items:center;max-width:100%}
.kit{clip-path:polygon(26% 5%,37% 0,44% 9%,56% 9%,63% 0,74% 5%,100% 26%,87% 51%,76% 43%,77% 100%,23% 100%,24% 43%,13% 51%,0 26%);background:repeating-linear-gradient(100deg,#f7f3ff 0 9px,#9578ed 9px 17px);color:#27184a}
.kit-GK{background:repeating-linear-gradient(100deg,#f9e87b 0 9px,#efd04e 9px 17px)}
.kit b{background:#32274f;color:white;font-size:.83rem;border-radius:4px;padding:2px 4px;line-height:1}
.empty-kit{border:2px dashed #e7fbd5b2;border-radius:12px;width:42px;height:39px;background:#0554437a}
.field-photo{height:46px;max-width:52px;object-fit:contain;border:2px solid white;border-radius:4px;background:white}
.captain-tag{position:absolute;right:-1px;top:-2px;display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#c9ef6e;color:#233718;font-size:.72rem;font-style:normal;font-weight:750}
.field-name{max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding:3px 7px;border-radius:5px;background:#073e35eb;color:#fff;font-size:.84rem;font-weight:540}
.substitutes{margin-top:12px;border-top:1px solid var(--line)}
.substitutes summary{cursor:pointer;padding:13px 0 3px;font-weight:550;min-height:44px}
.substitutes summary span{color:var(--muted);font-size:.88rem}
.bench-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px 0 0}
.bench-list button{display:flex;align-items:center;gap:6px;padding:7px;background:#f5f2fb;border-radius:10px;min-height:50px;text-align:left}
.bench-list small,.bench-list strong,.roster-option small,.owned-photo small{display:block}
.bench-list small,.roster-option small,.owned-photo small{color:var(--muted);font-size:.81rem}
.bench-list strong{font-size:.9rem}
.club-box{padding:21px}
.rating-head .book-tile{width:49px;height:49px}
.rating-head small,.rating-head strong{display:block}
.rating-head strong{font-size:2.1rem;letter-spacing:-.045em}
.rating-head em{font-size:1rem;color:var(--muted);font-style:normal}
.line-bars{display:grid;gap:12px;margin:22px 0}
.line-bars>div{display:grid;grid-template-columns:6.4rem 1fr 2ch;align-items:center;gap:8px;font-size:.9rem}
.line-bars i{height:7px;background:#e6e2f1;border-radius:8px;overflow:hidden}
.line-bars b{display:block;height:100%;background:#8068d1;border-radius:8px}
.match-start,.team-how{width:100%}
.team-how{margin-top:4px;font-size:.87rem}
.squad-collection{margin-top:17px;padding:18px 21px}
.squad-collection h2{font-size:1.4rem}
.owned-players{display:flex;flex-wrap:wrap;gap:8px}
.owned-photo{display:flex;align-items:center;gap:9px;min-height:48px;padding:5px 10px 5px 5px;background:#f6f3fc;border-radius:10px;text-align:left;margin-top:8px}
.owned-photo img{width:38px;height:48px;object-fit:cover;border-radius:6px}
.roster-options{display:grid;gap:7px;margin:12px 0}
.roster-option{display:flex;align-items:center;gap:11px;width:100%;min-height:58px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:left}
.roster-option[aria-pressed=true]{background:#f1edff;border-color:#a993df}
.roster-option .ic{margin-left:auto}
.roster-rating{display:grid;place-items:center;min-width:35px;height:35px;border-radius:8px;background:#e7f5cc;color:#335124;font-weight:650}
.photo-buttons{flex-wrap:wrap;margin:12px 0}
.scan-thumb,.photo-large{display:block;max-width:100%;max-height:190px;object-fit:contain;margin:12px auto;border-radius:8px}
.photo-large{max-height:48vh}
#recognized-card:not(:empty){background:#f0edfa;border-radius:9px;padding:8px 10px;line-height:1.45;margin-top:9px}
.check-row{display:flex;align-items:center;gap:10px;min-height:46px}
.check-row input{width:21px;height:21px}
#link-player{margin-top:8px}
.room-ticket,.result-board{display:grid;justify-items:center;gap:8px;padding:20px 12px;text-align:center;background:#eaf5d4;border-radius:15px}
.room-ticket>strong,.result-board>strong{font-size:clamp(1.85rem,7vw,2.75rem);font-weight:700;letter-spacing:.04em;color:#2b4434}
.room-ticket small,.result-board small{font-size:.87rem}
.result-board{background:#f0eaff}
.result-board>strong{font-size:3.35rem;color:var(--purple)}
.duels,.opponent{list-style:none;margin:14px 0;padding:0}
.duels li{display:grid;grid-template-columns:1fr auto 6.5rem;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}
.duels small{text-align:right;color:var(--muted)}
.opponent li{display:flex;justify-content:space-between;padding:4px 0}
.lobby-team{padding:12px;background:#f1edf9;border-radius:10px}
.lobby-team span{margin-left:auto}
.lobby-block{margin:14px 0 0;padding:12px 0 0;border-top:1px solid var(--line)}
.lobby-block h3,.lobby-block p{margin:5px 0 9px}
.join-row input{min-width:0}
.card-value{display:block;font-size:.79rem;color:#645478;font-weight:500}
.card-value:empty{display:none}
.cup-name{display:block;font-size:.86rem;font-weight:540;line-height:1.25;letter-spacing:normal;margin-top:4px}
.number-grid.cup-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.value-box{padding:13px;background:#f6f2fb;border-radius:12px;margin:12px 0}
.value-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.value-head b{color:#5636b2;font-size:1.3rem}
.value-box p,.value-box li{font-size:.9rem;line-height:1.45}
.value-box p{margin:5px 0}
.value-box details{margin-top:8px}
.value-box summary{cursor:pointer;color:#593ea8}
@media(max-width:800px){.team-layout{grid-template-columns:minmax(0,1fr) 213px;gap:10px}.field-panel,.club-box{padding:12px}.pitch-tools label{display:grid;gap:3px}.field-name{font-size:.77rem}.bench-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.top-nav{gap:2px}.top-nav a{gap:5px;min-width:0;padding-inline:5px;font-size:.85rem}.top-nav .ic{width:17px;height:17px}.team-layout{grid-template-columns:1fr}.team-heading{gap:8px;margin-bottom:13px}.team-heading p{font-size:.9rem}.team-heading h1{font-size:2.12rem}.team-heading .btn{font-size:.85rem;padding-inline:9px}.lineup-pitch{min-height:335px;padding:6px 4px}.pitch-marks{inset:8px}.kit-wrap{width:46px;height:38px}.kit{width:45px;height:36px}.field-photo{height:36px}.field-name{padding:2px 4px;font-size:.72rem}.pitch-tools{gap:8px}.pitch-tools .text-btn{font-size:.82rem;gap:3px}.pitch-tools select{padding:4px 2px;font-size:.88rem}.section-top{flex-wrap:wrap}.catalog-actions{gap:5px;flex-wrap:wrap}.catalog-actions .btn{font-size:.84rem;padding:0 8px}.catalog-actions .ic{width:16px}.number-grid.cup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.club-box .line-bars{margin:12px 0}.club-box{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:5px 10px}.club-box .small-note{font-size:.83rem}.club-box .line-bars,.club-box .match-start,.club-box .team-how{grid-column:1/-1}.team-how{margin-top:0}.squad-collection{padding:14px}.top-nav a[aria-current=page]{background:#eee8fb}.card-copy{gap:4px}.value-head{flex-wrap:wrap}}
@media(max-width:360px){.pitch-tools{gap:5px}.pitch-tools .text-btn .ic{display:none}.team-heading{align-items:flex-start}.catalog-actions{width:100%}}
@media(max-width:620px){.team-heading{display:grid;gap:10px}.team-actions{flex-wrap:wrap}.team-actions .btn{min-height:44px}#mobile-match{display:inline-flex}.club-box .match-start{display:none}}
