:root {
  --velvet-950: #230006;
  --velvet-900: #42020e;
  --velvet-800: #61091b;
  --velvet-700: #7d1025;
  --gold-100: #fff4cc;
  --gold-200: #f8de94;
  --gold-300: #e7bf61;
  --gold-400: #b78028;
  --ink-gold: #f3d98c;
  --soft-gold: #cfa75f;
  --card: rgba(86, 8, 27, 0.66);
  --card-hover: rgba(108, 12, 35, 0.8);
  --card-border: rgba(248, 222, 148, 0.48);
  --screen-border: rgba(255, 233, 178, 0.44);
  --screen-shadow: 0 34px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  font-family: "Manrope", sans-serif;
  color: var(--ink-gold);
  background: radial-gradient(circle at 50% 45%, #3b0410 0%, #210008 58%, #150005 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

.liquid-glass {
  position: fixed;
  inset: -22%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(46% 30% at 12% 25%, rgba(196, 26, 58, 0.8), transparent 70%),
    radial-gradient(40% 28% at 86% 62%, rgba(107, 8, 30, 0.82), transparent 70%),
    radial-gradient(24% 18% at 55% 41%, rgba(245, 197, 103, 0.26), transparent 72%);
  filter: blur(52px) saturate(145%) contrast(118%);
  mix-blend-mode: normal;
  opacity: 0.96;
  transform-origin: 50% 50%;
  will-change: transform;
  transform: translateZ(0);
  animation: fishCurrent 7.2s linear infinite alternate;
}

.liquid-glass::before,
.liquid-glass::after {
  content: "";
  position: absolute;
  border-radius: 58% 42% 52% 48% / 44% 56% 42% 58%;
  filter: blur(30px);
  opacity: 0.95;
}

.liquid-glass::before {
  width: min(80vw, 980px);
  height: min(32vw, 380px);
  left: -18%;
  top: 18%;
  background:
    radial-gradient(120% 100% at 25% 50%, rgba(197, 26, 58, 0.78), transparent 64%),
    radial-gradient(98% 100% at 62% 50%, rgba(124, 10, 34, 0.74), transparent 72%),
    radial-gradient(68% 74% at 78% 52%, rgba(243, 198, 112, 0.24), transparent 70%);
  will-change: transform;
  transform: translateZ(0);
  animation: fishShoalA 8.2s linear infinite;
}

.liquid-glass::after {
  width: min(76vw, 920px);
  height: min(30vw, 340px);
  right: -22%;
  bottom: 8%;
  background:
    radial-gradient(120% 100% at 35% 48%, rgba(166, 18, 45, 0.74), transparent 64%),
    radial-gradient(96% 90% at 62% 52%, rgba(93, 7, 24, 0.72), transparent 72%),
    radial-gradient(62% 64% at 24% 50%, rgba(240, 188, 101, 0.2), transparent 70%);
  will-change: transform;
  transform: translateZ(0);
  animation: fishShoalB 9.4s linear infinite;
}

.device {
  width: min(100%, 480px);
  position: relative;
  z-index: 2;
  margin-inline: auto;
}

.screen {
  width: 100%;
  min-height: calc(100svh - 2rem);
  min-height: calc(100dvh - 2rem);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(99, 10, 32, 0.56), rgba(44, 2, 12, 0.72));
  border: 1px solid var(--screen-border);
  box-shadow: var(--screen-shadow);
  padding: 2.25rem 1.1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.55rem;
  position: relative;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 6%, rgba(255, 220, 143, 0.14), transparent 52%);
  pointer-events: none;
  z-index: 0;
}

.screen::after {
  content: "";
  position: absolute;
  inset: -18%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(34% 24% at 16% 36%, rgba(182, 24, 49, 0.46), transparent 74%),
    radial-gradient(30% 22% at 84% 62%, rgba(97, 7, 24, 0.46), transparent 72%),
    radial-gradient(20% 16% at 50% 46%, rgba(243, 198, 112, 0.16), transparent 76%);
  filter: blur(24px) saturate(125%);
  opacity: 0.55;
}

.screen-liquid {
  position: absolute;
  inset: -22%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(44% 28% at 12% 42%, rgba(196, 26, 58, 0.5), transparent 70%),
    radial-gradient(38% 24% at 86% 58%, rgba(97, 7, 24, 0.52), transparent 70%),
    radial-gradient(24% 16% at 48% 50%, rgba(243, 198, 112, 0.2), transparent 74%);
  filter: blur(28px) saturate(132%);
  opacity: 0.88;
  will-change: transform;
  transform: translateZ(0);
  animation: fishInsideDrift 5.4s linear infinite alternate;
}

.screen-liquid::before,
.screen-liquid::after {
  content: "";
  position: absolute;
  border-radius: 56% 44% 61% 39% / 46% 58% 42% 54%;
  filter: blur(20px);
  opacity: 0.85;
  will-change: transform;
  transform: translateZ(0);
}

.screen-liquid::before {
  width: min(86vw, 470px);
  height: min(28vw, 180px);
  top: 22%;
  left: -14%;
  background:
    radial-gradient(100% 100% at 22% 50%, rgba(185, 21, 49, 0.62), transparent 66%),
    radial-gradient(86% 100% at 60% 50%, rgba(103, 8, 28, 0.58), transparent 74%),
    radial-gradient(62% 74% at 84% 50%, rgba(243, 198, 112, 0.2), transparent 74%);
  animation: fishInsideA 4.6s linear infinite;
}

