@font-face { font-family: "Recoleta"; src: url("/assets/fonts/Recoleta-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Recoleta"; src: url("/assets/fonts/Recoleta-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/Satoshi-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #351736;
  --ink-2: #6B5A6D;
  --ink-3: #7A6A7C;
  --page: #ffffff;
  --well: #f6f4f7;
  --pink: #EC78CC;
  --pink-soft: #fbe3f4;
  --rule: rgba(53, 23, 54, 0.12);
  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --display: "Recoleta", Georgia, var(--cjk), serif;
  --body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", var(--cjk), sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

.card {
  max-width: 440px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}

/* top */
.top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.top-brand { font: 700 12px/1 var(--body); letter-spacing: 0.28em; color: var(--ink-2); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--well); }
.lang button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--page); color: var(--ink); box-shadow: 0 1px 2px rgba(53,23,54,.12); }

/* stage */
.stage { margin: 4px -20px 0; }
.stage-svg { display: block; width: 100%; height: auto; overflow: visible; }
.guide { fill: none; stroke: var(--ink); stroke-opacity: 0; stroke-width: .6; }
.fl-ink { fill: var(--ink); }
.liquid { fill: var(--pink); }
.ol { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ol-body, .ol-dot { stroke: var(--ink); }
.ol-drop { stroke: var(--pink); }

.welcome {
  margin: 0 0 10px; text-align: center; font-size: 14px; color: var(--ink-2);
}
.welcome b { color: var(--ink); font-weight: 500; }

/* who */
.who { text-align: center; margin-top: 8px; }
.name {
  margin: 0; font: 400 clamp(32px, 9.4vw, 40px)/1.08 var(--display);
  letter-spacing: -0.01em; text-wrap: balance;
}
.role { margin: 10px 0 0; font-weight: 500; font-size: 15px; letter-spacing: .02em; }
.dot-sep { color: var(--pink); }
.line { margin: 14px auto 0; max-width: 30ch; font-size: 15px; color: var(--ink-2); }
.unit { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

/* live */
.live {
  margin: 26px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--well);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
}
.clock { display: flex; flex-direction: column; gap: 2px; }
.clock--home { text-align: right; }
.clock-label { font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.clock-label b { color: var(--ink); font-weight: 500; }
.clock-event { font-size: 12px; color: var(--ink-2); margin-top: -1px; }
.clock-time { font: 400 30px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.clock--home .clock-event { font-size: 12px; color: var(--ink-2); margin-top: -1px; }
.clock-time { color: var(--ink-2); }
.clock-time .colon { display: inline-block; width: .3em; text-align: center; }
.status { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pulse { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--pink);
  animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

/* actions */
.actions { margin-top: 16px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 54px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.grid { margin-top: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid:has(> #a-wechat:not([hidden])) { grid-template-columns: repeat(5, 1fr); }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 2px 12px;
  border-radius: 16px; background: var(--well); text-decoration: none; font-size: 12px; font-weight: 500;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.tile:active { transform: scale(.96); background: var(--pink-soft); }
.tile svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile[hidden] { display: none; }

/* meet */
.meet { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rule); }
.meet-h { margin: 0; font: 400 24px/1.2 var(--display); text-align: center; }
.meet-sub { margin: 6px auto 18px; max-width: 32ch; text-align: center; font-size: 14px; color: var(--ink-2); }
form label { display: block; margin-bottom: 10px; }
form label span { display: block; margin-bottom: 4px; font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
form input, form textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--rule); border-radius: 14px; background: var(--page);
  font: 400 16px/1.4 var(--body); color: var(--ink); resize: none; transition: border-color .2s var(--ease);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--ink); }
form .btn { margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 20px; margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--ink-2); }

.sealed { text-align: center; padding: 6px 0 4px; }
.seal { width: 168px; height: 168px; display: block; margin: 0 auto; transform: rotate(-8deg); }
.seal-o { fill: none; stroke: var(--pink); stroke-width: 3; }
.seal-i { fill: none; stroke: var(--pink); stroke-width: 1.2; }
.seal-ring { font: 700 10.5px var(--body); letter-spacing: .16em; fill: var(--ink); }
.seal-day { font: 400 34px var(--display); fill: var(--ink); text-anchor: middle; }
.seal-mon { font: 700 9.5px var(--body); letter-spacing: .2em; fill: var(--ink); text-anchor: middle; }
.seal-where { font: 700 6.5px var(--body); letter-spacing: .14em; fill: var(--ink-2); text-anchor: middle; }
.reply { margin: 20px 0 0; padding: 16px 18px; border-radius: 18px; background: var(--well); text-align: left; }
.reply-h { margin: 0; font-size: 12px; letter-spacing: .02em; color: var(--ink-3); }
.reply-p { margin: 6px 0 0; font: 400 18px/1.4 var(--display); white-space: pre-line; }
.own { margin-top: 18px; }
.own-p { margin: 0 auto 10px; max-width: 32ch; font-size: 13px; color: var(--ink-3); }
.sealed-h { margin: 14px 0 0; font: 400 22px/1.25 var(--display); }
.sealed-p { margin: 6px auto 0; max-width: 30ch; font-size: 14px; color: var(--ink-2); }

.foot { margin-top: 34px; display: flex; justify-content: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* sheet */
.sheet {
  width: min(420px, calc(100% - 24px)); margin: auto auto 12px; border: 0; border-radius: 22px; padding: 22px 20px 18px;
  color: var(--ink); background: var(--page); box-shadow: 0 20px 60px rgba(53,23,54,.25);
}
.sheet::backdrop { background: rgba(53,23,54,.35); }
.sheet-h { margin: 0; font: 400 20px/1.25 var(--display); }
.sheet-p { margin: 8px 0 12px; font-size: 14px; color: var(--ink-2); }
.sheet-card { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--well);
  font: 400 14px/1.55 var(--body); white-space: pre-wrap; }
.sheet-row { display: grid; gap: 8px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* before the intro runs, hold the content so it can rise in */
.js .who, .js .live, .js .actions, .js .meet, .js .foot { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
}
