.tabo-mg-wrap {
    color: #eee;
    font-family: 'Courier New', monospace;
    max-width: 560px;
    margin: 0 auto;
}

.tabo-mg-admin-note {
    font-size: 12px;
    color: #888;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* ============================================================
   PANEL PSOT (widz, nie-admin)
   ============================================================ */

.tabo-mg-wrap--sabotage {
    max-width: 420px;
}

.tabo-mg-sabotage-panel {
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 18px 20px;
    text-align: center;
}

.tabo-mg-sabotage-panel h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 18px;
}

.tabo-mg-sabotage-panel p {
    color: #aaa;
    font-size: 13px;
    margin: 0 0 14px 0;
}

.tabo-mg-sabotage-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tabo-mg-sabotage-btn {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #eee;
    font-family: inherit;
    font-size: 13px;
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.tabo-mg-sabotage-btn:hover:not(:disabled) {
    border-color: #9147ff;
    background: rgba(145, 71, 255, 0.15);
}

.tabo-mg-sabotage-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tabo-mg-sabotage-status {
    margin-top: 12px;
    font-size: 12px;
    color: #999;
    min-height: 16px;
}

/* Log psot widoczny tylko u admina (przy graniu) */
.tabo-mg-sabotage-log {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tabo-mg-sabotage-log-item {
    font-size: 12px;
    color: #ffb3ff;
    background: rgba(145, 71, 255, 0.1);
    border: 1px solid rgba(145, 71, 255, 0.3);
    border-radius: 6px;
    padding: 4px 10px;
}

/* Efekty wizualne psot - podpięte do dowolnego <canvas> gry */
@keyframes tabo-mg-shake-kf {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-4px, 3px); }
    40%  { transform: translate(4px, -3px); }
    60%  { transform: translate(-3px, -4px); }
    80%  { transform: translate(3px, 4px); }
    100% { transform: translate(0, 0); }
}

canvas.tabo-mg-shake {
    animation: tabo-mg-shake-kf 0.15s infinite;
}

@keyframes tabo-mg-flash-kf {
    0%, 100% { filter: none; }
    50%      { filter: invert(1) brightness(2); }
}

canvas.tabo-mg-flash {
    animation: tabo-mg-flash-kf 0.4s infinite;
}

.tabo-mg-game-block {
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.tabo-mg-game-block summary {
    cursor: pointer;
    padding: 14px 16px;
    font-weight: bold;
    font-size: 16px;
    color: #fff;
    background: #171717;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    list-style: none;
}

.tabo-mg-game-block summary::-webkit-details-marker {
    display: none;
}

.tabo-mg-game-block summary::before {
    content: "▶ ";
    color: #9147ff;
}

.tabo-mg-game-block[open] summary::before {
    content: "▼ ";
}

.tabo-mg-hint {
    font-size: 11px;
    font-weight: normal;
    color: #777;
}

.tabo-mg-game-inner {
    padding: 16px;
}

.tabo-mg-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #ccc;
    margin-bottom: 10px;
}

.tabo-mg-stats b {
    color: #0f0;
}

.tabo-mg-state {
    margin-left: auto;
    color: #9147ff;
    font-weight: bold;
    letter-spacing: 1px;
}

.tabo-mg-reset-btn {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #ccc;
    font-family: inherit;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.tabo-mg-reset-btn:hover {
    border-color: #9147ff;
    color: #fff;
}

.tabo-mg-reset-deaths-btn {
    background: transparent;
    border: 1px solid #444;
    color: #999;
    font-size: 10px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 2px;
}

.tabo-mg-reset-deaths-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

canvas {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    background: #000;
    border: 2px solid #333;
    border-radius: 4px;
    margin: 0 auto 10px auto;
    touch-action: none;
    image-rendering: pixelated;
}

.tabo-mg-controls-note {
    font-size: 12px;
    color: #888;
    margin: 6px 0;
}

.tabo-mg-rules {
    font-size: 13px;
    color: #aaa;
    background: #151515;
    border-radius: 6px;
    padding: 8px 12px;
    margin: 10px 0;
}

.tabo-mg-ai-select {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 8px;
}

.tabo-mg-ai-select select {
    background: #000;
    color: #eee;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: inherit;
}

