/* Shooter Game — HotelsCasa v2 */

.lc-shooter-wrap {
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #fff;
}

/* ── Реклама ── */
.lc-shooter-ad { margin: 8px 0; border-radius: 12px; overflow: hidden; }
.lc-shooter-ad--top    { margin-bottom: 10px; }
.lc-shooter-ad--bottom { margin-top: 10px; }

/* ── Шапка ── */
.lc-shooter-header {
    background: #0f172a;
    border-radius: 12px 12px 0 0;
    padding: 10px 14px 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #1e3a5f;
}
.lc-shooter-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #60a5fa;
    flex: 1 1 auto;
}
.lc-shooter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}
.lc-shooter-meta span {
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    padding: 3px 9px;
}

/* ── Канвас ── */
/* OJO: nada de line-height:0 aquí — se heredaba al texto de los overlays
   (panel de inicio) y los renglones se solapaban. El canvas es display:block. */
.lc-shooter-canvas-wrap {
    position: relative;
    background: #0a0f1e;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
#shooter-canvas {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    image-rendering: pixelated;
    cursor: crosshair;
}

/* ── Оверлеи ── */
.lc-shooter-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5,10,25,.88);
    backdrop-filter: blur(3px);
    z-index: 20;
    line-height: 1.5;   /* anula cualquier line-height:0 heredado (texto se solapaba) */
    overflow-y: auto;   /* si el panel no cabe en pantallas pequeñas, se desplaza en vez de cortarse */
    padding: 12px;
}
.lc-shooter-panel {
    text-align: center;
    padding: 28px 24px;
    background: #111827;
    border: 1px solid #1e3a5f;
    border-radius: 18px;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lc-shooter-panel-icon { font-size: 44px; margin-bottom: 8px; }
.lc-shooter-panel h3   { margin: 0 0 8px; font-size: 20px; font-weight: 800; color: #60a5fa; }
.lc-shooter-panel p    { margin: 0 0 14px; font-size: 13px; color: #94a3b8; line-height: 1.6; }

.lc-shooter-hint {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #94a3b8;
    background: rgba(255,255,255,.04);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    text-align: left;
}

/* ── Кнопки ── */
.lc-shooter-btn {
    display: inline-block;
    margin: 4px;
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .1s, opacity .1s;
    background: rgba(255,255,255,.1);
    color: #fff;
}
.lc-shooter-btn:hover  { opacity: .85; transform: translateY(-1px); }
.lc-shooter-btn:active { transform: scale(.96); }
.lc-shooter-btn--primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37,99,235,.45);
}

/* ── Мобильный геймпад ── */
.lc-shooter-mobile-pad {
    display: none;
    position: absolute;
    bottom: 12px;
    left: 0; right: 0;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 16px;
    pointer-events: none;
    z-index: 10;
}
@media (hover: none) and (pointer: coarse) {
    .lc-shooter-mobile-pad { display: flex; }
}
.lc-shooter-dpad {
    display: grid;
    grid-template-areas: ". up ." "left . right" ". down .";
    grid-template-columns: 44px 44px 44px;
    grid-template-rows: 44px 44px 44px;
    gap: 3px;
    pointer-events: all;
}
.lc-dpad-btn {
    background: rgba(30,58,95,.75);
    border: 1px solid rgba(96,165,250,.3);
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lc-dpad-btn:active  { background: rgba(37,99,235,.7); }
[data-dir="up"]    { grid-area: up; }
[data-dir="left"]  { grid-area: left; }
[data-dir="right"] { grid-area: right; }
[data-dir="down"]  { grid-area: down; }

.lc-shooter-fire-btn {
    pointer-events: all;
    width: 70px; height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3b82f6, #1d4ed8);
    border: 3px solid #60a5fa;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(59,130,246,.5);
    touch-action: manipulation;
    user-select: none;
    transition: transform .08s;
}
.lc-shooter-fire-btn:active {
    transform: scale(.9);
    box-shadow: 0 0 30px rgba(59,130,246,.8);
}