.wd-area {
  max-width: 480px;
}

.wd-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px auto 8px;
  max-width: 360px;
  width: 100%;
  aspect-ratio: 5 / 6;
}

.wd-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel2);
  border: 2px solid var(--line);
  border-radius: 6px;
  font-size: clamp(18px, 6vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  user-select: none;
  transition: transform 90ms, background 120ms, border-color 120ms;
}

.wd-cell.wd-current {
  border-color: var(--muted);
}
.wd-cell.wd-filled {
  border-color: var(--accent);
  transform: scale(1.02);
}

.wd-cell.wd-green {
  background: #2f7a3d;
  border-color: #2f7a3d;
  color: #fff;
}
.wd-cell.wd-yellow {
  background: #b58a23;
  border-color: #b58a23;
  color: #fff;
}
.wd-cell.wd-gray {
  background: #3a4252;
  border-color: #3a4252;
  color: #cfd3da;
}

.wd-opp {
  margin: 14px auto 8px;
  padding: 10px 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 360px;
  text-align: center;
}
.wd-opp-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.wd-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.wd-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--line);
}
.wd-dot.used {
  background: var(--muted);
  border-color: var(--muted);
}
.wd-dot.solved {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.wd-kb {
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 460px;
}
.wd-kb-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.wd-key {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 0;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 100ms, transform 60ms;
}
.wd-key:hover { background: #283040; }
.wd-key:active { transform: translateY(1px); }
.wd-key-wide {
  flex: 1.6 1 0;
  font-size: 13px;
}

.wd-key.wd-green  { background: #2f7a3d; border-color: #2f7a3d; color: #fff; }
.wd-key.wd-yellow { background: #b58a23; border-color: #b58a23; color: #fff; }
.wd-key.wd-gray   { background: #232833; border-color: #232833; color: #6a6f7a; }

.wd-actions {
  margin-top: 14px;
  text-align: center;
}

.wd-wait {
  margin: 14px auto 0;
  padding: 12px;
  background: var(--panel2);
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  max-width: 360px;
}
