/* ─────────────────────────────────────────
   Reset & Base
───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --c-bg: #050508;
  --c-surface: rgba(255, 255, 255, 0.04);
  --c-border: rgba(255, 255, 255, 0.08);
  --c-text: #f0eeff;
  --c-muted: rgba(240, 238, 255, 0.5);

  /* Brand palette */
  --c-violet: #7c3aed;
  --c-purple: #a855f7;
  --c-pink: #ec4899;
  --c-gold: #f59e0b;
  --c-cyan: #22d3ee;

  /* Gradients */
  --g-featured: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --g-gallery: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
  --g-x: linear-gradient(135deg, #111 0%, #333 100%);
  --g-avatar: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b);

  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   Animated Background
───────────────────────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -100px;
  left: -100px;
  animation-duration: 14s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ec4899, transparent);
  top: 30%;
  right: -80px;
  animation-duration: 10s;
  animation-delay: -4s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #22d3ee, transparent);
  bottom: 0;
  left: 30%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes orbFloat {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(30px, 40px) scale(1.15);
  }
}

#particle-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

/* ─────────────────────────────────────────
   Layout Container
───────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ─────────────────────────────────────────
   Hero Banner
───────────────────────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  flex-shrink: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: brightness(0.85) saturate(1.1);
  transition: filter 0.4s ease;
}

.hero-banner:hover .hero-img {
  filter: brightness(0.95) saturate(1.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(5, 5, 8, 0.15) 0%,
      rgba(5, 5, 8, 0.0) 40%,
      rgba(5, 5, 8, 0.7) 100%);
}

/* ─────────────────────────────────────────
   Profile Header
───────────────────────────────────────── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: fadeUp 0.7s ease both;
  padding: 0 20px;
  margin-top: -54px;
  /* avatar lifts over banner */
  width: 100%;
}

/* section gap below header */
.profile-header+.links-section {
  margin-top: 40px;
  padding: 0 20px;
}

/* Avatar */
.avatar-ring {
  padding: 3px;
  background: var(--g-avatar);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--c-bg), 0 8px 30px rgba(124, 58, 237, 0.5);
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #0d0d1a;
  border: 3px solid var(--c-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-initials {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  background: var(--g-avatar);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  line-height: 1;
}

/* Badges */
.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge-ai {
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
}

/* ─────────────────────────────────────────
   Language Switcher
───────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  gap: 6px;
  background: rgba(10, 8, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeUp 0.5s ease both;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(240, 238, 255, 0.45);
  font-family: 'Outfit', 'Noto Sans JP', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(240, 238, 255, 0.85);
}

.lang-btn.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(236, 72, 153, 0.4));
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
}

/* Name */
.name {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #f9a8d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.tagline {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--c-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Bio */
.bio {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(240, 238, 255, 0.75);
  max-width: 480px;
}

.bio strong {
  color: #e2e0ff;
  font-weight: 700;
}

.pc-only {
  display: inline;
}

/* Stats */
.stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px 28px;
  width: 100%;
  max-width: 420px;
  justify-content: space-around;
  backdrop-filter: blur(12px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-muted);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────
   Link Cards
───────────────────────────────────────── */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.link-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.link-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.link-card:active {
  transform: scale(0.98);
}

/* Glow overlay */
.card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.link-card:hover .card-glow {
  opacity: 1;
}

/* Inner layout */
.card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  transition: transform var(--transition);
}

.link-card:hover .card-icon {
  transform: rotate(-6deg) scale(1.1);
}

.card-icon--patreon {
  background: rgba(20, 10, 40, 0.6);
  border: 1px solid rgba(255, 66, 77, 0.25);
}

.card-icon--x {
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-icon--gallery {
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(34, 211, 238, 0.3);
}

.card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

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

.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.card-sub {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Noto Sans JP', sans-serif;
}

.card-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
  transition: transform var(--transition), color var(--transition);
}

.link-card:hover .card-arrow {
  transform: translateX(5px);
  color: #fff;
}

/* Corner label */
.card-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

.free-label {
  background: rgba(34, 211, 238, 0.25);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

/* ── Featured (Patreon Main) ── */
.link-card--featured {
  background: linear-gradient(135deg,
      rgba(124, 58, 237, 0.35) 0%,
      rgba(236, 72, 153, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.1),
    0 20px 60px rgba(124, 58, 237, 0.2);
}

.link-card--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-featured);
  opacity: 0.08;
  transition: opacity var(--transition);
}

.link-card--featured:hover {
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.4),
    0 28px 80px rgba(124, 58, 237, 0.4),
    0 0 40px rgba(236, 72, 153, 0.2);
}

