@font-face {
  font-family: "Patrick Hand";
  src: url("patrick-hand.woff2") format("woff2");
  font-display: swap;
}
:root { --ink: #111; --paper: #fff; --soft: #8a8a8a; --line: #ececec; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Patrick Hand", "Comic Sans MS", cursive; font-size: 22px; line-height: 1.45;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Ccircle cx='8' cy='8' r='6' fill='%23111'/%3E%3C/svg%3E") 8 8, auto;
  overflow-x: hidden;
}
a { color: inherit; }
button, a, label, summary { cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }
.muted { color: var(--soft); }
.inline-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--ink); vertical-align: middle; }
.scribble { border: 3px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* top bar */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 22px; background: rgba(255,255,255,.92);
}
.logo { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); display: block; }
.links { display: flex; gap: 16px; font-size: 20px; align-items: center; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline wavy; }
.links .buy { background: var(--ink); color: var(--paper); padding: 2px 14px; border-radius: 999px; }
@media (max-width: 520px) { .links .hide-sm { display: none; } }

/* hero */
#hero { height: 100vh; height: 100svh; min-height: 520px; position: relative; display: grid; place-items: center; }
#bigdot {
  width: min(34vmin, 300px); aspect-ratio: 1; border-radius: 50%; background: var(--ink);
  animation: breathe 4s ease-in-out infinite; transition: transform .12s; user-select: none;
}
#bigdot:active { transform: scale(.92); }
@keyframes breathe { 50% { scale: 1.035; } }
.hero-label { position: absolute; bottom: 9vh; text-align: center; width: 100%; padding: 0 20px; }
.hero-label b { font-weight: normal; font-size: 32px; display: block; }
#sub { display: block; color: var(--soft); font-size: 21px; min-height: 1.5em; transition: opacity .35s; }
.scroll { position: absolute; bottom: 3vh; width: 100%; text-align: center; color: var(--soft); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.pop {
  position: fixed; pointer-events: none; font-size: 26px; z-index: 30;
  animation: popup 1.1s ease-out forwards; white-space: nowrap; translate: -50% -50%;
}
@keyframes popup { to { transform: translateY(-70px) rotate(var(--r)); opacity: 0; } }
.speck { position: fixed; pointer-events: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); z-index: 29; animation: fly .9s ease-out forwards; }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* marquee */
.marquee { overflow: hidden; border-block: 3px solid var(--ink); background: var(--ink); color: var(--paper); white-space: nowrap; font-size: 26px; padding: 6px 0; }
.marquee .track { display: inline-block; animation: slide 30s linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee span { padding: 0 18px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* text sections */
section.words { max-width: 760px; margin: 0 auto; padding: 16vh 24px; }
section.wide { max-width: 1160px; margin: 0 auto; padding: 14vh 24px; }
h2 { font-weight: normal; font-size: clamp(40px, 7vw, 68px); line-height: 1.05; margin: 0 0 28px; }
.words p { margin: 0 0 22px; font-size: clamp(22px, 3vw, 28px); }
.lead { font-size: clamp(22px, 3vw, 26px); margin: -10px 0 34px; }
.big { font-size: clamp(30px, 5vw, 46px) !important; }

.checklist { list-style: none; padding: 0; margin: 10px 0 30px; font-size: 26px; }
.checklist li { padding: 2px 0; }
.checklist li::before { content: "\2610  "; }
.checklist li.x { text-decoration: line-through; text-decoration-thickness: 3px; color: var(--soft); }
.checklist li.yes::before { content: "\2611  "; }
.checklist li.yes { font-size: 32px; }

/* "different perfect coin" cards */
.lenses { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.lens { text-align: center; padding: 14px 12px 18px; }
.lens:nth-child(odd) { transform: rotate(-1.4deg); }
.lens:nth-child(even) { transform: rotate(1.1deg); }
.lens svg { width: 100%; max-width: 170px; display: block; margin: 0 auto 6px; }
.lens small { display: block; color: var(--soft); font-size: 18px; }
.lens b { font-weight: normal; font-size: 25px; line-height: 1.15; display: block; }

/* lore chart */
#chart { width: 100%; display: block; margin: 10px 0 30px; }

/* comparison table */
.vs { width: 100%; border-collapse: collapse; font-size: clamp(18px, 2.6vw, 24px); }
.vs th, .vs td { padding: 12px 10px; border-bottom: 2px dashed #ddd; text-align: left; vertical-align: top; }
.vs th { font-weight: normal; color: var(--soft); }
.vs td:first-child { color: var(--soft); width: 22%; }
.vs td:nth-child(2) { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.vs td:last-child { font-size: 1.15em; }

/* memes */
.memes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.meme { margin: 0; }
.meme .frame { border: 3px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; }
.meme svg { width: 100%; height: auto; display: block; }
.meme figcaption { display: flex; justify-content: flex-end; margin-top: 8px; }

/* buttons */
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.btn {
  font: inherit; font-size: 22px; padding: 6px 20px; background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  transition: transform .1s; text-decoration: none; display: inline-block;
}
.btn:hover { transform: rotate(-2deg) scale(1.04); }
.btn.solid { background: var(--ink); color: var(--paper); }
.opt {
  font: inherit; font-size: 19px; padding: 2px 13px; background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
}
.opt:hover { background: #f1f1f1; }
.opt.on { background: var(--ink); color: var(--paper); }

/* maker */
.maker-grid { display: grid; grid-template-columns: minmax(280px, 440px) 1fr; gap: 40px; align-items: start; }
.preview-wrap { position: sticky; top: 70px; }
#preview { width: 100%; aspect-ratio: 1; overflow: hidden; }
#preview svg { display: block; width: 100%; height: 100%; }
.dot-name { text-align: center; margin-top: 12px; font-size: 26px; }
.group { margin-bottom: 18px; }
.group h4 { font-weight: normal; margin: 0 0 6px; font-size: 22px; color: var(--soft); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.name-in { font: inherit; font-size: 22px; width: 100%; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 12px; outline: none; }
@media (max-width: 820px) {
  .maker-grid { grid-template-columns: 1fr; gap: 28px; }
  .preview-wrap { position: static; }
  #preview { max-width: 360px; margin: 0 auto; }
}

/* rules + join */
.rules { counter-reset: r; list-style: none; padding: 0; }
.rules li { counter-increment: r; margin: 0 0 18px; font-size: clamp(22px, 3vw, 28px); padding-left: 56px; position: relative; }
.rules li::before {
  content: counter(r); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 20px;
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin-top: 26px; }
.step { padding: 18px; font-size: 22px; }
.step:nth-child(odd) { transform: rotate(-1.2deg); }
.step:nth-child(even) { transform: rotate(1deg); }
.step b { display: block; font-weight: normal; font-size: 30px; }

/* faq */
details { border-bottom: 2px dashed #ddd; padding: 12px 0; }
summary { font-size: clamp(22px, 3vw, 28px); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "\25CF  "; font-size: .8em; }
details[open] summary::before { content: "\25CB  "; }
details p { margin: 8px 0 4px 30px !important; color: #444; }

/* congregation */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px; margin-top: 20px; }
.member { text-align: center; font-size: 17px; line-height: 1.2; }
.member .pic { aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 2px solid #eee; transition: transform .15s; }
.member:hover .pic { transform: rotate(-3deg) scale(1.05); border-color: var(--ink); }
.member svg { width: 100%; height: 100%; display: block; }
.member .rank { color: var(--soft); }

/* buy */
#buy { text-align: center; padding: 16vh 24px; }
.ca { display: inline-flex; gap: 14px; align-items: center; max-width: 100%; padding: 12px 22px; margin: 18px 0 26px; font-size: 22px; word-break: break-all; }
footer { text-align: center; color: var(--soft); font-size: 18px; padding: 40px 24px 100px; }

/* hold timer + toast */
#hold {
  position: fixed; left: 16px; bottom: 16px; z-index: 25; background: var(--paper);
  border: 2px solid var(--ink); border-radius: 999px; padding: 4px 16px; font-size: 18px;
  display: flex; align-items: center; gap: 8px;
}
#hold .inline-dot { animation: breathe 1s ease-in-out infinite; }
#hold small { color: var(--soft); font-size: 15px; }
.toast {
  position: fixed; left: 50%; bottom: 70px; translate: -50% 0; background: var(--ink); color: var(--paper);
  padding: 6px 18px; border-radius: 999px; z-index: 40; font-size: 20px; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* lore chart dots appear one by one */
#chart circle { opacity: 0; transition: opacity .25s; }
#chart.in circle { opacity: 1; }
