:root {
  --ink: #14383d;
  --muted: #6f7c78;
  --paper: #fff8ea;
  --paper-strong: #fff3d8;
  --sea: #0f6d73;
  --sea-dark: #073f47;
  --coral: #df664e;
  --gold: #b88a41;
  --line: rgba(20, 56, 61, 0.16);
  --shadow: 0 22px 60px rgba(7, 63, 71, 0.22);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(15, 109, 115, 0.18), rgba(223, 102, 78, 0.12)),
    #e6f0ec;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: min(100vw, 420px);
  height: min(100vh, 900px);
  min-height: 760px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.share-boot .phone-shell {
  visibility: hidden;
}

.screen {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 18px;
}

.screen.active {
  display: block;
}

.hero {
  position: relative;
  min-height: 390px;
  margin: -18px -18px 0;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 224, 162, 0.7), transparent 28%),
    radial-gradient(circle at 74% 42%, rgba(255, 255, 255, 0.26), transparent 30%),
    linear-gradient(180deg, rgba(5, 42, 47, 0.04), rgba(5, 42, 47, 0.18) 43%, rgba(5, 42, 47, 0.76)),
    linear-gradient(145deg, #83bfcd 0%, #f2c489 48%, #0f6d73 100%);
}

.hero::after {
  content: "";
  display: block;
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 92px;
  height: 92px;
  background:
    linear-gradient(135deg, transparent 0 30%, rgba(255, 255, 255, 0.26) 30% 32%, transparent 32%),
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.18) 8% 9%, transparent 9% 14%, rgba(255, 255, 255, 0.22) 14% 15%, transparent 15% 100%),
    linear-gradient(180deg, transparent 0 28%, rgba(7, 63, 71, 0.42) 28% 100%);
  clip-path: polygon(0 62%, 10% 50%, 20% 58%, 32% 34%, 48% 48%, 58% 22%, 70% 42%, 84% 30%, 100% 55%, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.topbar,
.map-header,
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

.ghost {
  backdrop-filter: blur(10px);
}

.hero-copy {
  margin-top: 72px;
  max-width: 330px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #ffe1a1;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 0.9;
  letter-spacing: 0;
}

h1 span,
.postcard-hero h2 {
  display: block;
  color: #f36f56;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-weight: 500;
}

.hero-copy p:last-child {
  max-width: 280px;
  font-size: 16px;
  line-height: 1.48;
}

.welcome-card {
  position: relative;
  margin-top: -72px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.92);
  box-shadow: 0 16px 44px rgba(7, 63, 71, 0.16);
  backdrop-filter: blur(16px);
}

.delegate {
  margin-bottom: 4px;
  color: var(--coral);
  font-weight: 800;
}

.welcome-card h2,
.screen-header h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.05;
}

.primary-action,
.secondary-action {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  text-align: left;
}

.primary-action {
  margin-top: 12px;
  color: #fff;
  background: linear-gradient(135deg, #e5634d, #0f6d73);
  box-shadow: 0 12px 26px rgba(223, 102, 78, 0.28);
  font-weight: 850;
}

.primary-action span,
.secondary-action span {
  display: block;
  font-size: 18px;
}

.primary-action small,
.secondary-action small {
  display: block;
  margin-top: 3px;
  opacity: 0.78;
  font-size: 12px;
  font-weight: 600;
}

.secondary-action {
  margin-top: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  font-weight: 800;
}

.secondary-action.subtle {
  background: transparent;
}

.postcard-teaser {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-top: 22px;
  padding: 0 6px;
}

.postcard-teaser p {
  margin-bottom: 2px;
  color: var(--muted);
}

.postcard-teaser strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.mini-postcards {
  display: flex;
  align-items: end;
  min-width: 128px;
}

.mini-postcards span {
  width: 54px;
  height: 78px;
  margin-left: -18px;
  border: 3px solid #fff;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(7, 63, 71, 0.45)),
    url("./assets/visual-poster-reference.png") center / cover;
  transform: rotate(-7deg);
  box-shadow: 0 12px 18px rgba(7, 63, 71, 0.15);
}

.mini-postcards span:nth-child(2) {
  height: 88px;
  transform: rotate(2deg);
}

.mini-postcards span:nth-child(3) {
  transform: rotate(9deg);
}

.screen-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.screen-header > div {
  min-width: 0;
}

.screen-header h2 {
  overflow-wrap: anywhere;
}

.screen-header.compact {
  align-items: center;
}

.back-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.control-group,
.chat-panel,
.map-card,
.revision-panel {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.control-group > p,
.revision-panel > p {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.chip-row,
.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.suggestion-row button {
  border: 1px solid rgba(15, 109, 115, 0.24);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--sea-dark);
  background: rgba(15, 109, 115, 0.08);
  font-size: 13px;
  font-weight: 750;
}

.chip.active {
  color: #fff;
  background: var(--sea);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42), 0 8px 18px rgba(15, 109, 115, 0.18);
}

.chip.active::before,
.preference.active::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: currentColor;
  font-size: 12px;
  font-weight: 900;
}

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

