/* Hand v174: one row per player, central draw piles, measured viewport layout. */
#handRoot.hn-scene.hn-layout-v174{--seat-h:clamp(56px,12dvh,110px);--hand-h:clamp(92px,16dvh,152px);--pile-w:clamp(42px,7dvh,62px);position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;display:grid!important;grid-template-rows:44px minmax(0,1fr) auto!important;overflow:hidden!important}
#handRoot.hn-layout-v174 .hn-top{box-sizing:border-box!important;height:44px!important;min-height:0!important;padding:4px 12px!important;overflow:hidden;gap:10px!important}
html.nl-embedded #handRoot.hn-layout-v174 .hn-brand img,html.nl-embedded #handRoot.hn-layout-v174 .hn-brand b{display:none!important}
#handRoot.hn-layout-v174 .hn-top .hn-round-tools{margin-inline-start:auto;display:flex;align-items:center;gap:10px;font-size:12px}
#handRoot.hn-layout-v174 .hn-table,#handRoot.hn-layout-v174 .hn-table:has(.hn-meld){box-sizing:border-box!important;position:relative!important;inset:auto!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:var(--seat-h) minmax(48px,1fr) auto auto auto 20px var(--hand-h)!important;grid-template-areas:'players' 'melds' 'piles' 'turn' 'notice' 'meta' 'hand'!important;direction:rtl!important;width:min(1160px,100%)!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0 auto!important;padding:4px 14px 0!important;gap:5px!important;overflow:hidden!important}
#handRoot.hn-layout-v174 .hn-opponents{grid-area:players!important;display:flex!important;justify-content:space-evenly!important;align-items:stretch!important;gap:12px!important;position:relative!important;inset:auto!important;padding:0!important;height:100%!important;min-height:0!important}
#handRoot.hn-layout-v174 .hn-player{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important;position:relative!important;width:min(28%,220px)!important;height:100%!important;min-height:0!important;padding:0!important;border:0!important;background:none!important}
#handRoot.hn-layout-v174 .hn-character{position:relative!important;inset:auto!important;order:0!important;width:auto!important;height:calc(100% - 28px)!important;max-height:calc(100% - 28px)!important;max-width:100%!important;aspect-ratio:1!important;flex:0 1 auto!important}
#handRoot.hn-layout-v174 .hn-seat-label{position:relative!important;inset:auto!important;transform:none!important;order:1!important;min-width:0!important;width:max-content!important;max-width:100%!important;min-height:26px!important;padding:3px 9px!important;gap:5px!important;flex:0 0 auto!important}
#handRoot.hn-layout-v174 .hn-player.active .hn-seat-label{border-color:#5ae7ce!important;box-shadow:0 0 12px #4ce5d444}
#handRoot.hn-layout-v174 .hn-meld-area{grid-area:melds!important;display:grid!important;grid-template-rows:25px minmax(0,1fr)!important;min-height:0!important;min-width:0!important;max-height:100%!important;width:100%!important;overflow:hidden!important;border:1px solid #81b5c76b!important;border-radius:14px!important;background:#05263bba!important}
#handRoot.hn-layout-v174 .hn-meld-area-head{height:25px!important;min-height:25px!important;padding:3px 12px!important;line-height:18px!important}
#handRoot.hn-layout-v174 .hn-meld-scroll{display:block!important;min-height:0!important;min-width:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:5px 8px!important;overscroll-behavior:contain;touch-action:pan-y}
#handRoot.hn-layout-v174 #hnBoard{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:5px!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important}
#handRoot.hn-layout-v174 .hn-owner-row{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:center;gap:10px;min-height:58px;border-bottom:1px solid #85b2c22b;padding:5px 0}
#handRoot.hn-layout-v174 .hn-owner-row:last-child{border-bottom:0}
#handRoot.hn-layout-v174 .hn-owner-label{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;color:#e1eef1;font-size:12px;padding-inline:5px}
#handRoot.hn-layout-v174 .hn-owner-label b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#handRoot.hn-layout-v174 .hn-owner-label small{color:#8ebdca;font-size:10px}
#handRoot.hn-layout-v174 .hn-owner-row.hn-owner-me .hn-owner-label{color:#7bf2cf}
#handRoot.hn-layout-v174 .hn-owner-melds{display:flex;align-items:center;gap:14px;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:3px 4px 7px;direction:rtl;scrollbar-width:thin;touch-action:pan-x pan-y}
#handRoot.hn-layout-v174 .hn-owner-empty{color:#8aadb9;font-size:11px;white-space:nowrap}
#handRoot.hn-layout-v174 .hn-meld{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;direction:ltr!important;gap:0!important;align-items:center!important;width:max-content!important;max-width:none!important;flex:0 0 auto!important;padding:4px!important;margin:0!important;border-radius:8px!important;background:#0e3449!important}
#handRoot.hn-layout-v174 .hn-meld>small{display:none!important}
#handRoot.hn-layout-v174 .hn-meld-area .hn-card{--meld-w:40px!important;width:40px!important;height:56px!important;flex:0 0 auto!important}
#handRoot.hn-layout-v174 .hn-meld .hn-card+.hn-card{margin-left:-14px!important}
#handRoot.hn-layout-v174 #hnDraft{display:flex!important;position:static!important;inset:auto!important;align-items:center;gap:10px;flex:0 0 auto!important;width:max-content!important;max-width:none!important;margin:0!important;padding:0!important}
#handRoot.hn-layout-v174 #hnDraft:empty{display:none!important}
#handRoot.hn-layout-v174 .hn-draft .hn-pending{flex:0 0 auto!important;max-width:none!important;border-color:#e8cb75!important}
#handRoot.hn-layout-v174 .hn-piles{grid-area:piles!important;position:relative!important;inset:auto!important;transform:none!important;display:flex!important;align-items:flex-start!important;justify-content:center!important;gap:26px!important;width:max-content!important;max-width:100%!important;height:auto!important;margin:0 auto!important;padding:2px 8px!important;direction:rtl!important}
#handRoot.hn-layout-v174 .hn-pile{position:relative!important;width:var(--pile-w)!important;min-width:44px!important;min-height:44px!important;flex:0 0 auto!important;display:flex;align-items:center;flex-direction:column;justify-content:flex-start}
#handRoot.hn-layout-v174 .hn-piles .hn-card,#handRoot.hn-layout-v174 .hn-back,#handRoot.hn-layout-v174 .hn-empty{width:var(--pile-w)!important;height:calc(var(--pile-w)*1.4)!important;min-height:0!important}
#handRoot.hn-layout-v174 #hnStock small,#handRoot.hn-layout-v174 #hnFire small{position:static!important;inset:auto!important;display:block!important;font-size:11px!important;line-height:15px!important;margin:5px 0 0!important;max-width:none!important;white-space:nowrap!important;color:#f8e9c1!important}
#handRoot.hn-layout-v174 .hn-turn{grid-area:turn!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;position:relative!important;inset:auto!important;transform:none!important;width:min(440px,100%)!important;max-width:100%!important;min-height:30px!important;height:auto!important;margin:0 auto!important;padding:4px 12px!important;border:1px solid #76b5bd66!important;border-radius:10px!important;background:#062c3ce8!important;direction:rtl}
#handRoot.hn-layout-v174 .hn-turn strong{font-size:14px!important;white-space:nowrap}
#handRoot.hn-layout-v174 .hn-turn small{margin:0!important;font-size:11px!important;line-height:1.4!important;color:#b6d9df!important}
#handRoot.hn-layout-v174 .hn-turn.hn-your-turn{background:#064638ee!important;border-color:#62e7c6!important}
#handRoot.hn-layout-v174 .hn-handline{grid-area:meta!important;position:relative!important;inset:auto!important;min-height:20px!important;height:20px!important;padding:2px 10px!important;display:flex!important;justify-content:space-between!important;align-items:center!important}
#handRoot.hn-layout-v174 .hn-handline>span{font-size:11px!important;line-height:16px!important}
#handRoot.hn-layout-v174 #hnHand{grid-area:hand!important;position:relative!important;inset:auto!important;height:var(--hand-h)!important;max-height:var(--hand-h)!important;min-height:0!important;width:100%!important;max-width:100%!important;margin:0!important;padding:6px 8px 0!important;overflow-x:auto!important;overflow-y:hidden!important;align-items:flex-start!important;justify-content:center!important}
#handRoot.hn-layout-v174 #hnNotice{grid-area:notice!important;position:static!important;min-height:0!important;max-height:32px!important;padding:0 6px!important;font-size:11px!important;line-height:16px!important;overflow:auto}
#handRoot.hn-layout-v174 #hnNotice:empty{display:none!important}
#handRoot.hn-layout-v174 .hn-tools{position:relative!important;inset:auto!important;box-sizing:border-box!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:42px!important;padding:5px 10px!important;margin:0!important}
#handRoot.hn-layout-v174 .hn-tools button{min-height:34px!important;padding:5px 10px!important;font-size:12px!important}
@media(orientation:portrait){#handRoot.hn-scene.hn-layout-v174{--seat-h:70px;--hand-h:106px;--card-w:60px;--card-h:84px;--pile-w:44px;grid-template-rows:40px minmax(0,1fr) auto!important}#handRoot.hn-layout-v174 .hn-top{height:40px!important}#handRoot.hn-layout-v174 .hn-table,#handRoot.hn-layout-v174 .hn-table:has(.hn-meld){padding:3px 7px 0!important;gap:4px!important}#handRoot.hn-layout-v174 .hn-owner-row{grid-template-columns:76px minmax(0,1fr);gap:6px;min-height:52px}#handRoot.hn-layout-v174 .hn-owner-label{font-size:11px}#handRoot.hn-layout-v174 .hn-owner-label small{font-size:9px}#handRoot.hn-layout-v174 .hn-meld-area .hn-card{--meld-w:34px!important;width:34px!important;height:48px!important}#handRoot.hn-layout-v174 .hn-meld .hn-card+.hn-card{margin-left:-10px!important}#handRoot.hn-layout-v174 .hn-turn{gap:6px!important;min-height:28px!important;padding:3px 8px!important}#handRoot.hn-layout-v174 .hn-turn strong{font-size:12px!important}#handRoot.hn-layout-v174 .hn-turn small{font-size:10px!important}#handRoot.hn-layout-v174 .hn-handline>span{font-size:10px!important}#handRoot.hn-layout-v174 .hn-tools button{font-size:11px!important;padding:5px 8px!important}}
@media(orientation:landscape) and (max-height:550px){#handRoot.hn-scene.hn-layout-v174{--seat-h:28px;--hand-h:74px;--card-w:46px;--card-h:64px;--pile-w:28px;grid-template-rows:34px minmax(0,1fr) auto!important}#handRoot.hn-layout-v174 .hn-top{height:34px!important;padding:2px 10px!important}#handRoot.hn-layout-v174 .hn-top button{height:28px!important;min-height:28px!important}#handRoot.hn-layout-v174 .hn-table,#handRoot.hn-layout-v174 .hn-table:has(.hn-meld){grid-template-rows:var(--seat-h) minmax(36px,1fr) auto auto auto 16px var(--hand-h)!important;gap:2px!important;padding:1px 12px 0!important}#handRoot.hn-layout-v174 .hn-character{display:none!important}#handRoot.hn-layout-v174 .hn-seat-label{min-height:24px!important;height:24px!important;padding:2px 6px!important}#handRoot.hn-layout-v174 .hn-seat-label small{display:none!important}#handRoot.hn-layout-v174 .hn-meld-area{grid-template-rows:18px minmax(0,1fr)!important}#handRoot.hn-layout-v174 .hn-meld-area-head{height:18px!important;min-height:18px!important;line-height:14px!important;padding:1px 8px!important;font-size:10px!important}#handRoot.hn-layout-v174 .hn-owner-row{min-height:42px;padding:2px 0;grid-template-columns:90px minmax(0,1fr)}#handRoot.hn-layout-v174 .hn-owner-label small{display:none}#handRoot.hn-layout-v174 .hn-meld-area .hn-card{--meld-w:28px!important;width:28px!important;height:40px!important}#handRoot.hn-layout-v174 .hn-owner-melds{padding:1px 3px 4px}#handRoot.hn-layout-v174 .hn-piles{gap:20px!important;padding:0!important}#handRoot.hn-layout-v174 #hnStock small,#handRoot.hn-layout-v174 #hnFire small{font-size:9px!important;line-height:11px!important;margin-top:2px!important}#handRoot.hn-layout-v174 .hn-turn{min-height:22px!important;padding:2px 10px!important}#handRoot.hn-layout-v174 .hn-turn strong{font-size:11px!important}#handRoot.hn-layout-v174 .hn-turn small{font-size:9px!important}#handRoot.hn-layout-v174 .hn-handline{height:16px!important;min-height:16px!important;padding:0 8px!important}#handRoot.hn-layout-v174 .hn-handline>span{font-size:9px!important}#handRoot.hn-layout-v174 #hnHand{padding-top:3px!important}#handRoot.hn-layout-v174 .hn-tools{min-height:34px!important;padding:3px 8px!important}#handRoot.hn-layout-v174 .hn-tools button{min-height:28px!important;font-size:10px!important;padding:4px 8px!important}}

/* v175: tap selected cards then their destination. */
#handRoot.hn-layout-v174 .hn-private-group{position:relative!important}
#handRoot#handRoot .hn-place-layer{position:absolute;inset:0;pointer-events:none;z-index:40;direction:ltr}
#handRoot.hn-layout-v174 .hn-place{position:absolute;pointer-events:auto;box-sizing:border-box;width:22px!important;min-width:0!important;height:25px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:5px!important;background:#073d48e8!important;color:#70ffdc!important;box-shadow:0 0 0 1px #6cecd699;cursor:pointer;touch-action:manipulation;display:grid;place-items:center;font-size:18px!important;line-height:1!important;transform:none!important}
#handRoot.hn-layout-v174 .hn-place:hover,#handRoot.hn-layout-v174 .hn-place:focus-visible{background:#11745f!important;outline:2px solid #b9ffe8;outline-offset:1px}

#handRoot.hn-layout-v174 .hn-tools #hnFinish{display:inline-flex!important;align-items:center;justify-content:center;min-width:94px!important;font-size:17px!important;font-weight:800!important;border:2px solid #ffe4a0!important;box-shadow:0 0 14px #ffcf5c55}#handRoot.hn-layout-v174 .hn-tools #hnFinish:disabled{opacity:.45!important;box-shadow:none}#handRoot.hn-layout-v174 .hn-attached-pending{outline:2px dashed #ffe194!important;outline-offset:-2px}
#handRoot.hn-layout-v174 .hn-tools #hnFinish{background:linear-gradient(135deg,#ffe79c,#eebd48)!important;color:#3b2a08!important;flex-shrink:0!important}

/* v176: reserve room above the cards for a complete, unclipped selection lift. */
#handRoot.hn-layout-v174 #hnHand{padding:20px 8px 4px!important;box-sizing:border-box!important}
#handRoot.hn-layout-v174 .hn-private-group{height:calc(var(--display-cw)*1.4)!important;align-self:flex-start!important;margin-top:0!important;margin-bottom:0!important}
#handRoot.hn-layout-v174 .hn-private-group .hn-card{width:var(--display-cw)!important;height:calc(var(--display-cw)*1.4)!important;margin-left:calc(var(--step) - var(--display-cw))!important}
#handRoot.hn-layout-v174 .hn-private-group .hn-card:first-child{margin-left:0!important}
#handRoot.hn-layout-v174 .hn-private-group .hn-card.chosen{transform:translateY(-14px)!important}
#handRoot.hn-layout-v174 .hn-tools #hnFinish[hidden],#handRoot.hn-layout-v174 .hn-tools button[hidden]{display:none!important}
@media(orientation:landscape) and (max-height:550px){#handRoot.hn-scene.hn-layout-v174{--hand-h:94px}}
#handRoot.hn-layout-v174 .hn-tools #hnGroup:not([hidden]),#handRoot.hn-layout-v174 .hn-tools #hnBundle:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center}

/* v177: size the complete fan from the actual scrollport, including native scrollbars. */
#handRoot.hn-layout-v174 #hnHand{align-items:flex-start!important;align-content:flex-start!important}
#handRoot.hn-layout-v174 .hn-private-group{width:var(--fan-width,max-content)!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important;gap:0!important;top:auto!important;bottom:auto!important;transform:none!important;flex:0 0 auto!important;box-sizing:border-box!important}
#handRoot.hn-layout-v174 .hn-private-group .hn-card{box-sizing:border-box!important;min-height:0!important;min-width:0!important}

/* v178: independent, persistent meld counts while preparing an opening. */
#handRoot.hn-layout-v174 .hn-meld-area{grid-template-rows:25px auto minmax(0,1fr)!important}
#handRoot.hn-layout-v174 .hn-count-summary{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 10px;background:#163f4e;color:#ffe4a0;border-bottom:1px solid #97bdbd44;font-size:12px;line-height:18px;font-weight:700}
#handRoot.hn-layout-v174 .hn-count-summary[hidden]{display:none!important}
#handRoot.hn-layout-v174 .hn-count-summary.hn-count-ready{color:#8effd7;background:#114b40}
#handRoot.hn-layout-v174 .hn-count-summary small{font-size:11px;white-space:nowrap}
#handRoot.hn-layout-v174 .hn-meld-points{display:flex;flex-direction:column;justify-content:center;align-items:center;flex:0 0 36px;min-width:36px;color:#a7efdc;font-size:12px;line-height:16px;margin-inline:5px}
#handRoot.hn-layout-v174 .hn-meld-points small{display:block!important;font-size:9px;line-height:12px;color:#abc5cc}
#handRoot.hn-layout-v174 .hn-pending-label{display:flex!important;flex-direction:column;gap:3px;min-width:58px;max-width:76px!important;white-space:normal}
#handRoot.hn-layout-v174 .hn-pending-points{font-size:13px;line-height:17px;color:#ffe094}
#handRoot.hn-layout-v174 .hn-pending-label>span{font-size:9px;line-height:12px}
@media(max-width:500px){#handRoot.hn-layout-v174 .hn-count-summary{font-size:11px;padding:3px 7px}#handRoot.hn-layout-v174 .hn-count-summary small{font-size:10px}#handRoot.hn-layout-v174 .hn-meld-points{flex-basis:28px;min-width:28px;font-size:11px;margin-inline:3px}}
@media(orientation:landscape) and (max-height:550px){#handRoot.hn-layout-v174 .hn-meld-area{grid-template-rows:18px auto minmax(0,1fr)!important}#handRoot.hn-layout-v174 .hn-count-summary{padding:1px 8px;font-size:10px;line-height:15px}#handRoot.hn-layout-v174 .hn-count-summary small{font-size:9px}}

/* v179: compact embedded landscape table, with a full-width hand below the board. */
@media(orientation:landscape) and (max-height:300px){
#handRoot.hn-scene.hn-layout-v174{--hand-h:clamp(90px,32dvh,112px);--card-w:60px;grid-template-rows:28px minmax(0,1fr) auto!important}
#handRoot.hn-layout-v174 .hn-top{height:28px!important;min-height:28px!important;padding:1px 8px!important;gap:8px!important}
#handRoot.hn-layout-v174 .hn-top .hn-round-tools{margin-inline-start:0!important;gap:6px!important;font-size:10px!important;flex:none}
#handRoot.hn-layout-v174 .hn-top button{height:24px!important;min-height:24px!important;padding:1px 7px!important;font-size:10px!important}
#handRoot.hn-layout-v174 .hn-top .hn-handline{grid-area:auto!important;position:static!important;flex:1!important;margin:0!important;min-width:0!important;width:auto!important;height:22px!important;min-height:22px!important;flex-direction:row!important;justify-content:space-evenly!important;gap:8px!important;padding:0 4px!important;background:none!important;border:0!important;border-radius:0!important}
#handRoot.hn-layout-v174 .hn-top .hn-handline>span{font-size:9px!important;line-height:12px!important;white-space:nowrap}
#handRoot.hn-layout-v174 .hn-table,#handRoot.hn-layout-v174 .hn-table:has(.hn-meld){grid-template-columns:minmax(0,1fr) minmax(130px,25%)!important;grid-template-rows:20px minmax(44px,1fr) var(--hand-h)!important;grid-template-areas:'players players' 'melds side' 'hand hand'!important;gap:3px 8px!important;padding:2px 8px 0!important}
#handRoot.hn-layout-v174 .hn-opponents{height:20px!important}
#handRoot.hn-layout-v174 .hn-seat-label{min-height:20px!important;height:20px!important;padding:1px 6px!important;font-size:10px!important}
#handRoot.hn-layout-v174 .hn-landscape-side{grid-area:side;display:flex;min-width:0;min-height:0;flex-direction:column;align-items:center;justify-content:center;gap:2px;overflow:hidden}
#handRoot.hn-layout-v174 .hn-landscape-side .hn-piles{flex:0 0 auto!important;--pile-w:24px;gap:18px!important;padding:0!important}
#handRoot.hn-layout-v174 .hn-landscape-side .hn-pile{min-height:36px!important;min-width:40px!important}
#handRoot.hn-layout-v174 .hn-landscape-side #hnStock small,#handRoot.hn-layout-v174 .hn-landscape-side #hnFire small{font-size:9px!important;line-height:10px!important;margin-top:1px!important}
#handRoot.hn-layout-v174 .hn-landscape-side .hn-turn{width:100%!important;min-height:20px!important;padding:1px 5px!important;flex:0 0 auto!important}
#handRoot.hn-layout-v174 .hn-landscape-side .hn-turn strong{font-size:10px!important}
#handRoot.hn-layout-v174 .hn-landscape-side .hn-turn small{display:none!important}
#handRoot.hn-layout-v174 .hn-landscape-side #hnNotice{display:none!important}
#handRoot.hn-layout-v174 .hn-tools{min-height:30px!important;padding:2px 6px!important;gap:4px!important}
#handRoot.hn-layout-v174 .hn-tools button{min-height:26px!important;padding:3px 8px!important;font-size:10px!important}
#handRoot.hn-layout-v174 .hn-tools #hnFinish{min-width:76px!important;font-size:14px!important}
}
@media(orientation:landscape) and (max-height:240px){#handRoot.hn-scene.hn-layout-v174{--hand-h:60px;grid-template-rows:26px minmax(0,1fr) auto!important}#handRoot.hn-layout-v174 .hn-top{height:26px!important;min-height:26px!important}#handRoot.hn-layout-v174 .hn-table,#handRoot.hn-layout-v174 .hn-table:has(.hn-meld){grid-template-rows:18px minmax(40px,1fr) var(--hand-h)!important;gap:2px 7px!important}#handRoot.hn-layout-v174 .hn-opponents{height:18px!important}#handRoot.hn-layout-v174 .hn-seat-label{min-height:18px!important;height:18px!important}#handRoot.hn-layout-v174 .hn-landscape-side .hn-piles{--pile-w:18px}#handRoot.hn-layout-v174 .hn-landscape-side .hn-pile{min-height:30px!important}#handRoot.hn-layout-v174 .hn-landscape-side .hn-turn{min-height:18px!important;height:18px!important}#handRoot.hn-layout-v174 .hn-tools{min-height:28px!important}}

@media(orientation:landscape) and (max-height:300px){#handRoot.hn-layout-v174 .hn-top #hnHelp{position:static!important;inset:auto!important;transform:none!important;flex:0 0 auto!important}}@media(orientation:landscape) and (max-height:240px){#handRoot.hn-scene.hn-layout-v174{--hand-h:72px}}

/* v180: readable landscape cards and the desktop table order when height permits. */
@media(orientation:landscape) and (min-height:301px) and (max-height:550px){
#handRoot.hn-scene.hn-layout-v174{--hand-h:112px;--card-w:60px;--card-h:84px;--seat-h:24px;--pile-w:24px}
#handRoot.hn-layout-v174 .hn-turn{min-height:22px!important;padding:2px 8px!important}
}

#handRoot.hn-layout-v174 .hn-top #hnHelp{position:static!important;inset:auto!important;transform:none!important;margin:0!important;flex:0 0 auto!important;height:26px!important;min-height:26px!important;width:26px!important;min-width:26px!important;padding:0!important;font-size:12px!important}

/* v181: one header and four compact owner rows on a landscape phone. */
html.nl-style-v172 #nlaabCardFrame.gp-hand-playing>.gp-framebar{display:none!important}
#handRoot.hn-layout-v174.hn-phone-landscape{--hand-h:96px!important;--card-w:56px!important;--card-h:78px!important;grid-template-rows:32px minmax(0,1fr) auto!important}
#handRoot.hn-layout-v174.hn-phone-landscape:has(#hnMeldTotal:not([hidden])){--hand-h:82px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-top{height:32px!important;min-height:32px!important;padding:2px 8px!important;gap:8px!important;overflow:hidden!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-brand{display:none!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-top .hn-round-tools{margin:0!important;flex:none!important;gap:5px!important;font-size:10px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-top button{position:static!important;height:26px!important;min-height:26px!important;padding:2px 8px!important;font-size:11px!important;flex:none}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-top .hn-handline{position:static!important;grid-area:auto!important;flex:1!important;width:auto!important;min-width:0!important;height:24px!important;min-height:24px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-evenly!important;gap:6px!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-top .hn-handline>span{white-space:nowrap;font-size:10px!important;line-height:14px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-table,#handRoot.hn-layout-v174.hn-phone-landscape .hn-table:has(.hn-meld){grid-template-columns:minmax(0,1fr)!important;grid-template-rows:20px minmax(46px,1fr) 58px var(--hand-h)!important;grid-template-areas:'players' 'melds' 'draw' 'hand'!important;gap:2px!important;padding:2px 8px 0!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-opponents{height:20px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-seat-label{height:20px!important;min-height:20px!important;padding:1px 7px!important;font-size:10px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-character,#handRoot.hn-layout-v174.hn-phone-landscape .hn-seat-label small{display:none!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-draw-zone{grid-area:draw;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:0;min-width:0}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-draw-zone .hn-piles{--pile-w:20px;position:static!important;transform:none!important;gap:24px!important;margin:0!important;padding:0!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-draw-zone .hn-pile{min-height:30px!important;min-width:40px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-draw-zone #hnStock small,#handRoot.hn-layout-v174.hn-phone-landscape .hn-draw-zone #hnFire small{margin-top:1px!important;font-size:9px!important;line-height:9px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-draw-zone .hn-turn{width:min(440px,100%)!important;min-height:18px!important;height:18px!important;padding:0 8px!important;gap:8px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-turn strong{font-size:10px!important;line-height:15px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-turn small{font-size:9px!important;line-height:15px!important;display:block!important}
#handRoot.hn-layout-v174.hn-phone-landscape #hnNotice{display:none!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-area{grid-template-rows:18px auto minmax(0,1fr)!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-area-head{height:18px!important;min-height:18px!important;padding:1px 8px!important;line-height:15px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-scroll{padding:2px 5px!important}
#handRoot.hn-layout-v174.hn-phone-landscape #hnBoard{gap:2px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-owner-row{box-sizing:border-box;grid-template-columns:70px minmax(0,1fr)!important;min-height:32px!important;gap:5px!important;padding:0!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-owner-label{font-size:10px!important;padding-inline:3px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-owner-label small{display:none!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-owner-melds{padding:0 2px!important;gap:8px!important;flex-wrap:nowrap!important;flex-direction:row!important}
#handRoot.hn-layout-v174.hn-phone-landscape #hnDraft{flex-direction:row!important;flex-wrap:nowrap!important;gap:8px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld,#handRoot.hn-layout-v174.hn-phone-landscape .hn-draft .hn-pending{padding:1px!important;flex-direction:row!important;gap:0!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-area .hn-card{width:19px!important;height:26px!important;--meld-w:19px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld .hn-card+.hn-card{margin-left:-4px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-points{font-size:10px!important;line-height:12px!important;min-width:22px!important;flex-basis:22px!important;margin-inline:3px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-points small{font-size:8px!important;line-height:9px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-pending-label{min-width:45px!important;gap:0!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-pending-points{font-size:10px!important;line-height:12px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-pending-label>span{font-size:8px!important;line-height:10px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-count-summary{padding:1px 7px!important;font-size:10px!important;line-height:15px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-tools{min-height:30px!important;padding:2px 8px!important;gap:4px!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-tools button{min-height:26px!important;font-size:11px!important;padding:2px 9px!important}
@media(orientation:landscape) and (max-height:330px){#handRoot.hn-layout-v174.hn-phone-landscape{--hand-h:80px!important;grid-template-rows:28px minmax(0,1fr) auto!important}#handRoot.hn-layout-v174.hn-phone-landscape:has(#hnMeldTotal:not([hidden])){--hand-h:72px!important}#handRoot.hn-layout-v174.hn-phone-landscape .hn-top{height:28px!important;min-height:28px!important}#handRoot.hn-layout-v174.hn-phone-landscape .hn-table,#handRoot.hn-layout-v174.hn-phone-landscape .hn-table:has(.hn-meld){grid-template-rows:18px minmax(40px,1fr) 48px var(--hand-h)!important}#handRoot.hn-layout-v174.hn-phone-landscape .hn-draw-zone .hn-piles{--pile-w:15px}#handRoot.hn-layout-v174.hn-phone-landscape .hn-draw-zone .hn-pile{min-height:24px!important}#handRoot.hn-layout-v174.hn-phone-landscape .hn-turn small{display:none!important}}
#handRoot.hn-layout-v174.hn-phone-landscape #hnExit{display:none!important}
#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-area .hn-card .hn-pip,#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-area .hn-card .hn-bottom,#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-area .hn-card .hn-court-suit{display:none!important}#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-area .hn-card .hn-corner:not(.hn-bottom){inset:1px auto auto 2px!important;font-size:9px!important;line-height:10px!important;padding:0!important}#handRoot.hn-layout-v174.hn-phone-landscape .hn-meld-area .hn-card .hn-corner .hn-suit{width:8px!important;height:8px!important}

/* v182: mobile table, floating populated melds and a dedicated hand dock. */
#handRoot.hn-layout-v174.hn-mobile-table-v182{--card-w:60px!important;--dock-h:112px;grid-template-rows:34px minmax(0,1fr)!important}
#handRoot.hn-mobile-table-v182 .hn-top{height:34px!important;min-height:34px!important;padding:2px 8px!important;gap:6px!important}
#handRoot.hn-mobile-table-v182 .hn-brand,#handRoot.hn-mobile-table-v182 #hnExit{display:none!important}
#handRoot.hn-mobile-table-v182 .hn-top .hn-round-tools{margin:0!important;gap:5px!important;flex:none;font-size:10px!important}
#handRoot.hn-mobile-table-v182 .hn-top button{position:static!important;min-height:26px!important;height:26px!important;font-size:10px!important;padding:2px 7px!important}
#handRoot.hn-mobile-table-v182 .hn-top .hn-handline{grid-area:auto!important;position:static!important;display:flex!important;flex:1!important;flex-direction:row!important;align-items:center!important;justify-content:space-evenly!important;width:auto!important;min-width:0!important;min-height:24px!important;height:24px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;gap:4px!important}
#handRoot.hn-mobile-table-v182 .hn-top .hn-handline>span{font-size:9px!important;line-height:12px!important;white-space:nowrap}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-table,#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-table:has(.hn-meld){display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) var(--dock-h)!important;grid-template-areas:'arena' 'dock'!important;gap:6px!important;padding:4px 8px!important;max-width:100%!important}
#handRoot.hn-mobile-table-v182 .hn-arena-v182{grid-area:arena;position:relative;min-height:0;min-width:0;background:radial-gradient(ellipse at 50% 40%,#17566be8,#073648ed);border:2px solid #b59c59aa;border-radius:44% / 35%;box-shadow:inset 0 0 18px #001c3299,0 2px 10px #0003;overflow:hidden}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-opponents{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;pointer-events:none}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-player{position:absolute!important;width:82px!important;height:62px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;inset:auto!important;pointer-events:auto}
#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-player[data-seat=top]{top:2px!important;left:50%!important;transform:translateX(-50%)}
#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-player[data-seat=right]{top:34%!important;right:3px!important}
#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-player[data-seat=left]{top:34%!important;left:3px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-character{display:block!important;position:relative!important;inset:auto!important;height:34px!important;max-height:34px!important;width:34px!important;flex:none!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-seat-label{position:relative!important;inset:auto!important;height:auto!important;min-height:24px!important;max-width:82px!important;padding:2px 5px!important;gap:3px!important;font-size:10px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-seat-label small{display:block!important;font-size:8px!important;white-space:nowrap}
#handRoot.hn-mobile-table-v182 .hn-draw-zone{position:absolute;grid-area:auto;left:50%;top:51%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:224px;height:auto;overflow:visible}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone .hn-piles{--pile-w:48px;position:relative!important;inset:auto!important;transform:none!important;display:flex!important;gap:24px!important;padding:0!important;margin:0!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone .hn-pile{min-height:44px!important;min-width:48px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone #hnStock small,#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone #hnFire small{margin:4px 0 0!important;font-size:11px!important;line-height:14px!important;position:static!important;width:100%!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone .hn-turn{width:224px!important;max-width:100%!important;min-height:26px!important;height:auto!important;padding:3px 9px!important;display:flex!important;gap:6px!important;border-radius:18px!important}
#handRoot.hn-mobile-table-v182 .hn-turn strong{font-size:12px!important;line-height:17px!important}
#handRoot.hn-mobile-table-v182 .hn-turn small{display:block!important;font-size:10px!important;line-height:15px!important}
#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-meld-area{position:absolute!important;inset:auto 92px 6px auto!important;transform:none!important;width:28%!important;max-width:none!important;height:auto!important;max-height:calc(100% - 70px)!important;min-height:0!important;grid-template-rows:18px auto minmax(0,1fr)!important;background:#082c40e8!important;border-radius:12px!important}
#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-meld-area:not(.hn-meld-empty){top:64px!important;bottom:8px!important}
#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-meld-area.hn-meld-empty{inset:auto auto 8px 50%!important;transform:translateX(-50%)!important;width:220px!important;height:25px!important;max-height:25px!important;display:block!important}
#handRoot.hn-mobile-table-v182 .hn-meld-empty .hn-meld-scroll,#handRoot.hn-mobile-table-v182 .hn-meld-empty .hn-count-summary{display:none!important}
#handRoot.hn-mobile-table-v182 .hn-meld-empty .hn-meld-area-head{height:24px!important;min-height:24px!important;line-height:20px!important}
#handRoot.hn-mobile-table-v182 .hn-owner-row.hn-owner-unused{display:none!important}
#handRoot.hn-mobile-table-v182 .hn-owner-row{grid-template-columns:54px minmax(0,1fr)!important}
#handRoot.hn-mobile-table-v182 #hnNotice{display:none!important}
#handRoot.hn-mobile-table-v182 .hn-handdock-v182{grid-area:dock;display:grid;grid-template-columns:98px minmax(0,1fr) 82px;gap:6px;min-height:0;min-width:0;align-items:center}
#handRoot.hn-layout-v174.hn-mobile-table-v182 #hnHand{grid-area:auto!important;grid-column:2!important;height:100%!important;max-height:100%!important;min-height:0!important;display:block!important;padding:20px 4px 4px!important;overflow-x:auto!important;overflow-y:hidden!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-handdock-v182 .hn-tools{grid-column:1;grid-row:1;position:static!important;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:stretch!important;height:100%!important;max-height:100%!important;min-height:0!important;padding:2px!important;border:0!important;box-shadow:none!important;background:none!important;gap:4px!important;overflow:auto!important}
#handRoot.hn-mobile-table-v182 .hn-tools button,#handRoot.hn-mobile-table-v182 .hn-dock-sort button{min-height:30px!important;padding:4px 7px!important;font-size:11px!important;flex:0 0 auto}
#handRoot.hn-mobile-table-v182 .hn-dock-sort{grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:center;min-width:0}
#handRoot.hn-mobile-table-v182 .hn-dock-sort button{width:100%;border-radius:12px}
#handRoot.hn-mobile-table-v182 #hnFinish{order:-3!important}
#handRoot.hn-mobile-table-v182 #hnDiscard{order:-2!important}
#handRoot.hn-mobile-table-v182 #hnGroup{order:-1!important}
#handRoot.hn-mobile-table-v182 .hn-grid-hand{display:grid!important;grid-template-columns:repeat(var(--hand-cols),var(--step))!important;grid-template-rows:repeat(2,var(--hand-row-h))!important;gap:16px 0!important;height:calc(var(--hand-row-h)*2 + 16px)!important;align-items:start!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-grid-hand .hn-card{margin:0!important}
@media(orientation:landscape) and (max-width:800px){#handRoot.hn-mobile-table-v182 .hn-arena-v182:has(.hn-meld-area:not(.hn-meld-empty)) .hn-draw-zone{left:35%}}
@media(orientation:landscape) and (max-height:330px){#handRoot.hn-layout-v174.hn-mobile-table-v182{--dock-h:90px;grid-template-rows:28px minmax(0,1fr)!important}#handRoot.hn-mobile-table-v182 .hn-top{height:28px!important;min-height:28px!important}#handRoot.hn-mobile-table-v182 .hn-draw-zone{top:50%;gap:2px}#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone .hn-piles{--pile-w:32px;gap:18px!important}#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone .hn-pile{min-width:40px!important}#handRoot.hn-mobile-table-v182 .hn-player[data-seat=top]{top:0!important}#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-character{height:20px!important;max-height:20px!important;width:20px!important}#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-player{height:42px!important}#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-meld-area:not(.hn-meld-empty){top:42px!important}}
@media(orientation:portrait){
#handRoot.hn-layout-v174.hn-mobile-table-v182{--dock-h:238px;--card-w:64px!important;grid-template-rows:38px minmax(0,1fr)!important}
#handRoot.hn-mobile-table-v182 .hn-top{height:38px!important;min-height:38px!important;padding:2px 5px!important;gap:4px!important}
#handRoot.hn-mobile-table-v182 .hn-top .hn-round-tools{font-size:9px!important;gap:3px!important}
#handRoot.hn-mobile-table-v182 .hn-top button{font-size:10px!important;padding:2px 5px!important}
#handRoot.hn-mobile-table-v182 .hn-top #hnPhoneFull{max-width:44px;overflow:hidden}
#handRoot.hn-mobile-table-v182 .hn-top .hn-handline{flex-direction:column!important;gap:0!important}
#handRoot.hn-mobile-table-v182 .hn-table{padding:5px 8px!important;gap:5px!important}
#handRoot.hn-mobile-table-v182 .hn-arena-v182{border-radius:44% / 22%}
#handRoot.hn-mobile-table-v182 .hn-draw-zone{top:44%;width:240px}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone .hn-piles{--pile-w:62px;gap:26px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone .hn-turn{width:240px!important;min-height:32px!important}
#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-player[data-seat=right],#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-player[data-seat=left]{top:20%!important}
#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-meld-area:not(.hn-meld-empty){inset:auto 10px 8px 10px!important;width:auto!important;height:130px!important;max-height:28%!important}
#handRoot.hn-mobile-table-v182 .hn-handdock-v182{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 36px;gap:3px}
#handRoot.hn-layout-v174.hn-mobile-table-v182 #hnHand{grid-column:1!important;grid-row:1!important;padding:20px 4px 2px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-handdock-v182 .hn-tools{grid-column:1;grid-row:2;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;overflow-x:auto!important;overflow-y:hidden!important;padding:1px!important;gap:5px!important}
#handRoot.hn-mobile-table-v182 .hn-tools #hnMore{order:5}
}
@media(orientation:portrait) and (max-height:700px){#handRoot.hn-layout-v174.hn-mobile-table-v182{--dock-h:210px}#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-meld-area:not(.hn-meld-empty){height:100px!important}#handRoot.hn-mobile-table-v182 .hn-draw-zone{top:47%}#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-draw-zone .hn-piles{--pile-w:48px}}
#handRoot.hn-mobile-table-v182 .hn-handdock-v182{direction:ltr}#handRoot.hn-mobile-table-v182 .hn-handdock-v182 .hn-tools,#handRoot.hn-mobile-table-v182 .hn-dock-sort{direction:rtl}#handRoot.hn-mobile-table-v182 .hn-dock-sort button{background:#133746!important;color:#e9ffff!important;border:1px solid #73bec6!important;font-weight:700;box-shadow:none!important}#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-meld-area:not(.hn-meld-empty){width:26%!important}#handRoot.hn-mobile-table-v182 .hn-grid-hand .hn-bottom,#handRoot.hn-mobile-table-v182 .hn-grid-hand .hn-court-suit{display:none!important}#handRoot.hn-mobile-table-v182 .hn-grid-hand .hn-card .hn-pip:not(.hn-face) .hn-suit{width:24px!important;height:24px!important}#handRoot.hn-mobile-table-v182 .hn-grid-hand .hn-card .hn-corner:not(.hn-bottom){font-size:15px!important}#handRoot.hn-mobile-table-v182 .hn-empty{font-size:0!important}@media(orientation:portrait){#handRoot.hn-mobile-table-v182 .hn-arena-v182 .hn-meld-area:not(.hn-meld-empty){width:auto!important}}
@media(orientation:landscape) and (max-height:330px){#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-player[data-seat=top]{height:26px!important}#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-arena-v182 .hn-player[data-seat=top] .hn-character{display:none!important}}

/* v183: inspect all melds without leaving the live hand or losing pending groups. */
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-meld-area:has(.hn-meld-view){grid-template-rows:30px auto minmax(0,1fr)!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182 .hn-meld-area:has(.hn-meld-view) .hn-meld-area-head{display:flex!important;align-items:center!important;gap:5px!important;height:30px!important;min-height:30px!important;padding:2px 5px!important;overflow:hidden}
#handRoot.hn-mobile-table-v182 .hn-meld-area:has(.hn-meld-view) .hn-meld-area-head strong{font-size:10px;flex:none}
#handRoot.hn-mobile-table-v182 .hn-meld-area:has(.hn-meld-view) .hn-meld-area-head small{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#handRoot.hn-mobile-table-v182 .hn-meld-view{flex:none!important;min-height:25px!important;height:25px!important;padding:2px 7px!important;border:1px solid #f0d18a!important;border-radius:8px!important;background:#f4d484!important;color:#342c19!important;font:700 10px "IBM Plex Sans Arabic",sans-serif!important;cursor:pointer;white-space:nowrap;touch-action:manipulation}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-arena-v182 .hn-meld-area:not(.hn-meld-empty){inset:5px 8px!important;top:5px!important;bottom:5px!important;left:8px!important;right:8px!important;transform:none!important;width:auto!important;height:auto!important;max-height:none!important;background:#082c40fa!important;border:1px solid #a7d8db!important;z-index:8;box-shadow:0 6px 20px #0007}
#handRoot.hn-mobile-table-v182.hn-melds-expanded .hn-arena-v182 .hn-opponents,#handRoot.hn-mobile-table-v182.hn-melds-expanded .hn-arena-v182 .hn-draw-zone{visibility:hidden!important;pointer-events:none}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-meld-scroll{overflow-y:auto!important;overflow-x:hidden!important;padding:4px 8px!important;touch-action:pan-y}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded #hnBoard{gap:5px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-owner-row{grid-template-columns:76px minmax(0,1fr)!important;align-items:center!important;min-height:58px!important;padding:4px 0!important;gap:8px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-owner-label{font-size:12px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-owner-melds{flex-wrap:wrap!important;gap:8px!important;overflow:visible!important;min-width:0!important;align-items:center!important;padding:2px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded #hnDraft{flex-wrap:wrap!important;max-width:100%!important;min-width:0;gap:8px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-meld,#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-draft .hn-pending{padding:3px!important;max-width:100%!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;flex:0 1 auto!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-meld-area .hn-card{width:34px!important;height:48px!important;--meld-w:34px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-meld .hn-card+.hn-card{margin-left:-10px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-meld-points{font-size:12px!important;line-height:16px!important;min-width:32px!important;flex-basis:32px!important;margin-inline:5px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-meld-area .hn-card .hn-corner:not(.hn-bottom){font-size:12px!important;line-height:14px!important;inset:2px auto auto 3px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-meld-area .hn-card .hn-corner .hn-suit{width:11px!important;height:11px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-pending-label{min-width:57px!important;gap:3px!important}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-pending-points{font-size:12px!important;line-height:16px!important}
@media(orientation:portrait){#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-owner-row{grid-template-columns:58px minmax(0,1fr)!important;gap:5px!important}#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-owner-label{font-size:10px!important}}
#handRoot.hn-layout-v174.hn-mobile-table-v182.hn-melds-expanded .hn-arena-v182{border-radius:14px!important}#handRoot.hn-mobile-table-v182.hn-melds-expanded .hn-owner-row:has(.hn-pending) .hn-owner-empty{display:none!important}

/* ===== V184 phone layout (portrait + landscape phones). Replaces the v174/v182 phone layers for .hn-v184 only; desktop keeps v174. =====
   Structure (built in ui.js arrange184): .hn-top | main.hn-table > .hn-stage184 (.hn-meld-area + .hn-center184) + .hn-dock184 (sort | hand | tools). */
#handRoot#handRoot.hn-v184{--top184:38px;--dock184:clamp(84px,31vh,134px);--center184:clamp(150px,22vw,210px);--pw184:clamp(40px,12vh,60px);--mcw:clamp(22px,6.4vh,30px);--card-w:80px;display:grid!important;grid-template-rows:var(--top184) minmax(0,1fr)!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:none!important;height:100dvh!important;padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)!important;overflow:hidden!important}
#handRoot#handRoot.hn-v184 [hidden]{display:none!important}
/* header: one compact line */
#handRoot#handRoot.hn-v184 .hn-top{grid-area:auto!important;position:relative!important;display:flex!important;align-items:center!important;gap:6px!important;height:var(--top184)!important;min-height:0!important;padding:3px 8px!important;overflow:hidden!important}
#handRoot#handRoot.hn-v184 .hn-top #hnExit,#handRoot#handRoot.hn-v184 .hn-brand img,#handRoot#handRoot.hn-v184 .hn-brand small,#handRoot#handRoot.hn-v184 .hn-round-label{display:none!important}
#handRoot#handRoot.hn-v184 .hn-brand{order:2;display:flex!important;align-items:center;margin:0!important;flex:none}
#handRoot#handRoot.hn-v184 .hn-brand>div{display:flex!important;align-items:center;gap:4px}
#handRoot#handRoot.hn-v184 .hn-brand b{font-family:Lalezar,'IBM Plex Sans Arabic',sans-serif;font-size:21px!important;line-height:1;color:#fff;font-weight:400}
#handRoot#handRoot.hn-v184 .hn-top button{position:static!important;inset:auto!important;transform:none!important;height:30px!important;min-height:30px!important;min-width:32px;padding:0 10px!important;border-radius:15px!important;border:1px solid #ffffff40!important;background:#ffffff24!important;color:#fff!important;font:600 12.5px/1 'IBM Plex Sans Arabic',system-ui,sans-serif!important;box-shadow:none!important;display:inline-flex!important;align-items:center;justify-content:center;gap:4px;white-space:nowrap;flex:none}
#handRoot#handRoot.hn-v184 .hn-top button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#handRoot#handRoot.hn-v184 #hnPhoneBack{order:1}
#handRoot#handRoot.hn-v184 .hn-top .hn-handline{order:3;flex:1 1 auto!important;min-width:0;position:static!important;grid-area:auto!important;display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:10px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;height:auto!important;color:#efe9ff}
#handRoot#handRoot.hn-v184 .hn-top .hn-handline>span{font-size:12px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
#handRoot#handRoot.hn-v184 .hn-top .hn-handline strong,#handRoot#handRoot.hn-v184 .hn-top .hn-handline b{color:#ffe08a}
#handRoot#handRoot.hn-v184 .hn-top .hn-ready-badge{font-size:11px!important;padding:2px 8px;border-radius:10px;background:#ffd23f;color:#3a2600!important}
#handRoot#handRoot.hn-v184 .hn-round-tools{order:4;display:flex!important;margin:0!important;flex:none;gap:6px!important}
#handRoot#handRoot.hn-v184 #hnHelp{order:5;width:30px;padding:0!important}
#handRoot#handRoot.hn-v184 #hnPhoneFull{order:6;width:34px;padding:0!important}
#handRoot#handRoot.hn-v184.hn-parent-bar #hnPhoneBack,#handRoot#handRoot.hn-v184.hn-parent-bar #hnPhoneFull{display:none!important}
/* main: stage over dock */
#handRoot#handRoot.hn-v184 .hn-table{grid-area:auto!important;position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) var(--dock184)!important;grid-template-areas:none!important;gap:4px!important;padding:6px 8px 4px!important;min-height:0!important;height:auto!important;overflow:visible!important;background:none!important}
#handRoot#handRoot.hn-v184 #hnNotice{display:none!important}
#handRoot#handRoot.hn-v184 .hn-stage184{position:relative;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) var(--center184);gap:8px;padding:6px;border-radius:18px;background:radial-gradient(ellipse at 40% 35%,#18617a,#0a3a4f 75%);border:2px solid #c9a65c99;box-shadow:inset 0 0 0 1px #00000040,0 6px 18px #0006}
#handRoot#handRoot.hn-v184 .hn-center184{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:0;min-width:0}
/* piles */
#handRoot#handRoot.hn-v184 .hn-piles{position:static!important;inset:auto!important;transform:none!important;grid-area:auto!important;display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:center!important;gap:16px!important;width:auto!important;height:auto!important;margin:0!important;padding:0!important;background:none!important;border:0!important}
#handRoot#handRoot.hn-v184 .hn-pile{position:relative!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;width:var(--pw184)!important;min-width:0!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important}
#handRoot#handRoot.hn-v184 .hn-pile>.hn-card,#handRoot#handRoot.hn-v184 .hn-pile>.hn-back,#handRoot#handRoot.hn-v184 .hn-pile>.hn-empty{position:relative!important;inset:auto!important;transform:none!important;display:block!important;width:var(--pw184)!important;height:calc(var(--pw184)*1.4)!important;margin:0!important;border-radius:7px!important;box-sizing:border-box}
#handRoot#handRoot.hn-v184 .hn-pile>.hn-back img{width:100%;height:100%;object-fit:cover;border-radius:7px;display:block}
#handRoot#handRoot.hn-v184 .hn-pile>.hn-empty{border:2px dashed #ffffff55!important;background:#ffffff10!important}
#handRoot#handRoot.hn-v184 .hn-stock-count{position:absolute!important;top:-6px!important;left:-6px!important;right:auto!important;bottom:auto!important;transform:none!important;min-width:22px;height:22px;padding:0 4px;border-radius:11px!important;background:#0b1630!important;color:#fff!important;border:1.5px solid #ffffffaa!important;font:700 11px/19px 'IBM Plex Sans Arabic',sans-serif!important;text-align:center;z-index:2}
#handRoot#handRoot.hn-v184 .hn-pile>small{position:static!important;transform:none!important;display:block!important;margin:4px 0 0!important;padding:0!important;font:700 12px/1.2 'IBM Plex Sans Arabic',sans-serif!important;color:#e5f4f8!important;white-space:nowrap;background:none!important;text-shadow:0 1px 2px #0008}
#handRoot#handRoot.hn-v184 .hn-pile:not(:disabled)>.hn-back,#handRoot#handRoot.hn-v184 .hn-pile:not(:disabled)>.hn-card{box-shadow:0 0 0 3px #ffd23f,0 0 16px #ffd23f88!important}
/* turn + staged total */
#handRoot#handRoot.hn-v184 .hn-turn{flex:none!important;position:static!important;inset:auto!important;transform:none!important;grid-area:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;width:100%!important;max-width:230px!important;min-height:0!important;height:auto!important;margin:0!important;padding:4px 10px!important;border-radius:14px!important;background:#0b1630bb!important;border:1px solid #ffffff30!important;box-shadow:none!important;text-align:center}
#handRoot#handRoot.hn-v184 .hn-turn.hn-your-turn{background:#0f5132!important;border:2px solid #34d399!important;box-shadow:0 0 14px #34d39966!important}
#handRoot#handRoot.hn-v184 .hn-turn strong{font-size:13px!important;line-height:1.3!important;color:#fff!important;white-space:nowrap}
#handRoot#handRoot.hn-v184 .hn-turn small{display:block!important;font-size:11px!important;line-height:1.3!important;color:#c9f5df!important;white-space:normal!important;overflow:visible!important}
#handRoot#handRoot.hn-v184 .hn-center184 .hn-count-summary{position:static!important;display:flex!important;flex-direction:column;align-items:center;gap:0;width:100%;max-width:230px;margin:0!important;padding:3px 8px!important;border-radius:12px;background:#3b2a05cc;border:1px solid #ffd23f99;color:#fff3c4;font-size:12px!important;text-align:center;box-sizing:border-box}
#handRoot#handRoot.hn-v184 .hn-center184 .hn-count-summary[hidden]{display:none!important}
#handRoot#handRoot.hn-v184 .hn-center184 .hn-count-summary small{font-size:11px!important;color:#ffe9a6}
#handRoot#handRoot.hn-v184 .hn-center184 .hn-count-summary.hn-count-ready{background:#0f5132e6;border-color:#34d399}
/* melds: one row per player, seat info in the row label */
#handRoot#handRoot.hn-v184 .hn-meld-area{position:static!important;inset:auto!important;transform:none!important;grid-area:auto!important;display:flex!important;flex-direction:column!important;width:auto!important;max-width:none!important;height:auto!important;max-height:none!important;min-height:0!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:12px!important;background:#06223399!important;box-shadow:none!important;overflow:hidden!important}
#handRoot#handRoot.hn-v184 .hn-meld-area-head{position:static!important;display:flex!important;align-items:center!important;gap:6px!important;height:26px!important;min-height:26px!important;padding:0 8px!important;margin:0!important;border:0!important;border-bottom:1px solid #ffffff1f!important;background:none!important}
#handRoot#handRoot.hn-v184 .hn-meld-area-head strong{font-size:12.5px!important;color:#ffe08a!important;flex:none}
#handRoot#handRoot.hn-v184 .hn-meld-area-head small{flex:1;min-width:0;font-size:11px!important;color:#cfe3ea!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block!important}
#handRoot#handRoot.hn-v184 .hn-meld-view{position:static!important;flex:none;height:22px!important;min-height:22px!important;padding:0 8px!important;border-radius:11px!important;border:1px solid #ffd23f99!important;background:#ffd23f22!important;color:#ffe08a!important;font:700 11px/1 'IBM Plex Sans Arabic',sans-serif!important;box-shadow:none!important}
#handRoot#handRoot.hn-v184 .hn-meld-area>.hn-count-summary{display:none!important}
#handRoot#handRoot.hn-v184 .hn-meld-scroll{position:static!important;flex:1 1 auto;min-height:0!important;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffd23f88 transparent;padding:0!important;margin:0!important;border:0!important;background:none!important}
#handRoot#handRoot.hn-v184 .hn-meld-scroll::-webkit-scrollbar{width:5px}#handRoot#handRoot.hn-v184 .hn-meld-scroll::-webkit-scrollbar-thumb{background:#ffd23f88;border-radius:3px}
#handRoot#handRoot.hn-v184 #hnBoard{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column!important;gap:0!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;background:none!important;overflow:visible!important}
#handRoot#handRoot.hn-v184 .hn-owner-row{display:grid!important;grid-template-columns:clamp(84px,15vw,118px) minmax(0,1fr)!important;align-items:center!important;gap:6px!important;min-height:0!important;height:auto!important;padding:4px 6px!important;margin:0!important;border:0!important;border-bottom:1px solid #ffffff17!important;border-radius:0!important;background:none!important}
#handRoot#handRoot.hn-v184 .hn-owner-row:last-child{border-bottom:0!important}
#handRoot#handRoot.hn-v184 .hn-owner-row.hn-owner-turn{background:#34d3991c!important}
#handRoot#handRoot.hn-v184 .hn-owner-label{position:static!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;min-width:0!important;width:auto!important;padding:0!important;margin:0!important;background:none!important;border:0!important;text-align:start}
#handRoot#handRoot.hn-v184 .hn-seat184{flex:none;width:30px;height:30px;border-radius:50%;background:#1d2a55 url('/game/hand/art/players-v159.png') calc(var(--portrait)*50%) 12%/300% auto no-repeat;border:2px solid #ffffff40;box-sizing:border-box}
#handRoot#handRoot.hn-v184 .hn-seat184.hn-seat-me{background:#2dd4bf;border-color:#a7f3e8}
#handRoot#handRoot.hn-v184 .hn-owner-turn .hn-seat184{border-color:#34d399;box-shadow:0 0 0 2px #34d39977,0 0 10px #34d399aa}
#handRoot#handRoot.hn-v184 .hn-seat-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}
#handRoot#handRoot.hn-v184 .hn-seat-text b{font-size:12.5px!important;color:#fff!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#handRoot#handRoot.hn-v184 .hn-owner-me .hn-seat-text b{color:#7ff0dc!important}
#handRoot#handRoot.hn-v184 .hn-seat-text small{font-size:10.5px!important;color:#c3d6e0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block!important}
#handRoot#handRoot.hn-v184 .hn-owner-melds{position:static!important;display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;gap:5px 6px!important;min-width:0!important;width:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;background:none!important;border:0!important}
#handRoot#handRoot.hn-v184 .hn-owner-empty{font-size:11px!important;color:#a8c3cf!important;opacity:.85}
#handRoot#handRoot.hn-v184 .hn-owner-unused{padding-block:2px!important}
#handRoot#handRoot.hn-v184 .hn-owner-unused .hn-seat184{width:24px;height:24px}
/* a meld group: mini cards + points */
#handRoot#handRoot.hn-v184 .hn-meld{position:relative!important;inset:auto!important;transform:none!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:0!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:3px 4px!important;border-radius:9px!important;border:1px solid #ffffff2e!important;background:#ffffff14!important;box-shadow:none!important;direction:ltr;cursor:pointer;flex:none}
#handRoot#handRoot.hn-v184 .hn-meld>small{display:none!important}
#handRoot#handRoot.hn-v184 .hn-meld .hn-card,#handRoot#handRoot.hn-v184 .hn-pending .hn-card{position:relative!important;display:inline-block!important;flex:none;width:var(--mcw)!important;height:calc(var(--mcw)*1.4)!important;margin:0 0 0 calc(var(--mcw)*-.42)!important;border-radius:4px!important;box-shadow:-1px 0 2px #0005!important;transform:none!important;overflow:hidden}
#handRoot#handRoot.hn-v184 .hn-meld .hn-card:first-child,#handRoot#handRoot.hn-v184 .hn-pending .hn-card:first-child{margin-left:0!important}
#handRoot#handRoot.hn-v184 :is(.hn-meld,.hn-pending) .hn-corner:not(.hn-bottom){position:absolute!important;inset:1px auto auto 1px!important;font-size:calc(var(--mcw)*.42)!important;line-height:.95!important;padding:0!important;background:none!important}
#handRoot#handRoot.hn-v184 :is(.hn-meld,.hn-pending) .hn-corner .hn-suit{width:calc(var(--mcw)*.34)!important;height:calc(var(--mcw)*.34)!important}
#handRoot#handRoot.hn-v184 :is(.hn-meld,.hn-pending) :is(.hn-bottom,.hn-court-suit){display:none!important}
#handRoot#handRoot.hn-v184 :is(.hn-meld,.hn-pending) .hn-pip{inset:42% 6% 4% 30%!important;font-size:calc(var(--mcw)*.5)!important}
#handRoot#handRoot.hn-v184 :is(.hn-meld,.hn-pending) .hn-pip>.hn-suit{width:calc(var(--mcw)*.48)!important;height:calc(var(--mcw)*.48)!important}
#handRoot#handRoot.hn-v184 .hn-meld-points{position:static!important;inset:auto!important;transform:none!important;order:9;display:flex!important;flex-direction:column;align-items:center;justify-content:center;min-width:24px;margin:0 0 0 5px!important;padding:0!important;background:none!important;border:0!important;color:#ffe08a!important;line-height:1}
#handRoot#handRoot.hn-v184 .hn-meld-points b{font-size:13px!important}
#handRoot#handRoot.hn-v184 .hn-meld-points small{font-size:8.5px!important;color:#d9e6ec!important}
#handRoot#handRoot.hn-v184 #hnBoard.target .hn-meld{border:1.5px dashed #5eead4!important;background:#5eead41f!important}
#handRoot#handRoot.hn-v184 .hn-card.hn-attached-pending{outline:2px solid #ffd23f;outline-offset:-2px}
#handRoot#handRoot.hn-v184 .hn-draft{position:static!important;display:contents!important}
#handRoot#handRoot.hn-v184 .hn-draft>span{font-size:10.5px;color:#ffe08a;padding:2px 6px;border-radius:8px;background:#ffd23f1f}
#handRoot#handRoot.hn-v184 .hn-pending{position:relative!important;display:inline-flex!important;flex-direction:row-reverse!important;align-items:center!important;gap:5px!important;margin:0!important;padding:3px 5px!important;border-radius:9px!important;border:1.5px dashed #ffd23f!important;background:#ffd23f1c!important;opacity:1!important;white-space:nowrap}
#handRoot#handRoot.hn-v184 .hn-pending-cards{display:flex!important;direction:ltr}
#handRoot#handRoot.hn-v184 .hn-pending-label{position:static!important;display:flex!important;flex-direction:column;align-items:center;gap:0;font-size:9px!important;line-height:1.15;color:#ffe9a6!important;background:none!important;padding:0!important}
#handRoot#handRoot.hn-v184 .hn-pending-label b{font-size:12px!important;color:#ffd23f!important}
/* expanded board: the stage belongs to the melds until "رجوع للطاولة" */
#handRoot#handRoot.hn-v184.hn-melds-expanded .hn-stage184{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
#handRoot#handRoot.hn-v184.hn-melds-expanded .hn-center184{display:none!important}
#handRoot#handRoot.hn-v184.hn-melds-expanded{--mcw:clamp(26px,7.4vh,36px)}
/* hand dock */
#handRoot#handRoot.hn-v184 .hn-dock184{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:8px;min-height:0;min-width:0}
#handRoot#handRoot.hn-v184 .hn-dock-sort{display:flex;align-items:flex-end;padding-bottom:4px}
#handRoot#handRoot.hn-v184 #hnHand{position:relative!important;inset:auto!important;transform:none!important;grid-area:auto!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;width:auto!important;height:100%!important;max-height:none!important;min-height:0!important;margin:0!important;padding:18px 2px 2px!important;box-sizing:border-box!important;overflow:visible!important;background:none!important;border:0!important}
#handRoot#handRoot.hn-v184 .hn-private-group{position:relative!important;display:flex!important;flex-wrap:nowrap!important;direction:ltr!important;width:max-content!important;max-width:none!important;height:auto!important;margin:0 auto!important;padding:0!important;border:0!important;background:none!important;gap:0!important}
#handRoot#handRoot.hn-v184 .hn-private-group .hn-card{width:var(--display-cw)!important;height:calc(var(--display-cw)*1.4)!important;margin:0 0 0 calc(var(--step) - var(--display-cw))!important;border-radius:calc(var(--display-cw)*.11)!important;flex:none}
#handRoot#handRoot.hn-v184 .hn-private-group .hn-card:first-child{margin-left:0!important}
#handRoot#handRoot.hn-v184 .hn-private-group .hn-card .hn-corner{font-size:calc(var(--display-cw)*.3)!important}
#handRoot#handRoot.hn-v184 .hn-private-group .hn-card .hn-corner .hn-suit{width:calc(var(--display-cw)*.21)!important;height:calc(var(--display-cw)*.21)!important}
#handRoot#handRoot.hn-v184 .hn-private-group .hn-card.chosen{transform:translateY(-14px)!important}
#handRoot#handRoot.hn-v184 .hn-private-group.hn-grid-hand{display:grid!important;grid-template-columns:repeat(var(--hand-cols),var(--step))!important;grid-template-rows:repeat(2,var(--hand-row-h))!important;row-gap:22px!important;width:var(--fan-width)!important}
#handRoot#handRoot.hn-v184 .hn-private-group.hn-grid-hand .hn-card{margin:0!important}
#handRoot#handRoot.hn-v184 .hn-place{pointer-events:auto!important;position:absolute!important;width:22px!important;height:22px!important;min-height:0!important;padding:0!important;border-radius:50%!important;border:1.5px solid #fff!important;background:#0e9f8ee6!important;color:#fff!important;font:700 12px/18px sans-serif!important;box-shadow:0 2px 6px #0007!important;z-index:5;opacity:.92}
#handRoot#handRoot.hn-v184 .hn-place{width:24px!important;height:calc(var(--display-cw)*.68)!important;margin-top:calc(var(--display-cw)*-.2 + 11px)!important;border:0!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;opacity:1}#handRoot#handRoot.hn-v184 .hn-place span{display:none}#handRoot#handRoot.hn-v184 .hn-place::before{content:'';position:absolute;left:11px;top:20%;bottom:0;width:2px;border-radius:1px;background:#85e4ef;box-shadow:none}
/* actions */
#handRoot#handRoot.hn-v184 .hn-tools{position:static!important;inset:auto!important;transform:none!important;grid-area:auto!important;display:grid!important;grid-auto-flow:column!important;grid-template-rows:repeat(2,auto)!important;grid-auto-columns:minmax(92px,auto);align-content:end;gap:6px!important;width:auto!important;height:auto!important;margin:0!important;padding:0 0 4px!important;background:none!important;border:0!important;box-shadow:none!important}
#handRoot#handRoot.hn-v184 :is(.hn-tools,.hn-dock-sort) button{position:static!important;transform:none!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 12px!important;border-radius:14px!important;font:700 13.5px/1 'IBM Plex Sans Arabic',system-ui,sans-serif!important;white-space:nowrap;border:1.5px solid #3b4a78!important;background:#16224a!important;color:#fff!important;box-shadow:0 3px 0 #0a1230!important;width:auto!important;max-width:none!important}
#handRoot#handRoot.hn-v184 .hn-tools #hnGroup{background:#2dd4bf!important;border-color:#2dd4bf!important;color:#062a26!important;box-shadow:0 3px 0 #0f8f80!important}
#handRoot#handRoot.hn-v184 .hn-tools #hnDiscard{background:#f6b73c!important;border-color:#f6b73c!important;color:#2a1a05!important;box-shadow:0 3px 0 #b7801c!important}
#handRoot#handRoot.hn-v184 .hn-tools #hnFinish{background:#ffd23f!important;border-color:#fff3!important;color:#3a2600!important;font-size:15px!important;box-shadow:0 3px 0 #b78a00,0 0 16px #ffd23f99!important}
#handRoot#handRoot.hn-v184 .hn-tools #hnJoker{background:#7c5cff!important;border-color:#7c5cff!important}
#handRoot#handRoot.hn-v184 .hn-tools :is(#hnGuide,#hnSort){display:none!important}
#handRoot#handRoot.hn-v184 .hn-tools button:disabled{opacity:.45}
#handRoot#handRoot.hn-v184 #hnFinish{order:-4}#handRoot#handRoot.hn-v184 #hnContinue{order:-3}#handRoot#handRoot.hn-v184 #hnDiscard{order:-2}#handRoot#handRoot.hn-v184 #hnGroup{order:-1}
#handRoot#handRoot.hn-v184 #hnSelection{position:absolute!important;left:50%;bottom:calc(100% + 1px);transform:translateX(-50%);z-index:3;display:block!important;max-width:min(92%,420px);padding:1px 10px!important;border-radius:10px;background:#0b1630d9;color:#d9f5ef!important;font-size:11px!important;line-height:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
#handRoot#handRoot.hn-v184 #hnSelection:empty{display:none!important}
/* very short landscape (browser bars visible) */
@media(orientation:landscape) and (max-height:300px){#handRoot#handRoot.hn-v184{--top184:30px;--dock184:clamp(76px,34vh,96px);--pw184:clamp(30px,13vh,40px);--mcw:22px}#handRoot#handRoot.hn-v184 .hn-top button{height:24px!important;min-height:24px!important;font-size:11px!important}#handRoot#handRoot.hn-v184 .hn-brand b{font-size:17px!important}#handRoot#handRoot.hn-v184 .hn-table{padding:3px 6px 2px!important;gap:2px!important}#handRoot#handRoot.hn-v184 .hn-stage184{padding:3px;border-radius:12px}#handRoot#handRoot.hn-v184 .hn-center184{gap:3px}#handRoot#handRoot.hn-v184 .hn-turn{padding:1px 6px!important}#handRoot#handRoot.hn-v184 .hn-turn small{display:none!important}#handRoot#handRoot.hn-v184 .hn-pile>small{font-size:10px!important}#handRoot#handRoot.hn-v184 :is(.hn-tools,.hn-dock-sort) button{height:32px!important;min-height:32px!important;font-size:12px!important;padding:0 9px!important}#handRoot#handRoot.hn-v184 .hn-tools{grid-auto-columns:minmax(76px,auto)}#handRoot#handRoot.hn-v184 #hnHand{padding-top:14px!important}#handRoot#handRoot.hn-v184 .hn-private-group .hn-card.chosen{transform:translateY(-10px)!important}#handRoot#handRoot.hn-v184 .hn-owner-row{padding:2px 5px!important}#handRoot#handRoot.hn-v184 .hn-seat184{width:22px;height:22px}#handRoot#handRoot.hn-v184 .hn-meld-area-head{height:22px!important;min-height:22px!important}}
/* portrait phone: center strip on top, owner rows below, two-row hand with actions under it */
#handRoot#handRoot.hn-v184.hn-v184-port{--top184:42px;--dock184:auto;--pw184:clamp(46px,14vw,62px);--mcw:clamp(22px,7vw,28px)}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-top{flex-wrap:nowrap;gap:4px!important;padding:3px 6px!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-top .hn-handline{flex-direction:column!important;gap:0!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-top .hn-handline>span{font-size:11px!important}
#handRoot#handRoot.hn-v184.hn-v184-port #hnPhoneBack span{display:none}
#handRoot#handRoot.hn-v184.hn-v184-port #hnPhoneBack{width:32px;padding:0!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-table{grid-template-rows:minmax(0,1fr) auto!important;padding:6px 6px 6px!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-stage184{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr);gap:6px}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184{order:-1;flex-direction:row;flex-wrap:wrap;gap:8px 12px;padding:2px 0}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184>.hn-turn,#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184>.hn-count-summary{flex:1 1 150px;max-width:220px!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-dock184{grid-template-columns:auto minmax(0,1fr);grid-template-rows:clamp(150px,27vh,236px) auto;align-items:stretch;gap:6px 8px}
#handRoot#handRoot.hn-v184.hn-v184-port #hnHand{grid-area:1/1/2/3!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-dock-sort{grid-area:2/1/3/2!important;padding:0}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-tools{grid-area:2/2/3/3!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-end;align-content:center;padding:0!important}
#handRoot#handRoot.hn-v184.hn-v184-port :is(.hn-tools,.hn-dock-sort) button{height:44px!important;min-height:44px!important;padding:0 14px!important;font-size:14px!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-tools button{flex:1 1 auto}
@media(orientation:portrait) and (max-width:360px){#handRoot#handRoot.hn-v184.hn-v184-port .hn-round-tools #hnScore{padding:0 7px!important;font-size:11.5px!important}#handRoot#handRoot.hn-v184.hn-v184-port .hn-brand b{font-size:18px!important}#handRoot#handRoot.hn-v184.hn-v184-port .hn-owner-row{grid-template-columns:84px minmax(0,1fr)!important}}
@media(orientation:portrait) and (max-width:360px){#handRoot#handRoot.hn-v184.hn-v184-port{--pw184:44px}#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184>.hn-turn{flex-basis:120px}#handRoot#handRoot.hn-v184.hn-v184-port .hn-top .hn-handline>span{font-size:10.5px!important}}
#handRoot#handRoot.hn-v184.hn-v184-port[data-hand-rows="1"] .hn-dock184{grid-template-rows:clamp(124px,18vh,160px) auto}
/* V184 landscape: piles + turn sit in the true middle of the felt; owner rows flow into two columns on either side. */
#handRoot#handRoot.hn-v184.hn-v184-land .hn-stage184{display:block!important;padding:0!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-meld-area{position:absolute!important;inset:0!important;background:none!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-meld-area-head{margin:4px 6px 0!important;border-radius:10px 10px 0 0!important;background:#06223380!important}
#handRoot#handRoot.hn-v184.hn-v184-land #hnBoard{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:calc(var(--center184) + 14px)!important;padding:0 6px 6px!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-owner-row{background:#06223373!important;border-bottom:1px solid #ffffff17!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-owner-row.hn-owner-turn{background:#14533f99!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184{position:absolute;top:32px;bottom:6px;left:50%;width:var(--center184);transform:translateX(-50%);z-index:2;pointer-events:none}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>*{pointer-events:auto}
#handRoot#handRoot.hn-v184.hn-v184-land.hn-melds-expanded #hnBoard{column-gap:12px!important}
#handRoot#handRoot.hn-v184 #hnSelection{left:auto!important;right:14px!important;transform:none!important}
@media(orientation:landscape) and (max-height:300px){#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184{top:26px;bottom:3px}}
/* portrait: piles centred above the turn badge */
#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184{flex-direction:column!important;flex-wrap:nowrap!important;gap:6px!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184>.hn-turn,#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184>.hn-count-summary{flex:none!important;width:min(100%,260px)!important;max-width:260px!important}
#handRoot#handRoot.hn-v184.hn-v184-land #hnBoard{display:block!important;column-count:2;column-gap:calc(var(--center184) + 14px);column-fill:balance}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-owner-row{break-inside:avoid;-webkit-column-break-inside:avoid;margin:0 0 4px!important;border-radius:10px!important;border-bottom:0!important}
#handRoot#handRoot.hn-v184.hn-v184-land.hn-melds-expanded #hnBoard{column-gap:12px}
@media(orientation:landscape){#handRoot#handRoot.hn-v184.hn-v184-land .hn-owner-row{grid-template-columns:minmax(0,1fr)!important;gap:3px!important}#handRoot#handRoot.hn-v184.hn-v184-land .hn-seat-text{flex-direction:row;align-items:baseline;gap:6px}#handRoot#handRoot.hn-v184.hn-v184-land .hn-seat184{width:22px;height:22px}}
#handRoot#handRoot.hn-v184 .hn-side184{display:contents}
#handRoot#handRoot.hn-v184.hn-v184-land #hnBoard{display:grid!important;column-count:auto;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-side184{display:flex;flex-direction:column;gap:4px;min-width:0}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-owner-row{margin:0!important}
#handRoot#handRoot.hn-v184 .hn-center184 #hnSelection{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;max-width:100%!important;white-space:normal!important;text-align:center;line-height:1.35!important;padding:2px 8px!important;background:#0b163099!important}
#handRoot#handRoot.hn-v184 .hn-center184>.hn-piles{order:0}#handRoot#handRoot.hn-v184 .hn-center184>.hn-turn{order:1}#handRoot#handRoot.hn-v184 .hn-center184>.hn-count-summary{order:2}#handRoot#handRoot.hn-v184 .hn-center184>#hnSelection{order:3;direction:rtl;unicode-bidi:plaintext}
#handRoot#handRoot.hn-v184 .hn-center184>#hnSelection:blank,#handRoot#handRoot.hn-v184 .hn-center184>#hnSelection:empty{display:none!important}
@media(orientation:landscape) and (max-height:430px){#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>#hnSelection{display:none!important}}
#handRoot#handRoot.hn-v184 :is(.hn-tools,.hn-dock-sort) button:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center}#handRoot#handRoot.hn-v184 .hn-tools :is(#hnGuide,#hnSort){display:none!important}
/* expanded board: one full-width row per player with the label beside the melds */
#handRoot#handRoot.hn-v184.hn-melds-expanded #hnBoard{display:flex!important;flex-direction:column!important;gap:4px!important}
#handRoot#handRoot.hn-v184.hn-melds-expanded .hn-side184{display:contents!important}
#handRoot#handRoot.hn-v184.hn-melds-expanded .hn-owner-row{grid-template-columns:clamp(84px,15vw,118px) minmax(0,1fr)!important;gap:6px!important}
#handRoot#handRoot.hn-v184.hn-melds-expanded .hn-seat-text{flex-direction:column!important;align-items:flex-start!important;gap:0!important}
#handRoot#handRoot.hn-v184.hn-melds-expanded .hn-seat184{width:28px;height:28px}
@media(orientation:portrait) and (max-height:700px){#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184>#hnSelection{display:none!important}}
#handRoot#handRoot.hn-v184.hn-melds-expanded #hnBoard{align-items:stretch!important}

/* V185: landscape board fills its scrollport; reserve an uninterrupted center lane. Portrait unchanged. */
#handRoot#handRoot.hn-v184.hn-v184-land .hn-meld-scroll{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important}
#handRoot#handRoot.hn-v184.hn-v184-land #hnBoard{width:100%!important;max-width:100%!important;box-sizing:border-box!important;column-gap:calc(var(--center184) + 24px)!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-side184{width:100%;box-sizing:border-box}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles{flex-direction:row!important;flex-wrap:nowrap!important;flex-shrink:0!important;gap:14px!important;width:100%!important;box-sizing:border-box!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles>.hn-pile{flex:0 0 var(--pw184)!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-turn,#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-count-summary{box-sizing:border-box!important;max-width:100%!important}
#handRoot#handRoot.hn-v184.hn-v184-land.hn-melds-expanded #hnBoard{column-gap:12px!important}

/* V186: draw piles receive real touch events above the full-size meld area. */
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184{z-index:4!important}
#handRoot#handRoot.hn-v184 .hn-piles>.hn-pile{touch-action:manipulation!important}
/* Portrait fullscreen cameras may report zero safe-area inset; retain a physical top clearance. */
#handRoot#handRoot.hn-v184.hn-v184-port.hn-phone-fullscreen{padding-top:max(env(safe-area-inset-top,0px),30px)!important;box-sizing:border-box!important}

/* v246: discard stays at table center; stock has its own lane to the right. */
#handRoot#handRoot.hn-layout-v174 .hn-piles{display:grid!important;grid-template-columns:minmax(0,1fr) var(--pile-w) minmax(0,1fr)!important;direction:ltr!important;gap:0!important;width:min(720px,100%)!important;max-width:100%!important;box-sizing:border-box!important;padding:3px 12px!important;align-items:start!important}
#handRoot#handRoot.hn-layout-v174 .hn-piles>#hnFire{grid-column:2!important;grid-row:1!important;justify-self:center!important}
#handRoot#handRoot.hn-layout-v174 .hn-piles>#hnStock{grid-column:3!important;grid-row:1!important;justify-self:end!important}
#handRoot#handRoot.hn-layout-v174 .hn-piles>.hn-pile>small{font-size:13px!important;font-weight:800!important;padding:3px 9px!important;border-radius:8px!important;background:#06293eee!important;line-height:18px!important}
#handRoot#handRoot.hn-layout-v174 #hnFire>small{color:#ffdf83!important;border:1px solid #c9a65c!important}
#handRoot#handRoot.hn-layout-v174 #hnStock>small{color:#9deaff!important;border:1px solid #489cb6!important}
#handRoot#handRoot.hn-v184 .hn-center184>.hn-piles{grid-template-columns:minmax(0,1fr) var(--pw184) minmax(0,1fr)!important;width:100%!important;max-width:100%!important;padding:2px 6px!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184{width:100%!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184>.hn-piles{width:min(100%,420px)!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles{grid-template-columns:minmax(0,1fr) var(--pw184) minmax(0,1fr)!important;grid-template-rows:auto auto!important;row-gap:18px!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles>#hnStock{grid-row:2!important}
@media(orientation:landscape) and (max-height:330px){#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles{row-gap:8px!important}#handRoot#handRoot.hn-layout-v174 .hn-piles>.hn-pile>small{font-size:10px!important;line-height:12px!important;padding:1px 5px!important}}

/* v246: discard stays at table center; stock has its own lane to the right. */
#handRoot#handRoot.hn-layout-v174 .hn-piles{display:grid!important;grid-template-columns:minmax(0,1fr) var(--pile-w) minmax(0,1fr)!important;direction:ltr!important;gap:0!important;width:min(720px,100%)!important;max-width:100%!important;box-sizing:border-box!important;padding:3px 12px!important;align-items:start!important}
#handRoot#handRoot.hn-layout-v174 .hn-piles>#hnFire{grid-column:2!important;grid-row:1!important;justify-self:center!important}
#handRoot#handRoot.hn-layout-v174 .hn-piles>#hnStock{grid-column:3!important;grid-row:1!important;justify-self:end!important}
#handRoot#handRoot.hn-layout-v174 .hn-piles>.hn-pile>small{font-size:13px!important;font-weight:800!important;padding:3px 9px!important;border-radius:8px!important;background:#06293eee!important;line-height:18px!important}
#handRoot#handRoot.hn-layout-v174 #hnFire>small{color:#ffdf83!important;border:1px solid #c9a65c!important}
#handRoot#handRoot.hn-layout-v174 #hnStock>small{color:#9deaff!important;border:1px solid #489cb6!important}
#handRoot#handRoot.hn-v184 .hn-center184>.hn-piles{grid-template-columns:minmax(0,1fr) var(--pw184) minmax(0,1fr)!important;width:100%!important;max-width:100%!important;padding:2px 6px!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184{width:100%!important}
#handRoot#handRoot.hn-v184.hn-v184-port .hn-center184>.hn-piles{width:min(100%,420px)!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles{grid-template-columns:minmax(0,1fr) var(--pw184) minmax(0,1fr)!important;grid-template-rows:auto auto!important;row-gap:18px!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles>#hnStock{grid-row:2!important}
@media(orientation:landscape) and (max-height:330px){#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles{row-gap:8px!important}#handRoot#handRoot.hn-layout-v174 .hn-piles>.hn-pile>small{font-size:10px!important;line-height:12px!important;padding:1px 5px!important}}

/* Preserve left-to-right fan stacking when selecting cards, so neighboring ranks stay visible. */
#handRoot#handRoot .hn-private-group .hn-card{position:relative;z-index:var(--hand-stack,1)!important}
/* The V246 mobile columns need grid display: the previous flex rule prevented
   the discard from occupying its centered lane. Keep stock separate. */
#handRoot#handRoot.hn-v184 .hn-center184>.hn-piles{display:grid!important;direction:ltr!important;column-gap:0!important;align-items:start!important}
#handRoot#handRoot.hn-v184 .hn-center184>.hn-piles>#hnFire{grid-column:2!important;grid-row:1!important;justify-self:center!important}
#handRoot#handRoot.hn-v184 .hn-center184>.hn-piles>#hnStock{grid-column:3!important;grid-row:1!important;justify-self:end!important}
#handRoot#handRoot.hn-v184.hn-v184-land .hn-center184>.hn-piles>#hnStock{grid-row:2!important}
/* Translate text direction without changing the card fan, discard lane or meld order. */
#handRoot#handRoot[dir="ltr"] .hn-brand,#handRoot#handRoot[dir="ltr"] .hn-round-tools,#handRoot#handRoot[dir="ltr"] .hn-turn,#handRoot#handRoot[dir="ltr"] .hn-notice,#handRoot#handRoot[dir="ltr"] .hn-owner-label,#handRoot#handRoot[dir="ltr"] .hn-handline,#handRoot#handRoot[dir="ltr"] .hn-meld-head,#handRoot#handRoot[dir="ltr"] .hn-seat-text,#handRoot#handRoot[dir="ltr"] #hnSelection{direction:ltr!important}
#handRoot#handRoot[dir="ltr"] .hn-player,#handRoot#handRoot[dir="ltr"] .hn-lobby-options label{text-align:start!important}