.pr-wrapper {
    max-width: 820px;
    margin: 20px auto;
    padding: 24px;
    background: #111827;
    border-radius: 16px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    user-select: none;
    -webkit-user-select: none;
}

.pr-main-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.pr-board-section {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
}

.pr-header-title h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.pr-header-title p {
    margin: 4px 0 16px 0;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1.5px;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(10, 1fr);
    gap: 4px;
    background: #1f2937;
    padding: 8px;
    border-radius: 12px;
    touch-action: none;
    aspect-ratio: 1;
}

.pr-cell {
    background: #111827;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #e5e7eb;
    cursor: pointer;
    transition: all 0.1s ease;
}

.pr-cell:hover {
    background: #374151;
}

.pr-cell.selecting {
    background: #3b82f6 !important;
    color: #ffffff !important;
}

.pr-cell.found {
    background: #10b981 !important;
    color: #ffffff !important;
}

.pr-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
}

.pr-stats-bar {
    display: flex;
    justify-content: space-between;
    background: #1f2937;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pr-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pr-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    font-family: monospace;
}

.pr-stat-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.pr-words-header {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-align: center;
}

.pr-words-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pr-word-item {
    background: #1f2937;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #d1d5db;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.pr-word-item.found {
    background: #064e3b;
    color: #34d399;
    text-decoration: line-through;
    opacity: 0.7;
}

.pr-btn-new {
    width: 100%;
    padding: 14px;
    background: #ccff00;
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.pr-btn-new:hover {
    background: #b8e600;
    transform: translateY(-1px);
}

.pr-message {
    margin-top: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #34d399;
    min-height: 26px;
}

@media (max-width: 640px) {
    .pr-main-container {
        flex-direction: column;
    }
    .pr-sidebar {
        flex: 1 1 100%;
    }
}
