:root {
  --bg: #04140c;
  --card-top: #081f14;
  --card-bottom: #05150d;
  --border: rgba(74, 222, 128, 0.22);
  --text: #f0fdf4;
  --muted: #9cd3b2;
  --gold-1: #ffd77a;
  --gold-2: #f3a53a;
  --emerald-1: #10b981;
  --emerald-2: #047857;
  --green-1: #047857;
  --green-2: #22c55e;
  --badge: #86efac;
  --radius: 18px;
}

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

body {
  font-family: "Prompt", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 50% -5%, rgba(16, 185, 129, 0.35), transparent 70%),
    radial-gradient(500px 500px at 100% 100%, rgba(5, 150, 105, 0.28), transparent 70%),
    radial-gradient(400px 400px at 0% 60%, rgba(243, 165, 58, 0.14), transparent 70%);
}

svg {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- card ---------- */
.card {
  width: calc(100% - 24px); max-width: 520px;
  margin: 12px auto 24px;
  padding: 20px 20px 24px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
  box-shadow: 0 30px 80px -20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex; flex-direction: column; gap: 18px;
}

/* ---------- top banner ---------- */
.top { margin: -6px -6px 0; }
.top-banner {
  border-color: rgba(74, 222, 128, 0.16);
  box-shadow: 0 18px 42px -22px rgba(16, 185, 129, 0.45);
}
.top-banner.banner-empty { aspect-ratio: 16 / 9; }

/* ---------- profile ---------- */
.profile { display: flex; align-items: center; gap: 16px; padding: 0 4px; }
.avatar {
  width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--emerald-1));
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18), 0 10px 30px -6px rgba(243, 165, 58, 0.45);
}
.avatar > * {
  width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #c08a3e, #059669);
  object-fit: cover;
}
.avatar svg { width: 38px; height: 38px; color: #fff; stroke-width: 1.8; }
.who { min-width: 0; display: flex; flex-direction: column; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  color: var(--badge); text-transform: uppercase;
}
h1 {
  font-family: "Kanit", sans-serif; font-weight: 600;
  font-size: clamp(26px, 7vw, 32px); line-height: 1.15;
  overflow-wrap: anywhere;
}
.username { color: var(--muted); font-size: 13px; }

.tagline { text-align: center; color: #cdeede; font-size: 15px; }

/* ---------- link buttons ---------- */
.links { display: flex; flex-direction: column; gap: 14px; }
.link {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius);
  color: #fff; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.link.gold {
  background: linear-gradient(100deg, var(--gold-2) 0%, #d97706 32%, var(--emerald-1) 75%, var(--emerald-2) 100%);
  box-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.55);
}
.link.purple,
.link.green {
  background: linear-gradient(100deg, var(--green-1), var(--green-2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px -10px rgba(34, 197, 94, 0.55);
}
.link::after {
  content: ""; position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
.link:nth-child(2)::after { animation-delay: 1.2s; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.link:hover { transform: translateY(-2px); filter: brightness(1.07); }
.link:active { transform: scale(0.98); }

.link .txt { flex: 1; min-width: 0; }
.link .title {
  display: flex; align-items: center; gap: 8px;
  font-family: "Kanit", sans-serif; font-weight: 600; font-size: 19px; line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.link .sub { display: block; font-size: 12px; opacity: 0.92; margin-top: 2px; }
.link .arrow { width: 22px; height: 22px; }

/* ---------- banners ---------- */
.banners { display: flex; flex-direction: column; gap: 14px; }
.banner {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px -20px rgba(16, 185, 129, 0.5);
  transition: transform 0.2s;
}
a.banner:hover { transform: translateY(-2px); }
.banner img { width: 100%; height: auto; display: block; }
.banner-empty {
  aspect-ratio: 4 / 5;
  display: grid; place-items: center; text-align: center;
  padding: 20px; color: var(--muted); font-size: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #103824, #081c12);
  border-style: dashed;
}
.banner-empty code { color: var(--gold-1); }

footer { text-align: center; font-size: 12px; color: var(--muted); line-height: 1.7; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 0.6s ease forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

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

@media (max-width: 400px) {
  .card { padding: 16px 14px 20px; }
  .avatar { width: 72px; height: 72px; }
  .link { padding: 14px 16px; }
}
