#account-shield,#loading{
  --blue-border:#1174f2;--blue-border-dark:#094bb3;--blue-light:#89c4ff;
  --cream-top:#fff9ec;--cream-bot:#ffe7c2;--input-bg:#eef4ff;--input-border:#689be8;
  --text-dark:#3b2a1e;--text-muted:#5a6475;--link-blue:#0e62d8;
  --orange-top:#ffd12b;--orange-mid:#ff8c00;--orange-bot:#e65100;
}
@keyframes floatSlow{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes gentleBob{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes stripeMove{
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 40px 0, 0 0; }
}

/* account */
#account-shield, #account-shield *{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#account-shield .scene{
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#account-shield .bg-layer{
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
#account-shield .bg-login, #account-shield .bg-register{
  background-image: url('./auth-art/bg.jpg');
}
#account-shield .bg-loading{
  background-image: url('./auth-art/bg.jpg');
  filter: blur(10px) brightness(1.02);
  transform: scale(1.06);
}
#account-shield .bg-loading::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(12, 42, 78, 0.18) 100%);
}
#account-shield .top-controls{
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 30;
  display: flex;
  gap: 10px;
}
#account-shield .icon-square-btn{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 3px solid #ffffff;
  background: linear-gradient(180deg, #4cb4ff 0%, #1678f3 55%, #0c58c4 100%);
  box-shadow: 0 4px 0 #083e91, 0 6px 14px rgba(0, 0, 0, 0.28), inset 0 2px 3px rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.12s ease, filter 0.12s ease;
}
#account-shield .icon-square-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.08);
}
#account-shield .icon-square-btn:active{
  transform: translateY(2px);
  box-shadow: 0 2px 0 #083e91, 0 3px 8px rgba(0, 0, 0, 0.25);
}
#account-shield .icon-square-btn.muted{
  background: linear-gradient(180deg, #9fb3c8 0%, #6b8099 100%);
  box-shadow: 0 4px 0 #46576b, 0 6px 14px rgba(0, 0, 0, 0.25);
}
#account-shield .stage{
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 8px 20px;
  margin: auto;
  transform: translateY(-22px);
}
#account-shield .logo-wrap{
  position: relative;
  z-index: 25;
  margin-bottom: -14px;
  pointer-events: none;
  animation: floatSlow 4s ease-in-out infinite;
}
#account-shield .logo-wrap img{
  width: clamp(220px, 24vw, 330px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 35, 80, 0.32));
}
#account-shield .card-shell{
  position: relative;
  width: min(540px, 88vw);
  margin-top: 2px;
}
#account-shield .card-header-img{
  position: relative;
  z-index: 22;
  display: flex;
  justify-content: center;
  margin-bottom: -44px;
  pointer-events: none;
}
#account-shield .card-header-img img{
  width: min(315px, 72%);
  height: auto;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.28));
}
#account-shield .card-body-panel{
  position: relative;
  z-index: 15;
  border-radius: 30px;
  padding: 6px;
  background: linear-gradient(180deg, #2d9cff 0%, #106ae3 50%, #094bb3 100%);
  box-shadow:
    0 12px 32px rgba(8, 35, 85, 0.42),
    0 6px 0 #073b8f,
    inset 0 2px 3px rgba(255, 255, 255, 0.55);
}
#account-shield .awning-top{
  position: relative;
  height: 36px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  box-shadow: 0 5px 10px rgba(0, 48, 120, 0.25);
}
#account-shield .awning-scallop{
  flex: 1;
  height: 100%;
  border-radius: 0 0 18px 18px;
  position: relative;
  box-shadow: inset 0 -5px 6px rgba(0, 50, 140, 0.22), inset 0 4px 6px rgba(255, 255, 255, 0.45);
}
#account-shield .awning-scallop:nth-child(odd){
  background: linear-gradient(180deg, #329bff 0%, #0f6be6 100%);
}
#account-shield .awning-scallop:nth-child(even){
  background: linear-gradient(180deg, #cbe6ff 0%, #7ec2ff 100%);
}
#account-shield .cream-inner{
  background: linear-gradient(180deg, var(--cream-top) 0%, var(--cream-bot) 100%);
  border-radius: 18px 18px 24px 24px;
  margin-top: -10px;
  padding: 22px 38px 18px;
  border: 2px solid #f7d59c;
  box-shadow: inset 0 4px 12px rgba(196, 130, 50, 0.14);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#account-shield .input-group{
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  background: linear-gradient(180deg, #f8fbff 0%, #e5eeff 100%);
  border: 2px solid var(--input-border);
  border-radius: 999px;
  padding: 0 15px;
  box-shadow: inset 0 2px 5px rgba(22, 82, 175, 0.12), 0 2px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#account-shield .input-group:focus-within{
  border-color: #1174f2;
  box-shadow: 0 0 0 3px rgba(17, 116, 242, 0.2), inset 0 2px 5px rgba(22, 82, 175, 0.12);
}
#account-shield .input-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  color: #146ef0;
  margin-right: 12px;
  padding-right: 10px;
  border-right: 1.5px solid #c6d7f5;
  flex-shrink: 0;
}
#account-shield .input-group input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2b3a4f;
  min-width: 0;
}
#account-shield .input-group input::placeholder{
  color: #6b7b93;
  font-weight: 700;
}
#account-shield .eye-btn{
  background: none;
  border: none;
  cursor: pointer;
  color: #5b6980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 6px;
  transition: color 0.15s ease;
}
#account-shield .eye-btn:hover{
  color: #146ef0;
}
#account-shield .forgot-row{
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 2px;
}
#account-shield .blue-link{
  color: var(--link-blue);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
