/* ============================================================
   omok (오목) STYLES
   ============================================================ */

#omok-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  user-select: none;
}

/* Board container: holds canvas + overlay */
#board-container {
  position: relative;
  width: min(480px, 94vw);
}

/* Canvas board */
#omok-canvas {
  display: block;
  width: min(480px, 94vw);
  height: min(480px, 94vw);
  cursor: crosshair;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

/* PC: larger board */
@media (min-width: 600px) {
  #board-container { width: min(640px, 94vw); }
  #omok-canvas { width: min(640px, 94vw); height: min(640px, 94vw); }
  #omok-footer { width: min(640px, 94vw); }
}

/* Options overlay (shown over canvas before game / when reopened) */
#options-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  z-index: 10;
}

#options-panel {
  background: #fdf6e3;
  border: 2px solid #c8a050;
  border-radius: 10px;
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 240px;
  max-width: 90%;
}

.options-title {
  font-size: 17px;
  font-weight: bold;
  color: #4a3000;
  text-align: center;
}

/* Footer below board */
#omok-footer {
  width: min(480px, 94vw);
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

#game-status {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  padding: 8px 12px;
  background: #fdf6e3;
  border: 1px solid #c8a050;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  color: #4a3000;
}

#footer-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.ctrl-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
  display: block;
  text-align: center;
}

.ctrl-group { text-align: center; }

/* Buttons */
.gm-btn {
  padding: 7px 16px;
  border: 1px solid #c8a050;
  border-radius: 5px;
  background: #fdf6e3;
  cursor: pointer;
  font-size: 14px;
  color: #4a3000;
  transition: background 0.15s, border-color 0.15s;
}
.gm-btn:hover { background: #f0dea0; }
.gm-btn.active {
  background: #7a4f1e;
  color: #fff;
  border-color: #7a4f1e;
}

.diff-btn, .stone-btn { min-width: 70px; }

.new-game-btn {
  background: #7a4f1e;
  color: #fff;
  border-color: #7a4f1e;
  font-weight: bold;
  padding: 8px 28px;
}
.new-game-btn:hover { background: #5c3a12; }

/* Stone color buttons */
#stone-1 { font-size: 15px; }
#stone-2 { font-size: 15px; }

/* Footer action buttons */
.settings-btn {
  font-size: 13px;
  padding: 5px 14px;
}

.new-game-btn-sm {
  font-size: 13px;
  padding: 5px 14px;
  background: #7a4f1e;
  color: #fff;
  border-color: #7a4f1e;
  font-weight: bold;
}
.new-game-btn-sm:hover { background: #5c3a12; }

/* Hint text */
.hint-text {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

/* Mobile */
@media (max-width: 520px) {
  #omok-canvas { width: 94vw; height: 94vw; }
  #board-container { width: 94vw; }
  #omok-footer { width: 94vw; }
}
