@import url("login-reference-redesign.css?v=20261001-1");

/* Final desktop-only auth caption contrast override. */
@media (min-width: 951px) {
  #authScreen .auth-image-card img[alt="Bowling"] {
    content: url("/attached_assets/generated_images/bowling-friendly-card.png");
  }

  #authScreen .auth-image-card img[alt="Bars and Nightlife"] {
    content: url("/attached_assets/generated_images/bars-nightlife-friendly-card-v2.png");
  }

  #authScreen
    .auth-image-card:has(img[alt="Car Meets"]) {
    background-image: url("/attached_assets/generated_images/walking-your-dog-friendly-card.png") !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Car Meets"])
    > img {
    content: none !important;
    opacity: 0 !important;
  }

  #authScreen .auth-image-card img[alt="Gaming"] {
    content: none !important;
    opacity: 0 !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Gaming"]) {
    background-image: url("/attached_assets/generated_images/gaming-friendly-card.png") !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Live Music"]) {
    background-image: url("/attached_assets/generated_images/live-music-friendly-card.png") !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Hiking and Outdoors"]) {
    background-image: url("/attached_assets/generated_images/hiking-outdoors-friendly-card.png") !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Hiking and Outdoors"])
    > img {
    content: none !important;
    opacity: 0 !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Sports and Fitness"]) {
    background-image: url("/attached_assets/generated_images/sports-fitness-friendly-card.png") !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Sports and Fitness"])
    > img {
    content: none !important;
    opacity: 0 !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Live Music"])
    > img {
    content: none !important;
    opacity: 0 !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Car Meets"])
    .auth-image-label {
    font-size: 0 !important;
  }

  #authScreen
    .auth-image-card:has(img[alt="Car Meets"])
    .auth-image-label::after {
    content: "🐕 Walking Your Dog";
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  #authScreen > .auth-center > .auth-card .auth-join-line > span::after {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border-radius: 3px !important;
    padding: 1px 2px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card {
    backdrop-filter: blur(1px) saturate(1.03) !important;
    -webkit-backdrop-filter: blur(1px) saturate(1.03) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > label:not(.auth-terms-check) {
    color: #091827 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    background: rgba(255, 255, 255, 0.68) !important;
    border-radius: 3px !important;
    padding: 0 2px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > input {
    color: #091827 !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(255, 255, 255, 0.96) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > input::placeholder {
    color: #26384b !important;
    opacity: 1 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 5px !important;
    min-height: 18px !important;
    overflow: visible !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    background: rgba(7, 26, 43, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 4px !important;
    padding: 3px 6px !important;
    line-height: 1.25 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check
    > span {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-inline-legal-link {
    color: #ffe58d !important;
    -webkit-text-fill-color: #ffe58d !important;
    font-size: 9px !important;
    font-weight: 900 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge {
    color: #ffffff !important;
    background: rgba(7, 26, 43, 0.94) !important;
    border-color: rgba(255, 255, 255, 0.82) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge
    .signup-human-heading
    h2,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge
    .signup-human-heading
    p,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge
    .signup-human-eyebrow,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge
    .signup-human-hint,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge
    .signup-human-status,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge
    .signup-human-target-label {
    color: #ffffff !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    text-shadow: none !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    h2 {
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    p,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-eyebrow,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-hint,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-status {
    color: #eaf4ff !important;
    font-size: 7px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-age-notice,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-footer-links,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    background: rgba(7, 26, 43, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.68) !important;
    border-radius: 4px !important;
    padding: 3px 7px !important;
    line-height: 1.2 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-age-notice {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 950 !important;
    letter-spacing: 0.1px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-footer-links
    {
    font-size: 10px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-footer-links
    button {
    color: #ffffff !important;
    font-weight: 900 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    font-size: 8px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-age-notice,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-footer-links,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    background: rgba(7, 26, 43, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.68) !important;
    border-radius: 4px !important;
    padding: 3px 7px !important;
    line-height: 1.2 !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-age-notice {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 950 !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-footer-links {
    font-size: 10px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-footer-links
    button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    font-size: 8px !important;
  }

  #authScreen > .auth-center > .auth-card .auth-tab {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: 0.1px !important;
    text-shadow: none !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: geometricPrecision !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-tab {
    font-size: 11px !important;
  }
}

/* ACTIVITY ROOMS — DESKTOP AND MOBILE */

#activityRoomsPanel {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  color: #edf1fa;
  background: linear-gradient(160deg, #101b30, #080f1d);
  border: 1px solid #30476b;
  border-radius: 16px;
  overflow: hidden;
  gap: 14px;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

#activityRoomsPanel .activity-rooms-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#activityRoomsPanel h2 {
  margin: 0;
  font-size: 23px;
}

#activityRoomsPanel p {
  margin: 6px 0 0;
  color: #a9b7cc;
  font-size: 13px;
  line-height: 1.5;
}

#activityRoomsPanel button,
#activityRoomsSearch {
  font: inherit;
}

#activityRoomsGeneral,
#activityRoomsSearch {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 12px;
  color: #edf1fa;
  background: #10192c;
  border: 1px solid #43577a;
  border-radius: 10px;
}

#activityRoomsGeneral {
  border-color: #b563cc;
  cursor: pointer;
  text-align: left;
}

#activityRoomsSearch::placeholder {
  color: #a9b7cc;
}

#activityRoomsGrid {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #ab8bd5 #18243a;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  padding-right: 6px;
}

#activityRoomsPanel .activity-rooms-footer {
  text-align: center;
  font-size: 12px;
}

.activity-rooms-count {
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 8px;
  vertical-align: middle;
  border: 1px solid rgba(255, 79, 159, 0.45);
  border-radius: 999px;
  color: #ff79b6;
  background: rgba(255, 55, 133, 0.1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mobile-activity-rooms-trigger,
.activity-rooms-backdrop {
  display: none;
}

/* Desktop: chat and activity panel side by side. */
@media (min-width: 1051px) {
  .app #cityChatView.open:has(#activityRoomsPanel) {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
    align-items: stretch;
    gap: 18px;
  }

  .app #cityChatView>.city-chat-page {
    min-width: 0 !important;
  }

  #cityChatView>#activityRoomsPanel {
    display: grid !important;
    position: relative;
    height: 100%;
    max-height: 760px;
  }
}

/* Phone/tablet: JavaScript will open this as a room picker. */
@media (max-width: 1050px) {
  .activity-rooms-sheet-open {
    overflow: hidden;
  }

  .mobile-activity-rooms-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin: 28px 0 10px;
    padding: 8px 12px;
    color: #f7f8ff;
    text-align: left;
    border: 1px solid rgba(117, 141, 195, 0.42);
    border-radius: 14px;
    background:
      radial-gradient(circle at 100% 0, rgba(255, 50, 142, .18), transparent 42%),
      linear-gradient(115deg, rgba(20, 34, 64, .96), rgba(12, 20, 41, .96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 24px rgba(0, 0, 0, .18);
    font: inherit;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease;
  }

  .mobile-activity-rooms-trigger:active {
    transform: scale(.985);
  }

  .mobile-activity-rooms-trigger:focus-visible,
  #activityRoomsClose:focus-visible,
  #activityRoomsGeneral:focus-visible,
  .activity-room-card:focus-visible {
    outline: 2px solid #ff4f9f;
    outline-offset: 2px;
  }

  .mobile-activity-rooms-trigger-copy {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 8px;
  }

  .mobile-activity-rooms-kicker {
    display: none;
  }

  .mobile-activity-rooms-trigger strong {
    flex: 0 0 auto;
    font-size: 14px;
    letter-spacing: -.02em;
  }

  .mobile-activity-rooms-trigger small {
    overflow: hidden;
    color: #9eacc6;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-activity-rooms-trigger-arrow {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(255, 103, 172, .45);
    border-radius: 50%;
    color: #ff69aa;
    font-size: 21px;
    line-height: 1;
  }

  .activity-rooms-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(2, 5, 14, .68);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }

  .activity-rooms-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  #activityRoomsPanel {
    display: grid !important;
    position: fixed;
    inset: auto 0 var(--rmf-mobile-nav, calc(68px + env(safe-area-inset-bottom, 0px)));
    width: 100%;
    height: min(700px, calc(100dvh - var(--rmf-mobile-nav, 68px) - 18px));
    max-height: calc(100dvh - var(--rmf-mobile-nav, 68px) - 18px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.22, .8, .26, 1), opacity .2s ease, visibility 0s linear .28s;
    pointer-events: none;
  }

  #activityRoomsPanel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
    pointer-events: auto;
    position: fixed;
    inset: auto 0 var(--rmf-mobile-nav, calc(68px + env(safe-area-inset-bottom, 0px)));
    width: 100%;
    height: min(700px, calc(100dvh - var(--rmf-mobile-nav, 68px) - 18px));
    max-height: calc(100dvh - var(--rmf-mobile-nav, 68px) - 18px);
    z-index: 10000;
    padding: 0 16px calc(15px + env(safe-area-inset-bottom, 0px));
    border: 1px solid rgba(92, 117, 174, .55);
    border-radius: 22px;
    background:
      radial-gradient(circle at 95% 0, rgba(229, 35, 152, .15), transparent 35%),
      linear-gradient(160deg, #101a32, #070d1c 72%);
    box-shadow: 0 -24px 80px rgba(0, 0, 0, .72);
  }

  #activityRoomsPanel.is-open #activityRoomsClose {
    display: block !important;
    flex: 0 0 44px;
    width: 36px;
    height: 36px;
    color: #edf1fa;
    background: rgba(26, 39, 67, .9);
    border: 1px solid rgba(110, 137, 190, .65);
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
  }

  #activityRoomsPanel .activity-rooms-header {
    position: relative;
    min-height: 88px;
    align-items: center;
    padding-top: 10px;
  }

  #activityRoomsPanel .activity-rooms-header::before {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 99px;
    background: #536789;
    content: "";
    transform: translateX(-50%);
  }

  #activityRoomsPanel h2 {
    padding-top: 10px;
    font-size: 22px;
    letter-spacing: -.03em;
  }

  #activityRoomsPanel p {
    margin-top: 5px;
    font-size: 12px;
  }

  #activityRoomsGeneral {
    min-height: 50px;
    padding: 0 14px;
    border-color: rgba(255, 72, 164, .75);
    background: linear-gradient(100deg, rgba(103, 29, 119, .5), rgba(28, 31, 69, .72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    font-weight: 800;
  }

  #activityRoomsSearch {
    min-height: 46px;
    margin-top: 1px;
    padding-left: 14px;
    background: rgba(7, 14, 29, .75);
    border-color: rgba(83, 108, 158, .55);
  }

  #activityRoomsGrid {
    min-height: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll !important;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    gap: 9px;
    padding: 1px 2px calc(18px + env(safe-area-inset-bottom, 0px)) 0;
  }

  #activityRoomsGrid .activity-room-card {
    min-height: 126px;
    padding: 12px 8px;
    border-color: rgba(93, 119, 169, .6);
    border-radius: 12px;
  }

  #activityRoomsPanel .activity-rooms-footer {
    padding-top: 3px;
    color: #8d9bb7;
  }
}

