@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');
:root { color-scheme: dark; --bg:#0c0e0f; --panel:#15191a; --line:#dfe6d2; --muted:#89908b; --accent:#d9b735; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; overflow:hidden; background:radial-gradient(circle at 70% 0%,#202526 0,#0c0e0f 42%); color:#f1f3ed; font:15px/1.4 'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:20px; height:64px; max-width:1440px; margin:0 auto; padding:6px 34px 5px; border-bottom:1px solid #293031; } .brand-line { display:flex; align-items:baseline; gap:14px; min-width:0; } .brand-line .eyebrow { flex:0 0 auto; margin:0; } .brand-line h1 { white-space:nowrap; } .version-label { color:var(--muted); font-size:11px; font-weight:500; letter-spacing:.04em; white-space:nowrap; }
.eyebrow { margin:0 0 2px; color:#a9afa8; font-size:9px; letter-spacing:.16em; }
.mobile-notice { display:none; }
h1,h2,p { margin-top:0; } h1 { margin-bottom:0; font-size:clamp(24px,2.5vw,32px); font-weight:560; letter-spacing:-.035em; } h2 { margin-bottom:0; font-size:18px; font-weight:560; }
.formation-control { display:flex; align-items:center; gap:18px; min-width:0; } .formation-picker { display:flex; align-items:center; gap:12px; padding:6px 8px; border:1px solid #293332; border-radius:8px; background:#222929; } .formation-control label { color:var(--muted); font-size:12px; } select { padding:10px 12px; border:1px solid #3b4442; border-radius:6px; background:#1b2021; color:#f4f5ef; font:inherit; } .reset-button,.copy-button { padding:8px 10px; border:1px solid #3b4442; border-radius:6px; background:#151a1a; color:#c8cec6; font-family:'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; font-size:13px; font-weight:500; line-height:1.25; letter-spacing:.005em; text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; cursor:pointer; } .copy-actions { display:flex; align-items:center; gap:6px; } .reset-button:hover,.copy-button:hover { border-color:#65706a; color:#fff; background:#1c2222; }
.workspace { display:grid; grid-template-columns:104px 290px 112px max-content minmax(132px,1fr); grid-template-rows:minmax(0,1fr); justify-content:center; align-items:stretch; gap:10px; height:calc(100dvh - 64px); max-height:calc(100svh - 64px); min-height:0; padding:24px 34px 26px; } .crest-strip { grid-column:1; grid-row:1; position:relative; width:94px; justify-self:start; overflow:hidden; border:0; border-right:1px solid #39433f; border-radius:10px 0 0 10px; background:linear-gradient(180deg,#17271e,#0e1613); } .crest-strip::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#0c0e0f00 0%,#0c0e0f22 70%,#0c0e0f 100%); pointer-events:none; } .crest-strip img { position:absolute; top:50%; left:50%; width:255px; height:100%; object-fit:cover; object-position:center; opacity:.3; transform:translate(-50%,-50%) scale(1.08); filter:saturate(.9) contrast(1.05); }
.player-panel { min-width:0; min-height:0; overflow:auto; } .panel-heading,.section-title { display:flex; align-items:center; justify-content:space-between; gap:12px; } .hint { margin:10px 0 18px; color:var(--muted); font-size:12px; }
.close-panel,.mobile-actions,.mobile-tools-toggle,.mobile-formation-control,.mobile-player-actions { display:none; } .player-list { display:grid; gap:7px; max-height:410px; overflow:auto; padding-right:4px; }
.player-card,.bench-card { display:flex; align-items:center; gap:8px; min-height:44px; padding:4px 8px; border:1px solid #2d3534; border-radius:8px; background:#141819; cursor:grab; user-select:none; } .player-card:hover,.bench-card:hover { border-color:#65706a; background:#1b2020; } .player-card:active,.bench-card:active { cursor:grabbing; }
.shirt-thumb { position:relative; display:grid; flex:0 0 30px; place-items:center; width:30px; height:33px; } .mini-shirt { grid-area:1/1; width:30px; height:33px; object-fit:contain; } .shirt-number { position:absolute; top:44%; left:50%; width:max-content; transform:translate(-50%,-50%); color:#111; font:700 12px/.8 'Bebas Neue',Impact,sans-serif; letter-spacing:0; text-align:center; white-space:nowrap; } .shirt-number--leading-one { margin-left:-2px; } .shirt-number .tight-before-one { margin-right:-2px; } .player-meta { min-width:0; } .player-name { display:inline; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; /* vorher: 15px */ font-weight:500; } .player-position { display:inline; margin-left:6px; color:var(--muted); font-size:10px; font-weight:400; }
.bench-section { margin-top:30px; padding-top:20px; border-top:1px solid #293031; } .section-title { margin-bottom:12px; } .section-title span { color:var(--muted); font-size:12px; } .bench-list { display:grid; gap:5px; min-height:60px; padding:6px; border:1px dashed #3c4542; border-radius:8px; }
.pitch-area { position:relative; display:contents; grid-template-columns:max-content 112px minmax(132px,1fr); grid-template-rows:minmax(0,1fr); gap:10px; min-width:0; min-height:0; height:100%; padding-right:0; } .pitch-wrap { grid-column:4; grid-row:1; width:max-content; justify-self:start; height:100%; max-height:100%; min-height:0; padding:8px; border:1px solid #363d3a; border-radius:10px; background:#090b0b; box-shadow:0 22px 60px #0009; } .pitch { position:relative; width:auto; height:100%; aspect-ratio:68 / 105; overflow:hidden; border-radius:4px; background:#315b17 url('../assets/rasen-textur-symmetrisch.png') center/100% 100% no-repeat; touch-action:none; } .pitch.player-dragging { overflow:visible; } .pitch-markings { position:absolute; z-index:1; inset:0; width:100%; height:100%; pointer-events:none; }
.pitch-tools { position:static; z-index:5; grid-column:5; grid-row:1; width:190px; justify-self:start; display:flex; flex-direction:column; align-self:start; gap:8px; max-width:none; } .tool-group { display:grid; gap:6px; padding:7px; border:1px solid #293332; border-radius:9px; background:#222929; } .pitch-tool { padding:8px 10px; border:1px solid #3b4442; border-radius:6px; background:#151a1a; color:#c8cec6; font-family:'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; font-size:13px; font-weight:500; line-height:1.25; letter-spacing:.005em; text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; cursor:pointer; transition:border-color .15s ease,background .15s ease,color .15s ease,box-shadow .15s ease; } .pitch-tool:hover { border-color:#899b8e; background:#25302c; color:#fff; } .pitch-tool.is-active { border-color:#f2d45b; background:#d9b735; color:#111716; box-shadow:0 0 0 2px #d9b73555,0 4px 14px #0008; } .arrow-layer { position:absolute; z-index:1.5; inset:0; width:100%; height:100%; overflow:visible; pointer-events:none; } .arrow-layer line { stroke:#fff; stroke-width:1.1; stroke-linecap:butt; filter:drop-shadow(0 1px 1px #0009); } .arrow-head { fill:#fff; filter:drop-shadow(0 1px 1px #0009); } .arrow-layer marker path { fill:#fff; }
.pitch-tools .formation-control { display:block; width:190px; } .pitch-tools .formation-picker { width:190px; display:grid; gap:6px; padding:10px; } .pitch-tools .formation-picker label { font-size:11px; } .pitch-tools select,.pitch-tools .reset-button,.pitch-tools .copy-button { width:100%; } .pitch-tools .copy-button { line-height:1.2; }
.pitch.arrow-mode .placed-player { pointer-events:none; }
.slot-group { gap:8px; } .slot-row { display:grid; grid-template-columns:1fr 1fr; gap:5px; } .slot-name { grid-column:1 / -1; width:100%; min-width:0; padding:6px 8px; border:1px solid #3b4442; border-radius:6px; background:#151a1a; color:#f1f3ed; font:500 12px/1.25 'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; } .slot-name:focus { outline:1px solid #aebd9d; border-color:#aebd9d; } .slot-save,.slot-load { min-width:0; padding:6px 5px; border:1px solid #3b4442; border-radius:6px; background:#151a1a; color:#c8cec6; font:500 11px/1.25 'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; cursor:pointer; } .slot-save:hover,.slot-load:hover { border-color:#899b8e; background:#25302c; color:#fff; }
.export-stage { position:fixed; left:-10000px; top:0; display:flex; width:824px; align-items:stretch; gap:8px; padding:8px; background:#090b0b; border:1px solid #363d3a; border-radius:12px; overflow:hidden; color:#f1f3ed; font:15px/1.4 'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; }
.export-stage .pitch-export-wrap { flex:0 0 auto; width:528px; height:788px; padding:8px; border:1px solid #65706a; border-radius:10px; background:#090b0b; } .export-stage .pitch-export { position:relative; width:510px; height:772px; overflow:hidden; border-radius:4px; background:#315b17 url('../assets/rasen-textur-symmetrisch.png') center/100% 100% no-repeat; }
.export-bench-panel { flex:0 0 270px; padding:16px; border:1px solid #65706a; border-radius:10px; background:#111617; } .export-bench-panel h2 { margin:0 0 14px; font-size:20px; } .export-bench-list { display:grid; gap:5px; } .export-bench-panel .bench-card { min-height:44px; } .export-bench-panel .player-meta { min-width:0; } .export-bench-panel .player-name { font-size:15px; }
.remove-zone { position:static; z-index:6; grid-column:3; grid-row:1; width:112px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:18px 10px; border:1px dashed #a26060; border-radius:9px; background:#351d20ee; color:#f1c4c4; font-size:12px; text-align:center; opacity:0; pointer-events:none; transform:translateX(18px); transition:opacity .15s ease,transform .15s ease,background .15s ease; } .remove-zone.is-visible { opacity:1; pointer-events:auto; transform:translateX(0); } .remove-zone.is-over { border-color:#e47a7a; background:#8d3038f2; color:#fff; } .trash-icon { display:grid; place-items:center; width:52px; height:52px; border:1px solid #d89494aa; border-radius:50%; color:#f3caca; } .trash-icon svg { width:29px; height:29px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.7; } .remove-label { max-width:90px; line-height:1.35; }
.bench-drop-zone { position:static; z-index:6; grid-column:2; grid-row:1; width:112px; display:none; align-items:center; justify-content:center; gap:8px; padding:18px 10px; border:1px dashed #6b9b74; border-radius:9px; background:#193522ee; color:#cce8d0; font-size:12px; text-align:center; opacity:0; pointer-events:none; transform:translateX(-18px); transition:opacity .15s ease,transform .15s ease,background .15s ease; }
.bench-drop-zone.is-visible { opacity:1; pointer-events:auto; transform:translateX(0); }
.bench-drop-zone.is-over { border-color:#8ed29a; background:#2f7e42f2; color:#fff; }
.bench-drop-icon { display:grid; place-items:center; width:34px; height:34px; border:1px solid #9acfa1aa; border-radius:50%; font-size:22px; line-height:1; }
.warning-popup { position:fixed; z-index:50; left:50%; top:50%; width:min(360px,calc(100vw - 36px)); padding:18px 22px; border:1px solid #d9b735; border-radius:10px; background:#181d1def; box-shadow:0 18px 60px #000b; color:#fff4c2; font-size:15px; font-weight:650; text-align:center; opacity:0; pointer-events:none; transform:translate(-50%,-44%); transition:opacity .16s ease,transform .16s ease; } .warning-popup.is-visible { opacity:1; transform:translate(-50%,-50%); }
.snap-point { position:absolute; width:9px; height:9px; margin:-4.5px; border:1px solid #ffffff30; border-radius:50%; opacity:0; pointer-events:none; } .pitch.drag-active .snap-point { opacity:.22; } .pitch.drag-active { cursor:crosshair; }
.drag-ghost { position:fixed; z-index:100; width:36px; height:39px; pointer-events:none; } .drag-ghost .shirt-thumb { display:grid; width:36px; height:39px; }
.placed-player { position:absolute; z-index:2; width: 0; transform:translate(-50%,-50%); text-align:center; cursor:grab; touch-action:none; user-select:none; -webkit-user-select:none; } .placed-player:active { cursor:grabbing; z-index:4; } .shirt-art { position:relative; display:block; width: 78px; margin-left:-39px; height:72px; } .placed-player img { display:block; width:100%; height:72px; object-fit:contain; -webkit-user-drag:none; filter:drop-shadow(0 5px 4px #000b); } .placed-player .shirt-number { top:47%; font-size:29px; } .placed-player .placed-name { display:block; position:relative; left:50%; width:max-content; transform:translateX(-50%); margin-top:-1px; color:#fff; font-size: 15px; /* vorher: 13px; Zwischenstand: 18px */ font-weight:500; letter-spacing:.015em; line-height:1.15; white-space:nowrap; text-shadow:0 1px 3px #000,0 0 5px #000b; }
.placed-player.is-dragging { z-index:30; width:36px; } .placed-player.is-dragging .shirt-art { width:36px; margin-left:-18px; height:39px; } .placed-player.is-dragging img { height:39px; } .placed-player.is-dragging .shirt-number { top:44%; font-size:14px; } .placed-player.is-dragging .placed-name { display:none; }
@media (max-width:800px) { .mobile-notice { display:flex; position:fixed; z-index:9999; inset:0; align-items:center; justify-content:center; padding:24px; border:0; border-radius:0; background:#0c0e0f; color:#f5df83; font-size:18px; font-weight:500; text-align:center; pointer-events:auto; } .crest-strip { display:none; } .topbar { height:86px; align-items:start; padding:14px 18px 10px; } .formation-control { display:grid; min-width:150px; gap:4px; } .formation-picker { display:grid; grid-template-columns:1fr; gap:4px; padding:0; border:0; background:none; } .copy-actions { display:grid; } .workspace { display:block; height:calc(100svh - 86px); padding:10px 12px 14px; } .player-panel { position:fixed; z-index:10; inset:auto 0 0; max-height:78svh; overflow:auto; padding:18px; border-top:1px solid #48504c; border-radius:16px 16px 0 0; background:#111516f7; box-shadow:0 -20px 60px #000b; transform:translateY(110%); transition:transform .22s ease; backdrop-filter:blur(14px); } .player-panel.is-open { transform:translateY(0); } .close-panel { display:block; border:0; background:none; color:#fff; font-size:27px; } .player-list { max-height:190px; } .mobile-actions { display:block; margin-top:8px; } .mobile-actions button { width:100%; padding:10px; border:1px solid #46504b; border-radius:7px; background:#181e1e; color:#f0f2ec; font:inherit; } .pitch-area { display:block; padding-right:74px; } .pitch-tools { position:absolute; z-index:5; top:0; left:0; display:flex; flex-direction:row; flex-wrap:wrap; gap:6px; max-width:180px; } .pitch-wrap { height:calc(100% - 48px); padding:8px; } .pitch { aspect-ratio:68 / 105; background-size:100% 100%; } .placed-player { width:0; } .shirt-art { width:69px; margin-left:-34.5px; } .placed-player.is-dragging .shirt-art { width:36px; margin-left:-18px; } .placed-player img { height:64px; } .remove-zone { position:absolute; grid-column:auto; grid-row:auto; top:0; right:0; bottom:0; height:auto; width:74px; padding:12px 6px; } .trash-icon { width:42px; height:42px; } .trash-icon svg { width:24px; height:24px; } .remove-label { max-width:60px; font-size:10px; } }

/* Variante 3: kondensierte, sportliche Namensdarstellung */
.placed-player .placed-name { margin-top:4px; font-family:'Arial Narrow','Roboto Condensed',Impact,sans-serif; font-size:13px; font-weight:700; letter-spacing:.015em; line-height:.95; text-transform:uppercase; text-shadow:1px 1px 0 #111,-1px -1px 0 #111,0 2px 3px #000b; }
@media (max-width:800px) { .placed-player .placed-name { font-size:12px; } }
@media (min-width:801px) { .pitch-tools { gap:12px; } .pitch-tools .slot-group { margin-top:0; } }
@media (min-width:801px) { .pitch-tools > .tool-group { position:relative; } .pitch-tools > .tool-group::before { content:""; position:absolute; top:-7px; left:18%; width:64%; border-top:1px solid #53605a; opacity:.62; } }
@media (min-width:801px) { .pitch-tools { gap:16px; } .pitch-tools .formation-picker { padding:5px 6px; } .pitch-tools > .tool-group { padding:5px; } .pitch-tools > .tool-group::before { top:-9px; } }
@media (min-width:801px) { .pitch-tools .formation-picker { padding:3px 4px; } .pitch-tools > .tool-group { padding:3px; } .pitch-tools > .tool-group::before { left:29%; width:42%; } }
@media (min-width:801px) { .pitch-tools { gap:32px; } .pitch-tools > .tool-group::before { top:-17px; } }
.slot-row { position:relative; }
.slot-name { padding-right:30px; }
.slot-status { position:absolute; top:10px; right:10px; width:10px; height:10px; border:1px solid #69746d; border-radius:50%; background:transparent; pointer-events:none; }
.slot-status.is-occupied { border-color:#4f8f52; background:#4f8f52; box-shadow:0 0 0 2px #4f8f5222; }
.slot-delete-all { grid-column:1 / -1; padding:6px 8px; border:1px solid #604247; border-radius:6px; background:#24191b; color:#d1aeb0; font:500 11px/1.25 'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; cursor:pointer; }
.slot-delete-all:hover { border-color:#9b6269; background:#342023; color:#f1d2d3; }
@media (min-width:801px) {
  .topbar { margin-left:104px; margin-right:0; max-width:calc(1440px - 104px); }
  .crest-strip { position:fixed; z-index:4; left:0; top:0; width:94px; height:100dvh; border-radius:0 10px 10px 0; }
}
@media (min-width:801px) { .pitch-tools-scroll { display:contents; } }
@media (min-width:801px) {
  body { display:grid; grid-template-columns:94px minmax(0,1fr); grid-template-rows:64px minmax(0,1fr); min-height:100dvh; }
  .topbar { grid-column:2; grid-row:1; width:auto; max-width:none; margin:0; }
  .workspace { grid-column:2; grid-row:2; grid-template-columns:290px 112px max-content minmax(132px,1fr); height:100%; max-height:100%; min-height:0; }
  .crest-strip { grid-column:1; grid-row:1 / span 2; position:fixed; left:0; top:0; width:94px; height:100dvh; border-radius:0 10px 10px 0; }
  .remove-zone { grid-column:2; }
  .pitch-wrap { grid-column:3; }
  .pitch-tools { grid-column:4; }
}
@media (max-width:800px) { body { display:block; } }
@media (min-width:801px) { .workspace { grid-template-columns:290px 112px 540px 190px; justify-content:start; } }
@media (min-width:801px) { body { grid-template-columns:141px minmax(0,1fr); } .crest-strip { width:141px; } }

/* Responsive layout v0.0.40: the field gets the available width while its
   portrait ratio remains authoritative. The controls consume a side rail,
   so the header never grows vertically on smaller desktop screens. */
@media (min-width:1051px) {
  .workspace {
    grid-template-columns:minmax(236px,24vw) minmax(76px,8vw) minmax(360px,1fr) minmax(154px,17vw);
    gap:clamp(8px,1vw,16px);
    padding:clamp(14px,2vw,28px) clamp(14px,2.4vw,34px) clamp(16px,2vw,28px);
  }
  .pitch-wrap { width:100%; display:flex; justify-content:center; }
  .workspace { overflow:hidden; }
  .pitch-wrap { width:max-content; max-width:100%; height:calc(100dvh - 64px - clamp(30px,4vw,56px)); }
  .pitch { max-width:100%; }
}

@media (min-width:801px) and (max-width:1050px) {
  body { grid-template-columns:0 minmax(0,1fr); }
  .crest-strip { display:none; }
  .topbar { padding-inline:18px; }
  .workspace {
    grid-template-columns:minmax(172px,27vw) minmax(54px,7vw) minmax(240px,1fr) minmax(116px,18vw);
    gap:7px;
    padding:12px 14px 16px;
  }
  .player-card,.bench-card { gap:5px; padding-inline:5px; }
  .player-name { font-size:12px; }
  .player-position { margin-left:3px; font-size:9px; }
  .pitch-tools,.pitch-tools .formation-control,.pitch-tools .formation-picker { width:100%; }
  .pitch-tools { gap:10px; }
  .pitch-tools .formation-picker { padding:6px; }
  .pitch-tool,.pitch-tools .copy-button,.pitch-tools .reset-button { padding:7px 6px; font-size:11px; }
  .pitch-wrap { width:100%; display:flex; justify-content:center; }
}

@media (max-width:800px) {
  body { min-height:100svh; overflow:hidden; }
  .topbar { height:58px; padding:10px 14px 8px; }
  .brand-line { display:flex; align-items:baseline; gap:8px; width:100%; }
  .brand-line .eyebrow { display:block; flex:0 0 auto; font-size:8px; letter-spacing:.12em; white-space:nowrap; }
  .brand-line .eyebrow-league { display:none; }
  .brand-line h1 { min-width:0; overflow:hidden; text-overflow:ellipsis; font-size:clamp(20px,6.8vw,27px); }
  .version-label { align-self:baseline; line-height:1; }
  .placed-player,.player-card,.bench-card,.placed-player img { -webkit-touch-callout:none; }
  .workspace { height:calc(100svh - 58px); padding:8px 8px 10px; }
  .pitch-area { height:100%; padding:0 8px; }
  .mobile-tools-toggle { display:block; position:absolute; z-index:7; top:0; left:56px; right:62px; min-height:44px; padding:9px 14px; border:1px solid #56625c; border-radius:9px; background:#1a2221f5; color:#f1f3ed; font:600 15px/1.2 'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; box-shadow:0 8px 20px #0007; font-size:0; }
  .mobile-tools-toggle::after { content:'Menü'; font-size:15px; }
  .mobile-tools-toggle[aria-expanded='true']::after { content:'Menü schließen'; }
  .pitch-tools { display:none; position:absolute; top:52px; left:8px; right:8px; width:auto; max-height:min(520px,58svh); padding:8px; overflow:hidden; overscroll-behavior:contain; background:#18201ff5; border:1px solid #4b5751; border-radius:10px; box-shadow:0 14px 34px #000b; }
  .pitch-tools-scroll { display:block; width:100%; max-height:calc(min(520px,58svh) - 16px); overflow-y:scroll; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#68756d #18201f; }
  .menu-scroll-arrow { display:none; position:absolute; z-index:3; left:0; right:0; width:auto; height:28px; border:0; background:#18201fdd; pointer-events:none; }
  .menu-scroll-arrow svg { display:block; width:100%; height:100%; overflow:visible; }
  .menu-scroll-arrow path { fill:none; stroke:#d9b735; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 1px 2px #000); }
  .menu-scroll-arrow-up { top:0; border-radius:9px 9px 0 0; box-shadow:0 1px 0 #d9b73588; }
  .menu-scroll-arrow-down { bottom:0; border-radius:0 0 9px 9px; box-shadow:0 -1px 0 #d9b73588; }
  .menu-scroll-arrow.is-visible { display:flex; }
  .pitch-tools.is-open { display:block; z-index:8; }
  .pitch-tools .formation-control,.pitch-tools .formation-picker,.pitch-tools .tool-group { width:100%; }
  .mobile-formation-control { display:grid; gap:5px; }
  .mobile-formation-control label { color:#aeb7ad; font-size:12px; font-weight:600; }
  .mobile-formation-control select { width:100%; min-height:44px; padding:8px 10px; font-size:15px; }
  .pitch-tools #formation { display:none !important; }
  .pitch-tools .formation-control,.pitch-tools .formation-picker { display:contents; }
  .pitch-tools .formation-picker select { display:block; width:100%; height:44px; }
  .pitch-tools .formation-picker,.pitch-tools > .tool-group { padding:6px; gap:5px; }
  .pitch-tools .tool-group { padding:6px; gap:5px; }
  .pitch-tools select,.pitch-tools .reset-button,.pitch-tools .pitch-tool,.pitch-tools .copy-button,.slot-save,.slot-load { min-height:44px; padding:8px 10px; font-size:13px; line-height:1.15; white-space:normal; }
  .pitch-tools select { padding-inline:1px; }
  .pitch-tools .slot-row { grid-template-columns:1fr 1fr; }
  .pitch-tools .slot-name { display:block; grid-column:1 / -1; min-height:44px; padding:8px 30px 8px 10px; font-size:13px; }
  .pitch-tools .slot-status { display:block; }
  .pitch-tools .slot-save,.pitch-tools .slot-load { display:flex; align-items:center; justify-content:center; text-align:center; }
  .pitch-tools .slot-group { display:grid; min-height:0; }
  .pitch-tools .slot-delete-all { display:block !important; min-height:44px; padding:8px 10px; font-size:13px; }
  .pitch-wrap { width:100%; height:calc(100% - 42px); padding:6px; display:flex; justify-content:center; }
  .pitch { height:100%; width:auto; max-width:100%; }
  .mobile-actions { margin-top:6px; }
  .mobile-actions button { min-height:44px; padding:9px 10px; font-weight:600; }
  .mobile-player-actions { position:fixed; z-index:25; left:10px; right:10px; bottom:calc(62px + env(safe-area-inset-bottom)); padding:10px; border:1px solid #536159; border-radius:12px; background:#17201ff5; box-shadow:0 10px 30px #000b; }
  .mobile-player-actions.is-visible { display:block; }
  .mobile-player-selection { display:block; margin:0 0 8px; color:#e8eee5; font-size:13px; font-weight:600; text-align:center; }
  .mobile-player-action-buttons { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
  .mobile-player-action-buttons button { min-height:44px; padding:8px 6px; border:1px solid #46534c; border-radius:7px; background:#151b1b; color:#edf1eb; font:600 13px/1.15 'IBM Plex Sans',ui-sans-serif,system-ui,sans-serif; }
  .mobile-player-action-buttons button:active,.mobile-player-action-buttons button:focus-visible { border-color:#d9b735; background:#29312d; }
  .player-card.is-mobile-selected,.bench-card.is-mobile-selected,.placed-player.is-mobile-selected .shirt-art { outline:2px solid #d9b735; outline-offset:3px; }
  .player-panel { max-height:82svh; padding:14px; padding-bottom:calc(14px + env(safe-area-inset-bottom)); }
  .player-list { max-height:30svh; }
  .player-card,.bench-card { min-height:48px; padding:6px 9px; touch-action:pan-y; }
  .mobile-drag-handle { display:flex; align-items:center; justify-content:center; flex:0 0 38px; min-width:38px; min-height:36px; margin-left:auto; border:1px solid #536159; border-radius:7px; background:#202a26; color:#d9b735; font-size:21px; line-height:1; touch-action:none; user-select:none; -webkit-user-select:none; }
  .mobile-drag-handle:active { background:#39452f; }
  body.drop-lock .player-panel,body.drop-lock .player-list,body.drop-lock .bench-list { overflow:hidden !important; overscroll-behavior:none; }
  body.drop-lock .player-card,body.drop-lock .bench-card { touch-action:none !important; }
  body.field-drag-source .bench-drop-zone { display:none !important; }
  .bench-section { margin-top:18px; padding-top:14px; }
  .remove-zone { position:fixed; z-index:22; top:auto; left:10px; right:10px; bottom:calc(58px + env(safe-area-inset-bottom)); width:auto; height:58px; padding:8px 6px; flex-direction:row; gap:6px; border-radius:10px; transform:none; }
  .remove-label { max-width:none; font-size:11px; }
  .trash-icon { width:40px; height:40px; flex:0 0 40px; }
  .bench-drop-zone { position:fixed; z-index:21; top:auto; left:10px; right:10px; bottom:calc(58px + env(safe-area-inset-bottom)); width:auto; height:58px; padding:8px 6px; flex-direction:row; gap:6px; border-radius:10px; transform:none; }
  .bench-drop-icon { width:40px; height:40px; flex:0 0 40px; }
  .bench-drop-zone { display:flex; }
  body.drop-zones-top .remove-zone { top:calc(72px + 10px); bottom:auto; }
  body.drop-zones-top .bench-drop-zone { top:calc(72px + 78px); bottom:auto; }
  body.drop-zones-near .remove-zone { top:var(--drop-zone-y); bottom:auto; }
  body.drop-zones-near .bench-drop-zone { top:calc(var(--drop-zone-y) + 70px); bottom:auto; }
  .placed-player .shirt-number { top:38%; left:50%; width:100%; font-size:clamp(25px,7vw,32px); line-height:.78; text-align:center; }
  .placed-player .placed-name { margin-top:-10px; }
}

@media (max-width:380px) {
  .pitch-area { padding-inline:6px; }
  .pitch-tools { left:6px; right:6px; }
  .remove-zone { left:8px; right:8px; width:auto; }
  .bench-drop-zone { left:8px; right:8px; width:auto; }
  .shirt-art { width:62px; margin-left:-31px; }
  .placed-player img { height:58px; }
  .placed-player .placed-name { margin-top:-10px; font-size:10px; letter-spacing:-.04em; }
}
