/* How points work screen restoration */
#sc-points-info {
  display: flex !important;
  flex-direction: column;
  background: #fef1ee !important;
  color: #1c1410 !important;
}

#sc-points-info .tbar.dark {
  display: flex !important;
  align-items: center;
  flex: 0 0 64px;
  width: 100%;
  height: 64px !important;
  box-sizing: border-box;
  padding: 0 8px !important;
  background: linear-gradient(110deg, #1c1410 0%, #6f2b0d 62%, #e8500a 145%) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

#sc-points-info .tbar.dark .back-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px;
  color: #fff !important;
}

#sc-points-info .tbar-title.w {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 8px;
  overflow: hidden;
  color: #fff !important;
  font-family: 'Google Sans', 'DM Sans', sans-serif !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#sc-points-info .scroll {
  display: block !important;
  flex: 1 1 0 !important;
  min-height: 0;
  padding: 0 0 52px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  background: #fef1ee !important;
}

#sc-points-info .scroll > div:first-child {
  box-sizing: border-box;
  padding: 30px 20px 42px !important;
  background: linear-gradient(155deg, #1c1410 0%, #382012 60%, #a83c10 140%) !important;
  color: #fff !important;
}

#sc-points-info .scroll > div:first-child > div {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

#sc-points-info #pi-pts-value {
  color: #fff !important;
  font-family: 'Google Sans', 'DM Sans', sans-serif !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  letter-spacing: -1px;
  line-height: 1.1;
}

#sc-points-info #pi-pts-display,
#sc-points-info #pi-pts-pending {
  color: #ffb070 !important;
}

#sc-points-info #pi-pts-math {
  color: rgba(255, 255, 255, 0.64) !important;
}

#sc-points-info .scroll > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  box-sizing: border-box;
  margin-top: -18px !important;
  padding: 0 16px !important;
  position: relative;
  z-index: 2;
}

#sc-points-info .scroll > div:nth-child(2) > div {
  min-width: 0;
  box-sizing: border-box;
  padding: 14px 8px !important;
  border: 1px solid rgba(28, 20, 16, 0.08);
  border-radius: 14px !important;
  background: #fffaf7 !important;
  box-shadow: 0 8px 20px rgba(28, 20, 16, 0.08) !important;
}

#sc-points-info .scroll > div:nth-child(2) > div > div:first-child {
  color: #857370 !important;
  font-size: 10px !important;
  letter-spacing: 0.06em;
}

#sc-points-info .scroll > div:nth-child(2) > div > div:nth-child(2) {
  color: #e8500a !important;
  font-size: 17px !important;
}

#sc-points-info .scroll > div:nth-child(2) > div > div:last-child {
  color: #857370 !important;
  font-size: 11px !important;
  line-height: 1.35;
}

#sc-points-info .scroll > div:nth-child(3) {
  box-sizing: border-box;
  padding: 24px 20px 32px !important;
  background: #fef1ee !important;
}

#sc-points-info .scroll > div:nth-child(3) > div:first-child,
#sc-points-info .scroll > div:nth-child(3) > div:last-child {
  border: 1px solid rgba(28, 20, 16, 0.08) !important;
  border-radius: 18px !important;
  background: #fffaf7 !important;
  box-shadow: 0 6px 18px rgba(28, 20, 16, 0.06) !important;
}

#sc-points-info .scroll > div:nth-child(3) h3 {
  display: block !important;
  margin: 24px 0 12px !important;
  color: #1c1410 !important;
  font-family: 'Google Sans', 'DM Sans', sans-serif !important;
  font-size: 19px !important;
  line-height: 1.25;
}

#sc-points-info #pi-tier-bar {
  background: linear-gradient(90deg, #ff8a4c, #e8500a) !important;
}

#sc-points-info .scroll > div:nth-child(3) > div:nth-child(3),
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(5),
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(7) {
  border: 1px solid rgba(28, 20, 16, 0.08) !important;
  border-left: 4px solid #e8500a !important;
  border-radius: 14px !important;
  background: #fffaf7 !important;
  box-shadow: 0 4px 14px rgba(28, 20, 16, 0.05) !important;
}

#sc-points-info .scroll > div:nth-child(3) > div:nth-child(3) > div,
#sc-points-info .scroll > div:nth-child(5) > div,
#sc-points-info .scroll > div:nth-child(7) > div {
  color: #1c1410 !important;
}

#sc-points-info .scroll > div:nth-child(3) button {
  min-height: 44px;
  border-radius: 999px !important;
  background: #e8500a !important;
  color: #fff !important;
}

#sc-points-info svg {
  display: block;
  max-width: 22px;
  max-height: 22px;
}

@media (max-width: 380px) {
  #sc-points-info .scroll > div:nth-child(2) {
    gap: 6px !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  #sc-points-info .scroll > div:nth-child(2) > div {
    padding-right: 5px !important;
    padding-left: 5px !important;
  }
}

#sc-points-info .scroll > div:nth-child(3) {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

#sc-points-info .scroll > div:nth-child(3) > div:first-child,
#sc-points-info .scroll > div:nth-child(3) > div:last-child {
  box-shadow: 0 12px 28px rgba(28, 20, 16, 0.07) !important;
}

