:root {
  --paper: #fdf9ef;
  --card: #ffffff;
  --ink: #131313;
  --accent: #b07d17;
  --accent-soft: #dfa640;
  --muted: #5f5b52;
  --line: rgba(19, 19, 19, 0.16);
  --dots: rgba(19, 19, 19, 0.05);
  --ghost: rgba(19, 19, 19, 0.08);
  --shadow-hard: rgba(19, 19, 19, 0.9);
}

[data-theme="dark"] {
  --paper: #17140e;
  --card: #221d13;
  --ink: #f2ecdd;
  --accent: #dfa640;
  --accent-soft: #dfa640;
  --muted: #a89e8a;
  --line: rgba(242, 236, 221, 0.22);
  --dots: rgba(242, 236, 221, 0.055);
  --ghost: rgba(242, 236, 221, 0.07);
  --shadow-hard: rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: clip;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.sticker, .btn-plain, .submenu, .footer, .proof-invert, .card-num {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--card);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 25;
  background: var(--ink); color: var(--paper);
  display: none; flex-direction: column; justify-content: center; gap: 12px;
  padding: 90px clamp(24px, 8vw, 48px) 44px;
}
.mobile-menu.is-open { display: flex; }
.mobile-close {
  position: relative; align-self: flex-end; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--paper); background: var(--paper);
  cursor: pointer; display: block; margin-bottom: 6px;
}
.mobile-close span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink);
}
.mobile-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-link { font-family: 'Patrick Hand', cursive; font-size: clamp(2.1rem, 9vw, 3.2rem); line-height: 1.3; display: block; }
.mobile-link:active { color: var(--accent-soft); }
.mobile-ctas { margin-top: 24px; }
.mobile-note { font-family: 'Patrick Hand', cursive; color: color-mix(in srgb, var(--paper) 55%, transparent); font-size: 16px; rotate: -2deg; margin-top: 10px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--card);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.2s ease;
}
.theme-toggle:hover { transform: rotate(15deg); }
.theme-toggle svg { width: 21px; height: 21px; }
.theme-toggle circle, .theme-toggle line, .theme-toggle path { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.tt-moon { display: none; }
[data-theme="dark"] .tt-sun, [data-theme="dark"] .tt-rays { display: none; }
[data-theme="dark"] .tt-moon { display: block; }

::selection { background: var(--accent-soft); color: var(--ink); }

a { color: inherit; text-decoration: none; }

svg[aria-hidden="true"] { pointer-events: none; }

.hand, .hero-title, .frag-line, .section-title, .final-title, .stat-num, .card-num, .nav-logo, .marquee, .footer-mark, .cta-note, .hero-hint { font-family: 'Patrick Hand', cursive; font-weight: 400; }

.hl { color: var(--accent); position: relative; display: inline-block; }
.hl-inv { color: var(--accent-soft); }

.u-line { position: absolute; left: 0; bottom: -0.18em; width: 100%; height: 0.32em; overflow: visible; }
.u-line path { stroke: var(--accent-soft); stroke-width: 6; stroke-linecap: round; }
.u-title { bottom: -10px; height: 18px; }
.circle-doodle { position: absolute; left: -13%; top: -19%; width: 126%; height: 138%; overflow: visible; }
.circle-doodle path { stroke: var(--accent-soft); stroke-width: 5; stroke-linecap: round; }
.arrow path { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
}
.nav-logo { font-size: 26px; }
.nav-menus { display: flex; align-items: center; gap: 6px; }
.menu { position: relative; }
.menu-btn {
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 500; color: var(--ink);
  background: none; border: 0; cursor: pointer; padding: 10px 14px; display: inline-block;
}
.caret { font-size: 11px; }
.mega-list-single { grid-template-columns: 1fr; }
.mega-stats { font-size: 13px; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.mega-quick { font-size: 13px; padding-top: 8px; border-top: 2px dashed color-mix(in srgb, var(--paper) 24%, transparent); }
.mega-quick a { color: var(--accent-soft); }
.mega-quick a:hover { text-decoration: underline; }

.mega-panel {
  position: fixed; top: 70px; left: clamp(10px, 2vw, 28px); right: clamp(10px, 2vw, 28px);
  background: var(--ink); color: var(--paper);
  border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: 8px 10px 0 var(--accent-soft);
  padding: clamp(22px, 3vw, 40px);
  max-height: 76vh; overflow: auto;
  opacity: 0; pointer-events: none; z-index: 15;
}
.mega-panel.is-open { opacity: 1; pointer-events: auto; }
.mega-panel::before { content: ''; position: absolute; top: -30px; left: 0; right: 0; height: 30px; }
.mega-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 44px); }
.mega-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px; align-content: start; }
.mega-item { display: flex; align-items: baseline; gap: 12px; padding: 7px 10px; border-radius: 10px; border-left: 3px solid transparent; }
.mega-item:hover { background: color-mix(in srgb, var(--paper) 7%, transparent); border-left-color: var(--accent-soft); border-radius: 0 10px 10px 0; }
.mega-name { font-family: 'Patrick Hand', cursive; font-size: clamp(21px, 2.2vw, 30px); }
.mega-item:hover .mega-name { color: var(--accent-soft); }
.mega-meta { font-size: 12px; color: color-mix(in srgb, var(--paper) 55%, transparent); white-space: nowrap; }
.mega-tags { display: inline-flex; gap: 8px; align-items: center; }
.mega-price {
  font-family: 'Patrick Hand', cursive; font-size: 15px; white-space: nowrap;
  color: #2b1d05; background: var(--accent-soft);
  border-radius: 999px; padding: 1px 11px; rotate: 2deg;
}
.mega-badge {
  font-family: 'Patrick Hand', cursive; font-size: 14px; white-space: nowrap;
  color: var(--accent-soft); border: 1.5px dashed var(--accent-soft);
  border-radius: 8px; padding: 0 9px; rotate: -3deg;
}
.mega-badge-1 {
  color: #2b1d05; background: var(--accent-soft); border-style: solid;
  animation: wiggle 2.4s ease-in-out infinite;
}
@keyframes wiggle { 50% { rotate: 2deg; } }
.mega-preview {
  border: 2px dashed color-mix(in srgb, var(--paper) 30%, transparent); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.mega-preview-name { font-family: 'Patrick Hand', cursive; font-size: clamp(30px, 3.4vw, 46px); color: var(--accent-soft); line-height: 1; }
.mega-preview-tag { font-size: 14px; color: color-mix(in srgb, var(--paper) 66%, transparent); }
.mega-preview-price { font-family: 'Patrick Hand', cursive; font-size: 30px; }
.mega-note { font-family: 'Patrick Hand', cursive; font-size: 15px; color: color-mix(in srgb, var(--paper) 55%, transparent); rotate: -2deg; }
.mega-free { margin-top: 16px; padding-top: 14px; border-top: 2px dashed color-mix(in srgb, var(--paper) 24%, transparent); font-size: 13px; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.mega-free a { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.mega-free a:hover { color: var(--accent-soft); }

.btn-sticker {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 15px; padding: 13px 24px; border-radius: 14px;
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink);
  transition: transform 0.2s ease;
}
.btn-sticker:hover { transform: translateY(-2px) rotate(-1deg); }
.nav-cta { font-size: 14px; padding: 10px 18px; }
.btn-plain {
  display: inline-block; background: var(--card); color: var(--ink);
  font-weight: 500; font-size: 15px; padding: 13px 24px; border-radius: 14px;
  border: 2px solid var(--ink);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-plain:hover { transform: translateY(-2px) rotate(1deg); background: var(--paper); }

main > section {
  min-height: 60vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px clamp(20px, 8vw, 120px);
}

.hero { min-height: 100vh; align-items: center; text-align: center; overflow: clip; position: relative; }
.hero-title { font-size: clamp(3rem, 8.6vw, 7.4rem); line-height: 1.02; }
.hero-sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 34em; margin-top: 22px; }
.hero-cta-row { position: relative; display: flex; gap: 16px; margin-top: 40px; align-items: center; flex-wrap: wrap; justify-content: center; }
.arrow-cta { position: absolute; width: 90px; height: 68px; right: -104px; top: -54px; }
.cta-note { color: var(--muted); font-size: 19px; line-height: 1.1; rotate: -5deg; text-align: left; }
.hero-hint {
  position: absolute; bottom: 26px; right: clamp(20px, 5vw, 64px);
  color: var(--muted); font-size: 17px;
  display: inline-flex; align-items: center; gap: 10px;
}
.mouse { width: 20px; height: 30px; }
.mouse rect, .mouse line { stroke: var(--muted); stroke-width: 2; }
.mouse line { animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 50% { transform: translateY(5px); } }

.section-title { font-size: clamp(2.2rem, 5.4vw, 4rem); margin-bottom: 42px; position: relative; display: inline-block; align-self: flex-start; }

.sticker {
  background: var(--card); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: 5px 6px 0 var(--shadow-hard);
}
.tilt-l { rotate: -1.6deg; }
.tilt-r { rotate: 1.4deg; }
.tilt-l2 { rotate: -0.7deg; }
.tilt-r2 { rotate: 2deg; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; max-width: 900px; }
.stat { padding: 30px 26px; position: relative; }
.burst { position: absolute; top: -26px; right: -14px; width: 52px; height: 52px; overflow: visible; }
.burst path { stroke: var(--accent-soft); stroke-width: 4; stroke-linecap: round; }
.stat-num { display: block; font-size: clamp(3.4rem, 7vw, 5.2rem); color: var(--accent); line-height: 1; }
.stat-label { color: var(--muted); font-size: 14px; font-weight: 500; }
.stats-note { color: var(--muted); margin-top: 30px; max-width: 40em; }

.promise { min-height: 70vh; justify-content: center; gap: 6px; }
.promise-eyebrow { font-family: 'Patrick Hand', cursive; font-size: 19px; color: var(--accent); rotate: -2deg; margin-bottom: 8px; }
.promise-row { display: flex; align-items: center; gap: clamp(14px, 3vw, 34px); }
.promise-line { font-family: 'Patrick Hand', cursive; font-size: clamp(2.4rem, 7.5vw, 6.4rem); line-height: 1.14; letter-spacing: -0.01em; }
.promise-check { width: clamp(38px, 5.5vw, 78px); height: auto; overflow: visible; flex: none; }
.promise-check path { stroke: var(--accent-soft); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

.strike-wrap { position: relative; display: inline-block; }
.frag-fix {
  position: absolute; top: -0.52em; left: 16%;
  font-size: 0.42em; color: var(--accent); rotate: -6deg; line-height: 1;
}
.strike { position: absolute; left: -4%; top: 8%; width: 108%; height: 90%; overflow: visible; }
.strike path { stroke: var(--accent-soft); stroke-width: 9; stroke-linecap: round; }

.story { padding: 0; min-height: 0; }
.story-pin {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  gap: 4vh; padding: 0 clamp(20px, 6vw, 90px);
}
.story-line1 { font-family: 'Patrick Hand', cursive; font-size: clamp(3rem, 10vw, 8.6rem); line-height: 1.05; }
.story-line2 { font-family: 'Patrick Hand', cursive; font-size: clamp(2.2rem, 7vw, 6rem); line-height: 1.1; color: var(--accent); }
.story-uline { position: absolute; left: 0; bottom: -0.16em; width: 100%; height: 0.3em; overflow: visible; }
.story-uline path { stroke: var(--accent-soft); stroke-width: 6; stroke-linecap: round; }
.strike { position: absolute; left: -4%; top: 8%; width: 108%; height: 90%; overflow: visible; }

.showcase { padding-left: 0; padding-right: 0; }
.showcase .section-title { margin-left: clamp(20px, 8vw, 120px); }
.showcase-track { display: flex; gap: 30px; padding: 10px clamp(20px, 8vw, 120px) 16px; width: max-content; }
.card { width: clamp(270px, 30vw, 360px); flex-shrink: 0; padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.card-num {
  width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--accent); background: var(--paper);
}
.card h3 { font-size: 1.45rem; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card-link { font-size: 14px; font-weight: 500; color: var(--accent); border-bottom: 2px solid var(--accent-soft); align-self: flex-start; }
.rail-progress { display: flex; align-items: center; gap: 16px; padding: 28px clamp(20px, 8vw, 120px) 0; }
.rail-count { font-family: 'Patrick Hand', cursive; font-size: 24px; color: var(--accent); min-width: 86px; }
.rail-bar { width: min(320px, 40vw); height: 14px; overflow: visible; }
.rail-bar-path { stroke: var(--accent-soft); stroke-width: 6; stroke-linecap: round; }

.showcase-more { padding: 30px clamp(20px, 8vw, 120px) 0; position: relative; display: flex; align-items: center; gap: 14px; }
.showcase-more a { font-weight: 500; color: var(--accent); border-bottom: 2px solid var(--accent-soft); }
.arrow-more { width: 74px; height: 34px; }

.proof { padding-left: clamp(16px, 4vw, 56px); padding-right: clamp(16px, 4vw, 56px); }
.stamp {
  position: absolute; top: 26px; right: 30px;
  font-family: 'Patrick Hand', cursive; font-size: clamp(15px, 2vw, 22px); letter-spacing: 0.08em;
  color: var(--accent-soft); border: 3px solid var(--accent-soft); border-radius: 10px;
  padding: 5px 14px; rotate: -12deg;
}
.proof-invert { position: relative; }
.proof-invert {
  background: var(--ink); color: var(--paper); border-radius: 22px;
  padding: clamp(44px, 8vw, 100px) clamp(26px, 6vw, 90px);
  box-shadow: 9px 11px 0 var(--accent-soft);
  border: 2px solid var(--ink);
}
.proof-line { font-family: 'Patrick Hand', cursive; font-size: clamp(2rem, 5.4vw, 3.8rem); line-height: 1.12; max-width: 18em; }
.proof-line .word {
  opacity: 0.15;
  background-image: linear-gradient(color-mix(in srgb, var(--accent-soft) 34%, transparent) 0 100%);
  background-repeat: no-repeat;
  background-size: 0% 76%;
  background-position: 0 64%;
  border-radius: 3px;
}
.proof-sub { color: color-mix(in srgb, var(--paper) 62%, transparent); margin-top: 24px; max-width: 40em; }

.reviews-lede { color: var(--muted); max-width: 44em; margin: -18px 0 42px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-wide { grid-column: span 2; }
.review-card { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 12px; }
.review-rail { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 2px dashed var(--line); }
.review-tag {
  font-family: 'Patrick Hand', cursive; font-size: 14px; color: var(--accent);
  border: 1.5px solid var(--accent-soft); border-radius: 999px; padding: 0 9px; rotate: -2deg;
}
.review-product { font-size: 14px; font-weight: 700; }
.review-stars { margin-left: auto; }
.star-row { width: 108px; height: 19px; overflow: visible; }
.star-row path { stroke: var(--accent-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.review-headline { font-family: 'Patrick Hand', cursive; font-size: 22px; line-height: 1.2; }
.review-wide .review-headline { font-size: 27px; }
.review-quote { color: var(--muted); font-size: 15px; flex: 1; }
.review-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review-avatar {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Patrick Hand', cursive; font-size: 16px; color: var(--accent); background: var(--paper);
}
.review-name { font-size: 14px; font-weight: 500; }
.review-date { font-family: 'Patrick Hand', cursive; font-size: 15px; color: var(--muted); margin-left: auto; rotate: -2deg; }
.reviews-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.reviews-score { font-family: 'Patrick Hand', cursive; font-size: 21px; color: var(--accent); }
.reviews-cta { margin-left: auto; font-weight: 500; color: var(--accent); border-bottom: 2px solid var(--accent-soft); }

.about-text, .custom-text { color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 38em; }
.sig-text { font-family: 'Patrick Hand', cursive; font-size: clamp(2.2rem, 5vw, 3.4rem); rotate: -2.5deg; margin-top: 30px; align-self: flex-start; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 90px); align-items: center; width: 100%; }
.about-copy { display: flex; flex-direction: column; align-items: flex-start; }
.about .mk { background: linear-gradient(120deg, rgba(223, 166, 64, 0.38), rgba(223, 166, 64, 0.5)) no-repeat 0 66% / 100% 46%; font-weight: 600; color: var(--ink); }
.sig-wrap { position: relative; display: inline-block; }
.sig-circle { position: absolute; left: -14%; top: -32%; width: 128%; height: 164%; overflow: visible; pointer-events: none; }
.sig-circle path { stroke: var(--accent-soft); stroke-width: 4; stroke-linecap: round; }
.sig-sparks i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-soft); opacity: 0; }
.sig-sparks i:nth-child(1) { right: -26px; top: -4px; }
.sig-sparks i:nth-child(2) { right: -38px; top: 26px; width: 6px; height: 6px; }
.sig-sparks i:nth-child(3) { left: -24px; bottom: -6px; width: 7px; height: 7px; }
.about-card-zone { perspective: 1200px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dev-card { width: min(300px, 74vw); aspect-ratio: 3 / 4.1; transform-style: preserve-3d; }
.dev-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.dev-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2px solid var(--ink); border-radius: 18px; box-shadow: 9px 9px 0 var(--ghost); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; overflow: hidden; }
.dev-front { background: var(--ink) radial-gradient(rgba(223, 166, 64, 0.16) 1.5px, transparent 1.5px); background-size: 24px 24px; color: var(--paper); }
.dev-front::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 42%, rgba(246, 229, 189, 0.22) 50%, transparent 58%); background-size: 260% 260%; animation: devHolo 3.8s linear infinite; pointer-events: none; }
@keyframes devHolo { 0% { background-position: 120% 120%; } 100% { background-position: -60% -60%; } }
.dev-tag { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.dev-g { font-family: 'Patrick Hand', cursive; font-size: 128px; line-height: 1; color: var(--accent-soft); text-shadow: 0 0 26px rgba(223, 166, 64, 0.4); }
.dev-name { font-family: 'Patrick Hand', cursive; font-size: 2rem; color: var(--paper); }
.dev-role { font-size: 0.82rem; opacity: 0.75; }
.dev-stars { color: var(--accent-soft); letter-spacing: 0.3em; font-size: 0.9rem; }
.dev-back { background: var(--card); color: var(--ink); transform: rotateY(180deg); }
.dev-back-title { font-family: 'Patrick Hand', cursive; font-size: 1.5rem; border-bottom: 3px solid var(--accent-soft); }
.dev-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 1rem; color: var(--muted); }
.dev-stats b { font-family: 'Patrick Hand', cursive; font-size: 1.5rem; color: var(--ink); margin-right: 6px; }
.dev-stamp { border: 3px double var(--accent); color: var(--accent); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; rotate: -7deg; border-radius: 6px; margin-top: 6px; }
.dev-hint { font-family: 'Patrick Hand', cursive; color: var(--muted); rotate: -3deg; font-size: 1.05rem; }
.is-static .dev-front::after { animation: none; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-card-zone { order: 2; } }
@media (prefers-reduced-motion: reduce) { .dev-front::after { animation: none; } }
.custom .custom-cta-wrap { margin-top: 30px; align-self: flex-start; position: relative; display: inline-block; }
.circle-cta { left: -10%; top: -26%; width: 120%; height: 152%; }
.circle-cta path { stroke-width: 4; }

.card-price {
  position: absolute; top: -14px; right: 18px;
  font-family: 'Patrick Hand', cursive; font-size: 19px; color: var(--gold-deep, #2b1d05);
  background: var(--accent-soft); border: 2px solid var(--ink); border-radius: 999px;
  padding: 2px 13px; rotate: 3deg;
}

main { position: relative; }
main > section { position: relative; z-index: 1; }
.thread {
  position: absolute; top: 0; left: clamp(4px, 1.6vw, 26px);
  width: clamp(36px, 5vw, 80px); height: 100%;
  z-index: 0; pointer-events: none;
}
.thread-path { stroke: var(--accent-soft); stroke-width: 3; opacity: 0.55; }

.page-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 30;
  background: var(--accent-soft); transform: scaleX(0); transform-origin: left;
}

.final { text-align: center; align-items: center; min-height: 78vh; position: relative; overflow: clip; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti span { position: absolute; top: 0; left: 0; width: 12px; height: 4px; border-radius: 2px; }
.final-title { font-size: clamp(3rem, 8vw, 6.4rem); margin-bottom: 36px; }
.final-row { justify-content: center; }

.footer { background: var(--ink); color: var(--paper); overflow: clip; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 96px) clamp(28px, 4vw, 48px);
}
.footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-logo { font-family: 'Patrick Hand', cursive; font-size: 30px; color: var(--accent-soft); }
.footer-tagline { color: color-mix(in srgb, var(--paper) 66%, transparent); font-size: 14px; max-width: 24em; }
.footer-title { font-family: 'Patrick Hand', cursive; font-size: 21px; color: var(--accent-soft); margin-bottom: 4px; }
.footer-col a:not(.btn-sticker) { font-size: 14px; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.footer-col a:not(.btn-sticker):hover { color: var(--accent-soft); }
.footer-note { font-family: 'Patrick Hand', cursive; font-size: 17px; color: color-mix(in srgb, var(--paper) 66%, transparent); rotate: -2deg; }
.btn-sticker-inv {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 6px var(--paper);
}
.footer-bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 20px clamp(20px, 6vw, 96px) 24px;
  border-top: 2px dashed color-mix(in srgb, var(--paper) 24%, transparent);
  color: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 13px; font-weight: 500;
}
.footer-bar a:hover { color: var(--accent-soft); }

.is-static main > section, .is-static .hero, .is-static .story-pin, .is-static .final { min-height: 0; }
.is-static main > section { padding-top: 64px; padding-bottom: 64px; }
.is-static .hero-hint { position: static; margin-top: 34px; }
.is-static .arrow-cta { position: static; width: 70px; height: 52px; }

@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-menus { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav { padding: 12px 18px; }
  .nav-logo { font-size: 22px; }
  .thread { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-wide { grid-column: span 1; }
  .arrow-cta { display: none; }
  .showcase-track { flex-direction: column; width: auto; }
  .card { width: 100%; }
  .hero { text-align: left; align-items: flex-start; }
  .hero-cta-row { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mouse line, .eyebrow-dot, .mega-badge-1 { animation: none; }
  html { scroll-behavior: auto; }
}

.shiplog { padding: clamp(70px, 10vh, 130px) clamp(20px, 6vw, 90px); display: flex; flex-direction: column; gap: 54px; }
.shiplog-rail { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 18px; padding-top: 26px; }
.shiplog-line { position: absolute; top: 31px; left: 2%; width: 96%; height: 4px; border-radius: 4px; background: var(--accent-soft); transform-origin: left center; }
.ship-stop { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ship-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--accent-soft); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--accent-soft); z-index: 1; }
.ship-date { font-family: 'Patrick Hand', cursive; font-size: 1.25rem; color: var(--accent); rotate: -2deg; }
.ship-what { font-size: 0.86rem; color: var(--muted); max-width: 15em; background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; box-shadow: 4px 4px 0 var(--ghost); rotate: 1.5deg; }
.ship-stop:nth-child(odd) .ship-what { rotate: -1.5deg; }
.ship-next .ship-dot { background: var(--card); }
.ship-next .ship-what { border-style: dashed; }
.paper-plane { position: absolute; top: 0; left: 0; width: 36px; z-index: 2; cursor: pointer; filter: drop-shadow(2px 3px 0 var(--ghost)); will-change: transform; }
.is-static .paper-plane { display: none; }
@media (max-width: 860px) {
  .shiplog-rail { grid-template-columns: 1fr; gap: 22px; padding-top: 0; padding-left: 30px; }
  .shiplog-line { top: 2%; left: 7px; width: 4px; height: 96%; transform-origin: top center; }
  .ship-stop { flex-direction: row; text-align: left; align-items: center; }
  .ship-stop .ship-dot { position: absolute; left: 0; }
  .paper-plane { display: none; }
}
@media (prefers-reduced-motion: reduce) { .paper-plane { display: none; } }

.livefeed-title {
  font-family: 'Patrick Hand', cursive; font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4rem); margin-bottom: 12px;
  position: relative; display: inline-block; align-self: flex-start;
}
.lf-uline { bottom: -0.24em; }
.lf-stamp {
  display: inline-flex; align-items: center; gap: 9px; vertical-align: middle;
  font-size: clamp(15px, 1.6vw, 19px); line-height: 1; color: var(--accent);
  border: 2px solid var(--accent-soft); border-radius: 10px; padding: 5px 12px;
  rotate: -3deg; margin-left: 18px; translate: 0 -0.35em;
}
.lf-stamp i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-soft); animation: lfPulse 1.6s ease-in-out infinite; }
@keyframes lfPulse { 50% { opacity: 0.35; transform: scale(0.72); } }
.livefeed-lede { color: var(--muted); max-width: 44em; margin-bottom: 42px; }
.livefeed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
a.feed-card {
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 172px;
  color: inherit; text-decoration: none;
  transition: translate 0.22s ease, box-shadow 0.22s ease, background-color 0.35s ease, border-color 0.35s ease;
}
a.feed-card:hover { translate: 0 -4px; box-shadow: 7px 9px 0 var(--shadow-hard); }
.feed-forum {
  align-self: flex-start; font-family: 'Patrick Hand', cursive; font-size: 14px; color: var(--accent);
  border: 1.5px solid var(--accent-soft); border-radius: 999px; padding: 0 10px; rotate: -2deg;
}
.feed-title { font-family: 'Patrick Hand', cursive; font-size: 22px; line-height: 1.2; flex: 1; }
.feed-meta {
  display: block; color: var(--muted); font-size: 13.5px;
  border-top: 2px dashed var(--line); padding-top: 12px; margin-top: auto;
}
.livefeed-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.livefeed-note { font-family: 'Patrick Hand', cursive; font-size: 21px; color: var(--accent); rotate: -1.5deg; }
.livefeed-cta { margin-left: auto; font-weight: 500; color: var(--accent); border-bottom: 2px solid var(--accent-soft); }
@media (max-width: 980px) { .livefeed-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lf-stamp i { animation: none; } }
.is-static .lf-stamp i { animation: none; }
.livefeed[hidden] { display: none; }

