/* Keep the installed iPhone root geometry; only the working content changes. */
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea,[contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
[data-move-player],[data-move-player] *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
.lineup-drag-ghost{box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:3px 5px;font-size:13px;line-height:1.2;background:#1b2720;border:1px solid var(--accent);will-change:transform}
.key-player-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.key-player{display:grid;grid-template-columns:40px minmax(0,1fr) 42px;gap:10px;min-width:0;padding:16px 0;align-items:center}
.key-player>div{min-width:0}.key-player strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.key-player small{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.key-player>.jersey-number,.key-player>b{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums}
.key-player>b{text-align:right;font-size:24px}
@media(max-width:700px){.key-player-grid{grid-template-columns:minmax(0,1fr);gap:0}.key-player{grid-template-columns:32px minmax(0,1fr) 40px;min-height:84px}.key-player .jersey-number{font-size:23px}.key-player small{font-size:13px}}

.calendar-toolbar{display:flex;gap:10px;align-items:center;flex:none;margin-bottom:10px}.calendar-toolbar h2{margin:0 auto;font-size:18px}.calendar-toolbar button{min-height:44px;min-width:44px;padding:8px 12px}
.calendar-week,.calendar-grid{display:grid;width:100%;max-width:100%;min-width:0;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px}.calendar-week span{text-align:center;padding:8px 0;color:var(--muted);font-size:12px}.calendar-grid{background:var(--border);border:1px solid var(--border)}
.calendar-day,.calendar-empty{background:var(--surface);width:100%;max-width:100%;min-width:0;min-height:108px;margin:0;padding:8px 4px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;overflow:hidden;text-align:center;color:var(--text);font-size:13px;border:0;border-radius:0;text-decoration:none}.calendar-day>time,.calendar-day>.calendar-off,.calendar-day>.calendar-scheduled{display:block;width:100%;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;line-height:16px}.calendar-day time{font-variant-numeric:tabular-nums;color:var(--muted)}.calendar-day.is-today{outline:2px solid var(--accent);outline-offset:-2px}.calendar-opponent{display:flex;width:100%;min-width:0;max-width:100%;height:32px;flex:none;align-items:center;justify-content:center;overflow:hidden}.calendar-logo{display:block;width:32px;max-width:100%;height:32px;object-fit:contain;flex:none;background:transparent;pointer-events:none}.calendar-day .calendar-result{display:flex;flex-direction:column;align-items:center;gap:1px;width:100%;max-width:100%;min-width:0;font-size:12px;font-weight:500;line-height:15px}.calendar-result>span{display:block;max-width:100%;overflow:hidden;white-space:nowrap}.calendar-score{font-variant-numeric:tabular-nums;font-weight:600}.calendar-win{color:#b4d0bc}.calendar-loss{color:#e68c99}.calendar-off,.calendar-scheduled{font-size:12px;color:var(--muted)}.calendar-day:disabled{opacity:1}.calendar-empty{background:var(--ground)}
.calendar-advance{display:flex;align-items:end;gap:10px;flex:none;margin-top:14px;flex-wrap:wrap}.calendar-advance label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}.calendar-advance input{min-height:44px}.calendar-advance button{min-height:44px}.calendar-progress{display:flex;flex:none;align-items:center;gap:10px;padding-top:12px}.calendar-progress progress{flex:1;min-width:40px}.calendar-progress span{font-size:12px}.screen-schedule .view-tabs button{padding:8px 4px}
@media(max-width:700px){.calendar-day,.calendar-empty{min-height:100px;padding:5px 2px;gap:3px}.calendar-day time{font-size:12px}.calendar-day .calendar-result,.calendar-off,.calendar-scheduled{font-size:11px}.calendar-advance{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.calendar-advance label{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.calendar-advance button{font-size:12px;padding:8px 5px}.calendar-toolbar{gap:6px}.calendar-toolbar h2{font-size:16px}.screen-schedule .view-tabs{gap:0;padding:6px 2px}.screen-schedule .view-tabs button{font-size:12px;padding:8px 2px}.screen-schedule #competition-view-calendar{padding:10px}.calendar-progress{flex-wrap:wrap}.calendar-progress span{flex-basis:100%}}
[data-block-key=calendar]>.block-body{overflow-x:hidden}

.match-reveal{border:0;padding:0;margin:auto;background:var(--ground);color:var(--text);width:100%;height:100%;max-width:none;max-height:none;overflow:hidden}.match-reveal::backdrop{background:#151719}.match-reveal-content{height:100%;display:flex;align-items:center;justify-content:center;padding:24px}.match-reveal-word{font-size:clamp(64px,15vw,140px);font-weight:800;letter-spacing:.06em;line-height:1.1;animation:result-arrive .26s ease-out both}.match-reveal-word.is-loading{font-size:24px;letter-spacing:0;font-weight:500;animation:none}.match-reveal-word.result-loss{color:#e5c1c6}.match-reveal-word.result-win{color:#e7eee7}@keyframes result-arrive{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){.match-reveal-word{animation:none}}
.formation-tools p{flex:1;min-width:0}.formation-tools button{white-space:nowrap}@media(max-width:700px){.formation-tools{gap:6px}.formation-tools p{font-size:12px}.formation-tools button{font-size:12px;padding:6px;min-height:44px}}

/* Every club shares the same square frame within each screen. */
.crest.crest-custom{width:44px;height:44px;flex:none;background:transparent;padding:0;border-radius:0}
.crest-large.crest-custom{width:64px;height:64px}
.club-context .crest-custom{width:44px;height:44px}
.club-option .crest-custom{width:36px;height:36px}
.club-masthead .crest-custom,.chosen-club .crest-custom{width:56px;height:56px}
.screen-home .club-masthead .crest-custom{width:48px;height:48px}
.game-topbar .topbar-club .crest-custom{width:28px;height:28px}
.logo-preview .crest-custom{width:96px;height:96px}
.club-logo,.calendar-logo{object-fit:contain;object-position:center;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@media(max-width:700px){.screen-home .club-masthead .crest-custom{width:36px;height:36px}.logo-preview .crest-custom{width:80px;height:80px}}


/* Calendar uses the club artwork already chosen by this user. */
.calendar-opponent .crest,.calendar-opponent .crest.crest-custom{width:32px;height:32px;max-width:100%;padding:0;background:transparent}
.calendar-opponent .crest b{font-size:18px}

#competition-view-calendar[aria-busy="true"] .calendar-grid{pointer-events:none}