.preference {
  position: relative;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
  font-weight: 850;
}

.preference span {
  display: block;
  margin-top: 9px;
}

.preference.active {
  border-color: rgba(15, 109, 115, 0.62);
  background: linear-gradient(135deg, #0f6d73, #df664e);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 109, 115, 0.2);
}

.preference.active::before {
  position: absolute;
  top: 10px;
  right: 10px;
  margin-right: 0;
}

.sticky-action {
  position: sticky;
  bottom: 8px;
}

.assistant-bubble,
.user-bubble {
  margin-bottom: 12px;
  padding: 13px;
  border-radius: 18px;
  line-height: 1.45;
}

.assistant-bubble {
  background: #eef5ed;
}

.user-bubble {
  margin-left: 34px;
  color: #fff;
  background: var(--sea);
}

.chat-input {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(255, 248, 234, 0), var(--paper) 26%);
}

.chat-input input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
}

.text-field {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
}

.voice-button,
.send-button {
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  color: #fff;
  background: var(--sea);
  font-weight: 850;
}

.send-button {
  background: var(--coral);
}

.voice-button.recording {
  background: var(--coral);
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.map-card {
  padding: 13px;
  overflow: hidden;
}

.map-header {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.map-header strong {
  color: var(--sea-dark);
}

#route-map {
  display: block;
  width: 100%;
  height: 230px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15, 109, 115, 0.12), rgba(223, 102, 78, 0.1)),
    #f7efe1;
  overflow: hidden;
}

.route-map-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.amap-logo,
.amap-copyright {
  opacity: 0.55;
}

.amap-stop {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #df664e;
  box-shadow: 0 8px 18px rgba(7, 63, 71, 0.24);
  font-size: 12px;
  font-weight: 900;
}

.route-list {
  display: grid;
  gap: 10px;
}

.venue-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.venue-card.pending-reject {
  opacity: 0.72;
}

.venue-card.pending-reject h3,
.venue-card.rejected h3 {
  text-decoration: line-through;
}

.venue-card.rejected {
  background: rgba(255, 244, 237, 0.72);
  border-color: rgba(223, 102, 78, 0.28);
}

.venue-card.rejected .venue-thumb {
  filter: grayscale(0.75);
  opacity: 0.55;
}

