@font-face {
  font-family: "Permanent Marker";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/permanent-marker.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --paper: #fffef6;
  --yellow: #ffe14a;
  --grass: #5ea838;
  --sky: #8fd0f2;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: "Permanent Marker", "Comic Sans MS", cursive;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--sky);
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus {
  top: 8px;
}

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

.sky {
  position: relative;
  padding: 28px 0 8px;
  background: linear-gradient(#c5ecff 0%, #8fd0f2 58%, var(--grass) 100%);
  overflow: hidden;
}

.sign-wrap {
  position: relative;
  width: min(920px, calc(100% - 28px));
  margin: 8px auto 0;
}

.rope {
  position: absolute;
  top: -26px;
  width: 4px;
  height: 34px;
  background: #5c4630;
}

.rope.left { left: 18%; }
.rope.right { right: 18%; }

.sign {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  border: 5px solid var(--ink);
  border-radius: 18px 22px 16px 24px;
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.25);
  text-align: center;
  padding: 14px 16px 16px;
  transform: rotate(-1.5deg);
}

.sign h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(46px, 12vw, 88px);
  line-height: 0.9;
  font-weight: 400;
}

.sign h1::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -1% 4%;
  background: var(--yellow);
  border-radius: 40% 55% 46% 54%;
  transform: rotate(-1.5deg);
}

.banner-note {
  width: min(640px, calc(100% - 32px));
  margin: 14px auto 0;
  text-align: center;
  font-size: 18px;
}

.jump-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #17324a;
  border-bottom: 4px solid var(--ink);
}

.jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 12px;
  scroll-snap-type: x proximity;
}

.jump a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
  font-size: 16px;
}

.jump a[aria-current="page"] {
  background: var(--yellow);
}

.zone {
  padding: 28px 0 36px;
}

/* Offset in-page jumps so the sticky jump bar does not cover headings.
   Matches the bar height (not the sign header, which scrolls away). */
#highlight-sections,
#blobtown,
#animal-company,
#grab,
#ideas,
#ideas-wall,
#the-depths {
  scroll-margin-top: 5.5rem;
}

.wrap {
  width: min(1040px, calc(100% - 28px));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(720px, calc(100% - 28px));
}

.zone.grass {
  background-color: var(--grass);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Crect width='90' height='90' fill='%235ea838'/%3E%3Ccircle cx='16' cy='20' r='12' fill='%234e942c'/%3E%3Ccircle cx='70' cy='58' r='16' fill='%2374c44e'/%3E%3Cpath d='M30 78q6-24 2-36' stroke='%233e7d24' stroke-width='3' fill='none'/%3E%3Cpath d='M48 80q8-28 0-40' stroke='%238ed85a' stroke-width='3' fill='none'/%3E%3C/svg%3E");
}

.zone.stone {
  background-color: #8e98a3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='120'%3E%3Crect width='180' height='120' fill='%238e98a3'/%3E%3Cpath d='M6 8h52v34H6z' fill='%23c5ced6' stroke='%235e6770' stroke-width='3'/%3E%3Cpath d='M64 6h50v36H64z' fill='%23b7c1c9' stroke='%235e6770' stroke-width='3'/%3E%3Cpath d='M120 10h54v30h-54z' fill='%23d5dde3' stroke='%235e6770' stroke-width='3'/%3E%3Cpath d='M8 50h40v32H8z' fill='%23aeb8c0' stroke='%235e6770' stroke-width='3'/%3E%3Cpath d='M54 48h62v36H54z' fill='%23c9d2d8' stroke='%235e6770' stroke-width='3'/%3E%3Cpath d='M122 50h50v32h-50z' fill='%23b3bdc5' stroke='%235e6770' stroke-width='3'/%3E%3Cpath d='M20 90h70v22H20z' fill='%23d0d8de' stroke='%235e6770' stroke-width='3'/%3E%3Cpath d='M96 88h74v24H96z' fill='%23c0c9d0' stroke='%235e6770' stroke-width='3'/%3E%3C/svg%3E");
}

