/* صائد الكلمات: الشبكة والسحب */
.wd-sub { margin: 14px 0 8px; font-size: 16px; font-weight: 800; }
.wd-topics { display: flex; flex-wrap: wrap; gap: 7px; }
.wd-topics button { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 13px; border: 0; border-radius: 99px; background: #fff; color: #0f1320; box-shadow: var(--tile-shadow); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wd-topics button[aria-pressed="true"] { background: linear-gradient(135deg, #2746f2, #1a2fb5); color: #fff; }
.wd-topic-line { margin: 0 0 8px; font-size: 15px; font-weight: 800; text-align: center; }
.wd-board { position: relative; display: grid; gap: 3px; width: 100%; aspect-ratio: 1; padding: 6px; border-radius: 18px; background: #fff; box-shadow: var(--tile-shadow); touch-action: none; user-select: none; -webkit-user-select: none; direction: rtl; }
.wd-cell { display: grid; place-items: center; border-radius: 8px; background: #f2f4fb; color: #0f1320; font-size: clamp(14px, 4.6vw, 24px); font-weight: 800; line-height: 1; transition: background .12s, color .12s, transform .12s; }
.wd-cell.sel { background: #2746f2; color: #fff; transform: scale(1.06); }
.wd-cell.found { color: #fff; }
.wd-cell.miss { animation: wd-shake .3s; }
@keyframes wd-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.wd-card { display: grid; place-items: center; grid-column: 1 / -1; grid-row: 1 / -1; border-radius: 14px; background: linear-gradient(135deg, #2746f2, #1a2fb5); color: #fff; font-size: 30px; font-weight: 800; text-align: center; }
.wd-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 10px; padding: 0; list-style: none; }
.wd-words li { padding: 5px 12px; border-radius: 99px; background: #fff; box-shadow: var(--tile-shadow); font-size: 15px; font-weight: 800; }
.wd-words li.done { color: #fff; text-decoration: line-through; text-decoration-thickness: 2px; }
.pz-level i span { border-radius: 2px; }
.wd-count { padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--tile-shadow); }
.wd-count-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; }
.wd-count-head output { min-width: 52px; padding: 2px 12px; border-radius: 99px; background: #2746f2; color: #fff; font-size: 20px; font-weight: 800; text-align: center; }
.wd-count input[type=range] { width: 100%; margin: 12px 0 8px; accent-color: #2746f2; height: 28px; }
.wd-count-quick { display: flex; gap: 6px; }
.wd-count-quick button { flex: 1; min-height: 36px; border: 0; border-radius: 10px; background: #eef1ff; color: #2746f2; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.wd-count-quick button[aria-pressed="true"] { background: #2746f2; color: #fff; }
.wd-cell.block { background: #141822; box-shadow: inset 0 0 0 2px #2a3040; }
.wd-board.all-done .wd-cell.block { background: #0f1320; }.wd-room-settings { display: grid; gap: 8px; margin: 6px 0 10px; }
.wd-room-topic { margin: 0; font-size: 14px; font-weight: 700; text-align: center; }
.pz-friends-tile { margin-top: 12px; }
.wd-board .wd-winner { grid-column: 1 / -1; grid-row: 1 / -1; align-self: center; justify-self: center; z-index: 2; padding: 10px 18px; border-radius: 16px; background: rgba(15, 19, 32, .82); color: #fff; font-size: 20px; font-weight: 800; pointer-events: none; }
.wd-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.wd-modes button { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border: 3px solid transparent; border-radius: 20px; background: #fff; box-shadow: var(--tile-shadow); font: inherit; cursor: pointer; text-align: center; }
.wd-modes button i { font-size: 30px; font-style: normal; }
.wd-modes button b { font-size: 17px; font-weight: 800; }
.wd-modes button small { color: #6c7384; font-size: 12px; line-height: 1.4; }
.wd-modes button[aria-pressed="true"] { border-color: #e0a50f; background: #fff8e1; }
.wd-modes button[data-mode="free"][aria-pressed="true"] { border-color: #2746f2; background: #eef1ff; }
.wd-mode-note { margin: 0 0 4px; padding: 10px 12px; border-radius: 14px; background: #fff8e1; color: #6b4a00; font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.gd-golden { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 10px; border-radius: 16px; background: #fff8e1; border: 2px dashed #e0b44c; font-weight: 800; }
.gd-golden.on { background: linear-gradient(135deg, #f5c542, #e0a50f); border-style: solid; color: #3d2600; }
.gd-golden .slots { display: flex; gap: 3px; }
.gd-golden i { display: inline-grid; place-items: center; width: 24px; height: 28px; border-radius: 7px; background: #fff; color: #b7791f; font-style: normal; }
.gd-golden.on i { background: rgba(255, 255, 255, .55); color: #3d2600; }
.wd-cell.gold { background: linear-gradient(135deg, #f5c542, #e0a50f) !important; color: #3d2600 !important; box-shadow: 0 0 0 2px #fff3c4 inset; }
.wd-title { margin: 0 0 6px; font-size: 21px; font-weight: 800; text-align: center; }
#beginRow { margin-top: 4px; }
#beginRow .pz-begin { flex: 2; }
.gd-pop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(15, 19, 32, .4); pointer-events: none; }
.gd-pop > div { padding: 22px 26px; border-radius: 24px; background: linear-gradient(135deg, #f5c542, #e0a50f); color: #3d2600; text-align: center; box-shadow: var(--float-shadow); animation: gd-in .35s; }
.gd-pop strong { display: block; font-size: 32px; font-weight: 800; }
@keyframes gd-in { from { transform: scale(.6); opacity: 0; } }

/* المربع الكبير قبل البداية يبدأ اللعبة لمن تضغطه */
.wd-card.go { cursor: pointer; animation: wd-go 1.6s ease-in-out infinite; }
.wd-card.go:active { scale: .97; }
@keyframes wd-go { 50% { box-shadow: 0 0 0 4px rgba(34, 211, 238, .55), 0 0 28px rgba(34, 211, 238, .6); } }
@media (prefers-reduced-motion: reduce) { .wd-card.go { animation: none; } }

