.store-shortcut {
  width: clamp(86px, 10vw, 124px);
}

.corner-donut {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 2;
  display: grid;
  width: clamp(64px, 13.5vmin, 112px);
  margin: 0;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: transparent;
  background-image: url("postcard-feed-button.png");
  background-image:
    url("postcard-feed-button.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter:
    drop-shadow(0 9px 14px rgba(20, 30, 34, 0.2))
    drop-shadow(0 2px 3px rgba(20, 30, 34, 0.16));
  cursor: pointer;
  opacity: 0.92;
  pointer-events: auto;
  place-items: center;
  transform: rotate(-4deg);
  transition:
    filter 160ms ease,
    opacity 160ms ease,
    transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.corner-donut::before {
  display: none;
}

.corner-donut-count {
  position: absolute;
  top: -8%;
  right: -8%;
  z-index: 1;
  display: grid;
  min-width: 46%;
  height: 46%;
  padding: 0 4px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #ffffff;
  background: #e84f4f;
  box-shadow: 0 3px 7px rgba(20, 30, 34, 0.22);
  font-size: clamp(13px, 3.2vmin, 24px);
  font-weight: 900;
  line-height: 1;
  place-items: center;
  text-align: center;
  transform: translate(16%, -16%) rotate(4deg);
}

.corner-donut.has-wide-count .corner-donut-count {
  min-width: 60%;
}

.corner-donut.is-caught-up .corner-donut-count {
  display: none;
}

.corner-donut:hover,
.corner-donut:focus-visible {
  filter:
    drop-shadow(0 12px 18px rgba(20, 30, 34, 0.26))
    drop-shadow(0 3px 5px rgba(20, 30, 34, 0.2))
    saturate(1.08);
  opacity: 1;
  transform: rotate(-2deg) scale(1.04);
}

.corner-donut:focus-visible {
  outline: 2px solid rgba(32, 48, 56, 0.72);
  outline-offset: 4px;
}

.travel-feed {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(16, 45, 53, 0.42);
  backdrop-filter: blur(9px) saturate(1.02);
  place-items: center;
}

.travel-feed[hidden] {
  display: none;
}

.feed-shell {
  position: relative;
  width: min(1120px, 100%);
  height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 48, 55, 0.42);
  border-radius: 8px;
  background-color: #fff8df;
  background-image:
    linear-gradient(rgba(255, 248, 223, 0.12), rgba(255, 248, 223, 0.26)),
    url("postcard-collage-wide-generated.webp");
  background-position: center;
  background-size: auto, cover;
  background-repeat: no-repeat;
  box-shadow:
    0 24px 54px rgba(7, 12, 18, 0.36),
    0 0 0 10px rgba(255, 248, 223, 0.38),
    0 5px 0 rgba(36, 48, 55, 0.18);
}

.feed-shell::before,
.feed-shell::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.feed-shell::before {
  top: 18px;
  left: 22px;
  width: 116px;
  height: 34px;
  border: 1px solid rgba(36, 48, 55, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0)),
    rgba(244, 213, 121, 0.74);
  box-shadow: 0 5px 0 rgba(36, 48, 55, 0.08);
  opacity: 0.88;
  transform: rotate(-8deg);
}

.feed-shell::after {
  right: 2px;
  bottom: -10px;
  width: clamp(152px, 16vw, 214px);
  aspect-ratio: 1197 / 924;
  background-image: url("feed-shell-envelope-stack-rich.webp");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  filter:
    drop-shadow(0 16px 16px rgba(20, 30, 34, 0.2))
    drop-shadow(0 3px 0 rgba(36, 48, 55, 0.1));
  opacity: 0.94;
  transform: rotate(5deg);
}

.feed-scroll {
  position: relative;
  height: 100%;
  overflow: auto;
  padding: clamp(22px, 4vw, 46px) clamp(14px, 4vw, 46px) 34px;
  scrollbar-color: #e84f4f rgba(255, 243, 190, 0.64);
}

