/* DogWifTipped — internet tip counter / meme café */

:root {
  --cream: #f6ecd8;
  --cream-deep: #ead7b4;
  --paper: #fff8ec;
  --paper-edge: #e4d2b0;
  --ink: #1c1410;
  --ink-soft: #3d3128;
  --knit: #161210;
  --knit-lift: #241c18;
  --pink: #ff4d8d;
  --pink-hot: #ff2d7a;
  --pink-soft: #ffd3e3;
  --sol-purple: #9945ff;
  --sol-green: #14f195;
  --wood: #8a5230;
  --wood-dark: #5a321c;
  --shadow: 0 18px 40px rgba(28, 20, 16, 0.16);
  --radius: 18px;
  --header-h: 76px;
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-receipt: "Special Elite", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.paper-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(28, 20, 16, 0.03) 3px,
      rgba(28, 20, 16, 0.03) 4px
    );
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header — knitted night shift */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: var(--knit);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0 7px,
      rgba(255, 255, 255, 0.035) 7px 9px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 3px,
      rgba(0, 0, 0, 0.22) 3px 5px
    );
  border-bottom: 3px solid var(--pink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: #f3e6d2;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--pink-soft);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--knit-lift);
  cursor: pointer;
  color: var(--paper);
}

.nav-backdrop {
  display: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-buy {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 8px 0 #c2185b, 0 12px 22px rgba(255, 45, 122, 0.28);
}

.btn-buy:hover {
  background: var(--pink-hot);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 6px 0 var(--ink);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 6px 0 #000;
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.82rem;
}

.btn-xl {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.05rem;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding: 28px 0 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255, 77, 141, 0.16), transparent 46%),
    radial-gradient(ellipse at 10% 80%, rgba(153, 69, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #fbf3e3 0%, var(--cream) 70%);
  overflow-x: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paw {
  position: absolute;
  width: 42px;
  height: 36px;
  opacity: 0.14;
  background:
    radial-gradient(circle at 50% 70%, var(--ink) 38%, transparent 40%),
    radial-gradient(circle at 18% 38%, var(--ink) 18%, transparent 19%),
    radial-gradient(circle at 50% 22%, var(--ink) 18%, transparent 19%),
    radial-gradient(circle at 82% 38%, var(--ink) 18%, transparent 19%),
    radial-gradient(circle at 32% 28%, var(--ink) 10%, transparent 11%),
    radial-gradient(circle at 68% 28%, var(--ink) 10%, transparent 11%);
}

.paw-a {
  top: 12%;
  left: 6%;
  transform: rotate(-18deg);
}

.paw-b {
  top: 38%;
  right: 8%;
  transform: rotate(22deg) scale(1.2);
}

.paw-c {
  bottom: 22%;
  left: 38%;
  transform: rotate(8deg);
}

.hero-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 12px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.sol-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sol-purple), var(--sol-green));
  box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.18);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.ticker {
  margin: 10px 0 0;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--sol-purple), var(--pink), var(--sol-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline-note {
  margin: 8px 0 18px;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  color: var(--pink-hot);
  transform: rotate(-2deg);
  transform-origin: left;
}

.lead {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 650;
  line-height: 1.35;
}

.kicker {
  margin: 14px 0 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 22px;
}

.ca-slip {
  width: min(100%, 460px);
  background: var(--paper);
  border: 1px dashed #c9b48d;
  padding: 14px 16px 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.ca-slip::before,
.ca-slip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: radial-gradient(circle, var(--cream) 5px, transparent 6px);
  background-size: 16px 10px;
}

.ca-slip::before {
  top: -6px;
}

.ca-slip::after {
  bottom: -6px;
  transform: rotate(180deg);
}

.ca-slip-head {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}

.ca-slip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.ca-slip code {
  font-family: var(--font-receipt);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-all;
  min-width: 0;
  flex: 1;
}

.copy-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-ui);
}

.copy-btn:hover {
  background: var(--pink-hot);
}

.copy-btn.is-copied {
  background: #12805a;
}

