 :root {
   --lobby__rem-unit: 100;
   --lobby__max-width: 100%;
   --lobby__vh: 1vh;
   --lobby__screen-height: calc(var(--lobby__vh) * 100);
   --skin__border: #E3E3E3;
   --skin__neutral_1: #666666;
   --skin__bg_1: #FFF0F0;
   --animate-duration: 1s;
   --animate-delay: 1s;
   --animate-repeat: 1;
 }

 html, body {
   padding: 0;
   margin: 0;
   height: 100%;
   color: var(--skin__neutral_1);
   background-image: url(assets/bk@3x-CWpVvLzr.png);
   background-size: cover;
   background-position: center top;
   background-repeat: no-repeat;
  overflow-x: hidden;
  overflow-y: auto;
   font-size: .24rem;
   font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, "Segoe UI", Arial, Roboto, "PingFang SC", miui, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
 }

 html[data-device=mobile],
 html[data-device=tablet] {
   background-image: url(assets/bk@3x-CWpVvLzr.png);
   background-size: cover;
   background-position: center top;
   font-size: calc(100vw / (750 / 100));
 }

 html[data-device=desktop] {
   background: transparent;
   font-size: calc(714px / (750 / 100));
 }

 html[data-device=desktop] body {
   width: 714px;
   height: 1270px;
   margin: 0 auto;
   overflow: hidden;
   background: transparent;
   position: relative;
 }

 html[data-device=desktop] #app {
   width: 714px;
   height: 1270px;
   overflow: hidden;
   position: relative;
   background-image: url(assets/bk@3x-CWpVvLzr.png);
   background-size: cover;
   background-position: center top;
 }

 html[data-device=desktop] .lobby {
   height: 1270px;
   max-width: 714px;
 }

 html body #app {
   height: 100%;
   position: relative;
   overflow: hidden;
 }

 *, :after, :before {
   box-sizing: inherit;
   padding: 0;
   margin: 0;
 }

 .lobby {
   display: flex;
   flex-direction: column;
  min-height: 100vh;
  min-height: var(--lobby__screen-height);
   max-width: var(--lobby__max-width);
   margin: 0 auto;
  overflow: visible;
   position: relative;
 }

 /* ===== Header ===== */
 .lobby-header {
   height: 1rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   background: #5BA4D4;
   z-index: 1;
   padding: 0 .3rem;
   flex-shrink: 0;
 }

 .header-left, .header-right {
   flex: 0 0 auto;
   width: .6rem;
   height: .6rem;
   display: flex;
   align-items: center;
   justify-content: center;
 }

 .header-icon {
   width: .5rem;
   height: .5rem;
   object-fit: contain;
   cursor: pointer;
 }

 .header-left .header-icon {
   border: .02rem solid white;
   border-radius: 50%;
   cursor: default;
 }

 .header-center {
   flex: 1;
   display: flex;
   justify-content: center;
   align-items: center;
 }

 .lobby-logo {
   width: 2.6rem;
   object-fit: contain;
 }

 /* ===== Banner ===== */
 .lobby-banner {
   position: relative;
   width: 100%;
   display: flex;
   justify-content: center;
   align-items: center;
 }

 .lobby-banner img {
   max-width: 100%;
   height: auto;
   object-fit: contain;
   margin-top: calc(var(--lobby__vh) * 5);
   z-index: 999;
 }

 .coin-overlay {
   position: absolute;
   z-index: 2;
   width: 90%;
   margin: 0 auto;
   transform: translateY(1vh);
 }

 .coin-overlay img {
   width: 100%;
   object-fit: contain;
 }

 .domain-overlay {
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translate(-50%, 50%);
   z-index: 3;
   width: auto;
   height: auto;
 }

 .domain-overlay img {
   width: auto;
   object-fit: contain;
   transform: none;
 }

 /* ===== Main / 按钮区 ===== */
 .lobby-main {
   display: flex;
   margin: 0 auto;
   justify-content: center;
   align-content: center;
   flex: 1;
  min-height: 0;
 }

 .enter-buttons-list {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   justify-content: center;
   gap: .3rem;
   width: 100%;
 }

 .enter-button-item {
   display: flex;
   align-items: center;
   justify-content: center;
   border: .02rem solid #5BA4D4;
   -webkit-backdrop-filter: blur(6px);
   backdrop-filter: blur(6px);
   box-shadow: 0 0 .03rem #5BA4D4 inset;
   border-radius: .2rem;
   background: rgba(91, 164, 212, 0.15);
   cursor: pointer;
   width: 4.6rem;
   height: 1rem;
   transition: transform .15s, box-shadow .15s, background .15s;
 }

 .enter-button-item:hover {
   background: rgba(91, 164, 212, 0.25);
   box-shadow: 0 0 .04rem #5BA4D4 inset;
   transform: translateY(-2px);
 }

 .enter-button-item:active {
   transform: translateY(0);
   box-shadow: 0 0 .06rem #5BA4D4 inset;
 }

 .enter-button-item .button-icon {
   width: .6rem;
   height: .6rem;
   object-fit: contain;
   margin-right: .1rem;
 }

 .enter-button-item .button-text {
   font-size: .4rem;
   color: #5BA4D4;
   text-align: left;
   white-space: nowrap;
 }

 /* ===== Footer ===== */
 .footer {
   font-size: .24rem;
  padding: .24rem 0 calc(.24rem + env(safe-area-inset-bottom));
   margin-top: auto;
   display: flex;
   justify-content: center;
   align-items: center;
   background: #5BA4D4;
   color: #fff;
  flex-shrink: 0;
 }

 /* ===== Mobile ===== */
 html[data-device=mobile] .lobby-main {
   margin: 0 auto;
   flex: 1;
 }

 html[data-device=mobile] .enter-buttons-list {
   justify-content: center;
 }

 html[data-device=mobile] .enter-button-item {
   width: 4.6rem;
   height: 1rem;
   gap: .16rem;
 }

 html[data-device=mobile] .footer {
  min-height: calc(var(--lobby__vh) * 3.6);
 }

