body.durak-open{overflow:hidden}.durak-open .modal-backdrop{padding:0;align-items:stretch;background:#020b08}.durak-open .modal{width:100%;max-width:540px;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;overflow:hidden;margin:auto;background:#082b22}.durak-open .modal>.close{display:none}.durak-open #modalContent{height:100%}.d-room{height:100%;position:relative;display:flex;flex-direction:column;overflow:hidden;color:#fff7de;background:radial-gradient(ellipse at 50% 45%,#184a3f,#061b18 78%);font-family:inherit}.d-header{position:static;display:flex;flex:0 0 auto;align-items:center;gap:7px;height:72px;padding:max(8px,env(safe-area-inset-top)) 12px 8px;border:0;border-radius:0;background:#071d18;box-shadow:0 1px #dfc88930;backdrop-filter:none}.d-header>div{flex:1;min-width:0}.d-header h2{font-size:19px;text-shadow:none;margin:0;color:#fff5d6}.d-header small{display:block;font-size:9px;color:#c0b99e;line-height:1.5;white-space:nowrap}.d-icon{width:37px;height:39px;border-radius:11px;border:1px solid #bda66c4d;background:#17362e;color:#f4d991;font-size:23px;display:flex;align-items:center;justify-content:center;flex-shrink:0;padding:6px}.d-icon svg{width:18px;height:18px}.d-icon span{display:none}.d-icon.on{background:#25664b;border-color:#7ee4aa;color:#bbffda}.d-opponents{display:flex;justify-content:space-around;align-items:start;gap:4px;padding:13px 10px 4px;min-height:102px;flex:0 0 auto}.d-seat{min-width:0;flex:1;max-width:95px;background:none;border:0;padding:0;color:inherit;display:flex;align-items:center;flex-direction:column;position:relative}.d-seat>.avatar{width:39px;height:39px;border-radius:50%;border:2px solid #6a8c7b;box-shadow:0 3px 8px #0004}.d-seat.defending>.avatar{border-color:#fa9c74;box-shadow:0 0 0 3px #e99a6e25}.d-seat.attacking>.avatar{border-color:#f4d991}.d-seat>b{font-size:10px;max-width:100%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-top:5px}.d-seat>small{font-size:8px;line-height:1.5;color:#c5d1c2;white-space:nowrap}.d-seat-cards{height:20px;display:flex;margin-top:3px;padding-left:10px}.d-seat-cards .d-back{width:16px;height:23px;margin-left:-8px;transform:rotate(-8deg);filter:drop-shadow(1px 1px 2px #0005)}.d-empty-seat>span{display:grid;place-items:center;width:39px;height:39px;border:1px dashed #e6d49266;border-radius:50%;color:#c9be99;font-size:24px}.d-empty-seat small{color:#8aa89a}.d-felt{position:relative;flex:1 1 auto;min-height:200px;margin:0 12px;isolation:isolate;display:flex;align-items:center;justify-content:center;border-radius:44% / 23%;border:5px solid #76532e;outline:1px solid #b58e5855;background:#0d5a31 url('assets/azi/felt-pattern.svg') repeat;box-shadow:inset 0 0 0 2px #c2a36588,inset 0 8px 40px #001b18b0,0 7px 0 #30271d,0 9px 25px #0006}.d-felt:after{content:'';position:absolute;inset:0;border-radius:inherit;background:radial-gradient(ellipse at center,transparent 35%,#011b174d);pointer-events:none;z-index:-1}.d-pot{position:absolute;top:13px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:3px;white-space:nowrap}.d-pot>small{font-size:8px;letter-spacing:.5px;color:#b5c6a9}.d-pot>b{font-size:19px;color:#ffe09c;text-shadow:0 2px #00271b;display:flex;align-items:center;gap:6px}.d-pot img{width:20px;height:20px}.d-deck{position:absolute;left:7px;top:47%;width:54px;height:85px}.d-deck>.d-back{position:absolute;top:-5px;left:5px;width:44px;height:65px;filter:drop-shadow(2px 2px 0 #b9b6a3) drop-shadow(3px 3px 0 #fff2);z-index:2}.d-trump{position:absolute;left:5px;top:5px;transform:rotate(90deg)}.d-trump .d-card{width:43px;height:63px}.d-deck small{position:absolute;top:70px;left:-2px;font-size:8px;color:#d4dfc2;white-space:nowrap}.d-discard{position:absolute;right:12px;bottom:22px;text-align:center;transform:rotate(12deg);opacity:.65}.d-discard .d-back{width:32px;height:46px}.d-discard small{display:block;color:#c0d0b9;font-size:8px}.d-board{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 9px;max-width:255px;margin:54px 30px 18px 54px;align-items:center;justify-content:center}.d-pair{position:relative;width:60px;height:96px;background:transparent;border:1px solid transparent;border-radius:9px;padding:0}.d-pair.selected{border-color:#ffdb7b;background:#e2ca6e22;outline:1px solid #ffe1a9}.d-pair .d-card{position:absolute;left:0;top:0;width:46px;height:68px;filter:drop-shadow(1px 3px 3px #0005)}.d-pair .d-cover{left:11px;top:20px;transform:rotate(9deg)}.d-cover-slot{position:absolute;left:10px;top:22px;width:46px;height:68px;border:1px dashed #afc9a342;border-radius:5px;font-size:8px;display:grid;place-items:end center;padding-bottom:4px;color:#bfd4b2}.d-clock{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:9px;color:#c4d3b4}.d-wait,.d-table-logo,.d-result{grid-column:1/-1;text-align:center;width:220px;margin-left:-22px}.d-table-mark,.d-table-logo{font-size:30px;letter-spacing:5px;color:#c4d1b426;font-weight:900}.d-wait h3,.d-result h3{font-size:20px;letter-spacing:-.4px;color:#fff2ce;margin:12px 0 6px}.d-wait p,.d-result p{font-size:11px;color:#d3dfc3}.d-wait small,.d-table-logo small{display:block;font-size:8px;color:#b4c9ab;letter-spacing:0;margin-top:7px}.d-result>span{font-size:10px;color:#f9d580}.d-status{padding:14px 8px 6px;text-align:center;font-size:11px;min-height:35px;font-weight:700;color:#f5e0a3;flex:0 0 auto}.d-player-line{display:flex;align-items:center;gap:8px;margin:0 18px;font-size:11px}.d-player-line>small{color:#91b6a7;font-size:9px;flex:1}.d-chat-toggle{background:#28473d;border:1px solid #8c9c7133;color:#d3dbc3;border-radius:8px;padding:6px 10px;font-size:10px}.d-chat-toggle i{font-size:8px;color:#ffe09c;font-style:normal}.d-hand{display:flex;align-items:end;justify-content:safe center;padding:19px 18px 5px;min-height:119px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#b19b6266 transparent;flex:0 0 auto}.d-hand-card{flex:0 0 63px;width:63px;height:92px;background:transparent;border:0;border-radius:8px;padding:0;position:relative;transition:transform .16s,filter .16s;transform-origin:50% 95%}.d-hand-card+.d-hand-card{margin-left:-15px}.d-hand-card .d-card{width:63px;height:92px;display:block;filter:drop-shadow(0 3px 3px #001b1699)}.d-hand-card.selected{transform:translateY(-13px);z-index:2;filter:drop-shadow(0 0 3px #ffe177)}.d-actions{display:flex;justify-content:center;gap:8px;padding:9px 16px 4px;min-height:58px;flex:0 0 auto}.d-actions .btn{flex:1;max-width:300px;min-height:40px;background:linear-gradient(#f5df9d,#d9ad57);color:#352813;border:1px solid #ffe7aa;box-shadow:0 3px #80612f;font-size:12px;border-radius:11px;padding:9px 7px}.d-actions .btn.secondary{background:#24483b;color:#dce5cc;border-color:#a6bd8b55;box-shadow:0 3px #071e18}.d-actions .btn:disabled{opacity:.35}.d-bottom{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:8px 17px max(12px,env(safe-area-inset-bottom));font-size:8px;flex:0 0 auto}.d-bottom button{background:none;color:#c7b67e;padding:0;font-size:9px}.d-bottom small{color:#95ac9d;font-size:8px}.d-chat{position:absolute;left:10px;right:10px;bottom:10px;height:55%;min-height:260px;z-index:30;border:1px solid #acbf8e66;border-radius:17px;background:#0c211ef5;box-shadow:0 15px 70px #000b;display:flex;flex-direction:column;padding:14px}.d-chat[hidden],.d-confirm[hidden],.d-create-options[hidden]{display:none!important}.d-chat-title{display:flex;justify-content:space-between;align-items:center}.d-chat-title b{font-size:14px}.d-chat-title button{background:none;color:#e5d7aa;font-size:25px}.d-messages{flex:1;overflow-y:auto;padding:8px 0}.d-message{padding:8px 10px;border-radius:10px;background:#ffffff08;margin:5px 20px 5px 0}.d-message.mine{background:#d6c78615;margin:5px 0 5px 20px}.d-message b{font-size:9px;color:#d3bb7d}.d-message p{font-size:11px;color:#d4dfd2;font-weight:400;line-height:1.4;margin:3px 0 0;overflow-wrap:anywhere}.d-chat form{display:flex;gap:7px}.d-chat input{min-width:0;font-size:12px;padding:11px;background:#071813;border:1px solid #71856866}.d-chat form button{border-radius:9px;background:#d3b36b;color:#302713;padding:8px;font-size:10px}.d-confirm{position:absolute;inset:35% 20px auto;z-index:40;background:#173c30;border:1px solid #c2ae6d88;border-radius:18px;padding:22px;box-shadow:0 0 0 100vmax #0009}.d-confirm p{font-size:12px;color:#c7d4c0}.d-confirm .btn{margin-top:15px}.d-create-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.d-create-row>div{min-width:0}.d-deal-in{animation:d-deal .45s cubic-bezier(.16,.78,.23,1) both;animation-delay:var(--delay)}.d-play-in{animation:d-play .27s ease-out both}.d-sweep{position:absolute;left:35%;top:42%;z-index:8;display:flex;pointer-events:none;animation:d-sweep .55s ease-in both}.d-sweep img{width:44px;height:64px;margin-left:-25px}@keyframes d-deal{from{opacity:0;transform:translate(-85px,-240px) rotate(-25deg) scale(.65)}to{opacity:1;transform:translate(0,0) rotate(0) scale(1)}}@keyframes d-play{from{opacity:0;translate:0 45px;scale:.8}to{opacity:1;translate:0 0;scale:1}}@keyframes d-sweep{to{transform:translate(125px,80px) rotate(22deg) scale(.5);opacity:0}}@media(max-height:730px){.d-header{height:60px}.d-opponents{min-height:88px;padding-top:8px}.d-seat>.avatar{width:32px;height:32px}.d-felt{min-height:170px}.d-hand{min-height:100px;padding-top:12px}.d-hand-card,.d-hand-card .d-card{width:57px;height:83px}.d-hand-card{flex-basis:57px}.d-status{font-size:10px;padding-top:11px;min-height:29px}.d-actions{min-height:48px;padding-top:6px}.d-bottom{padding-top:5px;padding-bottom:9px}}@media(max-width:370px){.d-header small{font-size:8px}.d-icon{width:32px}.d-pair{width:52px}.d-board{gap:4px;margin-left:48px}.d-opponents{gap:2px}.d-seat>small{font-size:7px}.d-hand-card+.d-hand-card{margin-left:-21px}}@media(prefers-reduced-motion:reduce){.d-deal-in,.d-play-in,.d-sweep{animation:none}.d-hand-card{transition:none}}
.d-pair{width:70px;height:108px}.d-pair .d-card{width:56px;height:81px}.d-pair .d-cover{left:12px;top:23px}.d-cover-slot{left:12px;top:23px;width:56px;height:81px}.d-board{gap:5px 7px}@media(max-height:730px){.d-board:has(.d-pair:nth-child(4)){scale:.82;margin-top:38px;margin-bottom:4px}}@media(max-width:370px){.d-pair{width:62px;height:98px}.d-pair .d-card{width:50px;height:73px}.d-cover-slot{width:50px;height:73px}}
