/* ===== pachinko · 弹珠台 ===== */

.pk-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 50%, #fff 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #fed7aa;
}

.pk-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

/* HUD */
.pk-hud {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    margin-bottom: 18px;
}
.pk-hud-item {
    flex: 1;
    min-width: 70px;
    padding: 10px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    text-align: center;
    border: 1px solid #fed7aa;
}
.pk-hud-item.best { background: linear-gradient(135deg, #fef3c7, #fde68a); border-color: #fcd34d; }
.pk-hud-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c2410c;
    font-weight: 700;
}
.pk-hud-item.best .pk-hud-label { color: #b45309; }
.pk-hud-value {
    font-size: 22px;
    font-weight: 800;
    color: #9a3412;
    line-height: 1.2;
    margin-top: 2px;
}
.pk-hud-item.best .pk-hud-value { color: #92400e; }

/* 操作行 */
.pk-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.pk-btn {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid #fed7aa;
    background: #fff;
    color: #c2410c;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.pk-btn:hover { background: #fff7ed; transform: translateY(-1px); }
.pk-btn:active { transform: translateY(0); }
.pk-btn.primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.4);
}
.pk-btn.primary:hover { background: linear-gradient(135deg, #ea580c, #c2410c); }
.pk-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.pk-hint {
    margin-left: auto;
    font-size: 12.5px;
    color: #c2410c;
    opacity: 0.7;
}

/* Canvas */
.pk-board-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    display: grid;
    place-items: center;
}
#pkCanvas {
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 360 / 560;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.18);
    touch-action: none;
    user-select: none;
    border: 3px solid #fdba74;
}

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

.pk-overlay-card {
    text-align: center;
    padding: 26px 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.22);
    max-width: 86%;
    border: 1px solid #fed7aa;
}
.pk-overlay-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.pk-overlay-title { font-size: 24px; font-weight: 900; color: #9a3412; letter-spacing: -0.02em; }
.pk-overlay-text { font-size: 13px; color: #c2410c; margin: 8px 0 12px; line-height: 1.6; }
.pk-overlay-stats {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.pk-overlay-stat {
    padding: 7px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    font-size: 12px;
    color: #9a3412;
    font-weight: 600;
}
.pk-overlay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 简介区 */
.pk-info { margin-bottom: 28px; }

/* 响应式 */
@media (max-width: 768px) {
    .pk-hero { padding: 24px 14px 22px; }
    .pk-hud-item { min-width: 60px; padding: 8px 10px; }
    .pk-hud-value { font-size: 18px; }
    .pk-btn { padding: 9px 16px; font-size: 13px; }
    .pk-hint { display: none; }
}
@media (max-width: 420px) {
    .pk-hud { gap: 6px; }
    .pk-hud-item { min-width: 0; flex: 1 1 45%; }
}

@media (prefers-reduced-motion: reduce) {
    .pk-overlay { animation: none; }
}
