/* index.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}
#canvas-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
/* UI Overlay */
#ui-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}
#ui-overlay > * { pointer-events: auto; }
/* Title */
#title-bar {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
}
#title-bar h1 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}
#turn-indicator {
  font-size: 14px;
  margin-top: 4px;
  color: #aaa;
}
#turn-indicator .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
#turn-indicator .dot.white { background: #f0e6d3; border: 1px solid #888; }
#turn-indicator .dot.black { background: #333; border: 1px solid #888; }
/* Side panels */
.side-panel {
  position: absolute;
  top: 80px;
  width: 220px;
  background: rgba(20, 20, 40, 0.9);
  border-radius: 12px;
  padding: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
}
#left-panel { left: 16px; }
#right-panel { right: 16px; bottom: 80px; top: 80px; display: flex; flex-direction: column; }
/* Controls */
.control-group { margin-bottom: 14px; }
.control-group label {
  display: block;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
select, button {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
select:hover, button:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
button { margin-bottom: 6px; font-weight: 600; }
button:active { transform: scale(0.97); }
/* Captured pieces */
.captured-section { margin-bottom: 10px; }
.captured-section h3 {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.captured-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 20px;
  min-height: 28px;
}
/* Move history */
#move-history-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#move-history-container h3 {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
#move-history {
  flex: 1;
  overflow-y: auto;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
  min-height: 0;
}
#move-history::-webkit-scrollbar { width: 4px; }
#move-history::-webkit-scrollbar-track { background: transparent; }
#move-history::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.move-row {
  display: flex;
  gap: 8px;
  padding: 2px 4px;
  border-radius: 4px;
}
.move-row:hover { background: rgba(255,255,255,0.05); }
.move-num { color: #555; min-width: 24px; }
.move-white, .move-black { min-width: 65px; }
/* AI thinking */
#ai-thinking {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 40, 0.9);
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}
.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #7c6cf0;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Game over modal */
#game-over-modal {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 100;
}
#game-over-modal.show { display: flex; }
.modal-content {
  background: #1e1e36;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-content h2 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #fff;
}
.modal-content p {
  color: #aaa;
  margin-bottom: 24px;
  font-size: 15px;
}
.modal-content button {
  width: auto;
  padding: 10px 32px;
  background: #7c6cf0;
  border: none;
  font-size: 15px;
  color: #fff;
  border-radius: 10px;
}
.modal-content button:hover { background: #6a5bd4; }
/* Promotion modal */
#promotion-modal {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 100;
}
#promotion-modal.show { display: flex; }
.promo-content {
  background: #1e1e36;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.promo-content h3 { margin-bottom: 16px; font-size: 18px; }
.promo-options { display: flex; gap: 12px; justify-content: center; }
.promo-btn {
  width: 60px; height: 60px;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
}
.promo-btn:hover { background: rgba(124,108,240,0.3); border-color: #7c6cf0; }
/* Responsive */
@media (max-width: 900px) {
  .side-panel { width: 180px; padding: 10px; }
  #title-bar h1 { font-size: 18px; }
}
@media (max-width: 650px) {
  #left-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    top: auto;
    bottom: 8px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: none;
    gap: 4px;
    padding: 6px;
    z-index: 20;
  }
  #left-panel .control-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 100px;
  }
  #left-panel .control-group label {
    font-size: 10px;
    margin-bottom: 2px;
  }
  #left-panel button, #left-panel select {
    padding: 6px 8px;
    font-size: 11px;
    min-height: 44px;
  }
  .promo-btn {
    min-height: 60px;
  }
  .modal-content button {
    min-height: 44px;
  }
  #right-panel {
    left: 8px; right: 8px; width: auto;
    top: auto; bottom: 110px;
    max-height: 120px;
    padding: 6px;
  }
}
@media (max-width: 480px) {
  #title-bar h1 { font-size: 18px; }
  #turn-indicator { font-size: 12px; }
  #left-panel button, #left-panel select {
    padding: 4px 6px;
    font-size: 10px;
    min-height: 44px;
  }
  #left-panel .control-group {
    min-width: 80px;
  }
  #left-panel .control-group label {
    font-size: 10px;
  }
  #right-panel { max-height: 100px; padding: 6px; bottom: 100px; }
  .move-row { font-size: 11px; padding: 2px 4px; }
  .move-num { width: 25px; }
  .move-white, .move-black { width: 60px; }
}
