:root {
  --ink: #2a2440;
  --muted: #6f6a86;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-hover: rgba(255, 255, 255, 0.78);
  --glass-line: rgba(255, 255, 255, 0.75);
  --pink: #ff9fcd;
  --peach: #ffc29a;
  --lilac: #b9a0ff;
  --sky: #94d2ff;
  --mint: #b8ffe0;
  --grad: linear-gradient(135deg, #ff9ecb 0%, #c3a4ff 50%, #8fd3ff 100%);
  --base: linear-gradient(160deg, #fff1f7 0%, #f3edff 50%, #ecf7ff 100%);
}


@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

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

html {
  color-scheme: light;
  min-height: 100%;
  background-color: #f6eefc;
  background-image: var(--base);
  background-attachment: fixed;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(40px, env(safe-area-inset-top)) 22px max(40px, env(safe-area-inset-bottom));
  color: var(--ink);
  font-family: -apple-system, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- pastel gradient blobs ---------- */
.bg {
  position: fixed;
  inset: -120px 0;
  z-index: -1;
  overflow: hidden;
  filter: blur(60px);
}
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: .85;
  will-change: transform;
}
.b1 { width: 60vmax; height: 60vmax; background: var(--pink);  top: -20vmax; left: -15vmax;  animation: drift1 14s ease-in-out infinite alternate; }
.b2 { width: 50vmax; height: 50vmax; background: var(--lilac); top: 10vmax;   right: -20vmax; animation: drift2 17s ease-in-out infinite alternate; }
.b3 { width: 45vmax; height: 45vmax; background: var(--sky);   bottom: -20vmax; left: 5vmax;  animation: drift3 15s ease-in-out infinite alternate; }
.b4 { width: 30vmax; height: 30vmax; background: var(--peach); bottom: 5vmax; right: 10vmax;  animation: drift4 12s ease-in-out infinite alternate; opacity: .7; }

@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(18vmax, 12vmax) scale(1.15); }
  100% { transform: translate(6vmax, 28vmax) scale(.9); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-20vmax, 16vmax) scale(.9); }
  100% { transform: translate(-8vmax, -10vmax) scale(1.12); }
}
@keyframes drift3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(16vmax, -18vmax) scale(1.1); }
  100% { transform: translate(-10vmax, -6vmax) scale(.95); }
}
@keyframes drift4 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-22vmax, -14vmax) scale(1.2); }
  100% { transform: translate(8vmax, -24vmax) scale(.85); }
}

/* ---------- card ---------- */
.card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* gradient ring avatar */
@keyframes ring { to { --spin: 360deg; } }
.avatar {
  position: relative;
  width: 124px;
  height: 124px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from var(--spin), #ff9ecb, #ffc59e, #c3a4ff, #8fd3ff, #ff9ecb);
  animation: ring 5s linear infinite;
  box-shadow: 0 18px 40px -12px rgba(195, 164, 255, .65);
}
.avatar::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--grad);
  border: 3px solid rgba(255, 255, 255, .9);
}
.avatar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 46px/1 -apple-system, system-ui, sans-serif;
  text-shadow: 0 2px 10px rgba(80, 40, 140, .25);
}
.avatar img {
  position: absolute;
  inset: 7px;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 50%;
  object-fit: cover;
  z-index: 1;
}

h1 {
  margin-top: 22px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #e2629f, #8b6cf0, #3fa6e6, #8b6cf0, #e2629f);
  background-size: 200% 100%;
  animation: flow 6s linear infinite;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes flow { to { background-position: -200% 0; } }

.handle {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- glass link buttons ---------- */
.links {
  width: 100%;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 30px -14px rgba(90, 60, 160, .35);
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.link { overflow: hidden; isolation: isolate; }
.link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.7) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 5s ease-in-out infinite;
}
.link:nth-child(2)::after { animation-delay: .6s; }
@keyframes sheen {
  0%, 60% { transform: translateX(-120%); }
  100%    { transform: translateX(120%); }
}
.link::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--spin), #ff9ecb, #ffc59e, #c3a4ff, #8fd3ff, #ff9ecb);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  animation: ring 4s linear infinite;
}
.link:hover::before { opacity: 1; }
.link:hover {
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -14px rgba(90, 60, 160, .45);
}
.link:active { transform: scale(.98); }
.link:focus-visible { outline: 2px solid #a98bff; outline-offset: 3px; }

.link span { flex: 1; text-align: left; }

/* icon chips */
.link > svg:first-child {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 14px;
  color: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link:nth-child(1) > svg:first-child { background: linear-gradient(135deg, #ffb07c, #ff7eb6 55%, #b18cff); }
.link:nth-child(2) > svg:first-child { background: linear-gradient(135deg, #7fe3e0, #8fb8ff 55%, #ff9ecb); }

.arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease, stroke .2s ease;
}
.link:hover .arrow { transform: translate(2px, -2px); stroke: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .blob, .card, .avatar, h1, .link::before, .link::after { animation: none; }
  .link, .arrow { transition: none; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; max-width: 360px; }
.notfound h1 { margin: 0 0 12px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }
.notfound a {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
