/**
 * Strands Daily Game Styles
 */
#strands-game {
  background: #fff;
  border-radius: 12px;
  padding: 28px 36px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sg-theme {
  text-align: center;
  margin-bottom: 20px;
}

.sg-theme-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #888;
  background: linear-gradient(90deg, transparent, #dbeafe, transparent);
  padding: 4px 16px;
  display: inline-block;
  border-radius: 4px;
  margin-bottom: 8px;
}

.sg-theme-clue {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

/* 6x8 Grid — fixed cell size, centered */
.sg-grid {
  display: grid;
  grid-template-columns: repeat(6, 56px);
  grid-auto-rows: 56px;
  gap: 6px;
  justify-content: center;
  margin-bottom: 18px;
}

.sg-cell {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #e5e7eb;
  color: #333;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Inter', -apple-system, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.12s, transform 0.1s;
  padding: 0;
}

.sg-cell:hover {
  background: #d1d5db;
}

.sg-cell:active {
  transform: scale(0.92);
}

.sg-cell.sg-selected {
  background: #3b82f6;
  color: #fff;
}

.sg-cell.sg-found-theme {
  background: #3b82f6;
  color: #fff;
  cursor: default;
  opacity: 0.85;
}

.sg-cell.sg-found-spangram {
  background: #f59e0b;
  color: #fff;
  cursor: default;
  opacity: 0.85;
}

/* Current word */
.sg-current-word {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Inter', -apple-system, sans-serif;
  letter-spacing: 3px;
  color: #3b82f6;
  margin-bottom: 12px;
  min-height: 1.6em;
}

/* Progress */
.sg-progress {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 16px;
}

/* Buttons */
.sg-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.sg-btn {
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid #d1d5db;
  font-family: 'Inter', -apple-system, sans-serif;
}

.sg-btn-clear {
  background: #fff;
  color: #333;
}

.sg-btn-clear:hover {
  background: #f3f4f6;
}

.sg-btn-submit {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.sg-btn-submit:hover {
  background: #2563eb;
}

.sg-btn-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Result */
.sg-result {
  text-align: center;
  padding: 14px 0;
}

.sg-result-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
}

/* Hints link */
.sg-hints-link {
  text-align: center;
  margin-top: 10px;
}

.sg-hints-link a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
}

.sg-hints-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 520px) {
  #strands-game {
    padding: 20px 16px;
  }

  .sg-grid {
    grid-template-columns: repeat(6, 48px);
    grid-auto-rows: 48px;
    gap: 5px;
  }

  .sg-cell {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .sg-theme-clue {
    font-size: 1.25rem;
  }
}

@media (max-width: 380px) {
  #strands-game {
    padding: 16px 10px;
  }

  .sg-grid {
    grid-template-columns: repeat(6, 42px);
    grid-auto-rows: 42px;
    gap: 4px;
  }

  .sg-cell {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .sg-btn {
    padding: 10px 22px;
    font-size: 0.85rem;
  }
}
