@layer ys-site254 {
  #root .native-scorer .native-sheet :is(.native-player-grid, .native-choices) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: start;
    gap: 6px;
  }

  #root .native-scorer .native-sheet .native-player-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  #root .native-scorer .native-sheet :is(.native-player-grid, .native-choices) button {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@layer ys-site254 {
  #root .native-scorer button { touch-action: manipulation; }
  #root .native-scorer .native-action-grid {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 6px !important;
  }
  #root .native-scorer .native-action.teal { --tile:#0b2f31; --ink:#43d5ce; }
  #root .native-scorer .native-action.blue { --tile:#0a273e; --ink:#3998ff; }
  #root .native-scorer .native-action.gold { --tile:#392f0c; --ink:#ffca45; }
  #root .native-scorer .native-action.green { --tile:#123b25; --ink:#45e64d; }
  #root .native-scorer .native-action.purple { --tile:#2d1842; --ink:#b765ff; }
  #root .native-scorer .native-action.red { --tile:#3b1319; --ink:#ff4f58; }
  #root .native-scorer button.native-action {
    box-sizing:border-box; display:flex !important; align-items:center !important;
    justify-content:flex-start !important; gap:6px; min-width:0; width:100% !important;
    height:clamp(46px,8svh,70px) !important; min-height:0 !important;
    padding:2px 8px !important; margin:0 !important;
    background:var(--tile) !important; color:var(--ink) !important;
    border:2px solid var(--ink) !important; border-radius:15px !important;
    transition:none !important;
  }
  #root .native-scorer .native-action:nth-child(-n+2) { height:clamp(44px,6svh,52px) !important; }
  #root .native-scorer .native-action b {
    color:var(--ink) !important; font-size:12px !important; font-weight:900;
    line-height:1.1; text-align:left;
  }
  #root .native-scorer .native-action .native-icon { transform:none !important; width:40px; height:40px; }
  #root .native-scorer .native-icon > * { zoom:.75; flex-shrink:0; }
  #root .native-scorer .native-action:disabled { opacity:.55 !important; }
  #root .native-scorer button:active:enabled { filter:brightness(1.25); }
  #root .native-scorer .native-clock-center output { font-size:27px !important; line-height:1.05; }
  #root .native-scorer .native-clock-center :is(.native-mode,.native-clock-tools) {
    display:flex !important; flex-wrap:wrap; gap:3px; justify-content:center;
  }
  #root .native-scorer .native-clock-center button {
    width:auto !important; min-width:0 !important; min-height:26px !important;
    height:auto !important; font-size:10px !important; line-height:1.1 !important;
    margin:0 !important; padding:3px 5px !important;
  }
  #root .native-scorer .native-mode button[aria-pressed=true] {
    background:#0b2f31 !important; color:#43d5ce !important; border-color:#43d5ce !important;
  }
}
@layer ys-site254 {
  #root .native-scorer { position:relative; }
  #root .native-scorer > .native-save-status {
    position:absolute; inset:0 0 auto auto; margin:0; padding:4px 8px;
    pointer-events:none; font-size:13px; color:white; background:#202226; border-radius:6px;
  }
}