#sc-points-info .scroll > div:nth-child(3) > div:nth-child(3),
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(5),
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(7) {
  min-height: 68px;
  padding: 16px 18px !important;
}

#sc-points-info .scroll > div:nth-child(3) button {
  min-width: 0;
  padding-right: 16px !important;
  padding-left: 16px !important;
  font-weight: 800 !important;
}

@media (max-width: 380px) {
  #sc-points-info #pi-pts-value { font-size: 36px !important; }
  #sc-points-info .scroll > div:nth-child(2) > div > div:last-child { overflow-wrap: anywhere; }
}

/* Final points-info presentation pass */
#sc-points-info {
  --points-ink: #241812;
  --points-muted: #77685f;
  --points-paper: #fffaf6;
  --points-panel: #fffdfb;
  --points-line: #eaded5;
  --points-orange: #f4511e;
  --points-orange-soft: #fff0e9;
  background: var(--points-paper) !important;
  color: var(--points-ink) !important;
}

#sc-points-info .tbar.dark {
  background: linear-gradient(110deg, #241812 0%, #54250f 68%, #f4511e 150%) !important;
}

#sc-points-info .tbar-title.w {
  font-family: 'DM Sans', 'Inter', sans-serif !important;
  font-size: 18px !important;
  letter-spacing: 0 !important;
}

#sc-points-info .scroll {
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 81, 30, 0.1), transparent 18rem),
    var(--points-paper) !important;
}

#sc-points-info .scroll > div:first-child {
  padding: 34px 20px 56px !important;
  background: linear-gradient(150deg, #241812 0%, #54250f 64%, #f4511e 150%) !important;
}

#sc-points-info .scroll > div:first-child > div {
  max-width: 620px;
}

#sc-points-info #pi-pts-value {
  margin: 12px 0 8px !important;
  font-family: 'DM Sans', 'Inter', sans-serif !important;
  font-size: clamp(42px, 10vw, 58px) !important;
  letter-spacing: -0.02em !important;
}

#sc-points-info #pi-pts-math {
  display: inline-block;
  margin-top: 14px !important;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78) !important;
}

#sc-points-info .scroll > div:nth-child(2) {
  gap: 10px !important;
  margin-top: -28px !important;
  padding: 0 18px !important;
}

#sc-points-info .scroll > div:nth-child(2) > div {
  padding: 16px 10px !important;
  border-color: var(--points-line) !important;
  border-radius: 8px !important;
  background: var(--points-panel) !important;
  box-shadow: 0 12px 24px rgba(75, 38, 18, 0.08) !important;
}

#sc-points-info .scroll > div:nth-child(2) > div > div:nth-child(2) {
  font-family: 'DM Sans', 'Inter', sans-serif !important;
  font-size: 18px !important;
}

#sc-points-info .scroll > div:nth-child(3) {
  padding: 30px 20px 42px !important;
  background: transparent !important;
}

#sc-points-info .scroll > div:nth-child(3) > div:first-child,
#sc-points-info .scroll > div:nth-child(3) > div:last-child {
  border-color: var(--points-line) !important;
  border-radius: 8px !important;
  background: rgba(255, 253, 251, 0.9) !important;
  box-shadow: 0 14px 32px rgba(75, 38, 18, 0.07) !important;
}

#sc-points-info .scroll > div:nth-child(3) h3 {
  margin-top: 30px !important;
  font-family: 'DM Sans', 'Inter', sans-serif !important;
  font-size: 21px !important;
  letter-spacing: 0 !important;
}

#sc-points-info .scroll > div:nth-child(3) > div:nth-child(3),
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(5),
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(7) {
  border-left-width: 3px !important;
  border-left-color: var(--points-orange) !important;
  border-radius: 8px !important;
  background: var(--points-panel) !important;
}

#sc-points-info .scroll > div:nth-child(3) button {
  background: var(--points-orange) !important;
  box-shadow: 0 6px 14px rgba(244, 81, 30, 0.22);
  font-family: 'DM Sans', 'Inter', sans-serif !important;
}

@media (max-width: 520px) {
  #sc-points-info .scroll > div:first-child {
    padding-top: 26px !important;
    padding-bottom: 48px !important;
  }

  #sc-points-info .scroll > div:nth-child(2) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  #sc-points-info .scroll > div:nth-child(2) > div {
    padding: 13px 6px !important;
  }

  #sc-points-info .scroll > div:nth-child(2) > div > div:last-child {
    min-height: 32px;
    overflow-wrap: anywhere;
  }

  #sc-points-info .scroll > div:nth-child(3) {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}

/* Final Points Info surface tokens. The top bar and hero remain unchanged. */
#sc-points-info .scroll,
#sc-points-info .scroll > div:nth-child(3) {
  background: #FFF8F6 !important;
}

#sc-points-info .scroll > div:nth-child(2) > div,
#sc-points-info .scroll > div:nth-child(3) > div:first-child,
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(3),
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(5),
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(7),
#sc-points-info .scroll > div:nth-child(3) > div:last-child,
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(3) > div,
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(5) > div,
#sc-points-info .scroll > div:nth-child(3) > div:nth-child(7) > div {
  background: var(--md-surface-4) !important;
}
