#screen-home {
  gap: 10px;
  padding: 16px 25px calc(14px + var(--safe));
}
.invite-save-panel[hidden],
.invite-picture[hidden] {
  display: none !important;
}
.invite-save-panel p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: bold;
}
.invite-save-panel small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: #60764f;
}
.invite-save-panel {
  padding: 12px 0;
  color: #405f38;
}
.invite-save-panel > img,
.invite-preview {
  -webkit-touch-callout: default;
  user-select: auto;
  -webkit-user-select: auto;
  touch-action: auto;
  pointer-events: auto;
}
.invite-save-panel > img {
  display: block;
  width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 12px;
}
.invite-save-panel > .btn {
  display: block;
  width: 100%;
  margin: 10px 0;
  text-align: center;
  min-height: 44px;
}
#screen-home .home-logo {
  width: min(68vw, 250px);
}
#screen-home .campaign-hero {
  height: clamp(165px, calc(var(--legacy-vh,1vh) * 29), 250px);
  height: clamp(165px, 29dvh, 250px);
  width: min(100%, 320px);
}
.home-menu {
  display: grid;
  gap: 9px;
  width: min(100%, 380px);
  margin: 4px auto 0;
}
.home-menu-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 60px;
  text-align: left;
  padding: 8px 16px;
  border: 1px solid #91ac72;
  border-radius: 18px;
  background: #fffdeeea;
  color: #41683c;
  box-shadow: 0 3px #9ab77b;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
