.community-points-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid var(--brand-pink-100);
  border-radius: var(--radius-md);
  background: var(--brand-pink-050);
}

.community-points-entry[data-tone="locked"] {
  border-color: var(--line);
  background: var(--surface);
}

.community-points-entry__icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid var(--brand-pink-100);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--brand-pink-600);
}

.community-points-entry[data-tone="locked"] .community-points-entry__icon {
  border-color: var(--line);
  background: var(--surface-neutral);
  color: var(--charcoal-500);
}

.community-points-entry__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.community-points-entry__copy {
  min-width: 0;
}

.community-points-entry__copy > strong {
  display: block;
  color: var(--charcoal-900);
  font-size: 0.76rem;
  line-height: 1.3;
}

.community-points-entry__balance {
  display: flex;
  align-items: baseline;
  gap: 0.22rem;
  margin-top: 0.2rem;
}

.community-points-entry__balance strong {
  color: var(--brand-pink-700);
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.community-points-entry__balance span {
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 680;
}

.community-points-entry__copy p {
  margin-top: 0.15rem;
  color: var(--ink-subtle);
  font-size: 0.64rem;
  line-height: 1.4;
}

.community-points-entry .button {
  width: auto;
  min-width: 5.8rem;
  padding-right: 0.7rem;
  padding-left: 0.7rem;
}

.community-points-entry .button:disabled {
  border-color: var(--line);
  background: var(--surface-neutral);
  color: var(--charcoal-500);
  cursor: not-allowed;
}

.home-points-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  overflow: hidden;
  padding: 0.9rem;
  border: 1px solid var(--brand-pink-100);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.home-points-card::after {
  position: absolute;
  z-index: -1;
  top: -2.8rem;
  right: 0;
  width: 6rem;
  height: 6rem;
  border: 0.85rem solid var(--brand-pink-050);
  border-radius: 50%;
  content: "";
}

.home-points-card__icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-pink-600);
  color: white;
}

.home-points-card__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.home-points-card__balance span,
.home-points-card__balance small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.61rem;
  font-weight: 680;
  line-height: 1.3;
}

