/* =========================================================
   小昕的洛克王国手账
   A pastel magical scrapbook for a Roco Kingdom fan
   ========================================================= */

:root {
  --bg: #fff7fc;
  --white: #fffdfe;
  --pink: #ffa6c9;
  --pink-soft: #ffd9e8;
  --pink-deep: #c93f7c;
  --pink-ink: #a83a68;
  --blue: #a9d9f5;
  --blue-deep: #4e93bd;
  --lavender: #c9c2ff;
  --butter: #ffe9a8;
  --mint: #bde9dc;
  --ink: #5a4364;
  --ink-soft: #795d82;
  --night: #252052;
  --night-2: #342a6a;
  --focus: #8a5cb8;
  --radius-lg: 30px;
  --radius-md: 22px;
  --shadow-card: 0 22px 48px rgba(118, 70, 112, .16);
  --shadow-pink: 0 16px 34px rgba(226, 111, 160, .22);
  --font-display: "ZCOOL KuaiLe", "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 720px at 92% -8%, rgba(169, 217, 245, .62), transparent 62%),
    radial-gradient(900px 650px at -8% 8%, rgba(255, 183, 210, .55), transparent 62%),
    radial-gradient(1000px 760px at 52% 108%, rgba(201, 194, 255, .42), transparent 64%),
    radial-gradient(700px 500px at 100% 62%, rgba(255, 233, 168, .28), transparent 65%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

h1, h2, h3, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: #ffc8de;
  color: #5a2340;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mobile-break {
  display: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transform: translateY(-160%);
  transition: transform .3s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- page decor ---------- */

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

.decor-blob {
  position: absolute;
  display: block;
  width: 58vw;
  max-width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .85;
}

.decor-blob--pink {
  top: -28vw;
  left: -18vw;
  background: radial-gradient(circle, rgba(255, 183, 210, .58) 0%, rgba(255, 183, 210, 0) 67%);
}

.decor-blob--blue {
  top: 18vh;
  right: -26vw;
  background: radial-gradient(circle, rgba(169, 217, 245, .5) 0%, rgba(169, 217, 245, 0) 68%);
}

.decor-blob--butter {
  bottom: -34vw;
  left: 22vw;
  background: radial-gradient(circle, rgba(255, 233, 168, .42) 0%, rgba(255, 233, 168, 0) 68%);
}

.star-field,
.sky-star {
  position: absolute;
}

.sky-star {
  color: var(--star-color, #ffd3e4);
  font-size: var(--size, 12px);
  line-height: 1;
  opacity: .55;
  text-shadow: 0 0 10px rgba(255, 190, 220, .9), 0 0 22px rgba(255, 255, 255, .65);
  animation: twinkle var(--dur, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 14px;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: calc(100% + 8px);
  background: linear-gradient(180deg, rgba(255, 247, 252, .99) 0%, rgba(255, 247, 252, .8) 60%, rgba(255, 247, 252, 0) 100%);
  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 8px 10px 8px 15px;
  border: 1.5px solid rgba(255, 255, 255, .94);
  border-radius: 999px;
  background: rgba(255, 253, 255, .74);
  box-shadow: 0 12px 34px rgba(197, 125, 160, .16);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand__orb {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: .72rem;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .95) 0 10%, transparent 11%),
    radial-gradient(circle at 50% 45%, #ffc2db 0%, #ff92bf 56%, #d85790 100%);
  box-shadow: 0 4px 10px rgba(201, 63, 124, .3), inset 0 0 0 1px rgba(255, 255, 255, .35);
  transition: transform .35s var(--ease-spring);
}

.brand:hover .brand__orb {
  transform: rotate(-10deg) scale(1.08);
}

.brand__text--short {
  display: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .88rem;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.nav__links a:hover {
  color: var(--pink-ink);
  background: rgba(255, 196, 220, .34);
  transform: translateY(-1px);
}

.nav__links a[aria-current="location"] {
  color: var(--pink-ink);
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 195, 217, .7), 0 4px 12px rgba(226, 111, 160, .12);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 9px 17px;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-display);
  font-size: .84rem;
  letter-spacing: .02em;
  text-decoration: none;
  background: linear-gradient(140deg, #6b4a72, #4f385b);
  box-shadow: 0 8px 18px rgba(79, 56, 91, .24);
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}

.nav__cta span {
  color: var(--butter);
  font-size: .8em;
}

.nav__cta:hover {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 12px 22px rgba(79, 56, 91, .3);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  overflow: clip;
  padding: clamp(34px, 5.5vw, 72px) 0 clamp(58px, 8vw, 104px);
}

.hero__clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  filter: blur(22px);
}

.cloud--1 {
  top: 8%;
  left: 4%;
  width: 220px;
  height: 90px;
  animation: drift 16s ease-in-out infinite;
}

.cloud--2 {
  top: 28%;
  right: 3%;
  width: 280px;
  height: 110px;
  opacity: .75;
  animation: drift 20s ease-in-out infinite reverse;
}

.cloud--3 {
  bottom: 6%;
  left: 44%;
  width: 210px;
  height: 80px;
  opacity: .55;
  animation: drift 18s ease-in-out infinite 2s;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding-top: 6px;
}

.hero__welcome {
  margin-bottom: 22px;
}

.washi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 17px;
  border-radius: 8px 15px 10px 17px;
  color: #7d5a1f;
  font-family: var(--font-display);
  font-size: .9rem;
  letter-spacing: .04em;
  background: #fff0b8;
  box-shadow: 0 5px 0 rgba(214, 172, 68, .18), 0 12px 22px rgba(214, 172, 68, .12);
  transform: rotate(-1.6deg);
}

.washi span {
  color: #d39a2e;
  font-size: .75em;
}

.hero__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.6vw, 3.7rem);
  font-weight: 400;
  line-height: 1.24;
  letter-spacing: .01em;
}

.hero__title-under {
  position: relative;
  display: inline-block;
  z-index: 0;
  color: var(--pink-ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
}

.hero__title-under::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -.12em;
  z-index: -1;
  height: .34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 14' preserveAspectRatio='none'%3E%3Cpath d='M4 10C37 3 63 12 97 6c31-5 69-4 120 2' fill='none' stroke='%23FFA6C9' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero__intro {
  max-width: 37em;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.95;
  text-wrap: pretty;
}

.hero__intro strong {
  padding: 0 2px;
  color: var(--ink);
  background: linear-gradient(transparent 64%, rgba(255, 183, 210, .55) 64%);
  font-weight: 700;
}

.hero__sign {
  position: relative;
  margin-top: 16px;
  padding-left: 19px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .96rem;
  line-height: 1.7;
  text-wrap: balance;
}