html:not(.is-static) .hero .hero-title,
html:not(.is-static) .hero .hero-sub,
html:not(.is-static) .hero .hero-cta-row,
html:not(.is-static) .hero .hero-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html:not(.is-static) .hero .hero-title,
  html:not(.is-static) .hero .hero-sub,
  html:not(.is-static) .hero .hero-cta-row,
  html:not(.is-static) .hero .hero-hint { opacity: 1; }
}

.receipt { align-items: center; text-align: center; }
.receipt-stage { position: relative; width: min(430px, 92vw); margin: 34px auto 0; }
.receipt-slot {
  position: relative; z-index: 3; height: 26px; margin: 0 -14px;
  background: var(--ink); border-radius: 13px;
  box-shadow: 4px 5px 0 var(--shadow-hard);
}
.receipt-slot::after {
  content: ''; position: absolute; left: 22px; right: 22px; top: 11px; height: 4px;
  border-radius: 2px; background: rgba(253, 249, 239, 0.28);
}
.receipt-window { overflow: hidden; margin-top: -13px; padding: 13px 8px 26px; }
.receipt-paper {
  position: relative; rotate: -1.1deg;
  background: #fffdf6; color: #131313;
  border: 2px solid #131313; border-bottom: none;
  box-shadow: 6px 7px 0 var(--shadow-hard);
  padding: 26px 26px 34px;
  font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
  font-size: 14px; text-align: left;
}
.receipt-paper::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: -12px; height: 12px;
  background:
    linear-gradient(45deg, transparent 33.4%, #fffdf6 33.4%, #fffdf6 66.6%, transparent 66.6%),
    linear-gradient(-45deg, transparent 33.4%, #fffdf6 33.4%, #fffdf6 66.6%, transparent 66.6%);
  background-size: 16px 24px;
}
.receipt-head { display: grid; gap: 3px; justify-items: center; text-align: center; margin-bottom: 18px; }
.receipt-brand { font-size: 21px; font-weight: 800; letter-spacing: 0.34em; text-indent: 0.34em; }
.receipt-sub, .receipt-order { font-size: 11px; letter-spacing: 0.12em; color: #5f5b52; }
.receipt-lines { list-style: none; margin: 0; padding: 14px 0; border-top: 2px dashed rgba(19, 19, 19, 0.35); display: grid; gap: 9px; }
.receipt-line, .receipt-total { display: flex; align-items: baseline; gap: 8px; }
.receipt-line i, .receipt-total i { flex: 1; border-bottom: 2px dotted rgba(19, 19, 19, 0.4); transform: translateY(-3px); }
.receipt-line b, .receipt-total b { font-weight: 700; }
.receipt-total {
  margin-top: 4px; padding-top: 13px; border-top: 2px dashed rgba(19, 19, 19, 0.35);
  font-weight: 800; letter-spacing: 0.04em;
}
.receipt-note { margin: 14px 0 0; font-weight: 700; text-align: center; letter-spacing: 0.02em; }
.receipt-barcode {
  height: 42px; margin: 16px 6px 6px;
  background: repeating-linear-gradient(90deg,
    #131313 0 2px, transparent 2px 5px,
    #131313 5px 6px, transparent 6px 10px,
    #131313 10px 13px, transparent 13px 15px,
    #131313 15px 16px, transparent 16px 20px);
}
.receipt-thanks { display: block; text-align: center; font-size: 11px; letter-spacing: 0.14em; color: #5f5b52; text-transform: uppercase; }
.receipt-stamp {
  position: absolute; right: 18px; bottom: 96px; z-index: 2;
  padding: 6px 16px; rotate: -14deg;
  border: 3px double var(--accent); border-radius: 6px;
  color: var(--accent); font-weight: 800; font-size: 24px; letter-spacing: 0.18em; text-indent: 0.18em;
}
[data-theme="dark"] .receipt-stamp { color: #b07d17; border-color: #b07d17; }
.receipt-print { margin: 18px 0 0; font-size: 13px; color: var(--muted); font-style: italic; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.rite { margin: 8px 0 54px; }
.rite-card {
  position: relative; overflow: hidden;
  width: min(560px, 100%); margin: 0 auto;
  padding: 44px 40px 40px; text-align: center;
  background: linear-gradient(135deg, #241f16, #16130d 62%);
  border: 1px solid rgba(223, 166, 64, 0.38);
  border-bottom: 4px solid var(--accent-soft);
  border-radius: 18px;
  box-shadow: 7px 8px 0 var(--shadow-hard);
}
.rite-card::after {
  content: ''; position: absolute; top: -80px; right: -50px;
  width: 280px; height: 280px; pointer-events: none;
  background: radial-gradient(circle, rgba(223, 166, 64, 0.22), transparent 65%);
}
.rite-eyebrow {
  display: block; margin-bottom: 6px;
  color: var(--accent-soft); font-size: 12px; font-weight: 700;
  letter-spacing: 0.22em; text-indent: 0.22em; text-transform: uppercase;
}
.rite-score {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  color: #f4ead8; font-size: clamp(84px, 12vw, 128px); font-weight: 800; line-height: 1;
}
.rite-digit { display: inline-block; height: 1em; overflow: hidden; }
.rite-reel { display: block; }
.rite-reel span { display: block; height: 1em; line-height: 1; }
.rite-dot { transform: translateY(-0.06em); }
.rite-outof {
  display: block; margin: 10px 0 22px;
  color: rgba(244, 234, 216, 0.55); font-size: 13px;
  letter-spacing: 0.18em; text-indent: 0.18em; text-transform: uppercase;
}
.rite-stars { display: flex; justify-content: center; gap: 12px; }
.rite-star { width: 46px; height: 46px; }
.rite-star path {
  fill: var(--accent-soft); stroke: #131313; stroke-width: 1.4;
  stroke-linejoin: round;
}
.rite-sub { margin: 22px 0 0; color: rgba(244, 234, 216, 0.75); font-size: 14.5px; }
.rite-sparks { position: absolute; inset: 0; pointer-events: none; }
.rite-sparks i {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-soft); opacity: 0;
}
.rite-sparks i:nth-child(1) { top: 24%; left: 14%; }
.rite-sparks i:nth-child(2) { top: 16%; right: 18%; }
.rite-sparks i:nth-child(3) { top: 52%; left: 7%; }
.rite-sparks i:nth-child(4) { top: 58%; right: 8%; }
.rite-sparks i:nth-child(5) { bottom: 18%; left: 22%; }
.rite-sparks i:nth-child(6) { bottom: 14%; right: 24%; }
[data-theme="dark"] .rite-card { background: linear-gradient(135deg, #262015, #121006 62%); }

.dots-layer {
  position: fixed;
  top: -560px; right: 0; bottom: 0; left: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dots) 1px, transparent 1px);
  background-size: 26px 26px;
  will-change: transform;
}
.review-card,
.receipt-paper,
.rite-reel,
.showcase-track,
.stat.sticker,
.proof-invert { will-change: transform; }

@media (max-width: 480px) {
  .receipt-slot { margin: 0; }
  .receipt-stamp { right: 10px; font-size: 20px; }
}

/* xs-stack */
.stack { padding: clamp(60px, 9vw, 110px) clamp(20px, 6vw, 64px); }
.stack-lede { max-width: 640px; margin: 14px 0 38px; color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); }
.stack-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(24px, 4vw, 48px); align-items: start; }

.stack-group { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stack-group + .stack-chip { margin-top: 0; }
.stack-pick { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-pick .stack-group { flex: 0 0 100%; margin-bottom: 2px; }
.stack-pick .stack-group:not(:first-child) { margin-top: 22px; }

.stack-chip {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 10px 14px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--card); color: var(--ink); cursor: pointer; text-align: left;
  font-family: inherit; box-shadow: 3px 3px 0 var(--shadow-hard);
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}
.stack-chip:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow-hard); }
.stack-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--shadow-hard); }
.stack-chipName { font-size: 15px; font-weight: 700; }
.stack-chipPrice { font-size: 13px; font-weight: 700; color: var(--accent); }
.stack-chip[aria-pressed="true"] .stack-chipPrice { color: var(--accent-soft); }
.stack-chipAdds { font-size: 11.5px; color: var(--muted); }
.stack-chip[aria-pressed="true"] .stack-chipAdds { color: rgba(253, 249, 239, 0.72); }
.stack-chip--free .stack-chipPrice { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }

.stack-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.stack-preview { position: relative; padding: 34px 18px 18px; }
.stack-preview [hidden] { display: none !important; }
.stack-previewTag {
  position: absolute; top: -11px; left: 16px; padding: 2px 9px;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--accent); color: #131313;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.sp-post { display: flex; gap: 12px; }
.sp-avatar { position: relative; flex: 0 0 46px; }
.sp-avatarFace { display: block; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 2px; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }
.sp-streak { padding: 1px 7px; border: 2px solid var(--accent-soft); border-radius: 2px; background: var(--accent-soft); color: #131313; font-size: 10px; font-weight: 800; }
.sp-ribbon {
  position: absolute; top: -12px; left: -8px; padding: 1px 6px;
  border: 2px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper);
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.sp-main { flex: 1 1 auto; min-width: 0; }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 4px; }
.sp-name { font-weight: 800; font-size: 15px; }
.sp-flair { padding: 1px 7px; border: 2px solid var(--accent); border-radius: 2px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.sp-staff { padding: 1px 7px; border: 2px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.sp-team { padding: 1px 7px; border: 2px dashed var(--ink); border-radius: 2px; font-size: 10px; font-weight: 800; }
.sp-xp { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.sp-xpBar { flex: 1 1 auto; height: 8px; border: 2px solid var(--ink); border-radius: 2px; background: var(--card); overflow: hidden; }
.sp-xpBar i { display: block; width: 64%; height: 100%; background: var(--accent); }
.sp-xp b { font-size: 11px; font-weight: 800; white-space: nowrap; }
.sp-text { margin: 0; font-size: 14px; line-height: 1.5; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sp-chip { padding: 2px 8px; border: 2px solid var(--line); border-radius: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.sp-store, .sp-update, .sp-dock {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px;
  border: 2px solid var(--ink); border-radius: 2px; font-size: 12px; font-weight: 700;
}
.sp-store { justify-content: space-between; background: var(--accent); color: #131313; }
.sp-store b { padding: 1px 8px; border: 2px solid #131313; border-radius: 2px; background: #131313; color: var(--accent); font-size: 11px; }
.sp-update { background: var(--card); color: var(--muted); border-style: dashed; }
.sp-dock { background: var(--ink); color: var(--paper); }
.sp-dockDot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sp-bare { margin: 14px 0 0; font-size: 12px; color: var(--muted); font-style: italic; }
.stack-preview.is-built .sp-bare { display: none; }

.stack-bill { padding: 16px 18px; }
.stack-billLine, .stack-billTotal { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 13px; }
.stack-billLine i, .stack-billTotal i { flex: 1 1 auto; height: 0; border-bottom: 2px dotted var(--line); }
.stack-billTotal { margin-top: 10px; padding-top: 10px; border-top: 2px solid var(--ink); font-size: 15px; font-weight: 800; }
.stack-billTotal b { font-size: 22px; color: var(--accent); }
.stack-billNote { margin: 10px 0 14px; font-size: 11.5px; color: var(--muted); }
.stack-billCta {
  display: inline-block; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 800; text-decoration: none;
  box-shadow: 3px 3px 0 var(--shadow-hard);
}
.stack-billCta:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--shadow-hard); }

@media (max-width: 900px) {
  .stack-stage { grid-template-columns: minmax(0, 1fr); }
  .stack-side { position: static; }
}
/* /xs-stack */

/* xs-wave2: ink curtain intro */
.loader {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: var(--ink); color: var(--paper);
  flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
html.js-anim .loader { display: flex; }
.loader-lockup { position: relative; }
.loader-word {
  font-family: 'Patrick Hand', cursive; font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1; color: var(--paper);
  display: inline-block; opacity: 0;
}
.loader-line { position: absolute; left: 0; bottom: -14px; width: 100%; height: 20px; overflow: visible; }
.loader-line path { stroke: var(--accent-soft); stroke-width: 6; stroke-linecap: round; }
.loader-tag { font-family: 'Patrick Hand', cursive; font-size: 19px; color: var(--accent-soft); rotate: -2deg; opacity: 0; }
.loader-dot {
  position: absolute; bottom: 44px; left: 50%; translate: -50%;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent-soft);
  animation: loaderPulse 1.1s ease-in-out infinite;
}
@keyframes loaderPulse { 50% { opacity: 0.25; transform: scale(0.7); } }
html.loader-rescue .loader {
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
html.loader-rescue .hero .hero-title,
html.loader-rescue .hero .hero-sub,
html.loader-rescue .hero .hero-cta-row,
html.loader-rescue .hero .hero-hint { opacity: 1; }
.is-static .loader, [data-theme] .is-static .loader { display: none; }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* xs-wave2: theme circle reveal */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.theme-snap, html.theme-snap * { transition: none !important; }

/* xs-wave2: workshop marquee */
.mq-clip { overflow: clip; margin: 22px 0 30px; padding: 26px 0; }
.is-static .mq-clip { display: none; }
.mq-band {
  position: relative; z-index: 1;
  width: 104%; margin: 0 -2%;
  background: var(--ink);
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--accent-soft);
  rotate: -1.6deg;
  overflow: hidden;
}
.mq-inner { display: flex; width: max-content; will-change: transform; }
.mq-set { display: flex; align-items: center; gap: 30px; padding: 13px 15px; }
.mq-item {
  font-family: 'Patrick Hand', cursive; font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.2;
  color: var(--paper); white-space: nowrap;
}
.mq-star { color: var(--accent-soft); font-size: 19px; line-height: 1; }
.is-static .mq-band { display: none; }

/* xs-wave2: ink burst on CTA press */
.ink-pop { position: fixed; z-index: 58; width: 0; height: 0; pointer-events: none; }
.ink-pop i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent-soft); }
.ink-pop i:nth-child(3n) { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ink-pop b { position: absolute; left: -23px; top: -23px; width: 46px; height: 46px; border: 3px solid var(--accent-soft); border-radius: 50%; }
/* /xs-wave2 */

/* xs-wave3: workshop nav */
@media (min-width: 861px) {
  .nav {
    border: 2px solid transparent;
    transition: top 0.38s ease, left 0.38s ease, right 0.38s ease, padding 0.38s ease,
      border-radius 0.38s ease, border-color 0.38s ease, box-shadow 0.38s ease, background-color 0.38s ease;
  }
  html.xs-scrolled .nav {
    top: 10px; left: 16px; right: 16px;
    padding: 8px 20px;
    background: var(--paper);
    border-color: var(--ink);
    border-radius: 16px;
    box-shadow: 5px 6px 0 var(--shadow-hard);
  }
  html.xs-scrolled .mega-panel { top: 78px; }
}
.menu-btn .caret { display: inline-block; transition: rotate 0.3s ease; }
.menu-btn[aria-expanded="true"] .caret { rotate: 180deg; }
.mbtn-doodle { width: 17px; height: 17px; vertical-align: -3px; margin-right: 7px; overflow: visible; }
.mbtn-doodle path {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.5s ease 0.05s;
}
.mbtn-doodle path:nth-child(2) { transition-delay: 0.22s; }
.menu:hover .mbtn-doodle path,
.menu-btn[aria-expanded="true"] .mbtn-doodle path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .mbtn-doodle path { stroke-dashoffset: 0; transition: none; }
}
.is-static .mbtn-doodle path { stroke-dashoffset: 0; }

.mega-panel { padding-left: clamp(40px, 4vw, 58px); }
.mega-panel::after {
  content: ''; position: absolute; left: 12px; top: 20px; bottom: 20px; width: 12px;
  background-image: radial-gradient(circle at 50% 50%, transparent 2.4px, var(--accent-soft) 2.9px, var(--accent-soft) 4.4px, transparent 4.9px);
  background-size: 12px 26px; background-repeat: repeat-y;
  opacity: 0.8; pointer-events: none;
}
.mega-preview { position: relative; }
.mega-preview::after {
  content: 'THE WORKSHOP'; position: absolute; right: 12px; bottom: 10px;
  font-family: 'Patrick Hand', cursive; font-size: 13px; letter-spacing: 0.14em;
  color: var(--accent-soft); border: 2px solid var(--accent-soft); border-radius: 6px;
  padding: 2px 8px; rotate: -8deg; opacity: 0.35; pointer-events: none;
}
.mega-preview-tag { min-height: 2.7em; }
.mega-list { position: relative; }
.mega-ink {
  position: absolute; left: 0; top: 0; z-index: 0; opacity: 0;
  background: color-mix(in srgb, var(--accent-soft) 26%, transparent);
  border-left: 3px solid var(--accent-soft);
  border-radius: 0 10px 10px 0;
  rotate: -0.5deg;
  pointer-events: none;
}
.mega-panel.has-ink .mega-item { position: relative; z-index: 1; }
.mega-panel.has-ink .mega-item:hover { background: transparent; border-left-color: transparent; }
.mobile-menu {
  background-image: radial-gradient(rgba(223, 166, 64, 0.14) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
}
/* /xs-wave3 */

/* xs-wave4: progress pencil */
.page-pencil {
  position: fixed; top: -4px; left: -13px; z-index: 31;
  width: 26px; height: 26px; pointer-events: none;
  rotate: 12deg;
}
.page-pencil svg { width: 100%; height: 100%; }
@media (max-width: 860px) { .page-pencil { display: none; } }
@media (prefers-reduced-motion: reduce) { .page-pencil { display: none; } }
.is-static .page-pencil { display: none; }

/* xs-wave4: sticker peel corner */
.showcase-track .card::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 0; height: 0; border-radius: 14px 0 14px 0;
  background: linear-gradient(315deg, var(--paper) 44%, rgba(19, 19, 19, 0.16) 50%, var(--card) 56%);
  box-shadow: -2px -2px 4px rgba(19, 19, 19, 0.12);
  transition: width 0.28s ease, height 0.28s ease;
  pointer-events: none;
}
.showcase-track .card:hover::after { width: 26px; height: 26px; }

/* xs-wave4: pop-up book mega panel */
.mega-inner { perspective: 1400px; }
.mega-item:hover .mega-price { animation: wiggle 0.55s ease-in-out 2; }

/* xs-wave4: handwritten section label in the nav island */
.nav-here {
  display: none; align-items: center; margin-right: 4px;
  font-family: 'Patrick Hand', cursive; font-size: 17px; white-space: nowrap;
  color: var(--accent); rotate: -2deg;
  opacity: 0;
}
@media (min-width: 1100px) {
  .nav-here { display: inline-flex; }
}
/* /xs-wave4 */

/* xs-wave5: little banners on menu metas */
.mega-meta {
  font-family: 'Patrick Hand', cursive; font-size: 13px; line-height: 1.5;
  color: var(--accent-soft);
  border: 1.5px dashed color-mix(in srgb, var(--accent-soft) 62%, transparent);
  border-radius: 8px; padding: 0 9px; rotate: -2deg;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mega-item:nth-child(even) .mega-meta { rotate: 2deg; }
.mega-item:hover .mega-meta {
  background: var(--accent-soft); color: #2b1d05;
  border-style: solid; border-color: var(--accent-soft);
  animation: wiggle 0.55s ease-in-out 1;
}

/* xs-wave5: odometer stats */
.stat-num { display: flex; justify-content: flex-start; }
.od-digit { display: inline-block; height: 1em; overflow: hidden; }
.od-reel { display: block; will-change: transform; }
.od-reel span { display: block; height: 1em; line-height: 1; }

/* xs-wave5: folded page corner, back to top */
.page-corner {
  position: fixed; right: 0; bottom: 0; z-index: 40;
  width: 56px; height: 56px; padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; pointer-events: none; translate: 8px 8px;
  transition: opacity 0.3s ease, translate 0.3s ease;
}
html.xs-scrolled .page-corner { opacity: 1; pointer-events: auto; translate: 0 0; }
.page-corner svg {
  width: 100%; height: 100%;
  filter: drop-shadow(-3px -3px 4px rgba(19, 19, 19, 0.18));
  transition: scale 0.25s ease; transform-origin: bottom right;
}
.page-corner:hover svg { scale: 1.18; }
.pc-fold { fill: var(--card); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.pc-arrow { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.is-static .page-corner { display: none; }

/* xs-wave5: full set celebration */
.stack-bill { position: relative; }
.stack-bill.is-complete::after {
  content: 'FULL SET ★'; position: absolute; top: -13px; right: 12px;
  font-family: 'Patrick Hand', cursive; font-size: 14px; letter-spacing: 0.08em;
  color: var(--accent); border: 2px double var(--accent); border-radius: 6px;
  padding: 1px 9px; rotate: 6deg; background: var(--card);
}
/* /xs-wave5 */
