.wpdx-wrap { border: 1px solid #e5e7eb; padding: 16px; border-radius: 12px; }
.wpdx-header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.wpdx-title h3 { margin: 0; }
.wpdx-sub { font-size: 12px; opacity: 0.75; }
.wpdx-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.wpdx-btn { border: 1px solid #cbd5e1; background: #fff; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.wpdx-btn--active { border-color: #111827; }
.wpdx-body { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
@media (min-width: 900px) { .wpdx-body { grid-template-columns: 420px 1fr; } }

.wpdx-grid { display: grid; gap: 4px; max-width: 520px; }
.wpdx-cell { aspect-ratio: 1 / 1; border: 1px solid #e5e7eb; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; position: relative; }
.wpdx-cell--block { background: #111827; border-color: #111827; }
.wpdx-cell--active { outline: 2px solid #111827; outline-offset: 2px; }
.wpdx-input { width: 100%; height: 100%; border: none; outline: none; text-align: center; font-size: 18px; font-weight: 600; border-radius: 8px; background: transparent; }
.wpdx-input--error { background: rgba(239, 68, 68, 0.18); }

.wpdx-clues { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .wpdx-clues { grid-template-columns: 1fr 1fr; } }
.wpdx-clue-col h4 { margin: 0 0 8px 0; }
.wpdx-clue-list { margin: 0; padding-left: 18px; }
.wpdx-clue-list li { margin-bottom: 6px; line-height: 1.3; }

.wpdx-solution { margin-top: 16px; border-top: 1px solid #e5e7eb; padding-top: 12px; display: grid; gap: 8px; }
.wpdx-solution-cells { display: flex; gap: 6px; flex-wrap: wrap; }
.wpdx-solcell { width: 34px; height: 34px; border: 1px solid #e5e7eb; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.wpdx-status--ok { font-weight: 600; }