.hero__sign::before {
  content: "✦";
  position: absolute;
  top: .1em;
  left: 0;
  color: var(--pink);
  font-size: .8em;
  animation: twinkle 4s ease-in-out infinite;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .28s var(--ease-spring), box-shadow .28s ease, background .28s ease;
}

.btn--primary {
  color: #6a2b4c;
  background: linear-gradient(135deg, #ffd1e3, #ffa9cc 55%, #ff9cc3);
  box-shadow: 0 6px 0 #f3a6c7, 0 17px 28px rgba(226, 111, 160, .28), inset 0 1px 0 rgba(255, 255, 255, .85);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.btn--primary:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 9px 0 #f3a6c7, 0 22px 34px rgba(226, 111, 160, .32), inset 0 1px 0 rgba(255, 255, 255, .85);
}

.btn--primary:active {
  transform: translateY(3px) scale(.98);
  box-shadow: 0 2px 0 #f3a6c7, 0 10px 18px rgba(226, 111, 160, .24);
}

.btn--ghost {
  color: var(--pink-ink);
  background: rgba(255, 255, 255, .7);
  border: 2px dashed #f0a9c6;
  box-shadow: 0 10px 24px rgba(226, 111, 160, .12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  transform: translateY(-3px) rotate(1deg);
  background: #fff;
}

.btn--ghost:active {
  transform: translateY(2px) scale(.98);
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn__orb {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 14%, transparent 15%),
    radial-gradient(circle at 50% 50%, #ffc2dc, #f47fae 68%, #c84b83);
  box-shadow: 0 3px 7px rgba(201, 63, 124, .28);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.hero__tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .78rem;
  background: rgba(255, 255, 255, .56);
  box-shadow: 0 4px 12px rgba(197, 125, 160, .08);
}

.hero__tags li::before {
  content: "✦";
  color: var(--pink-deep);
  font-size: .72em;
}

.hero__tags li:nth-child(2) {
  background: rgba(214, 238, 255, .6);
}

.hero__tags li:nth-child(3) {
  background: rgba(255, 242, 194, .55);
}

/* ---------- hero visual ---------- */

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(370px, 35vw, 520px);
}

.avatar-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(272px, 27vw, 342px);
  aspect-ratio: 1;
  animation: pop-in 1s .18s var(--ease-spring) both;
}

.avatar-halo {
  position: absolute;
  inset: -32%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .96) 0%, rgba(255, 214, 232, .62) 36%, rgba(255, 214, 232, 0) 68%);
  animation: halo-pulse 7s ease-in-out infinite;
}

.avatar-ring {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.avatar-ring--outer {
  inset: -29px;
  border: 2.5px dashed rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .12);
  animation: spin 50s linear infinite;
}

.avatar-ring--inner {
  inset: -12px;
  border: 2px dotted rgba(255, 166, 201, .85);
  animation: spin 36s linear infinite reverse;
}

.avatar-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 9px solid #fff;
  border-radius: 50%;
  background: #ffeaf4;
  box-shadow:
    0 24px 60px rgba(201, 63, 124, .28),
    0 0 0 2px rgba(255, 255, 255, .65),
    inset 0 0 0 1px #ffd6e6;
  animation: float-soft 7s ease-in-out infinite;
}

.avatar-photo {
  position: absolute;
  inset: 0;
  background-image: url("meitu/7125906fe09503ee56be46a65419a0c.jpg");
  background-repeat: no-repeat;
  background-size: 190% auto;
  background-position: 47% 28%;
  filter: saturate(1.06) brightness(1.03);
  transform: scale(1.01);
}

.avatar-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 2px rgba(255, 214, 230, .8),
    inset 0 0 30px rgba(255, 255, 255, .2);
  pointer-events: none;
}

.avatar-glint {
  position: absolute;
  top: 4%;
  left: 8%;
  z-index: 3;
  width: 45%;
  height: 30%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
  filter: blur(12px);
  transform: rotate(-28deg);
  pointer-events: none;
}

.avatar-bow {
  position: absolute;
  top: -29px;
  right: -9px;
  z-index: 4;
  width: 106px;
  filter: drop-shadow(0 8px 12px rgba(201, 63, 124, .22));
  animation: bow-sway 6s ease-in-out infinite;
  pointer-events: none;
}

.avatar-badge {
  position: absolute;
  bottom: -13px;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 2px dashed #ffc3d9;
  border-radius: 999px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .8rem;
  line-height: 1;
  white-space: nowrap;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 24px rgba(201, 63, 124, .16);
  transform: translateX(-50%) rotate(-1deg);
}

.avatar-badge span {
  color: #e574a6;
  font-size: .8em;
}

.pet-peek {
  position: absolute;
  bottom: 20px;
  left: -34px;
  z-index: 4;
  width: 112px;
  aspect-ratio: 1;
  border: 5px solid #fff;
  border-radius: 50%;
  background-color: #eaf5ff;
  background-image: url("meitu/c99d194be84d80da43f877afbea22e1.jpg");
  background-repeat: no-repeat;
  background-size: 200% auto;
  background-position: 25% 42%;
  box-shadow: 0 15px 30px rgba(201, 63, 124, .24);
  animation: float-soft 5.5s ease-in-out infinite .8s;
}

.pet-peek::after {
  content: "咕噜？";
  position: absolute;
  top: -17px;
  right: -15px;
  padding: 3px 8px;
  border-radius: 999px 999px 999px 3px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .6rem;
  line-height: 1.5;
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 4px 10px rgba(101, 59, 100, .15);
}

.avatar-spark {
  position: absolute;
  z-index: 3;
  line-height: 1;
  animation: twinkle 4.2s ease-in-out infinite;
  pointer-events: none;
}

.avatar-spark--1 {
  top: 8%;
  left: -6%;
  color: #ffd36e;
  font-size: 1.8rem;
  text-shadow: 0 0 16px rgba(255, 211, 110, .9);
}

.avatar-spark--2 {
  top: 42%;
  right: -13%;
  color: #a9d9f5;
  font-size: 2.2rem;
  animation-delay: .9s;
  text-shadow: 0 0 18px rgba(169, 217, 245, .9);
}

.avatar-spark--3 {
  bottom: 12%;
  right: 2%;
  color: #ffb0d0;
  font-size: 1.2rem;
  animation-delay: 1.7s;
}

.hero-note {
  position: absolute;
  top: 12%;
  left: -44px;
  z-index: 3;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .8rem;
  line-height: 1.65;
  background: #fff;
  box-shadow: 0 12px 28px rgba(101, 59, 100, .16);
  transform: rotate(-5deg);
}

