/* Kyraanim landing page
   Palette drawn from the VRChat fursona and fursuit:
   magenta / hot pink, deep violet, soft white fur, black accents.
   A hint of electric blue is used only as a secondary glow.
   Change any of the variables below to retheme the page. */

:root {
  --pink: #ff4fd8;
  --pink-hot: #ff3fb4;
  --magenta: #e040e0;
  --violet-deep: #5b2bb5;
  --violet: #7a1fbf;
  --violet-bright: #9b30d0;
  --white-fur: #ede6f0;
  --bg: #0a0610;
  --bg-elevated: #16091c;
  --text: #f7f0fa;
  --text-muted: #d4c2de;
  --black: #120814;
  --glow-pink: rgba(255, 79, 216, 0.55);
  --glow-violet: rgba(155, 48, 208, 0.42);
  --glow-blue: rgba(90, 170, 255, 0.2);
  --card-bg: rgba(16, 8, 20, 0.78);
  --card-border: rgba(255, 79, 216, 0.34);
  --btn-bg: rgba(255, 255, 255, 0.045);
  --btn-bg-hover: rgba(255, 79, 216, 0.14);
  --btn-border: rgba(237, 230, 240, 0.12);
  --radius-card: 1.75rem;
  --radius-btn: 1rem;
  --shadow-card:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(155, 48, 208, 0.2);
  --font: "Outfit", ui-rounded, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --ring: 2px solid var(--pink);
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  color-scheme: dark;
  background: var(--bg);
}

body {
  font-family: var(--font);
  font-weight: 420;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--pink) 70%, black);
  color: white;
}

/* ----- atmosphere ----- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.atmosphere-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 46%;
  background: url("assets/bg-sunset.webp") center top / cover no-repeat;
  opacity: 0.7;
}

.atmosphere-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(255, 140, 90, 0.22), transparent 70%),
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 79, 216, 0.28), transparent 68%),
    radial-gradient(ellipse 45% 45% at 88% 85%, rgba(91, 43, 181, 0.35), transparent 70%),
    radial-gradient(ellipse 38% 38% at 8% 75%, rgba(90, 170, 255, 0.14), transparent 70%);
}

/* Bold white diagonal stripes, kept very quiet — a nod to the limb markings. */
.atmosphere-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -32deg,
    transparent 0 42px,
    rgba(237, 230, 240, 0.028) 42px 50px
  );
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent 80%);
}

/* Paw-print pattern with purple beans */
.atmosphere-paws {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' transform='translate(20 24) rotate(-18 40 40)'%3E%3Cellipse cx='20' cy='16' rx='7.2' ry='9' fill='%239B30D0'/%3E%3Cellipse cx='36' cy='12' rx='7' ry='8.8' fill='%237A1FBF'/%3E%3Cellipse cx='52' cy='16' rx='7.2' ry='9' fill='%239B30D0'/%3E%3Cellipse cx='62' cy='28' rx='6.4' ry='8' fill='%235B2BB5'/%3E%3Cpath d='M22 36c0-8 8-14 20-14s20 6 20 14c0 12-8 22-20 24C30 58 22 48 22 36Z' fill='%237A1FBF'/%3E%3C/g%3E%3Cg fill='none' transform='translate(96 88) rotate(22 30 30)'%3E%3Cellipse cx='14' cy='12' rx='5.4' ry='6.8' fill='%239B30D0'/%3E%3Cellipse cx='26' cy='9' rx='5.2' ry='6.6' fill='%237A1FBF'/%3E%3Cellipse cx='38' cy='12' rx='5.4' ry='6.8' fill='%239B30D0'/%3E%3Cellipse cx='46' cy='21' rx='4.8' ry='6' fill='%235B2BB5'/%3E%3Cpath d='M16 27c0-6 6-10.5 15-10.5S46 21 46 27c0 9-6 16.5-15 18C22 43.5 16 36 16 27Z' fill='%237A1FBF'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.float-paws {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.float-paw {
  position: absolute;
  width: 56px;
  height: 56px;
  opacity: 0.28;
  color: #c45ae0;
  filter: drop-shadow(0 0 8px rgba(255, 79, 216, 0.35));
  animation: paw-drift 18s ease-in-out infinite;
}