.link-card--featured:hover::before {
  opacity: 0.15;
}

.link-card--featured .card-glow {
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15), transparent 70%);
}

/* ── Gallery (Patreon Free) ── */
.link-card--gallery {
  background: linear-gradient(135deg,
      rgba(8, 145, 178, 0.3) 0%,
      rgba(34, 211, 238, 0.2) 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 16px 48px rgba(8, 145, 178, 0.15);
}

.link-card--gallery::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--g-gallery);
  opacity: 0.06;
  transition: opacity var(--transition);
}

.link-card--gallery:hover {
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.3),
    0 24px 60px rgba(8, 145, 178, 0.3);
}

.link-card--gallery:hover::before {
  opacity: 0.12;
}

.link-card--gallery .card-glow {
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.12), transparent 70%);
}

/* ── X / Twitter ── */
.link-card--x {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.link-card--x:hover {
  background: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.link-card--x .card-glow {
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05), transparent 70%);
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
.footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeUp 0.7s 0.4s ease both;
}

.footer p {
  font-size: 0.75rem;
  color: rgba(240, 238, 255, 0.3);
}

/* .footer-note removed */

/* ─────────────────────────────────────────
   Support Message Section
───────────────────────────────────────── */
.support-message {
  width: 100%;
  padding: 0 20px;
  margin-top: 40px;
  animation: fadeUp 0.7s 0.35s ease both;
}

.support-msg-inner {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 28px 24px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}

.support-msg-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(124, 58, 237, 0.07) 0%,
      rgba(236, 72, 153, 0.04) 100%);
  pointer-events: none;
}

/* Title */
.support-msg-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e0ff;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  display: block;
}

/* Feature Pills */
.support-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.feat-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c4b5fd;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.feat-pill--hot {
  background: rgba(236, 72, 153, 0.2);
  border-color: rgba(236, 72, 153, 0.4);
  color: #f9a8d4;
}

/* Message Body */
.support-msg-body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.875rem;
  line-height: 1.9;
  color: rgba(240, 238, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-msg-body p {
  margin: 0;
}

.support-msg-body strong {
  color: #e2e0ff;
  font-weight: 700;
}

.msg-note {
  font-size: 0.78em;
  color: rgba(240, 238, 255, 0.4);
}

.msg-cta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f0eeff;
  text-align: center;
  padding: 16px 20px;
  margin-top: 4px;
  background: linear-gradient(135deg,
      rgba(124, 58, 237, 0.22),
      rgba(236, 72, 153, 0.16));
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 16px;
  line-height: 1.65;
}

.support-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #FF424D 0%, #ff6b73 100%);
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 66, 77, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 66, 77, 0.55);
  filter: brightness(1.1);
}

/* ─────────────────────────────────────────
   Animations
───────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 480px) {
  .lang-switcher {
    top: 10px;
    right: 10px;
    padding: 4px 6px;
    gap: 2px;
  }

  .lang-btn {
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  .hero-banner {
    height: 160px;
    border-radius: 0 0 20px 20px;
  }

  .profile-header {
    margin-top: -44px;
    padding: 0 16px;
  }

  .profile-header+.links-section {
    padding: 0 16px;
    margin-top: 32px;
  }

  .container {
    padding: 0 0 60px;
    gap: 0;
  }

  .pc-only {
    display: none;
  }

  .stats-row {
    padding: 16px 16px;
    max-width: 100%;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .card-inner {
    padding: 18px 16px;
  }

  .avatar {
    width: 90px;
    height: 90px;
  }

  .avatar-initials {
    font-size: 2.4rem;
  }
}