body.cw-page {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(160deg, #eef2ff 0%, #f0f9ff 55%, #fdf2f8 100%);
    font-family: 'Nunito', sans-serif;
    color: #1e293b;
}
.cw-container { max-width: 900px; margin: 0 auto; padding: 22px 16px 60px; box-sizing: border-box; }
.cw-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cw-back, .cw-stats span {
    background: #fff; border-radius: 50px; padding: 9px 18px; font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: .9rem; color: #334155; text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.cw-back:hover { color: #4f46e5; }
.cw-stats { display: flex; gap: 10px; }
.cw-stats strong { color: #4f46e5; }
.cw-title { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2rem; margin: 0 0 6px; }
.cw-subtitle { margin: 0 0 20px; color: #64748b; line-height: 1.5; }

.cw-card { background: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 14px 34px rgba(30,41,59,.1); }
.cw-image-wrap { position: relative; border-radius: 18px; overflow: hidden; height: 260px; background: linear-gradient(135deg,#6366f1,#38bdf8); }
.cw-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-image-wrap img[src=""] { display: none; }
.cw-level {
    position: absolute; top: 12px; left: 12px; background: rgba(15,23,42,.85); color: #fff;
    padding: 4px 12px; border-radius: 20px; font: 800 .8rem 'Poppins', sans-serif;
}
.cw-text-title { font-family: 'Poppins', sans-serif; font-weight: 800; margin: 18px 0 10px; }
.cw-text { font-size: 1.25rem; line-height: 2.5; }

.cw-slot {
    display: inline-block; min-width: 96px; height: 1.9rem; line-height: 1.9rem; vertical-align: middle;
    margin: 0 3px; padding: 0 8px; text-align: center; border-radius: 10px;
    border: 2px dashed #94a3b8; background: #f8fafc; box-sizing: content-box;
    transition: background .15s, border-color .15s, transform .15s;
}
.cw-slot.over { border-color: #4f46e5; background: #eef2ff; transform: scale(1.05); }
.cw-slot.filled { border-style: solid; border-color: #10b981; background: #d1fae5; color: #065f46; font-weight: 800; }
.cw-slot.wrong { animation: cw-shake .4s; border-color: #ef4444; background: #fee2e2; }
@keyframes cw-shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

.cw-bank-label { margin-top: 18px; font-weight: 800; color: #64748b; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.cw-bank { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; min-height: 52px; padding: 12px; background: #f1f5f9; border-radius: 16px; }
.cw-word {
    padding: 8px 18px; border-radius: 50px; background: linear-gradient(135deg,#6366f1,#4f46e5); color: #fff;
    font: 700 1.05rem 'Nunito', sans-serif; cursor: grab; user-select: none; touch-action: none;
    box-shadow: 0 4px 12px rgba(79,70,229,.3); transition: transform .15s, box-shadow .15s;
}
.cw-word:hover { transform: translateY(-2px); }
.cw-word.selected { outline: 3px solid #fbbf24; }
.cw-word.dragging { opacity: .35; }
.cw-ghost { position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%,-50%) scale(1.1); opacity: .95; }

.cw-message { min-height: 28px; margin-top: 12px; font-weight: 800; font-size: 1.05rem; text-align: center; }
.cw-message.ok { color: #059669; }
.cw-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.cw-btn {
    padding: 12px 24px; border-radius: 50px; border: 2px solid #e2e8f0; background: #fff; cursor: pointer;
    font: 800 .95rem 'Poppins', sans-serif; color: #334155; transition: all .2s;
}
.cw-btn:hover { transform: translateY(-2px); border-color: #4f46e5; }
.cw-btn-primary { background: linear-gradient(135deg,#4f46e5,#3b82f6); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(79,70,229,.3); }

@media (max-width: 600px) {
    .cw-image-wrap { height: 180px; }
    .cw-text { font-size: 1.1rem; }
    .cw-slot { min-width: 78px; }
}

.cw-btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
