/* Playtest Review Annotations — overlay, HUD, markers */

#ac-pt-layer {
    position: fixed;
    inset: 0;
    z-index: 70;
    pointer-events: none;
    overflow: hidden;
}

#ac-pt-layer.interactive {
    pointer-events: auto;
}

#ac-pt-layer.crosshair {
    cursor: crosshair;
}

.ac-pt-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---- pin marker ---- */
.ac-pt-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #ff5a4a;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 14px/1 "Jost", system-ui, sans-serif;
}

.ac-pt-pin-num {
    pointer-events: none;
}

/* ---- text note ---- */
.ac-pt-note {
    position: absolute;
    transform: translate(-8px, -8px);
    min-width: 270px;
    max-width: min(540px, 85vw);
    pointer-events: auto;
}

.ac-pt-text-input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 2px solid #d2ad50;
    border-radius: 6px;
    background: rgba(18, 15, 11, 0.96);
    color: #f0e3c8;
    font: 600 14px/1.35 "Jost", system-ui, sans-serif;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    resize: vertical;
    outline: none;
    box-sizing: border-box;
}

.ac-pt-text-input::placeholder {
    color: rgba(240, 227, 200, 0.5);
}

/* ---- delete chip (shared by pin + note) ---- */
.ac-pt-del {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid rgba(210, 173, 80, 0.7);
    border-radius: 999px;
    background: rgba(18, 15, 11, 0.96);
    color: #f0e3c8;
    font: 700 13px/1 "Jost", system-ui, sans-serif;
    cursor: pointer;
    z-index: 2;
}

.ac-pt-del:hover {
    border-color: #ff5a4a;
    color: #ff5a4a;
}

/* ---- HUD toolbar ---- */
#ac-pt-hud {
    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 82;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 7px 9px;
    border: 1px solid rgba(210, 173, 80, 0.45);
    border-radius: 10px;
    background: rgba(14, 11, 8, 0.82);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    font-family: "Jost", system-ui, sans-serif;
}

#ac-pt-hud.capturing {
    opacity: 0;
    pointer-events: none;
}

/* Collapse handle — keeps the dev capture toolbar out of the way of live game buttons. */
.ac-pt-hud-handle {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid rgba(210, 173, 80, 0.5);
    border-radius: 50%;
    background: rgba(26, 22, 16, 0.92);
    color: #d2ad50;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}
.ac-pt-hud-handle:hover { border-color: rgba(210, 173, 80, 0.95); }

/* Collapsed: shrink to just the handle so the toolbar never blocks game UI. */
#ac-pt-hud.collapsed {
    padding: 5px;
    gap: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
#ac-pt-hud.collapsed .ac-pt-hud-tools,
#ac-pt-hud.collapsed .ac-pt-hud-actions {
    display: none;
}

.ac-pt-hud-tools,
.ac-pt-hud-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ac-pt-hud-actions {
    border-left: 1px solid rgba(210, 173, 80, 0.25);
    padding-left: 8px;
    flex-wrap: wrap;
}

.ac-pt-hud-btn {
    position: relative;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(210, 173, 80, 0.4);
    border-radius: 8px;
    background: rgba(26, 22, 16, 0.9);
    color: #f0e3c8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-pt-hud-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ac-pt-hud-btn:hover {
    border-color: rgba(210, 173, 80, 0.95);
}

.ac-pt-hud-btn.active {
    border-color: #ff5a4a;
    color: #ff5a4a;
    background: rgba(58, 26, 22, 0.9);
}

.ac-pt-hud-key {
    position: absolute;
    bottom: 1px;
    right: 3px;
    font: 700 9px/1 ui-monospace, monospace;
    opacity: 0.6;
}

.ac-pt-hud-count {
    color: rgba(240, 227, 200, 0.7);
    font-size: 12px;
    min-width: 52px;
    text-align: center;
}

.ac-pt-hud-action {
    border: 1px solid rgba(210, 173, 80, 0.4);
    border-radius: 7px;
    background: rgba(26, 22, 16, 0.9);
    color: #f0e3c8;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
}

.ac-pt-hud-action:hover {
    border-color: rgba(210, 173, 80, 0.95);
}

.ac-pt-hud-action.primary {
    background: #d2ad50;
    border-color: #d2ad50;
    color: #17120c;
    font-weight: 700;
}

.ac-pt-hud-action.hq.on {
    border-color: #86a9cb;
    color: #86a9cb;
}

/* ---- toast + flash ---- */
.ac-pt-toast {
    position: fixed;
    left: 50%;
    bottom: 64px;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(210, 173, 80, 0.55);
    background: rgba(18, 15, 11, 0.94);
    color: #f0e3c8;
    font: 500 13px/1.3 "Jost", system-ui, sans-serif;
    z-index: 83;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ac-pt-toast.visible {
    opacity: 1;
}

.ac-pt-flash {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    pointer-events: none;
    z-index: 9999;
    transition: background 0.08s ease-out;
}

.ac-pt-flash.on {
    background: rgba(255, 255, 255, 0.3);
}
