*{box-sizing:border-box}
:root{--navy:#173f34;--gold:#a77a12;--cream:#f7f6e8;--soft:#e8ddb0}
body{margin:0;background:var(--cream);color:#273d32;font-family:"Hind Siliguri",sans-serif}
.page{width:min(100%,760px);margin:auto;padding:22px 14px 30px}
.heading{text-align:center;margin:0 0 16px}
.eyebrow{font-size:13px;color:#8b741d;letter-spacing:.04em}
h1{font-family:"Noto Serif Bengali","Hind Siliguri",serif;font-size:clamp(28px,6vw,42px);margin:4px 0 0;color:#73520a;font-weight:800}
.heading p{font-size:18px;margin:0;color:#35744c}
.poster-wrap{position:relative;width:100%;max-width:675px;margin:auto;line-height:0;touch-action:pan-y}
canvas{display:block;width:100%;height:auto}
.empty-note{position:absolute;left:27.5%;top:34.5%;width:45%;height:31%;display:grid;place-items:center;text-align:center;color:#806817;font:600 clamp(15px,3vw,23px) "Noto Serif Bengali",serif;pointer-events:none;opacity:.8}
.controls{max-width:600px;margin:20px auto 0;background:#fffdf2;border:1px solid #e6ddb7;border-radius:18px;padding:18px}
.field-label{display:block;font-weight:700;font-size:18px;margin-bottom:7px}
input[type=text]{width:100%;border:1.5px solid #d4c78d;border-radius:12px;padding:13px 14px;font:500 18px "Hind Siliguri",sans-serif;outline:none;background:white;color:#273d32}
input[type=text]:focus{border-color:#a77a12;box-shadow:0 0 0 3px #a77a1220}
.help{font-size:13px;color:#77735f;margin:7px 0 15px}
.upload-label{margin-top:14px}
input[type=file]{width:100%;font:14px "Hind Siliguri",sans-serif;color:#57564b}
input[type=file]::file-selector-button{border:0;border-radius:9px;padding:9px 13px;margin-right:10px;background:#e9dfb8;color:#5b4b19;font:600 14px "Hind Siliguri",sans-serif}
.range-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin-top:16px}
.range-row label{font-size:15px;white-space:nowrap}
input[type=range]{width:100%;accent-color:#9a771a}
button{font:600 15px "Hind Siliguri",sans-serif;cursor:pointer}
#reset{border:0;border-radius:9px;padding:8px 12px;background:#aebbb2;color:white}
button:disabled{opacity:.5;cursor:not-allowed}
.download{display:block;width:100%;border:0;border-radius:12px;padding:15px 12px;background:#7a5a10;color:#fff;font-size:19px;margin-top:17px}
.download:hover{background:#614607}
#status{text-align:center;min-height:22px;margin:10px 0 0;color:#39734a;font-size:14px}
footer{text-align:center;margin:18px auto 0;color:#655b37;font-size:15px;font-weight:600}
@media(max-width:420px){.page{padding:16px 10px 24px}.controls{padding:14px}.range-row{gap:6px}.range-row label{font-size:13px}#reset{padding:7px 9px}}
