/* Original pattern background preserved */
.weight-page {
  min-height: 100vh;
  background: #000000;
}
.weight-bg {
  position: fixed;
  z-index: 0;
  top: 98px;
  left: 50%;
  width: 1440px;
  height: 603px;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center;
  opacity: 0.3;
  max-width: none;
  pointer-events: none;
}
@media (min-width: 600px) and (max-width: 1024px) {
  .weight-bg {
    top: var(--shumi-bg-top-md, 8px);
    width: var(--shumi-bg-width-md, 200%);
    height: auto;
  }
}
@media (max-width: 599px) {
  .weight-bg {
    top: var(--shumi-bg-top-sm, 56px);
    width: var(--shumi-bg-width-sm, 200%);
    height: auto;
  }
}

.weight-page {
  min-height: 100vh;
}

.weight-main {
  position: relative;
  width: min(100% - 48px, 920px);
  min-height: 0;
  margin: 0 auto;
  padding: 24px 0 80px;
  overflow: visible;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
}

.weight-back,
.hobby-form-panel,
.hobby-form-actions,
.weight-cards,
.weight-actions {
  grid-column: 1 / -1;
}

.dx-weight .weight-main {
  display: block;
  width: 100%;
  padding: 0;
}

.weight-back {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 18px;
  justify-self: start;
  width: max-content;
}

.weight-stage {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 12px;
  grid-column: 1 / -1;
}

.weight-page .weight-stage {
  display: contents;
}

@media (max-width: 1024px) {
  .weight-page .weight-stage {
    display: block;
    grid-column: 1 / -1;
  }

  .weight-page .weight-alien {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
  }

  .weight-page .weight-bubble {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }
}

.weight-alien {
  position: relative;
  top: auto;
  left: auto;
  grid-column: 1;
  grid-row: 2;
}

.weight-bubble {
  position: relative;
  top: auto;
  left: auto;
  grid-column: 2;
  grid-row: 2;
  width: fit-content;
  min-width: 0;
  max-width: calc(100% - 8px);
  height: auto;
}

.weight-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weight-actions,
.hobby-form-actions {
  position: relative !important;
  top: auto !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.weight-reset,
.hobby-form-reset {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--dust);
  font-family: var(--font-maruko);
  cursor: pointer;
}

.weight-next,
.hobby-form-submit {
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  background: var(--accent);
  color: var(--cream);
  font-family: var(--font-maruko);
  cursor: pointer;
}

.weight-next:hover,
.hobby-form-submit:hover {
  transform: translate(3px, -3px);
}

@media (max-width: 599px) {
  .weight-main {
    width: min(100% - 32px, 540px);
  }

  .dx-weight .weight-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .weight-next,
  .hobby-form-submit,
  .weight-reset,
  .hobby-form-reset {
    flex: 1 1 140px;
    min-height: 52px;
  }
}
