:root {
  --brand: #006fdb;
  --brand-dark: #005fc0;
  --brand-02: #bd7602;
  --mono: #191b1d;
  --mono-light: #f2f2f2;
  --card: rgba(0, 111, 219, 0.16);
  --muted: rgba(25, 27, 29, 0.48);
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(0, 71, 139, 0.08);
  --page-gradient: linear-gradient(180deg, #ffffff 0%, #ffffff 42%, #cedded 100%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--mono);
  min-height: 100%;
  background: #cedded;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  background: transparent;
}

#app {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--page-gradient);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

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

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

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 40px 80px;
}

.page--wide {
  width: min(100%, 1280px);
}

.header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

.header--split {
  justify-content: space-between;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(90px, 1fr) auto minmax(90px, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: -28px 0 18px;
  padding: 28px 0 14px;
  background: var(--white);
}

.admin-header > .pill:first-child {
  justify-self: start;
}

.admin-header > .pill:last-child {
  justify-self: end;
}

.admin-tabs {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border-radius: 999px;
  background: var(--mono-light);
}

.admin-tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-02);
  min-height: 30px;
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
}

.admin-tab--active {
  background: var(--white);
  color: var(--brand);
  box-shadow: inset 0 0 0 2px var(--brand);
}

.wtf-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
}

.wtf-header__side {
  width: fit-content;
  max-width: 100%;
  padding-inline: 16px;
  white-space: nowrap;
}

.wtf-header__side:first-child {
  justify-self: start;
}

.wtf-header__side:last-child {
  justify-self: end;
}

.wtf-header__center {
  justify-self: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--mono-light);
  color: var(--brand-02);
  padding: 4px 16px;
  min-height: 30px;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
}

.pill.wtf-header__side {
  background: transparent;
}

.pill-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.admin-skip-payment {
  font-size: 16px;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  min-height: 52px;
  max-width: 100%;
  min-width: 0;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 111, 219, 0.16);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 111, 219, 0.22);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--small {
  min-height: 40px;
  padding: 10px 28px;
  font-size: 16px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.poop-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.poop-wrap::before {
  content: "";
  position: absolute;
  width: 92%;
  height: 70%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 198, 69, 0.32), transparent 64%);
  filter: blur(8px);
  animation: glow 3s ease-in-out infinite;
}

.hero-poop {
  position: relative;
  z-index: 1;
  width: 160px;
  height: 140px;
  object-fit: contain;
  display: block;
  transform-origin: 50% 68%;
  animation: float 4.5s ease-in-out infinite;
}

.wtf-poop {
  position: relative;
  z-index: 1;
  display: block;
  width: 100px;
  height: 88px;
  object-fit: contain;
}

.title {
  margin: 0;
  color: var(--brand);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.title--small {
  font-size: 24px;
}

.subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.46;
}

