/**
 * PlayZone - Modular Party Games CSS Stylesheet
 * High-performance, Neon Glassmorphic Dark UI for 13 Party Games.
 */

:root {
    --prty-primary: #6366f1;
    --prty-primary-glow: rgba(99, 102, 241, 0.4);
    --prty-secondary: #ec4899;
    --prty-secondary-glow: rgba(236, 72, 153, 0.4);
    --prty-cyan: #06b6d4;
    --prty-gold: #f59e0b;
    --prty-emerald: #10b981;
    --prty-card-bg: rgba(20, 20, 35, 0.85);
    --prty-border: rgba(255, 255, 255, 0.12);
}

.party-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 20px 15px 80px;
    min-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.party-glass {
    background: var(--prty-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--prty-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Header */
.party-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.party-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.party-badge h1 {
    font-size: 1.35rem;
    margin: 0;
    font-weight: 800;
    color: #fff;
}

.party-pin-pill {
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(6, 182, 212, 0.5);
    color: var(--prty-cyan);
    font-family: monospace;
    font-size: 1rem;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.party-pin-pill:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--prty-cyan);
}

/* Secret Box / Role Card */
.party-secret-card {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(49, 46, 129, 0.5));
    border: 2px solid var(--prty-primary);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px var(--prty-primary-glow);
    position: relative;
}

.party-secret-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #a5b4fc;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.party-secret-value {
    font-size: 1.7rem;
    font-weight: 900;
    color: #ffffff;
    margin: 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.party-secret-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0;
}

.party-peek-toggle {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 4px 14px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.party-peek-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Prompt Banner */
.party-prompt-banner {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(236, 72, 153, 0.35);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.party-prompt-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.5;
    margin: 10px 0;
}

/* Timer */
.party-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: var(--prty-gold);
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 900;
}

.party-timer.urgent {
    color: #ef4444;
    border-color: #ef4444;
    animation: pulse 1s infinite;
}

/* Grids */
.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.party-btn-card {
    background: rgba(25, 25, 40, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    width: 100%;
}

.party-btn-card:hover:not(:disabled) {
    border-color: var(--prty-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3);
    background: rgba(6, 182, 212, 0.1);
}

.party-btn-card.selected {
    border-color: var(--prty-primary);
    background: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 20px var(--prty-primary-glow);
}

.party-avatar {
    font-size: 2.3rem;
    line-height: 1;
}

.party-name {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Floating Reactions */
.party-reactions-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 8px 16px;
    border-radius: 40px;
    display: flex;
    gap: 10px;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.party-reaction-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.15s;
}

.party-reaction-btn:hover {
    transform: scale(1.3);
}

.party-floating-emoji {
    position: fixed;
    bottom: 80px;
    font-size: 2.2rem;
    pointer-events: none;
    animation: floatUp 2.5s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
    z-index: 999;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(0.6); }
    100% { opacity: 0; transform: translateY(-350px) scale(1.5); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Responsive */
@media (max-width: 640px) {
    .party-prompt-text { font-size: 1.25rem; }
    .party-grid { grid-template-columns: repeat(2, 1fr); }
    .party-header { flex-direction: column; text-align: center; }
}
