@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

:root {
  --bg0: #0b1020;
  --bg1: #0b1836;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --accent: #7c5cff;
  --accent2: #22c55e;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Fredoka, system-ui, sans-serif;
  color: var(--text);
  background: #050608;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: pageFade 420ms ease both;
}

body::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: 0 0;
  animation: gridPan 22s linear infinite;
}

body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1200px 700px at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.86) 78%),
    radial-gradient(900px 500px at 50% 30%, rgba(255, 255, 255, 0.06), transparent 65%);
  opacity: 1;
}

.wrap {
  width: min(440px, 100%);
  position: relative;
  z-index: 1;
}

.card {
  width: 100%;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 30px 22px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  animation: cardLoad 520ms ease both;
}

.card:hover {
  transform: none;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.card::before {
  content: none;
}

.card::after {
  content: none;
}

.hero {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  align-items: start;
  justify-items: center;
  text-align: center;
  gap: 14px;
  width: 100%;
}

.lang-switch {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
  z-index: 2;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.lang-slide {
  animation: langSlide 260ms ease both;
}

@keyframes langSlide {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lang-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 7px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.95);
}

.pfp {
  width: 108px;
  height: 108px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  animation: fadeUp 720ms ease both;
  animation-delay: 80ms;
}

.card:hover .pfp {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.45);
}

.title {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.22), 0 0 22px rgba(255, 255, 255, 0.14),
    0 0 46px rgba(255, 255, 255, 0.08);
  animation: fadeUp 740ms ease both;
  animation-delay: 120ms;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 12.5px;
  max-width: 260px;
  animation: fadeUp 760ms ease both;
  animation-delay: 180ms;
}

.subtitle:empty {
  display: none;
}

.links {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 800ms ease both;
  animation-delay: 240ms;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

.icon-btn {
  will-change: transform;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.1);
  opacity: 0.92;
}

.icon-btn:hover .social-logo {
  filter: none;
  opacity: 1;
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.icon-btn::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 65%
  );
  transform: translateX(-60%) rotate(10deg);
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.icon-btn:hover::before {
  opacity: 1;
  animation: btnShine 900ms ease both;
}

.icon-btn.youtube:hover {
  border-color: rgba(255, 0, 0, 0.5);
  color: rgba(255, 80, 80, 0.95);
  box-shadow: 0 12px 28px rgba(255, 0, 0, 0.16), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.icon-btn.discord:hover {
  border-color: rgba(88, 101, 242, 0.6);
  color: rgba(140, 150, 255, 0.98);
  box-shadow: 0 12px 28px rgba(88, 101, 242, 0.22), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.icon-btn.tiktok:hover {
  border-color: rgba(37, 244, 238, 0.55);
  color: rgba(37, 244, 238, 0.95);
  box-shadow: 0 12px 28px rgba(37, 244, 238, 0.18), 0 10px 24px rgba(0, 0, 0, 0.22);
}

@keyframes btnShine {
  0% {
    transform: translateX(-60%) rotate(10deg);
  }
  100% {
    transform: translateX(60%) rotate(10deg);
  }
}

.icon-btn:active {
  transform: translateY(0px);
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn:active {
  transform: translateY(0px);
}

.btn.primary {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.16);
}

.btn.primary:hover {
  background: rgba(124, 92, 255, 0.22);
}

.btn.success {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.14);
}

.btn.success:hover {
  background: rgba(34, 197, 94, 0.2);
}

.meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  animation: fadeUp 860ms ease both;
  animation-delay: 300ms;
  justify-self: center;
}

.meta:empty {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cardIntro {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardLoad {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardShine {
  0% {
    transform: rotate(18deg) translateX(-35%);
    opacity: 0.12;
  }
  50% {
    transform: rotate(18deg) translateX(35%);
    opacity: 0.22;
  }
  100% {
    transform: rotate(18deg) translateX(-35%);
    opacity: 0.12;
  }
}

@keyframes gridPan {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 46px 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  .card,
  .pfp,
  .title,
  .subtitle,
  .links,
  .meta {
    animation: none;
  }

  .card {
    filter: none;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .btn,
  .pfp {
    transition: none;
  }

  .lang-slide {
    animation: none;
  }

  body {
    animation: none;
  }
}

@media (max-width: 520px) {
  .card {
    padding: 24px 20px 20px;
  }

  .links {
    justify-content: center;
  }
}
