/* ================= Global Reset ================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url("assets/normal.png"), auto;
  font-family: 'Segoe UI', sans-serif;
}

body {
  overflow: hidden;
  color: white;
  background: black;
}

/* ================= Background ================= */

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bg-effects.effect-active {
  opacity: 1;
}

.effect-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.bg-effects.effect-snow .effect-snow,
.bg-effects.effect-thunder .effect-thunder,
.bg-effects.effect-fog .effect-fog,
.bg-effects.effect-shooting .effect-shooting,
.bg-effects.effect-stars .effect-stars,
.bg-effects.effect-heart .effect-heart {
  opacity: 1;
}

.snowflake-area {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -2vh;
  font-size: 5px;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.snowflake._md {
  font-size: 1.15em;
}

.snowflake._lg {
  font-size: 1.5em;
}

@keyframes flickr {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

@keyframes fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(20vw, 110vh) rotate(360deg);
  }
}

.effect-thunder {
  background: rgba(10, 10, 10, 0.25);
}

.thunder-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(10, 10, 10, 0.28);
}

.thunder-fog {
  width: 100%;
  height: 80px;
  position: absolute;
  left: 0;
  top: 0;
  backdrop-filter: blur(20px);
}

.effect-fog {
  overflow: hidden;
  filter: blur(1px) grayscale(0.2) saturate(1.2) sepia(0.2);
}

#foglayer_01,
#foglayer_02,
#foglayer_03 {
  height: 100%;
  position: absolute;
  width: 200%;
}

#foglayer_01 .image01,
#foglayer_01 .image02,
#foglayer_02 .image01,
#foglayer_02 .image02,
#foglayer_03 .image01,
#foglayer_03 .image02 {
  float: left;
  height: 100%;
  width: 50%;
}

#foglayer_01 {
  animation: foglayer_01_opacity 10s linear infinite, foglayer_moveme 15s linear infinite;
}

#foglayer_02,
#foglayer_03 {
  animation: foglayer_02_opacity 21s linear infinite, foglayer_moveme 13s linear infinite;
}

#foglayer_01 .image01,
#foglayer_01 .image02 {
  background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png") center center/cover no-repeat transparent;
}

#foglayer_02 .image01,
#foglayer_02 .image02,
#foglayer_03 .image01,
#foglayer_03 .image02 {
  background: url("https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog2.png") center center/cover no-repeat transparent;
}

@keyframes foglayer_01_opacity {
  0% { opacity: .1; }
  22% { opacity: .5; }
  40% { opacity: .28; }
  58% { opacity: .4; }
  80% { opacity: .16; }
  100% { opacity: .1; }
}

@keyframes foglayer_02_opacity {
  0% { opacity: .5; }
  25% { opacity: .2; }
  50% { opacity: .1; }
  80% { opacity: .3; }
  100% { opacity: .5; }
}

@keyframes foglayer_03_opacity {
  0% { opacity: .8; }
  27% { opacity: .2; }
  52% { opacity: .6; }
  68% { opacity: .3; }
  100% { opacity: .8; }
}

@keyframes foglayer_moveme {
  0% { left: 0; }
  100% { left: -100%; }
}

@media only screen and (min-width: 280px) and (max-width: 767px) {
  #foglayer_01 .image01,
  #foglayer_01 .image02,
  #foglayer_02 .image01,
  #foglayer_02 .image02,
  #foglayer_03 .image01,
  #foglayer_03 .image02 {
    width: 100%;
  }
}

.effect-shooting {
  overflow: hidden;
}

.shooting-stars {
  position: absolute;
  inset: 0;
  background: url("assets/shooting star/bg0.jpg") center / cover no-repeat;
  animation: shootingBgZoom 50s linear infinite;
}

@keyframes shootingBgZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

.shooting-stars span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 0 8px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(255, 255, 255, 0.95);
  animation: shootingStar 3s linear infinite;
}

.shooting-stars span::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
}

@keyframes shootingStar {
  0% {
    transform: rotate(315deg) translateX(0);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: rotate(315deg) translateX(-1200px);
    opacity: 0;
  }
}

.shooting-stars span:nth-child(1) {
  top: 0;
  right: 0;
  left: initial;
  animation-delay: 0s;
  animation-duration: 1s;
}

.shooting-stars span:nth-child(2) {
  top: 0;
  right: 80px;
  left: initial;
  animation-delay: 0.2s;
  animation-duration: 3s;
}

.shooting-stars span:nth-child(3) {
  top: 80px;
  right: 0;
  left: initial;
  animation-delay: 0.4s;
  animation-duration: 2s;
}

.shooting-stars span:nth-child(4) {
  top: 0;
  right: 180px;
  left: initial;
  animation-delay: 0.6s;
  animation-duration: 1.5s;
}

