/* GSB home — Figma Home 405:67908. Prefix `gsh-`. */


body.bg-main {
  background: linear-gradient(-20.06deg, #ffffff 1.14%, #f4f7fb 100%);
}

.gsh-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 540px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 16px 24px;
  background: linear-gradient(-20.06deg, #ffffff 1.14%, #f4f7fb 100%);
  font-family: "Noto Sans Thai", "Prompt", sans-serif;
  color: #1f1f1f;
  overflow: visible;
}

.gsh-page *,
.gsh-page *::before,
.gsh-page *::after {
  box-sizing: border-box;
}

.gsh-page p,
.gsh-page h2 {
  margin: 0;
}

.gsh-page button {
  appearance: none;
  -webkit-appearance: none;
}

.gsh-greet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 12px;
}

.gsh-greet-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gsh-hello {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #232934;
}

.gsh-name {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
  color: #ed008c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gsh-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #ed008c;
  border-radius: 240px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.gsh-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gsh-point-wrap {
  position: relative;
  margin-top: 16px;
}

.gsh-point {
  position: relative;
  overflow: hidden;
  height: 172px;
  padding: 24px 0;
  border-radius: 24px;
  background: radial-gradient(ellipse 180% 80% at 50% 50%, #ff73b0 0%, #fea2d1 50%, #fcd2f2 100%);
  box-shadow: inset 2px -4px 12px rgba(239, 0, 141, 0.52), inset 0 0 18px 4px #ffe7ee;
}

.gsh-point-flower,
.gsh-point-star {
  position: absolute;
  pointer-events: none;
}

.gsh-point-flower {
  left: -41px;
  top: -15px;
  width: 149px;
  height: 157px;
  overflow: hidden;
  opacity: 0.29;
  transform: rotate(2.9deg);
  /* Background, not <img>: the crop is ~1054px wide, and an element that big trips breakpoint layout-shift checks */
  background: url(/assets/images/gsb-home/hero-flower.png) no-repeat;
  background-size: 707.61% 670.78%;
  background-position: -72.56px -205.64px; /* -48.7% × 149px, -130.98% × 157px */
}

.gsh-point-deco {
  position: absolute;
  right: -34px;
  top: 3px;
  width: 111px;
  height: 107px;
  opacity: 0.2;
  transform: rotate(-24.37deg);
  pointer-events: none;
}

.gsh-point-deco img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gsh-point-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gsh-point-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.gsh-point-label {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #fff4f7;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.16);
  white-space: nowrap;
}

.gsh-point-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gsh-point-value img {
  display: block;
  width: 27px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px #ff4b9a);
}

.gsh-point-value span {
  font-size: 28px;
  line-height: 32px;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
}

.gsh-point-updated {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}

.gsh-point-updated img {
  display: block;
  width: 10px;
  height: 10px;
}

.gsh-point-updated span {
  font-size: 12px;
  line-height: 14px;
  font-weight: 700;
  color: #ffe7ee;
  white-space: nowrap;
}

.gsh-point-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 231, 238, 0.25);
}

.gsh-point-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
}

.gsh-point-stat-label {
  font-weight: 600;
  color: #303747;
}

.gsh-point-stat-value {
  font-weight: 700;
  color: #ed008c;
}

.gsh-point-stat-divider {
  width: 1px;
  height: 14px;
  background: rgba(48, 55, 71, 0.25);
}

.gsh-point-mascot {
  position: absolute;
  left: -35px;
  top: 62px;
  z-index: 2;
  width: 127px;
  height: 127px;
  pointer-events: none;
}

.gsh-point-mascot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gsh-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
  padding: 12px 2px 0;
}

.gsh-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gsh-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.gsh-section-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: #11141b;
  white-space: nowrap;
}

.gsh-section-head img {
  display: block;
  width: 18px;
  height: 18px;
}

.gsh-games {
  display: flex;
  gap: 6px;
  width: 100%;
}

.gsh-game {
  flex: 1;
  min-width: 0;
  height: 110px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #ed008c;
  cursor: pointer;
}

.gsh-game--coins {
  background: #ffdb8d;
}

.gsh-game:disabled,
.gsh-game--disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.5;
}

.gsh-game img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gsh-missions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gsh-rewards {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: stretch;
}

.gsh-reward {
  /* ครึ่งแถวเสมอ — มีชิ้นเดียวก็ไม่ยืดเต็มความกว้าง */
  flex: 0 0 calc((100% - 12px) / 2);
  width: calc((100% - 12px) / 2);
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #f8f8f9;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: -20px -20px 30px rgba(255, 255, 255, 0.53), 10px 10px 24px rgba(0, 0, 0, 0.1);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.gsh-reward-pic {
  position: relative;
  height: 160px;
  background: #fff;
}

.gsh-reward-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px 24px 8px;
}

/* ป้าย "สิทธิ์เต็มแล้ว" ต้องเต็มกรอบรูป ไม่เอาระยะขอบของรูปของรางวัล */
.gsh-reward-pic .gsb-soldout img {
  padding: 0;
  object-fit: cover;
}

.gsh-reward-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 150px;
  padding: 10px 14px 16px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.gsh-reward-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gsh-reward-title {
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  color: #232934;
}

.gsh-reward-sub {
  margin: 0;
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
  color: #566278;
}

.gsh-reward-points {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.gsh-reward-points-n {
  color: #232934;
}

.gsh-reward-points-u {
  color: #566278;
}

.gsh-game-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.gsh-game-wrap .gsh-game {
  display: block;
  width: 100%;
}

.gsh-game-countdown {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(17, 20, 27, 0.45);
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  pointer-events: none;
}

.gsh-game-countdown strong {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
