/* style-daily.css - Daily Anime Connections */
.daily-page { max-width: 760px; }
.daily-page .site-logo-link-small { text-decoration: none; }
.daily-page .blog-post-content a:not(.dl-btn):not(.dl-arch) { color: var(--primary-color); }

#dl-app { margin: 10px 0 30px; }
.dl-head { text-align: center; margin-bottom: 12px; }
.dl-head h2 { margin: 0; font-size: 1.5rem; }
#dl-date { color: var(--text-muted-color); font-size: 0.9rem; }

.dl-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin-bottom: 8px; border-radius: 12px;
    color: #1d1d1d; animation: dl-in 0.35s ease;
}
.dl-row-imgs { display: flex; flex-shrink: 0; }
.daily-page .dl-row-imgs img { max-width: none; box-shadow: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.8); margin: 0 0 0 -10px; background: #fff; }
.daily-page .dl-row-imgs img:first-child { margin-left: 0; }
.dl-row-text { display: flex; flex-direction: column; min-width: 0; }
.dl-row-text strong { text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; }
.dl-row-text span { font-size: 0.85rem; }
.dl-yellow { background: #f7d25c; }
.dl-green { background: #8fd18b; }
.dl-blue { background: #8fb8f2; }
.dl-purple { background: #c59be8; }

#dl-grid { max-width: 620px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dl-tile {
    position: relative; aspect-ratio: 1 / 1; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
    border: 3px solid var(--tile-border, rgba(255,255,255,0.2)); background: var(--tile-bg, #222);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.daily-page .dl-tile img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.dl-tile:hover { transform: translateY(-2px); }
.dl-tile:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }
.dl-tile.sel { border-color: var(--accent-bright-color, #ffd54a); transform: scale(0.95); box-shadow: 0 0 14px var(--accent-bright-color, #ffd54a); }
.dl-tile.sel img { filter: brightness(0.75); }
.dl-name {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 4px 4px;
    font-size: clamp(0.6rem, 2.2vw, 0.8rem); line-height: 1.15; color: #fff; text-align: center; font-weight: 600;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 35%, transparent); text-shadow: 0 1px 2px #000;
}
.dl-hide-names .dl-name { display: none; }
.dl-shake { animation: dl-shake 0.45s ease; }
.dl-pop { animation: dl-pop 0.4s ease; }
@keyframes dl-shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
@keyframes dl-pop { 50% { transform: translateY(-10px) scale(1.04); } }
@keyframes dl-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

#dl-mistakes { text-align: center; margin: 14px 0 8px; color: var(--text-muted-color); }
.dl-dot { display: inline-block; width: 12px; height: 12px; margin: 0 3px; border-radius: 50%; background: var(--primary-color); vertical-align: middle; }
.dl-dot.used { background: transparent; box-shadow: inset 0 0 0 2px var(--text-muted-color); }

.dl-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.dl-btn {
    display: inline-block; padding: 9px 16px; border-radius: 24px; border: 2px solid var(--primary-color);
    background: transparent; color: var(--text-color); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.dl-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--primary-color) 20%, transparent); transform: translateY(-1px); }
.dl-btn:disabled { opacity: 0.45; cursor: default; }
.dl-btn-main { background: var(--primary-color); color: #fff; }
.dl-btn-main:hover:not(:disabled) { background: var(--primary-color); filter: brightness(1.1); }

#dl-hints { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; }
.dl-hint-chip { padding: 8px 12px; border-radius: 10px; color: #1d1d1d; font-size: 0.9rem; text-align: center; }

#dl-toast {
    position: fixed; left: 50%; top: 18%; transform: translate(-50%, -10px); z-index: 50;
    background: rgba(0,0,0,0.85); color: #fff; padding: 10px 18px; border-radius: 10px; font-weight: 600;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;
}
#dl-toast.show { opacity: 1; transform: translate(-50%, 0); }

#dl-result { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--tile-bg, rgba(0,0,0,0.25)); text-align: center; }
#dl-result h2 { margin-top: 0; }
.dl-share-preview { display: inline-block; text-align: left; font-size: 1.05rem; line-height: 1.25; margin: 0 0 10px; white-space: pre-wrap; font-family: inherit; }
.dl-stats { display: flex; justify-content: center; gap: 18px; margin: 14px 0; flex-wrap: wrap; }
.dl-stats div { display: flex; flex-direction: column; min-width: 60px; }
.dl-stats b { font-size: 1.6rem; }
.dl-stats span { font-size: 0.8rem; color: var(--text-muted-color); }
.dl-next { margin: 6px 0; }
.dl-more { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

#dl-archive-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dl-arch { padding: 5px 10px; border-radius: 8px; border: 1px solid var(--tile-border, rgba(255,255,255,0.25)); color: var(--text-color); text-decoration: none; font-size: 0.9rem; }
.dl-arch:hover, .dl-arch.cur { border-color: var(--primary-color); }
#dl-yesterday ul { list-style: none; padding-left: 0; }
#dl-yesterday li { margin: 6px 0; }
#dl-yesterday summary { cursor: pointer; font-weight: 600; }
.dl-sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }

@media (max-width: 480px) {
    #dl-grid { gap: 5px; }
    .dl-tile { border-width: 2px; border-radius: 9px; }
    .daily-page .dl-row-imgs img { width: 32px; height: 32px; }
    .dl-btn { padding: 8px 12px; font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) { .dl-shake, .dl-pop, .dl-row { animation: none; } }

#dl-solved, #dl-hints, #dl-result { max-width: 620px; margin-left: auto; margin-right: auto; }
