/* Funny Money ($FUNNYMONEY). Yellow sunburst world, bill green, ink outlines, blue button. */
:root {
  --sky: #ffc81a; --sky2: #ffdb4d; --skyd: #c47f00; --blue: #2f6bff; --blued: #173fae;
  --ink: #0b1f10;
  --bill: #a4ea7c; --bill2: #5cc448; --billd: #1f7d2e;
  --cream: #fff6d8; --gold: #ffd23f; --goldd: #d98a00;
  --felt: #1f9a3a; --feltd: #0d5a20;
  --display: "Titan One", "Arial Black", system-ui, sans-serif;
  --text: "Rubik", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sky); }
body { margin: 0; touch-action: manipulation; overflow-x: hidden; font-family: var(--text); color: var(--ink); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the sky: slow turning rays behind the whole first screen */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--sky); }
.rays { position: absolute; left: 50%; top: 40%; width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  background: repeating-conic-gradient(from 0deg, var(--sky2) 0 9deg, var(--sky) 9deg 18deg); animation: spin 120s linear infinite; }
.sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .8), rgba(255, 250, 200, .3) 30%, transparent 52%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- first screen ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(14px, 3vh, 40px) 16px clamp(56px, 8vh, 96px); overflow: hidden; isolation: isolate; }
.stage { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 1560px; }
.w { font-family: var(--display); font-size: clamp(52px, 8.1vw, 156px); line-height: .9; letter-spacing: .01em; white-space: nowrap; user-select: none;
  -webkit-text-stroke: .085em var(--ink); paint-order: stroke fill; filter: drop-shadow(.04em .07em 0 var(--skyd)); animation: slam .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.w1 { color: #fff; justify-self: end; rotate: -7deg; translate: 13% -46%; z-index: 1; animation-delay: .15s; }
.w2 { color: var(--blue); justify-self: start; rotate: 5deg; translate: -15% 50%; z-index: 3; animation-delay: .42s; }
@keyframes slam { from { scale: 2.6; opacity: 0; } 60% { opacity: 1; } to { scale: 1; opacity: 1; } }

.guy { position: relative; z-index: 2; width: min(40vw, 60svh); padding: 0; border: 0; background: none; display: block; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.guy .tilt { display: block; transform: translate(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 10px)) rotate(calc(var(--mx, 0) * 3deg)); transition: transform .25s ease-out; }
.guy img { display: block; width: 100%; height: auto; filter: drop-shadow(.6vw 1vw 0 rgba(150, 92, 0, .5)); transform-origin: 50% 92%; animation: laugh 1.15s ease-in-out infinite; }
.guy.ha img { animation: giggle .5s linear; }
@keyframes pop { from { scale: 0; rotate: -25deg; } to { scale: 1; rotate: 0deg; } }
@keyframes laugh { 0%, 100% { transform: translateY(0) rotate(-1.4deg) scale(1, 1); } 25% { transform: translateY(-2.2%) rotate(.4deg) scale(.985, 1.02); } 50% { transform: translateY(0) rotate(1.4deg) scale(1.02, .98); } 75% { transform: translateY(-2.2%) rotate(-.4deg) scale(.985, 1.02); } }
@keyframes giggle { 0%, 100% { transform: rotate(0) scale(1); } 15% { transform: rotate(-7deg) scale(1.06, .95); } 35% { transform: rotate(6deg) scale(.96, 1.06); } 55% { transform: rotate(-5deg) scale(1.05, .96); } 75% { transform: rotate(4deg) scale(.98, 1.03); } }

.has { position: absolute; inset: 0; pointer-events: none; }
.has b { position: absolute; font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3.4vw, 56px); color: #fff; -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill;
  animation: ha 1.1s ease-out forwards; }
@keyframes ha { 0% { transform: translate(0, 0) scale(.2) rotate(var(--hr)); opacity: 0; } 18% { transform: translate(calc(var(--hx) * .3), calc(var(--hy) * .3)) scale(1.15) rotate(var(--hr)); opacity: 1; } 100% { transform: translate(var(--hx), var(--hy)) scale(.9) rotate(var(--hr)); opacity: 0; } }

/* falling bills and coins */
.rain { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.b { --bw: 90px; width: var(--bw); height: calc(var(--bw) * .48); display: grid; place-items: center; background: var(--bill); border: calc(var(--bw) * .035) solid var(--ink); border-radius: calc(var(--bw) * .08);
  box-shadow: inset 0 0 0 calc(var(--bw) * .035) var(--bill), inset 0 0 0 calc(var(--bw) * .06) var(--billd); font-family: var(--display); font-size: calc(var(--bw) * .2); line-height: 1; color: var(--billd); white-space: nowrap; }
.coin { --bw: 40px; width: var(--bw); height: var(--bw); border-radius: 50%; display: grid; place-items: center; background: var(--gold); border: calc(var(--bw) * .08) solid var(--ink);
  box-shadow: inset 0 0 0 calc(var(--bw) * .07) var(--gold), inset 0 0 0 calc(var(--bw) * .12) var(--goldd); font-family: var(--display); font-size: calc(var(--bw) * .5); line-height: 1; color: var(--goldd); }
.rain > * { position: absolute; top: 0; left: var(--x); opacity: var(--o, 1); animation: fall var(--d) linear var(--dl) infinite; will-change: transform; }
@keyframes fall { from { transform: translate3d(0, -22vh, 0) rotate(var(--r0)) rotateX(0deg); } to { transform: translate3d(var(--sw), 118vh, 0) rotate(var(--r1)) rotateX(var(--fl)); } }

/* ticker, CA, the print button */
.deck { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; margin-top: clamp(26px, 5.5vh, 60px); animation: rise .5s .7s ease-out both; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.tick, .ca { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 3px solid var(--ink); font-family: var(--display); font-size: 20px; line-height: 1; box-shadow: 0 4px 0 var(--skyd); }
.tick { background: var(--ink); color: var(--gold); }
.ca { background: var(--cream); color: var(--ink); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; font-size: 15px; }
.ca svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ca.none { font-family: var(--text); font-weight: 800; font-size: 15px; letter-spacing: .02em; }
button.ca:active { translate: 0 3px; box-shadow: 0 1px 0 var(--skyd); }

.print { position: relative; z-index: 2; font-family: var(--display); font-size: clamp(28px, 3.3vw, 46px); line-height: 1; color: #fff; background: var(--blue); border: 4px solid var(--ink); border-radius: 24px;
  padding: .44em 1.05em .5em; box-shadow: inset 0 .12em 0 rgba(255, 255, 255, .35), 0 .26em 0 var(--blued), 0 .26em 0 4px var(--ink); user-select: none; -webkit-user-select: none; touch-action: none;
  transition: translate .06s, box-shadow .06s; animation: nudge 2.4s 1.6s ease-in-out infinite; }
.print.used { animation: none; }
.print:active, .print.down { translate: 0 .2em; box-shadow: inset 0 .12em 0 rgba(255, 255, 255, .35), 0 .06em 0 var(--blued), 0 .06em 0 4px var(--ink); }
@keyframes nudge { 0%, 78%, 100% { scale: 1; rotate: 0deg; } 84% { scale: 1.07; rotate: -3deg; } 90% { scale: 1.07; rotate: 3deg; } 96% { scale: 1.02; rotate: 0deg; } }

/* the receipt that comes out under the button */
.slip { position: relative; z-index: 1; width: 258px; margin-top: 4px; padding: 20px 16px 22px; background: #fffdf3; color: #1b1b1b; font: 700 13px/1.25 ui-monospace, "SF Mono", Menlo, monospace;
  filter: drop-shadow(0 4px 0 rgba(150, 92, 0, .5)); animation: feed .45s steps(6) both;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%; }
.slip.tick2 { animation: jog .12s steps(2); }
@keyframes feed { from { clip-path: inset(0 0 100% 0); translate: 0 -40px; } to { clip-path: inset(0); translate: 0 0; } }
@keyframes jog { from { translate: 0 -5px; } to { translate: 0 0; } }
.slip .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1.5px dashed #c9c4ae; }
.slip .row:first-child { border-top: 0; }
.slip .row.end { justify-content: flex-end; border-top: 0; padding-top: 0; color: #6a6652; }
.slip b { text-align: right; }

.links { display: flex; gap: 10px; margin-top: 18px; }
.links a { display: grid; place-items: center; height: 48px; padding: 0 20px; border-radius: 14px; border: 3px solid var(--ink); background: var(--cream); color: var(--ink); font-family: var(--display); font-size: 18px; text-decoration: none; box-shadow: 0 4px 0 var(--skyd); }
.links a:active { translate: 0 3px; box-shadow: 0 1px 0 var(--skyd); }

/* things that fly when you print */
.fx { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.fx .b, .fx .brr { position: absolute; left: 0; top: 0; will-change: transform, opacity; }
.fx .b.l1 { background: #ffd884; color: #c27a00; box-shadow: inset 0 0 0 calc(var(--bw) * .035) #ffd884, inset 0 0 0 calc(var(--bw) * .06) #c27a00; }
.fx .b.l2 { background: #c3ceff; color: #3f51c4; box-shadow: inset 0 0 0 calc(var(--bw) * .035) #c3ceff, inset 0 0 0 calc(var(--bw) * .06) #3f51c4; }
.fx .b.l3 { background: #ead9b4; color: #8a6327; box-shadow: inset 0 0 0 calc(var(--bw) * .035) #ead9b4, inset 0 0 0 calc(var(--bw) * .06) #8a6327; }
.fx .b.l4 { background: #a6dcff; color: #1b6fb0; box-shadow: inset 0 0 0 calc(var(--bw) * .035) #a6dcff, inset 0 0 0 calc(var(--bw) * .06) #1b6fb0; }
.fx .b.l5 { background: #ffb7d8; color: #b02a72; box-shadow: inset 0 0 0 calc(var(--bw) * .035) #ffb7d8, inset 0 0 0 calc(var(--bw) * .06) #b02a72; }
.fx .brr { font-family: var(--display); font-size: clamp(26px, 4vw, 54px); color: #fff; -webkit-text-stroke: .16em var(--ink); paint-order: stroke fill; }
.boom { position: absolute; left: 50%; top: 34%; width: 92vw; margin-left: -46vw; text-align: center; font-family: var(--display); line-height: .95; animation: boom 1.9s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.boom b { display: block; font-weight: 400; font-size: clamp(44px, 10vw, 150px); color: var(--cream); -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; filter: drop-shadow(.04em .07em 0 var(--skyd)); }
.boom i { display: inline-block; margin-top: .5em; font-style: normal; font-size: clamp(18px, 2.6vw, 34px); background: var(--ink); color: var(--gold); padding: .3em .8em; border-radius: 999px; }
@keyframes boom { 0% { scale: .2; opacity: 0; rotate: -8deg; } 14% { scale: 1.05; opacity: 1; rotate: -3deg; } 78% { scale: 1; opacity: 1; rotate: -3deg; } 100% { scale: 1.25; opacity: 0; rotate: -3deg; } }

/* ---------- bands under the first screen ---------- */
.band { position: relative; padding: clamp(64px, 9vw, 120px) 18px clamp(64px, 9vw, 120px); }
.band::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px; background: radial-gradient(circle at 50% 100%, var(--edge) 0 16px, transparent 17px) 50% 0 / 34px 18px repeat-x; }
h2 { margin: 0 auto clamp(30px, 5vw, 62px); max-width: 16ch; text-align: center; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.6vw, 84px); line-height: .98; letter-spacing: .005em;
  -webkit-text-stroke: .08em var(--ink); paint-order: stroke fill; }

/* the posts */
.said { --edge: var(--felt); background: var(--felt) radial-gradient(circle at 50% 0, rgba(190, 255, 150, .35), transparent 60%); }
.said h2 { color: var(--cream); filter: drop-shadow(.04em .07em 0 var(--feltd)); }
.q { position: relative; display: block; margin: 0 0 26px; padding: 24px 24px 22px; background: var(--cream); color: var(--ink); text-decoration: none; border: 4px solid var(--ink); border-radius: 18px;
  box-shadow: 7px 8px 0 var(--feltd); rotate: var(--r, 0deg); break-inside: avoid; transition: rotate .18s, translate .18s, box-shadow .18s; }
.q::before { content: ""; position: absolute; inset: 7px; border: 2px solid var(--bill2); border-radius: 11px; pointer-events: none; }
.q:hover { rotate: 0deg; translate: -2px -4px; box-shadow: 10px 13px 0 var(--feltd); }
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 76px; }
.who img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ink); flex: none; object-fit: cover; }
.who b { display: block; font-weight: 800; font-size: 18px; line-height: 1.15; }
.who i { display: block; font-style: normal; font-weight: 500; font-size: 14px; color: #4d5f50; }
.t { display: block; font-weight: 600; font-size: 20px; line-height: 1.32; overflow-wrap: anywhere; }
.q.big .t { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.05; }
.q.small .t { font-size: 18px; }
.t mark { background: var(--bill); color: inherit; padding: 0 .18em; border-radius: 6px; font-weight: 800; box-shadow: inset 0 -.12em 0 var(--bill2); }
.q.big .t mark { font-weight: 400; }
.lk { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--billd); color: var(--cream); font-weight: 800; font-size: 14px; }
.lk svg { width: 15px; height: 15px; fill: #ff8fb8; }

.q.top { max-width: 1120px; margin: 0 auto clamp(34px, 4.5vw, 56px); padding: clamp(26px, 4vw, 54px); border-width: 5px; border-radius: 28px; box-shadow: 10px 12px 0 var(--feltd); }
.q.top::before { inset: 10px; border-width: 3px; border-radius: 18px; }
.q.top .who { margin-bottom: clamp(16px, 2.4vw, 30px); }
.q.top .who img { width: clamp(60px, 7vw, 92px); height: clamp(60px, 7vw, 92px); border-width: 4px; }
.q.top .who b { font-size: clamp(20px, 2.4vw, 30px); }
.q.top .who i { font-size: clamp(14px, 1.5vw, 18px); }
.q.top .t { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 5.3vw, 78px); line-height: 1.04; }
.q.top .t mark { font-weight: 400; }
.q.top .lk { top: clamp(22px, 3.6vw, 48px); right: clamp(22px, 3.6vw, 48px); height: 40px; font-size: 16px; }
.wall { max-width: 1180px; margin: 0 auto; columns: 3 320px; column-gap: 26px; }

/* real notes */
.notes { --edge: var(--cream); background: var(--cream); }
.notes h2 { color: var(--blue); filter: drop-shadow(.04em .07em 0 #e2c98a); }
.fan { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 26px; max-width: 1260px; margin: 0 auto; }
.note { position: relative; display: grid; place-items: center; width: min(100%, 380px); aspect-ratio: 2.05; padding: 14px; text-align: center; text-decoration: none; color: var(--ink); background: var(--c);
  border: 4px solid var(--ink); border-radius: 16px; box-shadow: 7px 8px 0 var(--cd); rotate: var(--r); transition: rotate .18s, translate .18s, box-shadow .18s; }
.note::before { content: ""; position: absolute; inset: 8px; border: 2.5px solid var(--cd); border-radius: 9px; pointer-events: none; }
.note:hover { rotate: 0deg; translate: -2px -5px; box-shadow: 10px 14px 0 var(--cd); }
.note .wh, .note .yr { position: absolute; top: 18px; font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--cd); }
.note .wh { left: 20px; } .note .yr { right: 20px; }
.note .mid { display: grid; gap: 5px; margin-top: 12px; }
.note .n { font-family: var(--display); font-weight: 400; font-size: clamp(27px, 7.6vw, 38px); line-height: .95; white-space: nowrap; }
.note .z { font: 700 12.5px/1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--cd); white-space: nowrap; }
.note .u { font-weight: 800; font-size: 14px; }

/* foot */
.foot { --edge: var(--ink); background: var(--ink); color: var(--cream); text-align: center; padding-bottom: 96px; }
.foot img { width: 120px; display: block; margin: 0 auto 14px; }
.foot strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 56px); color: var(--gold); }
.foot p { margin: 12px 0 0; font-weight: 500; font-size: 14px; color: #a9c2a8; }

/* sound */
.mute { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 3px solid var(--ink); background: var(--cream); box-shadow: 0 4px 0 rgba(11, 31, 16, .45); }
.mute svg { width: 22px; height: 22px; fill: var(--ink); stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.mute svg .on, .mute svg .off { fill: none; }
.mute .off, .mute.is-off .on { display: none; } .mute.is-off .off { display: block; }
.mute::after { content: attr(data-tip); position: absolute; left: 54px; top: 50%; translate: 0 -50%; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .12s; }
@media (hover: hover) { .mute:hover::after { opacity: 1; } }

/* phone */
@media (max-width: 760px) {
  .stage { grid-template-columns: 1fr; justify-items: center; }
  .w { font-size: 23.5vw; }
  .w1 { justify-self: center; rotate: -6deg; translate: -4% 24%; }
  .w2 { justify-self: center; rotate: 4deg; translate: 4% -34%; }
  .guy { width: min(66vw, 38svh); }
  .deck { margin-top: -2vh; }
  .q { padding: 20px 18px 18px; margin-bottom: 20px; box-shadow: 5px 6px 0 var(--feltd); }
  .q.top { box-shadow: 6px 8px 0 var(--feltd); border-width: 4px; border-radius: 22px; }
  .lk { top: 16px; right: 16px; }
  .note { box-shadow: 5px 6px 0 var(--cd); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