.hero-note__arrow {
  position: absolute;
  right: 12px;
  bottom: -34px;
  width: 46px;
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 3;
  width: 104%;
  margin-left: -2%;
  padding: 13px 0;
  overflow: hidden;
  border-top: 2px dashed rgba(226, 111, 160, .28);
  border-bottom: 2px dashed rgba(226, 111, 160, .28);
  background: linear-gradient(90deg, #ffdcea, #fff3f9 32%, #ffe4f0 68%, #ffd7e8);
  box-shadow: 0 14px 30px rgba(226, 111, 160, .12);
  transform: rotate(-1.1deg);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .94rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.ticker__track i {
  color: #e88db6;
  font-size: .8em;
  font-style: normal;
}

/* ---------- shared section ---------- */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 9vw, 118px) 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .02em;
}

.section-title__star {
  flex: none;
  color: var(--pink-deep);
  font-size: .62em;
  text-shadow: 0 0 16px rgba(255, 166, 201, .8);
  animation: twinkle 4.4s ease-in-out infinite;
}

.section-sub {
  max-width: 46em;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: .96rem;
  line-height: 1.9;
  text-wrap: pretty;
}

.section-head__sticker {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  flex: none;
  padding: 11px 17px;
  border: 2px dashed #ffc3d9;
  border-radius: 18px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .82rem;
  background: #fff;
  box-shadow: 0 12px 26px rgba(197, 125, 160, .13);
  transform: rotate(3deg);
}

.section-head__sticker strong {
  color: var(--pink-deep);
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

/* ---------- gallery ---------- */

.gallery {
  padding-top: clamp(72px, 9vw, 116px);
}

.gallery::after {
  content: "✦";
  position: absolute;
  top: 36px;
  right: 4%;
  z-index: -1;
  color: rgba(255, 159, 196, .16);
  font-size: clamp(90px, 13vw, 180px);
  line-height: 1;
  transform: rotate(14deg);
  pointer-events: none;
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 48px) clamp(26px, 3.4vw, 44px);
}

.pet-cell {
  min-width: 0;
}

.pet-card {
  --tilt: 0deg;
  --offset: 0px;
  position: relative;
  perspective: 1400px;
  border-radius: var(--radius-lg);
  transform: rotate(var(--tilt)) translateY(var(--offset));
  transition: transform .5s var(--ease-spring);
  will-change: transform;
}

.pet-cell:nth-child(1) .pet-card {
  --tilt: -1.4deg;
  --offset: 8px;
}

.pet-cell:nth-child(2) .pet-card {
  --tilt: 1.2deg;
  --offset: 36px;
}

.pet-cell:nth-child(3) .pet-card {
  --tilt: 1deg;
  --offset: -6px;
}

.pet-cell:nth-child(4) .pet-card {
  --tilt: -1.1deg;
  --offset: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .pet-card:hover {
    z-index: 3;
    transform: rotate(0deg) translateY(calc(var(--offset) - 8px)) scale(1.012);
  }

  .pet-card:hover .pet-card__inner {
    transform: rotateY(180deg);
  }

  .pet-card:hover .pet-art {
    transform: scale(1.08);
  }

  .pet-card:hover .pet-flip-icon {
    transform: rotate(180deg);
  }
}

.pet-card__inner {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.2, .8, .25, 1);
}

.pet-card.is-flipped .pet-card__inner {
  transform: rotateY(180deg);
}

.pet-card__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 2.5px solid rgba(255, 255, 255, .94);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card), inset 0 6px 0 rgba(255, 255, 255, .2);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pet-card__face::before {
  content: "";
  position: absolute;
  inset: 11px;
  z-index: 4;
  border: 1.5px dashed rgba(255, 255, 255, .9);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.pet-card__back {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 30px);
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 56%, rgba(255, 255, 255, .8) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 37%, rgba(255, 255, 255, .75) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 87% 63%, rgba(255, 189, 215, .6) 0 2px, transparent 3px),
    radial-gradient(circle at 33% 79%, rgba(255, 189, 215, .45) 0 1.5px, transparent 2.5px),
    radial-gradient(120% 100% at 0 0, #fffdfe 0%, transparent 62%),
    linear-gradient(155deg, #fff3f9, #ffe3f0 55%, #eee7ff);
  transform: rotateY(180deg);
}

.pet-card__back::before {
  border-color: rgba(226, 111, 160, .28);
}

.pet-card__back::after {
  content: "";
  position: absolute;
  top: 54%;
  right: 9%;
  z-index: 0;
  width: 148px;
  height: 148px;
  border: 1.5px dashed rgba(226, 111, 160, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .18), inset 0 0 0 8px rgba(255, 255, 255, .12);
  transform: translateY(-50%) rotate(-10deg);
  pointer-events: none;
}

.pet-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 1.2s ease;
  filter: saturate(1.06) brightness(1.02);
}

.pet-art--warm {
  background-image: url("meitu/55de248e6a2f2bb6f488efa67eac145.jpg");
  background-size: cover;
  background-position: 50% 40%;
}

.pet-art--snow {
  background-image: url("meitu/7125906fe09503ee56be46a65419a0c.jpg");
  background-size: cover;
  background-position: 50% 35%;
}

.pet-art--dragon {
  background-image: url("meitu/7ed4d36cae8d013da3564c7950589e6.jpg");
  background-size: cover;
  background-position: 50% 45%;
}

.pet-art--jelly {
  background-image: url("meitu/c99d194be84d80da43f877afbea22e1.jpg");
  background-size: cover;
  background-position: 35% 45%;
}

.pet-front__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(46, 24, 42, .1) 0%, transparent 28%, transparent 50%, rgba(45, 23, 40, .72) 100%);
}

.pet-front__top {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1.5px solid rgba(255, 255, 255, .88);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .72rem;
  line-height: 1.3;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(70, 32, 59, .14);
}

.type-badge::before {
  content: "✦";
  font-size: .72em;
  opacity: .8;
}

.type-badge--cute {
  color: #a73868;
  background: #ffd9e8;
}

.type-badge--fire {
  color: #9b431f;
  background: #ffd9c2;
}

.type-badge--dark {
  color: #58408c;
  background: #ddd4ff;
}

.type-badge--light {
  color: #8a6116;
  background: #fff0b8;
}

.type-badge--water {
  color: #2d6b94;
  background: #d6eeff;
}

.type-badge--grass {
  color: #3a7448;
  background: #ddf5e2;
}

.type-badge--dragon {
  color: #2f6e6a;
  background: #d3f2ee;
}

.type-badge--ice {
  color: #3d7493;
  background: #dcf3ff;
}

.type-badge--ghost {
  color: #5a4b87;
  background: #e5deff;
}

.type-badge--bug {
  color: #5d6a2e;
  background: #e8f2c6;
}

