:root{color-scheme:dark}.games-shell{--pink:#ff64bb;--gold:#ffe1a1;font-family:Tahoma,"Segoe UI",sans-serif;color:#fff7ff;background:radial-gradient(ellipse at 5% 8%,#e759d130,transparent 43%),radial-gradient(ellipse at 95% 32%,#5252fd60,transparent 50%),linear-gradient(165deg,#25154b,#3b236c 48%,#181b40);min-height:100vh;padding:clamp(12px,3vw,32px);direction:rtl;overflow-x:clip}.games-shell *{box-sizing:border-box}.games-shell a{color:#ffe1a1}.games-hero{position:relative;overflow:hidden;padding:clamp(26px,5vw,56px);border-radius:30px;background:radial-gradient(circle at 95% 5%,#ffd3ed88,transparent 40%),linear-gradient(120deg,#c542aa,#8b4ce3 60%,#484fbe);box-shadow:0 10px 0 #2f1b63,0 25px 60px #13062888;border:2px solid #e9b9ff66;margin-bottom:30px}.games-hero:after{content:'⚄';position:absolute;font-size:160px;left:4%;bottom:-25px;color:#fff6;transform:rotate(-18deg);pointer-events:none}.games-hero h1{position:relative;z-index:1;font-size:clamp(1.7rem,4.5vw,3rem);margin:12px 0;text-shadow:0 4px #5c267a55}.games-hero p{position:relative;z-index:1;max-width:75%;line-height:2}.game-kicker{font-size:11px;letter-spacing:.1em;color:#ffe9af;font-weight:800}.game-panel{background:linear-gradient(145deg,#403064ee,#2b264ddd);border:1px solid #d5acf74d;border-radius:24px;padding:22px;margin:18px 0;box-shadow:0 6px 0 #17133266,0 18px 35px #100b2944;min-width:0}.game-panel h2{margin:4px 0 20px;font-size:21px}.game-create{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}.game-create label{display:flex;flex-direction:column;gap:9px;min-width:0;font-size:14px}.game-create input,.game-create select,.game-panel input{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #ae91d9;border-radius:13px;padding:13px;background:#241d41;color:#fff;font:inherit;box-shadow:inset 0 3px 8px #06021955}.game-create .game-check{flex-direction:row;align-items:center;grid-column:1/-1;line-height:1.9}.game-create .game-check input{width:20px;flex:0 0 20px;accent-color:#f6a6d8}.game-create [role=alert]{grid-column:1/-1;margin:0;overflow-wrap:anywhere;color:#ffd3df}.games-shell button,.game-link{border:1px solid #ffe7b5;border-radius:14px;background:linear-gradient(#ffe6ab,#ffc865);color:#4c294d;padding:12px 18px;font:inherit;font-weight:bold;cursor:pointer;box-shadow:0 4px 0 #986326,0 8px 14px #140a2b44;transition:transform .15s}.games-shell button:active{transform:translateY(3px);box-shadow:0 1px 0 #986326}.games-shell button:disabled{opacity:.5}.games-shell button:focus-visible,.games-shell a:focus-visible{outline:3px solid #fff;outline-offset:4px}.game-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:18px}.game-card{display:grid;gap:12px;text-decoration:none;color:#fff!important;padding:24px;background:linear-gradient(145deg,#9f53bf,#4a5d95);border:1px solid #e0b3e7;border-radius:24px;box-shadow:0 7px #241646;transition:transform .2s}.game-card:hover{transform:translateY(-4px)}.game-card span{font-size:34px}.game-room-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.game-room-head h1{margin:10px 0;font-size:24px}.game-room-head button{margin:4px;padding:8px 12px;font-size:12px}.game-room-head p{line-height:1.8;margin-bottom:0}.game-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.8fr);gap:20px}.game-layout>aside{min-width:0}.game-board{background:radial-gradient(ellipse at 50% 0,#f9c6da44,transparent 70%),linear-gradient(#694978,#38274e);border:1px solid #d4a9b9;padding:22px;perspective:1100px}.board-caption{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px;color:#fff2cf}.board-caption small{font-size:11px;color:#f2cce8}.game-board svg{width:min(100%,640px);height:auto;display:block;margin:0 auto 28px;overflow:visible;transform:rotateX(12deg);filter:drop-shadow(0 13px 0 #945c81) drop-shadow(0 23px 14px #13071f77);border-radius:28px;touch-action:manipulation}.ludo-pawn{cursor:default;transform-box:view-box}.ludo-pawn.can-move{cursor:pointer;filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 8px #ffed8f)}.ludo-pawn.can-move:focus{outline:none;filter:drop-shadow(0 0 9px #fff)}.game-busy .ludo-pawn{pointer-events:none}.game-actions{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;min-height:90px;margin-top:12px}.game-actions small{width:100%;text-align:center;color:#ffe3a9}.game-member{padding:12px;border-bottom:1px solid #ae92c444;font-size:13px;line-height:1.9}.game-member button{font-size:10px;padding:4px 9px;margin-right:8px}.game-messages{max-height:200px;overflow:auto}.game-messages p{padding:8px;border-bottom:1px solid #ae92c444;overflow-wrap:anywhere;font-size:13px}.game-panel form[data-game-chat]{display:flex;gap:9px}.game-panel form[data-game-chat] input{min-width:0;flex:1}.game-panel form[data-game-chat] button{padding:8px 12px}.game-voice p{font-size:12px;line-height:1.9}.game-voice button{margin:4px;padding:8px 12px;font-size:12px}.game-voice [data-family-audio]{display:none}.game-back{display:inline-block;margin-bottom:7px}.game-board [data-game-rules]{font-size:11px;line-height:2;color:#e8cfe9;margin-top:20px}.dice-stage{perspective:550px;width:54px;height:54px;margin:8px 16px}.dice-cube{--dice-x:0deg;--dice-y:0deg;position:relative;width:50px;height:50px;transform-style:preserve-3d;transform:rotateX(var(--dice-x)) rotateY(var(--dice-y));transition:transform .7s cubic-bezier(.2,.7,.2,1)}.dice-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fff7e9,#f1dbff);border:1px solid #e1baf5;border-radius:10px;color:#4f315a;font-size:57px;font-style:normal;line-height:1;backface-visibility:hidden;box-shadow:inset 0 0 8px #bda1ce}.face-1{transform:translateZ(25px)}.face-2{transform:rotateY(90deg) translateZ(25px)}.face-3{transform:rotateX(90deg) translateZ(25px)}.face-4{transform:rotateX(-90deg) translateZ(25px)}.face-5{transform:rotateY(-90deg) translateZ(25px)}.face-6{transform:rotateY(180deg) translateZ(25px)}.dice-cube.rolling{animation:dice-tumble .85s cubic-bezier(.2,.6,.2,1)}@keyframes dice-tumble{0%{transform:translateY(-16px) rotateX(0) rotateY(0)}55%{transform:translateY(-30px) rotateX(540deg) rotateY(480deg)}100%{transform:translateY(0) rotateX(var(--dice-x)) rotateY(var(--dice-y))}}[hidden]{display:none!important}@media(max-width:850px){.game-layout{grid-template-columns:1fr}.game-room-head{display:block}.game-panel{padding:17px}.game-board{padding:12px}.game-create{grid-template-columns:repeat(2,minmax(0,1fr))}.game-room-head h1{font-size:21px}.games-hero p{max-width:100%}.games-hero:after{opacity:.3}.game-board svg{transform:rotateX(8deg);margin-bottom:22px}}@media(max-width:390px){.game-create{grid-template-columns:1fr}.game-create button{width:100%}.board-caption{flex-direction:column;gap:4px}.game-actions{gap:8px}.game-actions button{font-size:13px;padding:10px}.games-shell{padding:10px}.game-panel{border-radius:20px}}@media(prefers-reduced-motion:reduce){.game-card,.dice-cube,.games-shell button{transition:none}.dice-cube.rolling{animation:none}.game-board svg{transform:none}}
.game-won .game-board{box-shadow:0 0 35px #ffd36f88,0 0 90px #ff78ca44}.game-won .board-caption:after{content:'🏆 بازی تمام شد';color:#ffe79c;font-weight:bold}.game-won .game-board svg{animation:board-victory 1.4s ease-in-out 2}@keyframes board-victory{50%{filter:drop-shadow(0 13px 0 #945c81) drop-shadow(0 0 24px #ffe798)}}@media(prefers-reduced-motion:reduce){.game-won .game-board svg{animation:none}}