@supports (height: 100dvh) {
  .lobby {
    min-height: 100dvh;
  }
}

 /* ===== Animate ===== */
 .animate__animated {
   animation-duration: 1s;
   animation-fill-mode: both;
 }
 .animate__animated.animate__infinite {
   animation-iteration-count: infinite;
 }

 @keyframes fadeIn {
   from { opacity: 0; }
   to   { opacity: 1; }
 }
 .animate__fadeIn { animation-name: fadeIn; }

 @keyframes fadeInDown {
   from { opacity: 0; transform: translate3d(0, -100%, 0); }
   to   { opacity: 1; transform: translateZ(0); }
 }
 .animate__fadeInDown { animation-name: fadeInDown; }

 @keyframes fadeInUp {
   from { opacity: 0; transform: translate3d(0, 100%, 0); }
   to   { opacity: 1; transform: translateZ(0); }
 }
 .animate__fadeInUp { animation-name: fadeInUp; }

 @keyframes pulse {
   0%  { transform: scale3d(1,1,1); }
   50% { transform: scale3d(1.05,1.05,1.05); }
   to  { transform: scale3d(1,1,1); }
 }
 .animate__pulse {
   animation-name: pulse;
   animation-timing-function: ease-in-out;
 }

 /* ===== 悬浮客服图标 ===== */
 .draggable-icon {
   position: absolute;
   cursor: grab;
   z-index: 9999;
   user-select: none;
   display: flex;
   justify-content: center;
   align-items: center;
   overflow: hidden;
   background: transparent;
   touch-action: none;
   transition: transform .2s ease;
   transform: scale(1);
   right: .2rem;
   bottom: 1.5rem;
   width: .8rem;
   height: .8rem;
 }
 .draggable-icon.dragging { transform: scale(1.1); }
 .draggable-icon:active { cursor: grabbing; }
 .kefu-icon { width: 100%; height: 100%; object-fit: contain; }
