#clubhouse-settings {
  --ink: #071e42;
  --paper: #fff6e7;
  --cyan: #08e4ed;
  --title-face: Matchday, Impact, "Arial Narrow", sans-serif;
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 480px);
  max-width: none;
  max-height: min(90dvh, 680px);
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-top: 4px solid var(--ink);
  border-radius: 18px 18px 0 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -3px 0 #fff6e7a6;
  font: 700 16px/1.4 "Matchday Body", Nunito, system-ui, sans-serif;
  text-align: left;
  color-scheme: light;
}
#clubhouse-settings:not([open]), #clubhouse-settings [hidden] { display: none !important; }
#clubhouse-settings::backdrop { background: rgb(7 30 66 / .48); }
#clubhouse-settings *, #clubhouse-settings *::before, #clubhouse-settings *::after { box-sizing: border-box; }
#clubhouse-settings :is(button, input, a) { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
#clubhouse-settings button { position: static; margin: 0; cursor: pointer; touch-action: manipulation; }
#clubhouse-settings button:disabled { cursor: default; }
#clubhouse-settings svg { display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#clubhouse-settings .sheet-body { padding: 19px max(22px,env(safe-area-inset-right)) max(13px,var(--edge-reserve,env(safe-area-inset-bottom))) max(22px,env(safe-area-inset-left)); }
#clubhouse-settings .sheet-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
#clubhouse-settings h2 { margin: 0; min-width: 0; font: italic 900 clamp(32px,8vw,38px)/1 var(--title-face); overflow-wrap: anywhere; }
#clubhouse-settings .sheet-heading button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 9px; border: 0; border-radius: 7px; background: transparent; }
#clubhouse-settings .sheet-heading svg { width: 24px; height: 24px; }
#clubhouse-settings [data-action="close"] { margin-left: auto; }
#clubhouse-settings [data-action="back"] { margin-left: -10px; }
#clubhouse-settings :is(.player-row,.nameplate) { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; border-radius: 0; border-bottom: 3px solid var(--ink); padding: 1px 0 17px; background: transparent; text-align: left; }
#clubhouse-settings .nameplate { padding-bottom: 19px; }
#clubhouse-settings .portrait { flex: none; width: 64px; height: 62px; border: 2px solid var(--ink); border-radius: 7px; transform: rotate(-3deg); background: var(--paper) url("mobile-matchday-home.webp?v=56bfee9114d1") 48% 32%/180% auto no-repeat; }
#clubhouse-settings .player-label { display: grid; gap: 2px; min-width: 0; }
#clubhouse-settings :is(small,label) { display: block; font-size: 13px; font-weight: 800; line-height: 1.3; }
#clubhouse-settings :is(.player-label,.comparison) strong { font: italic 900 31px/1.1 var(--title-face); overflow-wrap: anywhere; }
#clubhouse-settings .arrow { margin-left: auto; padding-right: 8px; font: 700 31px/1.1 system-ui; }
#clubhouse-settings .option-list { margin: 2px 0 6px; }
#clubhouse-settings .setting { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 47px; padding: 0 2px; background: transparent; border: 0; border-radius: 0; border-bottom: 1px solid #071e423b; text-align: left; font-weight: 850; }
#clubhouse-settings .setting svg { width: 19px; height: 19px; }
#clubhouse-settings .switch-track { display: flex; align-items: center; width: 42px; height: 24px; padding: 2px; border: 2px solid var(--ink); border-radius: 25px; background: var(--cyan); }
#clubhouse-settings .switch-track i { width: 16px; height: 16px; margin-left: auto; border-radius: 50%; background: var(--ink); }
#clubhouse-settings [aria-checked="false"] .switch-track { background: #fffaf3; }
#clubhouse-settings [aria-checked="false"] .switch-track i { margin-left: 0; }
#clubhouse-settings .sheet-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
#clubhouse-settings .sheet-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 800; text-underline-offset: 3px; }
#clubhouse-settings .message { margin: 16px 0 20px; font-size: 16px; font-weight: 700; line-height: 1.45; }
#clubhouse-settings .hint { margin: 9px 0 18px; font-size: 14px; font-weight: 650; line-height: 1.4; }
#clubhouse-settings .sheet-primary { display: grid; place-items: center; width: 100%; min-height: 50px; margin: 0 0 5px; padding: 7px 13px; border: 3px solid var(--ink); border-radius: 7px; background: var(--cyan); box-shadow: 0 3px var(--ink); font: italic 900 25px/1.1 var(--title-face); text-decoration: none; }
#clubhouse-settings .sheet-primary:disabled { background: #d1ddda; color: #4b5c69; box-shadow: none; }
#clubhouse-settings .sheet-primary:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px var(--ink); }
#clubhouse-settings .sheet-quiet { display: grid; place-items: center; width: 100%; min-height: 44px; margin: 7px 0 0; padding: 0; border: 0; background: transparent; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
#clubhouse-settings input { display: block; width: 100%; min-height: 49px; margin-top: 7px; padding: 7px 11px; border: 2px solid var(--ink); border-radius: 5px; background: #fffcf7; font-size: 20px; font-weight: 800; }
#clubhouse-settings .comparison { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 9px; padding: 16px 0; border-block: 2px solid var(--ink); }
#clubhouse-settings .comparison strong { display: block; font-size: clamp(23px,6vw,30px); }
#clubhouse-settings .comparison > span { font-size: 23px; }
#clubhouse-settings :focus-visible { outline: 3px solid #007985; outline-offset: 2px; }
#clubhouse-settings h2:focus { outline: none; }
@media (max-width: 340px) {
  #clubhouse-settings .sheet-body { padding-inline: 15px; }
  #clubhouse-settings .sheet-heading { margin-bottom: 12px; }
}
html[data-layout="desktop"] #clubhouse-settings {
  inset: 0;
  width: min(460px, calc(100% - 32px));
  height: fit-content;
  max-height: min(88dvh, 690px);
  margin: auto;
  border: 3px solid var(--ink);
  border-radius: 15px;
  box-shadow: 0 5px var(--ink);
}
html[data-layout="desktop"] #clubhouse-settings .sheet-body { padding: 21px 26px 15px; }
