* { box-sizing: border-box; }
body { background: var(--bg-body, #121212); font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; color: var(--text-main, #FFFFFF); min-height: 100vh; overflow-x: hidden; }

.wd-muted { color: var(--text-muted, #9E968F); }
.wd-card { background: var(--bg-card, #1E1A1C); border: 1px solid var(--border-card, rgba(208, 187, 160, 0.2)); border-radius: 14px; }
.wd-badge { background: rgba(208, 187, 160, .12); border: 1px solid rgba(208, 187, 160, .3); color: var(--sand-text, #D0BBA0); }

.wd-tab { padding: 8px 20px; border-radius: 30px; font-size: .8rem; font-weight: 700; border: 1px solid var(--border-card, rgba(208, 187, 160, 0.25)); color: var(--sand-text, #D0BBA0); background: var(--bg-card, #1E1A1C); transition: all .2s; }
.wd-tab:hover { border-color: #D0BBA0; }
.wd-tab.active { background: #560E1B; color: #FFFFFF; border-color: #560E1B; box-shadow: 0 4px 15px rgba(86, 14, 27, 0.35); }

.wd-levels { background: var(--bg-card, #1E1A1C); border: 1px solid var(--border-card, rgba(208, 187, 160, 0.25)); }
.wd-level { padding: 5px 16px; border-radius: 30px; font-size: .75rem; font-weight: 700; color: var(--sand-text, #D0BBA0); background: transparent; transition: all .2s; }
.wd-level:hover { color: var(--text-main, #FFFFFF); }
.wd-level.active { background: rgba(208, 187, 160, .2); color: var(--text-main, #FFFFFF); }

.wd-hint { padding: 10px 12px; border-radius: 10px; background: rgba(208, 187, 160, .08); border: 1px solid rgba(208, 187, 160, .18); animation: wd-pop .35s ease both; }

.wd-input { background: var(--bg-card, #1E1A1C); border: 1px solid var(--border-card, rgba(208, 187, 160, 0.3)); color: var(--text-main, #FFFFFF); }
.wd-input:focus { border-color: #D0BBA0; box-shadow: 0 0 0 3px rgba(208, 187, 160, .15); }
.wd-input:disabled { opacity: .6; cursor: not-allowed; }
.wd-suggestions { background: var(--bg-card, #1E1A1C); border: 1px solid var(--border-card, rgba(208, 187, 160, 0.3)); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.wd-suggestions li:hover, .wd-suggestion-active { background: rgba(208, 187, 160, .14); }
.wd-row { grid-template-columns: 1.3fr 1.5fr repeat(4, 1fr); }
.wd-cell[style*="animation-delay"] { animation: wd-flip .5s ease both; }
@keyframes wd-flip {
    from { opacity: 0; transform: perspective(400px) rotateX(-90deg); }
    to   { opacity: 1; transform: perspective(400px) rotateX(0); }
}
.wd-chip:first-child { animation: wd-pop .35s ease both; }
@keyframes wd-pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

.wd-cover-frame { width: min(240px, 70vw); aspect-ratio: 2 / 3; background: rgba(208, 187, 160, .08); border: 1px solid var(--border-card, rgba(208, 187, 160, 0.25)); }
#wd-cover-img { transition: filter .7s ease, opacity .3s ease; transform: scale(1.08); -webkit-user-drag: none; }

.wd-rank-row { background: var(--bg-card, #1E1A1C); border-color: var(--border-card, rgba(208, 187, 160, 0.12)); }
.wd-avatar-fallback { background: rgba(208, 187, 160, .18); color: var(--sand-text, #D0BBA0); }
.wd-podium-block { animation: wd-rise .6s ease both; transform-origin: bottom; }
@keyframes wd-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) {
    .wd-cell, .wd-chip, .wd-podium-block, .wd-hint { animation: none !important; }
    #wd-cover-img { transition: none; }
}

.wd-hint > span:first-child { flex-shrink: 0; }
@media (min-width: 640px) {
    .wd-hint { align-items: baseline; column-gap: .75rem; }
}