.screen-liquid::after {
  width: min(82vw, 450px);
  height: min(26vw, 170px);
  right: -18%;
  bottom: 18%;
  background:
    radial-gradient(100% 100% at 36% 48%, rgba(153, 16, 41, 0.6), transparent 66%),
    radial-gradient(84% 94% at 66% 54%, rgba(90, 7, 23, 0.58), transparent 74%),
    radial-gradient(60% 68% at 22% 50%, rgba(240, 188, 101, 0.16), transparent 72%);
  animation: fishInsideB 5.1s linear infinite reverse;
}

.profile {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  animation: rise 520ms ease both;
  z-index: 1;
  position: relative;
}

.avatar {
  width: min(180px, 56vw);
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(248, 222, 148, 0.78);
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.profile h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.45rem, 5vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff6d2 8%, #f0cb71 45%, #c48f35 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.profile p {
  color: var(--soft-gold);
  max-width: 34ch;
  line-height: 1.45;
  font-size: 0.95rem;
}

.links {
  display: grid;
  gap: 0.85rem;
  z-index: 1;
  position: relative;
}

.link-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  animation: rise 640ms ease both;
}

.link-card-image {
  padding: 0;
  overflow: hidden;
  display: block;
  line-height: 0;
  border: 0;
  background: transparent;
}

.link-card-image:hover {
  background: transparent;
}

.link-cover {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
}

.link-card:nth-child(2) {
  animation-delay: 90ms;
}

.link-card:hover {
  transform: none;
  box-shadow: none;
}

.label {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--gold-200);
  letter-spacing: 0.02em;
}

.tag {
  font-size: 0.76rem;
  color: var(--gold-100);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(248, 222, 148, 0.48);
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
}

.social {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  z-index: 1;
  position: relative;
}

.social a {
  text-decoration: none;
  color: var(--gold-200);
  font-size: 0.8rem;
  border: 1px solid rgba(248, 222, 148, 0.4);
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(75, 8, 24, 0.56);
}

@media (min-width: 900px) {
  body {
    padding: 2rem;
  }

  .device {
    width: min(430px, calc((100svh - 4rem) * 9 / 16));
    width: min(430px, calc((100dvh - 4rem) * 9 / 16));
    aspect-ratio: 9 / 16;
    max-height: calc(100svh - 4rem);
    max-height: calc(100dvh - 4rem);
  }

  .screen {
    min-height: 0;
    height: 100%;
    padding-inline: 1.35rem;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes fishCurrent {
  0% {
    transform: translate3d(-2%, -1.5%, 0) scale(1.04) rotate(-1deg);
  }

  50% {
    transform: translate3d(2.6%, 1.3%, 0) scale(1.01) rotate(0.6deg);
  }

  100% {
    transform: translate3d(4.2%, -1.2%, 0) scale(0.98) rotate(-0.8deg);
  }
}

@keyframes fishShoalA {
  0% {
    transform: translate3d(0, 0, 0) rotate(-6deg) scale(0.96);
  }

  35% {
    transform: translate3d(16%, -8%, 0) rotate(-2deg) scale(1.02);
  }

  70% {
    transform: translate3d(38%, 5%, 0) rotate(3deg) scale(1.06);
  }

  100% {
    transform: translate3d(55%, -3%, 0) rotate(7deg) scale(1);
  }
}

@keyframes fishShoalB {
  0% {
    transform: translate3d(0, 0, 0) rotate(7deg) scale(0.95);
  }

  30% {
    transform: translate3d(-20%, 8%, 0) rotate(3deg) scale(1.02);
  }

  65% {
    transform: translate3d(-42%, -5%, 0) rotate(-2deg) scale(1.06);
  }

  100% {
    transform: translate3d(-58%, 2%, 0) rotate(-8deg) scale(1);
  }
}

@keyframes fishInside {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(4%, -1.5%, 0) scale(0.98);
  }
}

@keyframes fishInsideDrift {
  0% {
    transform: translate3d(-2.2%, -1.6%, 0) scale(1.02);
  }

  50% {
    transform: translate3d(1.8%, 1.6%, 0) scale(1.05);
  }

  100% {
    transform: translate3d(3.6%, -1.2%, 0) scale(0.98);
  }
}

@keyframes fishInsideA {
  0% {
    transform: translate3d(0, 0, 0) rotate(-4deg) scale(0.96);
  }

  40% {
    transform: translate3d(26%, -10%, 0) rotate(-1deg) scale(1.04);
  }

  100% {
    transform: translate3d(54%, 4%, 0) rotate(5deg) scale(1);
  }
}

@keyframes fishInsideB {
  0% {
    transform: translate3d(0, 0, 0) rotate(4deg) scale(0.96);
  }

  45% {
    transform: translate3d(-24%, 10%, 0) rotate(1deg) scale(1.02);
  }

  100% {
    transform: translate3d(-52%, -4%, 0) rotate(-5deg) scale(1.04);
  }
}