.type-badge--wing {
  color: #3f5a86;
  background: #dfe9ff;
}

.type-badge--electric {
  color: #7a5a10;
  background: #fff0b8;
}

.type-badge--steel {
  color: #4f6579;
  background: #e3ecf4;
}

.type-badge--rock {
  color: #6e5330;
  background: #f2e1c7;
}

.type-badge--unknown {
  color: #7a6784;
  background: #f1e9f5;
}

.pet-stars {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffe38e;
  background: rgba(58, 35, 54, .28);
  box-shadow: 0 2px 8px rgba(50, 26, 44, .12);
  backdrop-filter: blur(6px);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(62, 35, 25, .55), 0 0 12px rgba(255, 213, 121, .6);
}

.pet-flip-icon {
  position: absolute;
  top: 56px;
  right: 18px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .5s ease;
}

.pet-front__caption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 4;
  color: #fff;
}

.pet-front__mini {
  margin-bottom: 6px;
  color: rgba(255, 224, 236, .92);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.pet-front__caption h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  font-weight: 400;
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(42, 20, 36, .4);
}

.pet-front__line {
  margin-top: 5px;
  color: rgba(255, 255, 255, .8);
  font-size: .82rem;
  line-height: 1.6;
}

.pet-back__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pet-back__no {
  color: rgba(90, 67, 100, .55);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.pet-card__back h3 {
  position: relative;
  z-index: 1;
  margin: 2px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.32;
}

.pet-back__quote {
  position: relative;
  z-index: 1;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: .87rem;
  line-height: 1.85;
  text-wrap: pretty;
}

.pet-back__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed rgba(226, 111, 160, .3);
}

.pet-back__thumb {
  display: block;
  width: 78px;
  height: 78px;
  flex: none;
  border: 4px solid #fff;
  border-radius: 50%;
  background-repeat: no-repeat;
  box-shadow: 0 8px 18px rgba(101, 59, 100, .18);
  transform: rotate(-4deg);
}

.pet-back__thumb--1 {
  background-image: url("meitu/55de248e6a2f2bb6f488efa67eac145.jpg");
  background-size: cover;
  background-position: 50% 40%;
}

.pet-back__thumb--2 {
  background-image: url("meitu/7125906fe09503ee56be46a65419a0c.jpg");
  background-size: cover;
  background-position: 50% 35%;
}

.pet-back__thumb--3 {
  background-image: url("meitu/7ed4d36cae8d013da3564c7950589e6.jpg");
  background-size: cover;
  background-position: 50% 45%;
}

.pet-back__thumb--4 {
  background-image: url("meitu/c99d194be84d80da43f877afbea22e1.jpg");
  background-size: cover;
  background-position: 35% 45%;
}

.pet-back__tag {
  position: absolute;
  top: 57%;
  left: clamp(20px, 5%, 38px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1.5px dashed rgba(226, 111, 160, .35);
  border-radius: 999px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .68rem;
  line-height: 1.5;
  letter-spacing: .03em;
  white-space: nowrap;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 4px 12px rgba(197, 125, 160, .1);
  transform: rotate(-3deg);
  pointer-events: none;
}

.pet-back__meta {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-right: 74px;
  color: var(--ink-soft);
  font-size: .76rem;
  line-height: 1.6;
}

.pet-back__meta p {
  display: flex;
  gap: 8px;
}

.pet-back__meta span {
  flex: none;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .74rem;
}

.pet-stamp {
  position: absolute;
  right: 20px;
  bottom: 17px;
  z-index: 2;
  padding: 4px 9px;
  border: 1.5px solid rgba(201, 63, 124, .35);
  border-radius: 999px;
  color: rgba(201, 63, 124, .75);
  font-family: var(--font-display);
  font-size: .64rem;
  line-height: 1.5;
  letter-spacing: .03em;
  background: rgba(255, 255, 255, .42);
  transform: rotate(-7deg);
}

.pet-back__deco {
  position: absolute;
  right: -18px;
  bottom: -40px;
  z-index: 0;
  color: rgba(226, 111, 160, .08);
  font-size: 190px;
  line-height: 1;
  transform: rotate(14deg);
  pointer-events: none;
}

.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 6;
  width: 122px;
  height: 30px;
  border-right: 3px dotted rgba(255, 255, 255, .55);
  border-left: 3px dotted rgba(255, 255, 255, .55);
  border-radius: 2px;
  background-color: rgba(255, 235, 166, .82);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .32) 0 6px, transparent 6px 12px);
  box-shadow: 0 6px 12px rgba(138, 88, 32, .12);
  transform: translateX(-50%) rotate(-2.5deg);
  pointer-events: none;
}

.tape--pink {
  background-color: rgba(255, 201, 222, .82);
}

.tape--blue {
  background-color: rgba(198, 230, 251, .82);
}

.tape--mint {
  background-color: rgba(197, 238, 222, .82);
}

.pet-card__toggle {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.pet-card__toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

.gallery__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 38px;
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.7;
  text-align: center;
}

.gallery__hint-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border: 1.5px dashed rgba(226, 111, 160, .5);
  border-radius: 50%;
  color: var(--pink-ink);
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1;
}

/* ---------- scenery ---------- */

.scenery {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(42px, 6vw, 78px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.scenery::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 250, 253, .9), rgba(255, 247, 251, .94) 55%, rgba(255, 244, 250, .97)),
    url("beijing/web/03-misty-unicorn.webp") center 38% / cover no-repeat;
}

.scenery__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: clamp(12px, 1.4vw, 18px);
}

.scenery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 7px 7px 9px;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 17px;
  background: linear-gradient(160deg, #fff, #fff8fb);
  box-shadow: 0 12px 26px rgba(120, 72, 99, .12), 0 0 0 1px rgba(255, 255, 255, .55) inset;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .45s var(--ease-spring), box-shadow .45s ease;
}

.scenery-card:nth-child(4n + 1) {
  --tilt: -.65deg;
}

.scenery-card:nth-child(4n + 2) {
  --tilt: .5deg;
}

.scenery-card:nth-child(4n + 3) {
  --tilt: -.3deg;
}

.scenery-card:nth-child(4n) {
  --tilt: .7deg;
}

.scenery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
  background: #f4e8d8;
}

.scenery-card figcaption {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 4px 1px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .8rem;
  line-height: 1.45;
  white-space: nowrap;
}

.scenery-card figcaption span {
  flex: none;
  color: var(--pink-deep);
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
}

@media (hover: hover) and (pointer: fine) {
  .scenery-card:hover {
    z-index: 2;
    transform: rotate(0deg) translateY(-6px);
    box-shadow: 0 20px 34px rgba(120, 72, 99, .18), 0 0 0 1px rgba(255, 255, 255, .6) inset;
  }
}

