/* Only the existing Lottery component and its following Footer are affected. */
.container.page[data-v-26bfb8d0] {
  --mmyh-benefits-nav-height: min(14.667vw, 63.06810px);
  --mmyh-benefits-action-height: max(54px, min(13.333vw, 57.33190px));
  height: calc(100% - var(--mmyh-benefits-nav-height) - env(safe-area-inset-bottom, 0px));
}

.container.page[data-v-26bfb8d0] > .wrapper {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.container.page[data-v-26bfb8d0] > .wrapper > .options-bar {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.container.page[data-v-26bfb8d0] > .wrapper > .mid {
  flex: 0 0 auto;
}

.container.page[data-v-26bfb8d0] > .wrapper > .bottom-bar {
  position: relative;
  flex: 0 0 var(--mmyh-benefits-action-height);
  height: var(--mmyh-benefits-action-height);
}

.container.page[data-v-26bfb8d0] > .wrapper > .bottom-bar > .bar {
  height: 100%;
}

.container.page[data-v-26bfb8d0] + div .van-tabbar[data-v-910b862e] {
  left: 50%;
  width: 100%;
  max-width: 430px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateX(-50%);
}

/* Four-choice welfare layout; activated only for game1 / id=10. */
html.benefits-four-options .container.page[data-v-26bfb8d0] {
  --mmyh-benefits-action-height: 76px;
  --benefits-control-height: 48px;
  --benefits-gap: 12px;
  --benefits-ink: #f5e9dc;
  --benefits-focus: #f1c58f;
}

html.benefits-four-options .container.page[data-v-26bfb8d0] > .wrapper > .options-bar {
  overflow-y: auto;
  overscroll-behavior: contain;
}

html.benefits-four-options .sumValueTwoSides {
  gap: 16px !important;
  padding: 24px 20px !important;
}

html.benefits-four-options .sumValueTwoSides .rectangle.large {
  height: 64px !important;
  cursor: pointer;
  touch-action: manipulation;
}

html.benefits-four-options .sumValueTwoSides p.name-text.large {
  height: 64px !important;
  border-width: 2px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  transition: background-color 150ms ease, color 150ms ease !important;
}

html.benefits-four-options .sumValueTwoSides p.name-text.large:active {
  transform: none !important;
}

html.benefits-four-options .sumValueTwoSides .benefits-social-image {
  display: block;
  width: min(100%, 150px);
  height: 38px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

html.benefits-four-options .sumValueTwoSides p.name-text.large.active .benefits-social-image,
html.benefits-four-options .sumValueTwoSides p.name-text.large:hover .benefits-social-image,
html.benefits-four-options .sumValueTwoSides .rectangle.large:focus-visible .benefits-social-image {
  filter: brightness(0) invert(1);
}

html.benefits-four-options .sumValueTwoSides .rectangle.large:focus-visible {
  outline: 2px solid var(--benefits-focus);
  outline-offset: 4px;
  border-radius: 10px;
}

html.benefits-four-options .record .recent .kuaisan-ball.left {
  flex-wrap: wrap !important;
  align-content: center !important;
  gap: 3px 6px !important;
  padding-inline-start: 16px;
}

html.benefits-four-options .record .recent .benefits-recent-period {
  flex: 0 0 100%;
  color: #d7b895;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

html.benefits-four-options .wrapper > .mid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 2px !important;
  min-height: 54px !important;
  padding: 8px 16px !important;
  background: #332b25 !important;
  border-top: 1px solid #6d5a4d;
}

html.benefits-four-options .wrapper > .mid .heart-footer-selection {
  font-size: 13px;
  line-height: 19px;
  white-space: normal;
  overflow-wrap: anywhere;
}

html.benefits-four-options .wrapper > .mid > div:last-child {
  max-width: none !important;
  font-size: 12px !important;
  line-height: 18px;
}

html.benefits-four-options .bottom-bar .bar {
  grid-template-columns: 64px minmax(0, 1fr) 88px !important;
  gap: 8px !important;
  min-height: 76px !important;
  padding: 12px !important;
}

html.benefits-four-options .bottom-bar .left,
html.benefits-four-options .bottom-bar .left .item {
  width: 100% !important;
  min-width: 0;
}

html.benefits-four-options .bottom-bar .left .text,
html.benefits-four-options .bottom-bar .mids,
html.benefits-four-options .bottom-bar .right {
  height: var(--benefits-control-height) !important;
  min-height: var(--benefits-control-height) !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  touch-action: manipulation;
}

html.benefits-four-options .bottom-bar .left .text {
  color: var(--benefits-ink) !important;
  cursor: pointer;
}

html.benefits-four-options .bottom-bar .mids {
  background: #332b25 !important;
  border-color: #a08469 !important;
}

html.benefits-four-options .bottom-bar input[type=number] {
  height: 46px !important;
  padding: 0 10px !important;
  font-size: 16px !important;
  line-height: 46px !important;
}

html.benefits-four-options .bottom-bar input[type=number]::placeholder {
  color: #d5c5b8 !important;
  font-size: 12px !important;
}

html.benefits-four-options .bottom-bar .right {
  color: #352315 !important;
  font-weight: 700;
  box-shadow: none !important;
  cursor: pointer;
}

html.benefits-four-options .bottom-bar .mids:focus-within,
html.benefits-four-options .bottom-bar [role=button]:focus-visible {
  outline: 2px solid var(--benefits-focus);
  outline-offset: 2px;
}

html.benefits-four-options .sub-btn,
html.benefits-four-options .cancel-btn {
  min-height: 44px !important;
}

html.benefits-four-options .container.page[data-v-26bfb8d0] > .van-popup.van-popup--top {
  position: static !important;
  order: 3 !important;
  width: 100% !important;
  max-height: min(56dvh, 460px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  transform: none !important;
  background: #282828 !important;
}

html.benefits-four-options .van-popup.van-popup--top .benefits-history-empty {
  padding: 24px 16px;
  color: #d7b895;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

html.benefits-four-options .van-popup.van-popup--top .item:first-child .right.font-weight {
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-align: center;
}

@media (max-width: 350px) {
  html.benefits-four-options .sumValueTwoSides { padding: 20px 14px !important; gap: 12px !important; }
  html.benefits-four-options .bottom-bar .bar { grid-template-columns: 56px minmax(0, 1fr) 76px !important; gap: 6px !important; padding-inline: 10px !important; }
  html.benefits-four-options .bottom-bar input[type=number] { padding-inline: 8px !important; }
}

@media (max-height: 500px) {
  html.benefits-four-options .sumValueTwoSides { padding-block: 12px !important; gap: 10px !important; }
  html.benefits-four-options .sumValueTwoSides .rectangle.large,
  html.benefits-four-options .sumValueTwoSides p.name-text.large { height: 48px !important; }
}
