/* The Grand Hall -- independent interactive game selector.
 * Existing game board, Home computer play and Royal checks are unchanged.
 */
#grandHall[hidden],#onlineOptions[hidden]{display:none!important}
body.wd-gate #grandHall,body.wd-auth-pending #grandHall{display:none!important}
body.wd-grand-hall-open{overflow:hidden!important}
#grandHall{
  position:fixed!important;inset:0!important;z-index:800!important;overflow-y:auto!important;
  overscroll-behavior:contain;box-sizing:border-box;
  background:
    linear-gradient(180deg,rgba(1,8,25,.43) 0%,rgba(2,14,42,.46) 50%,rgba(2,10,30,.66) 100%),
    url('/grand-hall-clean-background.svg') center center/cover fixed no-repeat,
    #061638;
  color:#fff3c7!important;
  font-family:Georgia,'Times New Roman',serif!important;
  text-align:center!important;
}
#grandHall *,#grandHall *::before,#grandHall *::after{box-sizing:border-box}
#grandHall .gh-content{position:relative;max-width:1320px;width:calc(100% - 28px);margin:0 auto;padding:12px 0 34px}
#grandHall .gh-heading{display:flex;flex-direction:column;align-items:center;position:relative;z-index:1}
#grandHall .gh-logo{width:min(690px,80%);max-height:192px;display:block;object-fit:contain;filter:drop-shadow(0 3px 10px #000)}
#grandHall h1{
 font:900 clamp(32px,5.4vw,68px)/1 Georgia,serif!important;
 margin:-5px auto 5px!important;letter-spacing:.075em;text-shadow:0 3px 0 #674109,0 8px 14px #000,0 0 20px #ffd570!important;
 color:#ffdea0!important;text-transform:uppercase;
}
#grandHall .gh-subtitle{margin:4px auto 17px!important;color:#fff0dc!important;
 font:400 clamp(16px,2.3vw,26px)/1.2 Georgia,serif!important;text-shadow:0 2px 8px #000}
#grandHall .gh-bar{height:4px;width:min(86%,900px);background:linear-gradient(90deg,transparent,#c99234 10%,#fff3ad 50%,#c99234 90%,transparent);box-shadow:0 3px 12px #000}
#grandHall .gh-hero{display:grid;grid-template-columns:49% 51%;position:relative;overflow:hidden;
 min-height:clamp(320px,31vw,445px);
 border:3px solid #e4b050!important;border-radius:15px!important;isolation:isolate;
 background:linear-gradient(125deg,#02112b,#0c3070 55%,#020d29)!important;
 box-shadow:0 0 0 2px #48300f,0 0 24px #ffbb5173,0 20px 38px #000a!important;
 margin:16px 0 14px!important;}
