/* One close-control appearance across web dialogs, drawers and sheets.
   The host still owns each button's position and its existing click handler. */
html[data-ui-runtime=web] body.faithful-target :is(dialog,#desktop-shell,#desktop-drawer,#faithful-context,#phone-faithful,#phone-shell,#desktop-menu,#market-board-tray,#online-screen) button:is(.close,.sheet-close,.notice-dismiss,#entry-close,#desktop-drawer-close,#game-menu-close,[data-market-board-close],[aria-label^="Κλείσιμο"],[aria-label^="Close"]):not([hidden]){
 display:grid!important;place-items:center!important;flex:0 0 44px!important;box-sizing:border-box!important;
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;
 padding:0!important;margin:0!important;border:1px solid #b18a4d80!important;border-radius:50%!important;
 background:var(--close-control-surface,transparent)!important;box-shadow:none!important;color:inherit!important;
 font:400 28px/1 Arial,sans-serif!important;letter-spacing:0!important;text-align:center!important;text-indent:0!important;text-decoration:none!important;
 transform:none!important;outline:none!important;
}
html[data-ui-runtime=web] body.faithful-target :is(dialog,#desktop-shell,#desktop-drawer,#faithful-context,#phone-faithful,#phone-shell,#desktop-menu,#market-board-tray,#online-screen) button:is(.close,.sheet-close,.notice-dismiss,#entry-close,#desktop-drawer-close,#game-menu-close,[data-market-board-close],[aria-label^="Κλείσιμο"],[aria-label^="Close"]):focus-visible{
 outline:var(--close-control-focus,2px solid #a477bd)!important;outline-offset:var(--close-control-focus-offset,3px)!important;border-radius:50%!important;
}

/* Same glyph and hit target as desktop, with an inset focus ring on touch layouts. */
html[data-ui-runtime=web] body.phone-refined {
 --close-control-focus:1.5px solid #a77b41;
 --close-control-focus-offset:-3px;
}
html[data-ui-runtime=web] body.phone-refined[data-board-background=cosmic] {
 --close-control-focus:1.5px solid #e0c596;
 --close-control-surface:#142432;
}
