/* CLAUDE 2026-11-02 — the landing page's menu around the game logo, over the 3D Story Hall. */
.hall-menu { position:fixed;z-index:5;top:12px;left:0;right:0;display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:'left logo right' '. play .';align-items:center;justify-items:center;gap:6px 32px;padding:0 96px;pointer-events:none; }
.hall-menu a,.hall-menu button { pointer-events:auto; }
.hall-logo { grid-area:logo;display:block; }
.hall-logo img { display:block;height:clamp(64px,12vh,112px);width:auto;filter:drop-shadow(0 4px 18px rgba(7,6,13,.85));transition:filter .25s ease,transform .25s ease; }
.hall-logo:hover img { filter:drop-shadow(0 0 16px rgba(255,224,138,.5));transform:scale(1.03); }
.hall-links { display:flex;gap:6px clamp(10px,1.7vw,28px); }
.hall-links-left { grid-area:left;justify-self:end; }
.hall-links-right { grid-area:right;justify-self:start; }
.hall-links a { position:relative;display:flex;align-items:center;gap:8px;padding:8px 4px;color:var(--ink);font:500 clamp(14px,1.05vw,16px)/1.2 'Anuphan',system-ui,sans-serif;letter-spacing:.02em;text-decoration:none;white-space:nowrap;text-shadow:0 1px 8px rgba(7,6,13,.95);transition:color .2s ease; }
.hall-links a::after { content:'';position:absolute;left:4px;right:4px;bottom:2px;height:1px;background:linear-gradient(90deg,transparent,var(--gold-300),transparent);opacity:0;transform:scaleX(.4);transition:opacity .2s ease,transform .2s ease; }
.hall-links a:hover { color:var(--gold-300); }
.hall-links a:hover::after,.hall-links a:focus-visible::after { opacity:1;transform:scaleX(1); }
.hall-links svg,.hall-play svg { flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
.hall-play { grid-area:play;position:relative;display:flex;align-items:center;gap:10px;padding:9px 30px;border:1px solid var(--gold-300);border-radius:var(--radius-pill);background:linear-gradient(180deg,#fff0bd 0%,var(--gold-300) 32%,var(--gold-500) 62%,var(--gold-700) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 4px 18px rgba(7,6,13,.7),0 0 18px rgba(255,224,138,.28);color:var(--on-gold);font:700 clamp(15px,1.2vw,18px)/1.2 'Taviraj',Georgia,serif;letter-spacing:.04em;text-decoration:none;white-space:nowrap;transition:transform .15s ease,box-shadow .2s ease; }
.hall-play svg { fill:currentColor;stroke:none; }
.hall-play:hover { color:var(--on-gold);transform:translateY(-2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 6px 22px rgba(7,6,13,.75),0 0 30px rgba(255,224,138,.6); }
.hall-play:active { transform:translateY(1px); }
.hall-language { position:fixed;top:16px;right:16px;background:rgba(20,17,42,.72);backdrop-filter:blur(6px); }
.hall-foot { position:fixed;z-index:4;left:16px;bottom:16px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;max-width:30vw;color:var(--muted);font-size:12px;line-height:1.5;text-shadow:0 1px 6px rgba(7,6,13,.95); }
.hall-foot a { color:var(--muted); }
.hall-foot a:hover { color:var(--gold-300); }
.hall-menu a:focus-visible,.hall-foot a:focus-visible { outline:3px solid #5fc9ff;outline-offset:3px;border-radius:6px; }
#controls { z-index:4; }
body[data-page=home] #main { display:contents; }
body.idle .hall-foot { opacity:0;transition:opacity 1.2s ease; }

/* Narrower PC windows: the logo and Play button take the first row, every link the row below. */
@media (max-width:1180px) {
 .hall-menu { grid-template-columns:auto auto;grid-template-areas:'logo logo' 'play play' 'left right';padding:0 16px;gap:4px 18px;justify-content:center; }
 .hall-logo img { height:clamp(52px,9vh,84px); }
 .hall-links { gap:2px 10px; }
 .hall-links a { padding:6px 2px;font-size:13px;gap:5px; }
 .hall-links svg { width:15px;height:15px; }
}
/* Phones held sideways: one row; the logo left, Play right. */
@media (max-height:500px) {
 .hall-menu { top:6px;grid-template-columns:auto 1fr auto 1fr auto;grid-template-areas:'logo left play right .';gap:0 8px;padding:0 64px 0 10px;justify-content:stretch; }
 .hall-logo img { height:42px; }
 .hall-links a span { display:none; }
 .hall-links a { padding:8px; }
 .hall-links svg { width:20px;height:20px; }
 .hall-links-left { justify-self:end; }
 .hall-play { padding:6px 16px;font-size:14px; }
 .hall-language { top:8px;right:6px; }
 .hall-language button { padding:2px 8px;font-size:12px; }
 .hall-foot { display:none; }
 /* The caption moves to the left so every control fits beside it. */
 #controls { bottom:max(8px,env(safe-area-inset-bottom,0px));right:max(8px,env(safe-area-inset-right,0px));gap:4px; }
 #controls button { padding:6px 10px; }
 #cap-name { font-size:26px; }
 #caption { left:max(12px,env(safe-area-inset-left,0px));right:auto;bottom:max(8px,env(safe-area-inset-bottom,0px));justify-items:start;text-align:left;gap:2px;padding:0; }
 #cap-meta { font-size:12px;text-indent:0; }
}
/* Upright phones: the links wrap under the logo; the page's corner notes make way. */
@media (max-width:640px) {
 .hall-menu { grid-template-columns:1fr;grid-template-areas:'logo' 'play' 'left' 'right';padding:0 12px;gap:2px; }
 .hall-links-left,.hall-links-right { justify-self:center; }
 .hall-language { top:8px;right:8px; }
 .hall-foot { display:none; }
 #controls { left:8px;right:8px;bottom:max(10px,env(safe-area-inset-bottom,0px));justify-content:center;gap:6px; }
 #controls button { padding:7px 10px;font-size:12px;white-space:nowrap; }
 #caption { bottom:calc(max(10px,env(safe-area-inset-bottom,0px)) + 46px); }
}