#account-shield .blue-link:hover{
  color: #08429c;
}
#account-shield .cta-row{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}
#account-shield .burst-side{
  width: 34px;
  height: auto;
  pointer-events: none;
  flex-shrink: 0;
}
#account-shield .burst-left{
  transform: scaleX(-1);
  margin-right: 8px;
}
#account-shield .burst-right{
  margin-left: 8px;
}
#account-shield .btn-primary-game{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 3px solid #d94800;
  background: linear-gradient(180deg, #ffe247 0%, #ffa800 45%, #ff6a00 100%);
  box-shadow:
    0 5px 0 #b83b00,
    0 8px 18px rgba(217, 72, 0, 0.35),
    inset 0 3px 4px rgba(255, 255, 255, 0.78);
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-shadow:
    0 2px 0 #a33300,
    -1px -1px 0 #a33300,
    1px -1px 0 #a33300,
    -1px 1px 0 #a33300,
    1px 1px 0 #a33300;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
#account-shield .btn-primary-game::before{
  content: '';
  position: absolute;
  top: 4px;
  left: 18px;
  right: 18px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
#account-shield .btn-primary-game:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}
#account-shield .btn-primary-game:active{
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b83b00, 0 4px 10px rgba(217, 72, 0, 0.3);
}
#account-shield .divider-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 24px;
  color: #4b3d30;
  font-size: 14px;
  font-weight: 800;
}
#account-shield .divider-row::before, #account-shield .divider-row::after{
  content: '';
  flex: 1;
  height: 1.5px;
  background: #b5a795;
}
#account-shield .btn-secondary-row{
  display: flex;
  justify-content: center;
}
#account-shield .btn-secondary-game{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 215px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2.5px solid #4d8ef0;
  background: linear-gradient(180deg, #ffffff 0%, #e7f0ff 100%);
  box-shadow: 0 3px 0 #8ab4f8, 0 4px 10px rgba(17, 116, 242, 0.18);
  color: #0b5ed7;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
#account-shield .btn-secondary-game:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #d8e8ff 100%);
}
#account-shield .btn-secondary-game:active{
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8ab4f8;
}
#account-shield .social-row{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
#account-shield .social-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
#account-shield .social-btn:hover{
  transform: translateY(-1.5px);
}
#account-shield .social-btn:active{
  transform: translateY(1.5px);
}
#account-shield .social-fb{
  background: linear-gradient(180deg, #2576f5 0%, #0d52c9 100%);
  border: 2px solid #0b46ad;
  color: #ffffff;
  box-shadow: 0 3px 0 #083482, 0 4px 10px rgba(13, 82, 201, 0.25);
}
#account-shield .social-google, #account-shield .social-apple{
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 2px solid #cfd8e6;
  color: #2c3440;
  box-shadow: 0 3px 0 #bcc6d6, 0 4px 10px rgba(0, 0, 0, 0.08);
}
#account-shield .switch-row{
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: #3b2a1e;
  margin-top: 2px;
}
#account-shield .switch-row a{
  color: var(--link-blue);
  text-decoration: underline;
  margin-left: 4px;
}
#account-shield .card-grass-base{
  position: relative;
  z-index: 16;
  height: 18px;
  margin: -10px 18px 0;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #7cd927 0%, #3ca615 70%, #8a4b19 100%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