#activityRoomsGrid .activity-room-card {
  min-width: 0;
  min-height: 130px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  border: 1px solid #405477;
  border-radius: 12px;
  background: linear-gradient(145deg, #20304a, #131b30);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#activityRoomsGrid .activity-room-card:hover {
  transform: translateY(-2px);
  border-color: #b563cc;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

#activityRoomsGrid .activity-room-card:active {
  transform: scale(0.97);
}

#activityRoomsGrid .activity-room-card strong {
  color: #edf1fa;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#activityRoomsGrid .activity-room-card span {
  color: #a9b7cc;
  font-size: 12px;
}

#activityRoomsGrid .activity-rooms-empty {
  grid-column: 1 / -1;
}

#activityRoomsGrid .activity-room-card[data-activity-key="basketball"] {
  background:
    linear-gradient(to bottom,
      rgba(4, 8, 18, 0.08),
      rgba(4, 8, 18, 0.85)),
    url("/activity-images/basketball.png") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="basketball"] strong {
  color: #ffffff;
  text-shadow: 0 2px 5px #000000;
}

#activityRoomsGrid .activity-room-card[data-activity-key="basketball"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="badminton"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/badminton.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="badminton"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="badminton"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="bar_drinks"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/bar-drinks.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="bar_drinks"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="bar_drinks"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="baseball_softball"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/baseball-softball.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="baseball_softball"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="baseball_softball"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="beach_pool_hangout"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/beach-pool-hangout.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="beach_pool_hangout"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="beach_pool_hangout"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="billiards"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/billiards.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="billiards"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="billiards"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="board_games"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/board-games.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="board_games"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="board_games"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="bowling"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/bowling.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="bowling"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="bowling"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="camping"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/camping.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="camping"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="camping"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="casino_hangout"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/casino-hangout.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="casino_hangout"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="casino_hangout"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="coffee"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/coffee.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="coffee"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="coffee"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="cycling"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/cycling.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="cycling"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="cycling"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dancing_clubbing"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/dancing-clubbing.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dancing_clubbing"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dancing_clubbing"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="darts"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/darts.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="darts"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="darts"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dating"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/dating.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dating"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dating"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="disc_golf"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/disc-golf.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="disc_golf"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="disc_golf"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dog_park_walk"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/dog-park-walk.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dog_park_walk"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="dog_park_walk"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="esports_lan"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/esports-lan.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="esports_lan"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="esports_lan"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="festival_fair"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/festival-fair.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="festival_fair"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="festival_fair"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="fishing"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/fishing.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="fishing"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="fishing"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="football_flag"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/flag-football.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="football_flag"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="football_flag"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="food_dining"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/food-dining-social.jpg?v=3") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="gaming"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/gaming.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="gaming"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="gaming"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="go_karts"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/go-karts.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="go_karts"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="go_karts"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="golf"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/golf.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="golf"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="golf"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="gym_workout"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/gym-workout.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="gym_workout"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="gym_workout"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="hiking"] {
  background:
    linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)),
    url("/activity-images/hiking.jpg?v=2") center / cover no-repeat;
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card[data-activity-key="hiking"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="hiking"] span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="food_dining"] strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card[data-activity-key="food_dining"] span {
  color: #dce5f3;
}

