/* Opening-only proposal. Original live-site type, colours, layout and page effects remain. */
.opening{--opening-motion:450ms;--opening-edge:clamp(20px,3vw,44px);--opening-light:#F1EDE3;--opening-muted:#C9CEC4;--opening-shade:rgba(38,51,48,.96);background:radial-gradient(ellipse at 40% 15%,#526B5B 0%,#3E554A 40%,#293B32 100%)}
.opening::before{display:none!important}.opening::after{content:"";position:absolute;z-index:1;inset:45% 0 0;background:linear-gradient(transparent,var(--opening-shade));pointer-events:none}
.opening__chapters{position:absolute;z-index:3;top:24px;left:var(--opening-edge);right:var(--opening-edge);display:flex;gap:28px;align-items:center;color:var(--opening-muted);pointer-events:none;font-size:12px;line-height:1.5;font-weight:600}
.opening__chapters span{display:flex;gap:8px;align-items:center;opacity:.6;transition:opacity var(--opening-motion),color var(--opening-motion)}.opening__chapters i{height:1px;width:14px;background:currentColor}.opening__chapters .is-active{opacity:1;color:var(--opening-light)}.opening__chapters .is-active i{background:var(--lime)}
.opening__narrative{position:absolute;left:var(--opening-edge);bottom:40px;right:240px;z-index:3;display:grid;pointer-events:none}
.opening__beat{grid-area:1/1;opacity:0;transform:translateY(9px);transition:opacity var(--opening-motion) var(--out),transform var(--opening-motion) var(--out);align-self:end}
.opening__beat.is-active{opacity:1;transform:none}.opening__beat p{color:var(--opening-light);font-size:clamp(25px,2.7vw,42px);font-weight:600;letter-spacing:-.025em;line-height:1.1;text-wrap:balance;max-width:24ch}
.opening__beat>span{display:block;color:var(--opening-muted);font-size:14px;line-height:1.45;max-width:56ch;margin-top:12px}
.opening__controls{position:absolute;right:var(--opening-edge);bottom:42px;z-index:4;display:grid;justify-items:end;gap:14px}.opening .win__btn{position:static;display:flex;align-items:center;gap:18px;padding:0 20px;min-height:46px;font-size:12px;letter-spacing:.02em;text-transform:none}.opening__explore{display:flex;gap:20px;align-items:center;min-height:34px;color:var(--opening-light);font-size:13px;border-bottom:1px solid rgba(241,237,227,.4)}.opening__explore:hover{border-bottom-color:var(--terra)}.opening__controls :focus-visible{outline-color:var(--chalk)}
.opening__progress{position:absolute;bottom:0;left:0;right:0;z-index:4;height:3px;background:rgba(241,237,227,.1)}.opening__progress i{display:block;height:100%;background:var(--lime);transform:scaleX(var(--order,0));transform-origin:left;will-change:transform}
body .hero__side{display:block}.opening.no-gl::before,.js-off .opening::before{content:"নিয়ম";display:grid!important;position:absolute;inset:0 0 25%;place-items:center;color:var(--chalk);font-family:"Fiona Bangla Round","Baloo Da 2",sans-serif;font-size:clamp(70px,12vw,150px)}.opening.no-gl canvas,.js-off .opening canvas,.opening.no-gl .win__btn,.js-off .opening .win__btn{display:none}.opening.no-gl .opening__beat,.js-off .opening .opening__beat{opacity:0}.opening.no-gl .opening__beat:last-child,.js-off .opening .opening__beat:last-child{opacity:1;transform:none}.opening.no-gl .opening__progress i,.js-off .opening .opening__progress i{transform:scaleX(1)}
html[lang=bn] .opening__beat p{font-family:"Baloo 2","Fiona Bangla Round","Baloo Da 2",sans-serif;letter-spacing:0;font-weight:400;line-height:1.3;font-size:clamp(24px,2.6vw,38px)}html[lang=bn] .opening__beat>span{font-size:16px;line-height:1.5}html[lang=bn] .opening__chapters{font-size:13px}
@media(max-width:980px){body .hero__head{grid-template-columns:minmax(0,1fr) minmax(0,30%);gap:22px}body .hero__side{font-size:15px;line-height:1.45}.opening__beat>span{max-width:42ch;font-size:13px}.opening__narrative{right:190px}.opening__controls{right:22px}.opening__chapters{gap:20px}}
@media(max-width:640px){body .hero__head{grid-template-columns:minmax(0,1fr);gap:8px}body .hero__side{font-size:15px;line-height:1.4;max-width:43ch}.opening{min-height:360px}.opening__chapters{top:17px;gap:12px;justify-content:space-between;font-size:9px;left:18px;right:18px}.opening__chapters span{gap:4px}.opening__chapters i{width:7px}.opening__narrative{left:20px;right:20px;bottom:92px}.opening__beat p{font-size:25px;max-width:25ch;line-height:1.08}.opening__beat>span{font-size:12px;line-height:1.35;margin-top:8px;max-width:34ch}.opening__controls{left:20px;right:20px;bottom:20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.opening .win__btn{padding:0 14px;min-height:44px;font-size:11px;gap:10px}.opening__explore{font-size:12px;gap:10px;min-height:44px}.opening::after{inset:35% 0 0}html[lang=bn] .opening__chapters{font-size:10px;gap:8px}html[lang=bn] .opening__beat p{font-size:24px}html[lang=bn] .opening__beat>span{font-size:14px;line-height:1.4}html[lang=bn] body .hero__side{font-size:16px;line-height:1.45}body .hero__sticky{min-height:800px;height:100svh}body .hero{min-height:2000px}.opening__narrative{pointer-events:none}}
@media(max-width:360px){.opening__beat p{font-size:23px}.opening__chapters{font-size:8px;gap:6px}.opening__chapters i{display:none}.opening .win__btn{font-size:10px;padding:0 10px}.opening__explore{font-size:11px;gap:6px}}
@media(prefers-reduced-motion:reduce){.opening__beat,.opening__chapters span{transition:none}}
.is-static .opening__beat,.is-static .opening__chapters span{transition:none}
.opening .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(min-width:641px) and (max-width:980px){.opening__controls{left:var(--opening-edge);right:var(--opening-edge);bottom:24px;display:flex;justify-content:space-between;align-items:center;gap:20px}.opening__narrative{left:var(--opening-edge);right:var(--opening-edge);bottom:100px}.opening__beat p{font-size:30px;max-width:32ch}.opening__beat>span{max-width:48ch}html[lang=bn] .opening__beat p{font-size:28px}}
/* Account/ledger labels appear only as the pieces find their places. */
.opening__labels{position:absolute;inset:0;z-index:2;pointer-events:none}.opening__labels span{position:absolute;left:0;top:0;white-space:nowrap;font-size:12px;font-weight:600;color:var(--chalk);letter-spacing:.06em;opacity:0}
.demo-tools{display:flex;align-items:center;gap:12px}.demo-toggle{min-height:44px;padding:0 16px;border:1px solid var(--chalk-muted);border-radius:24px;color:var(--chalk);background:transparent;font:inherit;font-size:12px;cursor:pointer}.demo-toggle:hover{background:rgba(241,237,227,.08)}.demo-toggle:focus-visible{outline-color:var(--chalk)}
body:not([data-page=home]) .opening.no-gl::before{content:"নিয়ম"}.opening__chapters span{white-space:nowrap}
@media(max-width:640px){.opening__labels span{font-size:10px;letter-spacing:0}.demo-tools{gap:8px}.app__bar{flex-wrap:wrap}.opening__chapters{gap:8px}.opening__chapters span{font-size:9px}body:not([data-page=home]) .hero__sticky{min-height:880px}body:not([data-page=home]) .opening{min-height:400px}}
@media(max-width:360px){body:not([data-page=home]) .opening__chapters span{font-size:8px}.opening__chapters i{display:none}.opening__controls{gap:8px}html[lang=bn] .opening__controls{flex-wrap:wrap}.opening__labels span{font-size:9px}}
/* Narrow Bangla controls wrap onto two rows; reserve both rows above them. */
@media(max-width:360px){html[lang=bn] .opening__narrative{bottom:144px}html[lang=bn] .opening{min-height:440px}}
/* A short phone can scroll the heading away before the scene pins. */
@media(max-width:640px){body .hero__sticky{height:auto;top:calc(-1 * var(--hero-overhang,0px))}.opening__chapters span{white-space:normal;min-width:0;align-items:baseline}.opening__chapters i{flex-shrink:0}}
@media(pointer:coarse){.opening__controls a,.opening__controls button{touch-action:manipulation}}
@media(max-height:600px) and (pointer:coarse){body .hero__sticky{height:auto;min-height:760px;top:calc(-1 * var(--hero-overhang,0px))}body .opening{min-height:440px}}
/* Keep the full lockup and both language choices inside narrow headers. */
@media(max-width:640px){.top .brand{gap:8px}.top .brand__sym{width:28px;height:30px}.top .brand__word{height:24px}.top .lang a{min-width:44px;padding:0 6px}.top__end{flex-shrink:0}.top .pill{padding-inline:12px}}
@media(max-width:360px){.top .brand{gap:6px}.top .brand__word{height:18px}.top .brand__sym{width:25px;height:27px}}
/* Native anchor jumps, including touch navigation, clear the fixed header. */
section[id],footer[id]{scroll-margin-top:100px}