.home-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-shell {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.section-title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.microcopy {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  line-height: 1.46;
}

.active-intro {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: -12px;
}

.active-intro__rule {
  font-size: 12px;
}

.active-intro__buyer {
  font-size: 18px;
}

.buyer {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.buyer--featured {
  gap: 8px;
}

.home-active-card {
  display: flex;
  justify-content: center;
  width: 100%;
}

.home-active--handoff {
  pointer-events: none;
}

.buyer--exit-right {
  animation: buyerExitRight 620ms cubic-bezier(0.55, 0, 0.25, 1) both;
}

.buyer--enter-left {
  animation: buyerEnterLeft 760ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

.buyer--feed-out {
  animation: buyerFeedOut 380ms ease both;
}

.buyer--feed-in {
  animation: buyerFeedIn 620ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

.avatar-crown {
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
}

.crown-frame {
  position: relative;
  display: block;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.crown-frame img {
  position: absolute;
  top: -51.37%;
  left: -12.35%;
  width: 122.78%;
  height: 209.84%;
  max-width: none;
  object-fit: fill;
}

.crown-frame--large {
  width: 59px;
  height: 52px;
  margin-bottom: -16px;
}

.crown-frame--small {
  width: 47px;
  height: 42px;
  margin-bottom: -12px;
}

.crown-frame--mini {
  width: 32px;
  height: 28px;
}

.crown-frame--crop {
  position: absolute;
  top: -66px;
  left: 50%;
  width: 108px;
  height: 95px;
  margin: 0;
  transform: translateX(-50%);
  z-index: 4;
}

.crown-frame--handoff-lift {
  animation: crownHandoffLift 620ms cubic-bezier(0.55, 0, 0.25, 1) both;
}

.crown-frame--handoff-drop {
  animation: crownHandoffDrop 760ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
}

.crown-frame--ink img {
  filter: brightness(0);
  opacity: 0.82;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: #d2e7fa;
  z-index: 1;
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 28px;
  font-weight: 600;
}

.avatar-fallback[hidden],
.order-avatar-fallback[hidden] {
  display: none;
}

.avatar--small {
  width: 80px;
  height: 80px;
}

.buyer-name,
.buyer-link,
.buyer-paid,
.buyer-time {
  margin: 0;
  width: 100%;
}

.buyer-name {
  font-size: 18px;
  font-weight: 600;
}

.buyer-link {
  color: var(--brand);
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.buyer-paid {
  font-size: 14px;
  font-weight: 600;
}

.buyer-time {
  font-size: 12px;
  display: inline-block;
  transform-origin: 50% 45%;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.buyer-time--live {
  color: var(--brand);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(0, 111, 219, 0.2);
}

.buyer-time--finale {
  animation: live-crown-finale 900ms ease-in-out infinite;
}

.buyer-time--flip {
  animation: split-flap-tick 1100ms cubic-bezier(0.18, 0.86, 0.24, 1);
}

.buyer-time--live.buyer-time--flip {
  animation: split-flap-tick 1100ms cubic-bezier(0.18, 0.86, 0.24, 1);
}

.buyer-time--finale.buyer-time--flip {
  animation:
    split-flap-tick 1100ms cubic-bezier(0.18, 0.86, 0.24, 1),
    live-crown-finale 900ms ease-in-out infinite;
}

@keyframes live-crown-finale {
  0%,
  100% {
    color: var(--brand);
    transform: scale(1);
    text-shadow: 0 0 18px rgba(0, 111, 219, 0.24);
  }

  50% {
    color: var(--brand);
    transform: scale(1.055);
    text-shadow: 0 0 24px rgba(0, 111, 219, 0.34);
  }
}

@keyframes split-flap-tick {
  0% {
    opacity: 0.25;
    transform: perspective(220px) rotateX(88deg) translateY(-4px) scaleY(0.92);
  }

  36% {
    opacity: 0.62;
    transform: perspective(220px) rotateX(-34deg) translateY(2px) scaleY(1.04);
  }

  68% {
    opacity: 1;
    transform: perspective(220px) rotateX(13deg) translateY(0);
  }

  100% {
    opacity: 1;
    transform: perspective(220px) rotateX(0);
  }
}

@keyframes buyerExitRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  38% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateX(42px) scale(0.98);
  }
}

@keyframes buyerEnterLeft {
  0% {
    opacity: 0;
    transform: translateX(-42px) scale(0.98);
  }

  42% {
    opacity: 0;
    transform: translateX(-42px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes buyerFeedOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

@keyframes buyerFeedIn {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes crownHandoffLift {
  0% {
    transform: translateY(0);
  }

  48% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(-12px);
  }
}

@keyframes crownHandoffDrop {
  0% {
    transform: translateY(-12px);
  }

  52% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .buyer-time--flip,
  .buyer-time--finale,
  .buyer--exit-right,
  .buyer--enter-left,
  .buyer--feed-out,
  .buyer--feed-in,
  .crown-frame--handoff-lift,
  .crown-frame--handoff-drop {
    animation: none;
  }
}

.info-card,
.field,
.textarea {
  width: 100%;
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--mono);
  font-weight: 500;
}

.message-card {
  border: 0;
  border-radius: 24px;
  background: var(--card);
  color: var(--mono);
  font-weight: 500;
  padding: 16px 24px;
  width: fit-content;
  max-width: 384px;
  font-size: 14px;
  text-align: center;
  line-height: 1.15;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 14px;
  line-height: 1.15;
}

.info-card__icon {
  width: 28px;
  flex: 0 0 28px;
  text-align: center;
  font-size: 22px;
}

.divider {
  width: 1px;
  height: 60px;
  margin: 0 auto;
  background: repeating-linear-gradient(to bottom, rgba(25, 27, 29, 0.28), rgba(25, 27, 29, 0.28) 2px, transparent 2px, transparent 6px);
}

.feed-intro {
  gap: 24px;
}

.feed-intro__copy {
  gap: 20px;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  padding-bottom: 40px;
}

.feed-sentinel {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
}

.feed-sentinel--fallback {
  height: 48px;
}

.route-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.route-stack--loose {
  gap: 60px;
}

.wtf-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  background: var(--page-gradient);
  animation: overlayFadeIn 220ms ease both;
}

.wtf-overlay--closing {
  animation: overlayFadeOut 220ms ease both;
}

.wtf-sheet {
  width: min(100%, 520px);
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 40px 80px;
  background: transparent;
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  background: rgba(25, 27, 29, 0.18);
  animation: overlayFadeIn 180ms ease both;
}

.share-overlay--closing {
  animation: overlayFadeOut 180ms ease both;
}

.share-panel {
  width: min(100%, 420px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(0, 71, 139, 0.18);
  padding: 18px;
  animation: shareSlideIn 180ms ease both;
}

.share-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.share-head h2,
.share-head p {
  margin: 0;
}

.share-head h2 {
  color: var(--brand);
  font-size: 18px;
  font-weight: 600;
}

.share-head p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.share-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--mono-light);
  color: var(--brand-02);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.share-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--mono-light);
  color: var(--brand-02);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.share-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--brand-02);
  line-height: 1;
}

.share-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.terms-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  background: rgba(25, 27, 29, 0.18);
  animation: overlayFadeIn 180ms ease both;
}

.terms-overlay--closing {
  animation: overlayFadeOut 180ms ease both;
}

.terms-panel {
  display: flex;
  width: min(100%, 520px);
  max-height: min(82vh, 760px);
  flex-direction: column;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 22px 70px rgba(0, 71, 139, 0.18);
  padding: 18px;
  animation: shareSlideIn 180ms ease both;
}

.terms-body {
  overflow-y: auto;
  padding-right: 6px;
  color: var(--mono);
  font-size: 13px;
  line-height: 1.45;
}

.terms-body section + section {
  margin-top: 18px;
}

.terms-body h3,
.terms-body p,
.terms-body ul {
  margin: 0;
}

.terms-body h3 {
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.terms-body p,
.terms-body ul {
  margin-top: 8px;
}

.terms-body ul {
  padding-left: 18px;
}

.terms-body li + li {
  margin-top: 6px;
}

.terms-accept {
  align-self: center;
  margin-top: 16px;
}

.policy-page {
  display: flex;
  width: min(100%, 680px);
  flex-direction: column;
  gap: 24px;
  padding-bottom: 48px;
}

.policy-page__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.policy-page__body {
  width: 100%;
  border-radius: 24px;
  background: var(--soft);
  padding: 24px;
  font-size: 14px;
}

.photo-editor {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  background: transparent;
}

.photo-editor--closing {
  pointer-events: none;
}

.photo-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(25, 27, 29, 0.22);
  animation: overlayFadeIn 180ms ease both;
}

.photo-editor--closing .photo-editor-backdrop {
  animation: overlayFadeOut 180ms ease both;
}

.photo-editor-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(0, 71, 139, 0.18);
  padding: 18px;
  opacity: 1;
}

.photo-editor-panel .share-head h2 {
  color: var(--brand);
  opacity: 1;
}

.photo-editor-panel .share-head p,
.photo-editor-panel .zoom-control {
  color: var(--mono);
  opacity: 1;
}

.crop-stage {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 86px auto 16px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 2px rgba(0, 111, 219, 0.18);
  overflow: visible;
  touch-action: none;
}

.crop-canvas {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
}

.crop-canvas:active {
  cursor: grabbing;
}

.crop-guide {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: rgba(0, 111, 219, 0.74);
}

.crop-guide--x {
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
}

.crop-guide--y {
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.zoom-control input {
  flex: 1;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  opacity: 1;
}

.zoom-control input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 111, 219, 0.22);
  box-shadow: inset 0 0 0 1px rgba(0, 111, 219, 0.12);
}

