:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; color: #ecf0ef; background: #141817; font: 14px/1.5 system-ui, sans-serif; letter-spacing: 0; }
.demo-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px; background: #0b0f0e; border-bottom: 1px solid #39433d; }
.demo-brand { display: flex; align-items: center; gap: 12px; color: #f4f5f4; text-decoration: none; font-size: 18px; }
.demo-header > span { color: #bccbce; font-size: 12px; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 28px; }
.demo-toolbar small { color: #a8b7b0; font-size: 11px; }
.demo-toolbar h1 { font-size: 26px; margin: 3px 0 0; }
.demo-toolbar label { display: flex; align-items: center; gap: 12px; color: #c8d4cd; }
.demo-toolbar select { color: #eff3f0; background: #253029; border: 1px solid #536759; border-radius: 4px; padding: 8px; max-width: 100%; }
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; padding: 0 28px 38px; }
.demo-squad { min-width: 0; }
.demo-score { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 10px 0 16px; color: #c7d2d8; }
.demo-score b { color: #c7f583; }
.demo-pitch { position: relative; width: 100%; height: 440px; margin-bottom: 58px; border: 1px solid #68866b; background: repeating-linear-gradient(0deg, #224333 0, #224333 64px, #274b3a 64px, #274b3a 128px); }
.pitch-half { position: absolute; inset: 50% 0 auto; border-top: 1px solid #749680; }
.pitch-circle { position: absolute; width: 110px; height: 110px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid #749680; border-radius: 50%; }
.pitch-box { position: absolute; width: 46%; height: 20%; left: 27%; bottom: 0; border: 1px solid #749680; border-bottom: 0; }
.demo-card { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 74px; height: 80px; transform: translate(-50%, -50%); padding: 6px; border: 1px solid #d2c379; border-radius: 6px; background: #e4daab; color: #272a20; box-shadow: 0 4px 12px #07160c66; text-align: center; }
.demo-card b { font-size: 25px; line-height: 1; }
.demo-card > span { font-size: 10px; font-weight: 700; margin: 4px 0; }
.demo-card strong { font-size: 10px; overflow-wrap: anywhere; }
.demo-card.empty { background: #183429; border-color: #6a8674; color: #abc8b5; box-shadow: none; }
.demo-card.empty small { font-size: 10px; }
.demo-bench { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid #3f5247; color: #b9c6be; font-size: 12px; }
.demo-bench strong { color: #edf2ef; }
.demo-bench #demo-fill-count { color: #b8e0ed; margin-left: auto; }
.demo-requirements { padding: 14px 0; }
.demo-requirements h2 { font-size: 16px; margin: 0 0 16px; }
.demo-requirements div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #3e5046; }
.demo-requirements b { color: #d7e69c; }
.demo-requirements p { font-size: 12px; color: #a8b7b0; margin: 18px 0; }
body #fc-sbc-lite-panel { bottom: auto; top: 178px; right: 28px; max-height: calc(100vh - 250px); width: 370px; }
body #fc-sbc-lite-dock { right: 28px; bottom: 16px; }
@media (max-width: 800px) {
  .demo-header { align-items: flex-start; padding: 16px; flex-direction: column; gap: 5px; }
  .demo-toolbar { padding: 18px 16px; }
  .demo-toolbar h1 { font-size: 22px; }
  .demo-layout { grid-template-columns: minmax(0, 1fr); padding: 0 16px 100px; }
  .demo-requirements { max-width: 420px; }
  .demo-card { width: 57px; height: 78px; }
  .demo-card b { font-size: 22px; }
  .demo-card strong { font-size: 9px; }
  .demo-pitch { height: 455px; }
  body #fc-sbc-lite-panel { top: auto; right: 12px; bottom: 78px; width: min(370px, calc(100vw - 24px)); max-height: calc(100vh - 100px); }
  body #fc-sbc-lite-dock { right: 12px; }
}
