/* ===== pinball-flipper · 经典弹球台 ===== */

.pf-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 24px;
    border-radius: var(--radius-lg);
    background: radial-gradient(ellipse at top, #2d1b4e 0%, #1a1033 60%, #0d0820 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #44337a;
    color: #fff;
}

.pf-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    width: 540px;
    height: 540px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* HUD */
.pf-hud {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin-bottom: 14px;
}
.pf-hud-item {
    flex: 1;
    min-width: 96px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    text-align: center;
}
.pf-hud-label {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}
.pf-hud-value {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.pf-hud-item.best {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}
.pf-hud-item.best .pf-hud-label { color: rgba(255,255,255,0.8); }

/* 操作行 */
.pf-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pf-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease;
}
.pf-btn:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }
.pf-btn:active { transform: translateY(0); }
.pf-btn.primary {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}
.pf-btn.primary:hover { background: linear-gradient(135deg, #9333ea, #6d28d9); }
.pf-hint {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* Canvas 容器 */
.pf-canvas-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}
.pf-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: #0a0520;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(168, 85, 247, 0.15);
    border: 2px solid #44337a;
    touch-action: none;
}

/* 覆盖层 */
.pf-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    background: rgba(10, 5, 32, 0.72);
    backdrop-filter: blur(4px);
    border-radius: 14px;
    animation: pf-fade 0.25s ease;
}
.pf-overlay[hidden] { display: none; }
@keyframes pf-fade { from { opacity: 0; } to { opacity: 1; } }

.pf-overlay-card {
    text-align: center;
    padding: 26px 24px;
    background: linear-gradient(135deg, #1a1033, #2d1b4e);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5);
    max-width: 80%;
    border: 1px solid #6b46c1;
}
.pf-overlay-emoji { font-size: 48px; line-height: 1; margin-bottom: 10px; }
.pf-overlay-title { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -0.02em; }
.pf-overlay-text { font-size: 13px; color: rgba(255,255,255,0.7); margin: 8px 0 16px; }
.pf-overlay-actions { display: flex; gap: 10px; justify-content: center; }

/* 简介区 */
.pf-info { margin-bottom: 28px; }
.pf-info .detail-title-row { margin-bottom: 16px; }
.pf-info h1 { font-size: 28px; }

/* 响应式 */
@media (max-width: 768px) {
    .pf-hero { padding: 20px 14px 18px; }
    .pf-hud-item { min-width: 72px; padding: 8px 10px; }
    .pf-hud-value { font-size: 18px; }
    .pf-hint { display: none; }
    .pf-btn { padding: 9px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-glow { display: none; }
}