.zoom-control input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(0, 111, 219, 0.28);
  appearance: none;
  -webkit-appearance: none;
}

.zoom-control input::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 111, 219, 0.22);
  box-shadow: inset 0 0 0 1px rgba(0, 111, 219, 0.12);
}

.zoom-control input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 6px 16px rgba(0, 111, 219, 0.28);
}

.photo-editor-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.photo-editor-cancel,
.photo-editor-use {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  opacity: 1;
}

.photo-editor-cancel {
  background: var(--mono-light);
  color: var(--brand-02);
}

.photo-editor-use {
  background: #006fdb;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 111, 219, 0.16);
}

.photo-editor-use:hover {
  background: var(--brand-dark);
}

.photo-editor-disclaimer {
  margin: 14px 0 0;
  width: 100%;
  color: rgba(25, 27, 29, 0.55);
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
}

.form {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 40px;
}

.upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(0, 111, 219, 0.18);
  color: rgba(25, 27, 29, 0.46);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
}

.field,
.textarea,
.select {
  min-height: 50px;
  padding: 16px 24px;
  text-align: center;
  font-size: 14px;
  outline: none;
}

.textarea {
  min-height: 134px;
  resize: vertical;
  line-height: 1.2;
  align-content: center;
}

.field::placeholder,
.textarea::placeholder {
  color: rgba(25, 27, 29, 0.42);
  opacity: 1;
}

