html,
body {
  min-height: 100%;
  margin: 0;
  background: #111012;
}

body {
  overflow-x: hidden;
}

#app {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #1f1c1f;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.28);
}

#app > .page,
#app > .container,
#app .lottery {
  width: 100%;
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
  overflow-x: hidden;
}

#app .van-tabbar,
#app .bottom-bar[data-v-e71ca208],
#app .wrapper_box[data-v-e71ca208] {
  left: max(0px, calc((100vw - 520px) / 2));
  right: max(0px, calc((100vw - 520px) / 2));
  width: auto;
  max-width: 520px;
}

@media (max-width: 520px) {
  #app {
    max-width: none;
    box-shadow: none;
  }

  #app .van-tabbar,
  #app .bottom-bar[data-v-e71ca208],
  #app .wrapper_box[data-v-e71ca208] {
    right: 0;
    left: 0;
    max-width: none;
  }
}

@media (min-width: 521px) {
  #app .lottery .van-nav-bar {
    min-height: 56px;
  }

  #app .lottery .wrapper[data-v-e71ca208] {
    padding-bottom: 132px;
  }
}

/* Keep the voting countdown aligned with the reference layout. The timer
   should size to a stable mm:ss box instead of inheriting float/line-height
   behavior that makes it overly tall on narrow screens. */
#app .lottery .info_c_h > div > .van-count-down[data-v-e71ca208] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  box-sizing: border-box;
  width: min(16vw, 96px);
  min-width: min(16vw, 96px);
  height: min(7.333vw, 44px);
  margin: min(1.333vw, 8px) 0 0;
  padding: 0 min(2vw, 12px);
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: min(1.067vw, 6px);
  font-size: min(4.267vw, 24px);
  white-space: nowrap;
}