#grandHall .gh-hero::after{position:absolute;inset:10px;content:"";pointer-events:none;border:1px solid #ffd78378;border-radius:7px;z-index:3}
#grandHall .gh-hero-info{position:relative;z-index:2;padding:28px clamp(18px,4.2vw,60px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:left!important;
 background:linear-gradient(90deg,#020d25 5%,#071e48e8 80%,#102c5100)}
#grandHall .gh-available{background:linear-gradient(180deg,#fff0ad,#d79e3e);border:1px solid #fcdf99;border-radius:3px;color:#321b08;padding:6px 14px;font:bold 12px system-ui,sans-serif;letter-spacing:.05em}
#grandHall .gh-hero h2{font:900 clamp(35px,5.2vw,69px)/1.03 Georgia,serif!important;letter-spacing:.03em;
 margin:10px 0!important;color:#ffdf9e!important;text-shadow:0 4px 4px #000!important}
#grandHall .gh-eyebrow{font-size:clamp(12px,1.45vw,17px);letter-spacing:.05em;margin:0 0 12px;color:#fff6d7!important}
#grandHall .gh-description{font-size:clamp(15px,1.6vw,20px)!important;line-height:1.45!important;margin:0 0 24px!important;color:#f8f2e7!important;max-width:440px}
#grandHall .gh-enter{min-height:54px;padding:12px 22px!important;border:2px solid #ffe5a1!important;border-radius:10px!important;
 background:linear-gradient(180deg,#ffeda6,#eebc5c 55%,#b57a24)!important;color:#281500!important;
 text-shadow:none!important;font:900 clamp(15px,1.7vw,22px)/1.2 Georgia,serif!important;
 cursor:pointer!important;box-shadow:0 4px 0 #785011,0 8px 16px #000c!important}
#grandHall .gh-enter:hover{filter:brightness(1.14)}
#grandHall .gh-hero-art{position:relative;background:
 linear-gradient(90deg,#0a204c88 0%,transparent 16%,#02132a45 100%),
 url('/grand-hall-clean-dome.svg') center center/cover no-repeat;
 min-height:310px}
#grandHall .gh-hero-art::after{content:"WORDS  •  STRATEGY  •  SKILL";position:absolute;right:12px;bottom:14px;color:#fff6d8;background:#061737bd;padding:7px 10px;border:1px solid #d49b48;
 font:700 clamp(10px,1.06vw,13px)/1.2 Georgia,serif;letter-spacing:.05em;text-shadow:0 2px 6px #000}
#grandHall .gh-future{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0 0 18px}
#grandHall .gh-card{height:clamp(160px,15.6vw,210px);position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;overflow:hidden;
 border:2px solid #dfae59!important;border-radius:13px!important;
 background:linear-gradient(180deg,#164d86,#071936)!important;box-shadow:0 5px 16px #000c,0 0 8px #f8b74d66!important}
#grandHall .gh-card-art{position:absolute;inset:0;background-position:center 38%;background-size:cover}
#grandHall .gh-blitz .gh-card-art{background-image:linear-gradient(180deg,#08183c55,#07152d 89%),url('/grand-hall-clean-background.svg')}
#grandHall .gh-quest .gh-card-art{background-image:linear-gradient(180deg,#08183c11,#07152d 88%),url('/grand-hall-clean-dome.svg')}
#grandHall .gh-hunt .gh-card-art{background-image:linear-gradient(180deg,#102a4c33,#07152d 90%),url('/grand-hall-clean-background.svg')}
#grandHall .gh-card-copy{position:relative;z-index:1;width:100%;padding:5px 9px 10px;background:linear-gradient(180deg,transparent,#06132de9 22%,#041126)}
#grandHall .gh-card h3{color:#ffdea0!important;font:900 clamp(20px,2.45vw,33px)/1.03 Georgia,serif!important;margin:2px 0 4px!important;text-shadow:0 2px 5px #000}
#grandHall .gh-card p{margin:0 0 9px!important;font:400 clamp(11px,1.15vw,14px)/1.28 Georgia,serif!important;color:#fff4e4!important}
#grandHall .gh-soon{font:800 11px/1 system-ui,sans-serif;color:#f0d7a5;border:1px solid #c89646;border-radius:12px;padding:5px 18px;display:inline-block;background:#041027c9}
#grandHall .gh-chess{font-size:42px;line-height:1;position:relative;text-shadow:0 2px 6px #020712;color:#ffe6a9}
#grandHall .gh-clocks{display:flex;gap:38px;justify-content:center;margin-bottom:1px}
#grandHall .gh-clock{font:900 13px/1 monospace;padding:3px 6px;border-radius:4px;color:#9bd7ff;background:#061632;border:2px solid #3a95ff;box-shadow:0 0 8px #007cfa}
#grandHall .gh-clock:last-child{color:#ffc2af;border-color:#ff6250;box-shadow:0 0 8px #f44336}
#grandHall .gh-hunt-grid{display:inline-block;margin-bottom:1px;font:700 11px/1.17 monospace;letter-spacing:.24em;color:#ffe0a0;transform:rotate(-2deg);text-shadow:0 1px 3px #000}
#grandHall .gh-bottom{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:9px}
#grandHall .gh-home{color:#241300!important;background:linear-gradient(#ffe5a4,#eeb448,#ba7b1e)!important;
 font:900 16px/1.2 Georgia,serif!important;border:2px solid #ffe6ad!important;padding:12px 24px!important;
 border-radius:11px!important;box-shadow:0 5px 12px #000d!important;cursor:pointer!important}
#grandHall .gh-home:hover{filter:brightness(1.13)}
#grandHall .gh-footer{font:700 11px system-ui,sans-serif;letter-spacing:.11em;color:#f4d9a7;text-shadow:0 2px 5px #000}
body.wd-grand-hall-modal #grandHall::after{position:fixed;content:"";inset:0;background:rgba(0,6,19,.66);pointer-events:none;z-index:6}
body.wd-grand-hall-modal #onlineOptions{
 position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;
 transform:translate(-50%,-50%)!important;
 z-index:950!important;box-sizing:border-box!important;
 width:min(440px,calc(100vw - 24px))!important;
 max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;
 margin:0!important;padding:22px 24px 22px!important;
 background:linear-gradient(160deg,#184587,#082352 64%,#06183d)!important;
 border:3px solid #f3c653!important;border-radius:19px!important;
 box-shadow:0 14px 50px #000e,0 0 35px #ffe47455,inset 0 0 19px #0005!important;
 text-align:center!important;
}
body.wd-grand-hall-modal #onlineOptions h2{margin:0 0 10px!important;font-size:26px!important}
body.wd-grand-hall-modal #onlineOptions .online-options-intro{margin-bottom:16px!important}
body.wd-grand-hall-modal #onlineOptions .join-room-code{margin-top:15px!important;padding-top:14px!important}
body.wd-grand-hall-modal #onlineOptions #create{min-width:210px!important}
body.wd-grand-hall-modal #onlineOptions .online-options-back{margin:12px auto 0!important}
body.wd-grand-hall-modal #onlineOptions #room{margin-bottom:7px!important}
body.wd-grand-hall-modal #onlineOptions .online-room-note{font-size:11px!important}
@media(max-width:740px){
 #grandHall .gh-content{width:calc(100% - 16px);padding-top:8px}
 #grandHall .gh-logo{width:90%;max-height:155px}
 #grandHall .gh-hero{grid-template-columns:1fr;min-height:auto}
 #grandHall .gh-hero-art{order:-1;min-height:180px;max-height:220px}
 #grandHall .gh-hero-info{align-items:center;text-align:center!important;padding:17px 17px 21px}
 #grandHall .gh-hero h2{font-size:clamp(32px,8vw,51px)!important}
 #grandHall .gh-description{margin-bottom:12px!important;font-size:15px!important}
 #grandHall .gh-future{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 #grandHall .gh-card{height:175px}
 #grandHall .gh-card h3{font-size:clamp(11px,2.6vw,19px)!important}
 #grandHall .gh-card p{font-size:10px!important}
 #grandHall .gh-card-copy{padding:4px 4px 7px}
 #grandHall .gh-chess{font-size:31px}
 #grandHall .gh-clocks{gap:4px}
 #grandHall .gh-clock{font-size:9px;padding:2px}
 #grandHall .gh-soon{font-size:9px;padding:4px 6px}
 #grandHall .gh-hunt-grid{font-size:9px}
}
@media(max-width:440px){
 #grandHall .gh-future{grid-template-columns:1fr;gap:8px}
 #grandHall .gh-card{height:154px}
 #grandHall .gh-card h3{font-size:23px!important}
 #grandHall .gh-card p{font-size:12px!important}
 body.wd-grand-hall-modal #onlineOptions{padding:15px 14px!important;max-height:calc(100dvh - 12px)!important}
 body.wd-grand-hall-modal #onlineOptions h2{font-size:22px!important}
 body.wd-grand-hall-modal #onlineOptions .online-options-intro{font-size:13px!important;margin-bottom:10px!important}
 body.wd-grand-hall-modal #onlineOptions .online-game-settings{margin-bottom:9px!important}
 body.wd-grand-hall-modal #onlineOptions .join-room-code{margin-top:9px!important;padding-top:10px!important}
}

/* Dome Blitz is now selectable; retain the approved card artwork and layout. */
#grandHall .gh-blitz-enter{
 cursor:pointer!important;
 color:#261402!important;
 background:linear-gradient(180deg,#ffe6a4,#dcaa48)!important;
 border-color:#fff0b4!important;
 font:800 11px/1 system-ui,sans-serif!important;
}
/* Pointer hover must not draw a white outline around the invisible Blitz
   hotspot; its clipped corners were visible as stray white dots in the hall. */
#grandHall .gh-blitz-enter:hover{
 filter:brightness(1.1);
}
#grandHall .gh-blitz-enter:focus-visible{
 filter:brightness(1.1);
 outline:2px solid #fff4cf;
 outline-offset:2px;
}

/* Approved Dome Blitz PNG — keep the original Grand Hall card footprint.
   The artwork contains its own lettering and Enter button. The real HTML
   button remains keyboard-accessible as one transparent hit target. */
#grandHall .gh-blitz .gh-card-art{
 background-image:url("/Dime%20Blitz%20Approved%20Deployment.png")!important;
 background-position:center center!important;
 background-size:100% 100%!important;
 background-repeat:no-repeat!important;
}
#grandHall .gh-blitz .gh-card-copy{display:contents!important}
#grandHall .gh-blitz .gh-card-copy > :not(#grandHallEnterBlitz){display:none!important}
#grandHall #grandHallEnterBlitz{
 position:absolute!important;inset:0!important;z-index:3!important;
 display:block!important;width:100%!important;height:100%!important;
 margin:0!important;padding:0!important;border:0!important;
 background:transparent!important;box-shadow:none!important;
 color:transparent!important;font-size:0!important;
 cursor:pointer!important;filter:none!important;
}
#grandHall #grandHallEnterBlitz:hover{filter:none!important}
#grandHall #grandHallEnterBlitz:focus-visible{
 outline:3px solid #fff1bb!important;outline-offset:-5px!important;
 border-radius:13px!important;
}