.shooting-stars span:nth-child(5) {
  top: 0;
  right: 400px;
  left: initial;
  animation-delay: 0.8s;
  animation-duration: 2.5s;
}

.shooting-stars span:nth-child(6) {
  top: 0;
  right: 600px;
  left: initial;
  animation-delay: 1s;
  animation-duration: 3s;
}

.shooting-stars span:nth-child(7) {
  top: 300px;
  right: 0;
  left: initial;
  animation-delay: 1s;
  animation-duration: 1.75s;
}

.shooting-stars span:nth-child(8) {
  top: 0;
  right: 700px;
  left: initial;
  animation-delay: 1.4s;
  animation-duration: 1.25s;
}

.shooting-stars span:nth-child(9) {
  top: 0;
  right: 1000px;
  left: initial;
  animation-delay: 0.75s;
  animation-duration: 2.25s;
}

.shooting-stars span:nth-child(10) {
  top: 0;
  right: 1000px;
  left: initial;
  animation-delay: 2.75s;
  animation-duration: 2.25s;
}

#star-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle var(--duration, 3s) infinite ease-in-out;
  transform-origin: center;
  will-change: top, transform, opacity;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.heart-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

/* ================= Card ================= */

.cards-row {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  filter: drop-shadow(0 14px 36px rgba(6, 10, 24, 0.45));
}

.card-switch {
  position: absolute;
  top: -36px;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.switch-card {
  display: none;
}

.switch-card.is-card-active {
  display: block;
}

.card {
  --card-alpha: 0.75;
  --card-border-alpha: 0.1;
  --card-shadow-alpha: 0.18;
  position: relative;
  background:
    radial-gradient(140% 120% at 8% -10%, rgba(120, 140, 255, 0.22) 0%, rgba(120, 140, 255, 0) 46%),
    radial-gradient(130% 120% at 92% 118%, rgba(140, 220, 255, 0.16) 0%, rgba(140, 220, 255, 0) 50%),
    rgba(18, 18, 22, var(--card-alpha));
  border: 1px solid rgba(255, 255, 255, var(--card-border-alpha));
  padding: 45px;
  border-radius: 22px;
  text-align: center;
  backdrop-filter: blur(24px) saturate(1.08);
  box-shadow:
    0 20px 48px rgba(6, 10, 22, 0.5),
    0 0 60px rgba(88, 101, 242, var(--card-shadow-alpha)),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-width: 380px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.55;
}

.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.8;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 58px rgba(6, 10, 22, 0.6),
    0 0 74px rgba(88, 101, 242, calc(var(--card-shadow-alpha) + 0.08)),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-card.is-hidden {
  display: none;
}

.steam-card {
  --card-alpha: 0.72;
  --card-border-alpha: 0.12;
  --card-shadow-alpha: 0.15;
  position: relative;
  width: 320px;
  background:
    radial-gradient(130% 115% at 10% -12%, rgba(110, 188, 255, 0.2) 0%, rgba(110, 188, 255, 0) 48%),
    radial-gradient(120% 110% at 96% 118%, rgba(104, 132, 255, 0.17) 0%, rgba(104, 132, 255, 0) 52%),
    rgba(18, 18, 22, var(--card-alpha));
  border: 1px solid rgba(255, 255, 255, var(--card-border-alpha));
  border-radius: 22px;
  padding: 24px 20px;
  backdrop-filter: blur(20px) saturate(1.08);
  box-shadow:
    0 18px 42px rgba(6, 12, 24, 0.5),
    0 0 40px rgba(44, 132, 255, var(--card-shadow-alpha)),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.steam-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  opacity: 0.55;
}

.steam-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.8;
}

.steam-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 24px 52px rgba(6, 12, 24, 0.58),
    0 0 55px rgba(44, 132, 255, calc(var(--card-shadow-alpha) + 0.08)),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.steam-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 14px rgba(113, 168, 255, 0.4);
}

.steam-profile-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.steam-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.24);
  object-fit: cover;
  box-shadow:
    0 0 0 6px rgba(115, 164, 255, 0.12),
    0 10px 24px rgba(18, 36, 76, 0.35);
}

.steam-name {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #f2f2f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-profile-link:hover .steam-name {
  text-decoration: underline;
}

