* {
  box-sizing: border-box;
}

:root {
  --ink: #101010;
  --paper: #fff7df;
  --line: #000000;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", "Comic Sans MS", sans-serif;
}

body {
  overflow: hidden;
}

.shorts {
  height: 100dvh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff2c5;
}

.short-slide {
  height: 100dvh;
  min-height: 100dvh;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  perspective: 1400px;
}

.flip-shell {
  position: absolute;
  inset: 0;
}

.flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 500ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.short-slide.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  color: var(--slide-fg);
  border-block: 4px solid var(--line);
}

.face.back {
  transform: rotateY(180deg);
}

.bg-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--slide-bg);
}

.bg-layer::after {
  content: none;
}

.poop-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.poop {
  position: absolute;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.35));
  user-select: none;
  font-size: var(--poop-size, 3.2rem);
}

.poop.p1 {
  left: 8%;
  top: 18%;
  transform: translateY(calc(var(--poop-shift, 0px) * 0.45)) rotate(var(--poop-rotate, -10deg));
}

.poop.p2 {
  right: 10%;
  top: 52%;
  transform: translateY(calc(var(--poop-shift, 0px) * 1.2)) rotate(var(--poop-rotate, 7deg));
}

.poop.p3 {
  left: 34%;
  bottom: 14%;
  transform: translateY(calc(var(--poop-shift, 0px) * 2.1)) rotate(var(--poop-rotate, 14deg));
}

.case-face .poop-layer {
  display: none;
}

.tip-wrap {
  display: grid;
  place-content: center;
  gap: 12px;
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.case-face .tip-wrap {
  place-content: start;
  align-content: start;
  gap: 10px;
}

.case-media {
  width: 100%;
  border: 4px solid #000;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 5px 5px 0 #000;
  margin-bottom: 10px;
}

.case-media img {
  display: block;
  width: 100%;
  height: clamp(200px, 32vh, 320px);
  object-fit: cover;
}

.kicker {
  margin: 0;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slide-fg);
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  padding: 6px 10px;
  box-shadow: 3px 3px 0 var(--line);
}

.tip-short {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.9rem);
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 3px 3px 0 #ffffff;
}

.case-face .tip-short {
  font-size: clamp(1.65rem, 6.2vw, 2.8rem);
  text-shadow: 2px 2px 0 #ffffff;
}

.tip-long {
  margin: 0;
  font-size: clamp(1.05rem, 3.8vw, 1.5rem);
  line-height: 1.45;
  color: var(--slide-fg);
  background: rgba(255, 255, 255, 0.88);
  border: 3px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 4px 4px 0 var(--line);
  max-width: 680px;
}

.case-face .tip-long {
  background: #ffffff;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--slide-fg);
  font-weight: 700;
}

.pill {
  border: 3px solid var(--line);
  background: #ffffff;
  padding: 6px 11px;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line);
}

.overlay {
  position: fixed;
  z-index: 12;
  pointer-events: none;
}

.overlay.top {
  top: max(10px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.brand,
.mode {
  margin: 0;
  color: #000;
}

.brand {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #ffd43b;
  border: 3px solid #000;
  border-radius: 999px;
  display: inline-block;
  padding: 5px 9px;
  box-shadow: 3px 3px 0 #000;
}

.mode {
  font-weight: 700;
  margin-top: 0;
  background: #ff3b30;
  color: #fff;
  border: 3px solid #000;
  border-radius: 999px;
  display: inline-block;
  padding: 6px 10px;
  box-shadow: 3px 3px 0 #000;
  font-size: 0.8rem;
  line-height: 1.1;
  white-space: nowrap;
  flex: 0 1 auto;
}

.top-cta {
  pointer-events: auto;
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1.1;
  background: #ffffff;
  color: #000;
  border: 3px solid #000;
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 3px 3px 0 #000;
  max-width: min(58vw, 260px);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

@media (max-width: 420px) {
  .overlay.top {
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .mode,
  .top-cta {
    font-size: 0.72rem;
    padding: 5px 8px;
    border-width: 2px;
    box-shadow: 2px 2px 0 #000;
  }

  .top-cta {
    max-width: 56vw;
  }
}

.empty-state {
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #000;
  text-align: center;
  background: #ffe066;
  border: 4px solid #000;
}

.cta-slide {
  background: #ffe066;
}

.cta-face {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 22px;
  background: linear-gradient(165deg, #ffe066 0%, #ff5e57 100%);
  border-block: 4px solid #000;
}

.cta-inner {
  width: min(100%, 760px);
  background: #fff;
  border: 4px solid #000;
  border-radius: 26px;
  box-shadow: 8px 8px 0 #000;
  padding: 20px;
  text-align: center;
  display: grid;
  gap: 16px;
}

.cta-form {
  display: grid;
  gap: 10px;
}

.cta-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.day-pills {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.day-pill {
  border: 3px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: 0.9rem;
  min-height: 42px;
  box-shadow: 3px 3px 0 #000;
}

.day-pill.is-active {
  background: #ff3b30;
  color: #fff;
}

.hour-select {
  width: 100%;
  border: 3px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  font-weight: 700;
  box-shadow: 3px 3px 0 #000;
}

.cta-title {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.7rem);
  line-height: 1.15;
}

.cta-link {
  display: inline-block;
  justify-self: center;
  background: #ff3b30;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 12px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.cta-link:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

@media (min-width: 880px) {
  .tip-wrap {
    text-align: center;
  }

  .meta {
    justify-content: center;
    gap: 14px;
  }
}
