.sos {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.sos-board {
  position: relative;
  width: min(100%, 330px);
  aspect-ratio: 1;
}
.sos-cells {
  display: grid;
  grid-template: repeat(6, 1fr) / repeat(6, 1fr);
  height: 100%;
  border: 1px solid var(--game);
  padding: 1px;
}
.sos-cell {
  border: 1px solid color-mix(in srgb, var(--game) 55%, var(--paper));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  font: 700 clamp(30px, 10vw, 40px) / 1 var(--font-title);
  cursor: pointer;
}
.sos-cell:disabled { cursor: default; opacity: 1 }
.sos-cell.last, .sos-cell:enabled:active {
  background: color-mix(in srgb, var(--game) 13%, var(--paper));
}
.sos-cell:focus-visible, .sos-letters .btn:focus-visible {
  outline: 2px dashed var(--game);
  outline-offset: -4px;
}
.sos-lines {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  pointer-events: none;
}
.sos-lines line {
  stroke: currentColor;
  stroke-width: .055;
  stroke-linecap: round;
  opacity: .85;
}
.sos-letters { display: flex; align-items: center; gap: 10px }
.sos-letters .btn {
  min-width: 54px;
  min-height: 44px;
  padding: 0;
  font: 700 29px / 1 var(--font-title);
  border-color: var(--game);
}
.sos-letters .btn[aria-pressed="true"] { background: var(--game); color: var(--paper) }
.sos-score {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 24px;
}
.sos-score > span { display: flex; min-width: 0; white-space: pre }
.sos-name, .sos-turn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.sos-turn { font-size: 20px }
.sos-p0 { color: var(--ink) }
.sos-p1 { color: var(--red) }
