.site-invite-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cadcff;
  border-radius: 18px;
  background: linear-gradient(145deg, #edf4ff, #f8fbff 62%, #eefbff);
  box-shadow: 0 12px 32px rgba(38, 98, 215, .1);
}
.site-invite-card.is-loading { grid-template-columns: auto 1fr; align-items: center; min-height: 72px; }
.site-invite-card.is-error { border-color: #f1c9cf; background: #fff4f5; }
.site-invite-card.is-error span { color: #9b5964; font-size: 12px; }
.site-invite-card.is-error button {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #326cff;
  font-weight: 800;
  cursor: pointer;
}
.site-invite-hero { display: flex; align-items: center; gap: 12px; }
.site-invite-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #2e70ff, #6155e8);
  box-shadow: 0 9px 24px rgba(51,97,220,.26), inset 0 1px rgba(255,255,255,.25);
}
.site-invite-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-invite-hero > div:last-child { display: grid; gap: 3px; min-width: 0; }
.site-invite-hero span { color: #657691; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.site-invite-hero strong { font-size: 17px; }
.site-invite-hero em { justify-self: start; padding: 3px 9px; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#ff9d2f,#ff6a3a); font-size: 11px; font-style: normal; font-weight: 900; }
.site-invite-card > p { margin: 0; color: #63738d; font-size: 12px; line-height: 1.65; }
.site-invite-progress-head { display: flex; align-items: center; justify-content: space-between; color: #546782; font-size: 12px; }
.site-invite-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #dbe7f9; }
.site-invite-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2f6bff,#22c0bd); box-shadow: 0 0 16px rgba(35,188,189,.38); transition: width .35s ease; }
.site-invite-status { padding: 9px 11px; border-radius: 11px; color: #285691; background: rgba(47,107,255,.08); font-size: 12px; font-weight: 850; text-align: center; }

/* Activity launcher: same blue glass language as the navigation, without the orange casino chip. */
.activity-hall-toggle {
  width: 52px;
  height: 52px;
  overflow: visible;
  border: 1px solid rgba(151,196,255,.78);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg,#245dce,#396fff 54%,#6154e8);
  box-shadow: 0 10px 28px rgba(27,76,186,.34), inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 5px rgba(61,119,255,.09);
  animation: none;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.activity-hall-toggle::before { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; pointer-events: none; }
.activity-hall-toggle,
body:not(.theme-has-service) .activity-hall-toggle { bottom: 154px; }
.activity-hall-toggle:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 34px rgba(27,76,186,.4), inset 0 1px rgba(255,255,255,.3), 0 0 0 6px rgba(61,119,255,.12); }
.activity-hall-toggle > span { display: grid; width: 28px; height: 28px; place-items: center; }
.activity-hall-toggle > span svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.activity-hall-toggle > b { z-index: 2; }
.activity-invite-card { border-color: #bcd4ff; background: linear-gradient(145deg,#eef5ff,#fff 70%,#effcff); }
.activity-invite-progress { height: 8px; overflow: hidden; margin-top: 11px; border-radius: 99px; background: #dce8f8; }
.activity-invite-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2f6bff,#22c0bd); }
.activity-invite-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; color: #5f708a; font-size: 11px; font-weight: 800; }
.activity-rules-disclosure { margin-top: 12px; border-top: 1px dashed #dbe4f1; }
.activity-rules-disclosure summary {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 32px 0 2px;
  color: #526783;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.activity-rules-disclosure summary::-webkit-details-marker { display: none; }
.activity-rules-disclosure summary::after {
  content: '';
  position: absolute;
  right: 5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.activity-rules-disclosure[open] summary::after { transform: translateY(2px) rotate(225deg); }
.activity-rules-disclosure > div {
  padding: 1px 2px 4px;
  color: #64738d;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-line;
}
.activity-rules-disclosure summary:focus-visible { outline: 3px solid rgba(47,107,255,.16); outline-offset: 2px; border-radius: 8px; }

html[data-theme="dark"] .site-invite-card { border-color: #2c4d74; background: linear-gradient(145deg,#132b4a,#102039 62%,#103143); }
html[data-theme="dark"] .site-invite-card > p,
html[data-theme="dark"] .site-invite-progress-head { color: #9fb0c9; }
html[data-theme="dark"] .site-invite-progress { background: #203d5d; }
html[data-theme="dark"] .site-invite-status { color: #bcd3ff; background: rgba(72,132,255,.14); }
html[data-theme="dark"] .activity-invite-card { border-color: #2f5580; background: linear-gradient(145deg,#143052,#11233c 70%,#103543); }
html[data-theme="dark"] .activity-invite-meta { color: #a8bbd4; }
html[data-theme="dark"] .activity-invite-progress { background: #213f60; }
html[data-theme="dark"] .activity-rules-disclosure { border-color: #29445f; }
html[data-theme="dark"] .activity-rules-disclosure summary { color: #b1c2da; }
html[data-theme="dark"] .activity-rules-disclosure > div { color: #9fb0c9; }

@media (max-width:560px) {
  .activity-hall-toggle,
  body:not(.theme-has-service) .activity-hall-toggle { bottom: calc(142px + env(safe-area-inset-bottom,0px)); width: 46px; height: 46px; border-radius: 50%; }
  .activity-hall-toggle::before { inset: 4px; border-radius: 50%; }
  .activity-hall-toggle > span svg { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-invite-progress i,
  .activity-hall-toggle { transition: none; }
  .activity-rules-disclosure summary::after { transition: none; }
}
