:root {
  --cream: #fff7ef;
  --cream-2: #ffefe3;
  --blush: #ffd3d8;
  --blush-2: #ffe6e8;
  --cheek: #ff8c94;
  --tomato: #ff5d73;
  --butter: #ffe58a;
  --ink: #2a2421;
  --ink-soft: #7a6c66;
  --line: #f1e1d6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(42, 36, 33, 0.08), 0 2px 6px rgba(42, 36, 33, 0.05);
  --shadow-lg: 0 30px 80px rgba(255, 93, 115, 0.18), 0 10px 30px rgba(42, 36, 33, 0.08);
  --display: 'Baloo 2', 'ZCOOL KuaiLe', system-ui, sans-serif;
  --cn: 'ZCOOL KuaiLe', 'Baloo 2', sans-serif;
  --body: 'M PLUS Rounded 1c', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; }

/* polka backdrop */
.dots {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--blush) 1.6px, transparent 1.7px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  opacity: .7;
}
main, .bar, .footer { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1160px) / 2));
  background: rgba(255, 247, 239, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .5px; line-height: 1; padding-top: 4px; }
.brand i { font-style: normal; font-family: var(--cn); color: var(--tomato); font-size: 18px; }
.bar nav { display: flex; gap: 6px; }
.bar nav a {
  text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.bar nav a:hover { background: var(--blush-2); color: var(--tomato); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1;
  padding: 16px 24px 13px; border-radius: 999px; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; margin-top: -3px; }
.btn-x { background: var(--tomato); color: #fff; box-shadow: 0 10px 24px rgba(255, 93, 115, .35); }
.btn-x:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 93, 115, .45); }
.btn-x:active { transform: translateY(1px) scale(.98); }
.btn-soft { background: var(--white); box-shadow: var(--shadow); }
.btn-soft:hover { transform: translateY(-2px); background: var(--blush-2); }
.btn.sm { font-size: 16px; padding: 11px 16px 9px; }

