.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 60px;
  gap: 26px;
}
.login-hero {
  text-align: center;
}
.login-hero h1 {
  margin: 8px 0 4px;
  font-family: var(--serif);
  font-size: clamp(30px, 6vw, 42px);
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--brass-hi);
  text-shadow: 0 2px 18px rgba(207, 169, 94, 0.25);
}
.login-hero p {
  margin: 0;
  letter-spacing: 0.12em;
}
.suits {
  display: inline-flex;
  gap: 14px;
  font-size: 22px;
  color: var(--text-dim);
}
.suits .r {
  color: #b9493d;
}
.login-card {
  width: min(360px, 100%);
  padding: 26px 24px 18px;
}
.btn.block {
  width: 100%;
}
.small {
  font-size: 12px;
  text-align: center;
  margin: 14px 0 0;
}

.games-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 18px 60px;
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 22px;
  margin: 0 0 18px;
  color: var(--text);
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--text);
  overflow: hidden;
  text-decoration: none !important;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.game-card.online {
  background:
    radial-gradient(420px 220px at 80% 0%, rgba(232, 199, 127, 0.16), transparent 70%),
    radial-gradient(ellipse at 30% 120%, var(--felt-hi), var(--felt) 45%, var(--felt-lo));
}
.game-card.online:hover {
  transform: translateY(-3px);
  border-color: var(--brass-lo);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.game-card.soon {
  background: linear-gradient(160deg, #1a201d, #121714);
  cursor: default;
  opacity: 0.8;
}
.game-card .icon {
  font-size: 42px;
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.game-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.12em;
}
.game-card p {
  margin: 0;
  color: rgba(236, 230, 214, 0.75);
  font-size: 14px;
  flex: 1;
}
.game-card .go {
  align-self: flex-start;
  margin-top: 6px;
}
.game-card .badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

/* 顶栏：昵称不换行，窄屏收紧间距（手机上避免昵称被挤成竖排） */
#who {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 8em;
}
.topbar .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .topbar {
    gap: 6px;
    padding: 10px 10px;
  }
  .topbar .brand {
    font-size: 16px;
    letter-spacing: 0.06em;
  }
  #who {
    max-width: 4.5em;
  }
}