.home-points-card__balance strong {
  display: block;
  margin: 0.12rem 0;
  color: var(--charcoal-950);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.home-points-card .button {
  width: auto;
  min-width: 5.7rem;
  padding-right: 0.7rem;
  padding-left: 0.7rem;
}

.community-points-screen {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: var(--surface-soft);
}

.community-points-screen:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.community-points-screen__bar {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.community-points-screen__bar p,
.community-points-heading > p {
  color: var(--brand-pink-700);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.community-points-screen__bar h1 {
  margin-top: 0.15rem;
  color: var(--charcoal-950);
  font-size: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.community-points-screen__scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1rem 0.9rem calc(1.25rem + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.community-points-screen__scroll::-webkit-scrollbar {
  display: none;
}

.points-community-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.points-community-context > img {
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface-soft);
  object-fit: cover;
}

.points-community-context > div {
  min-width: 0;
}

.points-community-context span:not(.badge) {
  display: block;
  color: var(--brand-pink-700);
  font-size: 0.6rem;
  font-weight: 780;
  line-height: 1.25;
}

.points-community-context strong {
  display: -webkit-box;
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--charcoal-900);
  font-size: 0.76rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.points-community-context small {
  display: block;
  margin-top: 0.18rem;
  color: var(--ink-muted);
  font-size: 0.625rem;
  line-height: 1.3;
}

.points-balance-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 1.1rem;
  background: var(--charcoal-950);
  color: white;
  box-shadow: 0 10px 24px rgb(23 20 25 / 14%);
}

.points-balance-card::after {
  position: absolute;
  z-index: -1;
  top: -4rem;
  right: 0;
  width: 9rem;
  height: 9rem;
  border: 1.3rem solid rgb(99 2 195 / 36%);
  border-radius: 50%;
  content: "";
}

.points-balance-card__label {
  color: #d7d2d9;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.3;
}

.points-balance-card__value {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.28rem;
}

.points-balance-card__value strong {
  color: white;
  font-size: clamp(2.3rem, 13vw, 3.15rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.points-balance-card__value span {
  color: #d7d2d9;
  font-size: 0.72rem;
  font-weight: 740;
}

.points-balance-card__scope {
  max-width: 18rem;
  margin-top: 0.55rem;
  color: #c8c3ca;
  font-size: 0.66rem;
  line-height: 1.45;
}

.points-balance-card__scope strong {
  color: white;
}

.points-balance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgb(255 255 255 / 15%);
}

.points-balance-summary div {
  min-width: 0;
}

.points-balance-summary span {
  display: block;
  color: #bdb7c0;
  font-size: 0.625rem;
  line-height: 1.3;
}

.points-balance-summary strong {
  display: block;
  margin-top: 0.18rem;
  overflow-wrap: anywhere;
  color: white;
  font-size: 0.92rem;
  line-height: 1.25;
}

.community-points-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.community-points-heading > div p {
  color: var(--brand-pink-700);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.community-points-heading h2 {
  margin-top: 0.18rem;
  color: var(--charcoal-950);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.community-points-heading > span {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
}

.points-history,
.points-earning-rules {
  margin-top: 1.1rem;
}

.point-transaction-list,
.point-rules-list {
  display: grid;
  gap: 0;
  margin-top: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.point-transaction {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.78rem;
  border-top: 1px solid var(--line);
}

.point-transaction:first-child {
  border-top: 0;
}

.point-transaction__marker {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 850;
}

.point-transaction__marker[data-tone="earn"] {
  background: var(--success-100);
  color: var(--success-700);
}

.point-transaction__marker[data-tone="redeem"] {
  background: var(--brand-pink-050);
  color: var(--brand-pink-700);
}

.point-transaction__marker[data-tone="adjustment"] {
  background: var(--surface-neutral);
  color: var(--charcoal-600);
}

.point-transaction__copy {
  min-width: 0;
}

.point-transaction__copy h3 {
  overflow-wrap: anywhere;
  color: var(--charcoal-900);
  font-size: 0.72rem;
  line-height: 1.38;
}

.point-transaction__metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.3rem;
}

.point-transaction__metadata time {
  color: var(--ink-muted);
  font-size: 0.625rem;
  line-height: 1.3;
}

.point-type-badge {
  display: inline-flex;
  min-height: 1.25rem;
  align-items: center;
  padding: 0.24rem 0.4rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 780;
  line-height: 1;
}

.point-type-badge[data-tone="earn"] {
  background: var(--success-100);
  color: var(--success-700);
}

.point-type-badge[data-tone="redeem"] {
  background: var(--brand-pink-050);
  color: var(--brand-pink-700);
}

.point-type-badge[data-tone="adjustment"] {
  background: var(--surface-neutral);
  color: var(--charcoal-600);
}

.point-transaction__points {
  align-self: start;
  padding-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 830;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.point-transaction__points[data-tone="positive"] {
  color: var(--success-700);
}

.point-transaction__points[data-tone="negative"] {
  color: var(--brand-pink-700);
}

.points-history-empty {
  margin-top: 0.7rem;
  padding: 1.3rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.points-history-empty strong {
  color: var(--charcoal-900);
  font-size: 0.78rem;
}

.points-history-empty p {
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.67rem;
  line-height: 1.45;
}

.point-rule {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
}

.point-rule:first-child {
  border-top: 0;
}

.point-rule__marker {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--brand-pink-100);
  border-radius: 0.6rem;
  background: var(--brand-pink-050);
  color: var(--brand-pink-700);
  font-size: 0.68rem;
  font-weight: 820;
}

.point-rule strong {
  display: block;
  color: var(--charcoal-900);
  font-size: 0.69rem;
  line-height: 1.35;
}

.point-rule p {
  margin-top: 0.17rem;
  color: var(--ink-muted);
  font-size: 0.6rem;
  line-height: 1.4;
}

.point-rule__placeholder {
  align-self: start;
  padding: 0.25rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-neutral);
  color: var(--charcoal-600);
  font-size: 0.625rem;
  font-weight: 780;
  line-height: 1;
}

.points-scope-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  margin-top: 0.9rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-neutral);
}

.points-scope-note svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--brand-pink-700);
}

.points-scope-note p {
  color: var(--ink-subtle);
  font-size: 0.63rem;
  line-height: 1.48;
}

.points-scope-note strong {
  color: var(--charcoal-800);
}

.community-points-locked {
  padding: 0.65rem 0 1rem;
  text-align: center;
}

.community-points-locked > img {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  object-fit: cover;
}

.community-points-locked__icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  margin: 1.2rem auto 0.85rem;
  place-items: center;
  border: 1px solid var(--brand-pink-100);
  border-radius: 50%;
  background: var(--brand-pink-050);
  color: var(--brand-pink-600);
}

.community-points-locked__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.community-points-locked h2 {
  max-width: 19rem;
  margin: 0 auto;
  color: var(--charcoal-950);
  font-size: 1.25rem;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.community-points-locked > p {
  max-width: 19rem;
  margin: 0.55rem auto 0;
  color: var(--ink-subtle);
  font-size: 0.74rem;
  line-height: 1.55;
}

.community-points-locked__community {
  display: inline-flex;
  margin-top: 0.9rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-neutral);
  color: var(--charcoal-700);
  font-size: 0.63rem;
  font-weight: 740;
}

@media (max-width: 370px) {
  .community-points-entry {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-points-entry .button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .home-points-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-points-card .button {
    width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 350px) {
  .community-points-screen__scroll {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .points-community-context {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .points-community-context > .badge {
    grid-column: 2;
    justify-self: start;
  }

  .point-rule {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .point-rule__placeholder {
    grid-column: 2;
    justify-self: start;
  }
}
