/*
 * ACHIEVO Reborn — PvP Test Harness (dev UI)
 * Плавающая кнопка-лаунчер и панель для проверки PvP с обеих сторон.
 */

.pvptest-launch-btn {
    --pvp-test-cyan: #4ee6ff;
    --pvp-test-cyan-rgb: 78, 230, 255;
    --pvp-test-pink: #ff4e91;
    --pvp-test-pink-rgb: 255, 78, 145;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 200005;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(var(--pvp-test-pink-rgb), .45);
    background: rgba(7, 9, 13, .92);
    color: var(--pvp-test-pink);
    font: 700 10px/1 'Orbitron', sans-serif;
    letter-spacing: .8px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(var(--pvp-test-pink-rgb), .12);
    transition: .22s;
}

.pvptest-launch-btn:hover {
    color: #fff;
    border-color: var(--pvp-test-cyan);
    background: rgba(var(--pvp-test-cyan-rgb), .08);
    box-shadow: 0 0 24px rgba(var(--pvp-test-cyan-rgb), .2);
}

.pvptest-launch-btn__icon {
    font-size: 14px;
    text-shadow: 0 0 10px rgba(var(--pvp-test-pink-rgb), .45);
}

.pvptest-window {
    --pvp-test-cyan: #4ee6ff;
    --pvp-test-cyan-rgb: 78, 230, 255;
    --pvp-test-pink: #ff4e91;
    --pvp-test-pink-rgb: 255, 78, 145;
    position: fixed;
    top: 70px;
    right: 24px;
    z-index: 200006;
    width: 340px;
    max-width: calc(100vw - 32px);
    display: none;
    flex-direction: column;
    border: 1px solid rgba(var(--pvp-test-cyan-rgb), .35);
    background: rgba(5, 7, 11, .97);
    box-shadow: 0 0 30px rgba(0, 0, 0, .65), 0 0 18px rgba(var(--pvp-test-cyan-rgb), .08);
    font-family: 'JetBrains Mono', 'Ubuntu Mono', monospace;
    color: #e8eef5;
}

.pvptest-window__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(var(--pvp-test-cyan-rgb), .25);
    background: linear-gradient(90deg, rgba(var(--pvp-test-pink-rgb), .12), rgba(5, 7, 11, .9));
}

.pvptest-window__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 700 11px/1 'Orbitron', sans-serif;
    letter-spacing: 1px;
    color: var(--pvp-test-pink);
    text-transform: uppercase;
}

.pvptest-window__sub {
    font-size: 9px;
    opacity: .6;
    color: #9fb4c4;
}

.pvptest-window__close {
    border: none;
    background: transparent;
    color: #9fb4c4;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    transition: .2s;
}

.pvptest-window__close:hover {
    color: var(--pvp-test-pink);
}

.pvptest-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.pvptest-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pvptest-row label {
    font-size: 9px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #7f93a3;
}

.pvptest-row input,
.pvptest-row select {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid rgba(var(--pvp-test-cyan-rgb), .25);
    background: #02040a;
    color: #e8eef5;
    font: 400 11px/1.2 'JetBrains Mono', monospace;
    outline: none;
}

.pvptest-row input:focus,
.pvptest-row select:focus {
    border-color: var(--pvp-test-cyan);
    box-shadow: 0 0 8px rgba(var(--pvp-test-cyan-rgb), .25);
}

.pvptest-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}

.pvptest-btn {
    padding: 9px 8px;
    font: 700 10px/1 'Orbitron', sans-serif;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid #555;
    background: rgba(255, 255, 255, .03);
    color: #cfd8e0;
    transition: .18s;
}

.pvptest-btn--attack {
    grid-column: 1 / -1;
    border-color: rgba(var(--pvp-test-pink-rgb), .6);
    color: var(--pvp-test-pink);
    background: rgba(var(--pvp-test-pink-rgb), .06);
}

.pvptest-btn--attack:hover {
    background: rgba(var(--pvp-test-pink-rgb), .16);
    color: #fff;
    box-shadow: 0 0 14px rgba(var(--pvp-test-pink-rgb), .3);
}

.pvptest-btn--defense {
    border-color: rgba(var(--pvp-test-cyan-rgb), .6);
    color: var(--pvp-test-cyan);
    background: rgba(var(--pvp-test-cyan-rgb), .06);
}

.pvptest-btn--defense:hover {
    background: rgba(var(--pvp-test-cyan-rgb), .16);
    color: #fff;
    box-shadow: 0 0 14px rgba(var(--pvp-test-cyan-rgb), .3);
}

.pvptest-btn--duel {
    grid-column: 1 / -1;
    border-color: #ffc857;
    color: #ffc857;
    background: rgba(255, 200, 87, .06);
}

.pvptest-btn--duel:hover {
    background: rgba(255, 200, 87, .16);
    color: #fff;
    box-shadow: 0 0 14px rgba(255, 200, 87, .3);
}

.pvptest-btn--stop {
    grid-column: 1 / -1;
    border-color: #555;
}

.pvptest-btn--stop:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.pvptest-status {
    margin-top: 2px;
    padding: 8px 10px;
    border: 1px dashed rgba(var(--pvp-test-cyan-rgb), .25);
    background: rgba(var(--pvp-test-cyan-rgb), .04);
    font-size: 10px;
    line-height: 1.5;
    color: #cfe6f2;
    min-height: 32px;
}

.pvptest-hint {
    margin: 0;
    font-size: 9px;
    line-height: 1.55;
    color: #6f8291;
}
