/* Cinematic invitation opening. Keep the actual text and controls accessible. */
html.invitation-closed,html.invitation-closed body{overflow:hidden;overscroll-behavior:none} .opening-screen[hidden]{display:none!important}
.opening-screen{position:fixed;inset:0;z-index:1000;overflow:auto;overscroll-behavior:contain;background:#071c2c;color:#fff9e9;isolation:isolate;display:grid;place-items:center;padding: max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));text-align:center}
.opening-screen:before{content:"";position:fixed;inset:0;z-index:-2;background:linear-gradient(180deg,#051724a6 0%,#062b27d9 42%,#061d24b0 76%,#061d24a6),url('stadium-v5.webp') center bottom/cover no-repeat}
.opening-screen:after{content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 30%,#f5c45c20,transparent 52%),radial-gradient(ellipse at 8% 9%,#fff7d836,transparent 22%),radial-gradient(ellipse at 92% 9%,#fff7d836,transparent 22%);pointer-events:none}
.opening-scene{width:min(100%,640px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(5px,1.35svh,12px);margin:auto;position:relative;padding:8px 0;animation:openingAppear .8s ease both}
.opening-school{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:clamp(16px,2.7svh,25px);line-height:1.18;text-transform:uppercase;letter-spacing:.045em;max-width:550px;margin:0;text-shadow:0 2px 8px #0009}
.opening-rule{width:min(70%,310px);display:flex;align-items:center;gap:12px;color:#f3d180;font-size:15px;line-height:1;margin:0 auto}.opening-rule:before,.opening-rule:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#f3d180)}.opening-rule:after{transform:scaleX(-1)}
.opening-emblem{width:min(64vw,36svh,315px);aspect-ratio:1;position:relative;display:grid;place-items:center;flex-shrink:0}.opening-emblem:before{content:"";position:absolute;inset:-10%;background:radial-gradient(circle,#f7c76e2b 40%,transparent 69%);animation:crestLight 4s ease-in-out infinite alternate}.opening-emblem img{position:relative;width:100%;height:auto;filter:drop-shadow(0 0 12px #e6b54a66) drop-shadow(0 5px 12px #0009)}
.opening-tag{font-family:Georgia,serif;text-transform:uppercase;letter-spacing:.14em;font-size:clamp(11px,1.8svh,16px);font-weight:bold;color:#f3d38b;margin:0;line-height:1.25}.opening-scene h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(31px,5.5svh,56px);line-height:.98;text-transform:uppercase;font-weight:700;letter-spacing:-.035em;margin:0;color:#fff6dc;text-shadow:0 2px 0 #9b7535,0 4px 12px #0008}.opening-scene h1 strong{display:block;font-size:1.18em;white-space:nowrap;color:#f9dfa0}.opening-year{background:linear-gradient(95deg,#b3812c,#f8d77e 18%,#ffe7a9 50%,#e7b548 82%,#b0802d);color:#09272a;border-radius:7px 7px 13px 13px;min-width:clamp(105px,30vw,165px);padding:1px 20px 3px;font:700 clamp(25px,4.5svh,40px)/1.15 Georgia,serif;box-shadow:0 4px 12px #0005;letter-spacing:.07em}
.opening-message{font-family:Georgia,serif;font-style:italic;line-height:1.4;font-size:clamp(14px,2.15svh,19px);max-width:460px;margin:4px 0;color:#fff5de}.opening-date{border:1px solid #d5ad60b0;border-radius:18px;background:#062822d9;box-shadow:0 0 18px #c99a3925;padding:8px 16px;font-size:clamp(13px,2.05svh,17px);width:min(100%,450px)}.opening-date>div{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;line-height:1.4}.opening-date>div+div{margin-top:5px;padding-top:5px;border-top:1px solid #e9cf8c35}.opening-date svg{color:#f2cd7d;width:18px;height:18px}.opening-ground{white-space:nowrap}
#openInvitation{width:min(100%,370px);min-height:54px;border-radius:999px;border:1px solid #fff0bd;color:#09281e;background:linear-gradient(180deg,#ffefba 0%,#f8d77b 45%,#dcab40 100%);box-shadow:0 0 0 3px #dca83d35,0 4px 22px #e9ba5155,inset 0 1px 2px #fff9;font:700 clamp(19px,3svh,26px)/1.2 Georgia,serif;display:flex;align-items:center;justify-content:center;gap:15px;padding:10px 20px;transition:transform .2s,box-shadow .2s;margin-top:5px}#openInvitation span{width:30px;height:30px;display:grid;place-items:center;background:#0a4935;color:#fff3d0;border-radius:50%}#openInvitation svg{width:17px;height:17px;fill:currentColor;stroke:none}#openInvitation:hover{box-shadow:0 0 0 3px #fbe2a666,0 5px 28px #e9ba5177}#openInvitation:active{transform:scale(.97)}.opening-foot{font:italic 13px/1.2 Georgia,serif;color:#e9dfc6;margin:0}
.opening-leaving{pointer-events:none;animation:gateLeave .65s cubic-bezier(.2,.7,.3,1) both}.opening-leaving .opening-scene{animation:sceneLeave .65s ease both}.opening-screen[data-transition=fade].opening-leaving .opening-scene{animation:none}.invitation-arriving{animation:invitationArrive .7s ease both}@keyframes openingAppear{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}@keyframes crestLight{to{opacity:.45;transform:scale(1.05)}}@keyframes gateLeave{to{opacity:0}}@keyframes sceneLeave{to{transform:scale(1.045)}}@keyframes invitationArrive{from{opacity:.5}to{opacity:1}}
.utilities{gap:8px}.utilities #fullscreen,.utilities #tourToggle,.utilities #sound{width:43px;height:43px;min-width:43px;padding:0;border-radius:50%;display:grid;place-items:center}.utilities #fullscreen span{display:none}.utilities #fullscreen[hidden],.utilities #tourToggle[hidden]{display:none!important}.utilities #tourToggle svg{width:20px;height:20px}.utilities #fullscreen svg{width:21px;height:21px}.utilities #fullscreen[aria-pressed=true]{background:transparent;color:var(--gold)}.utilities #fullscreen[aria-pressed=true] path{d:path('M3 8h5V3m13 5h-5V3M3 16h5v5m13-5h-5v5')}
@media(min-width:900px) and (min-height:650px){.opening-scene{max-width:720px}.opening-screen:before{background-position:center,center 70%}.opening-emblem{width:min(35svh,310px)}.opening-school{max-width:none}.opening-date{width:390px}}
@media(max-width:400px){.opening-screen{padding-inline:14px}.opening-scene h1 strong{font-size:1.1em}.utilities{gap:5px}.utilities #fullscreen,.utilities #tourToggle,.utilities #sound{width:38px;height:38px;min-width:38px}.brand{gap:6px;font-size:12px}.brand img{width:33px;height:33px}.mast{padding-inline:12px}.opening-date{padding:8px 10px}}
@media(max-height:650px){.opening-scene{gap:5px}.opening-emblem{width:min(49vw,30svh,220px)}.opening-scene h1{font-size:clamp(28px,5.3svh,38px)}.opening-foot{font-size:11px}.opening-screen{padding-block:10px}.opening-message{font-size:14px}#openInvitation{min-height:46px}.opening-date{padding:6px 10px}}
@media(prefers-reduced-motion:reduce){.opening-scene,.opening-emblem:before,.opening-leaving,.invitation-arriving{animation:none!important}}
/* Opening screen is not a scrolling content section: override the inherited section spacing. */
section.opening-screen:not(.hero){padding: max(12px,env(safe-area-inset-top)) 18px max(12px,env(safe-area-inset-bottom));margin:0;scroll-margin:0;min-height:0;max-height:100dvh;width:100%;grid-template-columns:minmax(0,1fr)}
.opening-scene{min-width:0;max-width:100%;overflow-wrap:break-word}
@media(max-width:400px){section.opening-screen:not(.hero){padding-inline:14px}.opening-scene h1 strong{white-space:normal}.opening-school{font-size:clamp(15px,5vw,21px)}}
@media(max-height:650px){section.opening-screen:not(.hero){padding-block:10px}.opening-scene{gap:4px;padding:2px 0}.opening-emblem{width:min(49vw,27svh,200px)}.opening-message{margin:2px 0}.opening-date{font-size:13px}#openInvitation{margin-top:3px}}

/* V9.2: the tour controls motion itself. */
html.tour-playing{scroll-behavior:auto!important}
.dock a.active{color:#f7d78c;background:linear-gradient(180deg,#eac3672c,#eac36712);box-shadow:inset 0 0 0 1px #eac36765;transition:background .3s,color .3s,box-shadow .3s}
.dock a.active svg{filter:drop-shadow(0 0 4px #efc36540)}
.dock a.active:after{background:var(--gold);width:22px;height:3px;border-radius:10px}
.tour-arrival:not(.hero) .wrap{animation:tourArrive .65s cubic-bezier(.22,.7,.3,1) both}
@keyframes tourArrive{from{opacity:.8;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.tour-arrival .wrap{animation:none!important}}