/* ---------- hero ---------- */
.hero {
  width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 72px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 8px 14px; background: var(--white); border-radius: 999px; box-shadow: var(--shadow);
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
}
.online { width: 9px; height: 9px; border-radius: 50%; background: #38d27a; box-shadow: 0 0 0 4px #38d27a33; animation: ping 1.8s ease-in-out infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 8px #38d27a00; } }
h1 { margin: 0; line-height: .82; }
h1 .big {
  display: block; font-family: var(--display); font-weight: 800; letter-spacing: -2px;
  font-size: clamp(96px, 15vw, 196px); color: var(--ink);
}
h1 .cn {
  display: inline-block; margin-top: 10px; font-family: var(--cn); font-weight: 400;
  font-size: clamp(36px, 5vw, 60px); color: var(--white); background: var(--tomato);
  padding: 10px 22px 6px; border-radius: 22px 22px 22px 6px; transform: rotate(-2deg);
  box-shadow: 0 12px 28px rgba(255, 93, 115, .3);
}
.lead { font-size: 19px; line-height: 1.65; color: var(--ink-soft); max-width: 520px; margin: 28px 0 30px; }
.lead b { color: var(--ink); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.mini { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.mini li { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 18px; background: var(--blush-2); }
.mini b { font-family: var(--cn); font-weight: 400; font-size: 22px; color: var(--tomato); }
.mini span { font-size: 13px; color: var(--ink-soft); font-weight: 700; }

/* phone / chat */
.phone {
  background: #fdf3ec; border-radius: 40px; box-shadow: var(--shadow-lg);
  border: 10px solid var(--white); overflow: hidden; display: flex; flex-direction: column;
  height: 640px; max-width: 460px; width: 100%; justify-self: end;
}
.phone-top {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.phone-top .back, .phone-top .more { font-size: 26px; color: var(--ink-soft); width: 24px; line-height: 1; }
.room { flex: 1; text-align: center; line-height: 1.2; }
.room b { font-family: var(--body); font-weight: 800; font-size: 16px; }
.room small { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
#typing.on { color: var(--tomato); }
.chat {
  flex: 1; overflow-y: auto; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth; scrollbar-width: none;
}
.chat::-webkit-scrollbar { display: none; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; animation: msgIn .38s cubic-bezier(.2, 1.4, .4, 1) both; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
@keyframes msgIn { from { opacity: 0; transform: translateY(14px) scale(.9); } }
.msg .av {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.msg .body { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.msg.me .body { align-items: flex-end; }
.msg .who { font-size: 11px; font-weight: 800; color: var(--ink-soft); padding-left: 6px; }
.msg.me .who { display: none; }
.msg .txt {
  background: var(--white); padding: 10px 14px; border-radius: 18px 18px 18px 6px; font-size: 15px; line-height: 1.4;
  box-shadow: 0 2px 8px rgba(42, 36, 33, .06); font-weight: 700;
}
.msg.me .txt { background: var(--blush); border-radius: 18px 18px 6px 18px; }
.msg .stk {
  width: 128px; height: 128px; background: var(--white); border-radius: 22px; padding: 6px;
  box-shadow: 0 2px 8px rgba(42, 36, 33, .06);
}
.msg .stk img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.dots3 { display: inline-flex; gap: 4px; padding: 14px 16px !important; }
.dots3 i { width: 7px; height: 7px; border-radius: 50%; background: var(--cheek); animation: bob 1s infinite; }
.dots3 i:nth-child(2) { animation-delay: .15s; } .dots3 i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.tray { background: var(--white); border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.tray-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tray-tabs button {
  border: 0; background: var(--cream); border-radius: 999px; padding: 6px 14px; font-family: var(--cn); font-size: 16px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.tray-tabs button.on { background: var(--tomato); color: #fff; }
.tray-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tray-grid button {
  border: 0; padding: 4px; background: var(--cream); border-radius: 14px; aspect-ratio: 1;
  transition: transform .15s, background .2s;
}
.tray-grid button:hover { transform: scale(1.08) rotate(-3deg); background: var(--blush-2); }
.tray-grid button:active { transform: scale(.92); }
.tray-grid img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; mix-blend-mode: multiply; }
.tray-hint { margin: 8px 0 0; text-align: center; font-size: 11px; color: var(--ink-soft); font-weight: 700; }

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--cream); overflow: hidden; padding: 16px 0 12px; transform: rotate(-1.2deg); margin: 10px -20px; }
.track { display: flex; gap: 28px; width: max-content; animation: scroll 32s linear infinite; align-items: center; }
.track span { font-family: var(--display); font-weight: 800; font-size: 28px; white-space: nowrap; letter-spacing: .5px; }
.track i { font-style: normal; color: var(--cheek); font-size: 16px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 110px 0 0; }
.h2, .section h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 0; letter-spacing: -1px; }
.sub { color: var(--ink-soft); font-size: 18px; margin: 12px 0 36px; }

/* rules */
.notice {
  display: flex; gap: 18px; align-items: flex-start; background: var(--butter); border-radius: 28px; padding: 26px 30px;
  box-shadow: var(--shadow); margin-bottom: 26px;
}
.pin { font-size: 34px; line-height: 1; transform: rotate(-12deg); }
.notice-k { margin: 0 0 6px; font-weight: 800; font-size: 14px; color: #9a7a1a; }
.notice-sub { margin: 10px 0 0; color: #6d5a2a; font-weight: 700; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rule {
  background: var(--white); border-radius: 30px; padding: 22px 24px 28px; box-shadow: var(--shadow); position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rule:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.num { position: absolute; top: 18px; right: 22px; font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--blush); line-height: 1; }
.rule-gif { width: 150px; height: 150px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 10px var(--blush-2); overflow: hidden; margin: 8px 0 22px 4px; }
.rule-gif img { width: 100%; height: 100%; object-fit: contain; }
.rule h3 { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; margin: 0 0 10px; }
.rule h3 small { display: block; font-family: var(--body); font-size: 13px; font-weight: 800; color: var(--tomato); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
.rule p { margin: 0; color: var(--ink-soft); line-height: 1.6; }

/* who */
.who { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: start; }
.profile { background: var(--white); border-radius: 32px; padding: 34px 28px; text-align: center; box-shadow: var(--shadow); position: sticky; top: 100px; }
.avatar { width: 190px; height: 190px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 10px var(--blush), 0 0 0 20px var(--blush-2); }
.avatar img { width: 100%; height: 100%; object-fit: contain; }
.profile h2 { font-size: 52px; }
.handle { margin: 4px 0 18px; font-family: var(--cn); color: var(--tomato); font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tags span { background: var(--cream); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.facts { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.bubble { max-width: 560px; padding: 16px 20px; border-radius: 24px 24px 24px 8px; background: var(--white); box-shadow: var(--shadow); line-height: 1.6; font-size: 17px; }
.bubble b { color: var(--tomato); }
.bubble.out { align-self: flex-end; background: var(--blush); border-radius: 24px 24px 8px 24px; font-weight: 800; }
.bubble.sticker { padding: 8px; width: 170px; height: 170px; }
.bubble.sticker img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }

/* pack */
.pack { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pk {
  position: relative; border: 0; padding: 8px; background: var(--white); border-radius: 26px; aspect-ratio: 1; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s;
}
.pk img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.pk:nth-child(3n+1) { transform: rotate(-1.5deg); } .pk:nth-child(4n+2) { transform: rotate(1.5deg); }
.pk:hover { transform: scale(1.06) rotate(0); box-shadow: var(--shadow-lg); z-index: 2; }
.pk span {
  position: absolute; left: 50%; bottom: -10px; transform: translate(-50%, 6px); opacity: 0; white-space: nowrap;
  background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.pk:hover span, .pk:focus-visible span { opacity: 1; transform: translate(-50%, 0); }

/* launch */
.launch {
  display: grid; grid-template-columns: 360px 1fr; gap: 50px; align-items: center;
  background: linear-gradient(135deg, var(--blush) 0%, var(--blush-2) 60%, var(--cream-2) 100%);
  border-radius: 44px; padding: 54px; box-shadow: var(--shadow);
}
.cheek-ring { width: 300px; height: 300px; margin: 0 auto; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 0 0 14px #fff8, 0 0 0 28px #fff5, var(--shadow-lg); animation: float 4s ease-in-out infinite; }
.cheek-ring img { width: 100%; height: 100%; object-fit: contain; }
@keyframes float { 50% { transform: translateY(-10px) rotate(2deg); } }
.launch h2 { line-height: .9; }
.launch h2 .big { display: block; font-size: clamp(64px, 9vw, 112px); }
.launch h2 .on { display: inline-block; font-size: clamp(26px, 3.2vw, 36px); color: var(--tomato); margin-top: 6px; }
.launch-copy > p { color: var(--ink-soft); font-size: 18px; line-height: 1.6; max-width: 520px; }
.ca {
  display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 18px; padding: 8px 8px 8px 16px;
  margin: 22px 0; max-width: 560px; box-shadow: 0 2px 8px rgba(42, 36, 33, .06);
}
.ca-label { font-weight: 800; font-size: 13px; color: var(--tomato); }
.ca code { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-weight: 700; }
.copy { border: 0; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 800; font-size: 14px; }

/* footer */
.footer {
  width: min(1160px, calc(100% - 32px)); margin: 110px auto 0; padding: 30px 0 46px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.footer p { margin: 0; color: var(--ink-soft); font-size: 14px; max-width: 520px; line-height: 1.6; }
.footer > a:last-child { font-weight: 800; color: var(--tomato); text-decoration: none; font-size: 14px; }

/* floating sent stickers (pack → chat) */
.fly { position: fixed; z-index: 50; width: 90px; height: 90px; border-radius: 20px; background: #fff; padding: 4px; box-shadow: var(--shadow-lg); pointer-events: none; transition: transform .7s cubic-bezier(.5, 0, .2, 1), opacity .7s; }
.fly img { width: 100%; height: 100%; object-fit: contain; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, 1.2, .4, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .phone { justify-self: center; height: 600px; }
  .rules { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  .profile { position: static; }
  .pack { grid-template-columns: repeat(4, 1fr); }
  .launch { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; }
  .launch-copy > p, .ca { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .bar nav { display: none; }
  .brand i { display: none; }
  .hero { padding-top: 28px; }
  .lead { font-size: 17px; }
  .phone { height: 560px; border-width: 8px; border-radius: 32px; }
  .msg .stk { width: 110px; height: 110px; }
  .pack { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .section { padding-top: 80px; }
  .notice { padding: 22px; }
  .rule-gif { width: 130px; height: 130px; }
  .cheek-ring { width: 230px; height: 230px; }
  .footer { flex-direction: column; text-align: center; }
  .track span { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
