.home-page .app-viewport {
  position: relative;
  width: calc(498px * var(--app-scale, 1));
  height: calc(var(--app-visible-height, 1003px) * var(--app-scale, 1));
  margin: 0 auto;
  overflow: hidden;
}

.home-page::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 19;
  width: 498px;
  height: calc(132px + env(safe-area-inset-bottom, 0px) / var(--app-scale, 1));
  transform: translateX(-50%) scale(var(--app-scale, 1));
  transform-origin: bottom center;
  background: #000;
  pointer-events: none;
}

.home-page .home-top-panel {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  width: 498px;
  height: 104px;
  transform: translateX(-50%) scale(var(--app-scale, 1));
  transform-origin: top center;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.home-page .top-panel.home-top-panel {
  height: 80px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.home-page .home-shell {
  height: var(--app-visible-height, 1003px);
  min-height: 1003px;
  padding-top: 104px;
  padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px) / var(--app-scale, 1));
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.home-page .home-top-panel::after {
  content: none;
}

.member-hero {
  position: relative;
  height: 180px;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  background:
    radial-gradient(circle at 49% -18%, rgba(255, 255, 255, 0.11), transparent 34%),
    linear-gradient(158deg, #232327 0%, #070708 70%, #171719 100%);
  overflow: hidden;
}

.top-panel {
  position: relative;
  height: 284px; /* Reduced by 60px to remove top blank space */
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  background:
    radial-gradient(circle at 49% 9%, rgba(255, 255, 255, 0.11), transparent 27%),
    linear-gradient(158deg, #232327 0%, #070708 70%, #171719 100%);
  overflow: hidden;
}

.top-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 122px;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0), #151518 55%);
}

.status-row {
  position: relative;
  z-index: 2;
  height: 54px;
}

.top-record {
  position: absolute;
  left: 37px;
  top: 15px;
  width: 66px;
  height: 25px;
}

.top-status {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 89px;
  height: 17px;
}

.top-actions {
  position: absolute;
  z-index: 4;
  left: 20px;
  right: 20px;
  top: 22px; /* Reduced by 60px */
  height: 42px;
}

.top-actions img {
  position: absolute;
  object-fit: fill;
}

.top-menu,
.top-bell,
.top-card-btn {
  width: 40px;
  height: 40px;
}

.top-menu {
  left: 2px;
}

.top-bell {
  left: 73px;
}

.top-card-btn {
  right: 39px;
}

.top-service-btn {
  right: 0;
  width: 28px;
  height: 42px;
}

.brand-logo {
  position: absolute;
  z-index: 3;
  top: 15px; /* Reduced by 60px */
  left: 205px;
  width: 92px;
  height: 59px;
  object-fit: fill;
}

.member-box {
  position: absolute;
  z-index: 3;
  left: 25px;
  top: 4px;
  width: 446px;
  height: 149px;
  border: 3px solid #3c3c43;
  border-radius: 13px;
  background: rgba(4, 4, 6, 0.72);
}

.member-copy {
  padding: 23px 0 0 25px;
}

.member-copy p {
  margin: 0 0 5px;
  color: #eee;
  font-size: 16px;
}

.member-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 31px;
  line-height: 1.05;
}

.member-copy span {
  display: block;
  width: 272px;
  height: 5px;
  margin: 13px 0 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #c3a66b, #46443e);
}

.member-copy strong {
  color: #e8e8e9;
  font-size: 20px;
  font-weight: 500;
}

.upgrade-points-value {
  font-style: normal;
}

.member-box img {
  position: absolute;
  right: 26px;
  top: 34px;
  width: 93px;
  height: 63px;
}

.score-strip {
  display: flex;
  gap: 16px;
  width: 473px;
  height: 180px;
  margin: 35px 0 0 25px;
  padding-right: 25px;
}

.score-card {
  position: relative;
  height: 180px;
  border: 3px solid #89898d;
  border-radius: 13px;
  background: linear-gradient(147deg, #dedee2 0%, #fafafd 22%, #c7c7cb 78%, #ebebee 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
  color: #745026;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.score-card.big {
  width: 408px;
}

.score-title {
  position: absolute;
  left: 27px;
  top: 25px;
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
}

.score-title img {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-left: 6px;
  vertical-align: -6px;
}

.score-info-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 6px;
  vertical-align: -7px;
  pointer-events: auto;
}

.score-info-btn img {
  width: 30px;
  height: 30px;
  margin: 0;
  pointer-events: none;
}

.exchange-link {
  position: absolute;
  top: 18px;
  right: 23px;
  width: 180px;
  height: 50px;
  pointer-events: auto;
}

.exchange {
  width: 180px;
  height: 50px;
}

.score-number {
  position: absolute;
  left: 27px;
  bottom: 23px;
  font-size: 43px;
  font-weight: 700;
}

.score-number span {
  font-size: 15px;
  font-weight: 500;
}

.venue-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 448px;
  height: 76px;
  margin: 34px 0 0 25px;
  padding: 9px;
  border: 2px solid #6f604f;
  border-radius: 999px;
  background: linear-gradient(103deg, #26211f 0%, #151517 100%);
}

