:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #252528;
  background: #f5f5f6;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #a32335; outline-offset: 4px; }

.join-page {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 48px 16px max(28px, env(safe-area-inset-bottom));
}

.group-card, .price-card {
  background: #fff;
  border: 1px solid #e9e9ec;
  border-radius: 24px;
}

.group-card { padding: 32px; box-shadow: 0 5px 25px #24242c04; }
.page-heading { text-align: center; }
.eyebrow { color: #96969e; font-size: 11px; letter-spacing: .18em; }
h1 { font-size: 28px; line-height: 1.35; font-weight: 650; letter-spacing: -.03em; margin: 12px 0 8px; overflow-wrap: anywhere; }
.subtitle { margin: 0; font-size: 14px; line-height: 1.7; color: #72727a; }
.received { display: inline-flex; gap: 6px; align-items: center; margin: 18px 0 28px; padding: 6px 11px; border-radius: 6px; background: #f3f6f4; color: #49634f; font-size: 12px; }

.group-number-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 16px; background: #f7f7f8; border-radius: 12px; }
.group-number-details { min-width: 0; }
.label { display: block; color: #75757e; font-size: 12px; margin-bottom: 5px; }
#group-number { display: block; font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: .015em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.copy-button { display: inline-flex; gap: 5px; align-items: center; justify-content: center; flex-shrink: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #dfdfe4; border-radius: 8px; color: #4d4d55; background: #fff; cursor: pointer; font-size: 12px; }
.copy-button svg { width: 15px; height: 15px; }
.copy-button:disabled { cursor: default; color: #85858c; }
.copy-status { min-height: 18px; margin: 6px 0 8px; text-align: center; color: #49634f; font-size: 12px; line-height: 1.5; }

.qr-section { margin: 0; text-align: center; }
.qr-image-frame { width: min(100%, 300px); margin: 0 auto; }
#group-qr { display: block; width: 100%; height: auto; border-radius: 10px; }
.qr-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 1; margin: 0; border: 1px dashed #dcdce1; border-radius: 12px; color: #85858c; background: #fafafa; font-size: 14px; }
figcaption { margin: 16px 0 22px; color: #76767e; font-size: 12px; line-height: 1.65; }

.join-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 10px; background: #aa293e; color: #fff; font-size: 15px; font-weight: 550; text-decoration: none; cursor: pointer; }
.join-button:hover { background: #962236; }
.join-button:disabled { background: #eeeef0; color: #8a8a92; cursor: default; }
.invite-hint, .noscript-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: #8a8a92; text-align: center; }

.price-card { margin-top: 16px; padding: 25px 28px; border-radius: 18px; }
h2 { font-size: 16px; line-height: 1.5; font-weight: 600; margin: 0 0 14px; }
h2 span { color: #aa293e; }
.price-card p { margin: 0 0 12px; color: #6b6b73; font-size: 13px; line-height: 1.85; }
.price-card p:last-child { margin-bottom: 0; }
footer { margin-top: 22px; padding: 0 8px; text-align: center; }
footer p { margin: 5px 0; font-size: 11px; line-height: 1.8; color: #92929a; }

@media (max-width: 480px) {
  .join-page { padding-top: max(20px, env(safe-area-inset-top)); padding-left: 14px; padding-right: 14px; }
  .group-card { padding: 28px 22px; border-radius: 20px; }
  h1 { font-size: 26px; }
  .price-card { padding: 23px 24px; }
}

@media (max-width: 360px) {
  .group-card { padding: 24px 16px; }
  .group-number-row { padding: 14px 12px; gap: 8px; }
  #group-number { font-size: 18px; }
  .copy-button { padding: 8px; }
  .copy-button svg { display: none; }
}