#account-shield .char-builder-left{
  position: absolute;
  left: -102px;
  bottom: -18px;
  width: clamp(175px, 16vw, 220px);
  height: auto;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.32));
  animation: gentleBob 3.6s ease-in-out infinite;
}
#account-shield .char-building-right{
  position: absolute;
  right: -68px;
  bottom: -14px;
  width: clamp(140px, 13vw, 170px);
  height: auto;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}
#account-shield .loading-stage{
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 10px 20px;
  margin: auto;
  transform: translateY(-22px);
}
#account-shield .loading-logo{
  margin-bottom: -16px;
}
#account-shield .loading-logo img{
  width: clamp(240px, 26vw, 355px);
}
#account-shield .loading-panel-wrap{
  position: relative;
  width: min(600px, 86vw);
  display: flex;
  justify-content: center;
  align-items: center;
}
#account-shield .loading-frame-bg{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 24, 65, 0.42));
}
#account-shield .loading-content-overlay{
  position: absolute;
  left: 9%;
  right: 9%;
  top: 52%;
  bottom: 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
#account-shield .progress-row{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#account-shield .progress-track{
  position: relative;
  flex: 1;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #004bb8 0%, #096ae6 60%, #1982ff 100%);
  border: 3.5px solid #1678f3;
  box-shadow:
    inset 0 4px 8px rgba(0, 25, 80, 0.55),
    0 3px 0 rgba(255, 255, 255, 0.7);
  padding: 4px;
  overflow: hidden;
}
#account-shield .progress-fill{
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.22) 0px,
      rgba(255, 255, 255, 0.22) 14px,
      transparent 14px,
      transparent 28px
    ),
    linear-gradient(180deg, #fff05a 0%, #ffbe0b 55%, #ff8800 100%);
  background-size: 40px 40px, 100% 100%;
  box-shadow:
    inset 0 3px 4px rgba(255, 255, 255, 0.78),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition: width 0.25s ease-out;
  animation: stripeMove 1.1s linear infinite;
}
#account-shield .progress-percent{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    0 2px 0 #7a3400,
    -1.5px -1.5px 0 #7a3400,
    1.5px -1.5px 0 #7a3400,
    -1.5px 1.5px 0 #7a3400,
    1.5px 1.5px 0 #7a3400;
  pointer-events: none;
}
#account-shield .loading-status-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #3f2614;
  font-size: clamp(14px, 1.9vw, 18px);
  font-weight: 800;
}
#account-shield .loading-status-row img{
  width: 34px;
  height: auto;
}
#account-shield .loading-char-left{
  position: absolute;
  left: -210px;
  bottom: -24px;
  width: clamp(190px, 20vw, 265px);
  height: auto;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
#account-shield .loading-char-right{
  position: absolute;
  right: -195px;
  bottom: -16px;
  width: clamp(175px, 18.5vw, 245px);
  height: auto;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
#account-shield .toast{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.88) 0%, rgba(255, 236, 198, 0.84) 100%);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  color: #3b2a1e;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 2.5px solid #1678f3;
  box-shadow:
    0 3px 0 #0c58c4,
    0 10px 26px rgba(9, 75, 179, 0.28),
    inset 0 2px 3px rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
}
#account-shield .toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 1020px){#account-shield .loading-char-left{
    left: -95px;
    width: 165px;
  }
