
/* SPGIX Signature Edition — original event-specific visual system */
:root{--navy:#0a1930;--gold:#c9a15e;--ivory:#fff9ef}
body{background:#071428}
.top{background:linear-gradient(90deg,#08172bee,#142943e9);border-bottom:1px solid #e5bd6c40;box-shadow:0 10px 45px #0003}
.brand{font-family:'DM Sans',sans-serif;font-size:13px}
.brand small{letter-spacing:.12em}
.top-actions button{background:#ffffff0c;transition:.25s}
.top-actions button:hover{background:#d6ad6225;border-color:#d6ad62}
.stage{background:#071428}
.ambient{background:radial-gradient(ellipse at 50% 80%,#33445b 0%,transparent 54%),radial-gradient(circle at 8% 25%,#203a57 0%,transparent 43%),linear-gradient(145deg,#061122,#142c45 54%,#0a1424)}
.ambient:before{content:"";position:absolute;inset:0;background:url('building.png') center 50%/cover;opacity:.075;filter:grayscale(1)}
.ambient:after{background:repeating-radial-gradient(ellipse at 50% 120%,transparent 0 55px,#c7a3620e 56px 57px,transparent 58px 115px)}
.deck{width:min(495px,100%);height:min(770px,calc(100svh - 190px));filter:drop-shadow(0 38px 60px #000a)}
.inv-card{background:linear-gradient(155deg,#fffcf6,#f7f0e4 65%,#efe1c7);border:1px solid #b18a4b;border-radius:14px;box-shadow:inset 0 0 0 7px #fffaf0,inset 0 0 0 8px #c7a86c8a,0 20px 55px #0005;padding:52px 39px 38px;transform:translateX(55%) rotateY(-18deg) scale(.91);transition:transform .72s cubic-bezier(.17,.78,.18,1),opacity .55s}
.inv-card.active{animation:arrivalGlow 1.1s ease-out both}
.inv-card:before{inset:15px;border-radius:6px;border-color:#c6a56b90}
.inv-card:after{inset:20px;border-radius:4px;border-color:#d4bc8b80}
.inv-card .ornament{color:#9c7334;font-size:9px;letter-spacing:.24em}
.inv-card .mini-crest{width:66px;height:66px;padding:5px;background:#fff;border:1px solid #d9bc7b;box-shadow:0 5px 25px #6e51202b}
.inv-card h2{font-size:clamp(45px,6.7vh,69px);letter-spacing:-.035em}
.inv-card h2 em{color:#ac7b35}
.inv-card .bodycopy{color:#364156;max-width:365px}
.inv-card .primary{background:linear-gradient(125deg,#0d2444,#1e4266);border:1px solid #d3b477;color:#fff;box-shadow:0 8px 20px #122b4230,inset 0 1px #ffffff30;transition:transform .25s,box-shadow .25s}
.inv-card .primary:hover{transform:translateY(-3px);box-shadow:0 14px 30px #122b4250,0 0 0 3px #d6ad6230}
.inv-card .secondary{background:#fffaf1a8;transition:.25s}
.inv-card .secondary:hover{background:#ead7b5}
.hero{background:linear-gradient(175deg,#fff8ebf7 0%,#f5e9d7e8 45%,#ecdfc8 100%)}
.hero .campus{inset:0;background:linear-gradient(180deg,#fff9eeec 0%,#fff9eebd 27%,#fff9eead 49%,#f5eadbe8 75%,#f4e5d2 100%),url('building.png') center 48%/cover no-repeat;opacity:1}
.hero:before{z-index:1}
.hero .crest{width:96px;height:96px;padding:6px;border:2px solid #d3ad65;box-shadow:0 8px 22px #765d3240;background:white}
.hero .schoolline{font-size:11px;color:#152e4d}
.hero .hero-title{margin:15px 0 5px}
.hero .hero-title span{font-size:12px;letter-spacing:.47em}
.hero .hero-title h1{font-size:clamp(67px,12vh,100px);text-shadow:0 2px 0 #fff7e5;letter-spacing:-.055em}
.hero .hero-title strong{font-size:49px;letter-spacing:.16em}
.hero .tagline{font-size:24px;line-height:1.06}
.hero .footnote{letter-spacing:.15em;color:#5d503d}
.champions{background:radial-gradient(circle at 50% 28%,#fffef8,#f5ead8 70%,#ead4ae)}
.champions:before{background:linear-gradient(90deg,#d6ad6299,#d6ad6299) padding-box}
.champions .medal{font-size:85px;color:#a97b33;text-shadow:0 8px 20px #e4c98b}
.inv-card:nth-child(3){background-image:radial-gradient(circle at 50% 25%,#fffef8 10%,#f5e9d6 70%),url('athletics.svg');background-size:cover,75%;background-position:center,center bottom;background-repeat:no-repeat}
.inv-card:nth-child(4){background:radial-gradient(circle at 50% 55%,#fffef9,#f3e4cc)}
.inv-card:nth-child(4) .date-big{font-size:clamp(156px,26vh,222px);font-weight:600;line-height:.75;letter-spacing:-.07em;color:#152e4d;text-shadow:4px 5px 0 #dfc99f}
.inv-card:nth-child(4) .weekday{padding:12px 18px;background:#152e4d;color:#fff;letter-spacing:.11em}
.inv-card:nth-child(5){background:linear-gradient(170deg,#fffaf1,#eee0c6)}
.inv-card:nth-child(6) .gategrid>div{border-radius:4px;background:#fffaf2;border-left:4px solid #b78a48;text-align:left;padding:13px}
.inv-card:nth-child(6) .gategrid b{color:#153457;letter-spacing:.06em}
.inv-card:nth-child(7),.inv-card:nth-child(9){background:linear-gradient(160deg,#fffaf0 0%,#f4e6ce 70%,#ebd5ad 100%)}
.inv-card:nth-child(8){background:linear-gradient(170deg,#fffaf0,#f3e5cd)}
.inv-card:nth-child(8):before{border-color:#d6ad62}
.finalcard{background:radial-gradient(circle at 50% 42%,#fffaf0,#e9d7b5)}
.deck-nav{gap:20px}
.deck-nav button{width:50px;height:50px;border:1px solid #e1bd77;background:#f8edd7;color:#142b47;box-shadow:0 8px 22px #0005;transition:.25s}
.deck-nav button:hover:not(:disabled){transform:translateY(-3px);background:#fff}
.deck-nav button:disabled{opacity:.35;cursor:not-allowed}
.deck-nav>div{min-width:125px;font-weight:700}
.progress{height:3px;border-radius:9px;overflow:hidden}
.progress i{background:linear-gradient(90deg,#d6ad62,#fff0bb)}
.swipehint{font-size:10px;letter-spacing:.15em;text-transform:uppercase}
.page{background:radial-gradient(ellipse at 50% -15%,#294563,#071629 65%)}
.pagehero img{border:3px solid #d6ad62;box-shadow:0 8px 30px #0007}
.pagehero h1{color:#f9ebd4}
.panel{border:1px solid #d0a35f;border-radius:12px;box-shadow:0 35px 85px #0007}
.timeline article{border-bottom:1px solid #d6ad6233;margin-bottom:20px}
@keyframes arrivalGlow{0%{filter:brightness(1.13)}100%{filter:brightness(1)}}
@media(min-width:1000px){.stage:before{content:'ANNUAL SPORTS DAY';position:absolute;top:52%;left:3%;writing-mode:vertical-rl;transform:rotate(180deg);color:#d9bb7b55;font-family:'Cormorant Garamond',serif;letter-spacing:.3em;font-size:clamp(16px,2vw,29px)}.stage:after{content:'ST. PETER’S · BHARATPUR · 2026';position:absolute;right:3%;top:52%;writing-mode:vertical-rl;color:#d9bb7b55;letter-spacing:.23em;font-size:12px}}
@media(max-width:500px){.deck{height:calc(100svh - 162px)}.inv-card{padding:48px 25px 30px;border-radius:11px}.inv-card:before{inset:11px}.inv-card:after{inset:16px}.hero .crest{width:78px;height:78px}.hero .hero-title h1{font-size:clamp(61px,11vh,88px)}.hero .hero-title strong{font-size:40px}.hero .tagline{font-size:21px}.inv-card h2{font-size:clamp(40px,6vh,58px)}.inv-card .bodycopy{font-size:clamp(19px,2.7vh,25px)}.inv-card:nth-child(4) .date-big{font-size:clamp(128px,23vh,185px)}}
@media(max-height:620px){.inv-card{justify-content:flex-start}.hero{justify-content:center}.inv-card .ornament{position:relative;top:auto;margin:0 0 12px}.hero .hero-title h1{font-size:65px}}
@media(prefers-reduced-motion:reduce){.inv-card.active{animation:none}}
