/* Giydirme oyunu (/giydirme-oyunu) — dress_up.js. Önek du- */
.du-root { --du-pink: #ff5fa8; --du-violet: #7c5cff; --du-card: rgba(255,255,255,.08); --du-line: rgba(255,255,255,.16); min-height: 560px; }
.du-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; height: min(78vh, 680px); min-height: 520px; }
.du-wrap > * { min-width: 0; }
.du-stage { position: relative; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 28%, #ffe1f1 0%, #e8d9ff 48%, #a993ff 100%); }
.du-canvas { position: absolute; inset: 0; }
.du-canvas canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.du-status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(30,16,60,.72); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .9rem; pointer-events: none; }
.du-top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; gap: 8px; }
.du-gender { display: inline-flex; background: rgba(30,16,60,.55); border-radius: 999px; padding: 3px; }
.du-gender button, .du-dance { border: 0; background: transparent; color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; min-height: 36px; }
.du-gender button.is-on { background: #fff; color: #5b2a86; }
.du-dance { background: rgba(30,16,60,.55); }
.du-dance.is-on { background: var(--du-pink); }
.du-actions { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.du-btn { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--du-pink), var(--du-violet)); box-shadow: 0 4px 14px rgba(80,30,140,.3); min-height: 38px; }
.du-btn:hover { filter: brightness(1.08); }
.du-photo { background: rgba(30,16,60,.7); }
.du-random { background: linear-gradient(135deg, #ffb347, #ff6f91); }
.du-theme-bar { display: flex; margin-bottom: 8px; align-items: center; gap: 8px; background: linear-gradient(135deg, #fff0f7, #efe8ff); color: #3b1d5e; border-radius: 14px; padding: 8px 10px; font-size: .88rem; }
.du-theme-bar > div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.du-theme-bar span { opacity: .8; font-size: .8rem; }
.du-panel { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--du-line); border-radius: 18px; padding: 8px; background: rgba(127,127,127,.06); }
.du-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; flex: 0 0 auto; }
.du-tabs button { flex: 0 0 auto; border: 1px solid var(--du-line); background: transparent; color: inherit; border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; min-height: 36px; }
.du-tabs button.is-on { background: linear-gradient(135deg, var(--du-pink), var(--du-violet)); color: #fff; border-color: transparent; }
.du-tint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 2px 8px; font-size: .85rem; }
.du-tint button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(127,127,127,.5); background: #ddd; color: #333; font-size: .8rem; padding: 0; }
.du-tint button.is-on { outline: 3px solid var(--du-pink); outline-offset: 1px; }
.du-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; align-content: start; padding: 2px; }
.du-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px solid transparent; background: var(--du-card); color: inherit; border-radius: 14px; padding: 6px 4px; min-height: 112px; }
.du-card:hover { border-color: rgba(255,95,168,.5); }
.du-card.is-on { border-color: var(--du-pink); background: rgba(255,95,168,.14); }
.du-thumb { width: 72px; height: 72px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 10px; background: rgba(255,255,255,.55); }
.du-thumb.is-loading { background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.7), rgba(255,255,255,.35)); background-size: 200% 100%; animation: du-shine 1.1s linear infinite; }
.du-thumb img { width: 72px; height: 72px; object-fit: contain; }
.du-name { font-size: .72rem; line-height: 1.15; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.du-hit { position: absolute; top: 4px; right: 6px; font-size: .9rem; }
@keyframes du-shine { to { background-position: -200% 0; } }
.du-result { position: fixed; inset: 0; z-index: 2000; background: rgba(20,10,40,.6); display: grid; place-items: center; padding: 16px; }
.du-result[hidden] { display: none; }
.du-result-box { background: #fff; color: #3b1d5e; border-radius: 20px; padding: 22px 20px; max-width: 380px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.du-stars { font-size: 2.4rem; letter-spacing: 4px; color: #d9d2e9; }
.du-stars .on { color: #ffb800; text-shadow: 0 2px 8px rgba(255,184,0,.5); }
.du-jury { font-weight: 700; margin: 8px 0 14px; }
.du-result-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.du-close { background: #ece6f7; color: #3b1d5e; box-shadow: none; }
.du-cta { margin: 12px 0 0; font-size: .85rem; }
.du-cta a { color: #c2185b; font-weight: 700; }
@media (max-width: 767px) {
    .du-wrap { grid-template-columns: 1fr; height: auto; min-height: 0; }
    .du-stage { height: 58vh; min-height: 380px; }
    .du-panel { height: 46vh; min-height: 300px; }
    .du-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
    .du-btn { padding: 7px 11px; font-size: .82rem; }
}
@media (pointer: coarse) { .du-tabs button, .du-btn, .du-gender button { min-height: 44px; } }
.du-enter-emoji { font-size: 2.4rem; }
.du-enter-title { font-size: 1.2rem; font-weight: 800; margin: 6px 0 4px; color: #3b1d5e; }
a.du-btn { display: inline-flex; align-items: center; text-decoration: none; }
a.du-btn:hover { color: #fff; }
