/* Spelling Bee — NYT honeycomb on the shared arcade theme */

.bee-wrap {
  flex: 1;
  display: flex;
  gap: 30px;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  padding-top: 6px;
}

.bee-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 0 1 560px;
}

/* ---------- Rank bar ---------- */
.rank-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
}

.rank-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 110px;
}

.rank-track {
  position: relative;
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}

.rank-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: #f7da21;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.rank-dots {
  position: absolute;
  inset: -3px 0;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.rank-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}

.rank-dots span.lit {
  background: #f7da21;
}

.rank-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  min-width: 40px;
  text-align: right;
}

/* ---------- Entry ---------- */
.entry-line {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.entry-line .center-letter {
  color: #e6bf00;
}

.caret {
  width: 2px;
  height: 1.6rem;
  background: #f7da21;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ---------- Hive ---------- */
.hive {
  position: relative;
  width: 260px;
  height: 240px;
}

.hex {
  position: absolute;
  width: 84px;
  height: 74px;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: #e6e6e4;
  border: none;
  font: inherit;
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.07s ease;
}

.hex:active {
  transform: scale(0.92);
}

.hex.center {
  background: #f7da21;
}

/* ---------- Actions ---------- */
.bee-actions {
  display: flex;
  gap: 12px;
}

.daily-label {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- Found words ---------- */
.found-panel {
  flex: 0 1 320px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.found-panel h2 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.found-total {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.found-list {
  list-style: none;
  overflow-y: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  align-content: start;
}

.found-list li {
  border-bottom: 1px solid var(--line);
  padding: 5px 2px;
  font-weight: 600;
  text-transform: capitalize;
}

.found-list li.pangram {
  color: #b58900;
  font-weight: 800;
}

@media (max-width: 900px) {
  .bee-wrap {
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
  }

  .found-panel {
    width: 100%;
    max-height: 300px;
  }
}
