@font-face {
  font-family: "LWFont";
  src: url("/assets/customfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --radius: 6px;
  --w: 520px;

  --bg: rgba(240, 219, 240, 1);
  --title: rgba(253, 236, 239, 1);
  --text: #ffffff;
  --muted: rgba(253, 236, 239, 1);
  --hover-text: rgba(157, 99, 129, 1);
  --shadow: rgba(15, 17, 12, 1);

  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.1);
  --surface-hover: rgba(255, 255, 255, 0.14);

  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-border: rgba(157, 99, 129, 1);
  --btn-hover: rgba(157, 99, 129, 1);

  --focus: rgba(255, 255, 255, 0.32);

  --stack-grad-1: rgba(253, 236, 239, 1);
  --stack-grad-2: rgba(157, 99, 129, 1);
}

* {
  box-sizing: border-box;
  font-family: "LWFont";
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

#profile-background {
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.profileBackgroundFixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% 0%, rgba(15, 17, 12, 0.6), transparent 100%),
    radial-gradient(900px 600px at 50% 100%, rgba(15, 17, 12, 0.6), transparent 100%),
    radial-gradient(700px 420px at 25% 40%, rgba(157, 99, 129, 0.2), transparent 80%),
    radial-gradient(700px 420px at 60% 60%, rgba(157, 99, 129, 0.1), transparent 80%),
    var(--bg);
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 40px;
}

.stackCard {
  width: min(100%, var(--w));
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(900px 720px at 50% 100%, var(--stack-grad-2), transparent 80%),
    linear-gradient(180deg, var(--stack-grad-1), rgba(0, 0, 0, 0) 55%),
    rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 22px 18px 18px;
  text-align: center;
  backdrop-filter: none;
}

.heroCard {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  isolation: isolate;
}

.heroBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.65)
  );
  z-index: 1;
  pointer-events: none;
}

.cardContent {
  position: relative;
  z-index: 2;
  text-align: center;
}

.name {
  margin: 14px 0 6px;
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--title);
  text-shadow: 0 2px 8px var(--shadow);
}

.bio {
  margin: 0 auto 14px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.socialBtn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  transition: transform 120ms ease, background-color 120ms ease;
  text-decoration: none;
}

.socialBtn:hover {
  transform: scale(1.14);
  background: var(--btn-hover);
}

.socialBtn:active {
  transform: scale(0.98);
}

.socialIcon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.bannerWrap {
  width: 100%;
}

.bannerBtn {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 120ms ease;
}

.bannerBtn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.bannerBtn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.bannerImg {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  transition: filter 200ms ease, transform 200ms ease;
}

.bannerBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.75)
  );
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 1;
  pointer-events: none;
}

.bannerDefaultText,
.bannerText {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 20px;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 1px;
  z-index: 2;
  pointer-events: none;
}

.bannerDefaultText {
  color: var(--text);
  text-shadow:
    0 2px 18px rgba(0, 0, 0, 1),
    2px 4px 48px rgba(0, 0, 0, 0.8);
  transition: opacity 180ms ease;
}

.bannerText {
  color: rgba(253, 236, 239, 1);
  text-shadow: 0 0 8px rgba(253, 236, 239, 1);
  opacity: 0;
  transition: opacity 160ms ease;
}

.bannerBtn:hover::after,
.bannerBtn.loading::after {
  opacity: 1;
}

.bannerBtn:hover .bannerText,
.bannerBtn.loading .bannerText {
  opacity: 1;
}

.bannerBtn:hover .bannerDefaultText,
.bannerBtn.loading .bannerDefaultText {
  opacity: 0;
}

.bannerBtn:hover .bannerImg {
  filter: blur(4px) grayscale(25%);
}

.bannerBtn.loading .bannerImg {
  filter: blur(4px);
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.linkBtn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  color: var(--text);
  text-decoration: none;
  transition: transform 90ms ease, background-color 90ms ease, box-shadow 90ms ease;
}

.linkBtn:hover {
  background: var(--surface-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

.linkBtn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: none;
}

.linkText {
  text-align: center;
  font-size: 16px;
}

.footer {
  margin-top: 8px;
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.linkBtn:focus-visible,
.socialBtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}