/* Card table: isolated from the application's generic headers and shop cards. */
html body.durak-open{overflow:hidden!important}
html body.durak-open #modal{padding:0!important;background:#06130f!important;align-items:stretch!important;z-index:1100!important}
html body.durak-open #modal>.modal{width:100%!important;max-width:580px!important;height:100dvh!important;max-height:100dvh!important;margin:auto!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#0b211b!important;box-shadow:0 0 90px #0008!important}
html body.durak-open #modalContent{height:100%!important;padding:0!important}
html body.durak-open .modal>.close{display:none!important}
html body.durak-open .d-room{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;background:radial-gradient(ellipse at 50% 40%,#1b3e30,#0a1e18 80%)!important;color:#f6f0dd!important;isolation:isolate!important}
html body.durak-open .d-header{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;flex:0 0 auto!important;width:100%!important;height:auto!important;min-height:64px!important;max-width:none!important;padding:calc(10px + env(safe-area-inset-top)) 16px 10px!important;margin:0!important;border:0!important;border-radius:0!important;background:#0b211b!important;box-shadow:none!important;backdrop-filter:none!important;z-index:2!important}
html body.durak-open .d-header>.d-heading{flex:1!important;min-width:0!important}
html body.durak-open .d-header h2{font-size:20px!important;line-height:1.2!important;letter-spacing:-.5px!important;margin:0!important;color:#f8efd8!important}
html body.durak-open .d-header small{font-size:10px!important;line-height:1.5!important;color:#a8bcac!important;margin-top:3px!important;white-space:normal!important}
html body.durak-open .d-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;padding:8px!important;background:#ffffff08!important;border:1px solid #c4d0b523!important;border-radius:13px!important;box-shadow:none!important;color:#e2d5ac!important}
html body.durak-open .d-icon svg{width:21px!important;height:21px!important}
html body.durak-open .d-room-seats{font-size:10px!important;color:#c9d2bf!important;white-space:nowrap!important;padding:7px 9px!important;border-radius:20px!important;background:#ffffff07!important;border:1px solid #ffffff0d!important}
html body.durak-open .d-toolbar{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important;padding:0 16px 10px!important;flex:0 0 auto!important;background:#0b211b!important;border-bottom:1px solid #e0d8ab19!important}
html body.durak-open .d-tool{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:39px!important;min-width:0!important;border-radius:11px!important;background:linear-gradient(#254236,#1b342a)!important;border:1px solid #c3d2b824!important;box-shadow:0 2px 2px #0003!important;color:#d9dfcc!important;font-size:10px!important;padding:7px 5px!important;touch-action:manipulation!important}
html body.durak-open .d-tool svg{width:17px!important;height:17px!important;flex:0 0 auto!important}
html body.durak-open .d-tool.on,html body.durak-open .d-tool[aria-expanded=true]{background:#315e47!important;border-color:#83c39e!important;color:#d8ffe3!important}
html body.durak-open .d-tool[aria-pressed=false]:not(#dMic){color:#93a799!important}
html body.durak-open .d-tool i{font-size:9px!important;font-style:normal!important;background:#e7cb88!important;color:#24362a!important;border-radius:12px!important;min-width:17px!important;padding:2px 4px!important}
html body.durak-open .d-tool i[hidden]{display:none!important}
html body.durak-open .d-opponents{flex:0 0 auto!important;min-height:89px!important;gap:7px!important;align-items:start!important;justify-content:center!important;padding:11px 14px 5px!important}
html body.durak-open .d-seat{flex:1!important;max-width:90px!important;min-width:0!important;gap:0!important;color:#edf0df!important;overflow:visible!important}
html body.durak-open .d-seat>.avatar{width:36px!important;height:36px!important;border:2px solid #819980!important;background-color:#234b3a!important;box-shadow:0 2px 9px #0004!important}
html body.durak-open .d-seat.attacking>.avatar{border-color:#e1c785!important;box-shadow:0 0 0 3px #e1c78518!important}
html body.durak-open .d-seat.defending>.avatar{border-color:#d6a18b!important;box-shadow:0 0 0 3px #d6a18b18!important}
html body.durak-open .d-seat>b{font-size:10px!important;line-height:1.4!important;margin-top:4px!important;max-width:100%!important;padding:0 2px!important}
html body.durak-open .d-seat>small{font-size:8px!important;line-height:1.4!important;white-space:normal!important;text-align:center!important;color:#b1c6b6!important}
html body.durak-open .d-empty-seat>span{width:36px!important;height:36px!important;font-size:23px!important;background:#ffffff05!important}
html body.durak-open .d-seat-cards{height:14px!important;margin-top:4px!important}
html body.durak-open .d-seat-cards .d-back{width:13px!important;height:18px!important;margin-left:-7px!important}
html body.durak-open .d-felt{--cw:clamp(43px,12vw,56px)!important;--ch:calc(var(--cw)*1.45)!important;flex:1 0 auto!important;min-height:270px!important;margin:2px 12px 0!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:35px!important;border:3px solid #9a7948!important;outline:1px solid #c3a96c33!important;background-color:#23533b!important;background-image:radial-gradient(ellipse at 50% 38%,#ffffff06,transparent 65%),url('assets/azi/felt-pattern.svg')!important;box-shadow:inset 0 0 0 2px #071f1b80,inset 0 0 35px #051f1699,0 4px 0 #302a1d,0 7px 16px #0004!important;isolation:isolate!important}
html body.durak-open .d-felt:after{inset:4px!important;border:1px solid #e0d69b16!important;border-radius:29px!important;background:none!important;z-index:-1!important}
html body.durak-open .d-table-meta{position:absolute!important;inset:11px 13px auto!important;display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:8px!important;min-height:65px!important;pointer-events:none!important}
html body.durak-open .d-deck{position:relative!important;inset:auto!important;width:auto!important;height:65px!important;display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important}
html body.durak-open .d-deck-cards{position:relative!important;flex:0 0 82px!important;width:82px!important;height:64px!important}
html body.durak-open .d-deck-cards>.d-back{position:absolute!important;inset:0 auto auto 0!important;width:40px!important;height:58px!important;z-index:2!important;filter:drop-shadow(2px 2px 0 #dbcda5) drop-shadow(1px 3px 3px #0005)!important}
html body.durak-open .d-trump{position:absolute!important;left:35px!important;top:1px!important;transform:rotate(90deg)!important;transform-origin:center!important;z-index:1!important}
html body.durak-open .d-trump .d-card{display:block!important;position:relative!important;width:40px!important;height:58px!important}
html body.durak-open .d-deck-label{display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important}
html body.durak-open .d-deck .d-trump-suit{display:grid!important;place-items:center!important;width:24px!important;height:30px!important;flex-shrink:0!important;border-radius:7px!important;background:#f6edcf!important;color:#202c26!important;font-size:24px!important;line-height:1!important;box-shadow:0 2px 4px #0004!important}
html body.durak-open .d-deck .d-trump-suit:is([data-suit=H],[data-suit=D]){color:#b33630!important}
html body.durak-open .d-deck small{position:static!important;font-size:8px!important;line-height:1.6!important;color:#d6dfc4!important;white-space:nowrap!important}
html body.durak-open .d-deck-empty{font-size:9px!important;color:#bdc9ae!important;padding:12px 0!important;max-width:100px!important;line-height:1.5!important}
html body.durak-open .d-pot{position:static!important;transform:none!important;display:flex!important;align-items:flex-end!important;gap:4px!important;flex-shrink:0!important;white-space:nowrap!important;padding-top:7px!important}
html body.durak-open .d-pot>small{font-size:8px!important;letter-spacing:0!important;color:#c0cbb0!important}
html body.durak-open .d-pot>b{font-size:17px!important;line-height:1.2!important;gap:4px!important;color:#f2dba2!important}
html body.durak-open .d-pot img{width:16px!important;height:16px!important}
html body.durak-open .d-board{display:grid!important;grid-template-columns:repeat(3,calc(var(--cw) + 12px))!important;gap:5px 6px!important;max-width:none!important;margin:80px 8px 30px!important;scale:1!important;align-items:center!important;justify-content:center!important}
html body.durak-open .d-pair{width:calc(var(--cw) + 12px)!important;height:calc(var(--ch) + 19px)!important;padding:0!important;border:1px solid transparent!important;border-radius:9px!important;position:relative!important;background:none!important;touch-action:manipulation!important;box-shadow:none!important}
html body.durak-open .d-pair.selected{border-color:#e9ce80!important;background:#d6c78c19!important;outline:1px solid #e9ce8044!important}
html body.durak-open .d-pair .d-card{position:absolute!important;left:0!important;top:0!important;width:var(--cw)!important;height:var(--ch)!important;filter:drop-shadow(1px 3px 3px #0005)!important}
html body.durak-open .d-pair .d-cover{left:11px!important;top:18px!important;transform:rotate(7deg)!important}
html body.durak-open .d-cover-slot{left:10px!important;top:18px!important;width:var(--cw)!important;height:var(--ch)!important;border-color:#a7c1a52b!important;font-size:8px!important;padding-bottom:3px!important}
html body.durak-open .d-card{display:block!important;position:relative!important;overflow:visible!important;border-radius:6px!important;line-height:0!important}
html body.durak-open .d-card-face{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important;border-radius:inherit!important;pointer-events:none!important}
html body.durak-open .d-trump-mark{position:absolute!important;right:3px!important;bottom:4px!important;display:grid!important;place-items:center!important;width:16px!important;height:17px!important;border-radius:5px!important;background:#d8b86a!important;color:#17271e!important;font-size:13px!important;font-style:normal!important;line-height:1!important;border:1px solid #fff0bb!important;box-shadow:0 1px 3px #0004!important;pointer-events:none!important}
html body.durak-open .d-card:is([data-suit=H],[data-suit=D]) .d-trump-mark{color:#a32e2a!important}
html body.durak-open .d-discard{right:13px!important;bottom:8px!important;transform:none!important;opacity:.75!important;display:flex!important;align-items:center!important;gap:4px!important;pointer-events:none!important}
html body.durak-open .d-discard .d-back{width:15px!important;height:22px!important}
html body.durak-open .d-discard small{font-size:8px!important}
html body.durak-open .d-clock{bottom:10px!important;font-size:9px!important;line-height:1.3!important;color:#ccd8bb!important;padding:3px 8px!important;border-radius:12px!important;background:#092a2080!important}
html body.durak-open .d-wait,html body.durak-open .d-table-logo,html body.durak-open .d-result{grid-column:1/-1!important;width:auto!important;max-width:230px!important;margin:0!important;text-align:center!important}
html body.durak-open .d-table-logo,html body.durak-open .d-table-mark{font-size:28px!important;letter-spacing:6px!important;color:#c5d4ad32!important}
html body.durak-open .d-wait h3,html body.durak-open .d-result h3{font-size:20px!important;letter-spacing:-.5px!important;line-height:1.3!important;margin:9px 0 6px!important;color:#f6e9c5!important}
html body.durak-open .d-wait p,html body.durak-open .d-result p{font-size:11px!important;line-height:1.5!important;margin:5px 0!important;color:#c5d5bb!important}
html body.durak-open .d-wait small,html body.durak-open .d-table-logo small{font-size:9px!important;line-height:1.5!important;letter-spacing:0!important;color:#afc3a5!important}
html body.durak-open .d-status{flex:0 0 auto!important;min-height:34px!important;padding:12px 15px 5px!important;color:#ebd7a4!important;font-size:11px!important;line-height:1.4!important;text-align:center!important}
html body.durak-open .d-player-line{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important;min-height:20px!important;margin:0 18px!important;color:#e7ecd9!important;font-size:11px!important}
html body.durak-open .d-player-line>span{max-width:42%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
html body.durak-open .d-player-line>small{font-size:9px!important;color:#9fbea9!important;flex:1!important}
html body.durak-open #dHandCount{flex:0 0 auto!important;color:#b8c9b2!important}
html body.durak-open .d-hand{display:flex!important;align-items:flex-end!important;justify-content:safe center!important;flex:0 0 auto!important;min-height:116px!important;gap:0!important;padding:18px 18px 6px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;scrollbar-color:#c1ae6e66 transparent!important;overscroll-behavior-x:contain!important;touch-action:pan-x!important}
html body.durak-open .d-hand-card{flex:0 0 60px!important;width:60px!important;height:87px!important;background:none!important;border:0!important;padding:0!important;border-radius:7px!important;transform-origin:50% 95%!important;transition:transform .15s,filter .15s!important}
html body.durak-open .d-hand-card+.d-hand-card{margin-left:-15px!important}
html body.durak-open .d-hand-card .d-card{width:60px!important;height:87px!important;filter:drop-shadow(0 3px 3px #0006)!important}
html body.durak-open .d-hand-card.selected{transform:translateY(-12px)!important;z-index:3!important;filter:drop-shadow(0 0 3px #ead589)!important}
html body.durak-open .d-actions{flex:0 0 auto!important;display:flex!important;justify-content:center!important;gap:8px!important;min-height:54px!important;padding:5px 16px 8px!important}
html body.durak-open .d-actions .btn{flex:1!important;max-width:320px!important;min-width:0!important;min-height:42px!important;padding:10px 7px!important;border-radius:12px!important;font-size:12px!important;line-height:1.2!important;border:1px solid #f4dc9f!important;background:linear-gradient(#efdaa5,#cba05c)!important;box-shadow:inset 0 1px #ffefc8,0 3px 0 #6f552f!important;color:#2b2c1d!important;text-shadow:none!important}
html body.durak-open .d-actions .btn.secondary{background:linear-gradient(#2c4e3c,#213e30)!important;border-color:#859a6d66!important;color:#e0e9d3!important;box-shadow:inset 0 1px #ffffff0b,0 3px 0 #071f17!important}
html body.durak-open .d-actions .btn:disabled{opacity:.38!important;box-shadow:none!important}
html body.durak-open .d-bottom{flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:31px!important;padding:5px 18px max(10px,env(safe-area-inset-bottom))!important;font-size:9px!important}
html body.durak-open .d-bottom button{background:none!important;border:0!important;padding:0!important;color:#d1bd87!important;font-size:10px!important}
html body.durak-open .d-bottom small{font-size:8px!important;color:#98b59f!important;text-align:right!important}
html body.durak-open .d-chat{position:fixed!important;inset:auto max(10px,calc((100vw - 550px)/2)) max(10px,env(safe-area-inset-bottom))!important;height:min(60dvh,470px)!important;min-height:240px!important;z-index:30!important;display:flex!important;flex-direction:column!important;padding:15px!important;border:1px solid #7a977f66!important;border-radius:21px!important;background:#10281ff7!important;box-shadow:0 10px 60px #000a!important;backdrop-filter:blur(15px)!important}
html body.durak-open .d-chat-title{display:flex!important;justify-content:space-between!important;align-items:center!important;flex:0 0 auto!important}
html body.durak-open .d-chat-title b{font-size:15px!important;color:#ebead6!important}
html body.durak-open .d-chat-title button{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;border-radius:10px!important;background:#ffffff0a!important;color:#dae6cb!important;font-size:25px!important;padding:0!important}
html body.durak-open .d-messages{min-height:0!important;flex:1!important;overflow-y:auto!important;padding:9px 0!important}
html body.durak-open .d-chat form{display:flex!important;gap:7px!important;flex:0 0 auto!important}
html body.durak-open .d-chat input{flex:1!important;width:100%!important;min-width:0!important;padding:11px!important;border-radius:12px!important;background:#061d15!important;color:#e1e9d7!important;border:1px solid #8da87d55!important;font-size:16px!important}
html body.durak-open .d-chat form button{flex:0 0 auto!important;max-width:100px!important;padding:9px!important;font-size:11px!important;color:#293021!important;background:#d6c18b!important;border-radius:12px!important}
html body.durak-open .d-confirm{position:fixed!important;inset:35% max(20px,calc((100vw - 500px)/2)) auto!important;z-index:40!important;padding:22px!important;background:#173b2c!important;border:1px solid #a8b98166!important;border-radius:20px!important;box-shadow:0 0 0 100vmax #0009!important}
html body.durak-open .d-confirm .btn{min-height:42px!important;padding:10px!important;margin:12px 5px 0 0!important}
html body.durak-open :is(.d-chat,.d-confirm)[hidden]{display:none!important}
html body.durak-open .d-sweep .d-card{width:44px!important;height:64px!important;margin-left:-25px!important}
html body .room-live-status{display:block!important;font-size:10px!important;color:#bda77b!important;line-height:1.5!important;margin-top:3px!important}
html body .room-row .btn:disabled{opacity:.5!important;cursor:default!important}
@media(max-height:780px){html body.durak-open .d-header{min-height:55px!important;padding-top:calc(7px + env(safe-area-inset-top))!important;padding-bottom:7px!important}html body.durak-open .d-toolbar{padding-bottom:7px!important}html body.durak-open .d-tool{min-height:35px!important}html body.durak-open .d-opponents{min-height:77px!important;padding-top:8px!important}html body.durak-open .d-seat>.avatar,html body.durak-open .d-empty-seat>span{width:31px!important;height:31px!important}html body.durak-open .d-felt{--cw:44px!important;min-height:245px!important}html body.durak-open .d-board{margin-top:70px!important;margin-bottom:24px!important;gap:3px 7px!important}html body.durak-open .d-status{min-height:29px!important;padding-top:9px!important;font-size:10px!important}html body.durak-open .d-hand{min-height:98px!important;padding-top:14px!important}html body.durak-open .d-hand-card,html body.durak-open .d-hand-card .d-card{width:54px!important;height:78px!important}html body.durak-open .d-hand-card{flex-basis:54px!important}html body.durak-open .d-actions{min-height:48px!important}html body.durak-open .d-actions .btn{min-height:39px!important}}
@media(max-width:360px){html body.durak-open .d-header{gap:8px!important;padding-left:12px!important;padding-right:12px!important}html body.durak-open .d-header h2{font-size:19px!important}html body.durak-open .d-room-seats{font-size:9px!important;padding:6px 7px!important}html body.durak-open .d-toolbar{padding-left:12px!important;padding-right:12px!important}html body.durak-open .d-tool{font-size:9px!important;gap:5px!important}html body.durak-open .d-opponents{gap:4px!important;padding-left:10px!important;padding-right:10px!important}html body.durak-open .d-seat>b{font-size:9px!important}html body.durak-open .d-seat>small{font-size:7px!important}html body.durak-open .d-deck-cards{flex-basis:74px!important;width:74px!important}html body.durak-open .d-deck small{font-size:7px!important}html body.durak-open .d-pot>b{font-size:15px!important}html body.durak-open .d-pot>small{font-size:7px!important}html body.durak-open .d-table-meta{left:10px!important;right:10px!important}html body.durak-open .d-hand-card+.d-hand-card{margin-left:-19px!important}}
@media(prefers-reduced-motion:reduce){html body.durak-open .d-hand-card{transition:none!important}}
html body.durak-open .d-bottom{flex-wrap:wrap!important;gap:6px 10px!important;padding-top:3px!important}
html body.durak-open .d-bottom>button{flex:1 1 40%!important;min-width:0!important;min-height:26px!important;font-size:9px!important;line-height:1.3!important;white-space:nowrap!important}
html body.durak-open .d-bottom #ocRoomInvite{margin:0!important;padding:6px 7px!important;border:1px solid #8a9f6c55!important;border-radius:9px!important;background:#294837!important;box-shadow:none!important;color:#dbe7cc!important}
html body.durak-open .d-bottom>#dVoiceStatus{order:3!important;flex:1 1 100%!important;text-align:center!important;white-space:nowrap!important;line-height:1.4!important}
