*{box-sizing:border-box}body{color:#f9edcd;background:#24483a;margin:0;font:16px/1.45 system-ui,sans-serif}main{background:radial-gradient(at 45% 60%,#547149,#17362c 75%);height:100dvh;overflow:hidden}canvas{touch-action:none;display:block}header,.loading{z-index:2;position:absolute}header{text-shadow:0 2px 8px #102820;pointer-events:none;background:#17362ce8;border-radius:12px;max-width:calc(100% - 2rem);padding:1rem 1.25rem;top:clamp(1rem,4vw,3rem);left:clamp(1rem,4vw,3rem)}.brand{color:#d2b076;font-weight:700}h1,h2,h3{margin:.35em 0;font-family:Georgia,serif;line-height:1.1}h1{font-size:clamp(1.4rem,3vw,2.5rem)}header p{margin:.35rem 0}button{cursor:pointer;color:#fff0ce;font:inherit;background:#23483a;border:1px solid #ab895e;border-radius:8px;padding:.55rem .8rem}button:disabled{opacity:.55;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #aa6d29}.loading{inset:50% auto auto 45%}dialog{color:#30291f;background:#fff3d9;border:1px solid #a18357;border-radius:12px;width:min(35rem,100% - 1.5rem);max-height:90dvh;padding:clamp(1rem,4vw,2.1rem);position:fixed;box-shadow:0 14px 60px #17231e99}dialog::backdrop{background:#10282199}dialog p{margin:.5rem 0}.close{padding:.15rem .55rem;position:absolute;top:.65rem;right:.65rem}form{gap:.8rem;padding-top:.6rem;display:grid}label{gap:.22rem;font-weight:600;display:grid}input,textarea,select{min-width:0;font:inherit;color:inherit;background:#fffaf0;border:1px solid #ad9675;border-radius:6px;padding:.52rem}input[type=checkbox]{accent-color:#235844}.check{align-items:flex-start;gap:.6rem;font-weight:400;display:flex}.check input{margin-top:.35rem}.rules{background:#eee0bd;border-radius:7px;padding:.75rem}.rules p{font-size:.9rem}small{font-weight:400}.joystick{bottom:calc(2.7rem + env(safe-area-inset-bottom));aspect-ratio:1;touch-action:none;background:#15392880;border:1px solid #fae5ae88;border-radius:50%;width:clamp(7.5rem,36vmin,10rem);position:absolute;left:1.2rem}.joystick span{background:#f7e4ab;border-radius:50%;position:absolute;inset:32%}.admin{gap:1rem;max-width:960px;margin:auto;padding:2rem 1rem;display:grid}.admin article{color:#30291f;background:#fff3d9;border-radius:10px;padding:1.1rem}.admin-actions{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.admin article a{color:#23483a}.admin a{color:#eac187}.admin img{width:min(320px,100%);height:auto;display:block}.admin input,.admin select{color:#30291f}.letter-dialog{background:#795338;border-color:#a98460;width:min(62rem,100% - 1rem);max-height:calc(100dvh - 1rem);padding:.55rem}.letter-spread{gap:.55rem;display:grid}.letter-paper,.donation-paper{background:#fff1d4;border:1px solid #bc9972;border-radius:9px;min-width:0;padding:1.1rem}.letter-paper{padding-right:1.1rem}.letter-dialog .close{z-index:1;background:#64442e;border-color:#947251;top:1rem;right:1rem}.letter-paper h2,.donation-paper h2{padding-right:2rem}.letter-dialog button:not(.close){min-height:44px}.letter-dialog input,.letter-dialog select,.letter-dialog textarea{background:#fff8e9;border-color:#b3916c}.free-note{background:#efddba;border-left:3px solid #97714b;border-radius:4px;padding:.55rem .7rem;font-size:.92rem}.sender-fields{gap:.75rem;display:grid}.letter-dialog .send{background:#6a442e;border-color:#886041}.donation-paper{color:#422f20;background:#f0ddbc}.donation-kicker{letter-spacing:.12em;color:#724927;font-size:.75rem;font-weight:800}.pix-payment{text-align:center;background:#fff1d4;border:1px solid #c3a17a;border-radius:8px;justify-items:center;gap:.25rem;padding:.75rem;display:grid}.pix-payment img{background:#fff;border:1px solid #d3b892;border-radius:5px;width:min(180px,100%);height:auto;display:block}.pix-recipient{font-size:.77rem;font-weight:700}.pix-key{overflow-wrap:anywhere;font:clamp(.66rem,2.5vw,.81rem)/1.4 ui-monospace,monospace}.pix-actions{flex-wrap:wrap;justify-content:center;gap:.5rem;display:flex}.pix-actions button{background:#735039;border-color:#917057;font-size:.85rem}.pix-payment p{margin:.15rem 0}.pix-payment [role=status]:empty{display:none}.project-note{border-top:1px solid #bea07a;margin-top:.75rem;padding-top:.65rem;font-size:.88rem}.project-note summary{cursor:pointer;font-weight:700}@media (width>=760px){.letter-dialog{max-height:calc(100dvh - 2rem);padding:.8rem}.letter-spread{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start;gap:.75rem}.letter-paper,.donation-paper{padding:1.35rem}.sender-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.letter-paper:only-child{grid-column:1/-1}}.move-help{color:#f1deba;margin:.4rem 0;display:block}.move-touch{display:none}.direct-letter{pointer-events:auto;color:#f3dbab;text-underline-offset:.2em;background:0 0;border:0;border-radius:0;min-height:36px;padding:.25rem 0;font-size:.87rem;text-decoration:underline;display:block}@media (pointer:coarse){.move-keyboard{display:none}.move-touch{display:inline}.direct-letter{min-height:44px}}
