/* assets/css/arcade-cards.css - arcade card extras, toolbar and leaderboard popup (puzzles.php) */

[hidden] { display: none !important; }
.game-card.arc-filtered { display: none !important; }

/* ---- card extras ---- */
.arc-meta { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e2e8f0; display: flex; flex-direction: column; gap: 10px; }
.arc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.arc-chip {
    display: inline-flex; align-items: center; gap: 5px; background: #f1f5f9; color: #475569;
    padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.arc-chip--daily { background: #fffbeb; color: #b45309; }
.arc-chip--link { cursor: pointer; transition: background .15s, transform .15s; }
.arc-chip--link:hover, .arc-chip--link:focus-visible { background: #fef3c7; transform: translateY(-1px); outline: none; }
.arc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.arc-dot--todo { background: #f59e0b; box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); animation: arcPulse 2s infinite; }
.arc-dot--done { background: #16a34a; }
@keyframes arcPulse { 70% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); } }
@media (prefers-reduced-motion: reduce) { .arc-dot--todo { animation: none; } }

.arc-chip--more { background: transparent; border: 1px dashed #cbd5e1; color: #94a3b8; padding: 3px 9px; }

.arc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.arc-trophies { font-size: 12px; font-weight: 700; color: var(--text-light, #64748b); white-space: nowrap; }

.arc-lb-btn {
    border: 1px solid #e2e8f0; background: white; color: var(--dark, #1e293b);
    font: inherit; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 10px; cursor: pointer; white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.arc-lb-btn:hover, .arc-lb-btn:focus-visible { border-color: var(--accent, #88b04b); color: var(--accent, #88b04b); outline: none; }

/* ---- toolbar (Arcade view only) ---- */
.arc-toolbar { margin: 0 15px 26px; display: flex; flex-direction: column; gap: 14px; }
.arc-strip { background: white; border: 1px solid #fde68a; border-radius: 18px; padding: 14px 16px; background: linear-gradient(145deg, #ffffff, #fffbeb); }
.arc-strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.arc-strip-title { font-weight: 800; font-size: 14px; color: #92400e; }
.arc-strip-count { font-size: 12px; font-weight: 700; color: #b45309; }
.arc-strip-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.arc-pill {
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: white; color: var(--dark, #1e293b);
    border: 1px solid #fde68a; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; transition: transform .15s, border-color .15s;
}
.arc-pill:hover { transform: translateY(-1px); border-color: #f59e0b; }

.arc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 13px; font-weight: 700; color: var(--text-light, #64748b); }
.arc-sort { font: inherit; font-weight: 700; margin-left: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid #e2e8f0; background: white; color: var(--dark, #1e293b); }
.arc-toggle {
    font: inherit; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer;
    border: 1px solid #e2e8f0; background: white; color: var(--text-light, #64748b);
}
.arc-toggle[aria-pressed="true"] { background: var(--accent, #88b04b); border-color: var(--accent, #88b04b); color: white; }

/* strip: countdown + streak */
.arc-strip-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: #92400e; }
.arc-streak { background: #fff1e6; color: #c2410c; padding: 3px 10px; border-radius: 999px; }
.arc-streak-warn { color: #b45309; font-weight: 600; }

/* Popular today badge */
.arc-hot {
    position: absolute; top: 12px; left: 12px; z-index: 3; background: linear-gradient(135deg, #f97316, #ef4444); color: white;
    font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(239, 68, 68, .35);
}

/* popup: your standing */
.arc-modal-you { text-align: center; font-size: 13px; font-weight: 800; color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 8px 10px; }

/* ---- leaderboard popup ---- */
.arc-modal {
    position: fixed; inset: 0; z-index: 300; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.arc-modal-box {
    background: white; border-radius: 22px; width: 100%; max-width: 380px; max-height: 88vh; overflow-y: auto;
    padding: 20px; box-shadow: 0 25px 50px rgba(0, 0, 0, .25); display: flex; flex-direction: column; gap: 12px;
}
.arc-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.arc-modal-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--dark, #1e293b); }
.arc-modal-close { border: none; background: #f1f5f9; color: #64748b; width: 30px; height: 30px; border-radius: 50%; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.arc-modal-close:hover { background: #e2e8f0; color: var(--dark, #1e293b); }
.arc-modal-select { font: inherit; font-weight: 700; padding: 9px 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: white; color: var(--dark, #1e293b); width: 100%; }
.arc-modal-sub { text-align: center; font-size: 13px; font-weight: 700; color: #475569; background: #f8fafc; border-radius: 10px; padding: 8px 10px; }
.arc-modal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.arc-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: #f8fafc; font-weight: 700; font-size: 15px; }
.arc-row--first { background: #fffbeb; }
.arc-rank { color: #94a3b8; font-size: 13px; }
.arc-row--first .arc-rank { color: #d97706; }
.arc-ini { letter-spacing: 2px; }
.arc-score { font-variant-numeric: tabular-nums; }
.arc-modal-note { text-align: center; font-size: 13px; font-weight: 600; color: var(--text-light, #64748b); min-height: 1em; }
.arc-modal-play {
    text-align: center; text-decoration: none; background: var(--accent, #88b04b); color: white; font-weight: 800; font-size: 14px;
    padding: 11px 16px; border-radius: 12px;
}
.arc-modal-play:hover { filter: brightness(1.05); }

@media (max-width: 600px) {
    .arc-toolbar { margin: 0 15px 20px; }
}