/* Royal Arch avatar lobby — presentation only; existing live controls remain functional. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]){height:100dvh!important;overflow:hidden!important;background:url('/Chandelier-Free%20Purple%20Royal%20Rotunda.png') center/cover no-repeat!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) main{position:relative!important;width:100%!important;max-width:none!important;height:100dvh!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;overflow:hidden!important;zoom:1!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand-art{position:absolute!important;top:1.5dvh!important;left:50%!important;transform:translate(-50%,-15%)!important;z-index:5!important;width:min(620px,52vw)!important;height:clamp(110px,25dvh,225px)!important;margin:0!important;overflow:visible!important;pointer-events:none!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand-art img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{position:absolute!important;left:43.5%!important;top:23dvh!important;transform:translateX(-50%)!important;transform-origin:center!important;z-index:3!important;box-sizing:border-box!important;width:clamp(360px,30vw,490px)!important;max-width:calc(100vw - 32px)!important;height:auto!important;max-height:73dvh!important;margin:0!important;padding:clamp(42px,6dvh,66px) 43px 15px!important;overflow:visible!important;border:0!important;border-radius:46% 46% 12px 12px / 10% 10% 12px 12px!important;background:radial-gradient(ellipse at 50% 5%,#133f88 0%,#0a2861 40%,#051735 100%)!important;box-shadow:inset 0 0 0 5px #ffe38c,inset 0 0 0 10px #a85c08,inset 0 0 0 13px #f8bf42,0 12px 28px #000b!important;text-align:center!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:before,body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:after{content:"";position:absolute;z-index:0;top:5%;bottom:-1%;width:27px;border:2px solid #ffe5a1;border-radius:11px;background:repeating-linear-gradient(90deg,#854005 0px,#ffc451 5px,#fff2aa 9px,#c57c0b 13px,#f9b73b 17px,#7b3a05 22px);box-shadow:inset 0 0 4px #fff9,0 0 8px #0009,0 0 0 3px #9b550a}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:before{left:-13px}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:after{right:-13px}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby>*{position:relative;z-index:1}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #name,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #room{display:block!important;width:56%!important;min-width:0!important;max-width:220px!important;margin:0 auto 7px!important;padding:7px 10px!important;text-align:center!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #room{margin:5px auto 7px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section{margin:3px 0 7px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section-title{font-size:14px!important;margin:0 0 5px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .lobby-avatar-preview{width:60px!important;height:60px!important;flex-basis:60px!important;margin-bottom:5px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .mode-title{margin:6px 0 2px!important;font-size:12px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby button{padding:7px 10px!important;margin:2px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .primary,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .bottom-rules{display:block!important;width:100%!important;margin:5px auto!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby hr{margin:5px 0!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .row{margin:3px 0!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby select{padding:5px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{position:absolute!important;left:auto!important;right:4vw!important;top:auto!important;bottom:8dvh!important;transform:none!important;z-index:6!important;width:clamp(175px,16vw,260px)!important;max-width:30vw!important;margin:0!important;padding:14px 10px!important;border:6px ridge #ffd76c!important;border-radius:20px 20px 9px 9px!important;background:linear-gradient(155deg,#092c6c,#03152f)!important;box-shadow:0 0 0 2px #9a5005,0 10px 26px #0009!important;text-align:center!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar #accountActions{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar button{font-size:12px!important;padding:7px 9px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar a{font-size:11px!important;margin:3px!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountDialog:not([hidden]){position:absolute!important;right:3vw!important;bottom:10dvh!important;z-index:12!important;width:min(300px,32vw)!important;margin:0!important;padding:15px!important;border:6px ridge #ffdc73!important;border-radius:18px!important;background:linear-gradient(160deg,#103d83,#061b41)!important;box-shadow:0 15px 35px #000c!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .mini-brand-footer{display:none!important}
@media(max-height:850px) and (min-width:851px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{top:22dvh!important;zoom:.85!important;left:43.5%!important;transform:translateX(-58.8%)!important}
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand-art{height:23dvh!important}
}
@media(max-width:850px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]){overflow:auto!important;min-height:100dvh!important;background-attachment:fixed!important}
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) main{height:auto!important;min-height:100dvh!important;overflow:visible!important;display:flex!important;flex-direction:column!important;align-items:center!important;padding:8px 12px 55px!important}
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand-art{position:relative!important;top:auto!important;left:auto!important;transform:none!important;width:min(540px,94vw)!important;height:clamp(110px,26vw,180px)!important}
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{position:relative!important;left:auto!important;top:auto!important;transform:none!important;zoom:1!important;width:min(440px,92vw)!important;max-height:none!important;margin:-4px auto 18px!important}
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{position:relative!important;right:auto!important;bottom:auto!important;width:min(260px,80vw)!important;max-width:90vw!important;margin:5px auto!important}
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountDialog:not([hidden]){position:relative!important;right:auto!important;bottom:auto!important;width:min(340px,90vw)!important;margin:10px auto!important}
}

/* Refined approved mockup: center the entire arched menu directly under trophy. */
@media(min-width:851px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  left:50%!important;top:24dvh!important;
  transform:translateX(-50%)!important;zoom:1!important;
  width:clamp(390px,31vw,510px)!important;
  padding:clamp(43px,6dvh,65px) 43px 16px!important;
  border-radius:49% 49% 12px 12px / 11% 11% 12px 12px!important;
  box-shadow:inset 0 0 0 4px #ffe9aa,inset 0 0 0 8px #b66c12,inset 0 0 0 12px #f9c454,0 14px 28px #000b!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:before,
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:after{
  top:7%!important;bottom:-2%!important;width:35px!important;
  border:2px solid #fff0b4!important;border-radius:8px!important;
  background:linear-gradient(90deg,#693009 0%,#b96b0c 9%,#fff0a0 23%,#ffd05a 38%,#fff6be 49%,#eaa126 63%,#a55209 86%,#6d3006 100%)!important;
  box-shadow:inset 2px 0 5px #fff9,inset -4px 0 5px #74340a,0 0 0 3px #9c570e,0 7px 15px #0009!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:before{left:-21px!important}
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:after{right:-21px!important}
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand-art{
  top:0.5dvh!important;left:50%!important;width:min(620px,52vw)!important;
  height:clamp(120px,25dvh,220px)!important;z-index:7!important;
 }
}
@media(min-width:851px) and (max-height:850px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  zoom:.85!important;left:50%!important;top:23dvh!important;
  transform:translateX(-58.8235%)!important;
 }
}

/* Ornamental finish only. Preserve all approved positioning, sizes and layout. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
 box-shadow:
 inset 0 0 0 3px #fff2b9,
 inset 0 0 0 7px #e6a22e,
 inset 0 0 0 10px #753709,
 inset 0 0 0 14px #ffda68,
 inset 0 0 0 16px #a95b0c,
 inset 0 0 0 18px #fff0ac,
 0 14px 28px #000b!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:before,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:after{
 background:linear-gradient(90deg,
 #542400 0%,#8c4306 7%,#d38b17 14%,#ffe28a 22%,
 #fffbd3 29%,#f6bf42 38%,#c27b11 48%,#ffdc72 56%,
 #fff2a6 63%,#d59020 72%,#9e5109 86%,#582600 100%)!important;
 border-color:#ffe69b!important;
 box-shadow:inset 2px 0 4px #fff9,inset -3px 0 5px #6b2c03,0 0 0 2px #b66a0c,0 0 0 4px #f7c552,0 7px 15px #0009!important;
}

/* Transparent architectural artwork replaces striped CSS pillars.
   Preserve the approved logo, panel and account-card geometry. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
 border-radius:49% 49% 12px 12px / 11% 11% 12px 12px!important;
 box-shadow:0 14px 28px #000b!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:before{
 content:""!important;position:absolute!important;
 top:-10px!important;bottom:-12px!important;
 left:-26px!important;right:-26px!important;
 width:auto!important;height:auto!important;
 z-index:2!important;pointer-events:none!important;
 border:0!important;border-radius:0!important;
 background:url('/Ornate%20Golden%20Starry%20Archway%20Frame2.png?v=3') center center/100% 100% no-repeat!important;
 box-shadow:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby:after{content:none!important;display:none!important}

/* Final arch cleanup: remove the old curved panel and gold inset frame.
   The transparent Frame2 image alone supplies all visible ornament. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 background:linear-gradient(180deg,#0c2e6c 0%,#0a265a 46%,#061a40 100%)!important;
}

/* Remove the rectangular blue panel visible above and outside the ornate arch.
   Put the navy fill on a separate arched layer behind the controls and PNG. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
 background:transparent!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby::after{
 content:""!important;
 display:block!important;
 position:absolute!important;
 inset:0!important;
 width:auto!important;
 height:auto!important;
 border:0!important;
 border-radius:50% 50% 0 0 / 14% 14% 0 0!important;
 background:linear-gradient(180deg,#0c2e6c 0%,#0a265a 46%,#061a40 100%)!important;
 box-shadow:none!important;
 z-index:0!important;
 pointer-events:none!important;
}

/* Clip BOTH image and navy backing to the actual arched silhouette.
   The source PNG has a rectangular navy area above the gold curve;
   border-radius alone cannot remove that rectangular top. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby::before{
 clip-path:polygon(0 17%,6% 13%,14% 9%,24% 5%,36% 2%,45% 0%,55% 0%,64% 2%,76% 5%,86% 9%,94% 13%,100% 17%,100% 100%,0 100%)!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby::after{
 clip-path:polygon(0 19%,6% 16%,14% 12%,24% 9%,36% 6%,45% 5%,55% 5%,64% 6%,76% 9%,86% 12%,94% 16%,100% 19%,100% 100%,0 100%)!important;
}

/* Side-edge cleanup: keep navy backing strictly between the gold columns.
   The ornate frame image stays full-size; only the backing is narrowed. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby::after{
 left:35px!important;
 right:35px!important;
 inset-inline:35px!important;
 width:auto!important;
 border-radius:48% 48% 0 0 / 13% 13% 0 0!important;
 clip-path:polygon(0 17%,8% 12%,20% 6%,35% 2%,50% 0%,65% 2%,80% 6%,92% 12%,100% 17%,100% 100%,0 100%)!important;
}

/* Avatar selector: center the goal/timer controls as one balanced group. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .row{
 display:flex!important;
 justify-content:center!important;
 align-items:center!important;
 gap:32px!important;
 flex-wrap:wrap!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .row > label{
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:9px!important;
 margin:0!important;
}
/* Match the existing centered room-name field's width. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #computer{
 display:block!important;
 width:220px!important;
 max-width:calc(100% - 40px)!important;
 margin-left:auto!important;
 margin-right:auto!important;
 box-sizing:border-box!important;
}

/* Signed-in player account card: use the same ornate sapphire frame as Sign In.
   Keep the existing account card dimensions and floor-level placement. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{
 position:absolute!important;
 isolation:isolate!important;
 border:0!important;
 border-radius:14px!important;
 background:#081e4b!important;
 box-shadow:0 10px 26px #0009!important;
 padding:20px 24px!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar::before{
 content:""!important;
 position:absolute!important;
 inset:0!important;
 display:block!important;
 z-index:-1!important;
 pointer-events:none!important;
 background:url('/Ornate%20Golden%20Sapphire%20Fantasy%20Frame.png?v=1') center/100% 100% no-repeat!important;
}

/* Player account panel: no rectangular navy backing outside the ornate silhouette.
   The transparent frame sits above a rounded navy inset. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{
 right:11vw!important;
 background:transparent!important;
 box-shadow:none!important;
 border:0!important;
 border-radius:0!important;
 padding:21px 24px!important;
 isolation:isolate!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar::after{
 content:""!important;
 position:absolute!important;
 inset:12px 15px!important;
 border-radius:18px!important;
 background:linear-gradient(180deg,#0b2b62,#06183d)!important;
 z-index:-2!important;
 pointer-events:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar::before{
 z-index:-1!important;
 background:url('/Ornate%20Golden%20Sapphire%20Fantasy%20Frame.png?v=1') center/100% 100% no-repeat!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lifetimeStatsLink:not([hidden]){
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 margin:3px!important;
 padding:7px 9px!important;
 border:1px solid #ad6400!important;
 border-radius:9px!important;
 background:linear-gradient(180deg,#fff2a5,#ffc54d 48%,#ed980e)!important;
 color:#071b43!important;
 text-decoration:none!important;
 font-size:11px!important;
 font-weight:800!important;
 box-shadow:0 2px 0 #9a5600,0 0 9px #ffbf4580!important;
}
@media(max-width:850px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{
  right:auto!important;
 }
}

/* Keep the signed-in account panel immediately beside the avatar arch,
   with both bottom edges aligned (Chrome and other anchor-capable browsers). */
@media(min-width:851px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  anchor-name:--word-dome-avatar-panel!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{
  right:auto!important;
  left:calc(43.5% + 260px)!important;
  bottom:14dvh!important;
  top:auto!important;
  margin:0!important;
 }
 @supports (left:anchor(right)){
  body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{
   position-anchor:--word-dome-avatar-panel!important;
   left:calc(anchor(right) + 14px)!important;
   bottom:anchor(bottom)!important;
  }
 }
}

/* Match both wide action bars to the player/room entry width. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #computer,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .bottom-rules{
 display:block!important;
 width:56%!important;
 max-width:220px!important;
 min-width:0!important;
 box-sizing:border-box!important;
 margin:5px auto!important;
}
/* Triple the horizontal gap from 14px to 42px while retaining bottom alignment. */
@media(min-width:851px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{
  left:calc(43.5% + 288px)!important;
 }
 @supports (left:anchor(right)){
  body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{
   left:calc(anchor(right) + 42px)!important;
  }
 }
}

/* Registered player name: gold, navy lettering, sized to avatar heading. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #name{
 width:171px!important;
 max-width:calc(100% - 40px)!important;
 min-width:0!important;
 box-sizing:border-box!important;
 margin:0 auto 7px!important;
 background:linear-gradient(180deg,#fff1a4 0%,#ffcf53 48%,#eaa01c 100%)!important;
 color:#092453!important;
 border:2px solid #f9d879!important;
 border-radius:9px!important;
 font-weight:800!important;
 text-align:center!important;
 box-shadow:0 2px 0 #a66a0b,0 0 10px #ffcf4b66!important;
 opacity:1!important;
 -webkit-text-fill-color:#092453!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #name[readonly]{
 cursor:default!important;
 user-select:text!important;
}

/* Full-size avatar arch and reorganized controls, October 2026. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #accountBar{display:none!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
 max-height:none!important;height:auto!important;overflow:visible!important;
 padding-bottom:25px!important;
}
@media(min-width:851px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  zoom:1!important;left:50%!important;top:17dvh!important;
  transform:translateX(-50%)!important;
  width:clamp(420px,34vw,540px)!important;
  padding:65px 49px 26px!important;
 }
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #lobbyPlayerRating:not([hidden]){
 display:block!important;width:max-content!important;max-width:80%!important;
 margin:2px auto 8px!important;padding:3px 10px!important;
 font-size:12px!important;line-height:1.3!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #computer,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #openOnlineOptions{
 display:block!important;width:220px!important;max-width:80%!important;
 margin:5px auto!important;box-sizing:border-box!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #lobbyBottomActions{
 display:flex!important;align-items:stretch!important;justify-content:center!important;
 gap:9px!important;margin:7px auto 0!important;width:100%!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #lobbyBottomActions > .bottom-rules,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #lobbyLifetimeStats:not([hidden]){
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:132px!important;max-width:45%!important;min-width:0!important;
 margin:0!important;padding:8px 6px!important;box-sizing:border-box!important;
 border-radius:10px!important;font-size:12px!important;font-weight:900!important;
 line-height:1.25!important;text-align:center!important;
 background:linear-gradient(180deg,#fff2a5,#ffc54d 48%,#ed980e)!important;
 color:#071b43!important;text-decoration:none!important;
 border:1px solid #ad6400!important;box-shadow:0 2px 0 #9a5600,0 0 9px #ffbf4580!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #lobbySignOutSlot{
 display:flex!important;justify-content:center!important;margin:8px auto 0!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #accountLogout:not([hidden]){
 display:block!important;width:132px!important;max-width:45%!important;
 margin:0!important;padding:7px 10px!important;font-size:12px!important;
 box-sizing:border-box!important;
}
@media(max-width:850px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  width:min(460px,92vw)!important;padding:60px 40px 24px!important;
  max-height:none!important;zoom:1!important;
 }
}

/* Lower the complete avatar arch beneath the Word Dome trophy pedestal.
   Move only the arch: preserve its dimensions, internal controls and logo position. */
@media(min-width:851px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  top:23.5dvh!important;
 }
}
@media(max-width:850px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  margin-top:22px!important;
 }
}

