.gacha-header {
  top: 0;
  left: 0;
  z-index: 100;
  color: #fff;
  background:
    radial-gradient(circle at 18% -20%, rgba(38, 221, 255, 0.38), transparent 34%),
    radial-gradient(circle at 86% 110%, rgba(255, 58, 159, 0.32), transparent 30%),
    linear-gradient(135deg, rgba(5, 9, 22, 0.96), rgba(18, 21, 42, 0.94) 54%, rgba(9, 7, 18, 0.96));
  border-bottom: 1px solid rgba(255, 221, 132, 0.45);
  box-shadow:
    0 0 28px rgba(0, 229, 255, 0.24),
    0 10px 24px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.gacha-header::before,
.gacha-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.gacha-header::before {
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent),
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 32px);
  opacity: 0.42;
}

.gacha-header::after {
  right: 18%;
  bottom: -1px;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38e8ff, #ffd76d, #ff4da6, transparent);
  filter: drop-shadow(0 0 8px rgba(56, 232, 255, 0.95));
}

.gacha-header__test-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  margin: 0;
  color: #ffdd58;
  text-align: center;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0;
  background: rgba(0, 0, 0, 0.65);
}

.gacha-header__container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  padding: 2px 14px;
}

.gacha-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  gap: 12px;
}

.gacha-header__brand-wrap {
  flex: 0 1 220px;
  min-width: 112px;
  margin: 0;
}

.gacha-header__brand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(0, 229, 255, 0.14);
}

.gacha-header__logo {
  display: block;
  width: auto;
  max-width: 172px;
  /* height: 38px; */
  height:3.2rem;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.gacha-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 8px;
}

.gacha-header__status {
  display: inline-flex;
  align-items: center;
  min-width: 118px;
  height: 42px;
  padding: 5px 10px 5px 6px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(5, 10, 24, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.gacha-header__status:hover,
.gacha-header__login:hover,
.gacha-header__menu:hover {
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(255, 221, 112, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(255, 213, 90, 0.25);
}

.gacha-header__icon {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  color: #07101f;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.65), 0 0 12px rgba(255, 255, 255, 0.18);
}

.gacha-header__icon--point {
  background: linear-gradient(135deg, #fff3a4, #ffbd38 54%, #c87509);
}

.gacha-header__icon--ticket {
  background: linear-gradient(135deg, #baf5ff, #34d6ff 54%, #1972ff);
}

.gacha-header__icon--prize {
  background: linear-gradient(135deg, #ffd0ee, #ff5caf 54%, #8d37ff);
}

.gacha-header__status-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.gacha-header__label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
  font-weight: 800;
}

.gacha-header__value {
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.28);
}

.gacha-header__value small {
  margin-left: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.gacha-header__rank {
  display: grid;
  place-items: center;
  width: 72px;
  height: 42px;
  padding: 4px;
  border: 1px solid rgba(255, 221, 112, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 221, 112, 0.18), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 0 12px rgba(255, 221, 112, 0.14), 0 0 16px rgba(255, 221, 112, 0.16);
}

.gacha-header__rank-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gacha-header__menu {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(56, 232, 255, 0.58);
  border-radius: 50%;
  background: rgba(8, 13, 30, 0.8);
  box-shadow: 0 0 18px rgba(56, 232, 255, 0.22);
}

.gacha-header__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.gacha-header__menu-mark {
  position: absolute;
  right: -3px;
  bottom: -1px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #07101f;
  font-size: 15px;
  line-height: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff3a4, #ffbd38);
  box-shadow: 0 0 10px rgba(255, 189, 56, 0.68);
}

.gacha-header__login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid rgba(255, 221, 112, 0.68);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 210, 82, 0.34), rgba(255, 58, 159, 0.16));
}

@media (max-width: 991.98px) {
  .gacha-header__brand-wrap {
    flex-basis: 172px;
  }

  .gacha-header__status {
    min-width: auto;
    padding-right: 8px;
  }

  .gacha-header__status--prize {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .gacha-header__container {
    padding: 2px 10px;
  }

  .gacha-header__nav {
    min-height: 48px;
    gap: 8px;
  }

  .gacha-header__brand-wrap {
    flex-basis: auto;
    min-width: 92px;
  }

  .gacha-header__brand {
    padding: 5px 8px;
  }

  .gacha-header__logo {
    max-width: 116px;
    height: 32px;
  }

  .gacha-header__status {
    height: 38px;
    padding: 4px 8px 4px 5px;
  }

  .gacha-header__icon {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    margin-right: 5px;
  }

  .gacha-header__label {
    display: none;
  }

  .gacha-header__value {
    margin-top: 0;
    font-size: 14px;
  }

  .gacha-header__rank {
    width: 54px;
    height: 38px;
  }

  .gacha-header__menu {
    width: 42px;
    height: 42px;
  }

  .gacha-header__avatar {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 575.98px) {
  .gacha-header__actions {
    gap: 6px;
  }

  .gacha-header__status--ticket {
    display: none;
  }
}

@media (max-width: 399.98px) {
  .gacha-header__rank {
    display: none;
  }

  .gacha-header__value {
    font-size: 13px;
  }

  .gacha-header__logo {
    max-width: 100px;
  }
}

.social-offcanvas {
  width: min(390px, 92vw);
  min-width: 300px;
  color: #fff;
  border-left: 1px solid rgba(255, 221, 112, 0.42);
  background:
    radial-gradient(circle at 18% 0%, rgba(56, 232, 255, 0.32), transparent 34%),
    radial-gradient(circle at 95% 22%, rgba(255, 77, 166, 0.26), transparent 32%),
    linear-gradient(160deg, rgba(5, 9, 22, 0.98), rgba(14, 18, 38, 0.97) 58%, rgba(9, 7, 18, 0.98));
  box-shadow:
    -18px 0 34px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(56, 232, 255, 0.22);
}

.social-offcanvas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.07)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 34px);
  opacity: 0.5;
}

.social-offcanvas__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 221, 112, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 -1px 0 rgba(56, 232, 255, 0.28);
}

