@import './theme.css';

.boggle {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.boggle-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  padding: 16px;
}

.boggle-title h2 {
  margin: 6px 0 4px 0;
  font-size: 22px;
  line-height: 1.15;
  color: var(--leno-text-primary, #1e293b);
}

.boggle-title p {
  margin: 0;
  font-size: 13px;
  color: var(--leno-text-secondary, #475569);
}

.boggle-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.boggle-stats {
  display: flex;
  gap: 12px;
}

.boggle-stat {
  min-width: 110px;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

.boggle-stat__label {
  font-size: 12px;
  color: var(--leno-text-muted, #64748b);
  font-weight: 600;
}

.boggle-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: var(--leno-text-primary, #1e293b);
  margin-top: 4px;
}

.boggle-main {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.boggle-boardWrap {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
}

.boggle-current {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.boggle-current__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--leno-text-muted, #64748b);
}

.boggle-current__word {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(99, 102, 241, 0.10));
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 8px 12px;
  border-radius: 999px;
}

.boggle-board {
  user-select: none;
  -webkit-user-select: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b1220, #0f1a2b);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.boggle-tile {
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  color: white;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, border-color 0.12s ease, background 0.12s ease;
}

.boggle-tile:active {
  transform: scale(0.98);
}

.boggle-tile.is-selected {
  border-color: rgba(34, 211, 238, 0.95);
  background: radial-gradient(circle at 30% 20%, rgba(34,211,238,0.35), rgba(99,102,241,0.18));
  box-shadow: 0 12px 22px rgba(34, 211, 238, 0.18);
}

.boggle-status {
  margin-top: 12px;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--leno-text-muted, #64748b);
}

.boggle-status.is-good {
  color: #059669;
}

.boggle-status.is-bad {
  color: #dc2626;
}

.boggle-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.boggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: white;
  color: #1e293b;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.boggle-btn:hover {
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
}

.boggle-btn:active {
  transform: translateY(1px);
}

.boggle-btn--primary {
  background: var(--leno-gradient-primary, linear-gradient(135deg, #2563eb, #3b82f6, #06b6d4));
  color: white;
  border: none;
}

.boggle-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
}

.boggle-found {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.boggle-found__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.boggle-found__header h3 {
  margin: 0;
  font-size: 16px;
  color: var(--leno-text-primary, #1e293b);
}

.boggle-found__hint {
  font-size: 12px;
  color: var(--leno-text-muted, #64748b);
}

.boggle-found__empty {
  font-size: 13px;
  color: var(--leno-text-secondary, #475569);
  background: rgba(37, 99, 235, 0.06);
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: 14px;
  padding: 14px;
}

.boggle-found__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
}

.boggle-chip {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.22);
}

@media (max-width: 900px) {
  .boggle-main {
    grid-template-columns: 1fr;
  }

  .boggle-stat {
    min-width: 96px;
  }

  .boggle-tile {
    height: 58px;
  }
}