.venue-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.reject-button {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(223, 102, 78, 0.34);
  border-radius: 50%;
  background: #fff4ed;
  color: var(--coral);
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.reject-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.reject-reasons {
  display: none;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.reject-reasons.visible {
  display: flex;
}

.reject-reasons button {
  border: 1px solid rgba(15, 109, 115, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--sea-dark);
  background: rgba(255, 248, 234, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.rejection-note {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #9a4b38;
  background: rgba(223, 102, 78, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.venue-thumb {
  display: grid;
  place-items: center;
  border-radius: 14px;
  min-height: 72px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(145deg, var(--sea), var(--coral));
}

.venue-card h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.venue-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.leg {
  margin: -3px 0 0 94px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.poster-card {
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 0;
  color: #fff8ea;
  background: #082f35;
  box-shadow: 0 18px 42px rgba(7, 63, 71, 0.2);
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 234, 0.3) 0%, rgba(255, 248, 234, 0.08) 18%, rgba(4, 35, 40, 0.02) 40%, rgba(3, 38, 43, 0.36) 62%, rgba(4, 51, 57, 0.9) 100%),
    radial-gradient(circle at 28% 18%, rgba(255, 248, 234, 0.24), transparent 34%),
    radial-gradient(circle at 78% 55%, rgba(223, 102, 78, 0.18), transparent 36%);
  pointer-events: none;
  z-index: 1;
}

.poster-card::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -3%;
  height: 28%;
  z-index: 1;
  background:
    linear-gradient(174deg, transparent 0 22%, rgba(255, 248, 234, 0.96) 23% 100%),
    repeating-linear-gradient(170deg, rgba(177, 132, 66, 0.22) 0 2px, transparent 2px 16px);
  transform: rotate(-1.5deg);
}

.poster-bg {
  position: absolute;
  inset: 0;
  background: var(--poster-bg) center / cover no-repeat;
  transform: scale(1.015);
}

.postcard-hero {
  position: relative;
  z-index: 2;
  min-height: 39%;
  padding: 76px 46px 14px;
  color: #08333a;
  text-align: center;
  text-shadow: 0 2px 22px rgba(255, 248, 234, 0.76);
}

.postcard-hero p {
  margin: 0;
  color: #08333a;
  font-size: clamp(56px, 13.8vw, 150px);
  line-height: 0.92;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.postcard-hero h2 {
  margin: -4px 0 14px;
  color: #c94d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 12vw, 130px);
  font-style: italic;
  line-height: 0.92;
}

.postcard-hero span {
  display: inline-block;
  max-width: 90%;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(8, 51, 58, 0.16);
  background: rgba(255, 248, 234, 0.58);
  color: #08333a;
  font-size: clamp(12px, 2.55vw, 28px);
  font-weight: 850;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
}

.poster-card[data-lang="zh"] .postcard-hero p,
.poster-card[data-lang="zh"] .postcard-hero h2 {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-style: normal;
  font-weight: 950;
}

.poster-card[data-lang="zh"] .postcard-hero p {
  font-size: clamp(48px, 11vw, 118px);
}

.poster-card[data-lang="zh"] .postcard-hero h2 {
  margin-top: 10px;
  font-size: clamp(48px, 11vw, 118px);
}

.postcard-route {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 36px;
}

.poster-card .stamp {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 5px solid #fff8ea;
  border-radius: 0;
  background: #fff8ea;
  color: #08333a;
  filter: drop-shadow(0 12px 18px rgba(4, 35, 40, 0.28));
}

.poster-card .stamp-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.42;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 91, 99, 0.88), rgba(223, 102, 78, 0.46)),
    var(--poster-bg) center / cover no-repeat;
}

.poster-card .stamp-bangchui .stamp-image,
.poster-card .stamp-jinshitan .stamp-image {
  background:
    linear-gradient(135deg, rgba(8, 91, 99, 0.78), rgba(255, 210, 138, 0.22)),
    url("./assets/poster-bg-coast-lighthouse.png") center / cover no-repeat;
}

.poster-card .stamp-donggang .stamp-image,
.poster-card .stamp-dayaowan .stamp-image {
  background:
    linear-gradient(135deg, rgba(7, 63, 71, 0.72), rgba(223, 102, 78, 0.28)),
    url("./assets/poster-bg-donggang-harbor.png") center / cover no-repeat;
}

.poster-card .stamp-russian .stamp-image,
.poster-card .stamp-museum .stamp-image {
  background:
    linear-gradient(135deg, rgba(7, 63, 71, 0.62), rgba(255, 248, 234, 0.22)),
    url("./assets/poster-bg-historic-street.png") center / cover no-repeat;
}

.poster-card .stamp-xinghai .stamp-image {
  background:
    linear-gradient(135deg, rgba(8, 91, 99, 0.72), rgba(255, 210, 138, 0.24)),
    url("./assets/poster-bg-coastal-road.png") center / cover no-repeat;
}

.poster-card .stamp-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 248, 234, 0.86);
  color: #08333a;
  font-size: 22px;
  box-shadow: 0 10px 24px rgba(4, 35, 40, 0.24);
}

.poster-card .stamp-copy {
  padding: 10px 11px 12px;
}

.poster-card .stamp strong {
  display: block;
  font-family: inherit;
  font-size: clamp(12px, 2.6vw, 25px);
  line-height: 1.15;
}

.poster-card .stamp small {
  display: block;
  margin-top: 4px;
  max-height: 2.6em;
  overflow: hidden;
  color: rgba(8, 51, 58, 0.72);
  font-size: clamp(10px, 2vw, 19px);
  font-weight: 750;
  line-height: 1.25;
}

.stamp-number,
.map-pin {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  font-weight: 900;
}

.stamp-number {
  position: absolute;
  top: 8px;
  left: 8px;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 3px solid #fff8ea;
  font-size: 15px;
  background: #c94d39;
  color: #fff;
  box-shadow: 0 6px 18px rgba(4, 35, 40, 0.24);
}

.postcard-footer {
  position: absolute;
  left: 44px;
  right: 44px;
  bottom: 56px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0;
  background: transparent;
  color: #08333a;
}

