/* Seats follow the game's clockwise order, rotated so the local player is at the bottom. */
html body.durak-open .d-table-meta{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;padding:5px 17px!important;gap:8px!important;background:#0d251c!important;border-bottom:1px solid #ffffff08!important;flex:0 0 auto!important}
html body.durak-open .d-deck{height:35px!important;gap:7px!important}
html body.durak-open .d-deck-cards{display:none!important}
html body.durak-open .d-deck-label{gap:7px!important}
html body.durak-open .d-deck .d-trump-suit{width:25px!important;height:31px!important;font-size:24px!important}
html body.durak-open .d-deck small{font-size:9px!important;line-height:1.4!important}
html body.durak-open .d-deck-empty{max-width:130px!important;padding:0!important;font-size:9px!important}
html body.durak-open .d-pot{padding:0!important;align-items:center!important;gap:2px!important}
html body.durak-open .d-pot>b{font-size:16px!important}
html body.durak-open .d-pot>small{font-size:8px!important}
html body.durak-open .d-clock{position:static!important;transform:none!important;flex:0 0 auto!important;min-width:47px!important;text-align:center!important;font-size:10px!important;padding:6px 7px!important;color:#f0e1bd!important;border:1px solid #c6aa6540!important;background:#213f2c!important}
html body.durak-open .d-clock:empty{display:none!important}
html body.durak-open .d-arena{position:relative!important;isolation:isolate!important;flex:1 0 auto!important;min-height:395px!important;min-width:0!important;width:100%!important;overflow:visible!important;background:radial-gradient(ellipse,#274b3320,transparent 72%)!important}
html body.durak-open .d-arena>.d-felt{--cw:clamp(38px,10vw,45px)!important;--ch:calc(var(--cw)*1.45)!important;position:absolute!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;width:calc(100% - 62px)!important;max-width:360px!important;height:auto!important;aspect-ratio:1!important;min-height:0!important;margin:0!important;border-radius:50%!important;border:6px solid #775432!important;outline:1px solid #c6a66e80!important;background-color:#24553c!important;background-image:radial-gradient(circle at 45% 30%,#4b74542b,transparent 70%),url('assets/azi/felt-pattern.svg')!important;box-shadow:inset 0 0 0 2px #d1ad6940,inset 0 0 0 7px #092b2040,inset 0 0 36px #031c16a0,0 6px 0 #30251a,0 12px 27px #0008!important;display:flex!important;align-items:center!important;justify-content:center!important;z-index:1!important}
html body.durak-open .d-arena>.d-felt:after{inset:8px!important;border-radius:50%!important;border:1px dashed #d2c29029!important}
html body.durak-open .d-seat-ring{position:absolute!important;inset:0!important;display:block!important;min-height:0!important;padding:0!important;margin:0!important;pointer-events:none!important;z-index:4!important}
html body.durak-open .d-ring-seat{position:absolute!important;left:var(--seat-x)!important;top:var(--seat-y)!important;transform:translate(-50%,-50%)!important;width:78px!important;max-width:78px!important;min-width:0!important;min-height:0!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:0!important;padding:3px 2px!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;pointer-events:auto!important;color:#e6ecd9!important;isolation:isolate!important}
html body.durak-open .d-ring-seat>.avatar,html body.durak-open .d-ring-seat.d-empty-seat>span{position:relative!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border:2px solid #6c886d!important;background-color:#1d3b2b!important;border-radius:50%!important;box-shadow:0 3px 8px #0007!important;overflow:visible!important}
html body.durak-open .d-ring-seat>.avatar>img{border-radius:50%!important}
html body.durak-open .d-ring-seat>b{max-width:76px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.3!important;font-size:10px!important;letter-spacing:0!important;font-weight:700!important;margin-top:4px!important;padding:0 3px!important;color:#f5efda!important;text-shadow:0 1px 4px #000!important}
html body.durak-open .d-ring-seat>.d-seat-role{font-size:8px!important;line-height:1.4!important;min-height:15px!important;margin-top:3px!important;padding:2px 5px!important;border-radius:6px!important;white-space:nowrap!important;color:#b8cbb5!important;background:#0b251de8!important;border:1px solid #6d916b2b!important;box-shadow:0 2px 4px #0003!important}
html body.durak-open .d-ring-seat .d-seat-count{font-size:8px!important;line-height:1.4!important;color:#b3c2a8!important;margin-top:2px!important;background:#0b251dbb!important;border-radius:5px!important;padding:0 4px!important}
html body.durak-open .d-ring-seat.attacking>.avatar{border-color:#f4ce71!important;box-shadow:0 0 0 3px #e1bd5133,0 3px 8px #0007!important}
html body.durak-open .d-ring-seat.attacking>.d-seat-role{background:#dab86d!important;border-color:#f9db8e!important;color:#302915!important;font-weight:800!important}
html body.durak-open .d-ring-seat.defending>.avatar{border-color:#8cd8b5!important;box-shadow:0 0 0 3px #71c79d29,0 3px 8px #0007!important}
html body.durak-open .d-ring-seat.defending>.d-seat-role{background:#2b674d!important;border-color:#8ed7b0!important;color:#e2ffea!important;font-weight:800!important}
html body.durak-open .d-ring-seat.d-turn-now>.avatar:after{content:''!important;position:absolute!important;inset:-6px!important;border:1px solid currentColor!important;border-radius:50%!important;opacity:.55!important;animation:d-seat-turn 1.8s ease-in-out infinite!important;pointer-events:none!important}
html body.durak-open .d-ring-seat.attacking{color:#efd18b!important}
html body.durak-open .d-ring-seat.defending{color:#9be0bc!important}
html body.durak-open .d-self-seat>b{color:#f4dba7!important}
html body.durak-open .d-empty-seat{opacity:.6!important;touch-action:manipulation!important}
html body.durak-open .d-empty-seat>span{display:grid!important;place-items:center!important;border:1px dashed #b6c5a988!important;color:#c8d5b9!important;font-size:24px!important;background:#102e22cc!important}
html body.durak-open .d-empty-seat>b{font-size:8px!important;font-weight:500!important}
html body.durak-open .d-turn-flow{position:absolute!important;top:32px!important;left:50%!important;transform:translateX(-50%)!important;width:66%!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:3px 6px!important;line-height:1.25!important;pointer-events:none!important}
html body.durak-open .d-turn-flow:empty{display:none!important}
html body.durak-open .d-turn-flow>span:not(.d-flow-arrow){flex:1!important;min-width:0!important;text-align:center!important;font-size:10px!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body.durak-open .d-turn-flow small{display:block!important;font-size:7px!important;line-height:1.5!important;margin-top:2px!important;font-weight:500!important;opacity:.85!important}
html body.durak-open .d-flow-attack{color:#f0d18b!important}
html body.durak-open .d-flow-defense{color:#ade9c7!important}
html body.durak-open .d-flow-arrow{font-size:21px!important;color:#b3cda4!important}
html body.durak-open .d-arena .d-board{position:relative!important;grid-template-columns:repeat(3,calc(var(--cw) + 10px))!important;gap:4px 3px!important;margin:37px 0 0!important;max-width:74%!important;scale:1!important;z-index:2!important}
html body.durak-open .d-arena .d-pair{width:calc(var(--cw) + 10px)!important;height:calc(var(--ch) + 16px)!important}
html body.durak-open .d-arena .d-pair .d-cover{left:9px!important;top:15px!important}
html body.durak-open .d-arena .d-cover-slot{left:9px!important;top:15px!important;font-size:7px!important}
html body.durak-open .d-arena .d-discard{right:auto!important;left:50%!important;bottom:18px!important;transform:translateX(-50%)!important;opacity:.65!important}
html body.durak-open .d-arena .d-discard .d-back{width:11px!important;height:16px!important}
html body.durak-open .d-arena .d-discard small{font-size:7px!important}
html body.durak-open .d-wait,html body.durak-open .d-result{max-width:170px!important}
html body.durak-open .d-wait h3,html body.durak-open .d-result h3{font-size:17px!important}
html body.durak-open .d-wait p,html body.durak-open .d-result p{font-size:9px!important}
html body.durak-open .d-wait small,html body.durak-open .d-table-logo small{font-size:8px!important}
html body.durak-open .d-player-line{display:none!important}
html body.durak-open .d-status{padding-top:4px!important;min-height:25px!important;font-size:10px!important}
html body.durak-open .d-hand{min-height:104px!important;padding-top:12px!important}
html body.durak-open .d-hand-card .d-trump-mark{right:auto!important;left:3px!important}
@keyframes d-seat-turn{0%,100%{opacity:.3;transform:scale(1)}50%{opacity:.9;transform:scale(1.08)}}
@media(max-width:360px){html body.durak-open .d-ring-seat{width:69px!important;max-width:69px!important}html body.durak-open .d-ring-seat>b{font-size:9px!important;max-width:65px!important}html body.durak-open .d-ring-seat>.avatar,html body.durak-open .d-ring-seat.d-empty-seat>span{width:37px!important;height:37px!important;min-width:37px!important;min-height:37px!important}html body.durak-open .d-ring-seat>.d-seat-role{font-size:7px!important;padding:2px 3px!important}html body.durak-open .d-arena>.d-felt{width:calc(100% - 52px)!important;border-width:5px!important}html body.durak-open .d-turn-flow{top:23px!important}html body.durak-open .d-turn-flow>span:not(.d-flow-arrow){font-size:9px!important}}
@media(max-height:760px){html body.durak-open .d-arena{min-height:370px!important}html body.durak-open .d-arena>.d-felt{max-width:300px!important}html body.durak-open .d-table-meta{min-height:43px!important}html body.durak-open .d-hand{min-height:93px!important;padding-top:9px!important}html body.durak-open .d-ring-seat>.avatar,html body.durak-open .d-ring-seat.d-empty-seat>span{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important}html body.durak-open .d-ring-seat>b{font-size:9px!important}html body.durak-open .d-ring-seat>.d-seat-role{font-size:7px!important}html body.durak-open .d-turn-flow{top:24px!important}}
@media(prefers-reduced-motion:reduce){html body.durak-open .d-ring-seat.d-turn-now>.avatar:after{animation:none!important}}
html body.durak-open .d-turn-flow{top:58px!important}
html body.durak-open .d-arena .d-board{margin-top:75px!important}
html body.durak-open .d-arena .d-felt:has(.d-pair:nth-child(4)) .d-discard{display:none!important}
@media(max-height:760px){html body.durak-open .d-turn-flow{top:50px!important}}

/* Reserve a real gutter above lifted cards, including the selection shadow. */
html body.durak-open .d-hand{height:auto!important;min-height:128px!important;padding-top:28px!important;padding-bottom:12px!important}
html body.durak-open .d-hand-card.selected{transform:translateY(-10px) scale(1)!important}
@media(max-height:760px){html body.durak-open .d-hand{min-height:118px!important;padding-top:28px!important;padding-bottom:12px!important}}
