:root{--cream:#f9f4e8;--ink:#253a32;--orange:#df512d;--yellow:#f9d55d;--muted:#6a6e61;--line:#dcded0;--display:'Barlow Condensed',Impact,sans-serif;--body:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:30px}body{margin:0;background:var(--cream);color:var(--ink);font:15px/1.6 var(--body)}button,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #1687bd;outline-offset:5px}button{border:0}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}header{height:92px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;background:var(--cream)}.brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:22px}.brand-mark{font-family:var(--display);font-size:25px;display:grid;place-items:center;background:var(--ink);color:var(--cream);width:42px;height:42px;border-radius:12px;transform:rotate(-7deg)}nav{display:flex;gap:35px;align-items:center;font-size:13px;font-weight:600}.text-button{background:none;color:inherit;padding:12px 0;text-decoration:underline;text-underline-offset:5px}nav .text-button{text-decoration:none}.small-button{border:1px solid var(--ink);background:transparent;border-radius:7px;padding:12px 20px;font:700 16px var(--display)}.small-button span{margin-left:25px}.hero{height:820px;min-height:700px;position:relative;overflow:hidden;background:#f3c7a4;text-align:center}.hero-backdrop{position:absolute;inset:0;background:url('assets/poster.png') center 65%/cover}.hero-backdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,237,209,.52),rgba(255,236,207,.8) 10%,rgba(255,226,194,.15) 48%,rgba(18,34,29,.1) 90%,rgba(18,34,29,.7))}.hero-grain{position:absolute;inset:0;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.3' d='M0 0h180v180H0z'/%3E%3C/svg%3E");pointer-events:none}.hero-copy{position:relative;padding-top:39px;z-index:2}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;display:block}.eyebrow i{display:inline-block;width:6px;height:6px;background:var(--orange);border-radius:50%;margin-right:7px}h1{font:900 clamp(80px,10vw,144px)/1.2 var(--display);letter-spacing:-4px;margin:6px 0 -7px;text-shadow:0 4px 0 #fff4dd;position:relative;display:inline-block}h1 span[lang]{font-family:'Noto Sans Sinhala',sans-serif;font-size:.78em;letter-spacing:-8px}h1 em{color:var(--orange);font-style:italic}.title-star{position:absolute;right:-35px;top:10px;font-size:45px;transform:rotate(15deg);color:var(--orange)}.hero-tagline{font:700 35px/1.2 var(--display);margin:5px 0 12px}.hero-tagline span{text-decoration:underline;text-decoration-color:var(--orange);text-underline-offset:6px}.hero-description{font-size:14px;line-height:1.65;margin:14px 0 20px}.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:30px;background:var(--orange);color:#fff9eb;border:1px solid #ba3e20;border-bottom:4px solid #9d381e;border-radius:8px;padding:17px 25px;font:800 19px var(--display);letter-spacing:.7px;transition:transform .2s,background .2s}.primary-button:hover{transform:translateY(-3px);background:#c84324}.primary-button:active{transform:translateY(1px)}.hero-note{display:block;font-size:10px;margin-top:9px}.poster-cast{position:absolute;bottom:52px;left:50%;transform:translateX(-50%);width:650px;height:340px;z-index:1;pointer-events:none}.poster-person{position:absolute;width:210px;height:335px;filter:drop-shadow(0 12px 8px #0003)}.poster-person img{position:absolute;width:200px;height:200px;object-fit:contain;top:-5px;left:4px;z-index:3;filter:drop-shadow(2px 3px 0 #fff6)}.p-nipun{left:0;transform:rotate(-12deg) scale(.92);top:15px}.p-goja{left:220px;z-index:2;top:20px}.p-pola{right:0;transform:rotate(13deg) scale(.92);top:12px}.toon-body{position:absolute;top:158px;left:58px;width:100px;height:108px;border-radius:28px 28px 18px 18px;box-shadow:inset -16px -12px 0 #0002;border:2px solid #263732;background:var(--suit);transform:rotate(-8deg)}.toon-body.red{--suit:#be3344}.toon-body.blue{--suit:#3764a9}.toon-body.teal{--suit:#0a8b8b}.toon-body>span{font:800 45px var(--display);color:#fff7;position:absolute;left:36px;top:20px}.toon-body i{position:absolute;display:block;background:var(--suit);border:2px solid #293b38;box-shadow:inset -8px -8px 0 #0002;border-radius:20px}.toon-body .arm{width:34px;height:92px;top:12px;transform-origin:top}.toon-body .arm:after{content:'';position:absolute;bottom:-6px;left:-2px;background:#b98157;border-radius:14px;width:32px;height:27px}.toon-body .arm.left{left:-22px;transform:rotate(65deg)}.toon-body .arm.right{right:-22px;transform:rotate(-65deg)}.toon-body .leg{top:92px;width:37px;height:72px;background:#293a43;transform-origin:top}.toon-body .leg:after{content:'';position:absolute;bottom:-8px;left:-6px;width:52px;height:23px;background:#fff2cf;border:2px solid #293a43;border-radius:10px}.toon-body .leg.left{left:4px;transform:rotate(24deg)}.toon-body .leg.right{right:4px;transform:rotate(-29deg)}.speech{position:absolute;top:-28px;left:-18px;z-index:4;white-space:nowrap;background:var(--cream);border:1px solid var(--ink);padding:5px 10px;border-radius:4px;font-size:11px;font-weight:700;transform:rotate(-5deg)}.p-pola .speech{left:20px}.p-goja .speech{top:70px;left:150px;transform:rotate(9deg)}.poster-name{position:absolute;bottom:-10px;left:40px;right:10px;font:800 18px var(--display);color:var(--cream);background:var(--ink);border:1px solid #f9f4e877;padding:5px 12px;border-radius:3px;transform:rotate(-4deg)}.hero-sticker{position:absolute;right:8%;top:410px;width:125px;height:125px;background:var(--yellow);border:2px dashed #684b24;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(15deg);box-shadow:0 0 0 5px var(--yellow)}.hero-sticker span{font:900 40px/.9 var(--display)}.hero-sticker b{font:800 19px var(--display)}.hero-sticker small{font-size:8px}.hero-bottom{position:absolute;bottom:15px;left:5%;right:5%;display:flex;justify-content:space-between;color:#fff7e4;font-size:9px;letter-spacing:1.4px;font-weight:700;z-index:3}.ticker{height:58px;background:var(--ink);color:var(--cream);display:flex;align-items:center;justify-content:space-around;gap:35px;white-space:nowrap;overflow:hidden;font:700 22px var(--display);letter-spacing:1px}.ticker i{color:#e9c55e;font-style:normal}.section{padding:90px 7%;max-width:1600px;margin:auto}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:36px}.section-heading p{font-size:13px;color:var(--muted);padding-bottom:7px}h2{font:700 clamp(34px,4.4vw,62px)/1.04 var(--display);letter-spacing:-.5px;margin:18px 0}h2 em{font-style:normal;color:var(--orange)}.character-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.character-card{text-align:left;color:var(--ink);background:#eee9db;border:1px solid #d8d2bf;border-radius:13px;padding:0;overflow:hidden;transition:transform .2s,box-shadow .2s}.character-card:hover{transform:translateY(-7px);box-shadow:0 10px 0 #e2ddca}.card-portrait{height:270px;position:relative;overflow:hidden;background:var(--card);display:flex;align-items:flex-end;justify-content:center}.card-portrait:before{content:attr(data-letter);position:absolute;left:12px;bottom:-76px;font:900 380px/1 var(--display);color:#fff4}.card-portrait img{height:255px;width:255px;object-fit:contain;position:relative;z-index:2;transition:transform .25s;filter:drop-shadow(0 5px 0 #fff8)}.character-card:hover img{transform:rotate(-5deg) scale(1.04)}.card-number{position:absolute;top:20px;left:22px;font:600 13px var(--display);letter-spacing:2px}.card-tag{position:absolute;top:19px;right:17px;border:1px solid #253a3260;border-radius:20px;font-size:9px;font-weight:800;padding:4px 10px;letter-spacing:1px}.card-info{padding:23px}.card-info h3{font:700 35px var(--display);margin:0 0 5px}.card-info p{font-size:12px;color:#5d6258;min-height:40px;margin:0 0 19px}.card-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #c8cbb9;padding-top:14px;font-size:10px;font-weight:800;letter-spacing:.8px}.card-bottom i{font-style:normal;border-radius:50%;background:var(--ink);color:var(--cream);height:35px;width:35px;display:grid;place-items:center;font-size:22px}.run-settings{display:flex;justify-content:space-between;gap:20px;margin-top:30px;align-items:center}.segmented{display:flex;border:1px solid #c7cabc;border-radius:7px;padding:4px;margin-top:10px;gap:4px}.segmented button{padding:9px 14px;background:transparent;color:var(--ink);border-radius:4px;font-size:12px}.segmented .active{background:var(--ink);color:var(--cream)}.settings-note{font-size:11px;line-height:1.8;color:#61685d}.settings-note span{color:var(--orange)}.rules{display:grid;grid-template-columns:1fr 1fr;gap:70px;border-top:1px solid var(--line)}.rules p{font-size:13px;color:#64695f}.control-guide{display:flex;gap:16px;flex-wrap:wrap;margin-top:25px}.control-guide span{font-size:9px;font-weight:800;display:flex;align-items:center;gap:4px}kbd{font:600 16px var(--body);padding:4px 10px;border:1px solid #b6bcab;border-bottom:3px solid #b6bcab;background:#fff9ef;border-radius:5px}.muted{font-size:11px!important}.rule-notes article{display:flex;gap:22px;padding:24px 0;border-bottom:1px solid var(--line)}.rule-notes article>b{font:500 22px var(--display);color:var(--orange)}h3{margin:0;font-size:17px}.rule-notes p{margin:7px 0 0}.last-call{padding:65px 5%;text-align:center;background:#e7ebdc}.last-call h2{margin:20px 0 30px}footer{padding:35px 5%;display:flex;align-items:center;justify-content:space-between;font-size:11px}footer .brand{font-size:17px}footer .brand-mark{width:33px;height:33px;font-size:20px}
#game{position:fixed;inset:0;background:#ffd3a7;z-index:20;touch-action:none;overscroll-behavior:none}#game-canvas{display:block;width:100%;height:100%}.game-vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 100px #342b1535}.hud{position:absolute;top:max(20px,env(safe-area-inset-top));left:3%;right:3%;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;pointer-events:none}.hud button{pointer-events:auto}.runner-hud{display:flex;align-items:center;background:#fff5dfed;border:1px solid #29423433;border-radius:12px;padding:9px 16px 9px 5px;box-shadow:0 5px 0 #33473315}.runner-hud img{width:65px;height:65px;object-fit:contain}.runner-hud div{display:flex;flex-direction:column}.hud small{font-size:8px;font-weight:800;letter-spacing:1px}.runner-hud b{font:700 24px var(--display)}#hud-lives{font-size:10px;color:#b53520}.score-hud{background:#fff5dfed;padding:9px 24px;border-radius:12px;display:flex;flex-direction:column;text-align:center;min-width:180px}.score-hud b{font:800 42px/1.1 var(--display)}.score-hud span{font-size:10px}.hud-buttons{display:flex;gap:8px}.hud-buttons button{height:45px;min-width:45px;background:#fff4dfed;border-radius:10px;color:var(--ink);font-size:12px;font-weight:800;padding:0 13px}#chaser-label{position:absolute;left:3%;top:120px;background:#253a32d9;color:var(--cream);padding:7px 14px;border-radius:6px;font-size:11px}#power-status{position:absolute;top:122px;right:3%;font-weight:700;background:#f9d55de8;padding:5px 15px;border-radius:5px;font-size:12px}#power-status:empty{display:none}#toast{position:absolute;left:50%;top:26%;transform:translate(-50%,-10px);background:#fff3da;color:var(--ink);border:2px solid var(--ink);padding:12px 25px;border-radius:10px;font:700 23px var(--display);opacity:0;transition:.2s;pointer-events:none;text-align:center;max-width:90%;width:max-content}#toast.show{opacity:1;transform:translate(-50%,0)}#countdown{position:absolute;inset:0;display:grid;place-items:center;font:900 140px var(--display);color:var(--cream);text-shadow:5px 6px 0 var(--orange);pointer-events:none}.game-bottom{position:absolute;bottom:20px;left:3%;right:3%;display:flex;justify-content:space-between;font-size:10px;font-weight:800;letter-spacing:1px;color:#fff8e9;text-shadow:1px 1px 3px #000}.touch-controls{position:absolute;bottom:max(40px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:15px}.touch-controls button{width:55px;height:50px;border-radius:12px;border:1px solid #fff7;background:#fff0d8c9;color:var(--ink);font-size:25px;box-shadow:0 4px 0 #243d3455}.touch-controls button:active{background:#f9d55d;transform:translateY(3px)}#splat-layer{position:absolute;inset:0;pointer-events:none;overflow:hidden}.splat{position:absolute;background:#74401f;border-radius:47% 53% 40% 60%;box-shadow:inset -10px -10px 0 #4c291b77,0 0 0 4px #8c512dcc;animation:splat .25s both}.splat:after{content:'';position:absolute;width:18%;height:150%;background:#74401f;top:50%;left:40%;border-radius:0 0 50% 50%}.splat:nth-child(even){background:#8d512b}.splat:nth-child(even):after{background:#8d512b}@keyframes splat{from{transform:scale(.05)}to{transform:scale(1)}}dialog{border:1px solid #fff9;border-radius:18px;padding:42px;background:var(--cream);color:var(--ink);max-width:min(580px,92vw);max-height:90dvh;overflow:auto;box-shadow:0 25px 100px #0005;text-align:center}dialog::backdrop{background:#142e2a99;backdrop-filter:blur(7px)}dialog p{font-size:14px}dialog h2{font-size:48px}.dialog-close{position:absolute;right:12px;top:12px;min-width:44px;min-height:44px;font-size:25px;background:none;color:var(--ink)}#pause-dialog>.text-button{display:block;margin:auto}.result-stats{display:flex;justify-content:space-around;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin:24px 0}.result-stats div{display:flex;flex-direction:column}.result-stats small{font-size:9px;letter-spacing:1px}.result-stats b{font:800 38px var(--display)}.result-actions{display:flex;flex-direction:column;gap:12px}.outline-button{border:1px solid var(--ink);background:transparent;border-radius:7px;padding:12px 20px;color:var(--ink);font:700 17px var(--display)}.score-row{display:grid;grid-template-columns:30px 50px 1fr auto;gap:10px;align-items:center;text-align:left;border-top:1px solid var(--line);padding:10px 0}.score-row img{height:50px;width:50px;object-fit:contain}.score-row small{display:block;font-size:10px}.score-row strong{font:700 25px var(--display)}#loading{position:absolute;inset:0;background:#f9f4e8ee;display:grid;place-items:center;font:700 30px var(--display)}
@media(min-width:900px) and (pointer:fine){.touch-controls{opacity:.4}.touch-controls:hover{opacity:1}}
@media(max-width:900px){nav{gap:15px;font-size:11px}.hero{height:800px}.hero-sticker{right:4%;width:100px;height:100px;top:420px}.hero-sticker span{font-size:30px}.hero-sticker b{font-size:16px}.card-portrait{height:225px}.card-portrait img{width:210px;height:210px}.section{padding:60px 5%}.card-info{padding:18px}.rules{gap:35px}.settings-note{max-width:310px}.hero-bottom span:last-child{display:none}}
@media(max-width:620px){header{height:74px;padding:0 5%}nav{display:none}.brand{font-size:19px}.small-button{padding:10px 13px}.small-button span{margin-left:12px}.hero{height:760px;min-height:0}.hero-backdrop{background-position:center bottom;background-size:auto 100%}.hero-copy{padding:35px 16px 0}.eyebrow{font-size:8px;letter-spacing:1.3px}.hero h1{font-size:96px;margin:15px 0 0}.hero h1 span[lang]{letter-spacing:-6px}.title-star{font-size:24px;right:-15px}.hero-tagline{font-size:30px}.hero-description{font-size:12px}.hero-cta{padding:14px 20px;font-size:17px}.poster-cast{width:650px;transform:translateX(-50%) scale(.62);transform-origin:center bottom;bottom:62px}.hero-sticker{top:auto;bottom:260px;right:25px;width:78px;height:78px}.hero-sticker span{font-size:26px}.hero-sticker b{font-size:12px}.hero-sticker small{font-size:6px}.hero-bottom{font-size:7px;gap:18px;text-align:left;bottom:20px}.ticker{height:48px;font-size:19px;justify-content:flex-start;padding-left:20px;gap:25px}.section{padding:50px 6%}.section-heading{display:block}.section-heading p{margin-bottom:0}h2{font-size:43px}.character-grid{grid-template-columns:1fr;gap:18px}.character-card{display:grid;grid-template-columns:42% 58%;min-height:200px}.card-portrait{height:100%;min-height:210px}.card-portrait img{width:180px;max-width:115%;height:185px;align-self:end}.card-portrait:before{font-size:260px;bottom:-40px;left:0}.card-number{top:12px;left:12px}.card-tag{top:12px;right:9px;font-size:7px;padding:2px 5px}.card-info{padding:18px 13px}.card-info h3{font-size:29px}.card-info p{font-size:11px;min-height:50px}.card-bottom{font-size:8px;letter-spacing:0}.card-bottom i{width:29px;height:29px}.run-settings{display:block}.segmented{width:max-content;max-width:100%}.segmented button{font-size:11px;padding:10px}.settings-note{margin-top:17px}.rules{grid-template-columns:1fr;gap:15px}.last-call{padding:50px 6%}footer{flex-wrap:wrap;gap:20px}footer>span{font-size:9px}.hud{top:max(12px,env(safe-area-inset-top));left:10px;right:10px;gap:6px}.runner-hud{padding:6px 8px 6px 0}.runner-hud img{width:43px;height:50px}.runner-hud b{font-size:18px}.runner-hud small{font-size:6px;letter-spacing:.3px}.score-hud{padding:6px 10px;min-width:95px}.score-hud b{font-size:29px}.score-hud small{font-size:6px;letter-spacing:0}.score-hud span{font-size:8px}.hud-buttons{flex-direction:column;gap:5px}.hud-buttons button{height:32px;min-width:40px;font-size:8px;border-radius:6px;padding:0 7px}.hud-buttons #pause-button{height:35px;font-size:18px}#chaser-label{top:100px;left:10px;font-size:8px;padding:6px 9px}#power-status{top:135px;left:10px;right:auto;font-size:10px}#toast{top:28%;font-size:20px}.game-bottom{bottom:12px;font-size:7px}.game-bottom span:last-child{display:none}.touch-controls{gap:13px;bottom:40px}.touch-controls button{width:58px;height:50px}dialog{padding:32px 24px}dialog h2{font-size:40px}.result-stats b{font-size:30px}}
@media(max-height:500px) and (orientation:landscape){.hud{top:7px}.runner-hud img{height:40px;width:40px}.runner-hud b{font-size:18px}.score-hud b{font-size:24px}#chaser-label{top:80px}.touch-controls{bottom:25px;left:auto;right:15px;transform:none}.touch-controls button{width:45px;height:42px}.game-bottom{bottom:8px}dialog{padding:20px}dialog h2{font-size:30px;margin:10px}.result-stats{padding:8px;margin:10px}.result-actions{gap:5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}.character-card:hover,.primary-button:hover{transform:none}}

@media(max-width:620px){.hero{height:700px}.hero h1{font-size:72px;white-space:nowrap;letter-spacing:-2px}.poster-cast{transform:translateX(-50%) scale(.52);bottom:55px}.hero-sticker{bottom:245px}.hero-tagline{font-size:29px}.hero-copy{padding-top:30px}}
