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

:root {
  --ink: #fff4f6;
  --muted: rgba(255, 228, 233, 0.72);
  --blood: #e0102a;
  --pink: #ff4d8d;
  --glass: rgba(24, 6, 10, 0.55);
  --edge: rgba(255, 190, 200, 0.18);
}

html {
  background: #14060a;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: -40px;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(20, 6, 10, 0.55) 0%, rgba(20, 6, 10, 0.88) 60%, #14060a 100%),
    url("/img/bg.webp") center top / cover no-repeat;
  filter: blur(22px) saturate(1.3);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(224, 16, 42, 0.25), transparent 55%),
    radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.75) 100%);
  animation: breathe 6s ease-in-out infinite;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.floaters span {
  position: absolute;
  bottom: -40px;
  font-size: 22px;
  opacity: 0;
  animation: drift 14s linear infinite;
}

.floaters span:nth-child(1) { left: 6%; animation-delay: 0s; }
.floaters span:nth-child(2) { left: 22%; animation-delay: 4s; font-size: 18px; }
.floaters span:nth-child(3) { left: 38%; animation-delay: 9s; }
.floaters span:nth-child(4) { left: 55%; animation-delay: 2s; font-size: 18px; }
.floaters span:nth-child(5) { left: 70%; animation-delay: 7s; font-size: 16px; }
.floaters span:nth-child(6) { left: 84%; animation-delay: 11s; }
.floaters span:nth-child(7) { left: 92%; animation-delay: 5s; font-size: 16px; }
.floaters span:nth-child(8) { left: 14%; animation-delay: 12s; font-size: 16px; }

.page {
  width: min(100%, 400px);
  height: 100vh;
  height: 100svh;
  margin: 0 auto;
  padding: max(34px, env(safe-area-inset-top)) 24px max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.profile {
  text-align: center;
}

.avatar-ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  isolation: isolate;
  animation: pulse 2.4s ease-in-out infinite;
}

.avatar-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: conic-gradient(var(--blood), var(--pink), #7a0012, var(--blood));
  animation: spin 5s linear infinite;
}

.avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #14060a;
}

h1 {
  margin: 12px 0 2px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(255, 77, 141, 0.55);
}

.bio {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.online {
  position: absolute;
  bottom: -7px;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #12a150;
  border: 2px solid #14060a;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3dff8f;
  animation: ping 1.6s ease-out infinite;
}

.online .dot {
  width: 6px;
  height: 6px;
  background: #fff;
}

.links {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--edge);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 141, 0.6);
  background: rgba(40, 8, 14, 0.7);
  box-shadow: 0 8px 30px rgba(255, 77, 141, 0.25);
}

.card:active {
  transform: scale(0.97);
}

.card:focus-visible {
  outline: 2px solid #ff8fa0;
  outline-offset: 3px;
}

.card--feature {
  position: relative;
  overflow: hidden;
  flex: 0 1 auto;
  min-height: 140px;
  height: 44vh;
  height: clamp(200px, 44svh, 380px);
  padding: 0;
  align-items: flex-end;
  border: 2px solid var(--blood);
  animation: glow 2.4s ease-in-out infinite;
}

.card--feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.card--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out infinite;
  pointer-events: none;
}

.sticker {
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blood);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: rotate(8deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  animation: tease 3s ease-in-out infinite;
}

.card--feature .card__label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 36px 14px 12px;
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(14, 3, 6, 0.92));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.card--feature .card__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.card__hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 2, 4, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #c9ffdf;
  font-size: 0.7rem;
  font-weight: 700;
}

.cta {
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blood), var(--pink));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 77, 141, 0.45);
  animation: nudge 2.4s ease-in-out infinite;
}

.ps {
  color: #ff5a6e;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.ps:hover {
  text-decoration: underline;
}

.ps:focus-visible {
  outline: 2px solid #ff8fa0;
  outline-offset: 3px;
  border-radius: 6px;
}

.wiggle {
  display: inline-block;
  animation: wiggle 2.2s ease-in-out infinite;
  transform-origin: 50% 70%;
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.foot {
  min-height: 48px;
  padding-top: 14px;
  text-align: left;
  color: rgba(255, 228, 233, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 16, 42, 0.55), 0 10px 40px rgba(224, 16, 42, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(224, 16, 42, 0), 0 10px 50px rgba(255, 77, 141, 0.55); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 14px 50px rgba(224, 16, 42, 0.3); }
  50% { box-shadow: 0 14px 60px rgba(255, 77, 141, 0.55); }
}

@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes tease {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(-4deg) scale(1.08); }
}

@keyframes wiggle {
  0%, 60%, 100% { transform: rotate(0); }
  70% { transform: rotate(-14deg); }
  80% { transform: rotate(12deg); }
  90% { transform: rotate(-6deg); }
}

@keyframes drift {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: 0.55; }
  90% { opacity: 0.35; }
  100% { transform: translateY(-110vh) rotate(25deg); opacity: 0; }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(61, 255, 143, 0.7); }
  100% { box-shadow: 0 0 0 7px rgba(61, 255, 143, 0); }
}

@keyframes nudge {
  0%, 70%, 100% { transform: scale(1); }
  80% { transform: scale(1.07); }
  90% { transform: scale(0.98); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@media (max-height: 520px) {
  .page {
    padding-top: max(18px, env(safe-area-inset-top));
    gap: 10px;
  }

  .avatar-ring {
    width: 60px;
    height: 60px;
  }

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

  .card--feature {
    height: clamp(150px, 36svh, 380px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .floaters {
    display: none;
  }
}

@media (orientation: portrait) and (max-height: 480px) {
  .card__hint {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .page {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    column-gap: 28px;
    padding: max(12px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(64px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }

  .links {
    height: 100%;
    gap: 8px;
  }

  .card--feature {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  .card--feature img {
    object-position: center 22%;
  }

  .card--feature .card__label {
    padding: 24px 12px 10px;
  }

  .foot {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 360px) {
  .card__hint {
    display: none;
  }

  .cta {
    margin-top: 4px;
    padding: 6px 14px;
  }
}

@media (orientation: landscape) and (max-height: 300px) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto;
    grid-template-areas:
      "profile card"
      "ps card"
      "socials card";
    align-items: stretch;
    row-gap: 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .profile {
    grid-area: profile;
    align-self: center;
  }

  .links {
    display: contents;
  }

  .card--feature {
    grid-area: card;
    margin-bottom: 54px;
  }

  .ps {
    grid-area: ps;
    font-size: 0.7rem;
  }

  .socials {
    grid-area: socials;
    gap: 8px;
  }

  .card--social {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.85rem;
  }

  .avatar-ring {
    width: 52px;
    height: 52px;
  }

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

  h1 {
    margin-top: 10px;
    font-size: 0.95rem;
  }

  .bio {
    font-size: 0.75rem;
  }

  .status {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .sticker {
    top: 9px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}
