@font-face {
  font-family: "Demo Sans";
  src: url("assets/demo-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Demo Sans";
  src: url("assets/demo-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
:root { font-size: clamp(88.888889px, 27.777778vw, 133.333333px); color: #131715; background: #eaeaea; font-family: "Demo Sans", "Source Han Sans CN", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: .02rem solid #3aad11; outline-offset: .03rem; }
button:disabled { cursor: default; }
img { display: block; flex: none; }
.page { max-width: 480px; margin: auto; min-height: 100vh; padding-bottom: calc(.4rem + env(safe-area-inset-bottom)); background: #f6f5f5; }
.status-bar { height: .44rem; display: flex; align-items: center; justify-content: space-between; padding: 0 .15rem 0 .11rem; font: 400 .13rem/1 Arial, sans-serif; }
.status-bar > div { display: flex; align-items: center; gap: .1rem; }
.status-bar img:nth-child(1) { width: .16rem; height: .12rem; }
.status-bar img:nth-child(2) { width: .12rem; height: .12rem; }
.status-bar img:nth-child(3) { width: .08rem; height: .13rem; }
.chat-nav { display: flex; align-items: center; height: .48rem; padding: 0 .08rem 0 .16rem; }
.back { flex: none; width: .24rem; height: .24rem; }
.back img { width: .24rem; height: .24rem; }
.group-avatar { position: relative; flex: none; width: .32rem; height: .32rem; }
.group-avatar > img { position: absolute; inset: 0; width: .32rem; height: .32rem; border-radius: 50%; object-fit: cover; }
.group-avatar > .group-badge { width: .18rem; height: .18rem; inset: auto 0 0 auto; border-radius: 0; }
.group-name { flex: 1; min-width: 0; margin-left: .08rem; }
.group-name h1 { font-size: .13rem; line-height: .15rem; font-weight: 500; }
.group-name p { display: flex; align-items: center; gap: .02rem; margin-top: .04rem; color: #a7a8a7; font-size: .1rem; line-height: .12rem; }
.group-name p img { width: .07rem; height: .07rem; }
.game-activity { display: flex; align-items: center; justify-content: center; gap: .02rem; padding: .06rem .08rem; border: .005rem solid #cfd1d0; border-radius: .2rem; color: #3e403f; font-size: .11rem; line-height: .13rem; }
.game-activity img { width: .16rem; height: .16rem; }
.more { display: grid; place-items: center; margin-left: .12rem; width: .24rem; height: .24rem; }
.more img { width: .03rem; height: .18rem; }
.time { padding: .1rem .16rem; text-align: center; font-size: .11rem; line-height: .13rem; color: #a7a8a7; }
.message { display: flex; align-items: flex-start; gap: .1rem; padding: .1rem .58rem .1rem .16rem; }
.message.own { flex-direction: row-reverse; padding: .1rem .16rem .1rem .58rem; }
.sender { width: .32rem; height: .32rem; border-radius: 50%; object-fit: cover; }
.message-content { min-width: 0; flex: 1; }
.sender-name { height: .14rem; margin-bottom: .06rem; font-size: .1rem; line-height: .12rem; color: #a7a8a7; display: flex; align-items: center; }
.team-card { position: relative; isolation: isolate; overflow: hidden; width: 2.44rem; max-width: 100%; border-radius: .12rem; color: #fff; }
.card-backdrop { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.card-backdrop img { position: absolute; width: 118.68%; height: 127.37%; max-width: none; left: -9.34%; top: -13.69%; }
.team-info { display: flex; flex-direction: column; align-items: flex-start; gap: .06rem; padding: .12rem .12rem .16rem; background: linear-gradient(to bottom, #033c4fd9, #033c4f 99.779%); }
.badge { display: flex; align-items: center; height: .18rem; padding: .02rem .04rem; border-radius: .05rem; background: white; color: #131715; font-size: .1rem; line-height: .12rem; font-weight: 500; }
.badge.recruiting { background: #b9fb1c; }
.team-title { min-height: .36rem; font-size: .14rem; line-height: .18rem; font-weight: 400; }
.mode { display: inline; white-space: nowrap; }
.mode img { display: inline-block; width: .08rem; height: .08rem; vertical-align: top; }
.mode img:last-child { vertical-align: bottom; }
.team-people, .team-actions { background: linear-gradient(#0000004d, #0000004d), #045571; }
.team-people { padding: 0 .12rem .24rem; }
.people-row { display: flex; align-items: center; flex-wrap: wrap; gap: .04rem; }
.people-row.second { flex: 0 0 100%; padding-top: .04rem; margin-top: .02rem; }
.person { flex: 0 0 .36rem; width: .36rem; height: .365rem; position: relative; }
.person > img:first-child { width: .36rem; height: .36rem; object-fit: cover; }
.person .leader { position: absolute; width: .16rem; height: .16rem; bottom: -.0375rem; left: .1rem; border-radius: 50%; object-fit: cover; object-position: center; }
.person .plus { position: absolute; width: .12rem; height: .12rem; left: .12rem; top: .1131rem; }
.me { display: flex; align-items: center; justify-content: center; position: absolute; top: .245rem; left: .08rem; width: .22rem; height: .12rem; background: #26e089; border-radius: .15rem; font-size: .09rem; line-height: .1rem; font-weight: 500; }
.divider { width: .02rem; height: .14rem; background: #ffffff80; margin: 0 .04rem; }
.team-count { display: flex; align-items: center; gap: .03rem; margin-top: .06rem; opacity: .7; font-size: .11rem; line-height: .13rem; }
.team-count img { width: .06rem; height: .06rem; }
.team-actions { padding: .06rem .12rem .12rem; }
.buttons { display: flex; gap: .06rem; padding-bottom: .12rem; }
.buttons button { display: flex; align-items: center; justify-content: center; height: .34rem; border-radius: .12rem; font-size: .13rem; line-height: .15rem; font-weight: 500; }
.primary { flex: 1; min-width: 0; background: #fff; color: #131715; }
.secondary { flex: 0 0 .84rem; border: .005rem solid #ffffff66; }
.primary:disabled { background: #ffffff33; color: #ffffff80; }
.team-meta { display: flex; align-items: center; gap: .03rem; padding-top: .06rem; border-top: .005rem solid #ffffff1a; font-size: .11rem; line-height: .13rem; color: #ffffff80; white-space: nowrap; }
.team-meta img { width: .06rem; height: .06rem; }
dialog { width: min(86%, 340px); padding: .2rem; border: 0; border-radius: .16rem; color: #131715; font-size: .14rem; }
dialog::backdrop { background: #0006; }
dialog h2 { font-size: .16rem; margin-bottom: .12rem; }
.dialog-actions { display: flex; gap: .08rem; margin-top: .2rem; }
.dialog-actions button { flex: 1; padding: .1rem; border-radius: .1rem; background: #edf0ec; }
.dialog-actions button:last-child { background: #b9fb1c; }
#toast { position: fixed; z-index: 5; bottom: calc(.3rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; padding: .1rem .16rem; border-radius: .12rem; background: #131715e8; color: white; font-size: .13rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .buttons button { transition: background-color 160ms ease; } }
