/* FoxLand Stage4 5.3: search controls for the punishment board. */
#fox-punishment-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: stretch;
    box-sizing: border-box;
    flex: 0 1 360px;
    width: min(100%, 360px);
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    gap: 8px;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

#fox-punishment-query {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(var(--fox-rgb-as4l14, 184, 115, 246), .48);
    border-radius: 10px;
    outline: 0;
    color: var(--fox-tone-as4l19, #f0e4ff);
    background: var(--fox-tone-as1l2, #191222);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 0 10px rgba(var(--fox-rgb-gs3l11, 137, 63, 218), clamp(0, calc(.08 * var(--fox-glow-strength, 1)), 1));
    font: inherit;
    font-size: 13px;
    line-height: 20px;
    text-align: left;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#fox-punishment-query::placeholder {
    color: var(--fox-tone-as1l15, #bca4d2);
    opacity: 1;
}

#fox-punishment-query:hover {
    border-color: rgba(var(--fox-rgb-as4l15, 197, 131, 255), .75);
    background: var(--fox-tone-as1l2, #1e152a);
    box-shadow: 0 0 12px rgba(var(--fox-rgb-gs3l12, 150, 70, 232), clamp(0, calc(.15 * var(--fox-glow-strength, 1)), 1));
}

#fox-punishment-query:focus {
    border-color: var(--fox-tone-as4l15, #c28bff);
    background: var(--fox-tone-as1l3, #20162d);
    box-shadow: 0 0 0 2px rgba(var(--fox-rgb-gs4l14, 181, 104, 248), clamp(0, calc(.13 * var(--fox-glow-strength, 1)), 1)), 0 0 16px rgba(var(--fox-rgb-gs3l12, 150, 70, 232), clamp(0, calc(.22 * var(--fox-glow-strength, 1)), 1));
}

#fox-punishment-search > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(var(--fox-rgb-as4l14, 184, 115, 246), .58);
    border-radius: 10px;
    color: var(--fox-tone-as4l17, #dbb6ff);
    background: linear-gradient(145deg, var(--fox-tone-ts2l3, #2b193e), var(--fox-tone-ts2l2, #1b1228));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 12px rgba(var(--fox-rgb-gs3l11, 139, 61, 223), clamp(0, calc(.12 * var(--fox-glow-strength, 1)), 1));
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#fox-punishment-search > button:hover {
    transform: translateY(-1px);
    border-color: var(--fox-tone-as4l16, #c58fff);
    color: var(--fox-tone-as4l19, #f3e5ff);
    box-shadow: 0 0 15px rgba(var(--fox-rgb-gs4l13, 171, 87, 244), clamp(0, calc(.3 * var(--fox-glow-strength, 1)), 1)), inset 0 1px 0 rgba(255, 255, 255, .08);
}

#fox-punishment-search > button:focus-visible {
    outline: 2px solid var(--fox-tone-as4l17, #d8adff);
    outline-offset: 3px;
    border-color: var(--fox-tone-as4l16, #c58fff);
    box-shadow: 0 0 16px rgba(var(--fox-rgb-gs4l13, 171, 87, 244), clamp(0, calc(.3 * var(--fox-glow-strength, 1)), 1));
}

#fox-punishment-search > button:active { transform: translateY(0); }

@media (max-width: 600px) {
    #fox-punishment-search {
        flex-basis: 100%;
        width: 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #fox-punishment-query,
    #fox-punishment-search > button { transition: none; }
    #fox-punishment-search > button:hover { transform: none; }
}