/* Avatar chooser: People | gold avatar | Pets, all on one balanced row.
   Free the former button row's height for more breathing room below. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section{
 display:grid!important;
 grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr)!important;
 grid-template-rows:auto auto!important;
 column-gap:12px!important;
 row-gap:9px!important;
 align-items:center!important;
 justify-items:center!important;
 width:100%!important;
 margin:4px auto 13px!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section-title{
 grid-column:1/-1!important;grid-row:1!important;
 margin:0!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .lobby-avatar-preview{
 grid-column:2!important;grid-row:2!important;
 width:60px!important;height:60px!important;
 margin:0!important;justify-self:center!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-pick-buttons{
 display:contents!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #choosePeople{
 grid-column:1!important;grid-row:2!important;justify-self:end!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #choosePets{
 grid-column:3!important;grid-row:2!important;justify-self:start!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #choosePeople,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #choosePets{
 width:108px!important;min-width:0!important;max-width:100%!important;
 margin:0!important;padding:9px 12px!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .row{
 margin:7px auto 11px!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .mode-title{
 margin:9px 0 5px!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #computer,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #openOnlineOptions{
 margin:7px auto!important;
}
@media(max-width:420px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section{
  grid-template-columns:minmax(0,1fr) 60px minmax(0,1fr)!important;
  column-gap:5px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #choosePeople,
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #choosePets{
  width:88px!important;padding:8px 5px!important;
 }
}

/* Compact computer launch row; do not change the archway's dimensions or position. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .computer-launch-row{
 display:flex!important;align-items:end!important;justify-content:center!important;
 gap:12px!important;width:100%!important;margin:8px auto 10px!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .computer-level{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:4px!important;margin:0!important;
 font-size:13px!important;font-weight:800!important;color:#fff!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .computer-level #difficulty{
 width:70px!important;min-width:0!important;margin:0!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .computer-launch-row #computer{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:190px!important;max-width:calc(100% - 125px)!important;
 min-width:0!important;margin:0!important;white-space:nowrap!important;
}


/* Restore the original Frame2 proportions on desktop.
   The arch must not be stretched to the narrow control panel. */
