/* equipment card (a17-frame copy of the team kit): a side panel over the live game, a bottom sheet on phones.
   Team style guide: radius 0, 1px lines and spacing, colours by role, no glow / gradient. */
.ec-ui{font-family:var(--a17-font);color:var(--a17-text-dark);--ec-muted:var(--a17-muted-dark);--ec-line:var(--a17-rule-dark);--ec-body:#d3dbd7;--ec-bg:#11191c;--ec-pad:24px;font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
.ec-ui *{box-sizing:border-box}.ec-ui [hidden]{display:none!important}
.ec-ui button,.ec-ui a{font:inherit;color:inherit}.ec-ui button{background:none;border:0;border-radius:0;cursor:pointer;padding:0}.ec-ui a{text-underline-offset:4px}
.ec-ui :focus{outline:none}.ec-ui :focus-visible{outline:1px solid var(--a17-focus-dark);outline-offset:-1px}.ec-ui .ec-dialog:focus-visible{outline:none}

/* the game stays visible: a light dim, no blur; only Close / Continue / Esc close the card */
.ec-shade{position:fixed;inset:0;z-index:var(--a17-z-modal);background:rgb(1 5 5 / .38)}
.ec-dialog{position:absolute;top:0;right:0;bottom:0;width:min(460px,100%);display:flex;flex-direction:column;background:var(--ec-bg);border-left:1px solid var(--ec-line)}
.ec-shade.is-entering{animation:ec-fade .2s var(--a17-ease)}.ec-shade.is-entering .ec-dialog{animation:ec-in .2s var(--a17-ease)}
@keyframes ec-fade{from{background:rgb(1 5 5 / 0)}}@keyframes ec-in{from{transform:translateX(100%)}}@keyframes ec-up{from{transform:translateY(100%)}}

/* header: kicker + language + Close on one row, the title under it */
.ec-head{flex:none;padding:8px var(--ec-pad) 16px;border-bottom:1px solid var(--ec-line)}
.ec-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-right:-10px}
.ec-kicker{margin:0;font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--ec-muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ec-tools{display:flex;align-items:center;flex:none;margin-left:auto}
.ec-tools button{min-width:44px;min-height:44px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;letter-spacing:.06em;color:var(--ec-muted)}
.ec-tools button[aria-pressed=true]{color:var(--a17-text-dark);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.ec-tools .ec-close{gap:8px;margin-left:8px;padding:0 10px;font-size:13px;letter-spacing:0;color:var(--a17-text-dark);border-left:1px solid var(--ec-line)}
.ec-close svg{width:11px;height:11px;stroke:currentColor;stroke-width:1.5;fill:none}
.ec-title{margin:2px 0 0;font-size:26px;font-weight:500;letter-spacing:-.02em;line-height:1.2}
.ec-subtitle{margin:6px 0 0;font-size:14px;color:var(--ec-muted)}

/* scrolling body: hero picture, repair rows, the three text rows, the record */
.ec-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a9bcbb55 transparent;padding:20px var(--ec-pad) 8px}
.ec-hero{position:relative;aspect-ratio:16/10;background:#182124;overflow:hidden}
.ec-hero>*{position:absolute;inset:0;width:100%;height:100%}
.ec-hero .ec-snap,.ec-hero .ec-pic,.ec-snap>*{position:absolute;inset:0}
.ec-hero img,.ec-hero svg{display:block;width:100%;height:100%;object-fit:contain;user-select:none}
.ec-snap text{font-family:var(--a17-font);font-weight:500;letter-spacing:.04em}
.ec-pic{display:flex;align-items:center;padding:12px}.ec-pic .pic{height:auto;max-height:100%}
.ec-diagram .ec-line{stroke:#dbe5de;stroke-width:1.4;fill:none;stroke-linecap:round;stroke-linejoin:round}.ec-diagram .ec-dim{stroke:#6e7c7b;stroke-width:1;fill:none}.ec-diagram text{font-family:inherit;font-size:12px;fill:#c2cdc9}.ec-diagram .ec-dot{fill:#edb86b}
/* segmented control: game model | 1972 photo (js/photos.js) */
.ec-seg{display:flex;margin-bottom:10px;border:1px solid var(--ec-line);width:fit-content}
.ec-seg button{min-height:36px;padding:0 14px;font-size:13px;color:var(--ec-muted)}
.ec-seg button+button{border-left:1px solid var(--ec-line)}
.ec-seg button[aria-pressed=true]{color:var(--a17-text-dark);background:#ffffff14}
.ec-duo[data-view=game] .ec-photo,.ec-duo[data-view=game] .ec-photo-cap,.ec-duo[data-view=game] .ec-photo-note,.ec-duo[data-view=photo] .ec-duo-game{display:none}
.ec-photo{background:#0b1012}
.ec-visual:has(.ec-duo[data-view=photo]) .ec-diagram-caption{display:none}
.ec-photo-cap,.ec-diagram-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 0;font-size:12px;color:var(--ec-muted)}
.ec-photo-note{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--ec-body)}

/* repair rows: number, part, state */
.ec-repairs{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--ec-line)}
.ec-repair{display:flex;align-items:center;gap:12px;min-height:36px;border-bottom:1px solid var(--ec-line);font-size:13px}
.ec-number{font:12px var(--a17-mono);color:var(--ec-muted)}.ec-repair-label{color:var(--a17-text-dark)}
.ec-repair-status{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:12px;color:var(--a17-warning);white-space:nowrap}
.ec-repair-status:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.ec-repair.is-progress .ec-repair-status{color:var(--a17-active-dark)}.ec-repair.is-complete .ec-repair-status{color:var(--a17-success-dark)}

.ec-copy{margin-top:6px}
.ec-section{padding:14px 0;border-bottom:1px solid var(--ec-line)}.ec-section:last-child{border-bottom:0}
.ec-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.ec-section h3{margin:0;font-size:11px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--ec-muted)}
.ec-section p{margin:0;font-size:16px;line-height:1.55;color:var(--ec-body);overflow-wrap:break-word}.ec-section p+p{margin-top:8px}
/* source tag: a quiet badge, never a warning colour; only "game setting" has its own faint tint */
.ec-source{display:inline-block;flex:none;font-size:11px;font-weight:500;line-height:18px;padding:0 6px;letter-spacing:.02em;white-space:nowrap;color:var(--ec-muted);border:1px solid #a9bcbb40;vertical-align:1px}
.ec-source[data-kind=game]{color:#c4c0d8;border-color:#b9b5ca59;background:#b9b5ca12}
.ec-section p .ec-source{margin-left:4px}

.ec-more{margin:4px 0 12px;border-top:1px solid var(--ec-line);font-size:14px;color:var(--ec-body)}
.ec-more summary{display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;list-style:none;color:var(--a17-text-dark);width:fit-content}
.ec-more summary::-webkit-details-marker{display:none}
.ec-more summary:before{content:'+';width:12px;font:15px var(--a17-mono);color:var(--ec-muted)}.ec-more[open] summary:before{content:'−'}
.ec-more p,.ec-more-lines{margin:0 0 8px;line-height:1.6}.ec-more-lines{list-style:none;padding:0;display:grid;gap:8px}
.ec-links{display:flex;gap:16px;flex-wrap:wrap;font-size:13px}

.ec-footer{flex:none;display:flex;justify-content:flex-end;padding:6px var(--ec-pad);border-top:1px solid var(--ec-line)}
.ec-confirm{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:0 4px;font-size:15px;font-weight:500;color:var(--a17-text-dark)}
.ec-confirm span{transition:transform var(--a17-duration) var(--a17-ease)}.ec-confirm:hover span{transform:translateX(3px)}

.ec-ui[lang=ko] .ec-title,.ec-ui[lang=ko] .ec-section p,.ec-ui[lang=ko] .ec-more,.ec-ui[lang=ko] .ec-photo-note{word-break:keep-all}
.ec-ui[lang=ko] .ec-section h3,.ec-ui[lang=ko] .ec-kicker{letter-spacing:.04em}

/* phones: a bottom sheet, at most 85% of the screen, scrolling inside */
@media (max-width:720px){
  .ec-ui{--ec-pad:16px}
  .ec-shade{background:rgb(1 5 5 / .45)}
  .ec-dialog{top:auto;left:0;width:100%;max-height:85vh;max-height:85dvh;border-left:0;border-top:1px solid #9bafaa}
  .ec-shade.is-entering .ec-dialog{animation-name:ec-up}
  .ec-head{padding-bottom:12px}.ec-title{font-size:22px}
  .ec-body{padding-top:14px}
  .ec-seg{width:100%}.ec-seg button{flex:1;min-height:44px}
  .ec-section{padding:12px 0}.ec-section p{font-size:15px}
}
@media (max-width:360px){.ec-tools button{padding:0 6px}.ec-tools .ec-close{margin-left:2px;font-size:0;gap:0;padding:0 14px}.ec-close svg{width:13px;height:13px}.ec-kicker{letter-spacing:.04em}}
@media (pointer:coarse){.ec-seg button{min-height:44px}}
@media (prefers-reduced-motion:reduce){.ec-shade.is-entering,.ec-shade.is-entering .ec-dialog{animation:none}.ec-confirm span{transition:none}}
