/* ---------- Page layout ---------- */
.s11-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(320px, 420px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "board controls" "info controls";
  justify-content: center;
  align-items: start;
  gap: 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.s11-layout [hidden] {
  display: none !important;
}
.s11-layout .rectangle {
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
  gap: 10px;
}

.s11-board-panel {
  grid-area: board;
}

.s11-controls {
  grid-area: controls;
  display: grid;
  gap: 20px;
  min-width: 0;
}

.s11-info {
  grid-area: info;
  color: #101d30;
  font-size: 15px;
  line-height: 1.45;
}
.s11-info p,
.s11-info ol {
  margin: 0;
}
.s11-info ol {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}
.s11-info li::marker {
  color: #1d3557;
  font-weight: 700;
}
.s11-info strong {
  color: #1d3557;
}

.s11-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.s11-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.s11-hint {
  margin: 0;
  color: rgba(16, 29, 48, 0.75);
}

.s11-section-title {
  margin: 0;
  font-size: 18px;
  color: #1d3557;
}

/* ---------- Controls ---------- */
.s11-button {
  height: auto;
  min-height: 34px;
  font-family: inherit;
  font-size: 15px;
}

.s11-button--ghost {
  display: flex;
  align-items: center;
  padding: 6px 15px;
  border: 1px solid #1d3557;
  border-radius: 8px;
  background: transparent;
  color: #1d3557;
  font-weight: bold;
  cursor: pointer;
  background-color: #f1faee;
  transition: all 0.3s ease;
}
.s11-button--ghost:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.s11-button--ghost:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}
.s11-button--ghost:hover {
  background: #f1faee;
}

.s11-field {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.s11-label {
  font-weight: 600;
  color: #1d3557;
}

.s11-input {
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid rgba(29, 53, 87, 0.35);
  border-radius: 4px;
  background: #f1faee;
  color: #1d3557;
  font-family: inherit;
  font-size: 15px;
  box-sizing: border-box;
}
.s11-input:focus {
  outline: none;
  border-color: #E63946;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}
.s11-input[type=number] {
  -webkit-appearance: textfield;
          appearance: textfield;
  -moz-appearance: textfield;
}
.s11-input[type=number]::-webkit-inner-spin-button, .s11-input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.s11-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.s11-check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1d3557;
  cursor: pointer;
}
.s11-check input {
  margin: 0;
  accent-color: #E63946;
}

/* Radio groups rendered as a row of toggle buttons. */
.s11-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.s11-segmented label {
  position: relative;
  flex: 1 1 0;
}
.s11-segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.s11-segmented span {
  display: block;
  padding: 6px 8px;
  border: 1px solid #1d3557;
  border-radius: 8px;
  color: #1d3557;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  background: #f1faee;
  transition: all 0.3s ease;
}
.s11-segmented span:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.s11-segmented span:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}
.s11-segmented span:hover {
  background: #f1faee;
}
.s11-segmented input:checked + span {
  background: #E63946;
  border-color: #E63946;
  color: #f1faee;
  cursor: default;
}
.s11-segmented input:checked + span:hover {
  background: rgb(209.5426008969, 26.4573991031, 40.2152466368);
  border-color: rgb(209.5426008969, 26.4573991031, 40.2152466368);
  box-shadow: none;
  transform: none;
}
.s11-segmented input:focus-visible + span {
  outline: 2px solid #1d3557;
  outline-offset: 2px;
}