/* Activity backgrounds from Hockey through the end of the alphabetical list. */
#activityRoomsGrid .activity-room-card:is([data-activity-key="hockey"],
  [data-activity-key="social_hangout"],
  [data-activity-key="karaoke"],
  [data-activity-key="live_music"],
  [data-activity-key="movies"],
  [data-activity-key="park_hangout"],
  [data-activity-key="pickleball"],
  [data-activity-key="poker_cards"],
  [data-activity-key="rock_climbing"],
  [data-activity-key="running_jogging"],
  [data-activity-key="skateboarding"],
  [data-activity-key="skating"],
  [data-activity-key="skiing_snowboarding"],
  [data-activity-key="smoke_sesh"],
  [data-activity-key="soccer"],
  [data-activity-key="sports_watch_party"],
  [data-activity-key="swimming_aquatic"],
  [data-activity-key="table_tennis"],
  [data-activity-key="tennis"],
  [data-activity-key="theme_park"],
  [data-activity-key="trivia_night"],
  [data-activity-key="volleyball"],
  [data-activity-key="walking_trails"],
  [data-activity-key="water_sports"]) {
  min-height: 160px;
  justify-content: flex-end;
}

#activityRoomsGrid .activity-room-card:is([data-activity-key="hockey"],
  [data-activity-key="social_hangout"],
  [data-activity-key="karaoke"],
  [data-activity-key="live_music"],
  [data-activity-key="movies"],
  [data-activity-key="park_hangout"],
  [data-activity-key="pickleball"],
  [data-activity-key="poker_cards"],
  [data-activity-key="rock_climbing"],
  [data-activity-key="running_jogging"],
  [data-activity-key="skateboarding"],
  [data-activity-key="skating"],
  [data-activity-key="skiing_snowboarding"],
  [data-activity-key="smoke_sesh"],
  [data-activity-key="soccer"],
  [data-activity-key="sports_watch_party"],
  [data-activity-key="swimming_aquatic"],
  [data-activity-key="table_tennis"],
  [data-activity-key="tennis"],
  [data-activity-key="theme_park"],
  [data-activity-key="trivia_night"],
  [data-activity-key="volleyball"],
  [data-activity-key="walking_trails"],
  [data-activity-key="water_sports"]) strong {
  color: white;
  text-shadow: 0 2px 5px black;
}