.scenery__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 34px);
  color: var(--ink-soft);
  font-size: .8rem;
  line-height: 1.7;
  text-align: center;
}

.scenery__note span {
  color: var(--pink-deep);
  font-size: .72em;
  animation: twinkle 4.4s ease-in-out infinite;
}

@media (max-width: 1120px) {
  .scenery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .scenery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .scenery-card {
    padding: 5px 5px 7px;
    border-radius: 14px;
  }

  .scenery-card img {
    border-radius: 9px;
  }

  .scenery-card figcaption {
    padding-top: 6px;
    font-size: .72rem;
  }

  .scenery__note {
    font-size: .74rem;
  }
}

/* ---------- summon ---------- */

.summon {
  padding-top: clamp(34px, 5vw, 60px);
  padding-bottom: clamp(72px, 10vw, 130px);
}

.summon__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 68px);
  overflow: hidden;
  padding: clamp(28px, 5vw, 66px);
  border: 1.5px solid rgba(255, 255, 255, .26);
  border-radius: clamp(30px, 4vw, 48px);
  background:
    radial-gradient(70% 90% at 14% 0%, rgba(128, 94, 194, .9) 0%, transparent 60%),
    radial-gradient(60% 70% at 96% 92%, rgba(255, 143, 190, .32) 0%, transparent 62%),
    linear-gradient(150deg, #252052 0%, #342a6a 48%, #463877 100%);
  box-shadow: 0 34px 80px rgba(60, 42, 110, .34), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.summon__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .38) 1px, transparent 1.6px);
  background-size: 44px 44px;
  opacity: .17;
  pointer-events: none;
}

.summon__sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.moon {
  position: absolute;
  top: 9%;
  right: 7%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fffbe6, #ffe7a1 68%, #f5cf72 100%);
  box-shadow: 0 0 42px rgba(255, 224, 145, .55);
  animation: float-soft 8s ease-in-out infinite;
}

.moon::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 18px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(196, 160, 80, .22);
  box-shadow: -16px 20px 0 -2px rgba(196, 160, 80, .18), -30px -4px 0 -3px rgba(196, 160, 80, .16);
}

.sky-dot {
  position: absolute;
  color: #ffe7b0;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 224, 145, .8);
  animation: twinkle 4.5s ease-in-out infinite;
}

.sky-dot--1 {
  top: 16%;
  left: 7%;
  font-size: 1.1rem;
}

.sky-dot--2 {
  top: 30%;
  left: 48%;
  color: #ffbcd9;
  font-size: .8rem;
  animation-delay: 1.1s;
}

.sky-dot--3 {
  bottom: 18%;
  left: 12%;
  color: #cde8ff;
  font-size: 1.3rem;
  animation-delay: 2s;
}

.sky-dot--4 {
  right: 16%;
  bottom: 12%;
  color: #ffbcd9;
  font-size: .9rem;
  animation-delay: .6s;
}

.sky-dot--5 {
  top: 62%;
  right: 7%;
  font-size: 1rem;
  animation-delay: 1.6s;
}

.sky-dot--6 {
  top: 8%;
  left: 38%;
  color: #cde8ff;
  font-size: 1.6rem;
  opacity: .45;
  animation-delay: .4s;
}

.summon__copy {
  position: relative;
  z-index: 2;
}

.summon__title {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: .02em;
  text-shadow: 0 4px 20px rgba(20, 15, 60, .4);
}

.summon__title::after {
  content: "✦";
  display: inline-block;
  margin-left: 10px;
  color: #ffe39a;
  font-size: .56em;
  vertical-align: .35em;
  animation: twinkle 3.6s ease-in-out infinite;
}

.summon__desc {
  max-width: 34em;
  margin-top: 16px;
  color: rgba(255, 255, 255, .73);
  font-size: .94rem;
  line-height: 1.95;
  text-wrap: balance;
}

.summon__ball-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: clamp(24px, 4vw, 40px);
}

.gurball-float {
  position: relative;
  isolation: isolate;
  width: fit-content;
  animation: float-soft 5.5s ease-in-out infinite;
}

.gurball-float::before {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(192, 232, 255, .5), transparent 55%),
    radial-gradient(circle at 68% 72%, rgba(255, 178, 221, .34), transparent 60%);
  filter: blur(14px);
  opacity: .9;
  pointer-events: none;
  animation: halo-pulse 7s ease-in-out infinite;
}

.gurball {
  position: relative;
  display: block;
  width: clamp(184px, 18vw, 226px);
  aspect-ratio: 1;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 18px 24px rgba(20, 15, 55, .28));
  transition: transform .35s var(--ease-spring), filter .35s ease;
}

.gurball:hover {
  transform: translateY(-4px) scale(1.03) rotate(-1.5deg);
  filter: drop-shadow(0 24px 32px rgba(20, 15, 55, .36)) saturate(1.08);
}

.gurball:active {
  transform: scale(.95);
}

.gurball:focus-visible {
  outline: 3px solid #ffe39a;
  outline-offset: 7px;
}

.gurball.is-summoning {
  animation: ball-summon .8s var(--ease-spring);
}

.gurball__image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.summon__bubble {
  position: absolute;
  top: 4px;
  right: -76px;
  z-index: 4;
  padding: 7px 11px;
  border-radius: 12px 12px 12px 3px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .76rem;
  line-height: 1.4;
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 15, 60, .24);
  animation: bubble-wiggle 3.8s ease-in-out infinite;
}

.summon__bubble span {
  color: #e58bb3;
  font-size: .8em;
}

.summon__panel.has-summoned .summon__bubble {
  opacity: 0;
  transform: scale(.8);
  animation: none;
  pointer-events: none;
}

.summon__weather {
  max-width: 30em;
  color: rgba(255, 255, 255, .64);
  font-size: .78rem;
  line-height: 1.75;
  letter-spacing: .01em;
  text-wrap: pretty;
}

.summon__weather-label {
  color: #ffe39a;
  font-family: var(--font-display);
  font-size: .76em;
  letter-spacing: .06em;
}

.summon__weather-label::before {
  content: "✦";
  margin-right: 5px;
  color: #ffe39a;
  font-size: .8em;
}

.summon__result {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-card {
  --accent: #ff9fc4;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  min-height: 190px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 2px solid #fff;
  border-radius: 28px;
  color: var(--ink);
  background: linear-gradient(150deg, #fffdfe, #fff5fa 60%, #ffeaf4);
  box-shadow: 0 24px 50px rgba(16, 12, 50, .28), 0 0 0 10px rgba(255, 255, 255, .07);
  transform: rotate(1.2deg);
}

.result-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  z-index: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 66%);
  opacity: .22;
  filter: blur(14px);
  transform: translateY(-50%);
  pointer-events: none;
}