.social-offcanvas__eyebrow {
  color: rgba(255, 221, 112, 0.92);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.social-offcanvas__title {
  margin: 5px 0 0;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(56, 232, 255, 0.34);
}

.social-offcanvas__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #07101f;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff3a4, #ffbd38);
  box-shadow: 0 0 14px rgba(255, 189, 56, 0.35);
}

.social-offcanvas__body {
  position: relative;
  z-index: 1;
  padding: 0;
  scrollbar-color: rgba(255, 221, 112, 0.74) rgba(255, 255, 255, 0.08);
}

.social-offcanvas__profile {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 221, 112, 0.2), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)) !important;
}

.social-offcanvas__profile a {
  color: #fff;
}

.social-offcanvas__toggle-wrap {
  width: 5.4rem;
}

.social-offcanvas__toggle {
  width: 100%;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-decoration: none;
  border: 0;
  background: transparent;
}

.social-offcanvas__rank-panel {
  padding: 10px;
  border: 1px solid rgba(255, 221, 112, 0.28);
  border-radius: 8px;
  background: rgba(5, 10, 24, 0.42);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.05);
}

.social-offcanvas__wallet {
  padding: 12px 10px 0;
  border-top-color: rgba(255, 255, 255, 0.16) !important;
}

.social-offcanvas__wallet .btn {
  color: #07101f !important;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: linear-gradient(135deg, #fff3a4, #ffbd38) !important;
}

.social-offcanvas__prize-link:hover {
  color: #fff;
}

.social-offcanvas .social-offcanvas__section {
  border-top: 1px solid rgba(255, 221, 112, 0.3);
  border-bottom: 1px solid rgba(56, 232, 255, 0.16);
  background:
    radial-gradient(circle at 8% 0%, rgba(56, 232, 255, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(13, 18, 42, 0.98), rgba(22, 34, 68, 0.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.social-offcanvas__section-title {
  margin: 0 0 10px;
  color: rgba(255, 221, 112, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.social-offcanvas__menu-card {
  min-height: 74px;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(5, 10, 24, 0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 14px rgba(0, 0, 0, 0.22) !important;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.social-offcanvas__menu-card:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 232, 255, 0.66) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 18px rgba(56, 232, 255, 0.22) !important;
}

.social-offcanvas__menu-card svg,
.social-offcanvas__menu-card img {
  color: #ffdd70;
  filter: drop-shadow(0 0 8px rgba(255, 221, 112, 0.22));
}

.social-offcanvas .text-secondary,
.social-offcanvas .form-text,
.social-offcanvas__menu-card .text-secondary {
  color: rgba(255, 255, 255, 0.68) !important;
}

.social-offcanvas .text-dark {
  color: #fff !important;
}

.social-offcanvas .list-group {
  color: #102033;
  border-color: rgba(56, 89, 130, 0.14);
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.98), rgba(248, 251, 255, 0.98) 42%, rgba(241, 247, 255, 0.98)) !important;
}

.social-offcanvas .list-group-item {
  color: #102033;
  border-color: rgba(56, 89, 130, 0.14);
  background: transparent !important;
}

.social-offcanvas .social-offcanvas__campaign {
  padding: 16px 14px 8px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(232, 241, 255, 0.98), rgba(248, 251, 255, 0.98)) !important;
}

.social-offcanvas .social-offcanvas__campaign .card {
  box-shadow:
    0 12px 26px rgba(16, 32, 51, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.86) !important;
}

.social-offcanvas .social-offcanvas__footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 14px 24px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.98)) !important;
}

.social-offcanvas .social-offcanvas__campaign + .social-offcanvas__footer {
  margin-top: 0;
  box-shadow: inset 0 18px 22px -28px rgba(56, 89, 130, 0.28);
}

.social-offcanvas__footer-logo {
  display: block;
  height: 4rem;
  margin: 0 auto;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.28));
}

.social-offcanvas__copyright {
  display: block;
  margin-top: 6px;
  color: rgba(16, 32, 51, 0.64);
}

.social-offcanvas .social-offcanvas__pwa {
  padding-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(228, 239, 255, 0.94)) !important;
}

.social-offcanvas .list-group a,
.social-offcanvas .list-group .text-dark {
  color: #102033 !important;
}

.social-offcanvas .list-group .text-secondary,
.social-offcanvas .list-group .form-text {
  color: rgba(16, 32, 51, 0.68) !important;
}

@media (max-width: 575.98px) {
  .social-offcanvas {
    width: 92vw;
    min-width: 0;
  }

  .social-offcanvas__menu-card {
    min-height: 68px;
  }
}