.home-menu-button > [data-home-icon] {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
}
.home-menu-button .home-nav-icon {
  width: 100%;
  height: 100%;
}
.home-menu-button > span {
  flex: 1;
}
.home-menu-button b {
  display: block;
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 1px;
}
.home-menu-button small {
  display: block;
  font-size: 10px;
  line-height: 16px;
  color: #6b8358;
}
.home-menu-button > i {
  font-size: 24px;
  font-style: normal;
  color: #789264;
}
.home-menu-button.is-primary {
  background: linear-gradient(#84c55d, #4ba54b);
  border-color: #3b8240;
  color: white;
  box-shadow: 0 3px #377e3d;
}
.home-menu-button.is-primary small,
.home-menu-button.is-primary > i {
  color: #edf9df;
}
.city-choice.is-locked {
  background: #e6eed6;
  color: #879a71;
  box-shadow: 0 2px #b3c69b;
  cursor: default;
}
.city-choice.is-locked img {
  opacity: .45;
  filter: grayscale(.75);
}
.city-choice.is-locked .city-state {
  color: #6e825c;
}
.city-choice.is-locked small {
  color: #7a8b65;
}
.home-menu-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px #8aa96c;
}
.home-menu-button:disabled {
  opacity: .55;
  cursor: default;
}
.home-menu-button:focus-visible,
.city-choice:focus-visible,
.hub-back:focus-visible {
  outline: 3px solid #f4cc4d;
  outline-offset: 3px;
}
#screen-home .campaign-motto {
  font-size: 11px;
  margin-top: 5px;
}
.home-menu-note {
  min-height: 15px;
  margin: 0;
  text-align: center;
  color: #6e825d;
  font-size: 10px;
}
#screen-hub {
  padding: 0;
  background: linear-gradient(#d7efbf, #c8e8a5);
  overflow: hidden;
  flex-direction: column;
}
.hub-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px;
  border-bottom: 1px solid #9fbd8144;
  background: #e2f1ccf5;
  z-index: 3;
}
.hub-header h1 {
  font-size: 20px;
  line-height: 28px;
  margin: 0;
  color: #365b35;
  letter-spacing: 1px;
}
.hub-back {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #9fb983;
  border-radius: 13px;
  background: #fffde9;
  color: #547647;
  cursor: pointer;
  flex-shrink: 0;
}
.hub-back svg {
  width: 23px;
  height: 23px;
}
.hub-body {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 15px 16px calc(25px + var(--safe));
  overscroll-behavior: contain;
}
.hub-intro {
  margin: 0 0 16px;
  color: #58744a;
  font-size: 12px;
  line-height: 1.7;
}
.hub-loading {
  margin: 35px 0;
  text-align: center;
  font-size: 13px;
  color: #648052;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.city-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 190px;
  padding: 12px 8px 13px;
  border: 1px solid #9db87d;
  border-radius: 20px;
  background: #ffffe9;
  color: #3a6537;
  box-shadow: 0 3px #9fb67d;
  font-family: inherit;
  cursor: pointer;
}
.city-choice img {
  display: block;
  width: 100%;
  height: 105px;
  object-fit: contain;
  margin-bottom: 6px;
}
.city-choice b {
  font-size: 19px;
  line-height: 27px;
  letter-spacing: 2px;
}
.city-state {
  font-size: 11px;
  line-height: 19px;
}
.city-choice small {
  font-size: 10px;
  line-height: 17px;
  color: #8a945f;
}
.city-choice.is-coming {
  background: #deebc9;
  border-style: dashed;
  color: #8ca175;
  box-shadow: 0 2px #b3c69b;
  cursor: default;
}
.future-city {
  height: 111px;
  display: grid;
  place-items: center;
}
.future-city svg {
  width: 44px;
  height: 44px;
  opacity: .45;
}
.city-choice.is-coming .city-state,
.city-choice.is-coming small {
  color: #8a9d76;
}
.hub-copy-link {
  display: block;
  margin: 20px auto 0;
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #5d7a4c;
  text-decoration: underline;
  font: 12px/1.5 system-ui;
  cursor: pointer;
}
.hub-stat-link {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 20px auto 0;
  min-height: 46px;
  padding: 12px 20px;
  border: 2px solid #fff;
  border-radius: 14px;
  background: linear-gradient(#64c973, #368e42);
  box-shadow: 0 4px 0 #286c32;
  color: #fff;
  font: 850 15px/1.5 system-ui;
  text-decoration: none;
  cursor: pointer;
}
.hub-stat-link:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #286c32;
}
.hub-stat-link span {
  font-size: 17px;
  margin-left: 5px;
}
.ency-nav {
  position: sticky;
  top: -15px;
  z-index: 2;
  display: flex;
  gap: 8px;
  background: #d5edb9ed;
  padding: 10px 0 12px;
  margin-bottom: 9px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ency-nav button {
  flex: 1;
  min-height: 40px;
  border: 1px solid #9bb67b;
  border-radius: 12px;
  background: #ffffe9;
  color: #557747;
  font: 13px system-ui;
  cursor: pointer;
}
.ency-city {
  scroll-margin-top: 58px;
}
.ency-city h2 {
  font-size: 18px;
  color: #416c3b;
  letter-spacing: 2px;
  margin: 19px 0 11px;
}
.ency-city h2 small {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
  color: #7f9565;
}
.ency-list {
  display: grid;
  gap: 11px;
}
.ency-card {
  display: grid;
  grid-template-columns: 69px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid #abc38d;
  border-radius: 17px;
  padding: 13px 12px;
  background: #fffef0;
}
.ency-card > img {
  width: 69px;
  height: 75px;
  object-fit: contain;
  background: #f1f4df;
  border-radius: 12px;
}
.ency-card h3 {
  font-size: 15px;
  line-height: 22px;
  letter-spacing: .5px;
  color: #3b713d;
  margin: 0 0 6px;
}
.ency-event {
  margin: 0;
  color: #4e5e45;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.ency-quote {
  margin: 9px 0 0;
  border-top: 1px solid #dce6c5;
  padding-top: 7px;
  color: #879266;
  font-size: 11px;
  line-height: 1.7;
}
.ency-quote > span {
  display: block;
  font-size: 9px;
  color: #a2aa85;
  letter-spacing: 1px;
  margin-bottom: 3px;
}
.invite-picture {
  width: min(100%, 340px);
  min-height: 260px;
  margin: 0 auto 16px;
}
.invite-preview {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #a5bd88;
  border-radius: 17px;
  box-shadow: 0 4px 0 #9fb77d;
}
.invite-preparing {
  display: grid;
  place-items: center;
  min-height: 350px;
  background: #e5f0d3;
  border: 1px dashed #a1b889;
  border-radius: 18px;
  color: #768e61;
  font-size: 13px;
  text-align: center;
}
.invite-actions {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
}
.invite-actions .btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  min-height: 46px;
  padding: 10px;
  border-radius: 15px;
}
.invite-actions a.btn {
  color: #4f713d;
}
.invite-link-label {
  display: block;
  font-size: 11px;
  color: #71885c;
}
.invite-link-label input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  font: 11px/1.5 system-ui;
  padding: 9px;
  color: #66804e;
  background: #f7fbe9;
  border: 1px solid #abc28b;
  border-radius: 10px;
}
.hub-copy-link {
  margin-top: 7px;
}
.invite-status {
  font-size: 11px;
  line-height: 1.7;
  color: #71835c;
  min-height: 36px;
}
.hub-body [hidden] {
  display: none !important;
}
.chapter-app-share-links {
  display: flex;
  gap: 10px;
}
.chapter-app-share-links a {
  display: block;
  flex: 1;
  padding: 11px 8px;
  border: 1px solid #a6bd8b;
  border-radius: 12px;
  background: #eef5db;
  color: #5e7e4a;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
}
@media (max-height: 740px) {
  #screen-home {
    gap: 7px;
    padding-top: 12px;
  }
  #screen-home .home-logo {
    width: min(62vw, 220px);
  }
  #screen-home .campaign-hero {
    height: clamp(140px, calc(var(--legacy-vh,1vh) * 24), 190px);
    height: clamp(140px, 24dvh, 190px);
  }
  .home-menu {
    gap: 8px;
    margin-top: 0;
  }
  .home-menu-button {
    min-height: 55px;
    padding: 6px 14px;
    border-radius: 16px;
  }
  .home-menu-button b {
    font-size: 16px;
  }
  .home-menu-button small {
    font-size: 9px;
  }
  .home-menu-button > .home-nav-icon {
    width: 27px;
    height: 27px;
  }
  #screen-home .campaign-motto {
    margin-top: 2px;
    font-size: 10px;
  }
}
@media (max-width: 350px) {
  .hub-body {
    padding-inline: 12px;
  }
  .city-grid {
    gap: 10px;
  }
  .city-choice {
    min-height: 174px;
  }
  .city-choice img {
    height: 90px;
  }
  .future-city {
    height: 96px;
  }
  .ency-card {
    grid-template-columns: 55px minmax(0, 1fr);
    padding: 11px 10px;
    gap: 10px;
  }
  .ency-card > img {
    width: 55px;
    height: 62px;
  }
  .ency-event {
    font-size: 11px;
  }
  .home-menu-button {
    gap: 10px;
  }
}