#activityRoomsGrid .activity-room-card:is([data-activity-key="hockey"],
  [data-activity-key="social_hangout"],
  [data-activity-key="karaoke"],
  [data-activity-key="live_music"],
  [data-activity-key="movies"],
  [data-activity-key="park_hangout"],
  [data-activity-key="pickleball"],
  [data-activity-key="poker_cards"],
  [data-activity-key="rock_climbing"],
  [data-activity-key="running_jogging"],
  [data-activity-key="skateboarding"],
  [data-activity-key="skating"],
  [data-activity-key="skiing_snowboarding"],
  [data-activity-key="smoke_sesh"],
  [data-activity-key="soccer"],
  [data-activity-key="sports_watch_party"],
  [data-activity-key="swimming_aquatic"],
  [data-activity-key="table_tennis"],
  [data-activity-key="tennis"],
  [data-activity-key="theme_park"],
  [data-activity-key="trivia_night"],
  [data-activity-key="volleyball"],
  [data-activity-key="walking_trails"],
  [data-activity-key="water_sports"]) span {
  color: #dce5f3;
}

#activityRoomsGrid .activity-room-card[data-activity-key="hockey"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/hockey.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="social_hangout"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/social-hangout.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="karaoke"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/karaoke.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="live_music"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/live-music.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="movies"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/movies.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="park_hangout"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/park-hangout.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="pickleball"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/pickleball.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="poker_cards"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/poker-cards.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="rock_climbing"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/rock-climbing.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="running_jogging"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/running-jogging-card.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="skateboarding"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/skateboarding-card.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="skating"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/skating.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="skiing_snowboarding"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/skiing-snowboarding.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="smoke_sesh"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/smoke-sesh.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="soccer"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/soccer.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="sports_watch_party"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/sports-watch-party.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="swimming_aquatic"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/swimming-aquatic-card.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="table_tennis"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/table-tennis.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="tennis"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/tennis.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="theme_park"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/theme-park.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="trivia_night"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/trivia-night.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="volleyball"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/volleyball.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="walking_trails"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/walking-trails.jpg?v=2") center / cover no-repeat;
}