.float-paw svg {
  width: 100%;
  height: 100%;
  display: block;
}

.float-paw:nth-child(1) { top: 12%; left: 8%; animation-duration: 20s; }
.float-paw:nth-child(2) { top: 22%; right: 10%; width: 40px; height: 40px; animation-duration: 16s; animation-delay: -4s; opacity: 0.16; }
.float-paw:nth-child(3) { bottom: 16%; left: 14%; width: 48px; height: 48px; animation-duration: 22s; animation-delay: -8s; }
.float-paw:nth-child(4) { bottom: 10%; right: 16%; width: 36px; height: 36px; animation-duration: 19s; animation-delay: -2s; opacity: 0.18; }
.float-paw:nth-child(5) { top: 48%; left: 4%; width: 32px; height: 32px; animation-duration: 24s; animation-delay: -11s; opacity: 0.14; }

@keyframes paw-drift {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(10px, -16px) rotate(10deg); }
}

/* ----- layout ----- */

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  padding: 1.5rem 1.2rem 2.5rem;
  width: 100%;
}

.card {
  position: relative;
  width: min(100%, 24.75rem);
  padding: 1.7rem 1.35rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  isolation: isolate;
}

/* Gradient hairline + soft inner light */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    155deg,
    rgba(255, 79, 216, 0.85),
    rgba(155, 48, 208, 0.28) 42%,
    rgba(90, 170, 255, 0.28) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 2;
}

/* ----- avatar ----- */

.avatar-stage {
  position: relative;
  width: 8.6rem;
  height: 8.6rem;
  margin: 0.85rem auto 0.25rem;
}

.avatar-glow {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--glow-pink) 0%, transparent 62%),
    radial-gradient(circle at 70% 80%, var(--glow-blue) 0%, transparent 50%);
  filter: blur(10px);
  opacity: 0.85;
  z-index: 0;
}

.avatar-ring {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(
    135deg,
    var(--pink) 0%,
    var(--violet-bright) 48%,
    var(--violet-deep) 76%,
    rgba(90, 170, 255, 0.9) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

.avatar-ring img,
.avatar-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #1a0c22;
}

.avatar-fallback {
  display: none;
}

.avatar-stage.show-fallback .avatar-img {
  display: none;
}

.avatar-stage.show-fallback .avatar-fallback {
  display: block;
}

/* Glowing white dots along the lower rim, like the fursona's eye markings */
.avatar-dots {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.32rem;
  z-index: 2;
  pointer-events: none;
}

.avatar-dots span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.85);
}

.avatar-dots span:nth-child(1),
.avatar-dots span:nth-child(7) { transform: translateY(-0.28rem); opacity: 0.65; width: 0.3rem; height: 0.3rem; }
.avatar-dots span:nth-child(2),
.avatar-dots span:nth-child(6) { transform: translateY(-0.08rem); opacity: 0.85; }
.avatar-dots span:nth-child(4) { width: 0.44rem; height: 0.44rem; }

/* ----- typography ----- */

.identity {
  text-align: center;
  margin: 0.8rem 0 0.2rem;
}

.identity h1 {
  margin: 0;
  font-size: 2.05rem;
  font-weight: 740;
  letter-spacing: 0.01em;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff 0%, var(--white-fur) 28%, var(--pink) 68%, #c9a6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--white-fur);
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 79, 216, 0.28));
}

.tagline {
  margin: 0.4rem 0.4rem 0;
  font-size: 0.84rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #f6c6ef;
  text-shadow:
    0 0 8px rgba(255, 79, 216, 0.7),
    0 0 18px rgba(255, 79, 216, 0.4);
}

.tagline::before {
  content: "“";
}

.tagline::after {
  content: "”";
}

.bio {
  margin: 0.7rem auto 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 430;
  line-height: 1.7;
}

.bio-item {
  white-space: nowrap;
}

.bio-item + .bio-item {
  margin-left: 0.28em;
}

