/* MoriCat — 邀請卡與抓抓信共用樣式（純靜態、無追蹤、四語字型對齊） */
:root {
  --mc-bg: #faf4ea;
  --mc-bg-deep: #f2e4d0;
  --mc-card: #fffdf9;
  --mc-ink: #352518;
  --mc-ink-soft: #6e5947;
  --mc-accent: #c2642c;
  --mc-accent-hover: #a7511e;
  --mc-line: #e9d9c4;
  --mc-pill: #f6ead9;
  --mc-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}
:lang(zh-Hant), :lang(zh) {
  --mc-font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
}
:lang(en) {
  --mc-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
}
:lang(ja) {
  --mc-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
:lang(ko) {
  --mc-font: "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  word-break: keep-all;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #fffaf2 0%, var(--mc-bg) 55%, var(--mc-bg-deep) 100%);
  color: var(--mc-ink);
  font-family: var(--mc-font);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 32px;
}
.topbar {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--mc-ink);
  font-weight: 700;
  font-size: 15px;
}
.brand-link img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--mc-line);
}
.lang-switch {
  display: inline-flex;
  gap: 4px;
  background: rgba(255, 253, 249, 0.78);
  border: 1px solid var(--mc-line);
  border-radius: 999px;
  padding: 3px;
}
.lang-pill {
  border: 0;
  background: transparent;
  color: var(--mc-ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-pill.active {
  background: var(--mc-ink);
  color: #fff;
}
.invite-card {
  width: 100%;
  max-width: 460px;
  background: var(--mc-card);
  border: 1.5px solid var(--mc-line);
  border-radius: 28px;
  padding: 28px 24px 24px;
  box-shadow: 0 18px 46px rgba(96, 61, 30, 0.10);
  text-align: center;
}
.kicker-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--mc-pill);
  color: #8f4d24;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.cat-frame {
  width: 210px;
  height: 210px;
  margin: 0 auto 16px;
  border-radius: 26px;
  background: radial-gradient(circle at 50% 55%, #fff7ea 0%, #f6e4cd 100%);
  border: 1.5px solid #edd9c1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.cat-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(84, 52, 26, 0.14));
}
.card-title {
  margin: 0 0 10px;
  font-size: clamp(23px, 5.5vw, 28px);
  line-height: 1.32;
  font-weight: 800;
  color: var(--mc-ink);
  overflow-wrap: anywhere;
}
.card-sub {
  margin: 0 auto 16px;
  max-width: 36ch;
  font-size: 15px;
  color: var(--mc-ink-soft);
}
.souvenir-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 14px;
  background: #fbf3e7;
  border: 1px solid var(--mc-line);
  font-size: 13.5px;
  font-weight: 700;
  color: #6f4729;
  margin-bottom: 18px;
}
.souvenir-badge[hidden] { display: none; }
.souvenir-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.985); }
.btn-primary {
  background: var(--mc-accent);
  color: #fff;
  border: 1px solid var(--mc-accent);
  box-shadow: 0 8px 20px rgba(194, 100, 44, 0.24);
}
.btn-primary:hover { background: var(--mc-accent-hover); }
.btn-secondary {
  background: var(--mc-pill);
  color: var(--mc-ink);
  border: 1px solid var(--mc-line);
  cursor: default;
}
.btn-secondary:active { transform: none; }
.hint-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--mc-ink-soft);
}
.card-footer {
  margin-top: 16px;
  font-size: 12px;
  color: var(--mc-ink-soft);
  text-align: center;
}
.card-footer a {
  color: var(--mc-ink-soft);
  text-underline-offset: 3px;
}
