/* Shared player visuals and controls; responsive layout below. */
#mobile-team-slot,.starter-note,#team-state{display:none}
.skill-overlay{display:block}
.skill-inset{display:flex}
.mobile-card-nav{display:flex;align-items:center;gap:4px;margin-left:auto}
.mobile-card-nav button{border:1px solid #d9dfd1;border-radius:5px;background:var(--panel);width:26px;height:26px;font-size:20px;line-height:1}
#card-count{min-width:30px;text-align:center;font-size:10px;font-variant-numeric:tabular-nums;color:#68765f}
.skill-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4;overflow:visible}
.skill-overlay line{stroke:#edcf93;stroke-width:2.8;opacity:.5;fill:none}
.skill-overlay .skill-high{stroke:#b3dce9;stroke-dasharray:9 9;opacity:.65}
.skill-overlay .skill-shot{stroke:#edcf93;stroke-width:3;opacity:.7}
.skill-overlay .skill-run{stroke-dasharray:2 8;stroke-linecap:round;opacity:.8}
.skill-overlay .skill-block{stroke:#e5a18b;stroke-width:3;fill:none;opacity:.8}
.skill-inset{position:absolute;right:0;top:-37px;width:calc(200% / 7);max-width:70px;height:34px;align-items:center;justify-content:flex-end;pointer-events:none;color:#52634b}
.skill-inset>span{font-size:8px;line-height:1.4;max-width:28px}
.skill-inset small{display:block;font-size:6px;letter-spacing:.5px;color:#7c8971}
.skill-inset svg{width:43px;height:34px;overflow:visible;color:#526b4d;flex:none}
.skill-inset svg g>path{fill:none;stroke:currentColor;stroke-width:3}
.skill-inset svg marker path{fill:currentColor;stroke:none}
.skill-inset svg text{fill:currentColor;stroke:none;font:600 12px 'DM Sans',sans-serif}
.skill-inset .glyph-player{fill:var(--paper);stroke:currentColor;stroke-width:2}
.skill-inset .glyph-step{stroke:currentColor;stroke-width:2;fill:var(--paper)}
.skill-inset svg .glyph-aerial,.skill-inset svg .glyph-receive{stroke:#608aa0;stroke-dasharray:4 3;fill:none}
.skill-inset svg .glyph-run{stroke-dasharray:2 5}

@media(max-width:760px){
  .compact-mobile .site-header{height:44px;padding:0 14px;gap:12px}
  .compact-mobile .brand{font-size:23px;letter-spacing:-1px}
  .compact-mobile .brand-mark{width:21px;height:21px;gap:3px;margin-right:8px}
  .compact-mobile .rules-trigger{font-size:10px}
  .compact-mobile .rules-trigger span{margin-left:5px}
  .compact-mobile .app-shell{padding:10px 12px 18px}
  .compact-mobile .puzzle-heading{align-items:center;gap:8px}
  .compact-mobile .eyebrow{font-size:8px;letter-spacing:1px;gap:8px}
  .compact-mobile .difficulty{padding:3px 5px;font-size:7px}
  .compact-mobile h1{font-size:23px;letter-spacing:-.8px;margin:5px 0 0;line-height:1.2}
  .compact-mobile #puzzle-description{display:none}
  .compact-mobile .puzzle-pagination{margin:0;gap:6px}
  .compact-mobile .puzzle-pagination .icon-button{width:29px;height:32px}
  .compact-mobile .puzzle-pagination>span{display:none}
  .compact-mobile .phase-bar{margin:10px 0 7px;gap:7px;padding-bottom:0}
  .compact-mobile .phase{font-size:10px;gap:6px;min-height:25px}
  .compact-mobile .step-number{width:21px;height:21px;font-size:10px}
  .compact-mobile .phase-divider{width:12px;margin:0 2px}
  .compact-mobile .phase-check{font-size:8px;padding:2px 3px}
  .compact-mobile .game-layout{gap:14px}
  .compact-mobile .pitch-topline{margin:0 0 4px;min-height:22px}
  .compact-mobile .pitch-label{font-size:8px;letter-spacing:.8px}
  .compact-mobile #undo{font-size:11px;padding:6px 2px}
  .compact-mobile .mobile-clue{display:none}
  .compact-mobile .pitch-wrap{width:min(100%,max(220px,calc(100svh - 400px)));max-width:430px;padding-left:27px;padding-top:58px;margin:0 auto}
  .compact-mobile .horizontal-zones{left:27px;top:0;font-size:7px;letter-spacing:.2px}
  .compact-mobile .horizontal-zones span{padding-bottom:3px}
  .compact-mobile .column-labels{left:27px;top:14px;font-size:8px}
  .compact-mobile .goal-strip{left:27px;top:34px;height:24px}
  .compact-mobile .goal-mouth{height:24px}
  .compact-mobile .goal-caption{top:3px;font-size:6px;letter-spacing:0}
  .compact-mobile .row-labels{left:16px;top:58px;width:8px;font-size:8px}
  .compact-mobile .vertical-zones{width:12px;top:58px}
  .compact-mobile .vertical-zones span{font-size:7px;letter-spacing:.2px}
  .compact-mobile .pitch{border-radius:9px}
  .compact-mobile .token{width:clamp(23px,7vw,31px);height:clamp(23px,7vw,31px);font-size:10px}
  .compact-mobile .token.reactive{font-size:8px}
  .compact-mobile .offside-line span{font-size:6px;top:-16px;letter-spacing:.4px}
  .compact-mobile #mobile-team-slot{display:block;margin-top:4px}
  .compact-mobile #mobile-team-slot .team-panel{width:100%;min-width:0}
  .compact-mobile .team-panel>.section-top{margin:0 0 3px;min-height:25px;align-items:center;gap:4px}
  .compact-mobile #team-title{font-size:11px;margin:0;white-space:nowrap}
  .compact-mobile #team-state,.compact-mobile .starter-note{display:none}
  .compact-mobile .player-cards{--mobile-card-width:min(310px,calc(100vw - 64px));--card-edge:max(16px,calc((100% - var(--mobile-card-width)) / 2));display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:var(--card-edge);padding:1px var(--card-edge) 6px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#b6c3a7 transparent;touch-action:pan-x pan-y;max-width:100%}
  .compact-mobile .player-card,.compact-mobile.playing .player-card{flex:0 0 var(--mobile-card-width);height:136px;overflow-y:auto;scroll-snap-align:center;scroll-snap-stop:normal;padding:9px 11px;border-radius:9px;border-width:1px;box-shadow:none;scrollbar-width:thin;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch}
  .compact-mobile .player-card>*{flex-shrink:0}
  .compact-mobile .player-card:focus-visible{outline-offset:-4px}
  .compact-mobile .player-card.selected{border:2px solid var(--green);padding:8px 10px}
  .compact-mobile .card-top{gap:7px;min-height:26px}
  .compact-mobile .jersey{width:25px;height:25px;font-size:10px}
  .compact-mobile .card-name{font-size:12px}
  .compact-mobile .card-role{font-size:9px;line-height:1.3}
  .compact-mobile .card-position{font-size:9px;padding:2px 4px}
  .compact-mobile .start-rule{margin-top:5px;gap:6px;grid-template-columns:36px minmax(0,1fr)}
  .compact-mobile .region-chips{gap:3px}
  .compact-mobile .region-chips>span{font-size:10px;line-height:1.3;padding:2px 4px}
  .compact-mobile .player-constraints{margin-top:5px;gap:3px}
  .compact-mobile .constraint-row{grid-template-columns:36px minmax(0,1fr);gap:6px}
  .compact-mobile .constraint-label{font-size:8px;letter-spacing:.2px}
  .compact-mobile .constraint-value{font-size:11px;line-height:1.35}
  .compact-mobile .ability-badges{margin-top:5px;gap:3px}
  .compact-mobile .ability-badge{font-size:9px;line-height:1.2;padding:2px 4px}
  .compact-mobile .clue-result{display:none}
  .compact-mobile .bench-player{margin:2px 0 0;font-size:10px;min-height:26px;padding:4px 0}
  .compact-mobile .offside-status{margin:5px 0 0 27px;font-size:9px}
  .compact-mobile .pitch-legend{display:none}
  .compact-mobile .ball-toolbar{display:none}
  .compact-mobile:not(.playing) .team-panel>.section-top>.ball-actions{display:none}
  .compact-mobile .team-panel>.section-top>.ball-actions{display:flex;flex-wrap:nowrap;flex-shrink:0;gap:0;margin-left:auto;margin-right:0}
  .compact-mobile .ball-holder strong{font-size:11px}
  .compact-mobile .ball-holder .small-label{font-size:7px}
  .compact-mobile .live-moves{font-size:8px}
  .compact-mobile .action-chip{font-size:9px;padding:5px;min-height:26px}
  .compact-mobile .board-message{margin-top:6px;min-height:0;padding:6px 0;font-size:10px;line-height:1.5}
  .compact-mobile .offball-controls{margin:6px 0 0;font-size:11px}
  .compact-mobile .defender-rules{margin:10px 0 0;padding-top:10px}
  .compact-mobile .defender-rule{padding:10px}
  .compact-mobile .defender-rule .constraint-row{grid-template-columns:36px minmax(0,1fr)}
  .compact-mobile .notebook{padding:15px}
  .compact-mobile .app-footer{margin-top:18px}
}
@media(max-width:380px){.compact-mobile .skill-inset>span{display:none}}
@media(max-width:760px) and (max-height:650px){
  .compact-mobile .site-header{height:38px}
  .compact-mobile .app-shell{padding-top:7px}
  .compact-mobile h1{font-size:21px}
  .compact-mobile .phase-bar{margin:7px 0 3px}
  .compact-mobile .pitch-wrap{padding-top:54px}
  .compact-mobile .row-labels,.compact-mobile .vertical-zones{top:54px}
  .compact-mobile .goal-strip{top:30px}
  .compact-mobile .player-card,.compact-mobile.playing .player-card{height:130px}
}

.mobile-start-play{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:30px;padding:5px 12px;border:0;border-radius:5px;background:var(--green);color:var(--paper);font:600 11px 'DM Sans',sans-serif;cursor:pointer}
.mobile-start-play[hidden]{display:none}
.mobile-start-play:disabled{opacity:.45;cursor:default}
.mobile-start-play:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:760px){
 .compact-mobile .mobile-start-play{min-height:26px;padding:4px 8px;font-size:10px}
 .compact-mobile .phase-bar{justify-content:space-between;gap:6px}
 .compact-mobile .phase-check{display:none}
 .compact-mobile .phase:disabled{opacity:.5;cursor:default}
}

@media(min-width:761px){.skill-inset{max-width:100px;height:44px;top:-44px}.skill-inset svg{width:55px;height:44px}.skill-inset>span{font-size:10px;max-width:42px}.skill-inset small{font-size:7px}.team-panel>.section-top{gap:8px}}

/* A centered pitch with one clear home for each piece of information. */
.brand-caption,#page-number,#placed-count,#puzzle-description,.pitch-legend,.offside-status,.goal-caption,.app-footer,#rules-reference,.notebook-symbol,.ball-toolbar .ball-holder{display:none}
body:not(.playing) #pitch-status,body:not(.playing) .clue-result{display:none}
.pitch-topline{justify-content:flex-end}
.playing .pitch-topline{justify-content:space-between}
.notebook .minimum-target{margin-top:4px;padding-top:0;border:0}
.start-note{font-size:11px;line-height:1.5;color:var(--muted);margin:16px 0 0}
.board-message:empty{display:none}
.pitch-panel{--pitch-edge:30px;--pitch-head:50px;--pitch-foot:25px;--goal-height:30px}
.pitch-panel .pitch-wrap{padding:var(--pitch-head) var(--pitch-edge) var(--pitch-foot);margin-inline:auto}
.pitch-panel .column-labels{left:var(--pitch-edge);right:var(--pitch-edge);top:0}
.pitch-panel .goal-strip{left:var(--pitch-edge);right:var(--pitch-edge);top:calc(var(--pitch-head) - var(--goal-height));height:var(--goal-height)}
.pitch-panel .row-labels{left:0;top:var(--pitch-head);bottom:var(--pitch-foot);width:calc(var(--pitch-edge) - 5px)}
.pitch-panel .horizontal-zones{top:auto;bottom:0;left:var(--pitch-edge);right:var(--pitch-edge);height:20px}
.pitch-panel .horizontal-zones span{padding:5px 0 0;border-bottom:0;border-top:1px solid #c1cab8}
.pitch-panel .vertical-zones{left:auto;right:0;top:var(--pitch-head);bottom:var(--pitch-foot);width:calc(var(--pitch-edge) - 8px)}
.pitch-panel .vertical-zones span{transform:none;letter-spacing:.5px}
.pitch-panel .skill-inset{top:-35px;height:34px}
.pitch-panel .skill-inset svg{height:34px}
@media(max-width:760px){
 .compact-mobile .pitch-panel{--pitch-edge:20px;--pitch-head:42px;--pitch-foot:22px;--goal-height:24px}
 .compact-mobile .pitch-panel .skill-inset{top:-32px;height:30px}
 .compact-mobile .pitch-panel .skill-inset svg{height:30px}
 .compact-mobile .pitch-panel .horizontal-zones span{padding-top:4px}
 .compact-mobile .pitch-panel .vertical-zones span{letter-spacing:0}
}

.notebook{min-height:0;height:fit-content}


/* Undo belongs to the persistent header, leaving the pitch and cards adjacent. */
.site-header #undo{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #c5cebf;border-radius:7px;background:var(--panel);color:var(--green);font-size:12px;font-weight:600;line-height:1;flex-shrink:0}
.site-header #undo>span:first-child{font-size:23px;line-height:1}
.site-header #undo:not(:disabled):hover{background:#e9eee5;border-color:var(--green)}
.site-header #undo:disabled{opacity:.5}
body:not(.playing) .pitch-topline{display:none}
@media(max-width:760px){
 .compact-mobile .site-header{height:46px;gap:8px;padding-inline:12px}
 .compact-mobile .site-header #undo{width:44px;height:44px;padding:0}
 .compact-mobile .site-header .undo-label{display:none}
 .compact-mobile .rules-trigger{font-size:9px;white-space:nowrap}
 .compact-mobile .rules-trigger span{margin-left:3px}
 .compact-mobile .pitch-panel .pitch-wrap{width:min(100%,max(220px,calc(100svh - 400px)))}
 .compact-mobile.playing .pitch-topline{min-height:10px;height:10px;margin:0 0 2px;line-height:10px}
 .compact-mobile.playing .pitch-label{font-size:8px;line-height:10px}
}

.hint-control{min-width:0}
.hint-control.has-hint{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;grid-column:1/-1}
.notebook .hint-output{margin:0;font-size:12px;line-height:1.6;color:var(--ink);overflow-wrap:anywhere}
.notebook .hint-output.error{color:#a15642}
.support-actions:has(.has-hint){display:grid;grid-template-columns:1fr auto;gap:14px}
.support-actions:has(.has-hint) #reset{grid-column:2;justify-self:end}

/* Essential puzzle information lives with its title, not in a separate panel. */
.puzzle-intro{min-width:0;flex:1}
.puzzle-heading{align-items:flex-start}
.puzzle-tools{display:flex;align-items:center;flex-wrap:wrap;column-gap:16px;row-gap:8px;margin-top:12px;font-size:12px}
.move-summary{font-size:12px;color:#61725b;white-space:nowrap}
.puzzle-tools .text-button{font-size:11px;line-height:1.5}
.puzzle-tools .hint-control{display:flex;align-items:flex-start;gap:12px;min-width:0}
.puzzle-tools .hint-control.has-hint{display:flex;flex:1 1 300px}
.puzzle-tools .hint-output{margin:0;font-size:12px;line-height:1.5;color:var(--ink);overflow-wrap:anywhere;max-width:620px}
.puzzle-tools .hint-output.error{color:#a15642}
.puzzle-result-action{color:var(--green);font-weight:600}
@media(min-width:761px){.game-layout{grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:32px;max-width:1100px;margin-inline:auto}.pitch-panel{max-width:680px;width:100%;justify-self:center}}
@media(max-width:760px){
 .compact-mobile .puzzle-tools{margin-top:7px;column-gap:12px;row-gap:6px}
 .compact-mobile .move-summary{font-size:10px}
 .compact-mobile .puzzle-tools .text-button{font-size:10px;padding:0}
 .compact-mobile .puzzle-tools .hint-control.has-hint{flex-basis:100%;order:4}
 .compact-mobile .puzzle-tools .hint-output{font-size:11px}
 .compact-mobile .pitch-panel .pitch-wrap{width:min(100%,max(204px,calc(100svh - 420px)))}
}

/* Place controls by difficulty and keep the target aligned with the title. */
.puzzle-heading{position:relative;display:block}
.puzzle-heading .puzzle-pagination{position:absolute;top:0;right:0;margin:0}
.puzzle-intro>.eyebrow.puzzle-tools{margin:0;padding-right:105px;column-gap:14px;row-gap:8px;min-height:36px}
.eyebrow.puzzle-tools .text-button,.eyebrow.puzzle-tools .hint-output{letter-spacing:normal;font-weight:400;text-transform:none}
.eyebrow.puzzle-tools .hint-control.has-hint{flex:1 1 200px;order:0}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:8px}
.title-row h1{flex:1;min-width:0;margin:0}
.title-summary{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-shrink:0;text-align:right}
.phase-bar{justify-content:center}
@media(max-width:760px){
 .compact-mobile .puzzle-intro>.eyebrow.puzzle-tools{padding-right:75px;column-gap:8px;row-gap:5px;min-height:32px}
 .compact-mobile .eyebrow.puzzle-tools .text-button{font-size:9px}
 .compact-mobile .eyebrow.puzzle-tools .hint-control.has-hint{flex:1 1 140px;order:0}
 .compact-mobile .title-row{gap:10px;margin-top:4px}
 .compact-mobile .title-row h1{margin:0}
 .compact-mobile .title-summary{flex-direction:column;align-items:flex-end;gap:2px}
 .compact-mobile .phase-bar{justify-content:center;gap:7px}
}

.phase-bar{position:relative}
.mobile-start-play[aria-disabled="true"]{opacity:.45;cursor:help}
.start-feedback{position:absolute;z-index:12;top:calc(100% + 6px);left:50%;transform:translateX(-50%);width:max-content;max-width:min(360px,calc(100vw - 32px));margin:0;padding:10px 13px;border:1px solid #cbd3c1;border-radius:6px;background:var(--panel);color:var(--ink);box-shadow:0 3px 12px #203a3112;font-size:12px;line-height:1.5;text-align:center}

/* Undo travels with the existing ball actions instead of occupying another row. */
.ball-actions #undo{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:80px;min-height:44px;padding:8px 12px;border:1px solid #c5cebf;border-radius:7px;background:var(--panel);color:var(--green);font-size:12px;font-weight:600;line-height:1;flex-shrink:0;margin-left:auto}
.ball-actions #undo>span:first-child{font-size:23px;line-height:1}
.ball-actions #undo:not(:disabled):hover{background:#e9eee5;border-color:var(--green)}
.ball-actions #undo:disabled{opacity:.5}
body:not(.playing) .ball-actions [data-action]{display:none}
@media(min-width:761px){.ball-toolbar .ball-actions{width:100%;justify-content:flex-start;align-items:center;gap:6px}.ball-toolbar .action-chip{min-height:44px}}
@media(max-width:760px){
 .compact-mobile:not(.playing) .team-panel>.section-top>.ball-actions{display:flex}
 .compact-mobile .ball-actions #undo{min-width:44px;width:44px;height:44px;padding:0;margin-left:4px}
 .compact-mobile .ball-actions #undo .undo-label{display:none}
 .compact-mobile.playing #team-title{display:none}
 .compact-mobile .team-panel>.section-top{min-height:44px}
 .compact-mobile .team-panel>.section-top>.ball-actions{margin-left:0}
}

@media(max-width:760px) and (max-height:650px){.compact-mobile .pitch-panel .pitch-wrap{width:min(100%,max(184px,calc(100svh - 440px)))}}

/* All fielded attackers retain their lane guides; selection supplies emphasis. */
.skill-background{opacity:.55}
.skill-selected line{stroke-width:3.4}
.skill-background .skill-block{display:none}

.finisher-badge{background:#e9efda;border-color:#cad5b8;color:#395b34}

@media(max-width:760px){
 .compact-mobile .player-card.has-run{padding:6px 10px}
 .compact-mobile .player-card.has-run.selected{padding:5px 9px}
 .compact-mobile .player-card.has-run .start-rule,.compact-mobile .player-card.has-run .player-constraints,.compact-mobile .player-card.has-run .ability-badges{margin-top:2px}
 .compact-mobile .player-card.has-run .constraint-value{line-height:1.2}
}

.player-card-select{display:block;width:100%;border:0;padding:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.player-card-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative;margin-top:8px}
.player-card-actions .ability-badges{margin:0}
.player-move-button{flex-shrink:0;border:1px solid #c5cebf;border-radius:5px;background:var(--panel);color:var(--green);padding:5px 8px;font-size:11px;font-weight:600;line-height:1.3;min-height:26px}
.player-move-button[aria-disabled="true"]{opacity:.5;cursor:help}
.move-feedback{position:absolute;z-index:15;bottom:calc(100% + 4px);right:0;width:240px;max-width:100%;padding:8px 10px;border:1px solid #cbd3c1;border-radius:5px;background:var(--panel);color:var(--ink);box-shadow:0 3px 12px #203a3112;font-size:11px;line-height:1.5;font-weight:400}
@media(max-width:760px){
 .compact-mobile .player-card.has-run{padding:5px 10px}
 .compact-mobile .player-card.has-run.selected{padding:4px 9px}
 .compact-mobile .player-card-actions{margin-top:2px}
 .compact-mobile .player-card-actions .ability-badges{margin:0}
 .compact-mobile .player-move-button{font-size:10px;padding:3px 6px;min-height:24px}
}
@media(max-width:760px) and (max-height:650px){
 .compact-mobile .player-card.has-run{padding-top:2px;padding-bottom:2px}
 .compact-mobile .player-card.has-run.selected{padding-top:1px;padding-bottom:1px}
}

.bar-player-moves{display:flex;gap:6px}
.bar-player-move{position:relative;display:flex}
.bar-player-move .action-chip[aria-disabled="true"]{opacity:.5;cursor:help}
.bar-player-move .move-feedback{max-width:none;right:auto;left:0}
@media(max-width:760px){
 .compact-mobile .team-panel>.section-top>.ball-actions:has(.bar-player-moves:not([hidden])){flex:1;min-width:0;flex-wrap:wrap;row-gap:3px}
 .compact-mobile .bar-player-moves{order:5;flex-basis:100%;flex-wrap:wrap}
 .compact-mobile .bar-player-move .action-chip{min-height:36px;font-size:11px;padding:6px 10px}
 .compact-mobile .team-panel>.section-top:has(.bar-player-moves:not([hidden])){align-items:flex-start}
 .compact-mobile .section-top:has(.bar-player-moves:not([hidden])) .mobile-card-nav{padding-top:9px;flex-shrink:0}
}

/* Feedback lives on the pitch rather than creating a section below it. */
#pitch>.board-message{position:absolute;z-index:9;left:12px;right:12px;bottom:12px;min-height:0;margin:0;padding:9px 12px;border:0;border-radius:5px;background:#fffefaf2;color:var(--ink);font-size:11px;line-height:1.45;pointer-events:none;box-shadow:0 2px 10px #102d2320}
#pitch>.board-message.error{color:#934635}
#pitch>.board-message.goal-celebration{inset:0;display:grid;place-items:center;padding:0;border-radius:inherit;background:linear-gradient(transparent 12%,#153f3240 30%,#153f32dc 50%,#153f3240 75%,transparent);box-shadow:none;text-align:center;color:#fffbea;overflow:hidden}
.goal-art{display:flex;flex-direction:column;align-items:center;width:100%;padding:20px 5px;text-shadow:0 2px 14px #12392c70;animation:goal-arrival .45s ease-out both}
.goal-kicker{font-size:9px;letter-spacing:3px;font-weight:600;color:#edcf83}
.goal-word{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:400;font-size:clamp(38px,12vw,86px);line-height:1.08;letter-spacing:-4px}
.goal-word>span{color:#edcf83}
.goal-flourish{width:55%;max-width:240px;height:24px;margin:-2px 0 9px;overflow:visible;fill:none;stroke:#edcf83;stroke-width:2;stroke-linecap:round}
.goal-flourish .goal-spark{stroke-width:1}
.goal-detail{font-size:12px;letter-spacing:.6px;color:#f3ecd9}
@keyframes goal-arrival{from{opacity:0;transform:translateY(9px) rotate(-3deg) scale(.95)}to{opacity:1;transform:translateY(0) rotate(-3deg) scale(1)}}
@media(max-width:760px){
 #pitch>.board-message{left:7px;right:7px;bottom:7px;padding:6px 8px;font-size:10px}
 #pitch>.board-message.goal-celebration{inset:0;padding:0}
 .goal-word{font-size:clamp(38px,13vw,60px);letter-spacing:-2px}
 .goal-kicker{font-size:7px;letter-spacing:2px}
 .goal-detail{font-size:10px}
 .goal-flourish{height:17px;margin:0 0 5px}
}
@media(prefers-reduced-motion:reduce){.goal-art{animation:none;transform:rotate(-3deg)}}
.language-select{font:inherit;font-size:12px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:7px;padding:9px 8px;min-height:44px;cursor:pointer;flex-shrink:0}.language-select:focus-visible{outline:3px solid #c09b37;outline-offset:3px}
@media(max-width:760px){.site-header{gap:12px}.site-header .rules-trigger{font-size:11px}.site-header .rules-trigger span{margin-left:3px}.language-select{font-size:11px;padding:7px 4px;max-width:85px}}
@media(max-width:360px){.site-header{padding-left:12px;padding-right:12px;gap:8px}.site-header .brand{font-size:24px}.site-header .brand-mark{margin-right:7px;width:20px;height:20px}}

/* Keep play feedback next to possession, outside the playable pitch. */
.pitch-topline{gap:12px;align-items:baseline}
.pitch-topline .pitch-label{flex-shrink:0;white-space:nowrap}
.pitch-topline>.board-message{position:static;flex:1;min-width:0;min-height:0;margin:0;padding:0;border:0;background:none;box-shadow:none;color:var(--muted);font-size:11px;line-height:1.45;text-align:right;overflow-wrap:anywhere}
.pitch-topline>.board-message.error{color:#934635}
@media(max-width:760px){
 .compact-mobile.playing .pitch-topline{height:auto;min-height:14px;line-height:1.4;gap:9px;margin-bottom:4px}
 .compact-mobile .pitch-topline>.board-message{margin:0;padding:0;font-size:10px;line-height:1.4}
}