.paper-sign {
  display: inline-block;
  max-width: 100%;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 16px 20px 14px 18px;
  padding: 10px 14px 12px;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(-1.2deg);
  margin: 0 0 16px;
}

.paper-sign h2 {
  margin: 0;
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.lede,
.paper-sign p {
  margin: 6px 0 0;
}

button {
  font-family: inherit;
  font-size: 20px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  min-height: 48px;
  padding: 8px 14px;
  cursor: pointer;
}

.owner-actions button {
  width: 100%;
}

button.secondary {
  background: #fff;
  width: auto;
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.text-link,
.site-foot a {
  color: inherit;
}

.owner-sub {
  margin: 22px 0 10px;
  font-size: 32px;
  font-weight: 400;
}

.idea-thumb,
.idea-video {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin-top: 8px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
}

.hl-panel {
  border: 4px solid var(--ink);
  border-radius: 28px;
  padding: 18px 12px 16px;
  background: rgba(255, 255, 255, 0.28);
}

.hl-heading {
  display: inline-block;
  margin: -30px 0 12px;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 6px 12px;
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 400;
}

.hl-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hl-card {
  position: relative;
  min-height: 180px;
  background: #fffef8;
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 28px 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hl-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
}

.hl-tab {
  position: absolute;
  top: -12px;
  left: 8px;
  margin: 0;
  background: #ffe14a;
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 14px;
  line-height: 1.1;
}

.hl-soon {
  background: #f4f1e8;
}

.hl-soon-copy {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.ideas-panel {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 24px;
  padding: 14px;
}

.ideas-panel h2 {
  margin: 0 0 4px;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 400;
  line-height: 1.1;
}

.ideas-sub {
  margin: 0 0 14px;
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1.3;
  font-weight: 400;
}

.draw-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.draw-tools label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#idea-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #fffef8;
  border: 3px solid var(--ink);
  border-radius: 12px;
  touch-action: none;
}

.store-hello {
  text-align: center;
  padding: 18px 0 6px;
}

.hello-title {
  margin: 0;
  font-size: clamp(34px, 8.5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  transform: rotate(-1.5deg);
}

.video-link-row {
  margin: 12px 0 0;
}

.video-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 22px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(20px, 5vw, 26px);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
}

.video-pill.is-soon {
  opacity: 0.72;
  background: #f3f0e4;
  cursor: default;
}

.ideas-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.draw-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.color-wheel {
  position: relative;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  touch-action: none;
  cursor: crosshair;
  background:
    radial-gradient(circle closest-side, #fff 0%, rgba(255, 255, 255, 0) 72%),
    conic-gradient(from 0deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.color-wheel:focus-visible {
  outline-offset: 4px;
}

.color-wheel-knob,
.color-current {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.color-wheel-knob {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--ink);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}

.color-current {
  width: 16px;
  height: 16px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--ink);
  background: #1a1a1a;
}

.video-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-col #idea-submit {
  width: 100%;
}

.wall-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wall-head h2 {
  margin: 0;
}

.wall-sort {
  display: flex;
  gap: 8px;
}

.wall-sort button {
  width: auto;
  min-height: 40px;
}

.wall-sort button[aria-pressed="true"] {
  background: var(--yellow);
}

.wall-list {
  display: grid;
  gap: 14px;
}

.wall-card {
  position: relative;
  background: #fffef8;
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 12px 12px 10px;
}

.wall-card img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
}

.wall-rank {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 20px;
}

.medal {
  width: 28px;
  height: 22px;
  display: inline-block;
}

.wall-card h3 {
  margin: 8px 0 0;
  font-size: 26px;
  font-weight: 400;
}

.wall-card p {
  margin: 4px 0;
}

.wall-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.vote-btn {
  width: auto;
  min-height: 44px;
  background: #fff;
}

.vote-btn[aria-pressed="true"] {
  background: #ffd0dc;
}

.wall-lead {
  margin: 0 0 10px;
}

.wall-cta-note {
  margin: 18px 0 8px;
  text-align: center;
}

.wall-cta {
  display: flex;
  justify-content: center;
  margin: 0 0 4px;
}

.wall-cta-btn,
.home-btn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  color: var(--ink);
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 5px 5px 0 var(--ink);
}

.wall-cta-btn {
  min-height: 64px;
  width: min(100%, 420px);
  padding: 12px 22px;
  font-size: clamp(24px, 6vw, 34px);
}

.home-btn {
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
}

.home-btn a {
  min-height: 80px;
  width: min(100%, 420px);
  padding: 16px 28px;
  font-size: clamp(32px, 8vw, 48px);
}

.wall-cta-btn:active,
.home-btn a:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

body.page-wall {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-wall #main,
body.page-wall .wall-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.page-wall .wall-page .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.page-wall .home-btn {
  margin-top: auto;
  padding-top: 28px;
}

.idea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.idea-actions button {
  width: auto;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(6, 18px);
  gap: 2px;
  padding: 3px;
  background: repeating-conic-gradient(#d8d2c4 0% 25%, #f6f3e8 0% 50%) 0 0 / 10px 10px;
  border: 3px solid var(--ink);
  border-radius: 6px;
}

.swatch {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border-radius: 2px;
  border: 1px solid var(--ink);
  box-shadow: none;
}

.swatch.is-on {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.swatch-black { background: #1a1a1a; }
.swatch-white { background: #fffef8; }
.swatch-red { background: #e23b2f; }
.swatch-orange { background: #f08a1a; }
.swatch-yellow { background: #ffe14a; }
.swatch-green { background: #2f9e3a; }
.swatch-blue { background: #2f6fe0; }
.swatch-purple { background: #7a3ec8; }
.swatch-pink { background: #f06ab0; }
.swatch-brown { background: #7a4a22; }
.swatch-gray { background: #8a8a8a; }
.swatch-navy { background: #1d3557; }

.video-box {
  border: 4px solid var(--ink);
  border-radius: 22px;
  background: #fffef8;
  padding: 10px;
}

.video-label {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.15;
}

.video-start {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  padding: 8px;
  border: 3px dashed var(--ink);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
}

.video-file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.depths {
  position: relative;
  overflow: hidden;
  padding: 0 0 36px;
  color: #f4f4f4;
  background: linear-gradient(to bottom, #5ea838 0%, #3a3a3a 8%, #242424 20%, #141414 46%, #070707 100%);
}

.horizon {
  position: relative;
  z-index: 1;
  height: 52px;
}

.horizon svg {
  display: block;
  width: 100%;
  height: 52px;
}

.depths-kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #d7d7d7;
}

.depth-band {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  margin: 12px 0;
  background:
    repeating-linear-gradient(98deg, transparent 0 11px, rgba(0, 0, 0, 0.55) 11px 14px),
    repeating-linear-gradient(-7deg, transparent 0 20px, rgba(255, 255, 255, 0.05) 20px 21px);
}

.band-faint { min-height: 92px; background-color: rgba(0, 0, 0, 0.28); }
.band-mid { min-height: 70px; background-color: rgba(0, 0, 0, 0.45); }
.band-deep { min-height: 86px; background-color: rgba(0, 0, 0, 0.62); }

.glitch {
  position: relative;
  z-index: 1;
  margin: 10px auto;
  width: min(640px, calc(100% - 24px));
  text-align: center;
  font-weight: 400;
  line-height: 1.05;
  color: #f7f7f7;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.glitch .slice {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch-soft {
  font-size: 16px;
  opacity: 0.78;
  filter: blur(0.45px);
}

.glitch-mid {
  font-size: clamp(40px, 10vw, 64px);
  filter: blur(0.35px);
}

.glitch-hard {
  font-size: clamp(44px, 12vw, 80px);
  letter-spacing: 0.03em;
  filter: blur(0.6px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  transform: rotate(-1.4deg);
}

.slice-r { color: #ff4b6a; }
.slice-b { color: #3ad2ff; }
.slice-m { color: #f7f7f7; }

.glitch-soft .slice-r { transform: translateX(-1px); clip-path: inset(12% 0 58% 0); }
.glitch-soft .slice-b { transform: translateX(1px); clip-path: inset(48% 0 18% 0); }
.glitch-soft .slice-m { clip-path: inset(32% 0 40% 0); }

.glitch-mid .slice-r { transform: translateX(-3px); clip-path: inset(8% 0 62% 0); }
.glitch-mid .slice-b { transform: translateX(3px); clip-path: inset(46% 0 16% 0); }
.glitch-mid .slice-m { clip-path: inset(28% 0 42% 0); }

.glitch-hard .slice-r { transform: translateX(-7px); color: #ff2a4a; clip-path: inset(6% 0 64% 0); }
.glitch-hard .slice-b { transform: translateX(7px); color: #24d6ff; clip-path: inset(42% 0 12% 0); }
.glitch-hard .slice-m { clip-path: inset(24% 0 46% 0); }

.depth-eyes {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 26px;
  margin: 18px 0 10px;
}

.depth-eyes span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f4f4f4;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.fpe-panel {
  position: relative;
  z-index: 3;
  width: min(520px, calc(100% - 28px));
  margin: 12px auto 0;
  padding: 8px 14px 14px;
  text-align: center;
  color: var(--ink);
  background: #fffef8;
  border: 4px solid var(--ink);
  border-radius: 36px 40px 32px 38px;
}

.fpe-panel h2 {
  margin: 0;
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 400;
  letter-spacing: 0.14em;
}

.fpe-mouth {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 4px;
  background: #fff;
}

.fpe-scream {
  margin: 2px 0 0;
  font-size: 22px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transform: rotate(-1deg);
}

.depths-noise,
.depths-scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.depths-noise {
  background-image: url("/assets/highlights/grain.png");
  background-size: 96px 96px;
  opacity: 0.42;
  mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55) 38%, #000 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.55) 38%, #000 100%);
}

.depths-scan {
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.28) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35) 20%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.35) 20%, #000 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .glitch-soft .slice-r { animation: slice-a 2.8s steps(2, end) infinite; }
  .glitch-soft .slice-b { animation: slice-b 3.1s steps(2, end) infinite; }
  .glitch-soft .slice-m { animation: slice-m 2.4s steps(2, end) infinite; }
  .glitch-soft { animation: flicker-soft 3.4s linear infinite; }

  .glitch-mid .slice-r { animation: slice-a 1.7s steps(2, end) infinite; }
  .glitch-mid .slice-b { animation: slice-b 1.4s steps(3, end) infinite; }
  .glitch-mid .slice-m { animation: slice-m 1.1s steps(2, end) infinite; }
  .glitch-mid { animation: flicker-mid 2.6s linear infinite; }

  .glitch-hard .slice-r { animation: slice-hard-a 0.5s steps(2, end) infinite; }
  .glitch-hard .slice-b { animation: slice-hard-b 0.44s steps(3, end) infinite; }
  .glitch-hard .slice-m { animation: slice-hard-m 0.32s steps(2, end) infinite; }
  .glitch-hard { animation: flicker-hard 1.8s linear infinite, said-shake 0.42s linear infinite; }

  .fpe-mouth { animation: mouth-wiggle 3.2s ease-in-out infinite; }
  .depths-noise { animation: grain-shift 0.5s steps(4, end) infinite; }
}

@keyframes slice-a {
  0% { clip-path: inset(6% 0 68% 0); transform: translateX(-2px); }
  25% { clip-path: inset(42% 0 28% 0); transform: translateX(5px); }
  50% { clip-path: inset(68% 0 8% 0); transform: translateX(-6px); }
  75% { clip-path: inset(18% 0 52% 0); transform: translateX(3px); }
  100% { clip-path: inset(6% 0 68% 0); transform: translateX(-2px); }
}

@keyframes slice-b {
  0% { clip-path: inset(52% 0 14% 0); transform: translateX(3px); }
  30% { clip-path: inset(10% 0 64% 0); transform: translateX(-4px); }
  60% { clip-path: inset(34% 0 36% 0); transform: translateX(6px); }
  100% { clip-path: inset(52% 0 14% 0); transform: translateX(3px); }
}

@keyframes slice-m {
  0% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

@keyframes slice-hard-a {
  0% { clip-path: inset(4% 0 72% 0); transform: translateX(-9px); }
  25% { clip-path: inset(40% 0 26% 0); transform: translateX(11px); }
  50% { clip-path: inset(70% 0 4% 0); transform: translateX(-13px); }
  75% { clip-path: inset(14% 0 54% 0); transform: translateX(8px); }
  100% { clip-path: inset(4% 0 72% 0); transform: translateX(-9px); }
}

@keyframes slice-hard-b {
  0% { clip-path: inset(58% 0 8% 0); transform: translateX(10px); }
  30% { clip-path: inset(8% 0 66% 0); transform: translateX(-12px); }
  60% { clip-path: inset(36% 0 30% 0); transform: translateX(9px); }
  100% { clip-path: inset(58% 0 8% 0); transform: translateX(10px); }
}

@keyframes slice-hard-m {
  0% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(7px); }
  100% { transform: translateX(0); }
}

@keyframes flicker-soft {
  0%, 100% { opacity: 0.78; }
  92% { opacity: 0.78; }
  94% { opacity: 0.4; }
  96% { opacity: 0.75; }
}

@keyframes flicker-mid {
  0%, 100% { opacity: 1; }
  89% { opacity: 1; }
  91% { opacity: 0.45; }
  93% { opacity: 1; }
  96% { opacity: 0.7; }
}

@keyframes flicker-hard {
  0%, 84%, 100% { opacity: 1; }
  86% { opacity: 0.35; }
  88% { opacity: 1; }
  93% { opacity: 0.2; }
  95% { opacity: 0.85; }
}

@keyframes said-shake {
  0%, 100% { transform: translate(0, 0) rotate(-1.4deg); }
  25% { transform: translate(-2px, 1px) rotate(1deg); }
  50% { transform: translate(3px, -1px) rotate(-2deg); }
  75% { transform: translate(-1px, 0) rotate(0.4deg); }
}

@keyframes mouth-wiggle {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  40% { transform: rotate(-0.7deg) translateY(1px); }
  70% { transform: rotate(0.7deg); }
}

@keyframes grain-shift {
  0% { background-position: 0 0; }
  25% { background-position: -18px 10px; }
  50% { background-position: 12px -16px; }
  75% { background-position: -8px 20px; }
  100% { background-position: 0 0; }
}

.site-foot {
  background: #1f4d12;
  color: #fffef8;
  text-align: center;
  padding: 22px 16px 32px;
}

.fine {
  font-size: 14px;
}

.empty,
.form-error {
  color: #9d1230;
}

.noscript-note {
  display: block;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

input,
textarea {
  font-family: inherit;
  font-size: 18px;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input[readonly] {
  background: #fff3a8;
}

::placeholder {
  color: #5c5346;
  opacity: 1;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.owner-page .list {
  display: grid;
  gap: 12px;
}

.order-card {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 12px;
}

.order-card.done {
  opacity: 0.75;
}

.order-card p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.stamp {
  display: inline-block;
  border: 3px solid #1f7a32;
  color: #14612a;
  border-radius: 8px;
  padding: 2px 8px;
  transform: rotate(-6deg);
}

.stamp.new {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--yellow);
}

.gate,
.owner-tools {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
}

.status {
  min-height: 1.3em;
}

@media (min-width: 720px) {
  .ideas-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    align-items: start;
  }

  .wall-list {
    grid-template-columns: 1fr 1fr;
  }

  .owner-actions button {
    width: auto;
  }
}

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

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