/* ── Runner game overlay ────────────────────────────────────────────────── */

.runner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.runner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 820px;
    padding: 16px;
}

.runner-label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e0d0ff;
    letter-spacing: .05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fishing-streak-badge {
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff8e0;
    background: linear-gradient(135deg, #c05000, #e07800);
    border-radius: 12px;
    padding: 2px 10px;
    letter-spacing: .04em;
    text-transform: none;
    white-space: nowrap;
}

.fishing-lure-badge {
    font-size: 0.75rem;
    font-weight: bold;
    color: #d0f0e8;
    background: rgba(30,100,80,.55);
    border: 1px solid rgba(60,180,140,.4);
    border-radius: 12px;
    padding: 2px 10px;
    letter-spacing: .04em;
    text-transform: none;
    white-space: nowrap;
}

.runner-canvas {
    width: 100%;
    max-width: 800px;
    height: auto;
    border: 2px solid #444;
    border-radius: 6px;
    image-rendering: pixelated;
    display: block;
    touch-action: manipulation;
    cursor: pointer;
}

.runner-controls {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 800px;
}

.runner-btn {
    flex: 1;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: opacity .1s;
}

.runner-btn:active { opacity: 0.75; }
.runner-btn[disabled] { opacity: 0.4; cursor: default; }

.runner-btn-jump {
    background: #2255aa;
    border-color: #4488ee;
    color: #cce4ff;
}

.runner-btn-attack {
    background: #882222;
    border-color: #cc4444;
    color: #ffcccc;
}

.runner-hint {
    font-size: .75rem;
    color: #666;
    margin: 0;
}

/* Result screens */
.runner-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 40px;
    border-radius: 12px;
    border: 2px solid #444;
    min-width: 280px;
    text-align: center;
}

.runner-result-win  { background: #0e1e0e; border-color: #44aa44; }
.runner-result-fail { background: #1e0e0e; border-color: #aa4444; }

.runner-result-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e8e8e8;
}

.runner-result-sub {
    font-size: .9rem;
    color: #aaa;
    margin: 0;
}

.runner-reward-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.runner-reward-list li {
    font-size: .95rem;
    color: #ffd060;
    background: rgba(255, 200, 0, .08);
    padding: 4px 16px;
    border-radius: 4px;
}

.runner-result-actions {
    display: flex;
    gap: 10px;
}

.runner-done-btn {
    padding: 10px 28px;
    font-size: .95rem;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid #555;
    background: #2a2a3a;
    color: #e0e0e0;
    cursor: pointer;
    transition: background .15s;
}

.runner-done-btn:hover { background: #3a3a4a; }

.runner-done-btn-secondary {
    background: transparent;
    color: #888;
    border-color: #444;
}

.runner-done-btn-secondary:hover { background: #1a1a1a; }

/* Close button in overlay header */
.runner-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 820px;
    padding: 0 4px 4px;
}

.runner-overlay-title {
    font-size: .85rem;
    color: #888;
}

.runner-overlay-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.runner-overlay-close:hover { color: #ccc; }