.s11-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.s11-swatch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1d3557;
  cursor: pointer;
}
.s11-swatch:hover input {
  border-color: #1d3557;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}
.s11-swatch input {
  width: 40px;
  height: 32px;
  padding: 2px;
  border: 1px solid rgba(29, 53, 87, 0.35);
  border-radius: 4px;
  background: #f1faee;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.s11-swatch input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.s11-swatch input::-webkit-color-swatch {
  border: 0;
  border-radius: 2px;
}
.s11-swatch input::-moz-color-swatch {
  border: 0;
  border-radius: 2px;
}
.s11-swatch input:focus-visible {
  outline: none;
  border-color: #E63946;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}

.s11-player-list {
  display: grid;
  gap: 6px;
}

.s11-player-row {
  display: grid;
  grid-template-columns: 56px 56px minmax(0, 1fr);
  gap: 6px;
}
.s11-player-row .s11-input {
  height: 32px;
}

.s11-player-row--head span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d3557;
}

/*
 * ---------- Board ----------
 * Geometry mirrors the old 700x880 canvas. Everything inside is sized in
 * percentages or cqw (1cqw = 7 canvas px) so the board scales with its width.
 */
.s11-board {
  --line: 0.2857cqw;
  --kit-1: #1d3557;
  --kit-2: #E63946;
  --kit-text: #fff;
  position: relative;
  width: 100%;
  aspect-ratio: 700/880;
  container-type: inline-size;
  background: #457B9D;
  font-family: "Source Sans 3", Arial, sans-serif;
  overflow: hidden;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}
.s11-board *,
.s11-board *::before,
.s11-board *::after {
  box-sizing: border-box;
}

.s11-goal {
  position: absolute;
  left: 45.4286%;
  top: 0.2273%;
  width: 9.1429%;
  height: 2.0455%;
  border: var(--line) solid #c0c0c0;
}

.s11-pitch {
  position: absolute;
  left: 3.1429%;
  top: 2.2727%;
  width: 93.7143%;
  height: 95.4545%;
  background: repeating-linear-gradient(180deg, #00680a 0 3.5714cqw, #007b0c 3.5714cqw 7.1429cqw);
}
.s11-pitch.solid {
  background: #00680a;
}

.s11-markings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: var(--line) solid #c0c0c0;
  pointer-events: none;
}

.s11-markings > div,
.s11-end > div {
  position: absolute;
}

.s11-halfway {
  left: 0;
  right: 0;
  top: 50%;
  border-top: var(--line) solid #c0c0c0;
  transform: translateY(-50%);
}

.s11-centre-circle {
  left: 50%;
  top: 50%;
  width: 31.2195%;
  aspect-ratio: 1;
  border: var(--line) solid #c0c0c0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.s11-spot {
  left: 50%;
  width: 0.8571cqw;
  height: 0.8571cqw;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.s11-centre-spot {
  top: 50%;
}

.s11-corner {
  width: 2.8571cqw;
  height: 2.8571cqw;
  border: var(--line) solid #c0c0c0;
  border-radius: 50%;
}

.s11-corner-tl {
  left: -1.4286cqw;
  top: -1.4286cqw;
}

.s11-corner-tr {
  right: -1.4286cqw;
  top: -1.4286cqw;
}

.s11-corner-bl {
  left: -1.4286cqw;
  bottom: -1.4286cqw;
}

.s11-corner-br {
  right: -1.4286cqw;
  bottom: -1.4286cqw;
}

/* One end of the pitch; the bottom end is the same markup rotated 180deg. */
.s11-end {
  left: 0;
  width: 100%;
  height: 50%;
}

.s11-end-top {
  top: 0;
}

.s11-end-bottom {
  top: 50%;
  transform: rotate(180deg);
}

.s11-pen-area {
  left: 19.5122%;
  top: 0;
  width: 60.9756%;
  height: 38.0952%;
  border: var(--line) solid #c0c0c0;
}

.s11-gk-area {
  left: 36.2805%;
  top: 0;
  width: 27.439%;
  height: 19.0476%;
  border: var(--line) solid #c0c0c0;
}

.s11-pen-spot {
  top: 20.9524%;
}

/* The "D": the part of a circle around the penalty spot outside the box. */
.s11-d {
  left: 50%;
  top: 38.0952%;
  width: 31.2195%;
  height: 7.2381%;
  overflow: hidden;
  transform: translateX(-50%);
}

.s11-d-circle {
  width: 100%;
  aspect-ratio: 1;
  /* percentage margins resolve against width, which keeps this circular */
  margin-top: -85.1563%;
  border: var(--line) solid #c0c0c0;
  border-radius: 50%;
}

.s11-team-name {
  position: absolute;
  left: 5.2857%;
  top: 3.2%;
  font-size: 5.7143cqw;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 0.2857cqw 0.8571cqw rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.s11-watermark {
  position: absolute;
  right: 3.5%;
  bottom: 0.4%;
  font-size: 1.8571cqw;
  font-weight: bold;
  line-height: 1;
  color: #fff;
  pointer-events: none;
}

.s11-players {
  position: absolute;
  inset: 0;
}

.s11-player {
  position: absolute;
  width: 10.2857cqw;
  height: 9.8571cqw;
  transform: translate(-50%, -53.6%);
  cursor: grab;
  touch-action: none;
}
.s11-player.dragging {
  cursor: grabbing;
  z-index: 2;
}

.s11-shape-wrap {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 0 0.1429cqw rgba(0, 0, 0, 0.9)) drop-shadow(0.2857cqw 0.2857cqw 0.4286cqw rgba(0, 0, 0, 0.6));
}

.s11-shape {
  position: absolute;
  inset: 0;
  background: var(--kit-1);
}

.s11-board[data-pattern=vertical-stripes] .s11-shape {
  background: repeating-linear-gradient(90deg, var(--kit-1) 0 9.5%, var(--kit-2) 9.5% 18%);
}

.s11-board[data-pattern=horizontal-stripes] .s11-shape {
  background: repeating-linear-gradient(180deg, var(--kit-2) 7%, var(--kit-2) 17%, var(--kit-1) 17%, var(--kit-1) 33%);
}

.s11-board[data-shape=kit] .s11-shape {
  clip-path: polygon(25% 100%, 75% 100%, 72.22% 33.33%, 79.17% 53.62%, 100% 44.93%, 79.17% 7.25%, 63.89% 0%, 58.33% 0%, 50% 8%, 41.67% 0%, 36.11% 0%, 20.83% 7.25%, 0% 44.93%, 20.83% 53.62%, 27.78% 33.33%);
}

.s11-board[data-shape=circle] .s11-player,
.s11-board[data-shape=rectangle] .s11-player {
  width: 9.1429cqw;
  height: 9.1429cqw;
  transform: translate(-50%, -65.6%);
}

.s11-board[data-shape=circle] .s11-shape {
  border-radius: 50%;
}

.s11-kit-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.2857cqw;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  color: var(--kit-text);
  pointer-events: none;
}

.s11-board[data-shape=kit] .s11-kit-text {
  top: 57%;
}

.s11-board[data-bottom-text=show-number] .s11-kit-text {
  font-size: 3.7143cqw;
}

.s11-board[data-shadow=show-shadow] .s11-kit-text {
  text-shadow: 0.2857cqw 0.2857cqw 0.8571cqw #000;
}

.s11-name {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 0.1429cqw;
  transform: translateX(-50%);
  font-size: 2.8571cqw;
  font-weight: bold;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 0 0.2857cqw rgba(0, 0, 0, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .s11-layout {
    grid-template-columns: minmax(0, 720px);
    grid-template-rows: none;
    grid-template-areas: "board" "controls" "info";
  }
}
@media (max-width: 600px) {
  .s11-layout {
    gap: 12px;
  }
  .s11-layout .rectangle {
    padding: 8px;
  }
  .s11-controls {
    gap: 12px;
  }
  .s11-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .s11-actions,
  .s11-actions .s11-button {
    flex: 1 1 auto;
    justify-content: center;
  }
}/*# sourceMappingURL=starting11-new.css.map */