.ca-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.hero-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-mascot {
  position: relative;
  z-index: 3;
  width: min(100%, 640px);
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(18px 28px 24px rgba(28, 20, 16, 0.28));
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.float-receipt {
  position: absolute;
  z-index: 1;
  background: var(--paper);
  padding: 12px 14px;
  font-family: var(--font-receipt);
  font-size: 0.78rem;
  line-height: 1.5;
  box-shadow: 8px 12px 0 rgba(28, 20, 16, 0.12);
  display: flex;
  flex-direction: column;
}

.float-receipt-a {
  left: 4%;
  top: 18%;
  transform: rotate(-9deg);
}

.float-receipt-b {
  right: 2%;
  bottom: 28%;
  transform: rotate(8deg);
  z-index: 4;
}

.sticky-note {
  position: absolute;
  right: 8%;
  top: 8%;
  z-index: 2;
  width: 120px;
  padding: 14px 10px;
  background: #ffe27a;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  text-align: center;
  transform: rotate(8deg);
  box-shadow: 4px 6px 0 rgba(28, 20, 16, 0.12);
}

.diner-sign {
  position: absolute;
  left: 6%;
  bottom: 12%;
  z-index: 4;
  background: var(--ink);
  color: #ffe27a;
  padding: 8px 14px 10px;
  border: 3px solid #ffe27a;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 0 0 4px var(--ink), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.diner-sign span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 800;
}

.diner-sign strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.wood-counter {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  height: 72px;
  background:
    repeating-linear-gradient(
      90deg,
      #7a4728 0 18px,
      #8d5532 18px 34px,
      #6e3f22 34px 48px
    );
  box-shadow: inset 0 8px 10px rgba(0, 0, 0, 0.18);
  z-index: 5;
}

.counter-lip {
  height: 14px;
  background: linear-gradient(#c98958, #8a5230);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

/* Tape */

.tape {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 3px solid var(--pink);
  border-bottom: 3px solid var(--pink);
}

.tape-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 28s linear infinite;
}

.tape-track span {
  padding: 10px 0;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Sections */

.section-inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.section-scribble {
  margin: 0 0 6px;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--pink-hot);
  transform: rotate(-3deg);
}

.scribble-light {
  color: var(--pink-soft);
}

.section-inner h2,
.social h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-lede {
  max-width: 46ch;
  margin: 0 0 36px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.about {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 77, 141, 0.12), transparent 30%),
    var(--cream);
}

.story-tickets {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ticket {
  background: var(--paper);
  padding: 22px 18px 20px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  box-shadow: var(--shadow);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.ticket::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed #d7c4a2;
  pointer-events: none;
}

.ticket-stamp {
  display: block;
  font-family: var(--font-receipt);
  font-size: 0.8rem;
  color: var(--pink-hot);
  margin-bottom: 10px;
}

.ticket-hot {
  background: linear-gradient(180deg, #fff 0%, #ffe4ee 100%);
}

.about-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 48px;
  align-items: center;
}

.about-story {
  background: var(--ink);
  color: var(--paper);
  padding: 32px;
  border-radius: 4px 28px 4px 28px;
  box-shadow: 12px 12px 0 var(--pink);
}

.about-story p {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
}

.about-whisper {
  font-family: var(--font-hand);
  font-size: 1.5rem !important;
  color: var(--pink-soft);
  font-weight: 600 !important;
}

.about-finish {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  text-align: center;
  color: var(--ink);
  transform: rotate(-2deg);
  text-shadow: 3px 3px 0 var(--pink-soft);
}

.cafe-banner {
  margin: 0;
  width: min(1180px, calc(100% - 24px));
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
}

.cafe-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tip counter */

.tip-counter {
  background:
    linear-gradient(180deg, #efe0c4 0%, var(--cream) 40%);
}

.counter-board {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 28px;
  align-items: center;
}

.stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.stage {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 20px 16px;
  border-radius: 18px 18px 6px 6px;
  box-shadow: 0 10px 0 var(--ink);
  min-width: 0;
}

.stage-num {
  font-family: var(--font-receipt);
  color: var(--pink-hot);
  font-size: 0.85rem;
}

.stage h3 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.stage p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.stage-last {
  background: #fff0f5;
}

.printer-slot {
  width: 54px;
  height: 100%;
  min-height: 120px;
  background: var(--knit);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 10px;
  box-shadow: inset 0 0 0 2px #2c2420;
}

.printer-teeth {
  width: 38px;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #444 0 4px,
    transparent 4px 7px
  );
}

.mini-receipt {
  width: 28px;
  height: 64px;
  margin-top: 6px;
  background:
    repeating-linear-gradient(
      #fff8ec 0 8px,
      #f0e2c8 8px 9px
    );
  clip-path: polygon(0 0, 100% 0, 100% 88%, 85% 100%, 70% 88%, 55% 100%, 40% 88%, 25% 100%, 0 88%);
  animation: feed 2.8s ease-in-out infinite;
}

@keyframes feed {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.jar-wrap {
  text-align: center;
}

.tip-jar {
  width: 140px;
  margin: 0 auto;
  position: relative;
}

.jar-lid {
  width: 92px;
  height: 16px;
  margin: 0 auto 4px;
  background: linear-gradient(#4a3b32, #1c1410);
  border-radius: 4px 4px 2px 2px;
}

.jar-glass {
  height: 150px;
  border: 4px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px 12px 28px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(153, 69, 255, 0.08) 40%, rgba(20, 241, 149, 0.08));
  box-shadow:
    inset 0 0 0 2px rgba(28, 20, 16, 0.15),
    0 12px 20px rgba(28, 20, 16, 0.12);
  position: relative;
  overflow: hidden;
}

.coin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe9a8, #d4a017 55%, #8a6a12);
  box-shadow: inset 0 0 0 3px rgba(153, 69, 255, 0.45);
}

.coin::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sol-purple), var(--sol-green));
}

