/* ============================================
   PET RESCUE — Stylesheet
   ============================================ */

body.pet-rescue-page {
    background: linear-gradient(135deg, #1a4a2e 0%, #2ecc71 50%, #82e0aa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    user-select: none;
}

#pr-hud {
    width: 100%; max-width: 900px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 24px; margin-top: 8px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.pr-hud-left, .pr-hud-center, .pr-hud-right { display: flex; align-items: center; gap: 8px; }
.pr-hud-right { gap: 6px; }

.pr-title { font-size: 1.2rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

.pr-level-display {
    font-size: 0.95rem; font-weight: 700; color: white;
    background: rgba(255,255,255,0.15); padding: 4px 16px; border-radius: 20px;
}

.pr-score-display {
    font-size: 1.1rem; font-weight: 700; color: #ffd700;
    background: rgba(255,215,0,0.15); padding: 4px 16px; border-radius: 20px;
}

.pr-reset-btn { margin-left: 8px !important; }
.pr-reset-btn:hover { transform: rotate(-30deg) !important; }

#pr-game-area {
    width: 100%; max-width: 900px; margin-top: 16px;
    display: flex; flex-direction: column; align-items: center;
}

.pr-canvas-wrapper {
    position: relative;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

#pr-canvas { display: block; width: 500px; height: 550px; }

.pr-overlay {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10; animation: fadeIn 0.3s ease;
    border-radius: 16px;
}
.pr-overlay.hidden { display: none; }
.pr-overlay-content {
    text-align: center;
    background: rgba(255,255,255,0.08);
    padding: 28px 36px; border-radius: 24px;
    backdrop-filter: blur(4px); animation: modalPop 0.4s ease;
    max-width: 90%;
}

.pr-how-to {
    display: flex; flex-direction: column; gap: 4px;
    margin: 10px 0 16px;
    text-align: left;
    background: rgba(0,0,0,0.2);
    padding: 10px 14px;
    border-radius: 12px;
}

.pr-how-to span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}
.pr-overlay-icon { font-size: 4rem; margin-bottom: 8px; animation: float 2s ease-in-out infinite; }
.pr-overlay-title { font-size: 1.8rem; font-weight: 800; color: white; text-shadow: 0 2px 20px rgba(0,0,0,0.4); margin-bottom: 6px; }
.pr-overlay-sub { font-size: 0.95rem; color: rgba(255,255,255,0.8); margin-bottom: 20px; }

.pr-btn {
    padding: 12px 36px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; font-family: inherit;
    box-shadow: 0 4px 16px rgba(46,204,113,0.3);
}
.pr-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(46,204,113,0.5); }

#pr-bottom-hud {
    width: 100%; max-width: 540px;
    display: flex; align-items: center; gap: 16px;
    padding: 12px 20px; margin-top: 10px;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.pr-stat { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); text-align: center; }
.pr-stat-label { font-size: 0.65rem; color: rgba(255,255,255,0.5); display: block; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 540px) {
    #pr-canvas { width: 100%; height: auto; aspect-ratio: 500 / 550; }
    #pr-hud { padding: 10px 16px; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .pr-title { font-size: 1rem; }
    #pr-bottom-hud { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .pr-overlay-content { padding: 24px 20px; }
}