.feed-header {
  position: relative;
  display: grid;
  min-height: clamp(192px, 24vw, 282px);
  align-content: center;
  justify-items: center;
  margin: 0 auto 18px;
  padding: 26px min(12vw, 150px) 18px;
  overflow: hidden;
  border: 1px solid rgba(36, 48, 55, 0.36);
  border-radius: 8px;
  color: #243037;
  background-color: #f5dfb1;
  background-image:
    radial-gradient(ellipse at center, rgba(255, 248, 223, 0.8) 0 34%, rgba(255, 248, 223, 0.44) 50%, rgba(255, 248, 223, 0.08) 76%),
    url("feed-header-backplate-themed.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow:
    0 10px 22px rgba(20, 30, 34, 0.12),
    inset 0 0 0 8px rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(36, 48, 55, 0.22);
  text-align: center;
}

.feed-header::before {
  position: absolute;
  inset: 12px;
  z-index: 0;
  content: "";
  border: 1px solid rgba(127, 77, 58, 0.2);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  pointer-events: none;
}

.feed-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 4px;
  color: #7f4d3a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.88);
}

.feed-header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #183743;
  font-size: clamp(37px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.94),
    0 5px 0 rgba(232, 79, 79, 0.18),
    0 12px 24px rgba(20, 30, 34, 0.12);
}

.feed-status {
  position: relative;
  z-index: 1;
  min-height: 22px;
  margin: 10px 0 0;
  color: rgba(36, 48, 55, 0.72);
  font-size: 14px;
  font-weight: 850;
}

.feed-sticker {
  position: absolute;
  z-index: 1;
  display: none;
  pointer-events: none;
}

.feed-sticker-map {
  top: 22px;
  left: 22px;
  width: 88px;
  height: 64px;
  border: 3px solid #243037;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 30%, rgba(36, 48, 55, 0.2) 31% 34%, transparent 35% 62%, rgba(36, 48, 55, 0.2) 63% 66%, transparent 67%),
    linear-gradient(135deg, rgba(47, 186, 154, 0.28), rgba(245, 184, 75, 0.3)),
    #fff8df;
  box-shadow: 0 8px 14px rgba(20, 30, 34, 0.14);
  transform: rotate(-10deg);
}

.feed-sticker-pin {
  top: 28px;
  right: 48px;
  width: 38px;
  height: 38px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: #e84f4f;
  box-shadow:
    0 0 0 3px #243037,
    0 8px 12px rgba(20, 30, 34, 0.18);
  transform: rotate(-45deg);
}

.feed-sticker-pin::after {
  position: absolute;
  inset: 10px;
  content: "";
  border-radius: 50%;
  background: #fff3be;
}

.feed-track {
  display: none;
}

.feed-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  max-width: 930px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.feed-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 30%) minmax(0, 1fr);
  gap: 18px;
  min-height: 202px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(36, 48, 55, 0.38);
  border-radius: 8px;
  color: #243037;
  background-color: var(--feed-accent, #fff8df);
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.4) 42%, rgba(255, 248, 223, 0.14)),
    url("feed-card-surface.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 10px 24px rgba(20, 30, 34, 0.14),
    inset 0 0 0 8px rgba(255, 255, 255, 0.38);
}

.feed-item::before,
.feed-item::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.feed-item::before {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(92, 49, 24, 0.08));
  mix-blend-mode: soft-light;
}

.feed-item::after {
  inset: 8px;
  z-index: 0;
  border: 1px solid rgba(112, 78, 40, 0.14);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.feed-item:nth-child(even) {
  transform: rotate(0.35deg);
}

.feed-item:nth-child(odd) {
  transform: rotate(-0.25deg);
}

.feed-item.is-unread {
  box-shadow:
    0 12px 26px rgba(20, 30, 34, 0.16),
    0 0 0 3px rgba(189, 58, 52, 0.12),
    inset 0 0 0 8px rgba(255, 255, 255, 0.38);
}

.feed-card-art {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 166px;
  overflow: hidden;
  border: 10px solid #ffffff;
  border-radius: 5px;
  background-color: #86c7cf;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 0 0 1px rgba(36, 48, 55, 0.24),
    0 12px 18px rgba(20, 30, 34, 0.16);
}

.feed-card-art::before,
.feed-card-art::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.feed-card-art::before {
  inset: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.3) 0 18%, rgba(255, 255, 255, 0) 40%),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(20, 30, 34, 0) 55%, rgba(20, 30, 34, 0.18));
  mix-blend-mode: soft-light;
}

