.entrance { position:relative; display:grid; isolation:isolate; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:end; gap:clamp(6px,2vw,28px); width:min(1200px,calc(100% - 56px)); margin:0 auto clamp(8px,1.8vh,23px); --portal-height:clamp(145px,36svh,355px); }
.entrance::before { content:""; position:absolute; z-index:-1; inset:auto -4% 1%  -4%; height:30%; background:url("/assets/entrance/fence.svg") center bottom / 100% 100% no-repeat; opacity:.85; pointer-events:none; }
.entrance::after { content:""; position:absolute; z-index:-2; inset:auto -8% -8px; height:23%; background:radial-gradient(ellipse at 50% 90%,#4b3f29 0%,#0d1a20 58%,transparent 76%); pointer-events:none; }
.entrance-choice { position:relative; justify-self:center; width:min(100%,calc(var(--portal-height) * var(--scale) * var(--w) / var(--h))); color:#f8ecd0; display:block; border-radius:20% 20% 8% 8%; -webkit-tap-highlight-color:transparent; }
.entrance-art { position:relative; display:block; aspect-ratio:var(--w) / var(--h); overflow:hidden; transform-origin:center bottom; transition:transform .2s ease,filter .2s ease; filter:drop-shadow(0 6px 12px #02070c); }
.entrance-art img { position:absolute; display:block; max-width:none; width:calc(100% * 1122 / var(--w)); height:calc(100% * 1402 / var(--h)); left:calc(-100% * var(--x) / var(--w)); top:calc(-100% * var(--y) / var(--h)); }
.entrance-door { --w:1030;--h:1105;--x:48;--y:143;--scale:.92; }
.entrance-reception { --w:1098;--h:1345;--x:12;--y:2;--scale:1; }
.entrance-arch { --w:1101;--h:930;--x:10;--y:214;--scale:.87; }
.entrance-choice:focus-visible .entrance-art { transform:translateY(-4px);filter:brightness(1.13) drop-shadow(0 4px 9px #101d37); }
.entrance-hint { display:none; position:absolute; z-index:2; inset:auto auto 7% 50%; transform:translateX(-50%); color:#fff0cf; background:#0a1725; border:1px solid #a88b60; border-radius:7px; padding:.25rem .52rem; white-space:nowrap; font-size:.8rem; pointer-events:none; }
.entrance-choice:focus-visible .entrance-hint,.entrance-choice[data-image-failed] .entrance-hint { display:block; }
.entrance-choice[data-image-failed] .entrance-art { border:1px solid #a88b60;background:#172333; }
@media(hover:hover){.entrance-choice:hover .entrance-hint{display:block}.entrance-choice:hover .entrance-art{transform:translateY(-4px);filter:brightness(1.13) drop-shadow(0 4px 9px #101d37)}}
.hero[data-entrance=guest] { grid-template-rows:1fr auto; align-items:end; }
.hero[data-entrance=guest] .hero-copy { align-self:center; padding-block:clamp(24px,5.5svh,64px) 15px; }
.hero[data-entrance=guest] .hero-wordmark { margin-bottom:clamp(12px,2.7svh,32px); }
.hero[data-entrance=guest] .hero-text { margin-bottom:clamp(10px,2.6svh,24px); }
.account-menu { display:flex; align-items:center; gap:.45rem; flex:none; font-size:.75rem; }
.account-menu a,.account-menu button { color:#f2e3c8;border:1px solid #586275;background:#13212b;padding:.3rem .48rem;border-radius:6px;white-space:nowrap; }
#home-auth-status { position:absolute; width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
@media(max-width:1080px){.topinner:has(.account-menu:not([hidden])){flex-wrap:wrap;gap:12px}}
@media(max-width:800px){
 .entrance { width:calc(100% - 26px); margin-bottom:20px; --portal-height:clamp(104px,39vw,230px); }
 .hero[data-entrance=guest] .hero-copy { padding-block:clamp(108px,31vw,190px) 18px; }
 .account-menu { margin:.3rem 0 .45rem; }
}
@media(max-height:650px) and (min-width:801px){
 .entrance{--portal-height:clamp(120px,31svh,215px)}
 .hero[data-entrance=guest]{min-height:calc(100svh - 79px)}
 .hero[data-entrance=guest] .hero-copy{padding-block:15px 6px}
}
@media(prefers-reduced-motion:reduce){.entrance-art{transition:none}.entrance-choice:hover .entrance-art,.entrance-choice:focus-visible .entrance-art{transform:none}}
