.contact-page .contact-puzzle {
    width: min(470px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    max-height: calc(100dvh - 28px);
    margin: auto;
    padding: clamp(16px, 4vw, 25px);
    overflow: auto;
    border: 1px solid #d9e4da;
    background: #fff;
    color: var(--contact-ink);
    box-shadow: 0 18px 54px #13392635;
}

.contact-puzzle::backdrop { background: #10271dd1; }

.contact-puzzle-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-page .contact-puzzle-header .contact-eyebrow { margin-bottom: 4px; }
.contact-page .contact-puzzle-header h2 { margin: 0; font-size: clamp(23px, 5vw, 30px); }

.contact-puzzle-close {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d9e4da;
    background: #fff;
    color: var(--contact-green);
    font: 24px/1 Arial, sans-serif;
    cursor: pointer;
}

.contact-page .contact-puzzle #contact-puzzle-help {
    color: var(--contact-muted);
    font-size: 13px;
    line-height: 1.55;
}

.contact-puzzle-board {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 360 / 198;
    background: #edf4ed;
    user-select: none;
}

.contact-puzzle-board > img:first-child { display: block; width: 100%; height: 100%; }

.contact-puzzle-piece {
    position: absolute;
    display: block;
    height: auto;
    filter: drop-shadow(0 2px 3px #000a);
    cursor: grab;
    touch-action: none;
}

.contact-puzzle-piece:active { cursor: grabbing; }

#contact-puzzle-controls { margin-top: 12px; }
#contact-puzzle-controls label { margin-bottom: 3px; }

.contact-page .contact-puzzle input[type="range"] {
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    accent-color: var(--contact-green);
    cursor: ew-resize;
}

.contact-page .contact-puzzle input[type="range"]:focus-visible {
    outline: 2px solid var(--contact-green);
    outline-offset: 3px;
    box-shadow: none;
}

.contact-page .contact-puzzle-status { min-height: 19px; margin: 8px 0 0; font-size: 12px; color: #556d5d; }

.contact-puzzle-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.contact-page .contact-puzzle-actions .contact-button { min-height: 40px; padding: 8px 14px; }
.contact-page .contact-puzzle-alternative { margin: 13px 0 0; font-size: 11px; color: var(--contact-muted); }
.contact-puzzle [hidden] { display: none; }