.feed-card-art::after {
  top: -7px;
  left: 50%;
  width: min(118px, 46%);
  height: 25px;
  border: 1px solid rgba(112, 78, 40, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    rgba(244, 213, 121, 0.66);
  box-shadow: 0 4px 7px rgba(20, 30, 34, 0.1);
  transform: translateX(-50%) rotate(-3deg);
}

.feed-art-diner {
  background-image: url("feed-art-diner.webp");
}

.feed-art-prairie {
  background-image: url("feed-art-prairie.webp");
}

.feed-art-motel {
  background-image: url("feed-art-motel.webp");
}

.feed-art-stickers {
  background-image: url("feed-art-stickers.webp");
}

.feed-art-road {
  background-image: url("feed-art-road.webp");
}

.feed-token {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  background: var(--feed-token, #e84f4f);
  box-shadow:
    0 0 0 3px #243037,
    0 6px 10px rgba(20, 30, 34, 0.16);
  font-size: 15px;
  font-weight: 900;
  place-items: center;
}

.feed-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 8px 82px 4px 0;
}

.feed-copy::after {
  display: none;
}

.feed-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(36, 48, 55, 0.68);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feed-new {
  display: none;
  padding: 3px 7px;
  border: 1px solid rgba(36, 48, 55, 0.64);
  border-radius: 999px;
  color: #ffffff;
  background: #bd3a34;
  line-height: 1;
}

.feed-item.is-unread .feed-new {
  display: inline-block;
}

.feed-item h2 {
  margin: 0;
  font-size: clamp(22px, 3.1vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

.feed-item p {
  margin: 0;
  color: rgba(36, 48, 55, 0.82);
  max-width: 58ch;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 650;
  line-height: 1.42;
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feed-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(36, 48, 55, 0.18);
  border-radius: 999px;
  color: #243037;
  background: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 850;
}

.feed-close {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 9;
  display: grid;
  width: clamp(62px, 10vmin, 88px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: url("feed-close-x-button.webp") center / contain no-repeat;
  box-shadow: none;
  cursor: pointer;
  font-size: clamp(24px, 5vmin, 38px);
  font-weight: 900;
  line-height: 1;
  place-items: center;
  text-shadow: none;
  transform: rotate(5deg);
  transition:
    filter 140ms ease,
    transform 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.feed-close span {
  opacity: 0;
}

.feed-close:hover,
.feed-close:focus-visible {
  filter: drop-shadow(0 12px 16px rgba(7, 12, 18, 0.24));
  transform: rotate(1deg) scale(1.05);
}

.feed-close:focus-visible {
  outline: 2px solid #fff3be;
  outline-offset: 4px;
}


@media (max-width: 760px) {
  .travel-feed {
    padding: max(10px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  }

  .feed-shell {
    width: 100%;
    height: calc(100dvh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    background-image:
      linear-gradient(rgba(255, 248, 223, 0.1), rgba(255, 248, 223, 0.24)),
      url("postcard-collage-generated.webp");
    background-position: center top;
    background-size: auto, cover;
  }

  .feed-shell::after {
    display: none;
  }

  .feed-scroll {
    padding: 18px 10px 26px;
  }

  .feed-header {
    min-height: 176px;
    margin-bottom: 14px;
    padding: 24px 20px 16px;
  }

  .feed-header h1 {
    font-size: clamp(28px, 10.4vw, 40px);
    white-space: nowrap;
  }

  .feed-status {
    font-size: 13px;
  }

  .feed-sticker-map {
    top: 18px;
    left: 14px;
    width: 58px;
    height: 46px;
  }

  .feed-sticker-pin {
    top: 22px;
    right: 24px;
    width: 28px;
    height: 28px;
  }

  .feed-sticker-pin::after {
    inset: 7px;
  }

  .feed-track {
    top: 220px;
    bottom: 30px;
    left: 27px;
    border-left-width: 4px;
  }

  .feed-list {
    gap: 12px;
  }

  .feed-item {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 12px;
  }

  .feed-item::before {
    inset: 0;
    width: auto;
    height: auto;
  }

  .feed-item::after {
    inset: 6px;
    width: auto;
    height: auto;
    border-width: 1px;
  }

  .feed-card-art {
    min-height: 142px;
    border-width: 8px;
  }

  .feed-token {
    width: 30px;
    height: 30px;
    font-size: 13px;
    right: 8px;
    bottom: 8px;
  }

  .feed-copy {
    gap: 8px;
    padding: 2px 60px 0 0;
  }

  .feed-copy::after {
    display: none;
  }

  .feed-meta {
    gap: 6px;
    font-size: 11px;
  }

  .feed-tags span {
    font-size: 11px;
  }

  .feed-close {
    top: max(6px, env(safe-area-inset-top));
    right: max(6px, env(safe-area-inset-right));
  }

}