#account-shield .loading-char-right{
    right: -85px;
    width: 155px;
  }}
@media (max-width: 820px){#account-shield .char-builder-left{
    left: -40px;
    width: 145px;
    bottom: -18px;
  }
#account-shield .char-building-right{
    right: -28px;
    width: 115px;
    bottom: -14px;
  }
#account-shield .cream-inner{
    padding: 20px 22px 18px;
  }
#account-shield .loading-char-left{
    left: -40px;
    width: 130px;
  }
#account-shield .loading-char-right{
    right: -35px;
    width: 120px;
  }}
@media (max-width: 560px){#account-shield .char-builder-left, #account-shield .char-building-right{
    display: none;
  }
#account-shield .loading-char-left, #account-shield .loading-char-right{
    opacity: 0.92;
    width: 110px;
  }
#account-shield .btn-primary-game{
    min-width: 210px;
    font-size: 19px;
  }}

/* loading */
#loading, #loading *{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
#loading .scene{
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#loading .bg-layer{
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
#loading .bg-login, #loading .bg-register{
  background-image: url('./auth-art/bg.jpg');
}
#loading .bg-loading{
  background-image: url('./auth-art/bg.jpg');
  filter: blur(10px) brightness(1.02);
  transform: scale(1.06);
}
#loading .bg-loading::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(12, 42, 78, 0.18) 100%);
}
#loading .top-controls{
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 30;
  display: flex;
  gap: 10px;
}
#loading .icon-square-btn{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 3px solid #ffffff;
  background: linear-gradient(180deg, #4cb4ff 0%, #1678f3 55%, #0c58c4 100%);
  box-shadow: 0 4px 0 #083e91, 0 6px 14px rgba(0, 0, 0, 0.28), inset 0 2px 3px rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.12s ease, filter 0.12s ease;
}
#loading .icon-square-btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.08);
}
#loading .icon-square-btn:active{
  transform: translateY(2px);
  box-shadow: 0 2px 0 #083e91, 0 3px 8px rgba(0, 0, 0, 0.25);
}
#loading .icon-square-btn.muted{
  background: linear-gradient(180deg, #9fb3c8 0%, #6b8099 100%);
  box-shadow: 0 4px 0 #46576b, 0 6px 14px rgba(0, 0, 0, 0.25);
}
#loading .stage{
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 8px 20px;
  margin: auto;
  transform: translateY(-22px);
}
#loading .logo-wrap{
  position: relative;
  z-index: 25;
  margin-bottom: -14px;
  pointer-events: none;
  animation: floatSlow 4s ease-in-out infinite;
}
#loading .logo-wrap img{
  width: clamp(220px, 24vw, 330px);
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 35, 80, 0.32));
}
#loading .card-shell{
  position: relative;
  width: min(540px, 88vw);
  margin-top: 2px;
}
#loading .card-header-img{
  position: relative;
  z-index: 22;
  display: flex;
  justify-content: center;
  margin-bottom: -44px;
  pointer-events: none;
}
#loading .card-header-img img{
  width: min(315px, 72%);
  height: auto;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.28));
}
#loading .card-body-panel{
  position: relative;
  z-index: 15;
  border-radius: 30px;
  padding: 6px;
  background: linear-gradient(180deg, #2d9cff 0%, #106ae3 50%, #094bb3 100%);
  box-shadow:
    0 12px 32px rgba(8, 35, 85, 0.42),
    0 6px 0 #073b8f,
    inset 0 2px 3px rgba(255, 255, 255, 0.55);
}
#loading .awning-top{
  position: relative;
  height: 36px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  box-shadow: 0 5px 10px rgba(0, 48, 120, 0.25);
}
#loading .awning-scallop{
  flex: 1;
  height: 100%;
  border-radius: 0 0 18px 18px;
  position: relative;
  box-shadow: inset 0 -5px 6px rgba(0, 50, 140, 0.22), inset 0 4px 6px rgba(255, 255, 255, 0.45);
}
#loading .awning-scallop:nth-child(odd){
  background: linear-gradient(180deg, #329bff 0%, #0f6be6 100%);
}
#loading .awning-scallop:nth-child(even){
  background: linear-gradient(180deg, #cbe6ff 0%, #7ec2ff 100%);
}
#loading .cream-inner{
  background: linear-gradient(180deg, var(--cream-top) 0%, var(--cream-bot) 100%);
  border-radius: 18px 18px 24px 24px;
  margin-top: -10px;
  padding: 22px 38px 18px;
  border: 2px solid #f7d59c;
  box-shadow: inset 0 4px 12px rgba(196, 130, 50, 0.14);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#loading .input-group{
  position: relative;
  display: flex;
  align-items: center;
  height: 42px;
  background: linear-gradient(180deg, #f8fbff 0%, #e5eeff 100%);
  border: 2px solid var(--input-border);
  border-radius: 999px;
  padding: 0 15px;
  box-shadow: inset 0 2px 5px rgba(22, 82, 175, 0.12), 0 2px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#loading .input-group:focus-within{
  border-color: #1174f2;
  box-shadow: 0 0 0 3px rgba(17, 116, 242, 0.2), inset 0 2px 5px rgba(22, 82, 175, 0.12);
}
#loading .input-icon{
  display: flex;
  align-items: center;
  justify-content: center;
  color: #146ef0;
  margin-right: 12px;
  padding-right: 10px;
  border-right: 1.5px solid #c6d7f5;
  flex-shrink: 0;
}
#loading .input-group input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2b3a4f;
  min-width: 0;
}
#loading .input-group input::placeholder{
  color: #6b7b93;
  font-weight: 700;
}
#loading .eye-btn{
  background: none;
  border: none;
  cursor: pointer;
  color: #5b6980;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: 6px;
  transition: color 0.15s ease;
}
#loading .eye-btn:hover{
  color: #146ef0;
}
#loading .forgot-row{
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 2px;
}
#loading .blue-link{
  color: var(--link-blue);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
