#pm-game-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    background: #000;
    overflow: hidden;
}

#pm-game-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#pm-game-container canvas {
    display: block;
}

#pm-game-ui {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.pm-hud {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #e2e8f0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    pointer-events: auto;
}

.pm-hud-item strong {
    color: #67e8f9;
    margin-left: 4px;
}

.pm-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.82);
    z-index: 2147483646;
    padding: 20px;
    text-align: center;
}

.pm-overlay-show {
    display: flex;
}

.pm-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 420px);
    padding: 28px 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    color: #e2e8f0;
    font-family: Arial, sans-serif;
}

.pm-card h3 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #f8fafc;
}

.pm-card p {
    margin: 0 0 18px;
    color: #94a3b8;
    font-size: 16px;
}

.pm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.pm-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #334155;
    color: #f8fafc;
}

.pm-btn-primary {
    background: linear-gradient(180deg, #22d3ee, #0891b2);
    color: #042f2e;
}

.pm-btn:hover {
    filter: brightness(1.08);
}
