.game-page #stage.nine-stage:not(.ac-stage):not(.hc-stage):not(.tb-stage):not(.rps-stage):not(.stub-panel) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0;
}

.nine {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
}

.nine svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--muted);
}

.nine svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.08;
  stroke-linejoin: miter;
}

.points {
  position: absolute;
  inset: 0;
  touch-action: none;
}

.point {
  position: absolute;
  z-index: 1;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--board);
  color: transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.point.x,
.point.o {
  color: var(--ink);
}

.point.x {
  background: var(--acid);
  border-color: var(--acid);
}

.point.o {
  background: var(--paper);
  border-color: var(--paper);
}

.point.selected {
  box-shadow: 0 0 0 3px var(--ink);
}

.point.open,
.point.take {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px var(--acid);
}

.point.win {
  box-shadow: 0 0 0 3px var(--acid);
}

.point:disabled {
  cursor: default;
}

.nine[hidden],
.nine-setup[hidden] {
  display: none !important;
}

.nine-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
}

.nine-card {
  display: flex;
  justify-content: center;
  width: min(36rem, 100%);
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--paper);
}

.nine-card[hidden] { display: none !important; }

.nine-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  width: min(100%, 440px);
  margin: 0.2rem auto 0;
}

.nine-score[hidden] { display: none !important; }

.nine-side {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.nine-side.live {
  border-color: var(--acid);
}

.nine-side-name {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.nine-side-mark {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--board);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}

.nine-side-mark.x {
  background: var(--acid);
  border-color: var(--acid);
}

.nine-side-mark.o {
  background: var(--paper);
  border-color: var(--paper);
}

.nine-side-cut {
  grid-column: 2;
  grid-row: 2;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--paper);
}

.nine-side-cut span {
  margin-right: 0.3rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nine-turn {
  width: min(100%, 440px);
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
}

.nine-turn[hidden] { display: none !important; }

.nine-setup.toss-done {
  justify-content: flex-start;
  height: auto;
  padding-top: 1.25rem;
}

.nine-setup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.nine-setup-title.won,
.nine-setup-title.lost {
  width: 100%;
  font-size: clamp(2.4rem, 9.5vw, 3.4rem);
  line-height: 0.95;
  text-align: center;
}

.nine-setup-title.won { color: var(--acid); }
.nine-setup-title.lost { color: var(--paper); }

.toss-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.toss-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
}

.toss-pick {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 14vw, 5rem);
  line-height: 0.85;
  color: var(--paper);
}

.toss-pick.mine { color: var(--acid); }

.toss-op {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1;
  color: var(--muted);
}

.nine-pad {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  width: min(100%, 280px);
}

.nine-pad button {
  flex: 1 1 4.2rem;
  min-width: 4.2rem;
  max-width: 8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  font: 500 1rem/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.nine-pad button:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.nine-pad button.toss-play,
.nine-pad button.toss-play:hover {
  flex: 0 0 auto;
  min-width: 9rem;
  padding: 0.9rem 1.6rem;
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  font-size: 1.15rem;
  font-weight: 700;
}

@media (max-width: 420px) {
  .point {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.85rem;
  }
}

.point.dragging {
  opacity: 0.28;
}

.point.piece-follow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  margin: 0;
  pointer-events: none;
  will-change: transform;
}