@media (min-width: 700px) {
  .postcard-hero {
    min-height: 41%;
    padding-top: 118px;
  }

  .postcard-route {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 318px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0;
  }

  .poster-card .stamp {
    border-width: 7px;
  }

  .poster-card .stamp-copy {
    min-height: 86px;
    padding: 13px 14px 15px;
  }

  .stamp-number {
    top: 10px;
    left: 10px;
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .poster-card .stamp-icon {
    width: 50px;
    height: 50px;
    font-size: 27px;
  }
}

.postcard-footer strong {
  color: #c94d39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 6.4vw, 64px);
  font-style: italic;
  line-height: 0.95;
}

.postcard-footer p {
  margin: 8px 0 0;
  color: rgba(8, 51, 58, 0.68);
  font-size: clamp(11px, 2.3vw, 22px);
  font-weight: 850;
}

.poster-card[data-lang="zh"] .postcard-footer strong {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: clamp(24px, 5.6vw, 56px);
  font-style: normal;
  font-weight: 950;
  line-height: 1.12;
}

.qr {
  display: grid;
  place-items: center;
  width: clamp(78px, 20vw, 190px);
  height: clamp(78px, 20vw, 190px);
  flex: 0 0 auto;
  border: 8px solid #fff8ea;
  background:
    repeating-linear-gradient(90deg, #111 0 6px, #fff 6px 12px),
    repeating-linear-gradient(0deg, #111 0 6px, #fff 6px 12px);
  color: transparent;
  box-shadow: 0 14px 30px rgba(4, 35, 40, 0.18);
}

.qr canvas, .qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

#share-map {
  margin: 0 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eaf6f1;
}
#share-map svg {
  width: 100%;
  height: auto;
  display: block;
}

#share-route-list {
  gap: 8px;
  margin-bottom: 14px;
}

#share-route-list .stamp {
  max-width: none;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  text-shadow: none;
}

#share-route-list .stamp small {
  color: var(--muted);
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.share-actions button {
  margin-top: 0;
  text-align: center;
}

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

.certificate-option {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.certificate-option.active {
  color: #fff;
  background: linear-gradient(135deg, var(--sea), var(--coral));
}

.certificate-option span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
}

.upload-button {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  border: 1px dashed rgba(15, 109, 115, 0.36);
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(15, 109, 115, 0.07);
  color: var(--sea-dark);
  font-weight: 850;
}

.upload-button input {
  display: none;
}

.certificate-card {
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 210, 138, 0.6), transparent 30%),
    linear-gradient(160deg, #fff8ea 0%, #eaf6f1 52%, #0f6d73 100%);
  box-shadow: 0 20px 48px rgba(7, 63, 71, 0.2);
}

.certificate-photo {
  display: grid;
  place-items: center;
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(7, 63, 71, 0.02), rgba(7, 63, 71, 0.38)),
    linear-gradient(135deg, #0f6d73, #df664e);
  color: #fff;
  background-size: cover;
  background-position: center;
}

.certificate-photo span {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  min-height: 92px;
  border: 2px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  padding: 18px;
  background: rgba(7, 63, 71, 0.26);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.certificate-copy {
  padding: 18px;
}

.certificate-copy h2 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
}

.certificate-name {
  margin-bottom: 4px;
  color: var(--coral);
  font-size: 24px;
  font-weight: 900;
}

.certificate-date {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 750;
}

.certificate-route {
  display: grid;
  gap: 7px;
}

.certificate-route div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.certificate-route span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
}

.action-row {
  margin-top: 14px;
}

.action-row > * {
  flex: 1;
}

@media (max-width: 430px) {
  body {
    display: block;
    background: var(--paper);
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    box-shadow: none;
  }
}

#screen-postcard {
  position: relative;
  overflow: hidden;
  padding: 0;
}

#screen-postcard .screen-header {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 5;
  color: #fff;
}

#screen-postcard .screen-header h2,
#screen-postcard .screen-header .eyebrow {
  display: none;
}

#screen-postcard .back-button {
  color: #fff;
  background: rgba(7, 63, 71, 0.44);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
}

#poster-map {
  position: relative;
  z-index: 2;
  display: block;
  width: calc(100% - 56px);
  height: auto;
  margin: -76px 28px 14px;
  border-radius: 24px;
  filter: drop-shadow(0 14px 24px rgba(4, 35, 40, 0.26));
}

#screen-postcard .action-row {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 6;
  margin: 0;
}

#screen-postcard .action-row button {
  text-align: center;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(7, 63, 71, 0.22);
}