.steam-meta {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.steam-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.steam-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.steam-label {
  font-size: 13px;
  opacity: 0.7;
}

.steam-value {
  font-size: 14px;
  font-weight: 600;
  color: #d8e8ff;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steam-games {
  margin-top: 14px;
  text-align: left;
}

.steam-games-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.steam-games-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.steam-games-chevron {
  font-size: 13px;
  opacity: 0.78;
  transition: transform 0.2s ease;
}

.steam-games-toggle[aria-expanded="true"] .steam-games-chevron {
  transform: rotate(180deg);
}

.steam-activity-box {
  margin-top: 12px;
}

.steam-activity-image {
  width: 96px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
}

.steam-activity-kind {
  color: #7dc3ff;
}

.steam-cache-note {
  margin-top: 10px;
  font-size: 12px;
  opacity: 0.72;
  color: #c9dcf9;
  text-align: left;
}

.steam-games-title {
  font-size: 13px;
  letter-spacing: 0.3px;
  opacity: 0.82;
}

.steam-games-list {
  margin-top: 7px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  cursor: url("assets/normal.png") 0 0, auto;
}

.steam-games-list * {
  cursor: url("assets/normal.png") 0 0, auto;
}

.steam-games-list::-webkit-scrollbar,
.steam-games-list::-webkit-scrollbar-track,
.steam-games-list::-webkit-scrollbar-thumb,
.steam-games-list::-webkit-scrollbar-corner {
  cursor: url("assets/normal.png") 0 0, auto;
}

.steam-game-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.steam-game-item:last-child {
  border-bottom: none;
}

.steam-game-name {
  font-size: 13px;
  color: #f2f2f2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-game-time {
  font-size: 12px;
  color: #9bc9ff;
  font-weight: 600;
  flex: 0 0 auto;
}

#steam-status.steam-online {
  color: #48d07f;
}

#steam-status.steam-offline {
  color: #acb4bf;
}

#steam-status.steam-ingame {
  color: #8fd3ff;
}

@media (max-width: 980px) {
  .cards-row {
    width: min(92vw, 420px);
  }

  .steam-card {
    width: 100%;
  }
}

/* ================= Animated Name ================= */

.animated-name {
  font-size: 48px;
  margin-bottom: 28px;
  animation: glowText 2s infinite alternate;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow:
    0 0 10px rgba(122, 92, 255, 0.65),
    0 0 24px rgba(90, 176, 255, 0.35);
}

@keyframes glowText {
  from { text-shadow: 0 0 8px #7a5cff; }
  to { text-shadow: 0 0 25px #7a5cff; }
}

/* ================= Discord Profile ================= */

.discord-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 25px 0;
}

/* ================= Avatar Container ================= */

.avatar-container {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  filter: drop-shadow(0 10px 22px rgba(32, 74, 160, 0.35));
}

/* Animated ring */
.avatar-container::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #5865F2,
    #8EA1FF,
    #9C6BFF,
    #5865F2
  );
  animation: ringSpin 3s linear infinite;
  z-index: 0;
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Avatar image */
.avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(14, 20, 40, 0.35);
}

/* Avatar decoration overlay */
.avatar-decoration {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 138px;
  height: 138px;
  pointer-events: none;
  z-index: 3;
}

/* ================= Status Indicator ================= */