.result-card.is-popping {
  animation: result-pop .7s var(--ease-spring);
}

.result-card__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 24px;
  border-radius: 2px;
  background-color: rgba(255, 201, 222, .85);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .32) 0 6px, transparent 6px 12px);
  box-shadow: 0 5px 10px rgba(138, 88, 120, .12);
  transform: translateX(-50%) rotate(1.5deg);
}

.result-card__orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(112px, 13vw, 148px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 20px;
  background-color: #f2e8f7;
  background-image:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .55), transparent 40%),
    radial-gradient(circle at 50% 50%, #fbf2ff, #e4d7f3);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 26px rgba(201, 63, 124, .22), 0 0 0 5px rgba(255, 255, 255, .24);
}

.result-card__orb::after {
  content: "";
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 14px;
  box-shadow: inset 0 0 26px rgba(255, 255, 255, .22);
  pointer-events: none;
}

.result-card__question {
  color: #b795c9;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  animation: float-soft 3.5s ease-in-out infinite;
  transition: opacity .3s ease;
}

.result-card__orb.has-pet .result-card__question {
  opacity: 0;
}

.result-card__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.result-card__label {
  margin-bottom: 5px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .12em;
}

.result-card__label::before {
  content: "✦ ";
  color: #e58bb3;
}

.result-card__copy h3 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 400;
  line-height: 1.35;
}

.result-card__desc {
  max-width: 33em;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.result-card__chips {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.result-card__stars {
  color: #e6a93a;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1;
  text-shadow: 0 1px 0 #fff;
}

.summon__result-note {
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
  line-height: 1.7;
  text-align: center;
}

/* ---------- about ---------- */

.about {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(80px, 10vw, 126px);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.about__visual {
  position: relative;
  min-height: 520px;
}

.about__blob {
  position: absolute;
  inset: 4% 7% 2% 0;
  border-radius: 48% 52% 60% 40% / 45% 50% 50% 55%;
  background:
    radial-gradient(circle at 40% 38%, rgba(255, 203, 224, .72), rgba(255, 203, 224, 0) 64%),
    radial-gradient(circle at 70% 70%, rgba(201, 194, 255, .55), rgba(201, 194, 255, 0) 68%);
  pointer-events: none;
}

.polaroid {
  position: relative;
  margin: 0;
  padding: 14px 14px 58px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 45px rgba(101, 59, 100, .18);
  transition: transform .5s var(--ease-spring), box-shadow .5s ease;
}

.polaroid img {
  width: 100%;
  border-radius: 4px;
  background: #f3e8ef;
}

.polaroid figcaption {
  position: absolute;
  right: 12px;
  bottom: 18px;
  left: 12px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: .84rem;
  line-height: 1.5;
  text-align: center;
}

.polaroid:hover {
  box-shadow: 0 30px 56px rgba(101, 59, 100, .24);
}

.polaroid--main {
  z-index: 2;
  width: 80%;
  transform: rotate(-3deg);
}

.polaroid--main img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 45%;
}

.polaroid--main figcaption {
  right: 40%;
  padding-left: 12px;
  text-align: left;
}

.polaroid--main:hover {
  transform: rotate(-1.2deg) translateY(-6px);
}

.polaroid--small {
  position: absolute;
  right: 0;
  bottom: 2px;
  z-index: 3;
  width: 50%;
  padding: 10px 10px 46px;
  transform: rotate(5deg);
}

.polaroid--small img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 45%;
}

.polaroid--small figcaption {
  bottom: 13px;
  font-size: .75rem;
}

.polaroid--small:hover {
  transform: rotate(2deg) translateY(-5px);
}

.polaroid__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 26px;
  border-radius: 2px;
  background-color: rgba(255, 235, 166, .84);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .34) 0 6px, transparent 6px 12px);
  box-shadow: 0 5px 10px rgba(138, 88, 32, .12);
  transform: translateX(-50%) rotate(-2deg);
}

.polaroid--small .polaroid__tape {
  width: 70px;
  height: 22px;
  background-color: rgba(255, 201, 222, .84);
  transform: translateX(-50%) rotate(3deg);
}

.sticker {
  position: absolute;
  z-index: 4;
  font-family: var(--font-display);
  line-height: 1.4;
  pointer-events: none;
}

.sticker--snap {
  top: 3%;
  left: -1%;
  padding: 8px 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #3c7158;
  font-size: .78rem;
  background: var(--mint);
  box-shadow: 0 8px 18px rgba(60, 113, 88, .18);
  transform: rotate(-8deg);
  animation: float-soft 6s ease-in-out infinite;
}

.sticker--heart {
  top: 4%;
  right: 2%;
  color: var(--pink-deep);
  font-size: 2.4rem;
  text-shadow: 0 2px 0 #fff, 0 8px 20px rgba(226, 111, 160, .25);
  transform: rotate(12deg);
  animation: twinkle 5s ease-in-out infinite;
}

.about__copy {
  position: relative;
}

.about__lead {
  margin-top: 14px;
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.about__story {
  max-width: 41em;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 2;
  text-wrap: pretty;
}

.profile {
  position: relative;
  margin-top: 26px;
  padding: 18px 24px;
  overflow: hidden;
  border: 1.5px dashed rgba(226, 111, 160, .32);
  border-radius: 26px;
  background: rgba(255, 253, 255, .68);
  box-shadow: 0 14px 34px rgba(197, 125, 160, .1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.profile::after {
  content: "✦";
  position: absolute;
  top: -22px;
  right: 16px;
  color: rgba(255, 159, 196, .18);
  font-size: 88px;
  line-height: 1;
  transform: rotate(12deg);
  pointer-events: none;
}

.profile__row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px dotted rgba(138, 110, 146, .25);
}

.profile__row:last-child {
  border-bottom: 0;
}

.profile dt {
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .82rem;
  letter-spacing: .03em;
}

.profile dd {
  color: var(--ink-soft);
  font-size: .88rem;
  line-height: 1.65;
}

.about__types {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .76rem;
  letter-spacing: .03em;
  box-shadow: 0 5px 13px rgba(197, 125, 160, .12);
}

.type-chip::before {
  content: "✦";
  font-size: .7em;
  opacity: .7;
}

.type-chip--cute {
  color: #a73868;
  background: #ffd9e8;
}

.type-chip--light {
  color: #8a6116;
  background: #fff0b8;
}

.type-chip--water {
  color: #2e6c96;
  background: #d6eeff;
}

.type-chip--grass {
  color: #3a7448;
  background: #ddf5e2;
}

.about__note {
  position: relative;
  margin-top: 28px;
  padding: 22px 26px 20px;
  border-left: 6px solid #ffe08a;
  border-radius: 4px 18px 8px 16px;
  background: #fff8d9;
  box-shadow: 0 14px 30px rgba(158, 127, 50, .14);
  transform: rotate(-1.2deg);
}

.about__note::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 82px;
  height: 23px;
  border-radius: 2px;
  background-color: rgba(255, 235, 166, .9);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .34) 0 6px, transparent 6px 12px);
  transform: translateX(-50%) rotate(-2deg);
}