#loading .blue-link:hover{
  color: #08429c;
}
#loading .cta-row{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
}
#loading .burst-side{
  width: 34px;
  height: auto;
  pointer-events: none;
  flex-shrink: 0;
}
#loading .burst-left{
  transform: scaleX(-1);
  margin-right: 8px;
}
#loading .burst-right{
  margin-left: 8px;
}
#loading .btn-primary-game{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 3px solid #d94800;
  background: linear-gradient(180deg, #ffe247 0%, #ffa800 45%, #ff6a00 100%);
  box-shadow:
    0 5px 0 #b83b00,
    0 8px 18px rgba(217, 72, 0, 0.35),
    inset 0 3px 4px rgba(255, 255, 255, 0.78);
  color: #ffffff;
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-shadow:
    0 2px 0 #a33300,
    -1px -1px 0 #a33300,
    1px -1px 0 #a33300,
    -1px 1px 0 #a33300,
    1px 1px 0 #a33300;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
#loading .btn-primary-game::before{
  content: '';
  position: absolute;
  top: 4px;
  left: 18px;
  right: 18px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
#loading .btn-primary-game:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}
#loading .btn-primary-game:active{
  transform: translateY(3px);
  box-shadow: 0 2px 0 #b83b00, 0 4px 10px rgba(217, 72, 0, 0.3);
}
#loading .divider-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 24px;
  color: #4b3d30;
  font-size: 14px;
  font-weight: 800;
}
#loading .divider-row::before, #loading .divider-row::after{
  content: '';
  flex: 1;
  height: 1.5px;
  background: #b5a795;
}
#loading .btn-secondary-row{
  display: flex;
  justify-content: center;
}
#loading .btn-secondary-game{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 215px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2.5px solid #4d8ef0;
  background: linear-gradient(180deg, #ffffff 0%, #e7f0ff 100%);
  box-shadow: 0 3px 0 #8ab4f8, 0 4px 10px rgba(17, 116, 242, 0.18);
  color: #0b5ed7;
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
#loading .btn-secondary-game:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #d8e8ff 100%);
}
#loading .btn-secondary-game:active{
  transform: translateY(2px);
  box-shadow: 0 1px 0 #8ab4f8;
}
#loading .social-row{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
#loading .social-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
#loading .social-btn:hover{
  transform: translateY(-1.5px);
}
#loading .social-btn:active{
  transform: translateY(1.5px);
}
#loading .social-fb{
  background: linear-gradient(180deg, #2576f5 0%, #0d52c9 100%);
  border: 2px solid #0b46ad;
  color: #ffffff;
  box-shadow: 0 3px 0 #083482, 0 4px 10px rgba(13, 82, 201, 0.25);
}
#loading .social-google, #loading .social-apple{
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border: 2px solid #cfd8e6;
  color: #2c3440;
  box-shadow: 0 3px 0 #bcc6d6, 0 4px 10px rgba(0, 0, 0, 0.08);
}
#loading .switch-row{
  text-align: center;
  font-size: 14.5px;
  font-weight: 800;
  color: #3b2a1e;
  margin-top: 2px;
}
#loading .switch-row a{
  color: var(--link-blue);
  text-decoration: underline;
  margin-left: 4px;
}
#loading .card-grass-base{
  position: relative;
  z-index: 16;
  height: 18px;
  margin: -10px 18px 0;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #7cd927 0%, #3ca615 70%, #8a4b19 100%);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
