*{box-sizing:border-box} :root{color-scheme:light;--ink:#153e2e;--paper:#faf6e9;--gold:#b18431}body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 50% 35%,#fffcf3,transparent 70%),var(--paper);font-family:Georgia,'Times New Roman',serif;min-width:320px}button,a,textarea{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:5px}header{height:70px;max-width:1050px;margin:auto;display:flex;align-items:center;justify-content:center;gap:38px;position:relative;z-index:1}a{color:inherit}.brand{font-size:24px;font-weight:bold;text-decoration:none}nav{display:flex;gap:24px}nav button,.text-button,footer button{border:0;background:none;padding:6px;font-size:15px}nav button:hover,.text-button:hover{color:#94671c}.hero{text-align:center;position:relative;z-index:1}.eyebrow{font:600 11px/1.4 system-ui;letter-spacing:.21em;display:flex;gap:18px;align-items:center;justify-content:center}.eyebrow span{width:40px;height:1px;background:var(--gold)}.counter-block{position:relative}.total{font-size:clamp(64px,8vw,106px);font-weight:700;line-height:1.04;font-variant-numeric:tabular-nums;letter-spacing:-.055em;white-space:nowrap;min-height:1.04em}.total span{display:inline-block}.total .lit{animation:gold-flash 1s ease-out}.goal{margin:6px 0 0;font-size:15px}.credit{position:absolute;top:20px;left:calc(50% + 160px);font:bold 24px Georgia;color:var(--gold);opacity:0}.credit.show{animation:credit-rise 1s ease-out}.character-stage{height:clamp(280px,47svh,420px);width:min(420px,100%);margin:-7px auto 0;position:relative;overflow:hidden}canvas{width:100%;height:100%;object-fit:contain;display:block}canvas[hidden]{display:none}#poster{position:absolute;height:74.2%;width:auto;bottom:7%;left:50%;transform:translateX(-50%)}.intro{font-size:14px;margin:0 18px 18px;color:#526555}.bill{width:218px;height:80px;padding:10px 12px;background:#e9eed9;border:3px double #386047;border-radius:1px;display:flex;align-items:center;justify-content:space-between;margin:auto;position:relative;box-shadow:0 3px 0 #b7bea5,0 6px 10px #183c271a;transition:transform .15s,box-shadow .15s,background .15s;isolation:isolate}.bill:before{content:'';position:absolute;inset:4px;border:1px solid #507054;z-index:-1}.bill:hover{background:#f1f4df;transform:translateY(-3px);box-shadow:0 5px 0 #b7bea5,0 9px 14px #183c2724}.bill:active{transform:translateY(1px);box-shadow:0 1px 0 #b7bea5}.bill:disabled{cursor:wait}.denomination{font-size:44px;font-weight:bold;line-height:1}.rosette{width:47px;height:47px;flex-shrink:0}.engraving svg{width:100%;height:100%;display:block}.corner{position:fixed;width:clamp(150px,23vw,330px);height:clamp(150px,23vw,330px);pointer-events:none;color:#214c37;opacity:.5;z-index:0}.tl{left:-115px;top:-130px}.tr{right:-115px;top:-130px}.bl{left:-115px;bottom:-155px}.br{right:-115px;bottom:-155px}.demo-notice{font:11px system-ui;margin:12px 0 3px;color:#67705e}.message-link{text-decoration:underline;text-underline-offset:4px;font-size:14px}.notice{font:12px/1.5 system-ui;color:#67705e;height:36px;margin:12px 16px 0}footer{position:relative;z-index:1;border-top:1px solid #b1843155;margin:20px 30px 0;padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:14px;font:9px system-ui;letter-spacing:.12em}footer button{font:11px system-ui;letter-spacing:0}#flying-dollar{position:fixed;left:0;top:0;z-index:8;pointer-events:none;font:bold 44px Georgia;color:#bc8925;text-shadow:0 2px 0 #f7df8b;opacity:0}dialog{border:1px solid #bcc6ad;background:var(--paper);color:var(--ink);width:min(520px,calc(100% - 32px));max-height:85svh;padding:38px;box-shadow:0 20px 100px #0003}dialog::backdrop{background:#09231788;backdrop-filter:blur(3px)}dialog .eyebrow{justify-content:start}dialog h1{font-size:30px;line-height:1.12}dialog p,dialog li{line-height:1.65;font-size:15px}dialog .close{position:absolute;right:10px;top:7px;border:0;background:none;font:28px system-ui}textarea{display:block;width:100%;margin:10px 0;padding:12px;background:#fffdf4;border:1px solid #a2b198;font:16px/1.5 system-ui;color:var(--ink);resize:vertical}.save{border:0;background:var(--ink);color:var(--paper);padding:12px 18px}#events{padding-left:20px}#events li{margin-bottom:12px;overflow-wrap:anywhere}@keyframes gold-flash{0%,35%{color:#b18431;text-shadow:0 0 16px #edce7a}100%{color:var(--ink);text-shadow:none}}@keyframes credit-rise{0%{opacity:0;transform:translateY(8px)}20%,70%{opacity:1}100%{opacity:0;transform:translateY(-15px)}}@media(max-width:600px){header{height:59px;gap:20px}.brand{font-size:20px}nav{gap:6px}nav button{font-size:13px}.eyebrow{font-size:9px}.total{font-size:72px}.goal{font-size:13px}.character-stage{height:clamp(270px,43svh,350px)}.intro{max-width:290px;margin:0 auto 13px;font-size:13px}.bill{width:198px;height:74px}.denomination{font-size:40px}.credit{left:calc(50% + 110px);font-size:20px}.corner{opacity:.26}.tl,.bl{left:-118px}.tr,.br{right:-118px}footer{margin:10px 18px 0}.notice{font-size:11px}dialog{padding:30px 24px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.bill:hover{transform:none}.credit.show{opacity:1}}
header .brand{color:var(--ink)}
.homepage-header{display:grid;grid-template-columns:1fr auto 1fr;gap:0;padding:0;margin-bottom:0}
.homepage-header .brand{grid-column:2;justify-self:center}
@media(max-width:600px){.homepage-header{margin-bottom:64px}.hero .intro{margin-top:32px}}
.homepage-header nav{grid-column:3;justify-self:start;justify-content:center;width:134px;margin:0 0 0 12px}
@media(max-width:600px){.homepage-header{height:75px;grid-template-columns:1fr auto 1fr;grid-template-rows:59px;padding:16px 0 0;gap:0}.homepage-header .brand{grid-column:2;grid-row:1}.homepage-header nav{grid-column:3;grid-row:1;justify-self:end;width:auto;margin:0 10px 0 0}.homepage-header nav button{min-height:44px;min-width:44px}body:has(.homepage-header) #theme-toggle{left:10px;right:auto;top:24px}}
header .brand:hover{color:var(--gold)}
.counter-block .total{color:var(--ink);-webkit-text-stroke:1.5px var(--gold);paint-order:fill stroke}
.counter-block .credit{color:#a26b12;text-shadow:0 0 12px #d5a83f44}
[data-theme="dark"] .counter-block .credit{color:#ffda78;text-shadow:0 0 9px #ffda7866,0 0 22px #e8b84b33}
.character-stage{margin-top:-41px}
#flying-dollar{font-size:64px}
.credit.show,.total .lit{animation-duration:1.3s}
.counter-block .total{isolation:isolate}
.counter-block .total .lit{position:relative;animation:none}
[data-theme="dark"] .counter-block .total .lit{animation:none}
.total .digit-echo{position:absolute;inset:0;z-index:-1;pointer-events:none;color:var(--gold);-webkit-text-stroke:0;text-shadow:0 0 10px #d5a83f44;transform-origin:50% 65%;opacity:0;animation:digit-echo 1.1s ease-out forwards}
@keyframes digit-echo{0%{transform:scale(1);opacity:.7}20%{opacity:.5}100%{transform:scale(1.85);opacity:0}}
@media(prefers-reduced-motion:reduce){.total .digit-echo{display:none}}
.bill{height:88px;padding:15px 14px;color:#153e2e;border:3px double #31583e;background:repeating-linear-gradient(35deg,transparent 0 3px,#31583e09 3px 4px),linear-gradient(110deg,#d8e1c2,#f3f1d9 48%,#d4dfbf);box-shadow:0 2px 0 #9eac87,0 5px 0 #c0c8aa,0 9px 16px #183c2724}
.bill:before{inset:4px;border:1px solid #53704a;box-shadow:inset 0 0 0 2px #f1f1db,inset 0 0 0 3px #718362}
.bill:after{content:'';position:absolute;inset:10px 62px;border:1px solid #49643e;border-radius:50%;box-shadow:0 0 0 2px #eef0d7,0 0 0 3px #718362;pointer-events:none;z-index:-1;background:repeating-radial-gradient(ellipse,#53704a14 0 1px,transparent 1px 3px)}
.bill-caption,.bill-footnote{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;background:#e5e8cc;padding:0 5px;font:700 7px/1.2 Georgia,serif;letter-spacing:.16em;z-index:1}
.bill-caption{top:4px}.bill-footnote{bottom:4px;font-size:6px;letter-spacing:.12em}
.bill .denomination{font-size:43px;text-shadow:1px 1px #f9f4dd,-1px -1px #f9f4dd;letter-spacing:-.07em;padding-right:3px}
.bill-seal{position:relative;width:43px;height:51px;color:#365638;opacity:.7}
.bill:hover{background:repeating-linear-gradient(35deg,transparent 0 3px,#31583e09 3px 4px),linear-gradient(110deg,#e3e9cd,#fff9df 48%,#dbe5c7);box-shadow:0 3px 0 #9eac87,0 6px 0 #c0c8aa,0 12px 19px #183c2730}
@media(max-width:600px){.bill{height:82px;padding-inline:11px}.bill:after{inset:10px 55px}.bill-seal{width:38px;height:46px}.bill .denomination{font-size:40px}}
.counter-block{width:fit-content;max-width:100%;margin-inline:auto}
.counter-block .total{margin-top:-6px}
.credit{left:calc(100% + 8px);top:24px;font-size:34px;white-space:nowrap}
@media(max-width:600px){.credit{left:calc(100% + 4px);top:22px;font-size:28px}}
body,#checkout{
  background-color:#f2e8d5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23735b32' opacity='.045' filter='url(%23grain)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"),radial-gradient(ellipse at 50% 35%,#f7efdf88,transparent 72%);
  background-size:180px 180px,100% 100%;
}
.corner{color:#38583f;opacity:.52;width:clamp(200px,28vw,380px);height:clamp(200px,28vw,380px);mask-image:linear-gradient(135deg,#000 25%,#0009 65%,transparent 92%)}
.tl{left:8px;top:8px}.tr{right:8px;top:8px;transform:scaleX(-1)}
.bl{left:8px;bottom:8px;transform:scaleY(-1)}.br{right:8px;bottom:8px;transform:scale(-1)}
@media(max-width:600px){.corner{width:158px;height:158px;opacity:.3}.tl,.bl{left:-8px}.tr,.br{right:-8px}}
