/* Dartboard — pub crimson x charcoal accent */
body[data-theme] {
    --color-primary-gradient: linear-gradient(135deg, #be123c 0%, #292524 100%);
    --shadow-glow: 0 0 25px rgba(190, 18, 60, 0.45);
    --shadow-glow-lg: 0 0 40px rgba(190, 18, 60, 0.55);
    --accent-blue: #be123c;
}

.emoji-icon { font-size: 20px; }
.btn-add-item {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 8px; padding: 9px; border-radius: var(--radius-sm);
    border: 1px dashed var(--color-border); background: transparent;
    color: var(--text-secondary); font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: var(--transition-fast); width: 100%;
}
.btn-add-item:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(190, 18, 60, 0.08); }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.empty-hint { font-size: 0.82rem; color: var(--text-muted); text-align: center; padding: 20px 0; }
.history-row {
    display: flex; align-items: center; justify-content: space-between; padding: 8px 12px;
    background: rgba(15, 23, 42, 0.55); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm);
    font-size: 0.82rem; animation: rowIn 0.3s ease;
}
.history-row .h-idx { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.72rem; }
.history-row .h-name { font-weight: 700; color: var(--text-primary); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Dart stage ---------- */
.dart-stage { position: relative; overflow: visible; }
.dart-stage { background: radial-gradient(circle at 50% 50%, rgba(190,18,60,.13), transparent 36%), linear-gradient(145deg, rgba(255,255,255,.03), transparent); }

#board-canvas {
    width: min(64vh, 84%);
    aspect-ratio: 1;
    max-width: 460px;
    border-radius: 50%;
    background: #463423;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 8px #2d1b12, 0 0 0 12px #c39758, 0 0 0 15px #4a2a18;
}

/* A padded arcade-board surround gives the canvas a friendly tabletop context. */
.dart-stage { background: radial-gradient(ellipse at 50% 89%, rgba(114,55,24,.2), transparent 43%), repeating-linear-gradient(90deg, rgba(119,68,30,.09) 0 3px, transparent 3px 30px), linear-gradient(180deg, #f3dfb9, #d6a66e); }
.dart-stage::before { content: ''; position: absolute; width: min(76vh, 94%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, transparent 63%, rgba(97,47,20,.28) 64% 68%, transparent 69%); pointer-events: none; }
#board-canvas { position: relative; z-index: 1; box-shadow: 0 12px 0 rgba(86,41,19,.25), 0 23px 28px rgba(84,43,22,.25), 0 0 0 8px #5b331b, 0 0 0 13px #efc46a, 0 0 0 18px #733d20; }

.dart-projectile {
    position: absolute;
    width: 44px; height: 14px;
    top: 0; left: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.35));
}
.dart-projectile.flying { opacity: 1; }
.dart-tip {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 14px solid #cbd5e1;
}
.dart-shaft {
    position: absolute; left: 10px; right: 14px; top: 50%; transform: translateY(-50%);
    height: 4px;
    background: linear-gradient(90deg, #78716c, #292524);
    border-radius: 2px;
}
.dart-flight {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 14px; height: 16px;
    background: linear-gradient(90deg, #f7d565, var(--accent-blue));
    clip-path: polygon(0 20%, 100% 0, 55% 50%, 100% 100%, 0 80%);
}
.dart-flight::after { content: ''; position: absolute; inset: 3px 5px; border-left: 1px solid rgba(255,255,255,.55); }

.throw-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 18px auto 4px;
    padding: 16px 38px;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 800;
    color: #fff;
    background: var(--color-primary-gradient);
    border: none; border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-glow-lg), 0 10px 0 rgba(0,0,0,0.18);
    transition: transform 0.1s ease;
    animation: throwPulse 1.8s ease-in-out infinite;
}
.throw-btn .material-symbols-outlined { font-size: 24px; }
.throw-btn:hover { transform: translateY(-2px); }
.throw-btn:active { transform: translateY(4px); box-shadow: var(--shadow-glow), 0 4px 0 rgba(0,0,0,0.18); }
.throw-btn:disabled { opacity: 0.5; cursor: not-allowed; animation: none; box-shadow: none; }
@keyframes throwPulse {
    0%, 100% { box-shadow: var(--shadow-glow-lg), 0 10px 0 rgba(0,0,0,0.18); }
    50% { box-shadow: 0 0 46px color-mix(in srgb, var(--accent-blue) 60%, transparent), 0 10px 0 rgba(0,0,0,0.18); }
}

.dart-stage.shaking { animation: dartImpact 0.3s ease; }
@keyframes dartImpact {
    0%, 100% { transform: translate(0, 0); }
    30% { transform: translate(-3px, 1px); }
    60% { transform: translate(3px, -1px); }
}

@media (max-width: 640px) {
    .throw-btn { padding: 14px 28px; font-size: 0.95rem; }
}
.game-help { margin: 0 0 28px; padding: 26px; }.game-help h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 16px; }.game-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.game-help article { padding: 16px; border: 1px solid var(--color-border-subtle); border-radius: var(--radius-md); background: var(--color-surface-hover); }.game-help h3 { color: var(--accent-blue); font-family: var(--font-display); font-size: 1rem; margin-bottom: 7px; }.game-help p { color: var(--text-secondary); font-size: .88rem; line-height: 1.75; }@media (max-width:720px){.game-help{padding:20px 16px}.game-help-grid{grid-template-columns:1fr}}
