.jigsaw-page .jigsaw-hero {
    margin-bottom: 1.25rem;
}

.jigsaw-board-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: #1a1a2e;
    min-height: 320px;
}

#jigsaw-canvas {
    min-height: 300px;
}

.jigsaw-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.jigsaw-timer {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.jigsaw-timer.is-warning {
    color: #dc2626;
}

.jigsaw-meta {
    color: var(--muted, #64748b);
    font-size: 0.95rem;
}

.jigsaw-status {
    margin-top: 0.75rem;
    min-height: 1.5rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.jigsaw-status.is-success {
    color: #16a34a;
    font-weight: 600;
}

.jigsaw-status.is-error {
    color: #dc2626;
    font-weight: 600;
}

.jigsaw-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.jigsaw-filter {
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border, #e2e8f0);
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}

.jigsaw-filter.is-active {
    background: var(--accent, #2563eb);
    border-color: var(--accent, #2563eb);
    color: #fff;
}

.jigsaw-filter-count {
    opacity: 0.8;
    margin-left: 0.25rem;
}

.jigsaw-tier {
    margin-bottom: 2rem;
}

.jigsaw-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #111;
}

.jigsaw-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jigsaw-dropzone {
    border: 2px dashed var(--border, #cbd5e1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: border-color 0.15s, background 0.15s;
}

.jigsaw-dropzone.is-dragover {
    border-color: var(--accent, #2563eb);
    background: rgba(37, 99, 235, 0.05);
}

.jigsaw-dropzone-text {
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.jigsaw-admin-preview.hidden {
    display: none;
}

.jigsaw-admin-preview img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.jigsaw-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.jigsaw-tier-hint {
    font-size: 0.9rem;
    color: var(--muted, #64748b);
}