.status-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #18191c;
  z-index: 4;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.online  { background: #23a559; }
.idle    { background: #f0b232; }
.dnd     { background: #f23f43; }
.offline { background: #80848e; }

.status-indicator.idle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18191c;
  box-shadow: -2px -2px 0 1px #f0b232;
}

.status-indicator.dnd::after {
  content: "";
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

/* ================= Username + Tag + Badges ================= */

.discord-info {
  text-align: center;
  width: 100%;
}

.top-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.discord-username {
  font-size: 22px;
  font-weight: 600;
  color: white;
}

/* Guild Tag (Discord Pill Style) */
.guild-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.guild-tag-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* Badges container */
.badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Clan badge image */
.guild-badge-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

/* Public badge icon */
.discord-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ================= Custom Status ================= */

.discord-status-text {
  margin-top: 6px;
  font-size: 15px;
  opacity: 0.92;
  color: #c4c4c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.discord-presence-text {
  margin-top: 6px;
  font-size: 13px;
  color: #d1d7e0;
  opacity: 0.85;
}

.activity-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
  backdrop-filter: blur(8px);
}

.activity-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.activity-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.activity-nav-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  line-height: 1;
  font-size: 16px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.activity-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.activity-index {
  font-size: 11px;
  color: #c7c7c7;
  min-width: 32px;
  text-align: center;
}

.activity-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.activity-meta {
  min-width: 0;
}

.activity-link {
  text-decoration: none;
  color: inherit;
}

.activity-link:hover .activity-name {
  text-decoration: underline;
}

.activity-name {
  font-size: 16px;
  color: #f0f0f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.activity-subline {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-kind {
  font-size: 13px;
  color: #23a559;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.activity-kind svg {
  width: 16px;
  height: 16px;
  display: block;
}

.activity-kind-label {
  line-height: 1;
}

.activity-time {
  font-size: 13px;
  opacity: 0.72;
  color: #bdbdbd;
}

.activity-error {
  margin-top: 6px;
  font-size: 12px;
  color: #ff9b9b;
  opacity: 0.95;
}

.status-emoji {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.status-emoji-unicode {
  width: auto;
  height: auto;
  font-size: 18px;
  line-height: 1;
}

/* ================= Controls ================= */

.controls {
  display: grid;
  gap: 10px;
}

.floating-controls {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
}

.settings-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(18, 18, 22, 0.82);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease;
}

.settings-toggle:hover {
  background: rgba(28, 28, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.34);
  transform: rotate(15deg);
}

.floating-controls.open .settings-toggle {
  transform: rotate(180deg);
}

.settings-panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  background: rgba(18, 18, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
  min-width: 270px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom right;
}

.floating-controls.open .settings-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: settingsPanelIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes settingsPanelIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  65% {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toggle-control,
.volume-control,
.select-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-label {
  font-size: 13px;
  opacity: 0.9;
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  display: inline-flex;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: 0.25s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.25s ease;
}

.toggle-switch input:checked + .toggle-slider {
  background: #5865F2;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

#volume-slider {
  width: 130px;
}

.volume-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mute-button {
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  color: white;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mute-button:hover {
  background: rgba(255,255,255,0.16);
}

.mute-icon {
  font-size: 16px;
  line-height: 1;
}

.effect-select {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 150px;
  cursor: url("assets/normal.png") 0 0, auto;
}

.effect-select option {
  background: #1e1f25;
  color: #fff;
  cursor: url("assets/normal.png") 0 0, auto;
}

.native-select-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 150px;
  cursor: url("assets/normal.png") 0 0, auto;
}

.custom-select-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  max-height: 180px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  z-index: 60;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-select-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.custom-select.open .custom-select-menu {
  display: block;
}

.custom-select-option {
  width: 100%;
  border: 0;
  text-align: left;
  padding: 8px 10px;
  color: #fff;
  background: transparent;
  cursor: url("assets/normal.png") 0 0, auto;
}

.custom-select-option:hover,
.custom-select-option.is-selected {
  background: rgba(255, 255, 255, 0.14);
}

.settings-panel input,
.settings-panel select,
.settings-panel button,
.settings-panel label,
.settings-toggle,
#card-switch button,
#activity-nav button {
  cursor: url("assets/normal.png") 0 0, auto;
}

/* ================= Custom Cursor ================= */

.cursor {
  display: none;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #c6f2ff 45%, #66d9ff 100%);
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  box-shadow:
    0 0 10px rgba(102, 217, 255, 0.9),
    0 0 24px rgba(102, 217, 255, 0.55);
  transition: opacity 0.2s ease, transform 0.2s ease;
  mix-blend-mode: screen;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-pressed {
  transform: translate(-50%, -50%) scale(0.72);
}

.cursor-tail {
  --tail-size: 2.8px;
  --tail-hue: 190;
  --tail-sat: 96%;
  --tail-light: 72%;
  --tail-opacity: 0;
  position: fixed;
  left: 0;
  top: 0;
  width: var(--tail-size);
  height: var(--tail-size);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  background: radial-gradient(circle,
    hsla(var(--tail-hue), var(--tail-sat), calc(var(--tail-light) + 24%), 0.98) 0%,
    hsla(var(--tail-hue), var(--tail-sat), var(--tail-light), 0.62) 42%,
    hsla(var(--tail-hue), var(--tail-sat), calc(var(--tail-light) - 8%), 0) 100%);
  box-shadow:
    0 0 8px hsla(var(--tail-hue), var(--tail-sat), calc(var(--tail-light) + 4%), 0.65),
    0 0 18px hsla(var(--tail-hue), var(--tail-sat), var(--tail-light), 0.45);
  filter: blur(0.2px);
  z-index: 9998;
  transition: opacity 0.08s linear;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.cursor-tail.is-visible {
  opacity: var(--tail-opacity);
}

.cursor-sparkle {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sparkle-size);
  height: var(--sparkle-size);
  border-radius: 999px;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(145, 236, 255, 0.86) 45%, rgba(102, 217, 255, 0.18) 100%);
  box-shadow:
    0 0 8px rgba(102, 217, 255, 0.75),
    0 0 18px rgba(102, 217, 255, 0.45);
  mix-blend-mode: screen;
  animation: cursorSparkleBurst var(--sparkle-duration) ease-out forwards;
}

@keyframes cursorSparkleBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--sparkle-dx)), calc(-50% + var(--sparkle-dy))) scale(0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor,
  .cursor-tail,
  .cursor-sparkle {
    display: none;
  }
}
