﻿:root {
  color-scheme: light;
  --mx: 50%;
  --my: 30%;
  --rose: #ff6fae;
  --rose-deep: #e93f8f;
  --peach: #ffb38a;
  --lemon: #ffe28a;
  --mint: #79dfc8;
  --sky: #80c8ff;
  --lavender: #b99cff;
  --ink: #332033;
  --soft-ink: #77506f;
  --milk: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.82);
  --shadow: 0 26px 80px rgba(154, 54, 116, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "LINE Seed Sans TH", system-ui, sans-serif;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.72), transparent 0 18%, transparent 34%),
    linear-gradient(120deg, rgba(255, 111, 174, 0.24), transparent 32%),
    linear-gradient(235deg, rgba(128, 200, 255, 0.26), transparent 34%),
    linear-gradient(160deg, #fff7fb 0%, #ffe2ef 38%, #efe4ff 72%, #dff7ff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.34) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 76%);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  isolation: isolate;
}

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

.bubble,
.ribbon,
.twinkle {
  position: absolute;
  display: block;
}

.bubble {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.48);
  animation: drift 9s ease-in-out infinite;
}

.bubble-a {
  width: 148px;
  height: 148px;
  left: 6vw;
  top: 10vh;
}

.bubble-b {
  width: 92px;
  height: 92px;
  right: 9vw;
  top: 18vh;
  animation-delay: -2.4s;
}

.bubble-c {
  width: 118px;
  height: 118px;
  right: 16vw;
  bottom: 8vh;
  animation-delay: -4.8s;
}

.ribbon {
  width: 260px;
  height: 62px;
  border-radius: 999px;
  opacity: 0.5;
  filter: blur(0.2px);
  transform: rotate(-18deg);
}

.ribbon-a {
  left: -74px;
  bottom: 16vh;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 174, 0.48), rgba(255, 226, 138, 0.54), transparent);
}

.ribbon-b {
  right: -92px;
  top: 9vh;
  background: linear-gradient(90deg, transparent, rgba(128, 200, 255, 0.54), rgba(185, 156, 255, 0.52), transparent);
  transform: rotate(22deg);
}

.twinkle {
  color: rgba(255, 255, 255, 0.95);
  font-family: "Itim", cursive;
  text-shadow: 0 10px 24px rgba(233, 63, 143, 0.24);
  animation: blink 2.8s ease-in-out infinite;
}

.twinkle-a {
  left: 16vw;
  top: 28vh;
  font-size: 36px;
}

.twinkle-b {
  right: 18vw;
  top: 34vh;
  font-size: 30px;
  animation-delay: -1s;
}

.twinkle-c {
  left: 22vw;
  bottom: 18vh;
  font-size: 26px;
  animation-delay: -1.8s;
}

.profile {
  position: relative;
  width: min(100%, 438px);
  padding: 34px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.68)),
    var(--milk);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.25);
  animation: rise-in 700ms cubic-bezier(.2,.9,.2,1) both;
}

.profile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 132px;
  background:
    radial-gradient(circle at 24% 0%, rgba(255, 179, 138, 0.62), transparent 44%),
    radial-gradient(circle at 76% 10%, rgba(128, 200, 255, 0.46), transparent 42%),
    linear-gradient(90deg, rgba(255, 111, 174, 0.24), rgba(255, 226, 138, 0.18), rgba(121, 223, 200, 0.2));
  pointer-events: none;
}

.portrait-wrap {
  position: relative;
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
}

.portrait-glow {
  position: absolute;
  inset: -12px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, var(--rose), var(--lemon), var(--mint), var(--sky), var(--lavender), var(--rose));
  filter: saturate(1.18);
  animation: spin 8s linear infinite;
}

.logo {
  position: relative;
  width: 142px;
  height: 142px;
  border: 7px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(146, 54, 118, 0.2);
}

.badge {
  position: absolute;
  right: -10px;
  bottom: 18px;
  min-width: 54px;
  padding: 7px 10px 6px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-deep), #ff7f55);
  box-shadow: 0 12px 24px rgba(233, 63, 143, 0.28);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  padding: 7px 14px 6px;
  border: 1px solid rgba(233, 63, 143, 0.16);
  border-radius: 999px;
  color: var(--rose-deep);
  background: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  margin: 0;
  font-family: "Itim", "LINE Seed Sans TH", cursive;
  font-size: clamp(38px, 10vw, 55px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: 0;
  color: #2d1731;
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.72);
}

.intro {
  position: relative;
  max-width: 344px;
  margin: 15px auto 22px;
  color: var(--soft-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.72;
}

.links {
  position: relative;
  display: grid;
  gap: 12px;
}

.link-button {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 28px;
  align-items: center;
  min-height: 74px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(68, 32, 79, 0.16);
  transform: translateY(0) scale(1);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.link-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.34), transparent 22%),
    linear-gradient(112deg, rgba(255,255,255,0.28), transparent 36%, rgba(255,255,255,0.18));
  transform: translateX(-105%);
  transition: transform 460ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 20px 36px rgba(68, 32, 79, 0.22);
  filter: saturate(1.08);
}

.link-button:hover::before,
.link-button:focus-visible::before {
  transform: translateX(105%);
}

.link-button.is-pressed {
  transform: translateY(1px) scale(0.99);
}

.line {
  background: linear-gradient(135deg, #19cc62 0%, #00a950 56%, #33df95 100%);
}

.tiktok {
  background:
    radial-gradient(circle at 12% 18%, rgba(95, 228, 255, 0.72), transparent 24%),
    linear-gradient(135deg, #101015 0%, #191921 38%, #ff3b8d 72%, #5fe4ff 100%);
}

.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #5a8cff 46%, #9b7dff 100%);
}

.icon,
.label,
.arrow {
  position: relative;
  z-index: 1;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 23px;
  font-weight: 800;
}

.label {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-left: 13px;
  text-align: left;
}

.label strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.18;
}

.label small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 30px;
  line-height: 1;
}

.footer-note {
  position: relative;
  margin: 20px 0 0;
  color: rgba(51, 32, 51, 0.54);
  font-size: 13px;
  font-weight: 600;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -20px, 0) scale(1.06); }
}

@keyframes blink {
  0%, 100% { opacity: 0.36; transform: scale(0.88) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(8deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 460px) {
  .page-shell {
    align-items: start;
    padding: 18px 12px;
  }

  .profile {
    width: 100%;
    border-radius: 30px;
    padding: 28px 15px 18px;
  }

  .portrait-wrap {
    width: 132px;
    height: 132px;
    margin-bottom: 15px;
  }

  .logo {
    width: 122px;
    height: 122px;
    border-width: 6px;
  }

  .badge {
    right: -8px;
    bottom: 12px;
    min-width: 48px;
    padding: 6px 8px 5px;
    font-size: 11px;
  }

  .intro {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .link-button {
    grid-template-columns: 46px 1fr 26px;
    min-height: 68px;
    border-radius: 20px;
  }

  .icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 21px;
  }

  .label strong {
    font-size: 16px;
  }

  .label small {
    font-size: 12px;
  }

  .bubble-a,
  .bubble-b,
  .bubble-c {
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