#activityRoomsGrid .activity-room-card[data-activity-key="water_sports"] {
  background: linear-gradient(to bottom, rgba(4, 8, 18, .08), rgba(4, 8, 18, .85)), url("/activity-images/water-sports.jpg?v=2") center / cover no-repeat;
}

/* ACTIVITY CHAT — FULL CHAT VIEW */

.activity-chat-page {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
  background: rgba(5, 10, 24, 0.72);
  border-radius: 16px;
  overflow: hidden;
}

.activity-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.activity-chat-header h2 {
  margin: 2px 0 4px;
  color: #ffffff;
  font-size: 24px;
}

.activity-chat-header p {
  margin: 0;
  color: #b7c2d4;
  font-size: 13px;
}

#activityChatMessages {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  border: 1px solid rgba(76, 104, 150, 0.45);
  border-radius: 14px;
  background: rgba(8, 16, 35, 0.58);
}

.activity-chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

#activityChatInput {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  max-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  color: #edf1fa;
  background: #111a2c;
  border: 1px solid #405477;
  border-radius: 12px;
  font: inherit;
}

#activityChatInput::placeholder {
  color: #8f9db2;
}

#activityChatSend {
  min-height: 48px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #8f2de2, #ff1493);
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#activityChatSend:hover {
  filter: brightness(1.08);
}

.activity-chat-return {
  position: absolute;
  right: 18px;
  bottom: 84px;
  z-index: 5;
  padding: 10px 14px;
  color: #edf1fa;
  background: rgba(17, 26, 44, 0.94);
  border: 1px solid #556d95;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.activity-chat-return:hover {
  border-color: #b563cc;
  transform: translateY(-1px);
}

/* Make room switching actually hide the inactive chat */
#cityChatView .city-chat-page[hidden],
#cityChatView .activity-chat-page[hidden] {
  display: none !important;
}