@media (min-width: 851px) {
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby {
  width:clamp(540px,46vw,700px)!important;
  padding:clamp(44px,6dvh,68px) clamp(85px,8vw,118px) 24px!important;
  box-sizing:border-box!important;
  max-height:none!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby::before {
  left:0!important;right:0!important;
  top:-12px!important;bottom:-12px!important;
  background-size:100% 100%!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby::after {
  left:75px!important;right:75px!important;inset-inline:75px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section {
  margin-bottom:18px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .row {
  margin:12px auto 16px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .computer-launch-row {
  margin:12px auto 16px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .mode-title {
  margin:12px 0 8px!important;
 }
}
@media (min-width:851px) and (max-height:850px) {
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby {
  zoom:1!important;transform:translateX(-50%)!important;
  top:23.5dvh!important;
  padding-top:38px!important;padding-bottom:14px!important;
 }
}


/* October 12: final approved lobby refinements.
   Keep the full-size arch artwork and the existing People/avatar/Pets row. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .mode-title{
 display:none!important; /* redundant PLAY ONLINE label above the button */
}
@media(min-width:851px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  top:24.5dvh!important; /* lower the complete arch by 1% of viewport height */
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section{
  margin-bottom:23px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .row{
  margin:15px auto 19px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .computer-launch-row{
  margin:15px auto 19px!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #openOnlineOptions{
  margin:11px auto 10px!important;
 }
}

/* Enlarge only the selected avatar preview within the royal-arch home page
   by 25%. Visual scaling leaves the avatar-row layout, nearby controls,
   archway artwork and in-game portraits at their approved dimensions. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section #avatarPreview{
 transform:scale(1.25)!important;
 transform-origin:center center!important;
}

/* Raise both the logo and complete arch as a unit by 10% of the
   existing 29.4dvh arch top offset (2.94dvh). Nothing inside #lobby
   is individually repositioned: frame, avatar, controls and Grand Hall
   retain their existing proportions and relative alignment. */
@media(min-width:851px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand-art{
  top:2.46dvh!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  top:26.46dvh!important;
 }
}
@media(max-width:850px){
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand-art,
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby{
  transform:translateY(1.96dvh)!important;
 }
}

/* Historical rating scaling remains; remove the old extra rectangular
   gold outline. The approved oval badge is already framed in gold. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #lobbyPlayerRating:not([hidden]){
 transform:scale(1.15)!important;
 transform-origin:center center!important;
 outline:none!important;
 outline-offset:0!important;
}

/* Home page only: lower YOUR AVATAR and its gold preview together by 5%
   of the 60px avatar size, without shifting the choose button or layout. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section .avatar-section-title{
 position:relative!important;top:calc(3px - 8% - 40px)!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section #avatarPreview{
 transform:translateY(9px) scale(1.4375)!important;
}

/* Lower the homepage avatar heading, preview and chooser as one group by
   10% of their group's own height. This visual-only transform preserves
   internal spacing, button/preview sizes and the golden arch artwork. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-section{
 transform:translateY(10%)!important;
}

/* Home lobby only: reduce the visual name-to-avatar gap by ~50% (32px).
   Translate the avatar group and both control rows together without changing
   their relative spacing, intrinsic dimensions, or the archway positioning. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .avatar-section,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .computer-launch-row,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .row {
 translate:0 -32px!important;
}

/* Home page only: shrink the three circled controls by 15% in place.
   CSS individual scale leaves their layout boxes and previous upward
   translation intact; do not scale the avatar image or the gold arch. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .avatar-pick-buttons,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .computer-launch-row,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .row {
 scale:.85!important;
 transform-origin:center center!important;
}

/* 2026-10-19: enlarge ONLY the decorative Frame2 arch by 30%.
   Its pseudo-element is non-interactive and outside normal layout flow;
   do not resize or move the lobby, controls, avatar, or logo. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby::before {
  transform:scale(1.3,1.196)!important;
  transform-origin:center center!important;
}

/* Match the live arch frame's 30% increase on the navy backing only. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby::after {
  transform:scale(1.3,1.196)!important;
  transform-origin:center center!important;
}

/* Home only: reference artwork's upper-left gold name and green rating. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row {
 position:absolute!important;top:72px!important;left:76px!important;right:auto!important;
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;
 width:auto!important;min-height:0!important;height:auto!important;
 padding:0!important;margin:0!important;gap:7px!important;z-index:8!important;
 background:transparent!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #name {
 display:block!important;position:relative!important;inset:auto!important;
 field-sizing:fixed!important;width:180px!important;min-width:0!important;max-width:180px!important;
 height:40px!important;min-height:0!important;padding:0!important;margin:0!important;
 border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;
 color:#f7d77c!important;-webkit-text-fill-color:#f7d77c!important;
 font:900 28.9px/40px Georgia,'Times New Roman',serif!important;letter-spacing:0!important;
 text-align:left!important;text-shadow:0 1px 0 #fff2b0,0 2px 0 #88510a,0 3px 7px #0009!important;
 transform:translateY(-14px)!important;pointer-events:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #lobbyPlayerRating:not([hidden]) {
 display:inline-flex!important;position:relative!important;inset:auto!important;
 align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;width:auto!important;min-width:150px!important;max-width:200px!important;
 height:37px!important;min-height:37px!important;padding:3px 12px!important;margin:0!important;
 border:3px solid #f4c65d!important;border-radius:999px!important;
 background:linear-gradient(180deg,#209f46,#116b2b 58%,#064719)!important;
 box-shadow:inset 0 1px 0 #ffffff66,0 2px 0 #89560d,0 4px 8px #0007!important;
 color:#fff7cf!important;font:900 18px/1 Georgia,'Times New Roman',serif!important;
 text-shadow:0 1px 2px #000a!important;text-align:center!important;
 transform:none!important;
}

/* Compact home rating badge by 15%, retaining its upper-left anchor.
   Color is based on the current rating-tier class, never hardcoded green. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #lobbyPlayerRating:not([hidden]) {
 transform:scale(.7225)!important;
 transform-origin:top left!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #lobbyPlayerRating.wd-rating-green:not([hidden]) {background:linear-gradient(180deg,#209f46,#116b2b 58%,#064719)!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #lobbyPlayerRating.wd-rating-blue:not([hidden]) {background:linear-gradient(180deg,#2368b1,#123b65)!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #lobbyPlayerRating.wd-rating-red:not([hidden]) {background:linear-gradient(180deg,#8e2634,#5b1620)!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #lobbyPlayerRating.wd-rating-purple:not([hidden]) {background:linear-gradient(180deg,#704c93,#44305f)!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #lobbyPlayerRating.wd-rating-gold:not([hidden]) {background:linear-gradient(115deg,#a96600,#ffd336 26%,#b97700 100%)!important}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby .wd-home-identity-row #lobbyPlayerRating.wd-rating-unrated:not([hidden]) {background:#213858!important}

/* Homepage trophy logo only: 15% smaller, same centered placement and footprint.
   Scaling the artwork (not its parent) preserves the golden arch and all UI. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) .brand.brand-art > img.wd-approved-arch-logo{
 transform:scale(.85)!important;transform-origin:center center!important;
}