.char-count,
.error,
.hint {
  margin: -14px 0 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
}

.char-count,
.hint {
  color: rgba(25, 27, 29, 0.55);
}

.hint.estimate-hint {
  max-width: 380px;
  margin: 0;
  color: var(--mono);
  line-height: 1.35;
}

.hint.terms-hint {
  max-width: 360px;
  margin: -12px 0 0;
  text-align: center;
  font-size: 12px;
}

.embedded-checkout {
  width: 100%;
  margin-top: 0;
  padding-bottom: 40px;
}

.embedded-checkout__back {
  align-self: center;
  margin-bottom: 8px;
}

.embedded-checkout__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.embedded-checkout__header h2 {
  margin: 0;
  color: var(--brand);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.embedded-checkout__frame {
  width: 100%;
  height: min(760px, calc(100vh - 230px));
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(0, 111, 219, 0.14);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-hint {
  align-self: center;
}

.contact-form {
  max-width: 520px;
}

.contact-message {
  min-height: 180px;
  text-align: left;
  align-content: start;
}

.contact-success {
  color: var(--brand);
  font-weight: 600;
}

.error {
  color: #c33131;
  font-weight: 600;
}

.success-title {
  margin: 0;
  color: var(--brand);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.success-title span {
  display: block;
  margin-bottom: 4px;
  font-size: 40px;
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: center;
}

.schedule p {
  margin: 0;
  font-size: 16px;
  line-height: 1.46;
}

.schedule small {
  font-size: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

.admin-card,
.login-card {
  width: 100%;
  border-radius: 24px;
  background: var(--card);
  padding: 18px;
}

.admin-card .header {
  position: static;
  top: auto;
  z-index: auto;
}

.admin-card-head {
  gap: 12px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.admin-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.admin-kicker {
  display: block;
  margin-bottom: 5px;
  color: rgba(25, 27, 29, 0.52);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.payment-status-grid > div {
  border-radius: 18px;
  background: var(--white);
  padding: 12px;
}

.payment-status-grid strong {
  display: block;
  color: var(--brand);
  font-size: 16px;
  line-height: 1.2;
}

.payment-config-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-status-message {
  min-height: 96px;
  text-align: left;
  align-content: start;
}

.payment-pending-section {
  margin-top: 28px;
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 430px;
  margin-inline: auto;
}

.orders {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  font-size: 13px;
}

.orders th,
.orders td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 111, 219, 0.14);
  text-align: left;
  vertical-align: middle;
}

.orders .order-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #d2e7fa;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-status {
  font-weight: 600;
}

.order-status--danger {
  color: #b43a20;
}

.admin-order-label {
  display: inline-block;
  margin-top: 4px;
  color: var(--brand-02);
  font-size: 12px;
  font-weight: 600;
}

.ghost {
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--brand-02);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ghost:disabled {
  cursor: wait;
  opacity: 0.65;
}

.ghost--danger {
  background: #fff3f0;
  color: #b43a20;
}

.empty {
  margin: 0;
  width: 100%;
  color: rgba(25, 27, 29, 0.6);
  text-align: center;
  font-size: 14px;
}

.subscribe-popup {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 320px;
  min-height: 66px;
  padding: 16px;
  border: 0;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--mono-light), var(--white));
  box-shadow: 0 16px 20px rgba(0, 0, 0, 0.28);
  color: var(--mono);
  animation: subscribePopIn 420ms cubic-bezier(0.18, 0.86, 0.24, 1) both;
  will-change: transform, opacity;
}

.subscribe-popup--initial {
  cursor: pointer;
}

.subscribe-popup-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
}

