/* Ambient background for ink areas (templates/_ambient.html), v6 2026-11-20. Generated by scripts/make_ambient.py.
   Hero: constellations in the free space, sparse star dust, Constitution + rupee coin cut-outs at the edges.
   Other dark areas (.amb--stage): grid-square clusters in two corners, a few cells lighting up now and then.
   Solid fills only (no gradients, no glows); the centre stays clear; motion stops for reduced motion. */
.amb{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;border-radius:inherit}
.amb i,.amb img{position:absolute;display:block;max-width:none}
.amb svg{display:block;overflow:visible}

/* star dust */
.amb-dust{inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 720' preserveAspectRatio='none'%3E%3Crect x='441' y='105' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.45'/%3E%3Crect x='513' y='689' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.29'/%3E%3Crect x='386' y='624' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.47'/%3E%3Crect x='178' y='218' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.37'/%3E%3Crect x='1262' y='287' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.49'/%3E%3Crect x='56' y='164' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.23'/%3E%3Crect x='1123' y='32' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.4'/%3E%3Crect x='240' y='39' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.3'/%3E%3Crect x='1210' y='73' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.21'/%3E%3Crect x='210' y='203' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.25'/%3E%3Crect x='881' y='245' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.47'/%3E%3Crect x='859' y='636' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.44'/%3E%3Crect x='980' y='656' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.47'/%3E%3Crect x='638' y='704' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.34'/%3E%3Crect x='1262' y='184' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.46'/%3E%3Crect x='282' y='95' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.38'/%3E%3Crect x='107' y='207' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.45'/%3E%3Crect x='1260' y='342' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.27'/%3E%3Crect x='689' y='358' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.39'/%3E%3Crect x='889' y='124' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.5'/%3E%3Crect x='1112' y='167' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.43'/%3E%3Crect x='24' y='299' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.45'/%3E%3Crect x='994' y='644' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.46'/%3E%3Crect x='102' y='129' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.55'/%3E%3Crect x='1215' y='11' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.26'/%3E%3Crect x='678' y='99' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.54'/%3E%3Crect x='571' y='106' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.39'/%3E%3Crect x='1024' y='599' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.44'/%3E%3Crect x='97' y='194' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.22'/%3E%3Crect x='1114' y='12' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.38'/%3E%3Crect x='169' y='5' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.48'/%3E%3Crect x='164' y='386' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.54'/%3E%3Crect x='0' y='337' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.25'/%3E%3Crect x='1271' y='310' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.25'/%3E%3Crect x='1087' y='502' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.29'/%3E%3Crect x='338' y='717' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.33'/%3E%3Crect x='530' y='453' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.23'/%3E%3Crect x='1213' y='193' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.49'/%3E%3Crect x='556' y='129' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.38'/%3E%3Crect x='564' y='119' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.39'/%3E%3Crect x='1100' y='337' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.44'/%3E%3Crect x='262' y='558' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.51'/%3E%3Crect x='851' y='81' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.34'/%3E%3Crect x='231' y='226' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.49'/%3E%3Crect x='583' y='715' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.42'/%3E%3Crect x='534' y='363' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.24'/%3E%3Crect x='1097' y='314' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.46'/%3E%3Crect x='230' y='549' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.54'/%3E%3Crect x='1160' y='710' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.47'/%3E%3Crect x='239' y='676' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.42'/%3E%3Crect x='913' y='627' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.55'/%3E%3Crect x='160' y='339' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.38'/%3E%3Crect x='221' y='379' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.21'/%3E%3Crect x='1252' y='599' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.47'/%3E%3Crect x='801' y='661' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.36'/%3E%3Crect x='1215' y='178' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.3'/%3E%3Crect x='1165' y='704' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.3'/%3E%3Crect x='1179' y='703' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.53'/%3E%3Crect x='927' y='700' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.38'/%3E%3Crect x='746' y='622' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.43'/%3E%3Crect x='357' y='638' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.27'/%3E%3Crect x='100' y='55' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.22'/%3E%3Crect x='205' y='527' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.5'/%3E%3Crect x='48' y='211' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.25'/%3E%3Crect x='1193' y='476' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.24'/%3E%3Crect x='1248' y='582' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.51'/%3E%3Crect x='386' y='98' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.33'/%3E%3Crect x='1219' y='105' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.4'/%3E%3Crect x='253' y='697' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.35'/%3E%3Crect x='1006' y='436' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.53'/%3E%3Crect x='1113' y='84' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.48'/%3E%3Crect x='423' y='125' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.34'/%3E%3Crect x='506' y='707' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.53'/%3E%3Crect x='216' y='67' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.23'/%3E%3Crect x='1183' y='119' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.35'/%3E%3Crect x='182' y='242' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.27'/%3E%3Crect x='142' y='247' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.35'/%3E%3Crect x='1271' y='468' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.27'/%3E%3Crect x='256' y='19' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.49'/%3E%3Crect x='753' y='38' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.36'/%3E%3Crect x='1140' y='414' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.36'/%3E%3Crect x='35' y='221' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.29'/%3E%3Crect x='125' y='635' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.32'/%3E%3Crect x='186' y='309' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.43'/%3E%3Crect x='1258' y='197' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.44'/%3E%3Crect x='1176' y='636' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.27'/%3E%3Crect x='471' y='1' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.55'/%3E%3Crect x='439' y='111' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.23'/%3E%3Crect x='510' y='669' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.43'/%3E%3Crect x='921' y='650' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.46'/%3E%3Crect x='1104' y='597' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.55'/%3E%3Crect x='661' y='118' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.45'/%3E%3Crect x='932' y='637' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.32'/%3E%3Crect x='956' y='626' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.47'/%3E%3Crect x='229' y='663' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.37'/%3E%3Crect x='749' y='102' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.45'/%3E%3Crect x='1077' y='518' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.53'/%3E%3Crect x='286' y='591' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.25'/%3E%3Crect x='907' y='665' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.21'/%3E%3Crect x='622' y='680' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.41'/%3E%3Crect x='317' y='30' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.51'/%3E%3Crect x='374' y='623' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.31'/%3E%3Crect x='618' y='552' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.23'/%3E%3Crect x='1' y='36' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.43'/%3E%3Crect x='90' y='313' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.54'/%3E%3Crect x='1158' y='642' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.54'/%3E%3Crect x='1243' y='531' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.52'/%3E%3Crect x='1196' y='684' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.25'/%3E%3Crect x='84' y='214' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.48'/%3E%3Crect x='98' y='122' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.26'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;animation:amb-tw 9s ease-in-out infinite alternate}
@keyframes amb-tw{0%{opacity:1}100%{opacity:.5}}

/* constellations: lines draw in once, stars twinkle slowly */
.amb-cl{opacity:.42}
.amb-cl-l line{stroke-dasharray:1;stroke-dashoffset:1;animation:amb-draw 2.4s .6s cubic-bezier(.4,0,.2,1) forwards}
.amb-cl:nth-of-type(3) .amb-cl-l line{animation-delay:1.2s}
.amb-cl:nth-of-type(4) .amb-cl-l line{animation-delay:1.8s}
.amb-cl:nth-of-type(5) .amb-cl-l line{animation-delay:2.4s}
.amb-cl:nth-of-type(6) .amb-cl-l line{animation-delay:3s}
@keyframes amb-draw{to{stroke-dashoffset:0}}
.amb-cl-s circle{opacity:.8;animation:amb-star 6s ease-in-out infinite}
@keyframes amb-star{0%,100%{opacity:.85}50%{opacity:.35}}
/* free-space spots in the hero (desktop): above the content, below the buttons, right edge, between columns */
.amb-c1{left:22%;top:3%}
.amb-c2{left:24%;bottom:2%}
.amb-c3{right:1.5%;bottom:4%}
.amb-c4{left:43.5%;top:38%;transform:scale(.8)}
.amb-c5{left:1%;top:6%}

/* photoreal objects (hero only), dimmed so they sit behind the content */
.amb-obj{height:auto;user-select:none}
.amb-book{width:520px;right:-210px;top:-96px;opacity:.5;transform:rotate(9deg)}
.amb-coins{width:300px;left:-104px;bottom:-118px;opacity:.55;transform:rotate(-6deg)}

/* section-2 panel: constellations in its free space (above, below, right of the card) + a square hatch patch */
.amb--stage .amb-c1{left:30%;top:1%}
.amb--stage .amb-c2{left:30%;top:auto;bottom:0}
.amb--stage .amb-c3{right:1.5%;bottom:auto;top:24%}
.amb--stage .amb-c4,.amb--stage .amb-c5{display:none}
.amb-hatch{right:26px;bottom:26px;width:104px;height:104px;overflow:hidden;border-radius:18px;opacity:.32}
.amb-hatch svg{overflow:hidden}

@media (max-width:640px){
  .amb-dust{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 1000' preserveAspectRatio='none'%3E%3Crect x='71' y='52' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.32'/%3E%3Crect x='379' y='429' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.46'/%3E%3Crect x='368' y='855' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.51'/%3E%3Crect x='320' y='62' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.38'/%3E%3Crect x='59' y='325' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.35'/%3E%3Crect x='398' y='997' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.36'/%3E%3Crect x='49' y='969' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.22'/%3E%3Crect x='204' y='284' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.45'/%3E%3Crect x='354' y='439' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.49'/%3E%3Crect x='389' y='693' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.41'/%3E%3Crect x='176' y='909' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.42'/%3E%3Crect x='263' y='967' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.26'/%3E%3Crect x='117' y='865' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.51'/%3E%3Crect x='350' y='341' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.53'/%3E%3Crect x='98' y='793' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.42'/%3E%3Crect x='350' y='569' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.33'/%3E%3Crect x='310' y='143' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.52'/%3E%3Crect x='377' y='631' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.33'/%3E%3Crect x='11' y='563' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.32'/%3E%3Crect x='220' y='825' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.44'/%3E%3Crect x='249' y='154' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.39'/%3E%3Crect x='370' y='911' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.28'/%3E%3Crect x='173' y='772' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.48'/%3E%3Crect x='206' y='80' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.51'/%3E%3Crect x='81' y='136' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.34'/%3E%3Crect x='347' y='160' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.26'/%3E%3Crect x='332' y='913' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.41'/%3E%3Crect x='342' y='773' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.55'/%3E%3Crect x='206' y='863' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.36'/%3E%3Crect x='342' y='556' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.32'/%3E%3Crect x='11' y='499' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.23'/%3E%3Crect x='172' y='967' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.35'/%3E%3Crect x='131' y='136' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.2'/%3E%3Crect x='394' y='845' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.35'/%3E%3Crect x='254' y='896' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.25'/%3E%3Crect x='5' y='867' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.23'/%3E%3Crect x='394' y='735' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.28'/%3E%3Crect x='50' y='275' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.44'/%3E%3Crect x='348' y='87' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.37'/%3E%3Crect x='399' y='658' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.26'/%3E%3Crect x='335' y='317' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.53'/%3E%3Crect x='301' y='155' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.45'/%3E%3Crect x='349' y='488' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.41'/%3E%3Crect x='8' y='802' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.54'/%3E%3Crect x='134' y='47' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.42'/%3E%3Crect x='28' y='69' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.54'/%3E%3Crect x='382' y='388' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.42'/%3E%3Crect x='342' y='847' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.21'/%3E%3Crect x='376' y='286' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.45'/%3E%3Crect x='20' y='553' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.5'/%3E%3Crect x='378' y='282' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.53'/%3E%3Crect x='45' y='151' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.39'/%3E%3Crect x='308' y='931' width='1.5' height='1.5' fill='%23f9f6ee' fill-opacity='0.49'/%3E%3Crect x='163' y='52' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.43'/%3E%3Crect x='291' y='822' width='1' height='1' fill='%23f9f6ee' fill-opacity='0.23'/%3E%3C/svg%3E")}
  .amb-c1{left:30%;top:1%;transform:scale(.7);transform-origin:0 0}
  .amb-c2,.amb-c3,.amb-c4{display:none}
  .amb-c3{right:-30px;bottom:auto;top:44%;transform:scale(.7)}
  .amb-c5{left:auto;right:2%;top:30%;transform:scale(.6);transform-origin:100% 0}
  .amb-book{width:270px;right:-118px;top:-58px}
  .amb-coins{display:none}
  .amb--stage .amb-c2,.amb--stage .amb-c3,.amb--stage .amb-c5{display:none}
  .amb--stage .amb-c1{left:auto;right:4%;top:23%;transform:scale(.6);transform-origin:100% 0}
  .amb-hatch{right:18px;bottom:18px;width:76px;height:76px;border-radius:14px}
}
@media (prefers-reduced-motion:reduce){
  .amb *{animation:none!important}
  .amb-cl-l line{stroke-dashoffset:0}
}

/* hosts: the ambient layer sits under the content */
.hm-hero{position:relative;isolation:isolate}
.hm-hero>.wrap{position:relative;z-index:1}
.vx-stage{isolation:isolate}
.vx-stage>.vx-scene{position:relative;z-index:1}
.vx-stage>.vx-replay{position:absolute;z-index:20}