.coin-1 {
  left: 18px;
  bottom: 18px;
}

.coin-2 {
  right: 16px;
  bottom: 32px;
  animation: bob 2.4s ease-in-out infinite;
}

.coin-3 {
  left: 40px;
  bottom: 52px;
  width: 22px;
  height: 22px;
}

.coin-4 {
  left: 28px;
  bottom: 78px;
  animation: bob 3s ease-in-out infinite reverse;
}

.slip {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 0.85rem;
  background: #fff;
  padding: 2px 6px;
  transform: rotate(-12deg);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.slip-1 {
  right: 10px;
  top: 28px;
}

.slip-2 {
  left: 12px;
  top: 16px;
  color: var(--pink-hot);
}

.jar-label {
  margin: 8px 0 0;
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.jar-caption {
  margin: 4px 0 0;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-soft);
}

@keyframes bob {
  50% {
    transform: translateY(-6px);
  }
}

/* Receipt */

.receipt-section {
  background: #2a211c;
  color: var(--paper);
  overflow: hidden;
}

.receipt-section .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.receipt-section .section-scribble {
  color: var(--pink-soft);
  align-self: flex-start;
}

.printer-housing {
  width: min(420px, 100%);
  background: #111;
  border-radius: 18px 18px 8px 8px;
  padding: 14px 14px 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

.printer-face {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9aa;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 800;
  padding-bottom: 10px;
}

.printer-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sol-green);
  box-shadow: 0 0 12px var(--sol-green);
}

.printer-mouth {
  height: 14px;
  background: #000;
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.08);
}

.big-receipt {
  width: min(420px, 100%);
  margin-top: -2px;
  background: #fff8e8;
  color: var(--ink);
  padding: 32px 28px 24px;
  font-family: var(--font-receipt);
  position: relative;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
  transform-origin: top center;
}

.big-receipt::before,
.big-receipt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  background: radial-gradient(circle, #2a211c 7px, #fff8e8 8px);
  background-size: 18px 14px;
  background-repeat: repeat-x;
}