#loading .char-builder-left{
  position: absolute;
  left: -102px;
  bottom: -18px;
  width: clamp(175px, 16vw, 220px);
  height: auto;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.32));
  animation: gentleBob 3.6s ease-in-out infinite;
}
#loading .char-building-right{
  position: absolute;
  right: -68px;
  bottom: -14px;
  width: clamp(140px, 13vw, 170px);
  height: auto;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}
#loading .loading-stage{
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding: 10px 20px;
  margin: auto;
  transform: translateY(-22px);
}
#loading .loading-logo{
  margin-bottom: -16px;
}
#loading .loading-logo img{
  width: clamp(240px, 26vw, 355px);
}
#loading .loading-panel-wrap{
  position: relative;
  width: min(600px, 86vw);
  display: flex;
  justify-content: center;
  align-items: center;
}
#loading .loading-frame-bg{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 24, 65, 0.42));
}
#loading .loading-content-overlay{
  position: absolute;
  left: 9%;
  right: 9%;
  top: 52%;
  bottom: 15%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
#loading .progress-row{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#loading .progress-track{
  position: relative;
  flex: 1;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #004bb8 0%, #096ae6 60%, #1982ff 100%);
  border: 3.5px solid #1678f3;
  box-shadow:
    inset 0 4px 8px rgba(0, 25, 80, 0.55),
    0 3px 0 rgba(255, 255, 255, 0.7);
  padding: 4px;
  overflow: hidden;
}
#loading .progress-fill{
  position: relative;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      -55deg,
      rgba(255, 255, 255, 0.22) 0px,
      rgba(255, 255, 255, 0.22) 14px,
      transparent 14px,
      transparent 28px
    ),
    linear-gradient(180deg, #fff05a 0%, #ffbe0b 55%, #ff8800 100%);
  background-size: 40px 40px, 100% 100%;
  box-shadow:
    inset 0 3px 4px rgba(255, 255, 255, 0.78),
    0 2px 6px rgba(0, 0, 0, 0.25);
  transition: width 0.25s ease-out;
  animation: stripeMove 1.1s linear infinite;
}
#loading .progress-percent{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    0 2px 0 #7a3400,
    -1.5px -1.5px 0 #7a3400,
    1.5px -1.5px 0 #7a3400,
    -1.5px 1.5px 0 #7a3400,
    1.5px 1.5px 0 #7a3400;
  pointer-events: none;
}
#loading .loading-status-row{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #3f2614;
  font-size: clamp(14px, 1.9vw, 18px);
  font-weight: 800;
}
#loading .loading-status-row img{
  width: 34px;
  height: auto;
}
#loading .loading-char-left{
  position: absolute;
  left: -210px;
  bottom: -24px;
  width: clamp(190px, 20vw, 265px);
  height: auto;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