.subscribe-popup-copy strong {
  color: var(--brand);
}

.subscribe-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.subscribe-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.subscribe-popup--form {
  justify-content: stretch;
  padding: 16px 16px 16px 24px;
}

.subscribe-input {
  min-width: 0;
  flex: 1 1 auto;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  color: var(--mono);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.subscribe-input::placeholder {
  color: rgba(25, 27, 29, 0.42);
}

.subscribe-input:focus {
  box-shadow: 0 0 0 2px rgba(0, 111, 219, 0.24);
}

.subscribe-error {
  position: absolute;
  left: 24px;
  right: 16px;
  top: -28px;
  margin: 0;
  border-radius: 999px;
  background: var(--mono);
  color: var(--white);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.subscribe-popup--success {
  padding: 16px 24px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}

@keyframes glow {
  0%, 100% { opacity: 0.7; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes subscribePopIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subscribePopInMobile {
  from {
    opacity: 0;
    transform: translateX(50%) translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }
}

@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes shareSlideIn {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

@media (min-width: 760px) {
  .page {
    padding-top: 48px;
  }

  .home-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    width: 100%;
    transform: translateY(-40px);
  }

  .home-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .home-main .hero {
    gap: 22px;
  }

  .home-main .hero-poop {
    width: 208px;
    height: 182px;
  }

  .home-main .title {
    font-size: 52px;
  }

  .home-main .subtitle {
    font-size: 26px;
  }

  .home-main .button {
    min-height: 60px;
    padding: 16px 44px;
    font-size: 20px;
  }

  .home-main .microcopy {
    font-size: 16px;
  }

  .home-main .active-intro__rule {
    font-size: 12px;
  }

  .home-main .active-intro__buyer {
    font-size: 18px;
  }

  .section,
  .form,
  .route-stack {
    max-width: 430px;
    margin-inline: auto;
  }

  .page--wide .route-stack,
  .page--wide .section {
    max-width: none;
  }

  .page--wide .home-main .section {
    max-width: 430px;
  }

  .page--wide .feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 72px;
    width: 100%;
  }

  .page--wide .feed .buyer {
    align-self: start;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .share-overlay {
    align-items: center;
  }

  .terms-overlay {
    align-items: center;
  }

  .photo-editor {
    align-items: center;
  }
}

@media (min-width: 1120px) {
  .page--wide .feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .page {
    padding-inline: 24px;
  }

  .embedded-checkout__header {
    align-items: stretch;
    flex-direction: column;
  }

  .embedded-checkout__header .pill {
    width: 100%;
  }

  .embedded-checkout__back {
    width: 100%;
  }

  .title {
    font-size: 30px;
  }

  .button {
    padding-inline: 24px;
  }
}

@media (max-width: 759px) {
  .subscribe-popup {
    right: 50%;
    bottom: 16px;
    width: min(320px, calc(100vw - 32px));
    transform: translateX(50%);
    animation-name: subscribePopInMobile;
  }
}