.big-receipt::before {
  top: -7px;
}

.big-receipt::after {
  bottom: -7px;
  transform: rotate(180deg);
}

.receipt-shop {
  margin: 0;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
}

.receipt-sub {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.7;
}

.receipt-rule {
  height: 0;
  border-top: 2px dashed #cbb892;
  margin: 16px 0;
}

.receipt-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.receipt-lines li {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 1.05rem;
}

.receipt-meta,
.receipt-end {
  margin: 8px 0;
  text-align: center;
  font-size: 1.05rem;
}

.receipt-end {
  font-size: 1.2rem;
}

.receipt-barcode {
  height: 42px;
  margin: 18px 12px 8px;
  background: repeating-linear-gradient(
    90deg,
    #1c1410 0 2px,
    transparent 2px 4px,
    #1c1410 4px 5px,
    transparent 5px 8px,
    #1c1410 8px 11px,
    transparent 11px 13px
  );
}

.receipt-thanks {
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  margin: 8px 0 0;
  color: var(--pink-hot);
}

.big-receipt.is-printing {
  animation: print-out 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes print-out {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(-24px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

/* Chart */

.chart-section {
  background: var(--cream);
}

.chart-frame {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 0 var(--ink);
}

.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--knit);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chart-toolbar span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.chart-embed {
  position: relative;
  height: min(62vh, 560px);
  background: #f7f1e4;
}

.chart-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Social */

.social {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 77, 141, 0.2), transparent 36%),
    var(--knit);
  color: var(--paper);
  text-align: center;
  padding: 100px 16px;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 77, 141, 0.2), transparent 36%),
    repeating-linear-gradient(
      90deg,
      transparent 0 7px,
      rgba(255, 255, 255, 0.03) 7px 9px
    );
}

.social-inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.social-copy {
  font-size: 1.35rem;
  margin: 0 0 28px;
}

/* Footer */

.site-footer {
  background: #0e0b09;
  color: #d8cbb8;
  padding: 36px 16px 28px;
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.brand-foot {
  margin-bottom: 12px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-weight: 700;
}

.footer-meta a {
  color: var(--pink);
}

.disclaimer {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: 0.88rem;
  color: #a89886;
}

/* Reveals */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Mobile nav */

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    border: 0;
    padding: 0;
    background: rgba(14, 11, 9, 0.55);
    cursor: pointer;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: var(--header-h);
    right: 0;
    width: min(320px, 100%);
    height: calc(100dvh - var(--header-h));
    background: #1b1613;
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 20px;
    transform: translateX(110%);
    transition: transform 0.28s ease;
    border-left: 3px solid var(--pink);
    z-index: 55;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav.is-open + .nav-backdrop,
  body.nav-open .nav-backdrop {
    display: block;
    z-index: 54;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .site-nav a {
    font-size: 1.2rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-stage {
    order: 2;
    min-height: 0;
  }

  .hero-mascot {
    width: min(100%, 520px);
  }

  .story-tickets,
  .about-split,
  .counter-board,
  .stages {
    grid-template-columns: 1fr;
  }

  .stage-connector {
    height: 70px;
    display: flex;
    justify-content: center;
  }

  .printer-slot {
    width: 70px;
    min-height: 70px;
    height: 70px;
    flex-direction: row;
    justify-content: center;
    padding: 0;
  }

  .mini-receipt {
    height: 36px;
    width: 22px;
    margin: 0 0 0 6px;
  }

  .paw-b,
  .float-receipt-b {
    display: none;
  }

  .jar-wrap {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .hero-grid,
  .section-inner {
    width: calc(100% - 24px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .ca-slip {
    width: 100%;
  }

  .ca-slip-row {
    flex-wrap: wrap;
  }

  .diner-sign,
  .sticky-note,
  .float-receipt-a {
    display: none;
  }

  .hero-mascot {
    width: 100%;
  }

  .chart-toolbar {
    flex-wrap: wrap;
  }

  .chart-embed {
    height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
