body, html {
  background: var(--theme-color, #191a1d);
  color: var(--text-color, #fff);
  margin: 0; padding: 0;
  min-height: 100vh;
  font-family: 'Inter', Arial, sans-serif;
}

.tilt-wrapper {
  width: 100%;
  margin: 100px auto;       /* Centered + spaced */
  padding: 5%;
  border-radius: 28px;
  background: transparent;
  overflow: hidden;
  box-sizing: border-box;
}

/* Tilt container still gets transform */
#tilt-container {
  width: 100%;
  max-width: 500px;
  margin: 100px auto;
  display: flex;
  flex-direction: column;
  align-items: center;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);

  border: 2.2px solid var(--accent-color, #14ff3b);
  border-radius: 28px;
  box-shadow: 0 0 8px 1px var(--accent-color, #14ff3b55);
  overflow: hidden;
  box-sizing: border-box;
  transition: all 0.3s ease;
  will-change: transform;
}


#tilt-container:hover {
  border-radius: 28px;
}


.bio-background {
  background: var(--background-image, none) center/cover no-repeat;
  position: fixed; z-index: 0; width: 100vw; height: 100vh; top: 0; left: 0;
  filter: brightness(0.68) grayscale(0.15);
}

.main-content {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 55px 0 0 0;
}

.profile-main-card,
.profile-card {
  width: 100%;
  max-width: 500px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pic {
    width: 170px;
    height: 170px;
    border-radius: 100%;
    border: 5px solid var(--accent-color);
    margin-bottom: 13px;
    box-shadow: 0 0 24px var(--accent-color);
}

/* Centered, bulletproof typewriter. No shifting! */
.bio-username {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--text-color, #fff);
  letter-spacing: .02em;
  text-shadow: 0 0 10px #15151a, 0 1px 24px #111b;
  width: 100%;
  text-align: center;
  display: block;
  position: relative;
  box-sizing: border-box;
  /* No min-width, no inline-block */
}
.bio-username[data-username]::after {
  content: attr(data-username);
  visibility: hidden;
  pointer-events: none;
  height: 0;
  display: block;
  width: 100%;
}

.bio-badges img.bio-badge {
  height: 30px; width: 30px;
  margin: 0 5px;
  vertical-align: middle;
  filter: drop-shadow(0 0 2px var(--badge-color, #ff3c3c));
}

/* Centered, bulletproof about (if animated). No shifting! */
.bio-about {
  color: #fff;
  font-size: 1.18em;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 500;
  text-shadow: 0 1px 8px #000b;
  width: 100%;
  display: block;
  position: relative;
  box-sizing: border-box;
}
.bio-about[data-bio]::after {
  content: attr(data-bio);
  visibility: hidden;
  pointer-events: none;
  height: 0;
  display: block;
  width: 100%;
}

.icon-row {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}


.icon-btn {
  background: none;
  border: none;
  outline: none;
  padding: 0;
  box-shadow: none;
  width: 52px !important;
  height: 52px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn svg {
  width: 52px !important;
  height: 52px !important;
  display: inline-block; /* 🔁 FIXED from block to inline-block */
  filter: drop-shadow(0 0 10px var(--accent-color, #fff8));
}

/* Discord card: always 1 line, matches buttons, no shifting */
.discord-card {
  width: 340px;
  min-width: 0;
  max-width: 100%;
  height: 60px;
  box-sizing: border-box;
  border-radius: 19px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  margin-bottom: 16px;
  background: transparent;
  border: 2.2px solid var(--accent-color, #14ff3b);
  color: var(--accent-color, #14ff3b);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 0 8px 1px var(--accent-color, #14ff3b55);
  transition: box-shadow 0.14s, border-color 0.16s, background 0.17s;
  overflow: hidden;
  white-space: nowrap;
}

.discord-pfp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-shrink: 0;
  margin: 0;
}

.discord-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-width: 0;
  width: 100%;
  gap: 10px;
  overflow: hidden;
}

.discord-username,
.discord-link {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  max-width: 100%;
  font-size: 1em;
  line-height: 1.1;
  margin: 0;
  padding: 0;
}

.discord-username {
  color: var(--accent-color, #14ff3b);
  font-weight: 700;
  flex-shrink: 1;
}

.discord-link {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  font-size: 0.98em;
  flex-shrink: 1;
}

.links-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 20px;
}

.bio-link-btn {
  width: 340px;
  min-width: 0;
  max-width: 100%;
  height: 60px;
  box-sizing: border-box;
  background: rgba(0,0,0,0.69);
  color: var(--text-color, #fff);
  border-radius: 19px;
  font-size: 1.37em;
  padding: 0 20px;
  margin-bottom: 16px;
  border: 2.2px solid var(--accent-color, #fff4);
  transition: box-shadow 0.14s, border-color 0.16s, background 0.17s;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 3px 24px #0007;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
}

.bio-link-btn.outline {
  background: transparent;
  border: 2.2px solid var(--accent-color, #14ff3b);
  color: var(--accent-color, #14ff3b);
  box-shadow: none;
}

.bio-link-btn:hover {
  background: var(--button-color, #fff2);
  border-color: var(--accent-color, #fff);
  color: #fff;
}

/* Frosted Glass Card Base */
.profile-main-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5% 0;
}




/* Mobile Styles */
@media (max-width: 800px) {
  #tilt-container,
  .profile-main-card,
  .bio-link-btn,
  .discord-card {
    width: 98vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }

  .profile-pic {
    width: 108px;
    height: 108px;
  }

  .bio-link-btn {
    padding: 13px 8vw;
  }

  .profile-card {
    padding: 0;
  }
}


.bio-caret {
  display: inline;
  width: auto;
  margin-left: 0;
  color: var(--text-color, #fff);
  animation: blink-caret 1s steps(1) infinite;
  font-weight: 800;
  font-size: 1em;
  vertical-align: baseline;
  /* no extra margin or width! */
}
@keyframes blink-caret {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


.card { transition: transform 0.14s cubic-bezier(.32,.63,.23,.99); will-change: transform; }
