/* Shared waiting-room and navigation system v172. Game boards keep their own palettes. */
html.nl-style-v172{--nl-lobby-ink:#39265d;--nl-lobby-muted:#79678f;--nl-lobby-line:#dac9ef;--nl-lobby-bg:radial-gradient(ellipse at 0 0,#c9f3ff,transparent 60%),linear-gradient(135deg,#f5efff,#e4d9ff)}
html.nl-style-v172 :is(.dg,.word-app,#damaRoot,#handRoot,#unoRoot,#lahhiqRoot,#saydRoot):has(.nl-unified-lobby,.wa-unified-lobby){background:var(--nl-lobby-bg)!important;color:var(--nl-lobby-ink)!important}
html.nl-style-v172 #modal:has(.nl-unified-lobby,.wa-unified-lobby){background:#35235355!important}
html.nl-style-v172 #modal:has(.nl-unified-lobby,.wa-unified-lobby)>.box{background:var(--nl-lobby-bg)!important;border:0!important}
html.nl-style-v172 #modal:has(.dg,.word-app)>.box>.boxhead{display:none!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby){box-sizing:border-box!important;width:min(720px,100%)!important;max-width:720px!important;margin:0 auto!important;padding:26px!important;border:1px solid var(--nl-lobby-line)!important;border-radius:24px!important;background:#ffffffed!important;box-shadow:0 7px 0 #cfbbed,0 16px 40px #6d4e9b18!important;color:var(--nl-lobby-ink)!important;text-align:center!important}
html.nl-style-v172 :is(.dgl-body,.wa-main,.hn-lobby-wrap,.da-lobby-wrap,.un-lobby-wrap,.lh-stage,.sd-main):has(.nl-unified-lobby,.wa-unified-lobby){padding:24px 18px calc(24px + env(safe-area-inset-bottom,0px))!important;background:transparent!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(h1,h2){color:#6840b4!important;font-family:"Lalezar","IBM Plex Sans Arabic",sans-serif!important;font-size:clamp(27px,5vw,36px)!important;line-height:1.4!important;margin:8px 0 12px!important;text-shadow:none!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(p,small,.wa-muted,.sd-sub,.sd-rules,.sd-hint,.hn-muted,.da-mode){color:var(--nl-lobby-muted)!important;line-height:1.8!important}
html.nl-style-v172 :is(.nl-lobby-icon,.lh-bolt,.da-emblem){background:linear-gradient(145deg,#f1e7ff,#e3f6ff)!important;color:#8252c5!important;border:1px solid #decbf4!important;border-radius:20px!important;box-shadow:0 4px 0 #dfcdf3!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(label,.nl-mode-label){color:#62477f!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(select,input){background:#fff!important;color:#593e7c!important;border:1px solid #cdb5e8!important;border-radius:12px!important;min-height:44px!important;box-shadow:none!important;font-family:inherit!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(.dgl-players,.wa-players,.hn-seats,.da-lobby-players,.un-lobby-players,.lh-members,.sd-members){display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:10px!important;margin:18px 0!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(.dgl-players,.wa-players,.hn-seats,.da-lobby-players,.un-lobby-players,.lh-members,.sd-members)>*{min-height:52px!important;padding:11px 16px!important;border:1px solid #d6c2ed!important;border-radius:14px!important;background:#f5efff!important;color:#604281!important;box-shadow:0 3px 0 #e5d6f5!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(.dgl-p,.wa-player,.da-empty){color:#604281!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(.primary,.hn-gold,.da-start,.un-primary,.lh-primary,.sd-primary,.wa-go,#drawLaunch,#holStart,#dglStart,#waStart){display:block!important;width:min(100%,420px)!important;min-width:0!important;min-height:54px!important;margin:20px auto 12px!important;padding:12px 20px!important;border:1px solid #17ca93!important;border-radius:14px!important;background:linear-gradient(#58efbb,#2add9f)!important;box-shadow:0 4px 0 #14b582!important;color:#174c42!important;font-size:20px!important;font-weight:800!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) button:disabled{opacity:.48!important;cursor:default!important}
html.nl-style-v172 :is(.dgl-kicker,.wa-kicker,.sd-badge){color:#8151b6!important;background:#f1e6ff!important;border-color:#dac6f2!important;border-radius:20px!important}
html.nl-style-v172 :is(.lh-rules,.sd-species){display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
html.nl-style-v172 :is(.lh-rules,.sd-species)>span{background:#f2e9ff!important;border:1px solid #ddc9f2!important;border-radius:12px!important;color:#73528e!important;padding:8px 12px!important}
html.nl-style-v172 :is(.lh-rules,.sd-species) b{color:#6546ad!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(.dgl-invite,#waShare,#hnShare,#daShare,#unShare,.lh-share,.sd-share){border-color:#e4d8f2!important;color:#857098!important}
html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby) :is(.dgl-invite,#waShare,#hnShare,#daShare,#unShare,.lh-share,.sd-share) button{border:1px solid #d6c0ed!important;background:#efe4ff!important;color:#694795!important;border-radius:12px!important;min-height:42px!important;box-shadow:0 3px 0 #ddc9ef!important;font-family:inherit!important}
html.nl-style-v172 :is(.lh-share,.sd-share,.dgl-invite,#waShare) button:first-child{background:#e1fff3!important;border-color:#abe9d0!important;color:#26866b!important}
html.nl-style-v172 :is(.dg-hud,.wa-head,.da-header,.hn-top,.un-header,.lh-head,.sd-head,.gp-framebar,#antWarOnlinePlatform>header,#antWarPlatform>header){box-sizing:border-box!important;background:linear-gradient(110deg,#7848ce,#4964cf)!important;border-bottom:1px solid #ffffff38!important;color:#fff!important;box-shadow:0 4px 16px #4b31891a!important;flex-shrink:0!important}
html.nl-style-v172 :is(.wa-head,.da-header,.hn-top,.un-header,.lh-head,.sd-head,.gp-framebar,#antWarOnlinePlatform>header,#antWarPlatform>header){display:flex!important;align-items:center!important;gap:12px!important;padding:10px 16px!important;min-height:62px!important}
html.nl-style-v172 :is(.wa-head,.da-header,.hn-top,.un-header,.lh-head,.sd-head) :is(h2,strong,b,.lh-logo,.pz-title){color:#fff!important;text-shadow:none!important}
html.nl-style-v172 :is(.wa-head,.da-header,.hn-top,.un-header,.lh-head,.sd-head) small{color:#e3d9ff!important}
html.nl-style-v172 .nl-game-back{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;flex:0 0 auto!important;width:auto!important;min-width:82px!important;height:40px!important;min-height:40px!important;padding:8px 14px!important;margin:0!important;border:1px solid #ffffff75!important;border-radius:12px!important;background:#ffffffef!important;color:#63449c!important;box-shadow:0 3px 0 #ffffff24!important;font:700 14px/1.2 "IBM Plex Sans Arabic",Tahoma,sans-serif!important;cursor:pointer!important;text-decoration:none!important;order:10!important;white-space:nowrap!important;position:static!important;transform:none!important}
html.nl-style-v172 .nl-game-back::before{content:"←";font-size:18px}
html.nl-style-v172 :is(.wa-head,.da-header,.hn-top,.un-header,.lh-head,.sd-head,.gp-framebar,#antWarOnlinePlatform>header,#antWarPlatform>header)>.nl-game-back{margin-inline-start:auto!important}
html.nl-style-v172 .dg-hud-side:has(.nl-game-back){order:3;justify-content:flex-end!important;min-width:82px}
html.nl-style-v172 .dg-hud>.dg-center{order:2;min-width:0}
html.nl-style-v172 .dg-hud>.dg-hud-side:not(:has(.nl-game-back)){order:1}
html.nl-style-v172 :is(#lahhiqRoot,#saydRoot):has(.nl-unified-lobby) :is(.lh-foot,.sd-foot){background:#f4eefe!important;color:#6d518b!important;border-color:#d9c7ef!important}
html.nl-style-v172 :is(#lahhiqRoot,#saydRoot):has(.nl-unified-lobby) :is(.lh-scores,.sd-scores)>*{background:#fff!important;color:#6d518b!important;border-color:#dfcfef!important}
html.nl-style-v172 .gp-framebar{height:62px!important;min-height:62px!important}
html.nl-style-v172 .gp-framebar b{font-size:18px}
html.nl-style-v172 .boxhead:has(.nl-game-back){display:flex;align-items:center;gap:12px;background:linear-gradient(110deg,#7848ce,#4964cf)!important;color:#fff!important;padding:12px 16px!important}
html.nl-style-v172 .boxhead:has(.nl-game-back) h2{color:#fff!important;margin:0}
html.nl-style-v172 .boxhead .nl-game-back{margin-inline-start:auto!important}
html.nl-style-v172.nl-embedded :is(#ctBack,#hnExit,[data-un="close"],[data-da="close"]){display:none!important}
html.nl-style-v172.nl-embedded #ctLeave{display:none!important}
@media(max-width:600px){html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby){padding:20px 15px!important;border-radius:20px!important}html.nl-style-v172 :is(.dgl-body,.wa-main,.hn-lobby-wrap,.da-lobby-wrap,.un-lobby-wrap,.lh-stage,.sd-main):has(.nl-unified-lobby,.wa-unified-lobby){padding:18px 12px 24px!important}html.nl-style-v172 :is(.wa-head,.da-header,.hn-top,.un-header,.lh-head,.sd-head,.gp-framebar,#antWarOnlinePlatform>header,#antWarPlatform>header){padding:9px 12px!important;gap:8px!important}html.nl-style-v172 .nl-game-back{min-width:74px!important;height:38px!important;min-height:38px!important;padding:8px 12px!important;font-size:13px!important}html.nl-style-v172 .gp-framebar{height:58px!important;min-height:58px!important}}
@media(orientation:landscape) and (max-height:550px){html.nl-style-v172 :is(.wa-head,.da-header,.hn-top,.un-header,.lh-head,.sd-head,.gp-framebar,#antWarOnlinePlatform>header,#antWarPlatform>header){min-height:45px!important;height:45px!important;padding:5px 12px!important}html.nl-style-v172 .nl-game-back{height:32px!important;min-height:32px!important;min-width:74px!important;padding:5px 10px!important}html.nl-style-v172 :is(.nl-unified-lobby,.wa-unified-lobby){padding:18px!important}html.nl-style-v172 :is(.dgl-body,.wa-main,.lh-stage,.sd-main):has(.nl-unified-lobby,.wa-unified-lobby){padding:14px!important}}

html.nl-style-v172.nl-embedded .ct-header{display:none!important}html.nl-style-v172 :is(#modal,#handRoot,#damaRoot,#unoRoot,#lahhiqRoot,#saydRoot,#antWarOnlinePlatform,#antWarPlatform) .nl-game-back{width:auto!important;min-width:74px!important;border-radius:12px!important;background:#fff!important;color:#63449c!important;font-size:14px!important}html.nl-style-v172 #modal .dg-hud{background:linear-gradient(110deg,#7848ce,#4964cf)!important;color:#fff!important}

html.nl-style-v172 .nl-lobby-controls{border-top:1px solid #e5d7f1;padding-top:14px;margin-top:18px;text-align:center}html.nl-style-v172 .nl-host-end{min-height:38px!important;padding:8px 14px!important;border:1px solid #e8b9cb!important;border-radius:11px!important;background:#fff1f6!important;color:#a34c75!important;font:600 12px "IBM Plex Sans Arabic",sans-serif!important;box-shadow:none!important;cursor:pointer}html.nl-style-v172.nl-embedded .ct-room-top{margin-right:0!important}

html.nl-style-v172 .dg:has(.nl-unified-lobby)::after{display:none!important}html.nl-style-v172 .dg:has(.nl-unified-lobby) .dg-backdrop{display:none!important}html.nl-style-v172 .dg:has(.nl-unified-lobby){--txt:#61457c;--mut:#897397;--gold:#7950ad;--gold2:#a27bd0;--line:#dfcdef;--line2:#cfb3e9;--glass:#f4eaff!important}html.nl-style-v172 .dg:has(.nl-unified-lobby) .dgl-sub{color:#826695!important}html.nl-style-v172 .dg:has(.nl-unified-lobby) .dgl-waiting{background:#f6f0ff!important;color:#805b9e!important;border-radius:12px!important}html.nl-style-v172 .dg:has(.nl-unified-lobby) .dg-av{background:#e6d9f7!important;color:#8052b7!important}html.nl-style-v172 .dgl-kicker b{color:#7844b4!important}html.nl-style-v172 #modal .dg-title b{color:#fff!important}

html.nl-style-v172 :is(#lahhiqRoot,#saydRoot):has(.nl-unified-lobby){padding:0!important}html.nl-style-v172 :is(#lahhiqRoot,#saydRoot):has(.nl-unified-lobby) :is(.lh-foot,.sd-foot){display:none!important}html.nl-style-v172 :is(.lh-head,.sd-head){margin:0!important;border-radius:0!important}

html.nl-style-v172 :is(.nl-unified-lobby>h2,.wa-intro>h1){display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;text-align:center!important}html.nl-style-v172 :is(.nl-unified-lobby>h2,.wa-intro>h1)>.nl-lobby-icon{margin:0!important;flex:0 0 60px!important;width:60px!important;height:60px!important;min-width:60px!important}html.nl-style-v172 :is(.nl-unified-lobby>h2,.wa-intro>h1)>span:not(.nl-lobby-icon){margin:0!important;flex:0 1 auto!important;width:auto!important}html.nl-style-v172 .dg:has(.nl-unified-lobby){--hud:calc(62px + env(safe-area-inset-top,0px))!important}@media(orientation:landscape) and (max-height:550px){html.nl-style-v172 .dg:has(.nl-unified-lobby){--hud:45px!important}}
/* v203: Picture Words header — on phones the title gets its own row (like Draw), buttons stay on the first row */
html.nl-style-v172 .wa-head>:is(button,span,.nl-game-fullscreen-wrap,.nl-host-end){flex:0 0 auto!important}
html.nl-style-v172 .wa-head>div{flex:1 1 auto!important;min-width:0!important}
html.nl-style-v172 .wa-head h2{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.2!important;margin:0!important}
html.nl-style-v172 .wa-head small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media (max-width:560px) and (orientation:portrait){
 html.nl-style-v172 .wa-head{flex-wrap:wrap!important;row-gap:4px!important}
 html.nl-style-v172 .wa-head>div{order:10!important;flex:1 1 100%!important;text-align:center!important}
 html.nl-style-v172 .wa-head h2{font-size:18px!important}
}
