/* Homemade look: paper notes taped to a kraft board, written in felt-tip marker.
   Font: Shantell Sans (tldraw's hand-drawn font), with its "informal" and "bounce" axes turned up for marker writing. */
:root {
  --kraft: #c9ad85;
  --paper: #fbf8ef;
  --note: #f5e27a;     /* sticky note */
  --ticket: #f2b3a3;   /* raffle-roll pink */
  --ink: #2b2520;      /* felt tip, brown-black */
  --pencil: #6a6057;
  --red: #c0392b;      /* red marker */
  --green: #2e6644;    /* green marker */
  --tape: rgba(236, 226, 198, .82);
  --lift: 0 1px 1px rgba(60, 40, 20, .18), 0 10px 14px -10px rgba(60, 40, 20, .55);
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Shantell Sans', 'Comic Sans MS', cursive;
  color: var(--ink);
  background-color: var(--kraft);
  /* paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
.marker { font-variation-settings: 'INFM' 100, 'BNCE' 40; font-weight: 700; }
.pencil { color: var(--pencil); }

/* A sheet of paper taped to the board */
.note {
  position: relative;
  background: var(--paper);
  padding: 1.3rem 1.2rem 1.1rem;
  box-shadow: var(--lift);
  border-radius: 2px;
  transform: rotate(var(--tilt, 0deg));
}
.note::before { /* tape */
  content: '';
  position: absolute; top: -.7rem; left: var(--tape-x, 50%);
  width: 5.5rem; height: 1.5rem;
  background: var(--tape);
  transform: translateX(-50%) rotate(var(--tape-r, -4deg));
  box-shadow: 0 1px 1px rgba(60, 40, 20, .15);
}

/* Buttons drawn with a felt tip: outline roughened by the #rough SVG filter on each page */
.btn {
  position: relative; font: inherit; font-weight: 700; font-variation-settings: 'INFM' 100;
  cursor: pointer; border: 0; background: var(--paper); color: var(--ink);
  padding: .75em 1em; border-radius: 6px; box-shadow: var(--lift);
}
.btn::after {
  content: ''; position: absolute; inset: 0; border: 2.5px solid var(--ink); border-radius: 8px 5px 9px 4px;
  filter: url(#rough); pointer-events: none;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 1px rgba(60, 40, 20, .2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.red { background: var(--red); color: var(--paper); }
.btn.green { background: var(--green); color: var(--paper); }
.btn.yellow { background: var(--note); }
.btn:focus-visible { outline: 3px dashed var(--red); outline-offset: 4px; }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

@keyframes drop { 0% { transform: translateY(-30px) rotate(-6deg) scale(.9); opacity: 0; } 100% { transform: rotate(-1.5deg); opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
.bump { animation: bump .45s ease-out; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01s !important; transition-duration: .01s !important; }
}
