/* Cut or Explode — board only */

.cx-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cx-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Barlow Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    padding: 0.45rem 1rem;
    background: rgba(111, 214, 196, 0.05);
    border: 1px solid rgba(111, 214, 196, 0.35);
    color: var(--game-muted);
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.cx-tool:hover {
    color: var(--game-accent);
    border-color: rgba(111, 214, 196, 0.6);
}

.cx-tool.active {
    background: rgba(111, 214, 196, 0.16);
    border-color: var(--game-accent);
    color: var(--game-accent);
    box-shadow: 0 0 12px rgba(111, 214, 196, 0.2);
}

.cx-tool[data-tool="cutter"].active {
    background: rgba(255, 90, 90, 0.14);
    border-color: rgba(255, 90, 90, 0.75);
    color: #ff8a8a;
    box-shadow: 0 0 12px rgba(255, 90, 90, 0.18);
}

.cx-tool-key {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.72rem;
    opacity: 0.6;
    border: 1px solid currentColor;
    padding: 0 0.3rem;
    line-height: 1.3;
}

.cx-speed {
    color: var(--game-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

.cx-speed strong {
    color: var(--game-accent);
    font-family: Consolas, "Courier New", monospace;
}

.cx-speed.over strong {
    color: #ff5a5a;
}

.cx-speed small {
    font-size: 0.7rem;
    opacity: 0.65;
}

.cx-wrap {
    position: relative;
    width: 100%;
    max-width: 620px;
}

.cx-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 60 / 44;
    border: 1px solid rgba(111, 214, 196, 0.22);
    background: #040b0b;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.cx-canvas.scanning {
    cursor: crosshair;
}

.cx-canvas.cutting {
    cursor: pointer;
}

@media (max-width: 560px) {
    .cx-tool {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }

    .cx-tool-key {
        display: none;
    }
}
