/* PDR Lényecske 0.7.2 – egységes mentett kinézet és bővített játékmenet. */
.pdr-tama-v072-output { display: contents; }

.pdr-tama-saved-appearance {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: inherit;
    background: transparent !important;
    transform: none !important;
    filter: none !important;
    user-select: none;
    -webkit-user-drag: none;
}

.pdr-tama-stage-wrap > .pdr-tama-saved-appearance.is-large-stage {
    position: relative;
    z-index: 2;
    width: min(100%, 920px) !important;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
}

.pdr-tama-card-model > .pdr-tama-saved-appearance.is-world-card {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}

.pdr-tama-stage-wrap:has(> .pdr-tama-saved-appearance) .pdr-tama-appearance-stage-badge {
    display: none !important;
}

.pdr-tama-v072-hatch {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px auto 4px;
    padding: 0 12px;
    box-sizing: border-box;
}

.pdr-tama-v072-hatch a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    overflow: hidden;
    color: #fff !important;
    border: 1px solid rgba(255, 169, 87, .68);
    border-radius: 16px;
    background: linear-gradient(180deg, #ff7c20 0%, #d34500 54%, #9b2500 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 13px 30px rgba(0,0,0,.38), 0 0 25px rgba(255,104,24,.20);
    font-size: 15px;
    font-weight: 950;
    text-decoration: none !important;
    text-shadow: 0 2px 4px rgba(0,0,0,.35);
    transition: transform .18s ease, filter .18s ease;
}

.pdr-tama-v072-hatch a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.pdr-tama-v072-hatch a:active { transform: translateY(1px); }

/* Élő mini-játék interakciók. */
.pdr-tama-live-interaction {
    display: grid;
    gap: 11px;
    margin-top: 13px;
}
.pdr-tama-live-interaction[hidden] { display: none !important; }
.pdr-tama-live-interaction-note {
    color: #ffd7bc;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
.pdr-tama-live-choice-grid,
.pdr-tama-live-sequence-pad {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.pdr-tama-live-choice-grid button,
.pdr-tama-live-sequence-pad button {
    min-height: 44px;
    padding: 9px 10px;
    color: #fff;
    border: 1px solid rgba(255,137,55,.38);
    border-radius: 12px;
    background: linear-gradient(180deg, #34201a, #140b09);
    font-weight: 900;
    cursor: pointer;
}
.pdr-tama-live-choice-grid button:hover,
.pdr-tama-live-sequence-pad button:hover { border-color: #ff7a22; filter: brightness(1.12); }

.pdr-tama-live-timing-track {
    position: relative;
    height: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    background: rgba(0,0,0,.48);
}
.pdr-tama-live-timing-zone {
    position: absolute;
    left: 40%;
    top: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, rgba(71,255,135,.18), rgba(71,255,135,.62), rgba(71,255,135,.18));
}
.pdr-tama-live-timing-marker {
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 20px;
    border-radius: 8px;
    background: #ff7b21;
    box-shadow: 0 0 15px rgba(255,123,33,.85);
}

.pdr-tama-live-target-field {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid rgba(255,118,31,.30);
    border-radius: 16px;
    background: radial-gradient(circle at 50% 50%, rgba(255,106,25,.12), rgba(0,0,0,.45));
}
.pdr-tama-live-moving-target {
    position: absolute;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #fff4dc, #ff7b20 48%, #a62900);
    box-shadow: 0 8px 20px rgba(0,0,0,.38), 0 0 18px rgba(255,104,24,.55);
    cursor: pointer;
    font-size: 25px;
}

.pdr-tama-live-rhythm {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}
.pdr-tama-live-rhythm-pulse {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffb36e, #f05a0b 58%, #711700);
    box-shadow: 0 0 0 0 rgba(255,103,24,.55);
    animation: pdrTamaV072Pulse .82s ease-in-out infinite;
}
@keyframes pdrTamaV072Pulse {
    0%,100% { transform: scale(.82); box-shadow: 0 0 0 0 rgba(255,103,24,.50); }
    50% { transform: scale(1.12); box-shadow: 0 0 0 16px rgba(255,103,24,0); }
}

.pdr-v072-admin .pdr-v072-admin-card,
.pdr-v072-admin .pdr-v072-event-card {
    margin: 16px 0;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.05);
}
.pdr-v072-admin .pdr-v072-admin-card { padding: 18px 22px; }
.pdr-v072-event-card > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    cursor: pointer;
}
.pdr-v072-event-card > summary span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #9d3300;
    background: #fff0e6;
    font-size: 11px;
    font-weight: 800;
}
.pdr-v072-event-body { padding: 0 18px 18px; }
.pdr-v072-event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.pdr-v072-event-grid label { display: grid; gap: 5px; }
.pdr-v072-event-grid label.is-wide { grid-column: span 2; }
.pdr-v072-event-grid label span,
.pdr-v072-effects label span { font-weight: 700; }
.pdr-v072-event-grid input[type="text"],
.pdr-v072-event-grid input[type="number"],
.pdr-v072-event-grid select,
.pdr-v072-event-grid textarea { width: 100%; }
.pdr-v072-step,
.pdr-v072-effects {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #e1e1e1;
    border-radius: 9px;
}
.pdr-v072-step legend,
.pdr-v072-effects legend { padding: 0 6px; font-weight: 800; }
.pdr-v072-effects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pdr-v072-effects label { display: grid; gap: 5px; }
.pdr-v072-effects input { width: 100%; }

@media (max-width: 782px) {
    .pdr-tama-stage-wrap > .pdr-tama-saved-appearance.is-large-stage { width: 100% !important; }
    .pdr-tama-v072-hatch a { width: 100%; max-width: 420px; }
    .pdr-tama-live-choice-grid,
    .pdr-tama-live-sequence-pad { grid-template-columns: 1fr; }
    .pdr-v072-event-grid { grid-template-columns: 1fr; }
    .pdr-v072-event-grid label.is-wide { grid-column: auto; }
    .pdr-v072-effects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 0.7.2 hotfix – globális látogatói és közösségi értesítések. */
.pdr-v072-global-notifications {
    position: fixed;
    z-index: 999999;
    top: 90px;
    left: 18px;
    display: grid;
    gap: 12px;
    width: min(390px, calc(100vw - 36px));
    pointer-events: none;
}
.pdr-v072-global-notification {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 42px 14px 14px;
    color: #fff;
    border: 1px solid rgba(255, 132, 52, .48);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(56, 20, 8, .98), rgba(8, 8, 11, .98));
    box-shadow: 0 18px 45px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255,255,255,.08);
    pointer-events: auto;
}
.pdr-v072-global-notification > img,
.pdr-v072-global-icon {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border: 1px solid rgba(255, 151, 80, .42);
    border-radius: 15px;
    background: #160b08;
}
.pdr-v072-global-icon { display: grid; place-items: center; font-size: 27px; }
.pdr-v072-global-notification strong { display: block; color: #fff; font-size: 14px; }
.pdr-v072-global-notification p { margin: 4px 0 0; color: #ffd8bf; font-size: 12px; line-height: 1.45; }
.pdr-v072-global-notification a { display: inline-flex; margin-top: 8px; color: #ff9b55 !important; font-size: 12px; font-weight: 900; }
.pdr-v072-global-close {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(0,0,0,.32);
    cursor: pointer;
}
@media (max-width: 650px) {
    .pdr-v072-global-notifications {
        top: 72px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}