.about {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.62;
  text-wrap: pretty;
}

.featured {
  margin: 1.05rem 0 0;
  padding: 0;
}

.featured picture,
.featured img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.featured img {
  background: #1a1018;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(255, 79, 216, 0.28),
    0 0 48px rgba(122, 31, 191, 0.2);
}

.featured figcaption {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.dot-row {
  display: flex;
  justify-content: center;
  gap: 0.38rem;
  margin: 0.85rem 0 0.9rem;
  list-style: none;
  padding: 0;
}

.dot-row li {
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  opacity: 0.85;
}

.dot-row li:nth-child(odd) { opacity: 0.55; }

/* ----- links ----- */

.links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 2.9rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--text);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.link:hover {
  background: var(--btn-bg-hover);
  border-color: color-mix(in srgb, var(--pink) 45%, transparent);
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.22);
}

.link:hover,
.link:focus-visible {
  animation: wiggle 0.5s ease;
}

.link:focus-visible {
  outline: var(--ring);
  outline-offset: 3px;
}

.link:active {
  transform: translateY(1px);
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-1.15deg) translateX(2px); }
  75% { transform: rotate(1.15deg) translateX(-2px); }
}

.icon {
  flex: 0 0 2.15rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 0.7rem;
  background: linear-gradient(160deg, rgba(255, 79, 216, 0.18), rgba(91, 43, 181, 0.28));
  color: var(--white-fur);
}

.icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.link-label {
  flex: 1;
}

.chevron {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.45;
  flex: 0 0 auto;
}

button.link {
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 30;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: rgba(16, 8, 20, 0.94);
  border: 1px solid rgba(255, 79, 216, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 79, 216, 0.28);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.toast[hidden] {
  display: none;
}

/* ----- gallery (kept for extras/gallery-snippet.html) ----- */

.gallery {
  width: min(100%, 24.75rem);
}

@media (max-width: 959px) {
  .gallery {
    margin-top: 3.5rem;
    padding-bottom: 1.5rem;
  }
}

.gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.7rem;
}

.gallery-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: 0.02em;
}

.credit {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot {
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #1a1018;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  outline: 1px solid rgba(255, 255, 255, 0.08);
  outline-offset: -1px;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  vertical-align: middle;
}

.shot:hover,
.shot:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 79, 216, 0.25);
}

.shot:focus-visible {
  outline: var(--ring);
  outline-offset: 3px;
}

/* ----- lightbox ----- */

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 28rem);
  width: auto;
}

.lightbox::backdrop {
  background: rgba(6, 3, 10, 0.86);
  backdrop-filter: blur(8px);
}

.lightbox-inner {
  position: relative;
  margin: 0;
}

.lightbox img {
  display: block;
  max-width: min(92vw, 28rem);
  max-height: 82dvh;
  width: auto;
  height: auto;
  border-radius: 0.9rem;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.55);
}

.lightbox figcaption {
  margin: 0.65rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 6, 16, 0.7);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 79, 216, 0.35);
}

.lightbox-close:focus-visible {
  outline: var(--ring);
  outline-offset: 2px;
}

/* ----- desktop ----- */

@media (min-width: 960px) {
  .page {
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 2.5rem 3rem;
  }

  /* Used when extras/gallery-snippet.html is added back */
  .gallery {
    width: min(100%, 38rem);
    flex: 0 1 38rem;
  }

  .gallery-head h2 {
    font-size: 1.2rem;
  }

  .shots {
    gap: 0.85rem;
  }

  .shot {
    border-radius: 1.05rem;
  }
}

/* ----- reduced motion ----- */

@media (prefers-reduced-motion: reduce) {
  .float-paw {
    animation: none;
  }

  .link:hover,
  .link:focus-visible {
    animation: none;
  }

  .link,
  .shot {
    transition: none;
  }

  .shot:hover,
  .shot:focus-visible {
    transform: none;
  }
}

/* ----- very small screens ----- */

@media (max-width: 360px) {
  .identity h1 { font-size: 1.8rem; }
  .card { padding: 1.7rem 1rem 1.25rem; }
}
