/* Approved transparent Grand Hall Royal Entrance.png from the repository.
   Render the single PNG unmasked: no rectangular panel, clipped columns, or
   incompatible WebP overlays. The entire entrance remains the navigation button. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #wdGrandEntrance {
  position:absolute!important;z-index:20!important;box-sizing:border-box!important;
  left:50%!important;right:auto!important;top:var(--wd-grand-entrance-top,225px)!important;
  transform:translateX(-50%)!important;margin:0!important;padding:0!important;
  display:block!important;width:var(--wd-grand-entrance-width,462px)!important;
  max-width:96%!important;aspect-ratio:1448/1086!important;height:auto!important;
  appearance:none!important;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;
  cursor:pointer;overflow:visible!important;isolation:isolate;touch-action:manipulation;
}
/* Fail closed during login/layout/font settling instead of displaying
   the PNG at an unmeasured fallback top over the computer controls. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #wdGrandEntrance:not([data-wd-positioned="true"]){
 visibility:hidden!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #wdGrandEntrance[data-wd-positioned="true"]{
 visibility:visible!important;
}
#wdGrandEntrance .wd-grand-entrance-art {
  position:absolute;inset:0;display:block;width:100%;height:100%;
  max-width:none;object-fit:contain;user-select:none;pointer-events:none;
  background:transparent!important;border:0!important;box-shadow:none!important;
  clip-path:none!important;
  transition:transform 1.65s cubic-bezier(.17,.75,.28,1),opacity 1.65s ease;
}
/* Keep the logo, crown, gold arch, and marble columns stationary. */
#wdGrandEntrance.is-opening .wd-grand-entrance-art{
  transform:none!important;opacity:1!important;
}
#wdGrandEntrance .wd-grand-open-interior{
  display:none;position:absolute;z-index:1;
  left:19.4751%;top:40.884%;width:60.0829%;height:46.869%;
  /* Crop only the central illuminated hallway from the approved full
     homepage mockup; no duplicated homepage controls or surrounding arch. */
  background-image:url('/Grand%20Hall%20Royal%20Entrance%20Open%20Approved.png?v=approved-open-20261021');
  background-repeat:no-repeat;
  background-size:235% 430%;
  background-position:50% 96%;
  box-shadow:inset 0 0 14px #0009;
  opacity:0;transition:opacity .26s ease;
  pointer-events:none;
}
#wdGrandEntrance.is-opening .wd-grand-open-interior{opacity:1}
#wdGrandEntrance .wd-grand-leaf{
  display:none;position:absolute;z-index:2;max-width:none;
  border:0!important;box-shadow:none!important;
  pointer-events:none;backface-visibility:hidden;transform-style:preserve-3d;
  transition:transform 1.65s cubic-bezier(.17,.75,.28,1);
}
#wdGrandEntrance.wd-grand-sprites-ready .wd-grand-open-interior,
#wdGrandEntrance.wd-grand-sprites-ready .wd-grand-leaf{display:block}
#wdGrandEntrance .wd-grand-leaf-left{transform-origin:0 50%}
#wdGrandEntrance .wd-grand-leaf-right{transform-origin:100% 50%}
#wdGrandEntrance.is-opening .wd-grand-leaf-left{transform:perspective(800px) rotateY(-87deg)}
#wdGrandEntrance.is-opening .wd-grand-leaf-right{transform:perspective(800px) rotateY(87deg)}
#wdGrandEntrance::before,#wdGrandEntrance::after {
  content:none!important;display:none!important;
}
#wdGrandEntrance:hover,#wdGrandEntrance:not(.is-opening):hover{
  background:transparent!important;box-shadow:none!important;filter:none!important;
}
#wdGrandEntrance:focus-visible{outline:3px solid #fff6aa!important;outline-offset:4px;border-radius:9px!important}
#wdGrandEntrance[aria-busy='true']{cursor:wait}
#wdGrandEntrance .wd-entrance-screenreader{
  position:absolute!important;clip-path:inset(50%)!important;
  width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important;
}
/* Keep the original homepage's hidden controls in the DOM and their layout
   footprint intact; they still carry the approved Grand Hall navigation. */
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #wdRoyalGoldDivider,
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #openOnlineOptions {
  visibility:hidden!important;pointer-events:none!important;
}
body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .mode-title{display:none!important}
@media(max-width:850px){
 /* Prevent the decorative entrance's high stacking order from stealing
    taps on Goal, Level, Timer and Play Computer. This does not move art. */
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby > .computer-launch-row.wd-home-controls-one-line{
  position:relative!important;z-index:21!important;
 }
 body:not(.wd-gate):has(#lobby:not([hidden])):has(#game[hidden]) #lobby #wdGrandEntrance{
   position:relative!important;top:auto!important;left:auto!important;right:auto!important;
   transform:none!important;width:min(100%,474px)!important;max-width:100%!important;margin:max(12px, calc(42px - (min(100vw, 474px) * 1086 / 1448 * .15))) auto 0!important;
 }
}
@media(prefers-reduced-motion:reduce){
 #wdGrandEntrance .wd-grand-entrance-art,#wdGrandEntrance .wd-grand-leaf{transition-duration:.08s!important}
}
