.othello-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.92fr);
  align-items: start;
}

.othello-topbar {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.othello-score-chip {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(77, 117, 175, 0.16);
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(234, 243, 252, 0.95));
}

.othello-score-chip.black strong,
.othello-score-chip.status strong {
  color: #163659;
}

.othello-score-chip.white strong {
  color: #2c4f78;
}

.othello-score-chip span {
  font-size: 12px;
  color: #627a97;
}

.othello-score-chip strong {
  font-size: 18px;
}

.othello-board-wrap {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #1c6f51 0%, #145d44 100%);
  border: 1px solid rgba(26, 76, 57, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.othello-board-card .studio-btn-row {
  margin-top: 18px;
  justify-content: center;
}

.othello-board-card .studio-status {
  text-align: center;
}

.othello-board {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.othello-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.othello-cell:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.othello-cell.valid::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 999px;
  background: rgba(255, 229, 108, 0.88);
  box-shadow: 0 0 0 8px rgba(255, 229, 108, 0.14);
}

.othello-disc {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.26), inset 0 -6px 10px rgba(0, 0, 0, 0.18);
}

.othello-disc.black {
  background: radial-gradient(circle at 35% 35%, #66788e 0%, #27374d 42%, #111827 100%);
}

.othello-disc.white {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #eef3f9 45%, #c9d5e6 100%);
}

.othello-side {
  display: grid;
  gap: 18px;
}

.othello-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.othello-metrics .wide {
  grid-column: span 2;
}

@media (max-width: 980px) {
  .othello-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .othello-topbar {
    grid-template-columns: 1fr;
  }

  .othello-board-wrap {
    padding: 10px;
    border-radius: 18px;
  }

  .othello-cell {
    border-radius: 10px;
  }
}
