/* Dead pixel test page. Loaded only on dead-pixel-test.html. */

.dpt-page {
    padding: var(--space-2xl) 0 var(--space-section);
}

.dpt-kicker {
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.dpt-page h1 {
    max-width: 18ch;
    margin-bottom: var(--space-lg);
}

.dpt-answer {
    max-width: 42rem;
    margin-bottom: var(--space-lg);
    padding: 0.9rem 1rem;
    font-size: var(--font-size-lg);
    background: var(--color-white);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-sm);
}

.dpt-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: var(--space-lg) 0 var(--space-md);
}

.dpt-adfree {
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.dpt-cycle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.dpt-cycle-label {
    font-weight: 600;
    margin-right: var(--space-xs);
}

.dpt-seg,
.dpt-hud button {
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-charcoal);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.dpt-seg[aria-pressed="true"] {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.dpt-section {
    margin-top: var(--space-3xl);
}

.dpt-section h2 {
    margin-bottom: var(--space-md);
}

.dpt-page ol,
.dpt-page ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-bottom: var(--space-md);
}

.dpt-page ol {
    list-style: decimal;
}

.dpt-page li {
    margin: 0.45rem 0;
}

.dpt-page li::marker {
    color: var(--color-accent);
}

.dpt-warning-banner {
    max-width: 42rem;
    margin: var(--space-lg) 0;
    padding: 0.9rem 1rem;
    background: #fff7ed;
    border: 2px solid #b45309;
    border-radius: var(--radius-lg);
}

.dpt-warning-banner strong {
    color: #9a3412;
}

.dpt-table-wrap {
    overflow-x: auto;
    margin-top: var(--space-md);
}

.dpt-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.dpt-table th,
.dpt-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--color-gray-medium);
}

.dpt-table th {
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
}

.dpt-swatch {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    margin-right: 0.4rem;
    border: 1px solid rgba(43, 45, 66, 0.35);
    border-radius: 2px;
    vertical-align: -1px;
}

.dpt-source {
    margin: 0 0 var(--space-lg);
    max-width: 46rem;
}

.dpt-source h3 {
    margin-bottom: 0.25rem;
}

.dpt-faq .faq-list {
    max-width: 46rem;
    margin: 0;
}

.dpt-care {
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    border: 1px dashed #c8c2d6;
    border-radius: var(--radius-lg);
    background: #faf9fb;
}

.dpt-care h2 {
    margin-bottom: var(--space-sm);
}

#dpt-stage[hidden],
#dpt-warn[hidden],
#dpt-fixer[hidden] {
    display: none !important;
}

#dpt-stage {
    position: fixed;
    inset: 0;
    z-index: 2000;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

#dpt-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    touch-action: manipulation;
    cursor: pointer;
}

#dpt-fixer {
    position: absolute;
    z-index: 2;
    width: 100px;
    height: 100px;
    touch-action: none;
    cursor: grab;
    box-shadow: 0 0 0 1px #ffffff, 0 0 0 3px #000000;
}

#dpt-fixer.is-dragging {
    cursor: grabbing;
}

.dpt-fixer-flash {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dpt-fixer-chrome {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding: 2px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

#dpt-fixer-stop {
    min-height: 28px;
    padding: 2px 6px;
    background: #ffffff;
    color: #111111;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.dpt-resize {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    border: 0;
    cursor: nwse-resize;
    background:
        linear-gradient(135deg, transparent 0 46%, #ffffff 46% 58%, #000000 58% 70%, #ffffff 70% 100%);
}

.dpt-hud {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 20px));
    max-height: 42vh;
    overflow: auto;
    padding: 10px 12px;
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.68);
    color: #ffffff;
    transition: opacity 180ms ease;
}

.dpt-hud.is-idle {
    opacity: 0;
    pointer-events: none;
}

#dpt-stage.is-light-bg .dpt-hud {
    background: rgba(255, 255, 255, 0.82);
    color: #1c1c1c;
}

.dpt-hud p {
    margin: 0 0 6px;
    font-size: var(--font-size-sm);
}

.dpt-hud-name {
    font-weight: 700;
    font-size: 1rem;
}

.dpt-hud-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

#dpt-stage.is-light-bg .dpt-hud button {
    background: #ffffff;
    color: #1c1c1c;
}

.dpt-hud button[aria-pressed="true"] {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #ffffff;
}

.dpt-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dpt-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 16, 40, 0.72);
}

.dpt-modal-card {
    width: min(36rem, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: var(--space-xl);
    background: #ffffff;
    color: var(--color-charcoal);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.dpt-modal-flag {
    display: inline-block;
    margin-bottom: var(--space-sm);
    padding: 0.2rem 0.55rem;
    background: #ffedd5;
    color: #9a3412;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.dpt-modal-card h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

.dpt-modal fieldset {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    border: 1px solid var(--color-gray-medium);
    border-radius: var(--radius-md);
}

.dpt-modal label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.4rem 0;
}

.dpt-modal .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .dpt-page h1 {
        max-width: none;
    }

    .dpt-hud-help {
        display: none;
    }
}
