/* ─── Spelling Bee ────────────────────────────────────────────────────── */

.bee-game {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  width: 100%;
  padding: 8px 12px 16px;
  align-self: stretch;
}

/* Tier ladder + progress pips */
.bee-tier-row {
  display: flex; align-items: center; gap: 10px;
  width: min(94vw, 480px);
}
.bee-tier-label {
  font-weight: 700;
  font-size: 14px;
  min-width: 90px;
}
.bee-tier-bar {
  flex: 1 1 auto;
  display: flex; align-items: center;
  gap: 6px;
}
.bee-tier-pip {
  flex: 1 1 0;
  height: 6px;
  background: rgba(0,0,0,0.10);
  border-radius: 999px;
  transition: background 0.18s;
}
.bee-tier-pip-on {
  background: #f5b800;
}

/* Input bar — what the player has typed so far. */
.bee-input-row {
  width: min(94vw, 380px);
  display: flex; justify-content: center;
}
.bee-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--ink, #111);
}
.bee-input:focus { outline: none; border-color: #f5b800; }
.bee-input.shake { animation: bee-shake 0.45s ease-in-out; }
@keyframes bee-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

.bee-msg {
  width: min(94vw, 380px);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0,0,0,0.05);
}
.bee-msg-err { background: #fef2f2; color: #991b1b; }
.bee-msg-ok  { background: #ecfdf5; color: #065f46; }
.bee-msg-win { background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%); color: #5a3a06; }

/* Honeycomb of seven hex cells: 3 outer, center, 3 outer. We use a
   3-column flex row for the outers and absolute-position the center
   over the middle. Hex shape via clip-path. */
.bee-honeycomb {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 76px);
  gap: 6px 10px;
  margin: 4px 0 4px;
}
@media (max-width: 480px) {
  .bee-honeycomb { grid-template-columns: repeat(3, 62px); gap: 4px 8px; }
}
.bee-cell {
  width: 76px; height: 88px;
  background: #e2e8f0;
  color: var(--ink, #111);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform 0.08s, background 0.12s;
}
.bee-cell:hover { background: #cbd5e1; }
.bee-cell:active, .bee-cell.bee-cell-flash {
  transform: scale(0.92);
  background: #94a3b8;
}
.bee-cell-center {
  background: #f5b800;
  color: #5a3a06;
}
.bee-cell-center:hover { background: #f59e0b; }
.bee-cell-center:active, .bee-cell-center.bee-cell-flash { background: #d97706; }
@media (max-width: 480px) {
  .bee-cell { width: 62px; height: 72px; font-size: 24px; }
}

.bee-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

.bee-found-block {
  width: min(94vw, 540px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.bee-found-head {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}
.bee-found-list {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 14px;
}
.bee-found-list:empty::before {
  content: 'Words you find will show up here.';
  color: var(--muted);
  font-style: italic;
  font-size: 13px;
}
.bee-found-word {
  white-space: nowrap;
}
.bee-found-pangram {
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  color: #5a3a06;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 700;
}
