:root {
  --tf-bg: #0b0908;
  --tf-card: #121214;
  --tf-card-hover: #18181c;
  --tf-surface: #18181c;
  --tf-accent: #ff2400;
  --tf-ember: #ff5a36;
  --tf-gold: #ffb700;
  --tf-gold-border: rgba(255, 183, 0, 0.45);
  --tf-on-accent: #faf3e0;
  --tf-white: #faf3e0;
  --tf-grays-100: #d1d1d1;
  --tf-grays-200: #a1a1a1;
  --tf-grays-300: #717171;
  --tf-grays-400: #4a4a4a;
  --tf-grays-500: #2d2d2d;
  --tf-grays-600: #1e1e1e;
  --tf-border-subtle: rgba(255, 255, 255, 0.1);
  --tf-border-active: rgba(255, 255, 255, 0.25);
  --font-hud: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Cinzel", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  background-color: var(--tf-bg);
  color: var(--tf-white);
  font-family: var(--font-hud);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 2.5rem 1.25rem 3.5rem;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 36, 0, 0.12) 0%, rgba(11, 9, 8, 0) 65%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cpath d='M0 60H240M0 120H240M120 0V60M60 60V120M180 60V120' fill='none' stroke='%23faf3e0' stroke-opacity='0.035' stroke-width='2'/%3E%3C/svg%3E");
  background-size: auto, auto, 240px 120px;
  background-attachment: fixed;
  background-position: center top, center center, center top;
}

.bio-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}

.bio-avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 1.125rem;
}

.bio-avatar {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  border: 2px solid var(--tf-gold);
  object-fit: cover;
  background-color: var(--tf-card);
  box-shadow: 0 0 20px rgba(255, 183, 0, 0.2);
}

.bio-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: 0.375rem;
}

.bio-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tf-white);
  line-height: 1.2;
}

.verified-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-gold);
  flex-shrink: 0;
}

.bio-slogan {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--tf-grays-200);
  line-height: 1.4;
  max-width: 320px;
}

.bio-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2.5rem;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background-color: var(--tf-card);
  border: 1px solid var(--tf-border-subtle);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  text-decoration: none;
  color: var(--tf-white);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  user-select: none;
  min-height: 68px;
}

.link-card:hover {
  background-color: var(--tf-card-hover);
  border-color: var(--tf-border-active);
  transform: translateY(-2px);
}

.link-card:active {
  transform: scale(0.985);
  background-color: var(--tf-card-hover);
}

.link-card.is-highlight {
  border-color: var(--tf-gold-border);
  background-image: linear-gradient(135deg, rgba(255, 36, 0, 0.12) 0%, rgba(255, 183, 0, 0.08) 100%);
  animation: pulse-ember 3s infinite ease-in-out;
}

.link-card.is-highlight:hover {
  border-color: var(--tf-gold);
  background-image: linear-gradient(135deg, rgba(255, 36, 0, 0.18) 0%, rgba(255, 183, 0, 0.12) 100%);
}

@keyframes pulse-ember {
  0%, 100% {
    filter: drop-shadow(0 0 6px rgba(255, 183, 0, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(255, 90, 54, 0.45));
  }
}

.link-badge {
  position: absolute;
  top: 0;
  right: 12px;
  background-color: var(--tf-accent);
  color: var(--tf-on-accent);
  font-family: var(--font-hud);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.link-card.is-highlight .link-badge {
  background-color: var(--tf-gold);
  color: #120d09;
}

.link-icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--tf-ember);
  flex-shrink: 0;
  margin-right: 1rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.link-card.is-highlight .link-icon-container {
  color: var(--tf-gold);
  background-color: rgba(255, 183, 0, 0.1);
}

.link-card:hover .link-icon-container {
  transform: scale(1.08);
}

.link-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tf-white);
  line-height: 1.3;
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.link-subtitle {
  font-size: 0.775rem;
  font-weight: 400;
  color: var(--tf-grays-200);
  line-height: 1.35;
  word-break: break-word;
}

.link-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tf-grays-400);
  margin-left: 0.75rem;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.link-card:hover .link-chevron {
  color: var(--tf-white);
  transform: translateX(3px);
}

.bio-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  width: 100%;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background-color: var(--tf-card);
  border: 1px solid var(--tf-border-subtle);
  color: var(--tf-grays-200);
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.social-btn:hover {
  color: var(--tf-white);
  border-color: var(--tf-border-active);
  background-color: var(--tf-card-hover);
  transform: translateY(-2px);
}

.social-btn:active {
  transform: scale(0.92);
}

.bio-copyright {
  font-size: 0.75rem;
  color: var(--tf-grays-300);
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  body {
    padding: 2rem 1rem 3rem;
  }

  .link-card {
    padding: 0.875rem 1rem;
    min-height: 64px;
  }

  .link-icon-container {
    width: 36px;
    height: 36px;
    margin-right: 0.875rem;
  }

  .link-title {
    font-size: 0.9rem;
  }

  .link-subtitle {
    font-size: 0.75rem;
  }
}
