/* ===== dodge · 闪避大师（霓虹风） ===== */

.dg-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.dg-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.16) 0%, transparent 70%);
    pointer-events: none;
}

/* HUD */
.dg-hud {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 440px;
    margin-bottom: 18px;
}
.dg-hud-item {
    flex: 1;
    min-width: 80px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(30, 27, 75, 0.7);
    text-align: center;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.15);
}
.dg-hud-item.best { border-color: rgba(250, 204, 21, 0.5); box-shadow: 0 0 14px rgba(250, 204, 21, 0.15); }
.dg-hud-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a5b4fc;
    font-weight: 700;
}
.dg-hud-item.best .dg-hud-label { color: #fde047; }
.dg-hud-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-top: 2px;
    font-family: ui-monospace, 'SF Mono', monospace;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}
.dg-hud-item.best .dg-hud-value { color: #fde047; text-shadow: 0 0 10px rgba(250, 204, 21, 0.4); }

/* 操作行 */
.dg-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 440px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.dg-btn {
    padding: 10px 22px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(30, 27, 75, 0.6);
    color: #c4b5fd;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.dg-btn:hover { background: rgba(30, 27, 75, 0.9); transform: translateY(-1px); }
.dg-btn:active { transform: translateY(0); }
.dg-btn.primary {
    background: linear-gradient(135deg, #22d3ee, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.5);
}
.dg-btn.primary:hover { box-shadow: 0 0 28px rgba(139, 92, 246, 0.7); }
.dg-btn:disabled { opacity: 0.45; cursor: not-allowed; }

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

/* Canvas */
.dg-board-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: grid;
    place-items: center;
}
#dgCanvas {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 400 / 520;
    border-radius: 16px;
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.25), 0 16px 40px rgba(0, 0, 0, 0.4);
    touch-action: none;
    user-select: none;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

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

.dg-overlay-card {
    text-align: center;
    padding: 26px 22px;
    background: rgba(30, 27, 75, 0.95);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    max-width: 86%;
    border: 1px solid rgba(139, 92, 246, 0.5);
}
.dg-overlay-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.dg-overlay-title { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: -0.02em; text-shadow: 0 0 14px rgba(139, 92, 246, 0.6); }
.dg-overlay-text { font-size: 13px; color: #c4b5fd; margin: 8px 0 12px; line-height: 1.6; }
.dg-overlay-stats {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.dg-overlay-stat {
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.4);
    font-size: 12px;
    color: #c4b5fd;
    font-weight: 600;
}
.dg-overlay-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

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

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

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