#loading .loading-char-right{
  position: absolute;
  right: -195px;
  bottom: -16px;
  width: clamp(175px, 18.5vw, 245px);
  height: auto;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}
#loading .toast{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(180deg, rgba(255, 251, 240, 0.88) 0%, rgba(255, 236, 198, 0.84) 100%);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  color: #3b2a1e;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 2.5px solid #1678f3;
  box-shadow:
    0 3px 0 #0c58c4,
    0 10px 26px rgba(9, 75, 179, 0.28),
    inset 0 2px 3px rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100;
}
#loading .toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 1020px){#loading .loading-char-left{
    left: -95px;
    width: 165px;
  }
#loading .loading-char-right{
    right: -85px;
    width: 155px;
  }}
@media (max-width: 820px){#loading .char-builder-left{
    left: -40px;
    width: 145px;
    bottom: -18px;
  }
#loading .char-building-right{
    right: -28px;
    width: 115px;
    bottom: -14px;
  }
#loading .cream-inner{
    padding: 20px 22px 18px;
  }
#loading .loading-char-left{
    left: -40px;
    width: 130px;
  }
#loading .loading-char-right{
    right: -35px;
    width: 120px;
  }}
@media (max-width: 560px){#loading .char-builder-left, #loading .char-building-right{
    display: none;
  }
#loading .loading-char-left, #loading .loading-char-right{
    opacity: 0.92;
    width: 110px;
  }
#loading .btn-primary-game{
    min-width: 210px;
    font-size: 19px;
  }}

/* ---- harness/base ---- */
#account-shield,#loading{font-family:'Nunito','Segoe UI',sans-serif}
#account-shield .sr-only,#loading .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
#account-shield .gate-vh,#loading .gate-vh{display:none!important}
#account-shield [data-register-only][hidden],#account-shield [data-login-only][hidden]{display:none!important}
#account-shield{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:0;background:linear-gradient(135deg,#062f4bcc,#092546d9);backdrop-filter:blur(9px);overflow-y:auto}
#account-shield[hidden]{display:none!important}
#account-shield #account-dialog{display:block;width:100vw;height:100vh;min-height:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit}
#account-dialog::before,#account-dialog::after{display:none!important}
#account-dialog .header-register{display:none}
#account-dialog[data-view=register] .header-login{display:none}
#account-dialog[data-view=register] .header-register{display:block}
#account-dialog[data-view=login] .top-controls{display:none}
#account-dialog[data-view=login] .char-register-img{display:none}
#account-dialog[data-view=register] .char-login-img{display:none}
#account-dialog[data-view=register] .submit-icon{display:none}
#account-shield .auth-close{position:absolute;top:16px;right:18px;z-index:60;width:44px;height:44px;border:3px solid #fff;border-radius:14px;background:linear-gradient(180deg,#4cb4ff 0%,#1678f3 55%,#0c58c4 100%);box-shadow:0 4px 0 #083e91,0 6px 14px rgba(0,0,0,.28);color:#fff;font:900 24px/1 inherit;cursor:pointer}
#account-shield[data-locked=true] .auth-close{display:none!important}
#loading{position:absolute;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0;background:#48a7f5}
#loading .loading-card{position:relative;z-index:2;width:min(600px,86vw);padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;text-align:initial}
#loading .loading-message{min-height:0;margin:0;color:inherit;font:inherit;font-weight:800}
#loading .loading-progress{position:relative;flex:1;height:44px;margin:0;overflow:hidden;border:3.5px solid #1678f3;border-radius:999px;background:linear-gradient(180deg,#004bb8 0%,#096ae6 60%,#1982ff 100%);box-shadow:inset 0 4px 8px rgba(0,25,80,.55),0 3px 0 rgba(255,255,255,.7);padding:4px}
#loading .progress-fill{width:var(--loading-progress,0%)}
html[data-auth-gate="1"] #loading{visibility:hidden}