.about__note p {
  color: #7a5a2c;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.9;
}

.about__note cite {
  display: block;
  margin-top: 8px;
  color: rgba(122, 90, 44, .7);
  font-family: var(--font-display);
  font-size: .8rem;
  font-style: normal;
  text-align: right;
}

.about__note-star {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(201, 63, 124, .28);
  font-size: 1.3rem;
  transform: rotate(12deg);
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 30px 0 62px;
  text-align: center;
}

.footer__line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.footer__line span {
  display: block;
  width: min(120px, 20vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 111, 160, .48));
}

.footer__line span:last-child {
  transform: scaleX(-1);
}

.footer__line i {
  color: var(--pink-deep);
  font-size: .9rem;
  font-style: normal;
  animation: twinkle 4s ease-in-out infinite;
}

.footer__thanks {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.footer__meta {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.9;
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 1.5px dashed rgba(226, 111, 160, .45);
  color: var(--pink-ink);
  font-family: var(--font-display);
  font-size: .8rem;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}

.footer__top:hover {
  color: var(--pink-deep);
  transform: translateY(-2px);
}

.footer__top span {
  color: var(--pink-deep);
}

/* ---------- fx ---------- */

.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow: hidden;
  pointer-events: none;
}

.fx-star {
  position: fixed;
  z-index: 200;
  color: var(--fx-color, #ffd36e);
  font-size: var(--fx-size, 14px);
  line-height: 1;
  text-shadow: 0 0 10px rgba(255, 255, 255, .8);
  animation: burst .9s ease-out forwards;
  pointer-events: none;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(.97) rotate(-.3deg);
  transition: opacity .7s ease, transform .85s var(--ease-spring);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- keyframes ---------- */

@keyframes twinkle {
  0%, 100% {
    opacity: .32;
    transform: scale(.75) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(18deg);
  }
}

@keyframes float-soft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes halo-pulse {
  0%, 100% {
    opacity: .72;
    transform: scale(.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -14px);
  }
}

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

@keyframes bow-sway {
  0%, 100% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(11deg) translateY(-2px);
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(.72) rotate(-5deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.04) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px) scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes bubble-wiggle {
  0%, 100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(6deg) translateY(-4px);
  }
}

@keyframes ball-summon {
  0% {
    transform: rotate(0) scale(1);
  }
  20% {
    transform: rotate(-12deg) scale(.94);
  }
  45% {
    transform: rotate(10deg) scale(1.06);
  }
  70% {
    transform: rotate(-6deg) scale(.98);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}

@keyframes result-pop {
  0% {
    opacity: .35;
    transform: rotate(1.2deg) scale(.86);
  }
  55% {
    opacity: 1;
    transform: rotate(-.6deg) scale(1.03);
  }
  100% {
    transform: rotate(1.2deg) scale(1);
  }
}

@keyframes burst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(.2) rotate(var(--rot, 40deg));
  }
}

/* hero entrance */
.hero__copy > * {
  opacity: 0;
  animation: rise-in .8s var(--ease-spring) forwards;
  animation-delay: var(--d, 0s);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero__visual {
    min-height: 440px;
  }

  .hero-note {
    left: -30px;
  }
}

