/* Built by widecss.py from the phone rules in styles.css. Do not edit: change styles.css or game-wide-extra.css. */
@media(min-width:701px){
.am-lines{grid-template-columns:1fr}
body.is-playing{padding-top:0}
body.is-playing .site-header{display:none}
body.is-playing .play{padding:0;background:var(--ivory)}
body.is-playing .play-panel{padding:6px 10px 10px;background:var(--ivory)}
.game{min-height:0}
.g-top{flex-wrap:nowrap;gap:10px;padding-bottom:6px;align-items:center}
.g-home{display:block;flex:none}
.g-home img{display:block;width:34px;height:30px}
.g-info{flex:1;font-size:.6rem;letter-spacing:.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-long{display:none}
.g-short{display:inline}
.g-settings-btn{display:inline-block;flex:none;font-size:.62rem;padding:6px 0}
.g-toggles{display:none}
.show-settings .g-toggles{display:flex;position:absolute;top:42px;left:0;right:0;z-index:15;background:var(--ivory);border:1px solid rgba(23,61,50,.15);border-radius:4px;padding:6px 14px;gap:2px 16px;box-shadow:0 10px 24px rgba(23,61,50,.12)}
.g-table{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:6px}
.g-table .g-seat{display:block;padding:6px 0 0;min-height:0}
.g-seat .g-head{flex-direction:row;align-items:baseline;gap:4px;flex-wrap:wrap}
.g-seat .g-head strong{font-size:1rem}
.g-seat .g-wind{font-size:.8rem}
.g-seat .g-place,.g-seat .g-think{display:none}
.g-seat .g-count{display:block;width:100%;margin:0;font-size:.56rem}
.g-seat .g-backs{display:none}
.g-seat .g-melds{margin:4px 0 0;gap:3px 5px}
.g-seat .g-melds .gt-s{width:12px}
.g-pond{gap:2px;margin-top:4px;min-height:0}
.g-pond .gt-s{width:16px}
.g-pond .gt:nth-last-child(n+7){display:none}
.g-empty{font-size:.52rem}
.g-table .g-centre{min-height:0;padding:6px 0;margin-top:4px;gap:12px}
.gt-l{width:38px}
.g-last .spec{font-size:.5rem}
.g-msg{font-size:.88rem;line-height:1.45}
.g-me{margin-top:2px;padding-top:6px}
.g-me .g-head strong{font-size:1.05rem}
.g-me .g-head .spec{font-size:.58rem}
.g-me .g-pond{display:inline-flex;vertical-align:top;margin-top:4px}
.g-melds-me{display:inline-flex;margin:4px 0 0 8px}
.g-melds-me .gt-m{width:20px}
.g-hand{margin:10px 0 4px;padding-top:10px;gap:4px}
.gh{width:calc((100% - 24px) / 7);max-width:50px}
.gh.is-sel,.gh.is-sel:hover{transform:translateY(-8px)}
.g-actions{min-height:0;margin-top:4px}
.g-btns{gap:8px}
.g-btns .btn{padding:13px 16px;font-size:.66rem}
.g-ask{margin:0 0 6px;font-size:.88rem}
.g-coach{font-size:.84rem;line-height:1.45;margin-top:6px;min-height:0}
.g-coach .eyebrow{font-size:.58rem}
.am-target{margin-top:6px;padding-top:6px}
.am-target .gt-s{width:17px}
.am-target .spec{font-size:.56rem;margin-bottom:4px}
.am-card{margin-top:12px}
.gh.is-spare::before{display:none}
.g-explain{font-size:.8rem;margin-bottom:6px}
.gh.is-use{transform:translateY(-7px)}
body.is-playing .game{min-height:calc(100svh - 16px);min-height:calc(100dvh - 16px);display:flex;flex-direction:column}
body.is-playing .g-table{flex:1;align-content:start}
body.is-playing .g-centre{align-self:center}
body.is-playing .g-me{padding-bottom:env(safe-area-inset-bottom)}
.g-hand{row-gap:12px;padding-top:14px}
.g-actions{margin-top:16px}
.g-coach{margin-top:10px}
.g-prompt{margin-top:8px;font-size:.82rem}
.g-guide-t .gt-m{width:30px}
.g-guide-row{padding:10px 0}
.g-tiles-btn{flex:none;font-size:.62rem;padding:6px 0;margin-left:0}
.am-note{font-size:1.02rem;letter-spacing:.03em}
.g-rowlabel{font-size:.5rem;margin-right:4px}
.g-table .is-seat3{order:1}
.g-table .is-seat2{order:2}
.g-table .is-seat1{order:3}
.g-table .g-centre{order:4}
.g-seat .g-place{display:block;width:100%;margin:1px 0 0;font-size:.5rem;letter-spacing:.08em;color:#9B5148}
.g-seat .g-head{flex-wrap:wrap}
.g-seat .g-melds .gt-s{width:21px}
.g-pond .gt-s{width:24px}
.g-seat .g-pond,.g-seat .g-melds{flex-wrap:wrap}
.g-seat .g-rowlabel{display:block;width:100%;margin:0 0 2px}
.g-me .g-pond .gt-s{width:26px}
.am-line-tiles .gt-xs{width:19px}
.am-line-tiles{gap:4px 7px}
.am-target .gt-s{width:22px}
.am-target .spec{font-size:.62rem}
.site-header{flex-wrap:wrap}
.site-header .header-note{order:3;width:100%;margin-left:0}
.g-info{font-size:.66rem}
.g-pill{font-size:.64rem;padding:1px 7px}
.g-table{gap:6px}
.g-table .g-seat{padding:6px 7px}
.g-seat .g-sub{font-size:.66rem}
.g-seat .g-place,.g-seat .g-count{display:none}
.g-table .g-centre{gap:8px;margin-top:8px}
.g-ponds{padding:7px 8px;gap:4px}
.g-ponds .g-rowlabel{width:48px;font-size:.66rem}
.g-ponds .g-pond .gt-s{width:15px}
.g-me .g-sub{font-size:.7rem}
.g-next{padding:9px 10px;margin-top:8px}
.g-next-title{font-size:.92rem}
.g-next .g-coach{font-size:.82rem}
.g-next .btn{padding:10px 14px;font-size:.66rem}
.g-hand{margin-top:10px}
body.is-playing .g-table{flex:none}
.g-hand{row-gap:20px}
.g-hand .gh.is-gs{margin-left:6px}
.g-hand .gh.is-new{margin-left:8px}
.g-ponds .g-pond .gt-s{width:26px}
.g-ponds .g-rowlabel{padding-top:8px}
.g-seat .g-melds .gt-s,.g-seat .g-flowers .gt-s{width:20px}
.g-seat .g-melds .g-meld{display:inline-flex;gap:1px}
.g-hand .gh{width:min(46px,calc((100vw - 84px) / 7))}
.g-hand{gap:4px}
.g-claim .gt-m{width:28px}
.g-claim{gap:9px}
.g-hand{column-gap:6px;row-gap:10px}
.g-grp-tiles{gap:3px}
.g-hand .g-grp .gh{width:min(44px,calc((100vw - 104px) / 7))}
.g-grp.is-set .g-grp-tiles{padding:2px;border-radius:7px}
.g-grp-name{font-size:.62rem}
.g-need p{font-size:.8rem}
.g-need-tiles .gt-s{width:24px}
.g-grp.is-part .g-grp-tiles{padding:2px;border-radius:7px}
#game .g-seat{min-height:76px}
#game .g-head{min-height:62px}
#game .g-next{min-height:182px}
#game .g-hand{min-height:258px}
#game .g-next{min-height:0}
#game .g-hand{min-height:0}
#game .g-seat{min-height:0}
#game .g-head{min-height:0}
#game .g-me>.g-head{margin:0}
#game .g-next{min-height:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#game .g-next .g-coach{flex:1 1 200px;margin:0}
#game .g-next .g-pick{flex:none;margin:0 0 0 auto}
#game .g-hand{min-height:0}
.g-hand .g-handlab{margin:0 0 -4px}
.pm{height:84px}
.pm-seat{font-size:.74rem}
.g-centre:has(.pm) .g-centre-top{display:none}
.g-table .g-seat .g-head{gap:0 6px}
.g-table .g-seat .g-head .cc-av{width:20px;height:20px;margin:0}
.pm{height:66px}
.g-centre:has(.pm) .g-ponds{padding-top:4px;padding-bottom:4px}
.g-bar{min-height:0;padding-top:8px;gap:6px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
#game .g-bar .btn{min-height:48px}
.g-bar-btns{min-height:48px}
#game .g-grp-name{margin-top:2px}
#game .g-me>.g-head{min-height:0;padding:0}
body:has(#game .g-bar) .f-chat{bottom:calc(122px + env(safe-area-inset-bottom));right:12px}
#game .g-top{padding-top:2px;padding-bottom:2px;min-height:0}
#game .g-table{gap:6px}
#game .g-table .g-seat{padding:5px 8px;min-height:0}
#game .g-table .g-seat .g-head{min-height:0}
#game .g-table .g-seat .g-head strong{font-size:.98rem}
#game .g-table .g-seat .g-sub{font-size:.72rem}
#game .g-centre{overflow-y:auto;overscroll-behavior:contain;min-height:44px;padding-top:4px;padding-bottom:4px}
#game .g-centre .g-centre-top{display:flex;min-height:0;gap:8px;margin:0 0 4px}
#game .g-centre-top .g-last{flex-direction:row;gap:0}
#game .g-centre-top .g-last .gt-l{width:26px}
#game .g-centre-top .g-last .spec{display:none}
#game .g-centre-top .g-msg{margin:0;font-size:.88rem;line-height:1.3}
#game .g-ponds{padding:5px 6px;gap:3px}
#game .g-ponds .g-rowlabel{width:46px;font-size:.64rem;padding-top:3px}
#game .g-ponds .g-pond .gt-s{width:19px}
#game .g-ponds .g-pond-tiles{gap:2px}
#game .g-ponds .g-empty{font-size:.76rem}
#game .g-ponds:has(.pm:not(.is-play)){display:none}
#game .pm{height:34px}
#game .pm .pm-seat{display:none}
#game .g-me>.g-head{display:none}
#game .g-me{padding-top:4px}
#game .g-next{padding:6px 10px;margin:0 0 4px;gap:8px}
#game .g-next .g-next-title{display:none}
#game .g-next .g-coach{font-size:.84rem;line-height:1.3}
#game .g-next .g-pick{min-height:38px;padding:0 12px;font-size:.84rem}
#game .g-hand{margin:6px 0 2px;padding-top:12px;column-gap:4px;row-gap:12px;align-items:flex-start;justify-content:center}
#game .g-hand .gh{width:min(40px,calc((100vw - 62px) / 8))}
#game .g-hand .gh.is-hint{margin-left:3px;margin-right:3px}
#game .g-hand .g-handlab.is-fit{display:none}
#game .g-hand .g-handlab.is-spare{flex:0 0 auto;align-self:center;margin:0 1px 12px 3px;font-size:.62rem;letter-spacing:.04em;text-transform:uppercase;color:#8A6F5D;writing-mode:vertical-rl;transform:rotate(180deg)}
#game .g-hand .g-hl-long{display:none}
#game .g-hand .g-hl-short{display:inline}
#game .g-grp-tiles{gap:2px}
#game .g-grp-name{font-size:.58rem;margin-top:1px}
#game .g-bar{padding-top:6px;gap:5px}
#game .g-bar .g-bar-hint{font-size:.9rem}
#game .g-centre .g-centre-top{position:sticky;top:-4px;z-index:2;background:#F7F0E3;padding:2px 0}
#game:has(.g-table){--top-h:46px;--coach-h:64px;--hand-h:164px;--bar-h:106px}
#game:has(.g-bar .f-clock){--bar-h:130px}
#game:has(.g-table) .g-top{height:var(--top-h);box-sizing:border-box;margin:0;padding:0 0 2px;overflow:hidden;align-items:center}
#game .g-top .g-info{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px;margin:0}
#game .g-table{height:calc(100dvh - var(--top-h) - var(--coach-h) - var(--hand-h) - var(--bar-h) - var(--slack,22px));min-height:140px;box-sizing:border-box;margin:6px 0 0;display:grid;grid-template-rows:auto minmax(0,1fr);align-content:stretch;overflow:hidden}
#game .g-table .g-seat .g-head{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;column-gap:5px;row-gap:0}
#game .g-table .g-seat .g-head>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.9rem;min-width:0}
#game .g-table .g-seat .g-head .g-sub{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#game .g-table .g-seat .g-head .cc-av{width:20px;height:20px}
#game .g-centre{max-height:none!important;min-height:0;height:auto;overflow-y:auto}
#game .g-ponds:has(.pm){display:none}
#game .g-me{padding:0;margin:6px 0 0;border-top-width:1px}
#game .g-me .g-next,#game .g-me .g-next:empty{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;height:var(--coach-h);box-sizing:border-box;margin:0;padding:5px 10px;overflow:hidden}
#game .g-me .g-next:empty{visibility:hidden}
#game .g-next .g-coach{flex:1 1 auto;min-width:0;margin:0;font-size:.8rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
#game .g-next .g-claim-info{flex:1 1 auto;min-width:0;font-size:.8rem;line-height:1.3;margin:0}
#game .g-next .g-pick{flex:none;margin:0}
#game .g-me .g-hand{height:var(--hand-h);box-sizing:border-box;margin:0;padding-top:14px;align-content:flex-start;overflow:visible}
#game .g-hv{display:none}
#game .g-me .g-bar{height:var(--bar-h);min-height:0;box-sizing:border-box;padding:6px 14px calc(8px + env(safe-area-inset-bottom));display:flex;flex-direction:column;justify-content:flex-end;gap:5px;overflow:hidden}
#game .g-bar .g-bar-hint{min-height:2.5em;display:flex;align-items:center;justify-content:center;text-align:center;font-size:.86rem;line-height:1.25;margin:0}
#game .g-bar .g-bar-btns{min-height:46px;flex:none}
#game .g-bar .btn{min-height:46px}
#game .g-bar .f-clock[hidden]{display:block!important;visibility:hidden}
#game .g-bar .f-clock{flex:none;margin:0 0 2px;min-height:22px}
#game .g-me .g-hand .gh{width:min(38px,calc((100vw - 58px) / 9))}
#game .g-me .g-hand{column-gap:3px;row-gap:10px}
#game .g-hand .gh.is-hint{margin-left:2px;margin-right:2px}
#game .g-top .g-info{flex-wrap:wrap;row-gap:1px;font-size:.82rem;line-height:1.15}
#game .g-top .g-pill{font-size:.72rem;padding:1px 8px}
#game .g-table .g-centre{align-self:start;max-height:100%!important}
#game .g-me .g-bar:has(.g-bar-btns>:nth-child(4)){height:auto;min-height:var(--bar-h);overflow:visible}
#game .g-bar-btns:has(>:nth-child(4)){flex-wrap:wrap;gap:6px}
#game .g-bar-btns:has(>:nth-child(4))>.btn{flex:1 1 30%;min-width:0;min-height:42px;padding:4px 8px;font-size:.88rem}
#game .g-bar-btns:has(>:nth-child(4))>.g-win{flex-basis:100%;order:9}
body.is-lesson .site-header .header-note{display:none}
#game:has(.g-table){--coach-h:40px;--tw:min(56px,calc((100vw - 34px) / 7));--hand-h:calc(var(--tw) * 2.72 + 18px);--bar-h:calc(142px + env(safe-area-inset-bottom))}
#game:has(.g-bar .f-clock){--bar-h:calc(166px + env(safe-area-inset-bottom))}
#game:has(.g-me.coach-off){--coach-h:0px}
#game .g-table{background:#1F4A3D;border:2px solid var(--gold);border-radius:18px;padding:7px;row-gap:6px;column-gap:6px}
#game .g-table .g-seat{background:#173D32;border:1px solid transparent;border-radius:12px;color:#F7F0E3;padding:5px 7px 6px}
#game .g-table .g-seat.is-turn,#game .g-table .g-seat.is-active{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
#game .g-table .g-seat strong{color:#F7F0E3}
#game .g-table .g-seat .g-sub{color:#C6D1C6}
#game .g-table .g-seat .g-wind{color:#E9C98A}
#game .g-table .g-backs,#game .g-table .g-seat .g-rowlabel{display:none}
#game .g-table .g-seat .g-melds,#game .g-table .g-seat .g-flowers{display:flex;flex-wrap:wrap;gap:2px 5px;margin:4px 0 0;align-items:center}
#game .g-table .g-seat .gt{width:19px}
#game .g-table .g-seat .g-meld{display:inline-flex;gap:1px}
#game .g-table .g-centre{background:transparent;border:0;color:#F7F0E3;padding:2px 2px 0}
#game .g-centre .g-centre-top{background:#1F4A3D;align-items:center;gap:10px;margin:0 0 6px;padding:2px 0;top:-2px}
#game .g-centre .g-msg{color:#F7F0E3;font-size:.86rem;line-height:1.35;margin:0}
#game .g-centre .g-msg .gl{color:inherit}
#game .g-centre-top .g-last{flex-direction:column;gap:3px;flex:none}
#game .g-centre-top .g-last .gt-l{width:44px}
#game .g-centre-top .g-last .spec{display:block;font-size:.6rem;letter-spacing:.04em;color:#EADFC6;white-space:nowrap}
#game .g-last.is-takeable .spec{color:#F3D9A4}
#game .g-ponds .g-rowlabel{color:#C6D1C6}
#game .g-ponds .g-empty{color:#C6D1C6;background:transparent;border-color:rgba(247,240,227,.3)}
#game .g-table .gt svg{filter:drop-shadow(0 1.5px 1.5px rgba(0,0,0,.35))}
#game .g-me{border-top:0;margin-top:4px}
#game .g-me .g-next,#game .g-me .g-next:empty{height:var(--coach-h);padding:3px 4px;background:none;border:0;box-shadow:none;gap:8px}
#game .g-me.coach-off .g-next{display:none!important}
#game .g-next .g-coach,#game .g-next .g-next-title,#game .g-next .g-claim-info{-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;font-size:.8rem;line-height:1.28;margin:0;flex:1 1 auto;min-width:0}
#game .g-next:has(.g-coach) .g-next-title{display:none}
#game .g-next .g-coach .eyebrow{background:#9B5148;color:#FBF7EF;border-radius:99px;padding:2px 7px;font-size:.56rem;letter-spacing:.06em;margin-right:3px;vertical-align:1px}
#game .g-next .g-pick{flex:none;padding:6px 11px;font-size:.78rem;min-height:0;white-space:nowrap}
#game .g-me .g-hand{display:grid;grid-template-columns:repeat(var(--cols,7),minmax(0,56px));justify-content:center;align-content:center;gap:5px 3px;height:var(--hand-h);box-sizing:border-box;margin:0;padding:8px 0 0;overflow:visible}
#game .g-hand .g-grp,#game .g-hand .g-grp-tiles,#game .g-hand .g-melds-me,#game .g-hand .g-meld{display:contents}
#game .g-hand .g-grp-name,#game .g-hand .g-handlab,#game .g-hand .g-rowlabel{display:none!important}
#game .g-me .g-hand .gh,#game .g-hand .g-melds-me .gt{width:100%!important;margin:0!important}
#game .g-hand .gh svg,#game .g-hand .g-melds-me .gt svg{display:block;width:100%;height:auto;filter:drop-shadow(0 2px 0 #C9A25E) drop-shadow(0 3px 3px rgba(38,59,50,.22))}
#game .g-hand .g-melds-me .gt{border-radius:7px;box-shadow:0 0 0 1.5px var(--gold);background:#EFE4CB}
#game .g-hand .gh.is-hint{box-shadow:0 0 0 2px var(--ivory),0 0 0 4.5px #9B5148!important;border-radius:7px}
#game .g-hand .gh.is-hint::after{display:none!important}
#game .g-hand .gh.is-new{box-shadow:0 0 0 2px var(--ivory),0 0 0 4.5px var(--gold);border-radius:7px}
#game .g-hand .gh.is-new.is-hint{box-shadow:0 0 0 2px var(--ivory),0 0 0 4.5px #9B5148!important}
#game .g-hand .gh.is-new::before{display:none}
#game .g-me .g-melds-me{margin:0}
#game .g-me .g-bar,#game .g-me .g-bar:has(.g-bar-btns>:nth-child(4)){height:var(--bar-h);min-height:0;overflow:hidden;justify-content:flex-start;gap:5px;padding:6px 10px calc(8px + env(safe-area-inset-bottom))}
#game .g-bar .g-bar-hint{height:33px;min-height:0;flex:none;font-size:.85rem;line-height:1.22;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:center}
#game .g-bar .g-bar-btns,#game .g-bar-btns:has(>:nth-child(4)){flex:1 1 auto;min-height:0;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:42px;gap:6px;align-content:center}
#game .g-bar .g-bar-btns:has(>:only-child){grid-template-columns:minmax(0,1fr)}
#game .g-bar .g-bar-btns:has(>:nth-child(2):last-child),#game .g-bar .g-bar-btns:has(>:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
#game .g-bar .g-bar-btns:has(>:nth-child(7)){grid-template-columns:repeat(4,minmax(0,1fr))}
#game .g-bar .g-bar-btns>.btn,#game .g-bar-btns:has(>:nth-child(4))>.btn{min-height:0;height:42px;min-width:0;padding:2px 6px;font-size:.86rem;line-height:1.1;flex:none;display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal}
#game .g-bar .g-bar-btns:has(>:only-child)>.btn{height:48px;font-size:.95rem}
#game .g-bar .g-bar-btns:has(>:only-child){grid-auto-rows:48px}
#game .g-bar .g-bar-btns:has(>:nth-child(4))>.g-win{order:-1;flex-basis:auto}
#game .g-bar .g-bar-btns:has(>:nth-child(7))>.btn{font-size:.74rem;padding:2px 3px}
#game .g-me{border-top:0!important}
#game .g-table .g-ponds .g-empty{background:transparent!important;color:#C6D1C6;border-color:rgba(247,240,227,.3)}
#game .g-table .g-centre{display:flex;flex-direction:column;align-self:stretch;height:auto;max-height:none!important;min-height:0;overflow:hidden!important}
#game .g-centre .g-centre-top{position:static;flex:none;min-height:54px;margin:0 0 4px;justify-content:flex-start;padding:0 4px}
#game .g-centre:not(:has(.g-last)) .g-centre-top{justify-content:center}
#game .g-centre-top .g-last .gt-l{width:38px}
#game .g-centre-top .g-last .spec{display:none}
#game .g-centre .g-msg .gt-in{display:none}
#game .g-table .g-ponds{flex:1 1 auto;min-height:0;overflow-y:auto;background:transparent!important;border:0!important;padding:0 2px;margin:0;border-radius:0}
#game .g-ponds .g-pond{padding:1px 0;border:0;background:transparent}
#game .g-ponds .g-rowlabel{color:#C6D1C6;opacity:1;font-size:.62rem}
#game .g-ponds .gt{width:19px}
#game .g-next:has(.g-coach) .g-claim-info{display:none}
#game .g-bar .g-bar-btns>.btn{gap:5px;flex-direction:row}
#game .g-bar .g-bar-btns:has(>:nth-child(4))>.btn .gt{display:none}
#game .g-bar .g-bar-btns>.btn .gt{width:17px;flex:none}
#game .g-table .g-ponds{display:block}
#game .g-ponds .g-pond{display:flex;align-items:center;gap:6px;min-height:28px;margin:0}
#game .g-ponds .g-pond .g-rowlabel{flex:0 0 44px;margin:0}
#game .g-ponds .g-pond-tiles{display:flex;flex-wrap:wrap;gap:2px}
#game .g-centre .g-msg .gt-in{display:inline-block}
#game .g-next:has(.g-coach)>:not(.g-coach):not(.g-pick){display:none!important}
#game .g-centre .g-centre-top{min-height:48px;margin-bottom:2px}
#game .g-centre-top .g-last .gt-l{width:34px}
#game .g-table .g-seat .g-melds,#game .g-table .g-seat .g-flowers{display:inline-flex;margin:3px 5px 0 0;vertical-align:top}
#game .g-table .g-seat .g-flowers .gt{width:15px}
#game .g-ponds .g-pond{min-height:26px}
#game .g-ponds .gt{width:18px}
#game .g-ponds .gt{opacity:.9}
#game .g-ponds .gt.is-latest{opacity:1}
#game .g-table .g-seat .g-backs{display:flex!important;margin:5px 0 1px;padding:0 0 0 2px;gap:0;max-width:100%}
#game .g-table .g-seat .g-backs .gt{flex:0 1 11px;width:auto;min-width:0;margin-left:-2px;border-radius:2px;box-shadow:0 0 0 1px #E9C98A}
#game .g-table .g-seat .g-backs .gt svg{filter:none;border-radius:2px;display:block;width:100%;height:auto}
#game .g-table .g-seat .g-head{align-items:center}
#game .g-table .g-seat .g-head .cc-av{align-self:center;display:inline-grid;place-items:center;line-height:1;vertical-align:middle}
body:has(#game .g-bar) .f-chat{right:14px;bottom:calc(166px + env(safe-area-inset-bottom) + min(56px,(100vw - 34px) / 7) * 2.72 + 18px + 40px + 16px)}
body:has(#game .g-bar) .f-chat:has(.f-chat-btn[aria-expanded="true"]){bottom:12px}
body:has(#game .g-bar) .f-chat-btn[aria-expanded="false"],body:has(#game .g-bar) .f-chat-btn:not([aria-expanded="true"]){width:44px;height:44px}
#game .g-table .g-seat .g-backs{padding:0;margin:5px 0 2px;overflow:hidden;padding:1px 0 1px 1px}
#game .g-table .g-seat .g-backs .gt{flex:0 0 12.5%;margin-left:-5.9%;box-shadow:0 0 0 1px #E9C98A,1px 0 2px rgba(0,0,0,.4)}
#game .g-table .g-seat .g-backs .gt:first-child{margin-left:0}
#game .g-me{display:flex;flex-direction:column;border-top:0!important;border:0!important;box-shadow:none}
#game .g-me>*{order:5}
#game .g-me>.g-head,#game .g-me>.g-practice{order:0}
#game .g-me>.g-hand{order:1}
#game .g-me>.g-newtile{order:1}
#game .g-me>.g-next{order:2}
#game .g-me>.g-bar{order:3}
#game .g-me .g-next,#game .g-me .g-next:empty{padding:2px 6px 4px}
#game .g-table .g-seat .g-head{grid-template-columns:auto auto minmax(0,1fr);align-items:center}
#game .g-table .g-seat .g-head>*{align-self:center}
#game .g-table .g-seat .g-head .cc-av{display:grid;place-items:center;font-size:.7rem;line-height:1;overflow:hidden}
#game .g-me::before,#game .g-table .g-seat::before{display:none}
#game:has(.g-table){--bar-h:calc(124px + env(safe-area-inset-bottom))}
#game:has(.g-bar .f-clock){--bar-h:calc(142px + env(safe-area-inset-bottom))}
#game .g-me .g-bar,#game .g-me .g-bar:has(.g-bar-btns>:nth-child(4)){gap:4px;padding:5px 10px calc(6px + env(safe-area-inset-bottom))}
#game .g-bar .f-clock,#game .g-bar .f-clock.is-mine{display:flex!important;align-items:center;gap:8px;height:14px;min-height:14px;margin:0;padding:0;border:0;background:none;position:static;font-size:.7rem;flex:none}
#game .g-bar .f-clock[hidden]{visibility:hidden}
#game .g-bar .f-clock .f-clock-t{flex:none;max-width:55%;font-size:.7rem;font-weight:600;color:#8A6F5D}
#game .g-bar .f-clock .f-clock-bar{order:2;flex:1 1 auto;height:3px;grid-column:auto}
#game .g-bar .f-clock .f-clock-n{order:3;flex:none;font-size:.82rem;line-height:1}
#game .g-bar .f-clock.is-away{height:auto;min-height:14px}
#game .g-bar .g-bar-hint{height:30px;font-size:.82rem;line-height:1.2}
#game .g-bar .g-bar-btns,#game .g-bar-btns:has(>:nth-child(4)){flex:0 0 78px;height:78px;grid-auto-rows:46px;align-content:center}
#game .g-bar .g-bar-btns:has(>:only-child){grid-auto-rows:46px}
#game .g-bar .g-bar-btns>.btn,#game .g-bar .g-bar-btns:has(>:only-child)>.btn{height:46px}
#game .g-bar .g-bar-btns:has(>:nth-child(4)){grid-auto-rows:36px}
#game .g-bar .g-bar-btns:has(>:nth-child(4))>.btn{height:36px;font-size:.84rem}
body:has(#game .g-bar) .f-chat:not(:has(.f-chat-btn[aria-expanded="true"])){position:absolute;top:var(--chat-y,40vh);bottom:auto;right:16px;left:auto}
#game .g-table .g-seat{transition:background .25s ease,opacity .25s ease}
#game .g-table:has(.g-seat.is-turn) .g-seat:not(.is-turn){opacity:.72}
#game .g-table .g-seat.is-turn{background:#E9C98A;border-color:#E9C98A;box-shadow:0 0 0 2px #F7F0E3;position:relative}
#game .g-table .g-seat.is-turn strong,#game .g-table .g-seat.is-turn .g-wind{color:#173D32}
#game .g-table .g-seat.is-turn .g-sub{color:#3E5248}
#game .g-table .g-seat.is-turn .g-sub::after{content:" · thinking";font-weight:600;color:#173D32;animation:cc-think 1.4s ease-in-out infinite}
#game .g-me.is-turn .g-bar{background:#FFF6DC;box-shadow:inset 0 0 0 2px var(--gold)}
#game .g-me.is-turn .g-bar .g-bar-hint{font-weight:600}
#game .g-me:not(.is-turn) .g-bar .g-bar-hint{color:#6B7A70;font-weight:500}
#game .g-table .g-seat.is-turn .g-sub::after{content:none}
#game .g-bar .f-clock.is-away{height:auto;min-height:14px;font-size:.74rem;line-height:1.3;gap:8px;align-items:center}
#game .g-bar .f-clock.is-away .f-clock-t{max-width:none;white-space:normal;flex:1}
#game .g-bar .f-clock.is-away .btn{flex:none;min-height:0;padding:6px 12px;font-size:.8rem}
#game .g-me .g-hand{--cg:3px}
#game .g-hand .g-melds-me .gt{position:relative;box-shadow:none}
#game .g-hand .g-grp.is-set .gh::before,#game .g-hand .g-grp.is-part .gh::before,#game .g-hand .g-melds-me .g-meld .gt::before{content:"";display:block!important;position:absolute;top:-3px;bottom:-3px;left:calc(var(--cg) / -2);right:calc(var(--cg) / -2);border:0 solid var(--gold);border-width:2px 0;pointer-events:none;z-index:1;background:none;width:auto;height:auto;transform:none}
#game .g-hand .g-grp.is-part .gh::before{border-style:dashed;border-color:rgba(198,160,100,.8);border-width:1.5px 0}
#game .g-hand .g-grp .gh:first-child::before,#game .g-hand .g-melds-me .g-meld .gt:first-child::before{left:-3px;border-left-width:2px;border-radius:9px 0 0 9px}
#game .g-hand .g-grp .gh:last-child::before,#game .g-hand .g-melds-me .g-meld .gt:last-child::before{right:-3px;border-right-width:2px;border-radius:0 9px 9px 0}
#game .g-hand .g-grp .gh:first-child:last-child::before,#game .g-hand .g-melds-me .g-meld .gt:first-child:last-child::before{border-radius:9px}
#game .g-hand .g-grp.is-part .gh:first-child::before{border-left-width:1.5px}
#game .g-hand .g-grp.is-part .gh:last-child::before{border-right-width:1.5px}
#game:has(.g-table){--hand-h:calc(var(--tw) * 2.72 + 24px)}
#game .g-me .g-hand{row-gap:11px}
#game .g-hand .gh.is-hint,#game .g-hand .gh.is-new,#game .g-hand .gh.is-new.is-hint,#game .g-hand .gh.is-sel{box-shadow:none!important;border-radius:8px;outline:4px solid transparent;outline-offset:-4px}
#game .g-hand .gh.is-new{outline-color:var(--gold)}
#game .g-hand .gh.is-hint,#game .g-hand .gh.is-new.is-hint{outline-color:#A8483F}
#game .g-hand .gh.is-sel,#game .g-hand .gh.is-sel.is-hint{outline-color:var(--jade)}
#game .g-hand .gh.is-sel,#game .g-hand .gh.is-sel:hover{transform:translateY(-4px)}
#game:has(.g-table){--hand-h:calc(var(--tw) * 2.72 + 28px)}
#game .g-me .g-hand{row-gap:14px}
#game .g-hand .g-grp.is-part .gh::before{display:none!important}
#game .g-hand .g-grp.is-set .gh::before,#game .g-hand .g-melds-me .g-meld .gt::before{content:"";display:block!important;position:absolute;top:auto;bottom:-6px;height:3px;left:calc(var(--cg,3px) / -2);right:calc(var(--cg,3px) / -2);border:0!important;border-radius:0!important;background:var(--gold);pointer-events:none;width:auto;transform:none}
#game .g-hand .g-grp.is-set .gh:first-child::before,#game .g-hand .g-melds-me .g-meld .gt:first-child::before{left:3px;border-radius:2px 0 0 2px!important}
#game .g-hand .g-grp.is-set .gh:last-child::before,#game .g-hand .g-melds-me .g-meld .gt:last-child::before{right:3px;border-radius:0 2px 2px 0!important}
#game .g-hand .g-melds-me .gt{box-shadow:none;background:none;position:relative}
#game .g-hand .gh.is-new,#game .g-hand .gh.is-in,#game .g-hand .gh.is-use{box-shadow:none!important;outline-color:transparent}
#game .g-hand .gh.is-hint,#game .g-hand .gh.is-new.is-hint{outline:4px solid #A8483F;outline-offset:-4px;border-radius:8px}
#game .g-hand .gh.is-use{outline:4px solid var(--gold);outline-offset:-4px;border-radius:8px}
#game .g-hand .gh.is-sel,#game .g-hand .gh.is-sel.is-hint{outline:4px solid var(--jade);outline-offset:-4px;border-radius:8px}
#game .g-hand .gh.is-new::after,#game .g-hand .gh.is-hint::after{display:block!important;position:absolute;left:auto;right:1px;top:-7px;bottom:auto;width:auto;height:auto;transform:none;font:700 8.5px/1 Figtree,Arial,sans-serif;letter-spacing:.02em;text-transform:none;padding:2.5px 5px;border-radius:99px;white-space:nowrap;z-index:3;pointer-events:none;border:1px solid #FBF7EF}
#game .g-hand .gh.is-new::after{content:"New";background:var(--gold);color:#173D32}
#game .g-hand .gh.is-hint::after,#game .g-hand .gh.is-new.is-hint::after{content:"Coach";background:#A8483F;color:#FBF7EF}
#game .g-hand .gh.is-sel.is-hint::after{background:var(--jade)}
#game .g-centre.has-aim .g-centre-top{display:none}
#game .g-hand .gh-lab.is-grouplab{display:block}
/* Laptop adjustments to the phone game screen: same pieces, same order.
   The hand becomes one row, the coach sits beside the action bar,
   and each opponent's discards sit under their own card, larger. */
body.is-playing{padding-top:0}
body.is-playing .site-header{display:none}
body.is-playing .play{padding:0;background:var(--ivory)}
body.is-playing .play-panel{max-width:1280px;margin:0 auto;padding:0 24px 12px;background:var(--ivory);border-radius:0;box-shadow:none}
#game:has(.g-table){--top-h:52px;--coach-h:0px;--tw:min(72px,calc((100vw - 140px) / 15));--hand-h:calc(var(--tw) * 1.36 + 34px);--bar-h:124px}
#game:has(.g-bar .f-clock){--bar-h:142px}
#game .g-top{min-height:46px}
#game .g-top .g-info,#game .g-top .g-link{font-size:.95rem}

/* The table: latest tile and your discards on the left, then one column per opponent */
#game .g-table{grid-template-columns:230px repeat(3,minmax(0,1fr));grid-template-rows:auto minmax(0,1fr);gap:8px 14px;padding:12px;border-radius:22px}
#game .g-table .g-centre,#game .g-table .g-ponds{display:contents!important}
#game .g-table .g-seat{grid-row:1;margin:0;padding:7px 12px;border-radius:12px;align-self:start}
#game .g-table .g-seat.is-seat3{grid-column:2}
#game .g-table .g-seat.is-seat2{grid-column:3}
#game .g-table .g-seat.is-seat1{grid-column:4}
#game .g-table .g-seat .g-head strong{font-size:1.1rem}
#game .g-table .g-seat .g-backs{max-width:240px}
#game .g-table .g-centre-top{grid-column:1;grid-row:1;position:static;background:none;padding:2px 8px 0 0;display:flex;align-items:center;gap:12px;min-height:74px;color:#F7F0E3;align-self:start}
#game .g-table .g-centre-top .g-last{flex-direction:column;flex:none}
#game .g-table .g-centre-top .g-last .gt-l{width:50px}
#game .g-table .g-centre-top .g-msg{font-size:.92rem;line-height:1.35;margin:0;text-align:left;color:#F7F0E3}
#game .g-table .g-pond{grid-row:2;display:block;min-height:0;overflow:hidden;align-self:start;max-height:100%}
#game .g-table .g-pond.is-pond3{grid-column:2}
#game .g-table .g-pond.is-pond2{grid-column:3}
#game .g-table .g-pond.is-pond1{grid-column:4}
#game .g-table .g-pond.is-pond0{grid-column:1;border-right:1px solid rgba(198,160,100,.4);padding-right:10px;align-self:stretch}
#game .g-table .g-pond .g-rowlabel{display:none}
#game .g-table .g-pond.is-pond0 .g-rowlabel{display:block;width:auto;flex:none;font-size:.75rem;margin:0 0 5px;color:#C6D1C6}
#game .g-table .g-pond .g-pond-tiles{gap:4px}
#game .g-table .g-pond .gt{width:min(40px,calc((100vw - 420px) / 27));opacity:1}
#game .g-table .g-pond.is-pond0 .gt{width:29px}
#game .g-table .g-aim,#game .g-table .pm,#game .g-table .g-empty{grid-column:2/5;grid-row:2;align-self:center;justify-self:center}
#game .g-table .g-aim{max-width:560px}
#game .g-table .g-empty{border:1px dashed rgba(247,240,227,.3);border-radius:12px;padding:14px 22px}
#game .g-aim-tiles .gt-s{width:28px}

/* Your side: the hand in one row, then the coach beside the action bar */
#game .g-me{display:grid!important;grid-template-columns:minmax(0,1fr) 520px;column-gap:14px;align-items:center}
#game .g-me>*{grid-column:1/-1}
#game .g-me .g-hand{grid-template-columns:repeat(calc(var(--cols,7) * 2),minmax(0,var(--tw)));gap:6px 5px;padding:14px 0 0}
#game .g-me>.g-next{grid-column:1;min-height:0;padding:0 4px;align-self:center}
#game .g-me>.g-bar{grid-column:2;margin:0;width:auto;border-radius:16px;border:2px solid var(--gold);padding:6px 12px 8px}
#game .g-me:not(:has(>.g-next))>.g-bar{grid-column:1/-1;justify-self:end;width:520px}
#game .g-next .g-coach,#game .g-next .g-next-title,#game .g-next .g-claim-info{font-size:1rem;line-height:1.4;-webkit-line-clamp:3}
#game .g-next .g-coach .eyebrow{font-size:.68rem;padding:3px 10px;margin-right:8px}
#game .g-bar .g-bar-hint{font-size:.95rem}
#game .g-bar .g-bar-btns>.btn{font-size:1rem}
body:has(#game .g-bar) .f-chat:not(:has(.f-chat-btn[aria-expanded="true"])){right:max(40px,calc(50vw - 600px))}
#game .g-me .g-hand .gh,#game .g-hand .g-melds-me .gt{max-width:none}
#game .g-bar .g-bar-btns>.btn{max-width:none}
#game .g-me .g-next,#game .g-me .g-next:empty{height:auto;min-height:0;display:flex;align-items:center;gap:14px}
#game .g-next .g-pick{font-size:.92rem;padding:8px 16px}
#game .g-table .g-pond.is-pond0 .g-rowlabel{text-align:left}
#game .g-me .g-hand{--cg:5px}

/* the phone rule above sets the two-row hand height; on a laptop the hand is one row */
#game:has(.g-table){--hand-h:calc(var(--tw) * 1.36 + 34px)}

/* one-row hand on a laptop: undo the two-row height and spacing set for phones */
#game:has(.g-table){--hand-h:calc(var(--tw) * 1.36 + 34px)}

/* the wall on a laptop: a row of stacks in front of each player, yours at the foot of the table */
#game .g-wallstrip{display:none}
#game:has(.g-wallstrip) .g-top .g-pill{display:inline-block}
#game .g-table .g-wall{display:flex;gap:1.5px;height:13px;align-items:flex-end;margin-top:7px;max-width:240px}
#game .g-table .g-wall.is-mine{grid-column:2/5;grid-row:3;align-self:end;justify-self:center;width:min(420px,52%);max-width:none;margin:0 0 2px}

/* "Aim for this hand" on a laptop: one row across the card, and the table message stays */
#game .g-centre.has-aim .g-centre-top{display:flex}
#game .g-aim-tiles{flex-wrap:nowrap;justify-content:flex-start;gap:0 8px}
#game .g-aim-tiles .g-meld{flex:0 1 auto;gap:2px;min-width:0}
#game .g-aim-tiles .gt-s,#game .g-aim-tiles .gt{flex:0 1 34px;width:34px!important;min-width:0}

/* the pass tray on a laptop: slots sit at the start of the coach line */
#game .g-tray .g-slot,#game .g-tray .gh{width:36px;height:48px}

}