/* Reference-matched desktop Create Account card. */
@media (min-width: 951px) {
  #authScreen:has(#signupForm:not(.auth-form-hidden)) > .auth-center {
    max-width: 500px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card {
    width: min(500px, calc(100vw - 40px)) !important;
    max-width: 500px !important;
    max-height: calc(100vh - 22px) !important;
    margin: 0 auto !important;
    padding: 16px 24px 11px !important;
    overflow-y: auto !important;
    border: 1px solid rgba(255, 255, 255, 0.74) !important;
    border-radius: 18px !important;
    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.42),
        rgba(225, 241, 251, 0.22)
      ) !important;
    box-shadow:
      0 18px 44px rgba(8, 34, 43, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
    color: #0a2943 !important;
    transform: none !important;
    backdrop-filter: blur(2px) saturate(1.04) !important;
    -webkit-backdrop-filter: blur(2px) saturate(1.04) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-logo-icon {
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto 4px !important;
    border: 2px solid #9c1436 !important;
    background: rgba(255, 255, 255, 0.84) !important;
    color: #9c1436 !important;
    font-size: 23px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-logo {
    color: #ffffff !important;
    font-size: 21px !important;
    letter-spacing: 0.6px !important;
    text-shadow: 0 1px 3px rgba(7, 37, 61, 0.48) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-logo
    span {
    color: #ffe8a4 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-tagline {
    margin-top: 2px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 8px !important;
    letter-spacing: 1.2px !important;
    text-shadow: 0 1px 2px rgba(7, 37, 61, 0.38) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-join-line {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto auto auto !important;
    gap: 5px 6px !important;
    align-items: center !important;
    margin: 8px 0 10px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-join-line::before {
    grid-column: 1 / -1 !important;
    padding: 7px 12px !important;
    border: 1px solid #06b9ef !important;
    border-radius: 8px !important;
    background: #092a45 !important;
    color: #ffffff !important;
    content: "JOIN FREE" !important;
    font-size: 20px !important;
    font-style: italic !important;
    font-weight: 950 !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-join-line
    > span {
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    color: #092a45 !important;
    font-size: 0 !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    text-shadow: none !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-join-line
    > span::before {
    margin-bottom: 2px !important;
    color: #7642b8 !important;
    font-size: 20px !important;
    line-height: 1 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-join-line
    > span::after {
    color: #092a45 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-shadow: none !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-join-line::after {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    padding: 3px 15px !important;
    border-radius: 999px !important;
    background: #159ee1 !important;
    color: #ffffff !important;
    content: "NO PAYMENT REQUIRED" !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    letter-spacing: 0.7px !important;
    line-height: 1 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-tabs {
    display: none !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm {
    display: flex !important;
    gap: 3px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > label:not(.auth-terms-check) {
    margin-top: 2px !important;
    padding: 0 2px !important;
    color: #092a45 !important;
    background: rgba(255, 255, 255, 0.46) !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
    text-shadow: none !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > input {
    min-height: 34px !important;
    height: 34px !important;
    margin-bottom: 1px !important;
    padding: 7px 11px 7px 34px !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 7px !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    color: #092a45 !important;
    font-size: 11px !important;
    box-shadow: inset 0 1px 2px rgba(9, 42, 69, 0.08) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > input::placeholder {
    color: #4b6071 !important;
    opacity: 1 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupName {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b6da8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 21c.7-4 3-6 7-6s6.3 2 7 6'/%3E%3C/svg%3E") !important;
    background-position: 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupEmail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b6da8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m4 7 8 6 8-6'/%3E%3C/svg%3E") !important;
    background-position: 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupPassword,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupConfirmPassword {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230b6da8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") !important;
    background-position: 10px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-height: 38px !important;
    margin: 4px 0 3px !important;
    padding: 7px 9px !important;
    border: 1px solid rgba(255, 255, 255, 0.76) !important;
    border-radius: 7px !important;
    background: rgba(7, 31, 52, 0.93) !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.18 !important;
    text-shadow: none !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check
    input {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    margin: 0 !important;
    accent-color: #129fe5 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check
    > span {
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.18 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-inline-legal-link {
    color: #72ddff !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    text-decoration: underline !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge {
    position: relative !important;
    margin-top: 3px !important;
    padding: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    border-radius: 9px !important;
    background: rgba(6, 31, 52, 0.94) !important;
    box-shadow: 0 4px 12px rgba(5, 27, 45, 0.18) !important;
    color: #ffffff !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading {
    gap: 7px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading::after {
    position: absolute !important;
    top: 10px !important;
    right: 9px !important;
    color: #4fd4ff !important;
    content: "⟳ Try a new one" !important;
    font-size: 9px !important;
    font-weight: 800 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-badge {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    border-radius: 7px !important;
    background: #f31580 !important;
    color: #ffffff !important;
    font-size: 16px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    h2 {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    p {
    margin-top: 3px !important;
    color: #ffffff !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-status {
    min-height: 10px !important;
    margin: 5px 0 4px !important;
    color: #dff6ff !important;
    font-size: 8px !important;
    line-height: 1.1 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-board {
    grid-template-columns: minmax(105px, 0.7fr) minmax(0, 1.3fr) !important;
    gap: 5px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-drag-card,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-card {
    padding: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 6px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-eyebrow {
    color: #ffffff !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    letter-spacing: 0.4px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-item {
    min-height: 47px !important;
    margin-top: 4px !important;
    border: 1px solid rgba(255, 102, 178, 0.72) !important;
    border-radius: 6px !important;
    background: rgba(126, 22, 77, 0.34) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-icon,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-icon {
    font-size: 21px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-label,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-label {
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-targets {
    gap: 4px !important;
    margin-top: 4px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target {
    min-height: 52px !important;
    padding: 4px 2px !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 5px !important;
    background: rgba(8, 27, 47, 0.7) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #createAccountButton {
    min-height: 38px !important;
    height: 38px !important;
    margin-top: 4px !important;
    border-radius: 7px !important;
    background: #159ee1 !important;
    font-size: 14px !important;
    font-weight: 950 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-age-notice,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-footer-links,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    margin-top: 4px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    text-shadow: 0 1px 2px rgba(7, 37, 61, 0.42) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-footer-links {
    margin-top: 2px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-footer-links
    button {
    color: #72ddff !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    text-decoration: underline !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    margin-top: 2px !important;
    font-size: 8px !important;
  }
}

/* Keep the full desktop signup reference inside a 720px viewport. */
@media (min-width: 951px) {
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-join-free {
    min-height: 40px !important;
    margin-bottom: 4px !important;
    font-size: 25px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-benefits {
    gap: 6px !important;
    margin-bottom: 4px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-benefit {
    gap: 2px !important;
    font-size: 9px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-benefit-icon {
    height: 20px !important;
    font-size: 20px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-benefit-heart {
    font-size: 25px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-no-payment {
    margin-bottom: 5px !important;
    padding: 4px 14px 3px !important;
    font-size: 9px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > label:not(.auth-terms-check) {
    font-size: 10px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > input {
    min-height: 32px !important;
    height: 32px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check {
    min-height: 35px !important;
    margin: 3px 0 2px !important;
    padding: 5px 8px !important;
    font-size: 10px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check
    > span {
    font-size: 10px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-challenge {
    margin-top: 2px !important;
    padding: 6px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading {
    gap: 6px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-badge {
    width: 27px !important;
    height: 27px !important;
    flex-basis: 27px !important;
    font-size: 14px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    h2 {
    font-size: 13px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    p {
    margin-top: 2px !important;
    font-size: 8px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-status {
    min-height: 8px !important;
    margin: 3px 0 3px !important;
    font-size: 7px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-board {
    gap: 4px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-drag-card,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-card {
    padding: 4px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-item {
    min-height: 40px !important;
    margin-top: 3px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-icon,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-icon {
    font-size: 18px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-label,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-label {
    font-size: 8px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-targets {
    gap: 3px !important;
    margin-top: 3px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target {
    min-height: 44px !important;
    padding: 3px 2px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #createAccountButton {
    min-height: 36px !important;
    height: 36px !important;
    margin-top: 3px !important;
    font-size: 13px !important;
  }
}

/* Keep signup activity cards aligned beside the wider reference card. */
@media (min-width: 951px) {
  #authScreen:has(#signupForm:not(.auth-form-hidden)) {
    grid-template-columns:
      minmax(175px, 300px)
      minmax(430px, 500px)
      minmax(175px, 300px) !important;
    column-gap: clamp(12px, 1.8vw, 24px) !important;
    padding-right: clamp(12px, 2.2vw, 32px) !important;
    padding-left: clamp(12px, 2.2vw, 32px) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center {
    width: 100% !important;
    max-width: 500px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card {
    width: 100% !important;
    max-width: 500px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupHumanTitle,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    h2,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    p,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-status,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-eyebrow,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-label,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-label {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    opacity: 1 !important;
    text-shadow: none !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupHumanTitle {
    font-weight: 950 !important;
    text-transform: uppercase !important;
  }
}

/* Do not leave an empty challenge board visible when issuing a check fails. */
#authScreen .signup-human-board[hidden],
#authScreen .signup-human-retry[hidden] {
  display: none !important;
}

/* Phone login readability pass. Signup and desktop remain unchanged. */
@media (max-width: 600px) {
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card {
    width: min(320px, calc(100vw - 40px)) !important;
    max-width: 320px !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    border-color: rgba(255, 255, 255, 0.58) !important;
    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    text-shadow: none !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-logo,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-tagline,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-form
    label,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .remember-login,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-age-notice,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-footer-links,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-benefit
    > span:not(.auth-benefit-icon) {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-form
    label {
    font-size: 9px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.1px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-form
    > input {
    min-height: 34px !important;
    height: 34px !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.92) !important;
    border-radius: 7px !important;
    background: rgba(248, 252, 255, 0.9) !important;
    color: #061a30 !important;
    font-size: 10px !important;
    font-weight: 650 !important;
    text-shadow: none !important;
    box-shadow:
      inset 0 1px 2px rgba(0, 0, 0, 0.18),
      0 1px 8px rgba(0, 0, 0, 0.16) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-form
    > input::placeholder {
    color: rgba(6, 26, 48, 0.72) !important;
    -webkit-text-fill-color: rgba(6, 26, 48, 0.72) !important;
    opacity: 1 !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-options
    .remember-login,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .forgot-password {
    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .forgot-password {
    color: #9eeaff !important;
    -webkit-text-fill-color: #9eeaff !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-tab {
    min-height: 31px !important;
    height: 31px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-main-button {
    min-height: 37px !important;
    height: 37px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-age-notice,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-footer-links,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    font-size: 7px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
  }
}

/* Large-phone login sizing, including iPhone Pro Max widths. */
@media (min-width: 400px) and (max-width: 600px) {
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card {
    width: min(360px, calc(100vw - 40px)) !important;
    max-width: 360px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-form
    label {
    font-size: 10px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-form
    > input {
    font-size: 11px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-tab {
    font-size: 10px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-main-button {
    font-size: 12px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-form
    label {
    font-size: 11px !important;
    font-weight: 950 !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-form
    > input {
    font-size: 12px !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-options
    .remember-login,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .forgot-password {
    font-size: 10px !important;
    font-weight: 900 !important;
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.95),
      0 0 4px rgba(0, 0, 0, 0.7) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-age-notice {
    font-size: 9px !important;
    font-weight: 850 !important;
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.95),
      0 0 4px rgba(0, 0, 0, 0.7) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-footer-links,
  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-footer-links
    button {
    font-size: 9px !important;
    font-weight: 850 !important;
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.95),
      0 0 4px rgba(0, 0, 0, 0.7) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    font-size: 8px !important;
    font-weight: 850 !important;
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.95),
      0 0 4px rgba(0, 0, 0, 0.7) !important;
  }

  #authScreen:not(:has(#signupForm:not(.auth-form-hidden)))
    > .auth-center
    > .auth-card {
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }
}

/* The retry control is a real button, not heading decoration. */
#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-heading::after {
  display: none !important;
  content: none !important;
}

#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-challenge {
  position: relative !important;
}

#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-retry {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 4 !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 3px 0 !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #4fd4ff !important;
  -webkit-text-fill-color: #4fd4ff !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75) !important;
}

#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-retry:hover,
#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-retry:focus-visible {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: rgba(79, 212, 255, 0.16) !important;
  outline: 2px solid rgba(79, 212, 255, 0.8) !important;
  outline-offset: 2px !important;
}

#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-retry[hidden] {
  display: none !important;
  pointer-events: none !important;
}

#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-retry {
  font-size: 0 !important;
}

#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-retry::before {
  content: "⟳ Try a new one" !important;
  font-size: 9px !important;
}

/* Large-phone Create Account readability pass. */
@media (min-width: 400px) and (max-width: 600px) {
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card {
    width: min(380px, calc(100vw - 28px)) !important;
    max-width: 380px !important;
    padding: 14px 16px 12px !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-tabs {
    margin-bottom: 9px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-tab {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1px !important;
    -webkit-font-smoothing: antialiased !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm {
    gap: 3px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > label:not(.auth-terms-check) {
    margin-top: 2px !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.15px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > input {
    min-height: 38px !important;
    height: 38px !important;
    margin-bottom: 2px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.05px !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    > input::placeholder {
    font-size: 12px !important;
    font-weight: 600 !important;
    opacity: 1 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check {
    gap: 7px !important;
    margin: 5px 0 5px !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85) !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-terms-check
    input {
    width: 18px !important;
    height: 18px !important;
    flex-basis: 18px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #signupForm
    .auth-inline-legal-link {
    font-size: 10px !important;
    font-weight: 900 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading {
    gap: 7px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    h2 {
    font-size: 11px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.15px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-heading
    p {
    display: block !important;
    margin-top: 2px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-status {
    min-height: 11px !important;
    margin: 4px 0 4px !important;
    font-size: 9px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-eyebrow {
    font-size: 8px !important;
    letter-spacing: 0.5px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-label,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-label {
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-icon,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target-icon {
    font-size: 19px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-item,
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-target {
    min-height: 38px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-hint {
    display: block !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .signup-human-retry {
    margin-top: 4px !important;
    padding: 6px 8px !important;
    font-size: 9px !important;
    font-weight: 850 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    #createAccountButton {
    min-height: 42px !important;
    height: 42px !important;
    margin-top: 5px !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    letter-spacing: 0.1px !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-age-notice {
    margin-top: 5px !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-footer-links {
    margin-top: 4px !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-footer-links
    button {
    font-size: 9px !important;
    font-weight: 900 !important;
  }

  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card
    .auth-brand-footer {
    margin-top: 3px !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
  }
}

/* Keep the retry control to one clean label after all phone overrides. */
#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-retry {
  font-size: 0 !important;
  white-space: nowrap !important;
}

#authScreen:has(#signupForm:not(.auth-form-hidden))
  > .auth-center
  > .auth-card
  .signup-human-retry::before {
  content: "⟳ Try a new one" !important;
  font-size: 9px !important;
}
/* Mobile signup - remove outer glass pane only */
@media (max-width: 700px) {
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    > .auth-center
    > .auth-card {
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}
/* Mobile signup - improve human verification readability */
@media (max-width: 700px) {
  #authScreen:has(#signupForm:not(.auth-form-hidden))
    .auth-center
    .auth-card
    #signupHumanChallenge {
    background: rgba(6, 20, 34, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 12px !important;
    padding: 10px !important;
  }
}