@media (max-width: 980px) {
  .summon__panel {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .summon__copy {
    text-align: center;
  }

  .summon__desc {
    margin-inline: auto;
  }

  .summon__ball-area {
    align-items: center;
  }

  .summon__result {
    max-width: 600px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 30px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero__copy {
    max-width: 700px;
  }

  .hero__visual {
    min-height: 400px;
    margin-top: 4px;
  }

  .hero-note {
    display: none;
  }

  .pet-peek {
    left: -18px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    width: min(100%, 540px);
    min-height: 470px;
    margin-inline: auto;
  }

  .about__copy {
    max-width: 720px;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .nav {
    padding-left: 12px;
  }

  .brand__text--full {
    display: none;
  }

  .brand__text--short {
    display: inline;
  }

  .nav__links .nav__home {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__links a {
    padding: 8px 11px;
    font-size: .86rem;
  }

  .hero__visual {
    min-height: 360px;
  }

  .avatar-stage {
    width: min(300px, 72vw);
  }

  .pet-grid {
    grid-template-columns: 1fr;
    width: min(100%, 500px);
    margin-inline: auto;
    gap: 40px;
  }

  .pet-cell:nth-child(1) .pet-card,
  .pet-cell:nth-child(2) .pet-card,
  .pet-cell:nth-child(3) .pet-card,
  .pet-cell:nth-child(4) .pet-card {
    --tilt: 0deg;
    --offset: 0px;
  }

  .pet-cell:nth-child(odd) .pet-card {
    --tilt: -.8deg;
  }

  .pet-cell:nth-child(even) .pet-card {
    --tilt: .8deg;
  }

  .pet-card__inner {
    aspect-ratio: 4 / 5;
  }

  .pet-art--warm {
    background-size: cover;
    background-position: 48% 40%;
  }

  .pet-art--snow {
    background-size: cover;
    background-position: 50% 35%;
  }

  .pet-art--dragon {
    background-size: cover;
    background-position: 50% 40%;
  }

  .pet-art--jelly {
    background-size: cover;
    background-position: 42% 45%;
  }

  .pet-back__quote {
    font-size: .9rem;
  }

  .section-head__sticker {
    align-self: flex-start;
  }

  .gallery::after {
    display: none;
  }

  .about__lead {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 90px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .nav {
    width: calc(100% - 32px);
    gap: 8px;
  }

  .brand {
    gap: 8px;
    font-size: .95rem;
  }

  .brand__orb {
    width: 29px;
    height: 29px;
  }

  .nav__links a {
    padding: 8px 9px;
    font-size: .82rem;
  }

  .hero {
    padding-top: 26px;
    padding-bottom: 54px;
  }

  .hero__title {
    font-size: clamp(1.9rem, 7.4vw, 3rem);
    line-height: 1.3;
  }

  .hero__intro {
    margin-top: 18px;
    font-size: .94rem;
    line-height: 1.9;
  }

  .hero__sign {
    font-size: .9rem;
  }

  .mobile-break {
    display: block;
  }

  .hero__actions {
    flex-direction: column;
    margin-top: 26px;
  }

  .btn {
    width: 100%;
    padding: 13px 20px;
  }

  .hero__tags {
    margin-top: 24px;
    gap: 7px;
  }

  .hero__tags li {
    padding: 6px 11px;
    font-size: .72rem;
  }

  .hero__visual {
    min-height: 330px;
  }

  .avatar-stage {
    width: min(276px, 76vw);
  }

  .avatar-bow {
    top: -24px;
    right: -6px;
    width: 84px;
  }

  .avatar-badge {
    bottom: -11px;
    padding: 8px 14px;
    font-size: .72rem;
  }

  .pet-peek {
    left: -8px;
    bottom: 12px;
    width: 90px;
    border-width: 4px;
  }

  .pet-peek::after {
    top: -15px;
    right: -10px;
    font-size: .54rem;
  }

  .avatar-spark--1 {
    left: -2%;
    font-size: 1.4rem;
  }

  .avatar-spark--2 {
    right: -6%;
    font-size: 1.7rem;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }

  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.15rem);
    gap: 9px;
  }

  .section-sub {
    font-size: .88rem;
    line-height: 1.85;
  }

  .section-head__sticker {
    display: none;
  }

  .gallery {
    padding-top: 62px;
  }

  .pet-grid {
    gap: 34px;
  }

  .pet-card__inner {
    aspect-ratio: 4 / 5;
  }

  .pet-card__face {
    border-width: 2px;
  }

  .pet-card__face::before {
    inset: 9px;
  }

  .pet-front__top {
    top: 15px;
    right: 15px;
    left: 15px;
  }

  .pet-flip-icon {
    top: 50px;
    right: 15px;
  }

  .pet-front__caption {
    right: 20px;
    bottom: 18px;
    left: 20px;
  }

  .pet-front__caption h3 {
    font-size: clamp(1.4rem, 6vw, 1.7rem);
  }

  .type-badge {
    font-size: .68rem;
    padding: 4px 9px;
  }

  .pet-stars {
    font-size: .75rem;
    letter-spacing: 1px;
  }

  .tape {
    width: 100px;
    height: 26px;
  }

  .pet-card__back {
    padding: 20px;
  }

  .pet-back__quote {
    font-size: .86rem;
    line-height: 1.8;
  }

  .pet-back__footer {
    gap: 12px;
    padding-top: 12px;
  }

  .pet-back__thumb {
    width: 62px;
    height: 62px;
    border-width: 3px;
  }

  .pet-back__tag {
    top: 53%;
    left: 20px;
    font-size: .64rem;
  }

  .pet-back__meta {
    padding-right: 56px;
    font-size: .71rem;
  }

  .pet-stamp {
    right: 16px;
    bottom: 14px;
    font-size: .58rem;
  }

  .pet-back__deco {
    font-size: 150px;
  }

  .gallery__hint {
    margin-top: 30px;
    font-size: .76rem;
  }

  .summon {
    padding-top: 20px;
    padding-bottom: 70px;
  }

  .summon__panel {
    gap: 32px;
    padding: 30px 18px 26px;
    border-radius: 30px;
  }

  .summon__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

  .summon__desc {
    font-size: .88rem;
    line-height: 1.9;
  }

  .summon__bubble {
    display: none;
  }

  .moon {
    top: 5%;
    right: 5%;
    width: 48px;
    height: 48px;
    opacity: .8;
  }

  .moon::after {
    top: 12px;
    right: 13px;
    width: 8px;
    height: 8px;
  }

  .gurball {
    width: 196px;
  }

  .result-card {
    flex-direction: column;
    gap: 14px;
    padding: 20px 16px;
    text-align: center;
    transform: rotate(.8deg);
  }

  .result-card__orb {
    width: 118px;
  }

  .result-card__desc {
    font-size: .8rem;
  }

  .result-card__chips {
    justify-content: center;
  }

  .summon__result-note {
    font-size: .68rem;
  }

  .about {
    padding-bottom: 76px;
  }

  .about__grid {
    gap: 40px;
  }

  .about__visual {
    min-height: 360px;
  }

  .polaroid {
    padding: 10px 10px 46px;
  }

  .polaroid--main {
    width: 82%;
  }

  .polaroid--small {
    width: 51%;
    padding: 8px 8px 40px;
  }

  .polaroid figcaption {
    bottom: 14px;
    font-size: .76rem;
  }

  .polaroid--small figcaption {
    bottom: 10px;
    font-size: .68rem;
  }

  .sticker--snap {
    left: 0;
    font-size: .7rem;
    padding: 6px 11px;
  }

  .sticker--heart {
    top: 1%;
    right: 3%;
    font-size: 2rem;
  }

  .about__story {
    font-size: .9rem;
    line-height: 1.95;
  }

  .profile {
    padding: 14px 18px;
  }

  .profile__row {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .profile dt {
    font-size: .78rem;
  }

  .profile dd {
    font-size: .84rem;
  }

  .about__note {
    padding: 20px 20px 18px;
  }

  .about__note p {
    font-size: .94rem;
  }

  .footer__meta {
    font-size: .68rem;
  }
}

@media (max-width: 420px) {
  .nav {
    padding: 7px 7px 7px 10px;
  }

  .brand__text--short {
    font-size: .88rem;
  }

  .nav__links a {
    padding: 7px 8px;
    font-size: .78rem;
  }

  .hero__title {
    font-size: clamp(1.86rem, 8.1vw, 2rem);
  }

  .hero__visual {
    min-height: 312px;
  }

  .avatar-stage {
    width: min(252px, 74vw);
  }

  .avatar-bow {
    width: 76px;
  }

  .pet-peek {
    width: 82px;
  }

  .avatar-badge {
    font-size: .68rem;
    padding: 7px 12px;
  }

  .section-title {
    font-size: 1.72rem;
  }

  .pet-front__caption h3 {
    font-size: 1.35rem;
  }

  .pet-front__line {
    font-size: .78rem;
  }

  .pet-back__quote {
    font-size: .82rem;
  }

  .pet-back__meta {
    padding-right: 52px;
    font-size: .69rem;
  }

  .pet-stamp {
    font-size: .54rem;
    right: 12px;
  }

  .summon__panel {
    padding: 28px 14px 24px;
  }

  .gurball {
    width: 184px;
  }

  .profile__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile__row dt {
    font-size: .76rem;
  }

  .about__note {
    transform: rotate(-.6deg);
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__copy > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .sky-star,
  .fx-layer {
    display: none;
  }

  .ticker__track {
    animation: none;
    transform: none;
    justify-content: center;
  }

  .ticker__track span:last-child {
    display: none;
  }
}