.venue-toggle button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 58px;
  border-radius: 999px;
  color: #e1cb87;
  font-size: 19px;
  font-weight: 700;
}

.venue-toggle button.active {
  color: #29313b;
  background: linear-gradient(105deg, #f6e49e 0%, #b4a05d 100%);
}

.venue-toggle img {
  width: 53px;
  height: 42px;
  object-fit: contain;
}

.venue-toggle button + button img {
  width: 31px;
  height: 42px;
}

.today-panel {
  position: relative;
  width: 448px;
  height: 445px;
  margin: 36px 0 0 25px;
  padding-top: 28px;
  border: 3px solid #8b8b8e;
  border-radius: 12px;
  background: linear-gradient(143deg, #e8e8ec 0%, #fafafd 34%, #d2d2d6 88%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  color: #7a5427;
  overflow: hidden;
}

.today-panel h2,
.section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.today-panel header {
  padding-left: 27px;
}

.today-summary {
  position: relative;
  height: 92px;
  padding-left: 27px;
}

.today-summary strong {
  display: inline-block;
  margin-top: 31px;
  font-size: 51px;
  line-height: 1;
}

.today-summary span {
  margin-left: 8px;
  font-size: 14px;
}

.today-summary a {
  position: absolute;
  right: 30px;
  top: 44px;
  font-size: 24px;
  text-decoration: underline;
}

.reward-window {
  position: relative;
  height: 222px;
}

.reward-list {
  position: absolute;
  left: 24px;
  top: 0;
  display: flex;
  gap: 16px;
  width: calc(100% - 48px);
  height: 222px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reward-list::-webkit-scrollbar {
  display: none;
}

.reward-page {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 364px;
  scroll-snap-align: start;
}

.reward-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 15px;
  align-items: center;
  height: 88px;
  padding: 11px 14px 11px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.reward-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
}

.reward-item h3 {
  margin: 0 0 13px;
  font-size: 20px;
  line-height: 1;
}

.reward-item button {
  width: 205px;
  height: 39px;
  border-radius: 999px;
  border: 3px solid #9b7241;
  background: #0b0b0d;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.dots {
  position: absolute;
  left: 232px;
  bottom: 24px;
  display: flex;
  gap: 12px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #918966;
}

.dots i:first-child {
  background: #000;
}

.promo-section {
  margin-top: 35px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 448px;
  margin-left: 25px;
  color: #e3c56e;
}

.section-head a {
  margin-top: 4px;
  font-size: 15px;
}

.promo-track {
  display: flex;
  gap: 16px;
  width: 473px;
  margin: 18px 0 0 25px;
  padding-right: 25px;
}

.promo-card {
  flex: 0 0 auto;
  width: 408px;
  height: 204px;
  border: 2px solid #c9a864;
  border-radius: 12px;
  object-fit: fill;
  scroll-snap-align: start;
}

.promo-track > a {
  flex: 0 0 auto;
  display: block;
  scroll-snap-align: start;
}

.goods-section {
  margin-top: 25px;
  padding-bottom: 24px;
}

.goods-track {
  display: flex;
  gap: 16px;
  width: 473px;
  margin: 18px 0 0 25px;
  padding-right: 25px;
}

.goods-track > a {
  flex: 0 0 auto;
  display: block;
}

.goods-track img {
  width: 216px;
  height: 325px;
  border: 2px solid #d7b76a;
  border-radius: 12px;
  object-fit: fill;
  scroll-snap-align: start;
}

.score-tip-open .app-shell,
.score-tip-open .app-tabbar {
  filter: blur(2px) brightness(0.32);
}

.score-tip-overlay {
  position: fixed;
  left: 50%;
  top: 0;
  width: 498px;
  height: var(--app-visible-height, 1078px);
  transform: translateX(-50%) scale(var(--app-scale, 1));
  transform-origin: top center;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.46);
}

.score-tip-open .score-tip-overlay {
  opacity: 1;
  pointer-events: auto;
}

.score-tip-dialog {
  position: absolute;
  left: 25px;
  top: 450px;
  width: 448px;
  min-height: 106px;
  padding: 25px 54px 25px 24px;
  border-radius: 16px;
  background: #242424;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.score-tip-dialog h2 {
  margin: 0 0 11px;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
}

.score-tip-dialog p {
  margin: 0;
  color: #f1f1f1;
  font-size: 16px;
  line-height: 1.32;
}

.score-tip-close {
  position: absolute;
  right: 20px;
  top: 25px;
  width: 28px;
  height: 28px;
  pointer-events: auto;
}

.score-tip-close::before,
.score-tip-close::after {
  content: "";
  position: absolute;
  left: 13px;
  top: -1px;
  width: 3px;
  height: 31px;
  border-radius: 999px;
  background: #fff;
}

.score-tip-close::before {
  transform: rotate(45deg);
}

.score-tip-close::after {
  transform: rotate(-45deg);
}
