:root {
  --cream: #fff5fa;
  --paper: #fffbfd;
  --ink: #30334d;
  --muted: #756f84;
  --peach: #ffd4e5;
  --peach-strong: #ef8db4;
  --pink: #ffd8e8;
  --blue: #dcecff;
  --blue-strong: #8cbbe9;
  --lilac: #e5e1ff;
  --yellow: #ddeeff;
  --line: rgba(48, 51, 77, 0.12);
  --shadow: 0 24px 70px rgba(78, 93, 126, 0.14);
  --soft-shadow: 0 14px 38px rgba(78, 93, 126, 0.1);
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --body: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --jp: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", var(--body);
  --radius-xl: 42px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --page-width: 1220px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-palette="mint"] {
  --cream: #f5faff;
  --paper: #fcfeff;
  --ink: #2e3b59;
  --muted: #6f7b91;
  --peach: #d5eaff;
  --peach-strong: #72b2e6;
  --pink: #ffd9e9;
  --blue: #e6f2ff;
  --blue-strong: #73a9dc;
  --lilac: #e2e8ff;
  --yellow: #d7eaff;
  --line: rgba(46, 59, 89, 0.12);
  --shadow: 0 24px 70px rgba(62, 99, 136, 0.14);
  --soft-shadow: 0 14px 38px rgba(62, 99, 136, 0.1);
}

body[data-palette="lavender"] {
  --cream: #fff3f9;
  --paper: #fffbfd;
  --ink: #3a304c;
  --muted: #806f86;
  --peach: #ffcee2;
  --peach-strong: #e67fac;
  --pink: #ffd1e4;
  --blue: #e1efff;
  --blue-strong: #85addd;
  --lilac: #f0def5;
  --yellow: #e1efff;
  --line: rgba(58, 48, 76, 0.12);
  --shadow: 0 24px 70px rgba(112, 75, 107, 0.14);
  --soft-shadow: 0 14px 38px rgba(112, 75, 107, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 18%, rgba(255, 193, 219, 0.58), transparent 23rem),
    radial-gradient(circle at 93% 9%, rgba(187, 222, 255, 0.72), transparent 24rem),
    var(--cream);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.section-shell {
  width: min(calc(100% - 48px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 48px), var(--page-width));
  margin: 18px auto 0;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: color-mix(in srgb, var(--paper) 77%, transparent);
  box-shadow: 0 10px 35px rgba(71, 49, 62, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--ink);
  background: var(--pink);
  transform: rotate(-5deg);
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.brand:hover .brand-mark {
  background: var(--peach);
  transform: rotate(6deg) scale(1.06);
}

.brand-mark svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.brand-copy {
  display: grid;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.mood-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.mood-toggle:hover {
  background: var(--paper);
  transform: rotate(-2deg) translateY(-1px);
}

.mood-toggle:active {
  transform: scale(0.97);
}

.mood-toggle-icon {
  color: var(--peach-strong);
  font-size: 17px;
  animation: twinkle 2.4s ease-in-out infinite;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  min-height: 720px;
  padding-block: clamp(80px, 10vw, 132px) 96px;
}

.hero::before {
  position: absolute;
  top: 22%;
  left: 38%;
  width: 150px;
  height: 150px;
  border: 1.5px dashed rgba(82, 65, 90, 0.14);
  border-radius: 50%;
  content: "";
  transform: rotate(18deg);
}

.eyebrow,
.section-kicker {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker::before {
  margin-right: 7px;
  color: var(--peach-strong);
  content: "♡";
  font-family: var(--display);
  font-size: 1.15em;
  font-style: normal;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7c5a67;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peach-strong);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--peach-strong) 16%, transparent);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(60px, 6.9vw, 98px);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.hero h1::after {
  display: inline-block;
  margin-left: 0.14em;
  color: var(--peach-strong);
  content: "✦";
  font-size: 0.34em;
  vertical-align: 0.75em;
  animation: twinkle 3.4s ease-in-out infinite;
}

.title-prelude {
  display: block;
  margin-bottom: 10px;
  font-family: var(--jp);
  font-size: 0.33em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero h1 .marker {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-style: italic;
}

.hero h1 .marker::after {
  position: absolute;
  right: -7%;
  bottom: 1%;
  left: -4%;
  z-index: -1;
  height: 32%;
  border-radius: 50% 45% 48% 42%;
  background: var(--peach-strong);
  content: "";
  opacity: 0.54;
  transform: rotate(-2deg);
}

.hero-lead {
  max-width: 510px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 33px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 54px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}

.button:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.button-primary:hover {
  box-shadow:
    0 15px 32px rgba(43, 38, 51, 0.24),
    0 0 0 5px rgba(255, 180, 207, 0.16);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(43, 38, 51, 0.2);
}

.button-primary span {
  font-size: 18px;
}

.button-ghost {
  border-color: var(--line);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
}

.play-dot {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 8px;
  text-indent: 1px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.button:hover .play-dot {
  background: var(--peach);
  transform: rotate(-10deg) scale(1.1);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 29px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-meta span:not(:last-child)::after {
  margin-inline: 11px;
  color: var(--peach-strong);
  content: "✦";
}

.hero-visual {
  position: relative;
  min-height: 590px;
}

.hero-photo {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: absolute;
  inset: 76px 26px 52px 28px;
  z-index: 3;
  margin: 0;
  overflow: hidden;
  border: 12px solid var(--paper);
  border-radius: 46% 46% 32px 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotate(3.2deg) rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition: box-shadow 0.45s ease, transform 0.45s var(--ease);
  will-change: transform;
}

.hero-photo:hover {
  box-shadow:
    0 32px 72px rgba(63, 53, 78, 0.2),
    0 0 0 7px rgba(255, 255, 255, 0.17);
}

.hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(24, 22, 31, 0.28));
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
  transition: transform 1.2s var(--ease);
}

.hero-photo:hover img {
  transform: scale(1.035);
}

.hero-photo figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53ae81;
  box-shadow: 0 0 0 4px rgba(83, 174, 129, 0.15);
}

.tape {
  position: absolute;
  top: 28px;
  z-index: 4;
  width: 90px;
  height: 28px;
  background: rgba(255, 232, 169, 0.74);
  box-shadow: 0 2px 7px rgba(55, 43, 45, 0.07);
}

.tape-left {
  left: -27px;
  transform: rotate(-39deg);
}

.tape-right {
  right: -26px;
  transform: rotate(39deg);
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(83, 65, 90, 0.13);
  border-radius: 50%;
}

.orbit-one {
  inset: 20px 0;
  animation: orbit-breathe 11s ease-in-out infinite;
  transform: rotate(-8deg);
}

.orbit-two {
  inset: 58px 36px 22px;
  border-style: dashed;
  transform: rotate(9deg);
}

.floating-emoji {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--display);
  animation: float 4.5s ease-in-out infinite;
}

.emoji-star {
  top: 34px;
  right: 2%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 27px;
  transform: rotate(10deg);
}

.emoji-heart {
  bottom: 64px;
  left: -2%;
  color: #d46588;
  font-size: 44px;
  animation-delay: -1.4s;
}

.emoji-spark {
  top: 45%;
  right: -2%;
  color: var(--peach-strong);
  font-size: 36px;
  animation-delay: -2.2s;
}

.round-sticker {
  position: absolute;
  right: 4px;
  bottom: 23px;
  z-index: 6;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px dashed rgba(43, 38, 51, 0.4);
  border-radius: 50%;
  background: var(--blue);
  transform: rotate(12deg);
  animation: sticker-bob 6s ease-in-out infinite;
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
}

.round-sticker::before {
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  border-radius: inherit;
  content: "";
}

.round-sticker span,
.round-sticker strong {
  grid-area: 1 / 1;
}

.round-sticker span {
  transform: translateY(-10px);
}

.round-sticker strong {
  font-size: 17px;
  letter-spacing: 0.02em;
  transform: translateY(9px);
}

.mini-polaroid {
  position: absolute;
  bottom: 10px;
  left: -8px;
  z-index: 2;
  width: 138px;
  padding: 8px 8px 20px;
  border: 1px solid rgba(50, 43, 56, 0.08);
  background: #fff;
  box-shadow: var(--soft-shadow);
  transform: rotate(-9deg);
}

.mini-polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: 52% 42%;
}

.mini-polaroid span {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  color: #7b6672;
  font-family: var(--display);
  font-size: 9px;
  font-style: italic;
  text-align: center;
}

.vertical-jp {
  position: absolute;
  top: 37%;
  left: -31px;
  z-index: 5;
  padding: 10px 5px;
  border-left: 1px solid rgba(43, 38, 51, 0.22);
  color: var(--muted);
  font-family: var(--jp);
  font-size: 9px;
  letter-spacing: 0.2em;
  line-height: 1.8;
  writing-mode: vertical-rl;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid rgba(43, 38, 51, 0.1);
  background: color-mix(in srgb, var(--yellow) 53%, var(--paper));
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding: 13px 0;
  color: #5b4b34;
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.05em;
  animation: ticker 24s linear infinite;
}

.ticker-track b {
  font-style: normal;
}

.story {
  padding-block: 150px 150px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 55px;
}

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -23px;
}

.section-heading h2,
.movie-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5.6vw, 72px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.section-heading > p {
  max-width: 470px;
  justify-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 68px;
  align-items: center;
}

.story-collage {
  position: relative;
  min-height: 620px;
}

.story-collage::before {
  position: absolute;
  inset: 85px 45px 30px 80px;
  border-radius: 45% 45% 20px 20px;
  background: var(--blue);
  content: "";
  transform: rotate(-6deg);
}

.story-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 9px solid var(--paper);
  background: var(--paper);
  box-shadow: var(--soft-shadow);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-photo-main {
  top: 0;
  left: 70px;
  width: 54%;
  height: 78%;
  border-radius: 160px 160px 20px 20px;
  transform: rotate(-2deg);
}

.story-photo-main img {
  object-position: 50% 34%;
}

.story-photo-small {
  right: 2%;
  bottom: 5%;
  width: 39%;
  height: 47%;
  border-radius: 16px;
  transform: rotate(7deg);
}

.story-photo-small img {
  object-position: 50% 45%;
}

.hello-sticker {
  position: absolute;
  top: 32px;
  right: 4%;
  z-index: 3;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--pink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transform: rotate(9deg);
}

.hello-sticker small {
  margin-top: -24px;
  font-family: var(--body);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collage-note {
  position: absolute;
  bottom: 30px;
  left: 3%;
  z-index: 3;
  padding: 19px;
  border: 1px solid rgba(56, 46, 58, 0.08);
  background: #fffbe8;
  box-shadow: 0 8px 20px rgba(52, 43, 51, 0.1);
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.45;
  transform: rotate(-4deg);
}

.story-panel {
  padding: 36px 0;
}

.story-lines {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.story-lines span {
  color: var(--muted);
  font-size: 12px;
}

.story-lines::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--peach-strong);
  content: "";
}

.story-lines strong {
  margin-left: auto;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
}

.story-panel blockquote {
  margin: 45px 0 37px;
  font-family: var(--display);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.6;
}

.mahiro-card {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 28px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--pink) 52%, var(--paper));
}

.mahiro-card > div:last-child {
  display: grid;
  flex: 1;
  gap: 4px;
}

.mahiro-card p {
  margin: 0;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.mahiro-card strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 650;
}

.mahiro-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.mahiro-face {
  position: relative;
  width: 72px;
  height: 68px;
  flex: 0 0 auto;
  border: 1.3px solid rgba(65, 53, 67, 0.75);
  border-radius: 46% 46% 48% 48%;
  background:
    radial-gradient(circle at 31% 69%, rgba(255, 153, 174, 0.42) 0 6px, transparent 7px),
    radial-gradient(circle at 69% 69%, rgba(255, 153, 174, 0.42) 0 6px, transparent 7px),
    #f5e8dc;
}

.mahiro-ear {
  position: absolute;
  top: -13px;
  z-index: -1;
  width: 27px;
  height: 28px;
  border: 1.3px solid rgba(65, 53, 67, 0.75);
  border-radius: 70% 18% 38% 28%;
  background: var(--peach);
}

.mahiro-ear-left {
  left: 2px;
  transform: rotate(-17deg);
}

.mahiro-ear-right {
  right: 2px;
  transform: scaleX(-1) rotate(-17deg);
}

.mahiro-bang {
  position: absolute;
  top: -2px;
  width: 35px;
  height: 30px;
  border-top: 2px solid rgba(65, 53, 67, 0.72);
  border-radius: 50%;
}

.mahiro-bang-left {
  left: 4px;
  transform: rotate(17deg);
}

.mahiro-bang-right {
  right: 4px;
  transform: rotate(-17deg);
}

.mahiro-eye {
  position: absolute;
  top: 34px;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #463d49;
}

.mahiro-eye::after {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.mahiro-eye-left {
  left: 20px;
}

.mahiro-eye-right {
  right: 20px;
}

.mahiro-mouth {
  position: absolute;
  bottom: 13px;
  left: 50%;
  width: 9px;
  height: 5px;
  border-bottom: 1px solid #7f5864;
  border-radius: 50%;
  transform: translateX(-50%);
}

.mahiro-ahoge {
  position: absolute;
  top: -23px;
  left: 48%;
  width: 19px;
  height: 24px;
  border-top: 2px solid rgba(65, 53, 67, 0.75);
  border-left: 2px solid rgba(65, 53, 67, 0.75);
  border-radius: 80% 0 0;
  transform: rotate(25deg);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  font-size: 11px;
}

.character-section {
  padding-block: 30px 145px;
}

.character-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(42px, 6vw, 86px);
  min-height: 650px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(63, 53, 78, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 15%, rgba(255, 255, 255, 0.78), transparent 22rem),
    linear-gradient(135deg, #d8efff 0%, #fff2f7 54%, #fff0c9 100%);
  box-shadow: 0 35px 80px rgba(83, 78, 106, 0.13);
}

.character-card::after {
  position: absolute;
  right: -65px;
  bottom: -92px;
  z-index: 0;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(82, 65, 90, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.character-visual {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 604px;
  overflow: hidden;
  place-items: center;
  border-radius: 36px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.17) 1px, transparent 1px) 0 0 / 42px
      100%,
    linear-gradient(145deg, #b8ddff, #efd8ff 58%, #ffd9e5);
  isolation: isolate;
}

.character-visual::before {
  position: absolute;
  top: 11%;
  left: 50%;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(67, 54, 80, 0.13);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.58), transparent 68%);
  content: "";
  transform: translateX(-50%);
}

.character-file,
.character-stamp {
  position: absolute;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.character-file {
  top: 26px;
  left: 28px;
  padding: 8px 11px;
  border: 1px solid rgba(55, 46, 65, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.character-stamp {
  top: 36px;
  right: 23px;
  display: grid;
  width: 67px;
  height: 67px;
  place-items: center;
  border: 1px dashed rgba(55, 46, 65, 0.43);
  border-radius: 50%;
  color: #69536e;
  transform: rotate(11deg);
}

.character-emblem {
  position: relative;
  display: grid;
  width: min(66%, 330px);
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 42% 58% 53% 47% / 51% 43% 57% 49%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 17%),
    linear-gradient(145deg, #f4a9c4, #bfd9ff 66%, #fff1bd);
  box-shadow:
    0 30px 60px rgba(91, 75, 117, 0.22),
    inset 0 0 0 13px rgba(255, 255, 255, 0.22);
  animation: character-float 7s ease-in-out infinite;
  transform: rotate(-5deg);
  transition: background 0.45s ease, transform 0.45s var(--ease);
}

.character-emblem::before,
.character-emblem::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.character-emblem::before {
  inset: -22px;
  border: 1px dashed rgba(74, 58, 82, 0.25);
  transform: rotate(8deg);
}

.character-emblem::after {
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.character-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: 94%;
  height: 94%;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 27%;
  pointer-events: none;
}

.character-game-icon,
.character-heart-icon,
.character-spark {
  position: absolute;
  z-index: 2;
}

.character-game-icon {
  right: -5%;
  bottom: 12%;
  font-size: 43px;
  animation: character-icon 4s ease-in-out infinite;
}

.character-heart-icon {
  top: 13%;
  left: -2%;
  color: #c95e82;
  font-family: var(--display);
  font-size: 50px;
  transform: rotate(-17deg);
}

.character-spark {
  color: #fff;
  font-family: var(--display);
  animation: twinkle 3.1s ease-in-out infinite;
}

.character-spark-a {
  top: 3%;
  right: 8%;
  font-size: 30px;
}

.character-spark-b {
  bottom: 4%;
  left: 9%;
  font-size: 26px;
  animation-delay: -1.2s;
}

.character-signature {
  position: absolute;
  right: 28px;
  bottom: 25px;
  left: 28px;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.character-signature span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.character-signature strong {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--jp);
  font-size: 13px;
  font-weight: 600;
}

.character-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: clamp(20px, 3vw, 44px) clamp(20px, 3.8vw, 55px) clamp(20px, 3vw, 44px) 0;
}

.character-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 5.4vw, 76px);
  font-weight: 550;
  letter-spacing: -0.06em;
  line-height: 1.06;
}

.character-intro {
  max-width: 610px;
  margin: 25px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
}

.character-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.character-mode {
  padding: 10px 15px;
  border: 1px solid rgba(60, 51, 72, 0.13);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease);
}

.character-mode:hover {
  color: var(--ink);
  transform: translateY(-2px) rotate(-1deg);
}

.character-mode.is-active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.character-mode:focus-visible,
.character-link:focus-visible,
.chat-choices button:focus-visible,
.chat-reset:focus-visible {
  outline: 3px solid var(--peach-strong);
  outline-offset: 3px;
}

.character-note {
  min-height: 82px;
  margin: 23px 0 27px;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--peach-strong);
  color: #5f5364;
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.65;
}

.character-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.character-facts div {
  padding: 13px 15px;
  border: 1px solid rgba(61, 52, 72, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
}

.character-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.character-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.character-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 17px;
  border: 1px solid rgba(55, 47, 63, 0.16);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease);
}

.character-link:hover {
  background: #fff;
  transform: translate(3px, -2px);
}

.character-link span {
  color: var(--peach-strong);
  font-size: 16px;
}

.character-credit {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.character-card[data-character-mode="shy"] .character-emblem {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 17%),
    linear-gradient(145deg, #ffd0dc, #f2c6ff 62%, #d7ebff);
  transform: rotate(3deg) scale(0.98);
}

.character-card[data-character-mode="daily"] .character-emblem {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 17%),
    linear-gradient(145deg, #fff1aa, #c9e7ff 56%, #ffd9e8);
  transform: rotate(-2deg) scale(1.015);
}

.character-chat-section {
  padding-block: 0 145px;
}

.mahiro-chat-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 208, 226, 0.2), transparent 18rem),
    var(--ink);
  box-shadow: 0 38px 90px rgba(53, 45, 64, 0.2);
}

.mahiro-chat-card::before {
  position: absolute;
  top: -70px;
  right: 18%;
  width: 190px;
  height: 190px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.chat-main {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 4vw, 54px);
  border-radius: 31px;
  background:
    linear-gradient(rgba(88, 72, 96, 0.035) 1px, transparent 1px) 0 0 / 100% 36px,
    #fff9fc;
}

.chat-profile-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(61, 52, 72, 0.09);
}

.chat-avatar,
.chat-mini-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(145deg, var(--pink), var(--blue) 67%, var(--yellow));
  font-family: var(--jp);
  font-weight: 600;
}

.chat-avatar {
  width: 52px;
  height: 52px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.48);
  overflow: hidden;
}

.chat-profile-copy {
  display: grid;
  gap: 3px;
}

.chat-profile-copy strong {
  font-family: var(--display);
  font-size: 17px;
}

.chat-profile-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.chat-profile-copy i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68b88e;
  box-shadow: 0 0 0 4px rgba(104, 184, 142, 0.14);
}

.chat-tag {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(68, 57, 76, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.chat-heading {
  margin-top: 30px;
}

.chat-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(37px, 4.5vw, 58px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.chat-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.mahiro-chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 315px;
  margin-top: 27px;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid rgba(71, 59, 78, 0.08);
  border-radius: 23px;
  background: rgba(219, 231, 246, 0.4);
  scrollbar-color: rgba(92, 76, 101, 0.23) transparent;
  scrollbar-width: thin;
}

.chat-message {
  display: flex;
  align-items: end;
  gap: 9px;
  animation: chat-pop 0.32s var(--ease) both;
}

.chat-message p {
  max-width: 78%;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid rgba(64, 53, 73, 0.08);
  border-radius: 18px 18px 18px 5px;
  color: #554a59;
  background: #fff;
  box-shadow: 0 8px 20px rgba(70, 58, 78, 0.06);
  font-size: 13px;
  line-height: 1.75;
}

.chat-message-user {
  justify-content: flex-end;
}

.chat-message-user .chat-mini-avatar {
  order: 2;
  background: linear-gradient(145deg, var(--yellow), var(--peach));
}

.chat-message-user p {
  order: 1;
  border-color: transparent;
  border-radius: 18px 18px 5px;
  color: #fff;
  background: var(--ink);
}

.chat-mini-avatar {
  width: 28px;
  height: 28px;
  overflow: hidden;
  font-size: 11px;
}

.chat-avatar img,
.chat-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 31px;
  margin: 10px 6px 0;
  color: var(--muted);
}

.chat-typing[hidden] {
  display: none;
}

.chat-typing > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--peach-strong);
  animation: typing-dot 0.9s ease-in-out infinite;
}

.chat-typing > span:nth-child(2) {
  animation-delay: 0.12s;
}

.chat-typing > span:nth-child(3) {
  animation-delay: 0.24s;
}

.chat-typing small {
  margin-left: 5px;
  font-size: 9px;
}

.chat-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.chat-choices button {
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(66, 55, 77, 0.12);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  transition:
    background 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s var(--ease);
}

.chat-choices button:hover {
  border-color: rgba(210, 101, 139, 0.28);
  background: #fff;
  transform: translateY(-2px) rotate(-0.5deg);
}

.chat-choices button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.chat-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 31px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 210, 225, 0.2), transparent 9rem),
    linear-gradient(160deg, #52475b, #2e2935);
  text-align: center;
}

.chat-side-star {
  position: absolute;
  top: 24px;
  right: 25px;
  color: var(--peach);
  font-size: 24px;
  animation: twinkle 3.2s ease-in-out infinite;
}

.chat-side-label {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.affection-orb {
  position: relative;
  display: grid;
  width: 142px;
  height: 142px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 178, 205, 0.26), transparent 62%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.025),
    inset 0 0 35px rgba(255, 214, 229, 0.08);
  animation: affection-breathe 4.6s ease-in-out infinite;
}

.affection-orb span {
  color: #ffb7cb;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.affection-orb strong {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 30px;
}

.affection-track {
  width: 100%;
  height: 6px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.affection-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd979, #ff9fbe, #b7d9ff);
  transition: width 0.55s var(--ease);
}

.affection-label {
  min-height: 18px;
  margin: 14px 0 0;
  color: #ffdce7;
  font-family: var(--display);
  font-size: 16px;
}

.chat-reset {
  margin-top: 27px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  transition:
    background 0.24s ease,
    transform 0.24s var(--ease);
}

.chat-reset:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: rotate(-2deg);
}

.chat-side > small {
  max-width: 175px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  line-height: 1.6;
}

.soundtrack-section {
  padding-block: 0 145px;
}

.soundtrack-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 4vw, 55px);
  border: 1px solid rgba(69, 55, 77, 0.1);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.8), transparent 20rem),
    linear-gradient(135deg, #fbe2ec, #e7e2ff 52%, #d9efff);
  box-shadow: 0 34px 80px rgba(80, 68, 104, 0.13);
}

.soundtrack-card::after {
  position: absolute;
  right: 4%;
  bottom: -78px;
  color: rgba(97, 77, 109, 0.08);
  content: "♪";
  font-family: var(--display);
  font-size: 240px;
  line-height: 1;
  pointer-events: none;
  transform: rotate(13deg);
}

.soundtrack-cover {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 430px;
  place-items: center;
}

.soundtrack-vinyl {
  position: absolute;
  width: min(88%, 395px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffd67d 0 6%, #2c2932 6.5% 10%, transparent 10.5%),
    repeating-radial-gradient(circle, #34303a 0 4px, #1e1c22 5px 8px);
  box-shadow: 0 24px 50px rgba(42, 35, 55, 0.28);
  animation: vinyl-spin 18s linear infinite;
}

.soundtrack-art {
  position: relative;
  z-index: 1;
  width: min(84%, 350px);
  aspect-ratio: 1;
  border: 11px solid rgba(255, 255, 255, 0.85);
  border-radius: 30px;
  box-shadow: 0 22px 42px rgba(64, 51, 77, 0.2);
  object-fit: cover;
  transform: rotate(-3deg);
  transition: transform 0.45s var(--ease);
}

.soundtrack-cover:hover .soundtrack-art {
  transform: rotate(1deg) scale(1.025);
}

.soundtrack-spark {
  position: absolute;
  z-index: 2;
  color: var(--peach-strong);
  font-family: var(--display);
  animation: float 4.6s ease-in-out infinite;
}

.soundtrack-spark-a {
  top: 2%;
  right: 0;
  font-size: 38px;
}

.soundtrack-spark-b {
  bottom: 5%;
  left: 1%;
  color: #d6658d;
  font-size: 34px;
  animation-delay: -1.8s;
}

.soundtrack-copy {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.soundtrack-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: #6b5c72;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.soundtrack-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ab98a;
  box-shadow: 0 0 0 5px rgba(90, 185, 138, 0.14);
  animation: soundtrack-pulse 1.8s ease-in-out infinite;
}

.soundtrack-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 7vw, 92px);
  font-weight: 550;
  letter-spacing: -0.065em;
  line-height: 1;
}

.soundtrack-meta {
  margin: 17px 0 0;
  color: #5c5063;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.soundtrack-description {
  max-width: 470px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.netease-player {
  width: min(100%, 430px);
  margin-top: 25px;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(70, 58, 81, 0.1);
}

.netease-player iframe {
  display: block;
  width: 100%;
  border: 0;
}

.soundtrack-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.soundtrack-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(69, 55, 77, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s var(--ease);
}

.soundtrack-link:hover {
  background: #fff;
  transform: translate(3px, -2px);
}

.soundtrack-link span {
  color: var(--peach-strong);
  font-size: 16px;
}

.soundtrack-link:focus-visible {
  outline: 3px solid var(--peach-strong);
  outline-offset: 3px;
}

.gallery-section {
  position: relative;
  overflow: hidden;
  padding-block: 130px 145px;
  border-block: 1px solid rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.92), transparent 24rem),
    radial-gradient(circle at 88% 78%, rgba(255, 235, 176, 0.34), transparent 21rem),
    radial-gradient(circle, rgba(143, 185, 219, 0.16) 1.2px, transparent 1.4px) 0 0 / 27px
      27px,
    linear-gradient(135deg, #e9f7ff 0%, #fff2f8 52%, #fff8e7 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px rgba(255, 255, 255, 0.64);
}

.gallery-section::before,
.gallery-section::after {
  position: absolute;
  z-index: 0;
  color: rgba(209, 99, 139, 0.3);
  font-family: var(--display);
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.gallery-section::before {
  top: 58px;
  left: 3%;
  content: "♡";
  font-size: 62px;
  opacity: 0.72;
  transform: rotate(-13deg);
}

.gallery-section::after {
  right: 4%;
  bottom: 72px;
  content: "✦";
  font-size: 42px;
  animation-delay: -2.2s;
}

.gallery-section > .section-shell {
  position: relative;
  z-index: 1;
}

.gallery-heading {
  position: relative;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(24px, 4vw, 58px);
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow:
    0 20px 42px rgba(88, 101, 131, 0.09),
    inset 0 1px rgba(255, 255, 255, 0.82);
}

.gallery-heading::before {
  position: absolute;
  top: -12px;
  left: clamp(34px, 5vw, 70px);
  width: 92px;
  height: 23px;
  background: rgba(255, 218, 231, 0.78);
  box-shadow: 0 3px 8px rgba(91, 69, 88, 0.07);
  content: "";
  transform: rotate(-3deg);
}

.gallery-heading .section-kicker {
  margin-bottom: 13px;
}

.gallery-heading h2 {
  position: relative;
  display: inline-block;
}

.gallery-heading h2::after {
  position: absolute;
  top: -0.24em;
  right: -0.34em;
  color: var(--peach-strong);
  content: "♡";
  font-family: var(--display);
  font-size: 0.22em;
  animation: twinkle 3.4s ease-in-out infinite;
}

.gallery-heading > p {
  max-width: 480px;
  padding: 23px 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 25px 25px 9px;
  background: rgba(255, 248, 215, 0.8);
  box-shadow: 0 12px 25px rgba(115, 93, 80, 0.08);
  font-family: var(--jp);
  font-size: 13px;
  line-height: 1.95;
  transform: rotate(0.8deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.74fr 0.9fr;
  grid-template-rows: 360px 320px;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 43px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 24px 55px rgba(77, 94, 124, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.75);
}

.photo-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --card-lift: 0px;
  --card-scale: 1;
  --rest-rotate: -0.35deg;
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 6px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  color: #fff;
  background: #d8d8d8;
  box-shadow:
    0 14px 32px rgba(70, 88, 117, 0.15),
    0 0 0 1px rgba(109, 137, 169, 0.06);
  cursor: zoom-in;
  text-align: left;
  transform: perspective(950px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translateY(var(--card-lift)) scale(var(--card-scale)) rotate(var(--rest-rotate));
  transition:
    box-shadow 0.4s ease,
    transform 0.35s var(--ease);
  will-change: transform;
}

.photo-card:hover {
  --card-lift: -5px;
  --card-scale: 1.012;
  --rest-rotate: 0deg;
  box-shadow:
    0 25px 50px rgba(58, 67, 92, 0.18),
    0 0 0 5px rgba(255, 226, 237, 0.62);
}

.photo-card:nth-child(2) {
  --rest-rotate: 0.28deg;
}

.photo-card:nth-child(3) {
  --rest-rotate: -0.22deg;
}

.photo-card:nth-child(4) {
  --rest-rotate: 0.34deg;
}

.photo-card:focus-visible {
  outline: 3px solid #b75c81;
  outline-offset: 4px;
}

.photo-card::before {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: #d65f89;
  background: rgba(255, 249, 252, 0.86);
  box-shadow: 0 8px 18px rgba(49, 39, 58, 0.14);
  content: "♡";
  font-family: var(--display);
  font-size: 20px;
  font-style: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.55) rotate(-18deg);
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--ease);
}

.photo-card:nth-child(2)::before {
  color: #db9472;
  content: "✦";
}

.photo-card:nth-child(3)::before {
  color: #d56cba;
  content: "☆";
  font-size: 18px;
}

.photo-card:nth-child(4)::before {
  color: #6b9ed5;
  content: "♪";
  font-size: 18px;
}

.photo-card:hover::before,
.photo-card:focus-visible::before {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(5deg);
  animation: photo-sticker-wiggle 0.55s var(--ease);
}

.photo-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(27, 25, 33, 0.7));
  transition: opacity 0.35s ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94);
  transition: filter 0.45s ease, transform 0.75s var(--ease);
}

.photo-card:hover img {
  filter: saturate(1.08);
  transform: scale(1.055);
}

.photo-hover-spark {
  position: absolute;
  z-index: 4;
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(48, 38, 57, 0.38);
  animation: photo-hover-spark 0.9s ease-out forwards;
}

.photo-card-a {
  grid-column: 1;
  grid-row: 1 / 3;
}

.photo-card-a img {
  object-position: 50% 36%;
}

.photo-card-b {
  grid-column: 2;
  grid-row: 1;
}

.photo-card-b img {
  object-position: 50% 44%;
}

.photo-card-d {
  grid-column: 3;
  grid-row: 1;
}

.photo-card-d img {
  object-position: 50% 50%;
}

.photo-card-e {
  grid-column: 2 / 4;
  grid-row: 2;
}

.photo-card-e img {
  object-position: 50% 42%;
}

.photo-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 10px 13px 9px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 17px 17px 6px;
  color: #4f4654;
  background: rgba(255, 248, 252, 0.88);
  box-shadow: 0 9px 20px rgba(45, 38, 53, 0.13);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  font-family: var(--jp);
  font-size: 20px;
  font-weight: 600;
}

.photo-caption small {
  color: #806d78;
  font-family: var(--jp);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.8;
}

.photo-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: #6d5662;
  background: rgba(255, 249, 252, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 16px;
  transition: transform 0.3s var(--ease), background 0.3s ease;
}

.photo-card:hover .photo-icon {
  color: #d85e88;
  background: #fff;
  transform: rotate(10deg) scale(1.06);
}

.movie-section {
  padding-block: 150px;
}

.movie-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 0.62fr);
  gap: 80px;
  min-height: 680px;
  overflow: hidden;
  padding: clamp(50px, 6vw, 82px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.54), transparent 21rem),
    linear-gradient(130deg, var(--peach), color-mix(in srgb, var(--lilac) 62%, var(--paper)));
  box-shadow: 0 38px 90px rgba(96, 68, 88, 0.12);
}

.movie-card::before {
  position: absolute;
  top: 30px;
  left: 38%;
  width: 94px;
  height: 32px;
  border: 1px solid rgba(43, 38, 51, 0.14);
  border-radius: 50%;
  content: "";
  transform: rotate(-15deg);
}

.movie-copy {
  align-self: center;
  z-index: 2;
}

.movie-copy h2 {
  font-size: clamp(54px, 6.5vw, 88px);
}

.movie-copy > p:not(.section-kicker, .movie-hint) {
  max-width: 450px;
  margin: 30px 0 34px;
  color: #6d5f6a;
  font-size: 15px;
  line-height: 1.9;
}

.movie-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-facts span {
  padding: 8px 12px;
  border: 1px solid rgba(43, 38, 51, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.movie-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.movie-hint span {
  font-size: 17px;
}

.phone-frame {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(100%, 385px);
  padding: 12px;
  border: 7px solid #2e2933;
  border-radius: 45px;
  background: #2e2933;
  box-shadow: 20px 28px 55px rgba(51, 38, 54, 0.24);
  transform: rotate(3deg);
}

.phone-frame::after {
  position: absolute;
  inset: -10px;
  z-index: -1;
  border: 1px dashed rgba(43, 38, 51, 0.22);
  border-radius: 52px;
  content: "";
  transform: rotate(-5deg);
}

.phone-speaker {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 3;
  width: 54px;
  height: 8px;
  border-radius: 99px;
  background: #171419;
  transform: translateX(-50%);
}

.phone-frame video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 30px;
  background: #111;
  object-fit: cover;
}

.phone-sticker {
  position: absolute;
  right: -36px;
  bottom: 80px;
  z-index: 4;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #e3708f;
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  pointer-events: none;
  transform: rotate(-11deg);
}

.phone-sticker b {
  margin-top: -25px;
  font-size: 22px;
  font-style: normal;
  font-weight: 400;
}

.notes-section {
  padding-block: 30px 90px;
}

.notes-heading {
  display: block;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.notes-heading .section-kicker {
  margin-bottom: 21px;
}

.notes-heading > p:last-child {
  margin: 18px auto 0;
}

.mood-board {
  display: grid;
  grid-template-columns: 0.85fr 1.1fr 0.65fr;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: color-mix(in srgb, var(--paper) 52%, transparent);
}

.mood-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px;
}

.mood-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 24px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}

.mood-button span {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.54);
  font-size: 23px;
}

.mood-button:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.mood-button.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(66, 50, 61, 0.08);
}

.mood-paper {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 350px;
  padding: 50px;
  border-radius: 25px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1px) 0 40px / 100% 34px,
    var(--yellow);
  box-shadow: inset 0 0 60px rgba(132, 95, 63, 0.08);
  transform: rotate(-1.6deg);
  transition: background 0.4s ease;
}

.paper-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 87px;
  height: 26px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 1px 4px rgba(59, 46, 49, 0.08);
  transform: translateX(-50%) rotate(2deg);
}

.mood-label {
  margin: 0 0 24px;
  color: rgba(74, 58, 43, 0.56);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.mood-quote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 550;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

.mood-sign {
  margin: 28px 0 0;
  color: rgba(74, 58, 43, 0.62);
  font-family: var(--display);
  font-size: 13px;
  font-style: italic;
  text-align: right;
}

.star-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 25px;
  background: var(--blue);
  text-align: center;
}

.star-corner > p:first-child {
  max-width: 150px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.star-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(43, 38, 51, 0.15);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(67, 75, 101, 0.1);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.star-button span {
  color: var(--peach-strong);
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}

.star-button:hover {
  box-shadow: 0 18px 35px rgba(67, 75, 101, 0.15);
  transform: translateY(-5px) rotate(5deg);
}

.star-button.is-pop {
  animation: button-pop 0.42s var(--ease);
}

.star-count {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.star-count strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
}

.social-section {
  position: relative;
  padding-block: 30px 150px;
}

.social-heading {
  position: relative;
  z-index: 1;
}

.social-heading h2 {
  max-width: 720px;
}

.social-heading::after {
  position: absolute;
  top: -18px;
  right: 7%;
  color: var(--peach-strong);
  content: "♡";
  font-family: var(--display);
  font-size: 44px;
  font-style: italic;
  transform: rotate(13deg);
}

.social-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.social-card {
  --card-bg: var(--paper);
  --card-accent: var(--peach-strong);
  --card-halo: var(--pink);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 286px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(48, 51, 77, 0.1);
  border-radius: 30px;
  color: var(--ink);
  background: var(--card-bg);
  box-shadow: 0 14px 34px rgba(70, 74, 103, 0.08);
  text-decoration: none;
  isolation: isolate;
  transition:
    box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.social-card::before {
  position: absolute;
  right: -30px;
  bottom: -48px;
  z-index: -1;
  width: 150px;
  height: 150px;
  border: 1px dashed color-mix(in srgb, var(--card-accent) 45%, transparent);
  border-radius: 50%;
  content: "";
  transition: transform 0.55s var(--ease);
}

.social-card::after {
  position: absolute;
  top: 84px;
  right: -18px;
  z-index: -1;
  width: 95px;
  height: 95px;
  border-radius: 38% 62% 54% 46% / 44% 42% 58% 56%;
  background: color-mix(in srgb, var(--card-halo) 52%, transparent);
  content: "";
  transform: rotate(18deg);
  transition: transform 0.55s var(--ease), border-radius 0.55s ease;
}

.social-card:hover,
.social-card:focus-visible {
  box-shadow: 0 24px 50px rgba(70, 74, 103, 0.14);
  transform: translateY(-8px) rotate(-1.2deg);
}

.social-card:nth-child(even):hover,
.social-card:nth-child(even):focus-visible {
  transform: translateY(-8px) rotate(1.2deg);
}

.social-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--card-accent) 55%, white);
  outline-offset: 4px;
}

.social-card:hover::before {
  transform: scale(1.14) rotate(14deg);
}

.social-card:hover::after {
  border-radius: 56% 44% 35% 65% / 46% 60% 40% 54%;
  transform: translateY(-10px) rotate(-12deg) scale(1.08);
}

.social-douyin {
  --card-bg: #eff9ff;
  --card-accent: #6baedc;
  --card-halo: #c9e9ff;
}

.social-xiaohongshu {
  --card-bg: #fff1f5;
  --card-accent: #ec7f9f;
  --card-halo: #ffcadd;
}

.social-weibo {
  --card-bg: #fff6e9;
  --card-accent: #dda068;
  --card-halo: #ffe0b7;
}

.social-x {
  --card-bg: #f0f2f9;
  --card-accent: #646882;
  --card-halo: #dce0f0;
}

.social-instagram {
  --card-bg: #fbF3ff;
  --card-accent: #b583d1;
  --card-halo: #e8d1f8;
}

.social-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: color-mix(in srgb, var(--card-accent) 80%, var(--ink));
  font-family: var(--body);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.social-topline > span {
  opacity: 0.5;
  letter-spacing: 0.04em;
}

.social-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-top: 20px;
  place-items: center;
  border-radius: 19px;
  color: var(--card-accent);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--card-accent) 14%, transparent);
  transform: rotate(-5deg);
  transition: transform 0.4s var(--ease);
}

.social-card:nth-child(even) .social-icon {
  transform: rotate(5deg);
}

.social-card:hover .social-icon {
  transform: rotate(0) scale(1.07);
}

.social-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-icon .icon-fill {
  fill: currentColor;
  stroke: none;
}

.social-x-mark {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}

.social-copy {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding-top: 26px;
}

.social-copy strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.social-copy > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.social-arrow {
  position: absolute;
  right: 17px;
  bottom: 17px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 18%, transparent);
  border-radius: 50%;
  color: var(--card-accent);
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: transform 0.35s var(--ease), background 0.35s ease;
}

.social-card:hover .social-arrow {
  background: #fff;
  transform: rotate(8deg) scale(1.08);
}

.social-spark {
  position: absolute;
  top: 72px;
  right: 25px;
  color: var(--card-accent);
  font-size: 15px;
  opacity: 0.7;
  animation: twinkle 2.8s ease-in-out infinite;
}

.social-card:nth-child(2) .social-spark,
.social-card:nth-child(5) .social-spark {
  animation-delay: 0.6s;
}

.social-card:nth-child(3) .social-spark {
  animation-delay: 1.1s;
}

.social-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.social-note b {
  color: var(--peach-strong);
  font-size: 17px;
  font-style: normal;
}

.social-doodle {
  position: absolute;
  color: var(--peach-strong);
  font-family: var(--display);
  opacity: 0.48;
  pointer-events: none;
}

.doodle-one {
  top: 8px;
  left: -24px;
  font-size: 50px;
  transform: rotate(-18deg);
}

.doodle-two {
  top: 150px;
  right: -18px;
  font-size: 35px;
  animation: twinkle 3.2s ease-in-out infinite;
}

.doodle-three {
  bottom: 110px;
  left: 3%;
  font-size: 24px;
  transform: rotate(14deg);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  padding: 30px max(24px, calc((100vw - var(--page-width)) / 2));
  color: #62566a;
  background: var(--peach);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer p small {
  display: inline-block;
  margin-top: 5px;
  font-size: 9px;
  opacity: 0.72;
}

.site-footer a {
  justify-self: end;
  font-weight: 700;
  text-decoration: none;
}

.footer-cat {
  position: relative;
  width: 56px;
  height: 46px;
  border: 1.2px solid currentColor;
  border-radius: 48% 48% 42% 42%;
}

.footer-cat::before,
.footer-cat::after {
  position: absolute;
  top: -10px;
  width: 18px;
  height: 20px;
  border-top: 1.2px solid currentColor;
  content: "";
}

.footer-cat::before {
  left: 3px;
  border-left: 1.2px solid currentColor;
  transform: skew(-20deg) rotate(-10deg);
}

.footer-cat::after {
  right: 3px;
  border-right: 1.2px solid currentColor;
  transform: skew(20deg) rotate(10deg);
}

.cat-eye {
  position: absolute;
  top: 18px;
  width: 2px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.cat-eye.left {
  left: 17px;
}

.cat-eye.right {
  right: 17px;
}

.cat-mouth {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 8px;
  height: 4px;
  border-bottom: 1px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.lightbox {
  width: min(92vw, 1020px);
  max-width: none;
  height: min(88vh, 860px);
  max-height: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(27, 23, 32, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.lightbox figure {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 10px solid var(--paper);
  border-radius: 28px;
  background: var(--paper);
}

.lightbox figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  background: #eee8e5;
}

.lightbox figcaption {
  padding: 17px 24px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 15px;
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(35, 29, 39, 0.62);
  cursor: pointer;
  font-size: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox-close {
  top: -22px;
  right: -22px;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: -24px;
}

.lightbox-next {
  right: -24px;
}

.site-music {
  position: fixed;
  bottom: clamp(12px, 2.5vw, 28px);
  left: clamp(12px, 2vw, 28px);
  z-index: 44;
  width: min(330px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(66, 54, 75, 0.14);
  border-radius: 21px;
  background: rgba(255, 249, 252, 0.94);
  box-shadow: 0 18px 44px rgba(56, 45, 66, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition:
    width 0.28s var(--ease),
    padding 0.28s ease;
}

.site-music-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-music-head > img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(62, 49, 71, 0.16);
}

.site-music-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.site-music-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-music-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--display);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-music-copy > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-music-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(67, 55, 76, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.site-music-player {
  margin-top: 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.site-music-player iframe {
  display: block;
  width: 100%;
  border: 0;
}

.site-music-hint {
  margin: 7px 3px 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.site-music.is-collapsed {
  width: 215px;
}

.site-music.is-collapsed .site-music-player,
.site-music.is-collapsed .site-music-hint {
  display: none;
}

.site-music-toggle:focus-visible {
  outline: 3px solid var(--peach-strong);
  outline-offset: 3px;
}

.mahiro-mascot {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  bottom: clamp(12px, 2.5vw, 28px);
  z-index: 45;
  width: clamp(122px, 12vw, 172px);
  pointer-events: none;
}

.mascot-bubble {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 3;
  width: 258px;
  padding: 17px 17px 15px;
  border: 1px solid rgba(69, 55, 77, 0.14);
  border-radius: 22px 22px 7px;
  background: rgba(255, 251, 253, 0.96);
  box-shadow: 0 20px 45px rgba(53, 43, 62, 0.19);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: auto;
  transform-origin: bottom right;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s var(--ease);
}

.mascot-bubble::after {
  position: absolute;
  right: 33px;
  bottom: -9px;
  width: 17px;
  height: 17px;
  border-right: 1px solid rgba(69, 55, 77, 0.12);
  border-bottom: 1px solid rgba(69, 55, 77, 0.12);
  background: #fffafc;
  content: "";
  transform: rotate(45deg);
}

.mascot-bubble.is-closed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px) scale(0.96);
}

.mascot-bubble-close,
.mascot-minimize {
  display: grid;
  place-items: center;
  border: 1px solid rgba(66, 54, 75, 0.12);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  line-height: 1;
}

.mascot-bubble-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 25px;
  height: 25px;
  font-size: 16px;
}

.mascot-speech {
  min-height: 51px;
  margin: 0;
  padding-right: 18px;
  color: #554a59;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.72;
}

.mascot-actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}

.mascot-actions button,
.mascot-actions a {
  flex: 1;
  padding: 8px 9px;
  border: 1px solid rgba(66, 55, 75, 0.12);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s var(--ease);
}

.mascot-actions a {
  color: #fff;
  background: var(--ink);
}

.mascot-actions button:hover,
.mascot-actions a:hover {
  background: var(--peach);
  color: var(--ink);
  transform: translateY(-1px);
}

.mascot-figure-wrap {
  position: relative;
  width: 100%;
  pointer-events: auto;
}

.mascot-figure {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  height: clamp(205px, 22vw, 278px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.mascot-figure:active {
  cursor: grabbing;
}

.mascot-figure img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 16px rgba(64, 49, 72, 0.18));
  animation: mascot-float 4.8s ease-in-out infinite;
  pointer-events: none;
}

.mascot-aura {
  position: absolute;
  top: 15%;
  left: 50%;
  z-index: 0;
  width: 80%;
  aspect-ratio: 1;
  border: 1px dashed rgba(218, 125, 157, 0.27);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 227, 0.34), transparent 68%);
  transform: translateX(-50%);
  animation: twinkle 5.5s ease-in-out infinite;
}

.mascot-shadow {
  position: absolute;
  bottom: 3px;
  left: 50%;
  z-index: 1;
  width: 58%;
  height: 18px;
  border-radius: 50%;
  background: rgba(77, 64, 84, 0.16);
  filter: blur(5px);
  transform: translateX(-50%);
  animation: mascot-shadow 4.8s ease-in-out infinite;
}

.mascot-name {
  position: absolute;
  right: 6px;
  bottom: 18px;
  z-index: 3;
  padding: 5px 8px;
  border: 1px solid rgba(65, 53, 73, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.mascot-minimize {
  position: absolute;
  top: 12px;
  right: 1px;
  z-index: 4;
  width: 27px;
  height: 27px;
  font-size: 17px;
}

.mascot-figure:focus-visible,
.mascot-minimize:focus-visible,
.mascot-bubble-close:focus-visible,
.mascot-actions button:focus-visible,
.mascot-actions a:focus-visible,
.mascot-restore:focus-visible {
  outline: 3px solid var(--peach-strong);
  outline-offset: 3px;
}

.mascot-restore {
  display: none;
  width: 76px;
  padding: 5px;
  border: 1px solid rgba(65, 54, 73, 0.15);
  border-radius: 50%;
  background: rgba(255, 251, 253, 0.94);
  box-shadow: 0 12px 28px rgba(58, 47, 67, 0.2);
  cursor: pointer;
  pointer-events: auto;
}

.mascot-restore img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.mascot-restore span {
  display: block;
  margin: -7px auto 2px;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 8px;
  font-weight: 800;
}

.mahiro-mascot.is-flipped .mascot-bubble {
  right: auto;
  left: 0;
  border-radius: 22px 22px 22px 7px;
  transform-origin: bottom left;
}

.mahiro-mascot.is-flipped .mascot-bubble::after {
  right: auto;
  left: 33px;
}

.mahiro-mascot.is-dragging .mascot-figure img,
.mahiro-mascot.is-dragging .mascot-shadow {
  animation-play-state: paused;
}

.mahiro-mascot.is-minimized .mascot-bubble,
.mahiro-mascot.is-minimized .mascot-figure-wrap {
  display: none;
}

.mahiro-mascot.is-minimized .mascot-restore {
  display: block;
}

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

.click-spark {
  position: absolute;
  color: var(--peach-strong);
  font-family: var(--display);
  font-size: 20px;
  animation: spark-fly 0.85s var(--ease) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(-13px) rotate(-3deg);
  }
}

@keyframes orbit-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: rotate(-8deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: rotate(-5deg) scale(1.025);
  }
}

@keyframes sticker-bob {
  0%,
  100% {
    transform: rotate(12deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-7px);
  }
}

@keyframes character-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@keyframes character-icon {
  0%,
  100% {
    rotate: -4deg;
    translate: 0 0;
  }
  50% {
    rotate: 7deg;
    translate: 0 -6px;
  }
}

@keyframes chat-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes typing-dot {
  0%,
  60%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes affection-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.025),
      inset 0 0 35px rgba(255, 214, 229, 0.08);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 15px rgba(255, 255, 255, 0.035),
      inset 0 0 44px rgba(255, 214, 229, 0.14);
    transform: scale(1.025);
  }
}

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.7deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.9deg);
  }
}

@keyframes mascot-shadow {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.42;
    transform: translateX(-50%) scaleX(0.82);
  }
}

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

@keyframes soundtrack-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes photo-sticker-wiggle {
  0%,
  100% {
    rotate: 5deg;
  }
  35% {
    rotate: -9deg;
  }
  70% {
    rotate: 8deg;
  }
}

@keyframes photo-hover-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift, 0px)), -62px) scale(1.18)
      rotate(var(--spin, 20deg));
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: rotate(0);
  }
  50% {
    opacity: 1;
    transform: rotate(90deg) scale(1.16);
  }
}

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

@keyframes button-pop {
  45% {
    transform: scale(0.9) rotate(-5deg);
  }
}

@keyframes spark-fly {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.4) rotate(0);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2)
      rotate(var(--rot));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding-top: 96px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: min(660px, 79vw);
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .story-collage {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .story-panel {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .character-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 18px;
  }

  .character-visual {
    min-height: 410px;
  }

  .character-copy {
    max-width: 720px;
    margin-inline: auto;
    padding: 18px 20px 42px;
  }

  .character-note {
    min-height: 0;
  }

  .mahiro-chat-card {
    grid-template-columns: 1fr;
  }

  .chat-side {
    min-height: 285px;
  }

  .affection-track {
    max-width: 440px;
  }

  .soundtrack-card {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .soundtrack-cover {
    min-height: 360px;
  }

  .soundtrack-copy {
    max-width: 720px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 480px 340px 300px;
  }

  .photo-card-a {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .photo-card-b {
    grid-column: 2;
    grid-row: 1;
  }

  .photo-card-d {
    grid-column: 2;
    grid-row: 2;
  }

  .photo-card-e {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .movie-card {
    grid-template-columns: 1fr 0.72fr;
    gap: 38px;
    min-height: 630px;
    padding: 54px;
  }

  .phone-frame {
    width: 100%;
  }

  .mood-board {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .star-corner {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: 22px;
    min-height: 170px;
  }

  .star-corner > p:first-child,
  .star-count {
    margin: 0;
  }

  .social-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .social-card {
    grid-column: span 2;
    min-height: 250px;
  }

  .social-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

@media (max-width: 700px) {
  .section-shell,
  .site-header {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .site-header {
    top: 10px;
    margin-top: 10px;
    padding: 8px 9px 8px 12px;
  }

  .mahiro-mascot {
    right: 10px;
    bottom: 164px;
    width: 112px;
  }

  .site-music {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    border-radius: 18px;
  }

  .site-music.is-collapsed {
    right: 10px;
    width: auto;
  }

  .mascot-bubble {
    width: min(222px, calc(100vw - 24px));
    padding: 14px 14px 13px;
    border-radius: 19px 19px 6px;
  }

  .mascot-speech {
    font-size: 13px;
  }

  .mascot-figure {
    height: 188px;
  }

  .mascot-name {
    right: 1px;
    bottom: 14px;
  }

  .mascot-minimize {
    top: 8px;
    width: 24px;
    height: 24px;
  }

  .mascot-restore {
    width: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-copy {
    font-size: 15px;
  }

  .mood-toggle {
    padding: 10px 12px;
  }

  .mood-toggle span:last-child {
    display: none;
  }

  .hero {
    padding-block: 76px 64px;
  }

  .hero::before {
    display: none;
  }

  .hero h1 {
    font-size: clamp(50px, 15vw, 64px);
    letter-spacing: -0.08em;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    font-size: 9px;
  }

  .hero-visual {
    min-height: 112vw;
    max-height: 620px;
  }

  .hero-photo {
    inset: 36px 8px 42px;
    border-width: 8px;
    border-radius: 42% 42% 24px 24px;
    transform: rotate(2deg);
  }

  .orbit-one {
    inset: 8px -8px;
  }

  .orbit-two {
    display: none;
  }

  .mini-polaroid {
    bottom: -10px;
    left: -1px;
    width: 105px;
  }

  .vertical-jp {
    top: 24%;
    left: -6px;
    font-size: 8px;
  }

  .round-sticker {
    right: -2px;
    bottom: -6px;
    width: 82px;
    height: 82px;
    font-size: 8px;
  }

  .round-sticker strong {
    font-size: 13px;
  }

  .emoji-star {
    top: 11px;
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .story,
  .movie-section {
    padding-block: 100px;
  }

  .character-section {
    padding-block: 82px 100px;
  }

  .character-card {
    padding: 10px;
    border-radius: 30px;
  }

  .character-visual {
    min-height: 325px;
    border-radius: 24px;
  }

  .character-emblem {
    width: min(61%, 220px);
  }

  .character-file {
    top: 17px;
    left: 16px;
  }

  .character-stamp {
    top: 21px;
    right: 15px;
    width: 56px;
    height: 56px;
  }

  .character-signature {
    right: 17px;
    bottom: 16px;
    left: 17px;
  }

  .character-game-icon {
    right: -1%;
    font-size: 34px;
  }

  .character-heart-icon {
    font-size: 39px;
  }

  .character-copy {
    padding: 23px 12px 30px;
  }

  .character-copy h2 {
    font-size: clamp(39px, 12vw, 51px);
  }

  .character-intro {
    margin-block: 20px 22px;
    font-size: 13px;
    line-height: 1.85;
  }

  .character-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .character-mode {
    padding-inline: 8px;
  }

  .character-note {
    margin-block: 20px 22px;
    font-size: 19px;
  }

  .character-link {
    width: 100%;
    justify-content: space-between;
  }

  .character-chat-section {
    padding-bottom: 100px;
  }

  .mahiro-chat-card {
    padding: 8px;
    border-radius: 30px;
  }

  .chat-main {
    padding: 23px 15px;
    border-radius: 23px;
  }

  .chat-profile-bar {
    gap: 9px;
  }

  .chat-avatar {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .chat-profile-copy strong {
    font-size: 15px;
  }

  .chat-profile-copy small {
    font-size: 8px;
  }

  .chat-tag {
    display: none;
  }

  .chat-heading {
    margin-top: 24px;
  }

  .chat-heading h2 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .mahiro-chat-log {
    max-height: 350px;
    padding: 12px;
  }

  .chat-message p {
    max-width: 85%;
    padding: 11px 13px;
    font-size: 12px;
  }

  .chat-choices {
    grid-template-columns: 1fr;
  }

  .chat-choices button {
    min-height: 43px;
  }

  .chat-side {
    min-height: 315px;
    padding: 30px 22px;
    border-radius: 23px;
  }

  .soundtrack-section {
    padding-bottom: 100px;
  }

  .soundtrack-card {
    gap: 22px;
    padding: 23px 16px 30px;
    border-radius: 30px;
  }

  .soundtrack-cover {
    min-height: 280px;
  }

  .soundtrack-vinyl {
    width: min(82%, 270px);
  }

  .soundtrack-art {
    width: min(76%, 240px);
    border-width: 8px;
    border-radius: 22px;
  }

  .soundtrack-copy h2 {
    font-size: clamp(48px, 16vw, 64px);
  }

  .soundtrack-description {
    font-size: 11px;
  }

  .netease-player {
    margin-top: 20px;
  }

  .soundtrack-link {
    width: 100%;
    justify-content: space-between;
  }

  .section-heading,
  .gallery-heading {
    display: block;
    margin-bottom: 38px;
  }

  .gallery-heading {
    padding: 22px 18px 19px;
    border-radius: 29px;
  }

  .gallery-heading::before {
    top: -9px;
    left: 24px;
    width: 71px;
    height: 18px;
  }

  .gallery-heading > p {
    margin-top: 20px;
    padding: 17px 18px;
    border-radius: 19px 19px 7px;
    font-size: 12px;
    transform: none;
  }

  .section-heading .section-kicker {
    margin-bottom: 16px;
  }

  .section-heading h2,
  .movie-copy h2 {
    font-size: clamp(40px, 13vw, 54px);
  }

  .gallery-heading h2 {
    font-size: clamp(37px, 11.2vw, 46px);
  }

  .section-heading > p {
    margin-top: 18px;
    font-size: 13px;
  }

  .story-collage {
    min-height: 510px;
  }

  .story-collage::before {
    inset: 70px 20px 20px 44px;
  }

  .story-photo-main {
    left: 35px;
    width: 62%;
    height: 77%;
  }

  .story-photo-small {
    right: 1%;
    width: 45%;
    height: 43%;
  }

  .hello-sticker {
    top: 8px;
    right: 0;
    width: 80px;
    height: 80px;
    font-size: 15px;
  }

  .collage-note {
    bottom: 4px;
    font-size: 11px;
  }

  .story-panel blockquote {
    margin-block: 32px;
  }

  .gallery-section {
    padding-block: 90px 100px;
  }

  .gallery-section::before {
    top: 30px;
    left: -8px;
    font-size: 38px;
  }

  .gallery-section::after {
    right: 2%;
    bottom: 42px;
    font-size: 27px;
  }

  .gallery-heading h2::after {
    right: -0.22em;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 420px 210px 230px;
    gap: 10px;
    padding: 8px;
    border-radius: 27px;
  }

  .photo-card {
    border-width: 4px;
    border-radius: 19px;
  }

  .photo-card-a {
    grid-row: 1 / 3;
  }

  .photo-card-d {
    grid-column: 2;
    grid-row: 2;
  }

  .photo-card-e {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .photo-caption {
    bottom: 16px;
    left: 16px;
    padding: 8px 10px 7px;
    border-radius: 13px 13px 5px;
    font-size: 17px;
  }

  .photo-caption small {
    font-size: 7px;
  }

  .photo-icon {
    top: 10px;
    right: 10px;
    width: 31px;
    height: 31px;
    font-size: 13px;
  }

  .movie-card {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: 0;
    padding: 44px 24px 70px;
    border-radius: 30px;
  }

  .movie-copy {
    text-align: center;
  }

  .movie-copy > p:not(.section-kicker, .movie-hint) {
    margin-inline: auto;
    font-size: 13px;
  }

  .movie-facts,
  .movie-hint {
    justify-content: center;
  }

  .phone-frame {
    justify-self: center;
    width: min(82vw, 330px);
    transform: rotate(1deg);
  }

  .phone-sticker {
    right: -17px;
    bottom: 48px;
    width: 70px;
    height: 70px;
    font-size: 14px;
  }

  .notes-section {
    padding-bottom: 100px;
  }

  .mood-board {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 28px;
  }

  .mood-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .mood-button {
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 94px;
    padding: 10px 5px;
    border-radius: 19px;
    font-size: 11px;
    text-align: center;
  }

  .mood-button span {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    font-size: 18px;
  }

  .mood-button:hover {
    transform: translateY(-2px);
  }

  .mood-paper {
    min-height: 320px;
    padding: 40px 28px;
  }

  .mood-quote {
    font-size: 27px;
  }

  .star-corner {
    flex-direction: column;
    gap: 15px;
    grid-column: auto;
    padding: 28px 20px;
  }

  .star-button {
    width: 108px;
    height: 108px;
  }

  .social-section {
    padding-block: 20px 100px;
  }

  .social-heading::after {
    top: -30px;
    right: 3%;
    font-size: 34px;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .social-card,
  .social-card:nth-child(n + 4) {
    grid-column: auto;
    min-height: 228px;
    padding: 16px;
    border-radius: 24px;
  }

  .social-card:last-child {
    grid-column: 1 / -1;
    min-height: 190px;
  }

  .social-icon {
    width: 51px;
    height: 51px;
    margin-top: 18px;
    border-radius: 17px;
  }

  .social-icon svg {
    width: 27px;
    height: 27px;
  }

  .social-copy {
    padding-top: 20px;
  }

  .social-copy strong {
    font-size: 22px;
  }

  .social-arrow {
    right: 13px;
    bottom: 13px;
    width: 31px;
    height: 31px;
  }

  .social-spark {
    top: 66px;
    right: 16px;
  }

  .social-doodle {
    display: none;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    min-height: 130px;
    padding-inline: 22px;
  }

  .site-footer p {
    text-align: left;
  }

  .site-footer a {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .lightbox {
    width: calc(100vw - 28px);
    height: 82vh;
  }

  .lightbox figure {
    border-width: 6px;
    border-radius: 20px;
  }

  .lightbox-close {
    top: -18px;
    right: -8px;
    width: 42px;
    height: 42px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: -19px;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 420px 210px 210px 220px;
  }

  .photo-card-a,
  .photo-card-b,
  .photo-card-d,
  .photo-card-e {
    grid-column: 1;
  }

  .photo-card-a {
    grid-row: 1;
  }

  .photo-card-b {
    grid-row: 2;
  }

  .photo-card-d {
    grid-row: 3;
  }

  .photo-card-e {
    grid-row: 4;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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

/* -------------------------------------------------------------------------- */
/* Mahiro character theme                                                     */
/* -------------------------------------------------------------------------- */

:root {
  --cream: #fff8f2;
  --paper: #fffdfb;
  --ink: #4c3f4e;
  --muted: #776873;
  --peach: #f6dce4;
  --peach-strong: #e47f9e;
  --pink: #f9dfe8;
  --blue: #d8effd;
  --blue-strong: #7fc2e6;
  --lilac: #e9dffa;
  --yellow: #fff0c8;
  --line: rgba(76, 63, 78, 0.12);
  --shadow: 0 24px 70px rgba(102, 82, 105, 0.13);
  --soft-shadow: 0 14px 38px rgba(102, 82, 105, 0.1);
  --mahiro-hair: #c8b9ba;
  --mahiro-blush: #f3b5c0;
  --mahiro-berry: #e77f9e;
  --mahiro-sky: #8ac9e9;
  --mahiro-cream: #fff8ec;
  --mahiro-plum: #5b4659;
  --mahiro-glow-pink: rgba(243, 163, 188, 0.3);
  --mahiro-glow-blue: rgba(128, 202, 238, 0.3);
}

body[data-palette="peach"] {
  --cream: #fff8f2;
  --paper: #fffdfb;
  --ink: #4c3f4e;
  --muted: #776873;
  --peach: #f6dce4;
  --peach-strong: #e47f9e;
  --pink: #f9dfe8;
  --blue: #d8effd;
  --blue-strong: #7fc2e6;
  --lilac: #e9dffa;
  --yellow: #fff0c8;
  --line: rgba(76, 63, 78, 0.12);
  --shadow: 0 24px 70px rgba(102, 82, 105, 0.13);
  --soft-shadow: 0 14px 38px rgba(102, 82, 105, 0.1);
}

body[data-palette="mint"] {
  --cream: #f4fbff;
  --paper: #fdffff;
  --ink: #3d4857;
  --muted: #69788a;
  --peach: #f7dce7;
  --peach-strong: #e889a6;
  --pink: #f9e3eb;
  --blue: #d5effd;
  --blue-strong: #69b8e2;
  --lilac: #e3e2fb;
  --yellow: #fff2ce;
  --line: rgba(61, 72, 87, 0.12);
  --shadow: 0 24px 70px rgba(76, 108, 130, 0.13);
  --soft-shadow: 0 14px 38px rgba(76, 108, 130, 0.1);
  --mahiro-glow-pink: rgba(240, 166, 188, 0.26);
  --mahiro-glow-blue: rgba(111, 193, 236, 0.36);
}

body[data-palette="lavender"] {
  --cream: #fff7fb;
  --paper: #fffbfd;
  --ink: #4b3d50;
  --muted: #7e687a;
  --peach: #f4d6e4;
  --peach-strong: #dd7599;
  --pink: #f8dae7;
  --blue: #ddebfc;
  --blue-strong: #89b6e1;
  --lilac: #ecdef7;
  --yellow: #fff0cd;
  --line: rgba(75, 61, 80, 0.12);
  --shadow: 0 24px 70px rgba(105, 77, 105, 0.14);
  --soft-shadow: 0 14px 38px rgba(105, 77, 105, 0.1);
  --mahiro-glow-pink: rgba(237, 154, 184, 0.35);
  --mahiro-glow-blue: rgba(149, 178, 231, 0.25);
}

body {
  background:
    radial-gradient(circle at 5% 7%, rgba(248, 190, 208, 0.42), transparent 24rem),
    radial-gradient(circle at 93% 12%, rgba(159, 217, 247, 0.45), transparent 26rem),
    radial-gradient(circle at 56% 53%, rgba(255, 245, 215, 0.36), transparent 28rem),
    linear-gradient(150deg, var(--cream) 0%, #fff9fb 44%, #f4fbff 100%);
  background-attachment: fixed;
}

body,
body[data-palette] {
  transition:
    color 0.55s ease,
    background-color 0.55s ease;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.page-grain {
  z-index: 31;
  opacity: 0.065;
  mix-blend-mode: soft-light;
}

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

.mahiro-atmosphere::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.64), transparent 33rem),
    repeating-linear-gradient(
      115deg,
      transparent 0 74px,
      rgba(231, 127, 158, 0.018) 75px 76px
    );
  content: "";
}

.mahiro-atmosphere::after {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(88, 120, 148, 0.26) 0.8px, transparent 0.9px);
  background-size: 17px 17px;
  content: "";
  opacity: 0.17;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 34%, transparent 76%, #000 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 34%, transparent 76%, #000 100%);
}

.atmosphere-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
}

.atmosphere-orb-pink {
  top: 9%;
  left: -9rem;
  width: 29rem;
  height: 29rem;
  background: radial-gradient(circle, var(--mahiro-glow-pink), transparent 69%);
  animation: mahiro-orb 14s ease-in-out infinite;
}

.atmosphere-orb-blue {
  top: 28%;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  background: radial-gradient(circle, var(--mahiro-glow-blue), transparent 68%);
  animation: mahiro-orb 17s ease-in-out -5s infinite reverse;
}

.pointer-aura {
  --aura-x: 64vw;
  --aura-y: 34vh;
  position: fixed;
  top: 0;
  left: 0;
  width: 31rem;
  height: 31rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(250, 211, 225, 0.2) 0 12%, transparent 63%),
    radial-gradient(circle at 66% 62%, rgba(172, 222, 247, 0.18), transparent 45%);
  filter: blur(5px);
  opacity: 0.72;
  transform: translate3d(
    calc(var(--aura-x) - 50%),
    calc(var(--aura-y) - 50%),
    0
  );
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.mahiro-particles {
  position: absolute;
  inset: 0;
}

.mahiro-particle {
  position: absolute;
  bottom: -12vh;
  left: var(--particle-x);
  color: var(--particle-color);
  font-family: var(--display);
  font-size: var(--particle-size);
  font-style: normal;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 12px currentColor;
  animation: mahiro-petal var(--particle-duration) linear var(--particle-delay) infinite;
  will-change: transform, opacity;
}

.mahiro-particle:nth-child(3n) {
  font-family: var(--jp);
}

.site-header {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(110deg, rgba(255, 252, 248, 0.91), rgba(247, 252, 255, 0.82)),
    var(--paper);
  box-shadow:
    0 16px 42px rgba(89, 73, 93, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.92),
    inset 0 -1px rgba(136, 196, 226, 0.08);
}

.site-header::before {
  position: absolute;
  top: 0;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mahiro-blush), var(--mahiro-sky), transparent);
  content: "";
  opacity: 0.72;
}

.site-header::after {
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.48) 48%,
    rgba(255, 230, 239, 0.16) 52%,
    transparent 60%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-70%);
  animation: mahiro-header-shimmer 9s ease-in-out 1.5s infinite;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(circle at 30% 22%, #fff 0 5%, transparent 6%),
    linear-gradient(145deg, var(--pink), var(--blue));
  box-shadow:
    0 7px 18px rgba(211, 117, 151, 0.2),
    inset 0 0 0 1px rgba(229, 128, 159, 0.08);
}

.brand-copy small {
  color: color-mix(in srgb, var(--mahiro-berry) 72%, var(--muted));
}

.site-nav {
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, rgba(246, 223, 232, 0.54), rgba(218, 240, 252, 0.5));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 253, 250, 0.92);
  box-shadow:
    0 7px 16px rgba(95, 77, 99, 0.08),
    inset 0 -2px rgba(231, 127, 158, 0.2);
}

.mood-toggle {
  border-color: rgba(231, 127, 158, 0.2);
  background: linear-gradient(135deg, rgba(255, 249, 245, 0.72), rgba(232, 246, 254, 0.58));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}

.mood-toggle:hover {
  background: linear-gradient(135deg, #fffdf9, #eef9ff);
  box-shadow:
    0 9px 22px rgba(111, 95, 115, 0.09),
    0 0 0 4px rgba(235, 151, 178, 0.08);
}

.mood-toggle-icon {
  color: var(--mahiro-berry);
  text-shadow: 0 0 12px rgba(231, 127, 158, 0.42);
}

.hero {
  isolation: isolate;
  min-height: 760px;
}

.hero::before {
  top: 18%;
  left: 35%;
  width: 190px;
  height: 190px;
  border-color: rgba(231, 127, 158, 0.2);
  box-shadow: 0 0 60px rgba(255, 222, 233, 0.28);
}

.hero::after {
  position: absolute;
  top: 17%;
  left: -1.5%;
  z-index: -1;
  color: transparent;
  content: "まひろ";
  font-family: var(--jp);
  font-size: clamp(130px, 16vw, 230px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 1;
  opacity: 0.48;
  pointer-events: none;
  -webkit-text-stroke: 1px rgba(169, 116, 139, 0.11);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  width: fit-content;
  padding: 8px 13px 8px 10px;
  border: 1px solid rgba(231, 127, 158, 0.14);
  border-radius: 999px;
  color: #745a67;
  background: rgba(255, 250, 248, 0.66);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.88);
}

.eyebrow span {
  background: linear-gradient(135deg, var(--mahiro-berry), var(--mahiro-sky));
  box-shadow:
    0 0 0 5px rgba(231, 127, 158, 0.1),
    0 0 15px rgba(231, 127, 158, 0.32);
}

.hero h1 {
  color: var(--ink);
  text-wrap: balance;
}

.title-prelude {
  margin-bottom: 15px;
  color: var(--mahiro-berry);
  font-family: var(--body);
  font-size: clamp(9px, 0.85vw, 11px);
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-title-main {
  display: inline-block;
  padding-bottom: 0.08em;
  background: linear-gradient(110deg, var(--ink) 13%, #6e5263 58%, var(--mahiro-berry) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero h1::after {
  color: var(--mahiro-berry);
  text-shadow: 0 0 16px rgba(231, 127, 158, 0.46);
}

.hero-lead {
  color: #6b5d69;
}

.button {
  overflow: hidden;
  border-radius: 17px;
}

.button::after {
  position: absolute;
  inset: -50% -30%;
  background: linear-gradient(
    105deg,
    transparent 44%,
    rgba(255, 255, 255, 0.28) 49%,
    rgba(255, 255, 255, 0.08) 53%,
    transparent 58%
  );
  content: "";
  pointer-events: none;
  transform: translateX(-75%);
  transition: transform 0.62s var(--ease);
}

.button:hover::after {
  transform: translateX(75%);
}

.button > * {
  position: relative;
  z-index: 1;
}

.button-primary {
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 190, 211, 0.28), transparent 36%),
    linear-gradient(135deg, #594854, #4c3d4d 58%, #6f5265);
  box-shadow:
    0 12px 28px rgba(69, 52, 67, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.12);
}

.button-primary:hover {
  box-shadow:
    0 17px 38px rgba(69, 52, 67, 0.24),
    0 0 0 6px rgba(231, 127, 158, 0.11),
    0 0 32px rgba(130, 200, 235, 0.18);
}

.button-ghost {
  border-color: rgba(125, 187, 219, 0.22);
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.8), rgba(225, 243, 253, 0.7));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.9),
    0 8px 22px rgba(87, 119, 139, 0.06);
}

.play-dot {
  color: #fff;
  background: linear-gradient(135deg, var(--mahiro-berry), var(--mahiro-sky));
  box-shadow: 0 0 14px rgba(231, 127, 158, 0.24);
}

.button:hover .play-dot {
  background: linear-gradient(135deg, var(--mahiro-sky), var(--mahiro-berry));
}

.hero-meta {
  color: #786a75;
}

.hero-meta span:not(:last-child)::after {
  color: var(--mahiro-berry);
}

.hero-photo {
  border-color: rgba(255, 252, 248, 0.96);
  background: linear-gradient(145deg, #fff9f3, #eef9ff);
  box-shadow:
    0 32px 78px rgba(91, 76, 97, 0.17),
    0 0 0 1px rgba(231, 127, 158, 0.08),
    0 0 66px rgba(147, 210, 239, 0.2);
}

.hero-photo::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(129deg, transparent 36%, rgba(255, 255, 255, 0.14) 47%, transparent 58%),
    radial-gradient(circle at 72% 14%, rgba(255, 234, 241, 0.2), transparent 31%);
  content: "";
  pointer-events: none;
}

.hero-photo::after {
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 53%, rgba(66, 50, 68, 0.35)),
    linear-gradient(12deg, rgba(128, 200, 232, 0.18), transparent 43%);
}

.hero-photo figcaption {
  color: #544650;
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.9), rgba(236, 248, 254, 0.84));
  box-shadow: 0 7px 20px rgba(78, 62, 81, 0.1);
}

.status-dot {
  background: var(--mahiro-berry);
  box-shadow:
    0 0 0 4px rgba(231, 127, 158, 0.14),
    0 0 11px rgba(231, 127, 158, 0.46);
}

.tape-left {
  background: rgba(247, 195, 211, 0.78);
}

.tape-right {
  background: rgba(187, 225, 245, 0.8);
}

.hero-orbit {
  border-color: rgba(109, 144, 162, 0.18);
}

.orbit-one {
  box-shadow: 0 0 42px rgba(248, 199, 217, 0.16);
}

.orbit-two {
  border-color: rgba(231, 127, 158, 0.2);
}

.floating-emoji {
  text-shadow: 0 0 16px rgba(195, 126, 150, 0.22);
}

.emoji-star {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, var(--yellow), var(--blue));
  box-shadow:
    0 10px 24px rgba(118, 139, 159, 0.1),
    inset 0 1px rgba(255, 255, 255, 0.86);
}

.emoji-heart {
  color: var(--mahiro-berry);
}

.emoji-spark {
  color: var(--mahiro-sky);
}

.round-sticker {
  border-color: rgba(95, 70, 86, 0.27);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.8), transparent 31%),
    linear-gradient(145deg, var(--blue), var(--pink));
  box-shadow:
    0 11px 28px rgba(110, 84, 105, 0.12),
    0 0 28px rgba(126, 195, 230, 0.15);
}

.mini-polaroid {
  border: 1px solid rgba(231, 127, 158, 0.12);
  background: #fffdf8;
  box-shadow:
    0 15px 30px rgba(89, 73, 93, 0.12),
    0 0 0 4px rgba(255, 255, 255, 0.28);
}

.vertical-jp {
  border-color: rgba(231, 127, 158, 0.28);
}

.hero-character-badge {
  position: absolute;
  top: 48px;
  left: -18px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 174px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.94), rgba(234, 248, 255, 0.9));
  box-shadow:
    0 14px 30px rgba(91, 75, 98, 0.14),
    0 0 0 1px rgba(231, 127, 158, 0.09);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: rotate(-4deg);
  animation: mahiro-badge-float 5.6s ease-in-out infinite;
}

.hero-character-avatar {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  background: var(--pink);
  box-shadow: 0 5px 14px rgba(100, 76, 98, 0.14);
}

.hero-character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 24%;
}

.hero-character-badge > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.hero-character-badge small {
  color: var(--mahiro-berry);
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.hero-character-badge strong {
  color: var(--ink);
  font-family: var(--jp);
  font-size: 12px;
  font-weight: 700;
}

.hero-character-badge b {
  position: absolute;
  top: -9px;
  right: -7px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--mahiro-berry), #d56e91);
  box-shadow: 0 5px 12px rgba(167, 85, 116, 0.3);
  font-size: 13px;
  font-weight: 500;
}

.ticker {
  border-color: rgba(231, 127, 158, 0.12);
  background:
    linear-gradient(95deg, rgba(249, 218, 229, 0.7), rgba(219, 241, 252, 0.74) 52%, rgba(255, 242, 206, 0.62)),
    var(--paper);
}

.ticker-track {
  color: #65505d;
}

.ticker-track b {
  color: var(--mahiro-berry);
}

.section-kicker {
  color: color-mix(in srgb, var(--mahiro-berry) 68%, var(--muted));
}

.section-kicker::before {
  color: var(--mahiro-berry);
}

.section-heading h2,
.movie-copy h2,
.soundtrack-copy h2,
.chat-heading h2,
.character-copy h2 {
  background: linear-gradient(112deg, var(--ink) 0%, #654d5e 67%, var(--mahiro-berry) 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.story-collage::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 1px, transparent 1.5px) 0 0 / 13px 13px,
    linear-gradient(145deg, var(--blue), var(--pink) 58%, var(--yellow));
  box-shadow:
    inset 0 0 70px rgba(255, 255, 255, 0.42),
    0 20px 50px rgba(103, 126, 146, 0.08);
}

.story-photo {
  border-color: rgba(255, 252, 248, 0.96);
  box-shadow:
    0 17px 38px rgba(91, 76, 97, 0.12),
    0 0 0 1px rgba(231, 127, 158, 0.08);
}

.hello-sticker {
  border: 2px solid rgba(255, 255, 255, 0.66);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.8), transparent 26%),
    linear-gradient(145deg, var(--pink), var(--blue));
  box-shadow:
    0 12px 28px rgba(111, 91, 105, 0.1),
    0 0 28px rgba(246, 179, 200, 0.2);
}

.collage-note {
  border-color: rgba(231, 127, 158, 0.12);
  background:
    linear-gradient(rgba(182, 137, 111, 0.07) 1px, transparent 1px) 0 30px / 100% 23px,
    #fff9e9;
}

.story-lines {
  border-color: rgba(231, 127, 158, 0.13);
}

.story-lines::before {
  background: linear-gradient(135deg, var(--mahiro-berry), var(--mahiro-sky));
  box-shadow: 0 0 0 4px rgba(231, 127, 158, 0.1);
}

.story-lines strong {
  color: var(--mahiro-plum);
}

.mahiro-card {
  border-color: rgba(231, 127, 158, 0.16);
  background:
    radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(135deg, rgba(249, 220, 230, 0.78), rgba(217, 239, 251, 0.72));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.7),
    0 12px 27px rgba(101, 80, 99, 0.07);
}

.mahiro-face {
  border-color: rgba(85, 65, 79, 0.56);
  background:
    radial-gradient(circle at 31% 69%, rgba(240, 143, 164, 0.43) 0 6px, transparent 7px),
    radial-gradient(circle at 69% 69%, rgba(240, 143, 164, 0.43) 0 6px, transparent 7px),
    #f7e9df;
  box-shadow: 0 4px 12px rgba(94, 71, 85, 0.1);
}

.tag-cloud span {
  border-color: rgba(125, 180, 208, 0.18);
  background: linear-gradient(135deg, rgba(255, 250, 245, 0.72), rgba(225, 243, 252, 0.64));
}

.character-card {
  border-color: rgba(231, 127, 158, 0.15);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.86), transparent 21rem),
    radial-gradient(circle, rgba(111, 164, 194, 0.15) 1px, transparent 1.4px) 0 0 / 18px 18px,
    linear-gradient(135deg, #d8effd 0%, #fff4f7 47%, #fff1ce 100%);
  box-shadow:
    0 35px 80px rgba(91, 74, 101, 0.14),
    0 0 85px rgba(239, 174, 195, 0.14);
}

.character-card::before {
  position: absolute;
  top: 9%;
  right: 7%;
  z-index: 0;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 231, 0.48), transparent 69%);
  content: "";
  pointer-events: none;
}

.character-visual {
  background:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px) 0 0 / 100% 42px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px) 0 0 / 42px 100%,
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(145deg, #abdbf6, #eadcff 56%, #f9ceda);
  box-shadow:
    inset 0 0 70px rgba(255, 255, 255, 0.2),
    0 18px 40px rgba(80, 111, 137, 0.12);
}

.character-visual::after {
  position: absolute;
  inset: 23px;
  border: 1px dashed rgba(87, 67, 85, 0.14);
  border-radius: 27px;
  content: "";
  pointer-events: none;
}

.character-emblem {
  border-color: rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.98), transparent 17%),
    linear-gradient(145deg, #f1a6bd, #c8dcff 61%, #fff0bb);
  box-shadow:
    0 33px 65px rgba(89, 75, 119, 0.24),
    0 0 0 1px rgba(231, 127, 158, 0.12),
    0 0 62px rgba(139, 204, 237, 0.22),
    inset 0 0 0 13px rgba(255, 255, 255, 0.24);
}

.character-emblem::before {
  border-color: rgba(217, 117, 151, 0.34);
}

.character-file,
.character-signature strong {
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.74), rgba(229, 246, 254, 0.66));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.character-stamp {
  color: var(--mahiro-berry);
  border-color: rgba(231, 127, 158, 0.4);
}

.character-mode {
  border-color: rgba(118, 170, 196, 0.18);
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.68), rgba(224, 242, 251, 0.58));
}

.character-mode.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #5a4655, #72546a);
  box-shadow:
    0 8px 18px rgba(91, 68, 85, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.1);
}

.character-note {
  border-color: var(--mahiro-berry);
}

.character-facts div {
  border-color: rgba(231, 127, 158, 0.11);
  background: linear-gradient(135deg, rgba(255, 254, 247, 0.64), rgba(228, 244, 252, 0.62));
}

.character-link {
  border-color: rgba(231, 127, 158, 0.18);
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.78), rgba(226, 244, 253, 0.7));
}

.mahiro-chat-card {
  background:
    radial-gradient(circle at 7% 2%, rgba(246, 180, 202, 0.27), transparent 19rem),
    radial-gradient(circle at 90% 92%, rgba(107, 187, 225, 0.2), transparent 18rem),
    linear-gradient(145deg, #5d4759, #3f3547 56%, #493f58);
  box-shadow:
    0 38px 90px rgba(66, 51, 65, 0.23),
    0 0 60px rgba(236, 163, 187, 0.12);
}

.chat-main {
  background:
    linear-gradient(rgba(112, 150, 173, 0.045) 1px, transparent 1px) 0 0 / 100% 36px,
    radial-gradient(circle at 92% 3%, rgba(248, 214, 225, 0.28), transparent 19rem),
    #fffaf6;
}

.chat-avatar,
.chat-mini-avatar {
  background: linear-gradient(145deg, var(--pink), var(--blue) 67%, var(--yellow));
}

.mahiro-chat-log {
  border-color: rgba(119, 173, 201, 0.13);
  background:
    radial-gradient(circle, rgba(119, 173, 201, 0.09) 1px, transparent 1.3px) 0 0 / 13px 13px,
    rgba(223, 240, 250, 0.48);
}

.chat-message p {
  color: #5a4c56;
  background: #fffdf8;
}

.chat-message-user p {
  background: linear-gradient(135deg, #604b5a, #735267);
}

.chat-choices button {
  border-color: rgba(124, 175, 201, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 250, 0.84), rgba(231, 245, 252, 0.74));
}

.chat-choices button:hover {
  border-color: rgba(231, 127, 158, 0.26);
  box-shadow: 0 8px 18px rgba(98, 78, 98, 0.06);
}

.chat-side {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 201, 219, 0.25), transparent 9rem),
    linear-gradient(155deg, #64506a, #393444 63%, #34485c);
}

.affection-orb {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 179, 204, 0.3), transparent 62%),
    radial-gradient(circle at 31% 71%, rgba(146, 213, 243, 0.2), transparent 40%),
    rgba(255, 255, 255, 0.04);
}

.affection-track span {
  background: linear-gradient(90deg, var(--yellow), var(--mahiro-blush), var(--mahiro-sky));
}

.gallery-section {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.92), transparent 24rem),
    radial-gradient(circle at 89% 78%, rgba(255, 230, 184, 0.32), transparent 21rem),
    radial-gradient(circle, rgba(107, 164, 195, 0.16) 1.2px, transparent 1.45px) 0 0 / 22px 22px,
    linear-gradient(132deg, #e1f5ff 0%, #fff4f8 49%, #fff7e8 100%);
}

.gallery-heading {
  border-color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.66), rgba(222, 242, 252, 0.56));
  box-shadow:
    0 20px 42px rgba(88, 112, 133, 0.09),
    inset 0 1px rgba(255, 255, 255, 0.9);
}

.gallery-heading::before {
  background: linear-gradient(90deg, rgba(248, 196, 213, 0.78), rgba(183, 225, 247, 0.74));
}

.gallery-heading > p {
  border-color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(rgba(182, 137, 111, 0.065) 1px, transparent 1px) 0 28px / 100% 23px,
    rgba(255, 250, 228, 0.88);
}

.gallery-grid {
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(229, 244, 252, 0.35));
  box-shadow:
    0 27px 58px rgba(82, 110, 134, 0.11),
    inset 0 1px rgba(255, 255, 255, 0.82);
}

.photo-card {
  border-color: rgba(255, 252, 247, 0.94);
  box-shadow:
    0 14px 32px rgba(72, 94, 116, 0.15),
    0 0 0 1px rgba(231, 127, 158, 0.07);
}

.photo-card:hover {
  box-shadow:
    0 27px 55px rgba(66, 81, 106, 0.19),
    0 0 0 5px rgba(255, 226, 237, 0.67),
    0 0 42px rgba(133, 203, 237, 0.2);
}

.photo-card img {
  filter: saturate(1.02) contrast(1.01);
}

.photo-card:hover img {
  filter: saturate(1.1) contrast(1.01);
}

.photo-card::after {
  background:
    linear-gradient(180deg, transparent 43%, rgba(43, 33, 46, 0.72)),
    linear-gradient(10deg, rgba(125, 191, 224, 0.12), transparent 48%);
}

.photo-caption {
  border-color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, rgba(255, 250, 244, 0.92), rgba(229, 246, 254, 0.88));
}

.movie-card {
  background:
    radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.62), transparent 21rem),
    radial-gradient(circle, rgba(175, 132, 111, 0.08) 1px, transparent 1.3px) 0 0 / 16px 16px,
    linear-gradient(130deg, var(--pink), var(--blue) 54%, var(--yellow));
  box-shadow:
    0 38px 90px rgba(98, 76, 89, 0.13),
    0 0 55px rgba(242, 179, 201, 0.12);
}

.phone-frame {
  border-color: #403a46;
  background: #403a46;
  box-shadow:
    20px 28px 55px rgba(51, 38, 54, 0.24),
    0 0 44px rgba(122, 193, 227, 0.13);
}

.phone-sticker {
  background: linear-gradient(145deg, var(--mahiro-berry), #d16d8e);
  box-shadow: 0 10px 24px rgba(184, 83, 118, 0.22);
}

.mood-board {
  border-color: rgba(231, 127, 158, 0.14);
  background:
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.55), transparent 20rem),
    linear-gradient(135deg, rgba(255, 251, 247, 0.72), rgba(225, 243, 252, 0.62));
  box-shadow: 0 20px 45px rgba(92, 77, 99, 0.07);
}

.mood-button.is-active {
  background: linear-gradient(135deg, #fffdf8, #edf9ff);
  box-shadow:
    0 11px 28px rgba(82, 67, 86, 0.08),
    inset 0 0 0 1px rgba(231, 127, 158, 0.1);
}

.mood-paper {
  box-shadow:
    inset 0 0 60px rgba(132, 95, 63, 0.065),
    0 16px 35px rgba(103, 80, 84, 0.08);
}

.paper-pin {
  background: linear-gradient(90deg, rgba(248, 188, 207, 0.54), rgba(187, 224, 244, 0.48));
}

.star-corner {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.72), transparent 20%),
    linear-gradient(145deg, var(--blue), #e9e2fb);
}

.star-button {
  background: linear-gradient(135deg, #fffdf8, #f8edf6);
}

.star-button span {
  color: var(--mahiro-berry);
  text-shadow: 0 0 13px rgba(231, 127, 158, 0.25);
}

.social-card {
  border-color: rgba(109, 91, 107, 0.1);
  box-shadow:
    0 14px 34px rgba(80, 76, 103, 0.08),
    inset 0 1px rgba(255, 255, 255, 0.8);
}

.social-card::after {
  background: color-mix(in srgb, var(--card-halo) 55%, transparent);
}

.social-card:hover,
.social-card:focus-visible {
  box-shadow:
    0 24px 50px rgba(80, 76, 103, 0.14),
    0 0 32px color-mix(in srgb, var(--card-halo) 32%, transparent);
}

.social-douyin {
  --card-bg: #ebf8ff;
  --card-accent: #68aed8;
  --card-halo: #c7e9fa;
}

.social-xiaohongshu {
  --card-bg: #fff0f4;
  --card-accent: #dd7897;
  --card-halo: #f8c9d7;
}

.social-weibo {
  --card-bg: #fff8e8;
  --card-accent: #cf9167;
  --card-halo: #f5deb9;
}

.social-x {
  --card-bg: #f0f1f8;
  --card-accent: #62657b;
  --card-halo: #dde1ee;
}

.social-instagram {
  --card-bg: #faf1ff;
  --card-accent: #ad7ccb;
  --card-halo: #e5cff4;
}

.site-footer {
  color: #5d4c5c;
  background:
    radial-gradient(circle at 11% 50%, rgba(255, 255, 255, 0.4), transparent 19rem),
    radial-gradient(circle at 88% 50%, rgba(169, 220, 244, 0.28), transparent 20rem),
    linear-gradient(100deg, var(--pink), #f4e2f6 49%, var(--blue));
}

.site-music,
.mascot-bubble,
.mascot-restore {
  border-color: rgba(231, 127, 158, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 251, 246, 0.96), rgba(233, 247, 254, 0.94)),
    var(--paper);
}

.site-music {
  box-shadow:
    0 18px 44px rgba(67, 53, 70, 0.18),
    0 0 24px rgba(233, 159, 182, 0.08);
}

.mascot-bubble::after {
  background: #fbfdfb;
}

.mascot-actions a {
  background: linear-gradient(135deg, #5c4858, #6e5065);
}

.mascot-aura {
  border-color: rgba(231, 127, 158, 0.33);
  background: radial-gradient(circle, rgba(255, 211, 226, 0.44), transparent 68%);
}

.mascot-name {
  background: linear-gradient(135deg, rgba(255, 252, 247, 0.94), rgba(231, 246, 254, 0.92));
}

.click-spark {
  text-shadow: 0 0 13px rgba(231, 127, 158, 0.35);
}

@keyframes mahiro-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2rem, -1.2rem, 0) scale(1.08);
  }
}

@keyframes mahiro-petal {
  0% {
    opacity: 0;
    transform: translate3d(0, 8vh, 0) rotate(0);
  }
  9% {
    opacity: var(--particle-opacity);
  }
  48% {
    transform: translate3d(var(--particle-drift), -46vh, 0) rotate(160deg);
  }
  88% {
    opacity: calc(var(--particle-opacity) * 0.55);
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--particle-drift) * -0.5), -112vh, 0) rotate(320deg);
  }
}

@keyframes mahiro-badge-float {
  0%,
  100% {
    transform: rotate(-4deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-6px);
  }
}

@keyframes mahiro-header-shimmer {
  0%,
  17% {
    transform: translateX(-72%);
  }
  28%,
  100% {
    transform: translateX(72%);
  }
}

@media (max-width: 980px) {
  .pointer-aura {
    opacity: 0.45;
  }

  .hero::after {
    top: 10%;
    left: -2%;
    font-size: 150px;
  }
}

@media (max-width: 700px) {
  .mahiro-atmosphere::after {
    opacity: 0.12;
  }

  .pointer-aura {
    display: none;
  }

  .mahiro-particle:nth-child(n + 11) {
    display: none;
  }

  .site-header::after {
    animation: none;
  }

  .hero {
    padding-top: 80px;
  }

  .hero::after {
    top: 6%;
    left: -7%;
    font-size: 112px;
    opacity: 0.38;
  }

  .title-prelude {
    max-width: 86%;
    margin-bottom: 10px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .hero-title-main {
    white-space: normal;
  }

  .eyebrow {
    max-width: 100%;
    padding: 7px 10px;
    font-size: 9px;
    letter-spacing: 0.11em;
  }

  .hero-photo {
    box-shadow:
      0 24px 54px rgba(91, 76, 97, 0.17),
      0 0 42px rgba(147, 210, 239, 0.18);
  }

  .hero-character-badge {
    top: 4px;
    left: 3px;
    min-width: 145px;
    padding: 6px 10px 6px 6px;
    transform: rotate(-3deg) scale(0.88);
    transform-origin: top left;
  }

  .hero-character-avatar {
    width: 39px;
    height: 39px;
    border-radius: 12px;
  }

  .character-card::before {
    width: 150px;
    height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pointer-aura,
  .mahiro-particles {
    display: none;
  }

  .site-header::after,
  .mahiro-particle,
  .atmosphere-orb,
  .hero-character-badge {
    animation: none;
  }

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

/* Mahiro heart-field mini game */

.mahiro-game-section {
  padding-block: 0 145px;
}

.mahiro-game-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4.5vw, 68px);
  align-items: center;
  min-height: 620px;
  overflow: hidden;
  padding: clamp(28px, 4.2vw, 62px);
  border: 1px solid rgba(231, 127, 158, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.88), transparent 22rem),
    radial-gradient(circle at 88% 90%, rgba(173, 221, 244, 0.29), transparent 25rem),
    radial-gradient(circle, rgba(137, 174, 198, 0.14) 1px, transparent 1.35px) 0 0 / 18px 18px,
    linear-gradient(138deg, #fff3f5 0%, #fffaf1 46%, #e5f6ff 100%);
  box-shadow:
    0 34px 80px rgba(90, 74, 98, 0.13),
    0 0 58px rgba(241, 175, 196, 0.13);
}

.mahiro-game-card::before {
  position: absolute;
  top: -86px;
  left: 24%;
  color: rgba(231, 127, 158, 0.075);
  content: "♡";
  font-family: var(--display);
  font-size: 260px;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-12deg);
}

.mahiro-game-card::after {
  position: absolute;
  right: -78px;
  bottom: -82px;
  width: 260px;
  height: 260px;
  border: 1px dashed rgba(137, 181, 208, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.mahiro-game-copy {
  position: relative;
  z-index: 2;
}

.mahiro-game-copy h2 {
  margin: 0;
  background: linear-gradient(112deg, var(--ink) 0%, #684e60 67%, var(--mahiro-berry) 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 550;
  letter-spacing: -0.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.mahiro-game-intro {
  max-width: 470px;
  margin: 25px 0 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.mahiro-game-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mahiro-game-stats div {
  min-width: 0;
  padding: 13px 14px 12px;
  border: 1px solid rgba(125, 175, 200, 0.15);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 253, 247, 0.78), rgba(226, 244, 253, 0.68));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82);
}

.mahiro-game-stats small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mahiro-game-stats strong {
  display: block;
  margin-top: 5px;
  color: var(--mahiro-plum);
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 31px);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 1;
}

.mahiro-game-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 164px;
  min-height: 51px;
  margin-top: 22px;
  padding: 12px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 188, 208, 0.3), transparent 37%),
    linear-gradient(135deg, #5d4859, #4d3e4f 58%, #754f67);
  box-shadow:
    0 13px 29px rgba(78, 58, 76, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s ease,
    opacity 0.25s ease;
}

.mahiro-game-start span {
  color: #ffd1df;
  font-size: 18px;
  text-shadow: 0 0 12px rgba(255, 187, 207, 0.48);
}

.mahiro-game-start:hover:not(:disabled) {
  box-shadow:
    0 17px 35px rgba(78, 58, 76, 0.25),
    0 0 0 6px rgba(231, 127, 158, 0.1),
    0 0 24px rgba(123, 194, 229, 0.13);
  transform: translateY(-3px) rotate(-1deg);
}

.mahiro-game-start:disabled {
  cursor: wait;
  opacity: 0.74;
}

.mahiro-game-start:focus-visible {
  outline: 3px solid var(--mahiro-berry);
  outline-offset: 4px;
}

.mahiro-game-message {
  min-height: 43px;
  max-width: 470px;
  margin: 14px 0 0;
  color: #756572;
  font-size: 10px;
  line-height: 1.7;
}

.mahiro-game-stage {
  position: relative;
  z-index: 1;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle, rgba(255, 255, 255, 0.58) 1px, transparent 1.45px) 0 0 / 15px 15px,
    linear-gradient(145deg, #b9e2f7 0%, #e6ddfb 52%, #ffd5e0 100%);
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.26),
    0 20px 45px rgba(91, 105, 133, 0.12);
  isolation: isolate;
}

.mahiro-game-stage::after {
  position: absolute;
  inset: 15px;
  z-index: 0;
  border: 1px dashed rgba(95, 68, 88, 0.16);
  border-radius: 29px;
  content: "";
  pointer-events: none;
}

.game-stage-label {
  position: absolute;
  top: 26px;
  left: 27px;
  z-index: 6;
  padding: 7px 10px;
  border: 1px solid rgba(83, 64, 83, 0.12);
  border-radius: 999px;
  color: #675464;
  background: rgba(255, 252, 247, 0.58);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.game-stage-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.game-stage-orbit-a {
  width: 68%;
  aspect-ratio: 1;
  animation: game-orbit-a 13s linear infinite;
}

.game-stage-orbit-b {
  width: 89%;
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(100, 76, 96, 0.12);
  animation: game-orbit-b 17s linear infinite reverse;
}

.game-stage-spark {
  position: absolute;
  z-index: 1;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--display);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.68);
  animation: twinkle 3.8s ease-in-out infinite;
}

.game-stage-spark-a {
  top: 15%;
  right: 17%;
  font-size: 31px;
}

.game-stage-spark-b {
  bottom: 14%;
  left: 12%;
  color: rgba(229, 116, 149, 0.82);
  font-size: 40px;
  animation-delay: -1.5s;
}

.game-character {
  position: absolute;
  right: 0;
  bottom: -3%;
  left: 0;
  z-index: 2;
  display: grid;
  place-items: end center;
  width: 70%;
  height: 92%;
  margin-inline: auto;
  pointer-events: none;
}

.game-character img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 22px rgba(91, 69, 94, 0.2));
  transition: transform 0.35s var(--ease);
}

.game-character-halo {
  position: absolute;
  top: 31%;
  left: 50%;
  z-index: 1;
  width: 82%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 250, 0.64), transparent 67%);
  box-shadow: 0 0 55px rgba(255, 255, 255, 0.35);
  transform: translateX(-50%);
}

.mahiro-game-field {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.game-collectible {
  position: absolute;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #6a4f60;
  background: rgba(255, 251, 247, 0.94);
  box-shadow:
    0 10px 22px rgba(80, 58, 78, 0.18),
    0 0 20px var(--fragment-glow);
  cursor: pointer;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: game-fragment-appear 0.24s var(--ease) both, game-fragment-bob 1.15s ease-in-out 0.24s infinite;
}

.game-collectible-pink {
  --fragment-glow: rgba(237, 145, 174, 0.5);
  color: #c45d7e;
  background: linear-gradient(145deg, #fffaf8, #f8cddd);
}

.game-collectible-blue {
  --fragment-glow: rgba(108, 191, 230, 0.52);
  color: #4b91b7;
  background: linear-gradient(145deg, #fbffff, #c9ebfa);
}

.game-collectible-gold {
  --fragment-glow: rgba(235, 191, 82, 0.48);
  color: #b48539;
  background: linear-gradient(145deg, #fffdf7, #ffedb7);
}

.game-collectible-lilac {
  --fragment-glow: rgba(179, 136, 210, 0.45);
  color: #9262ae;
  background: linear-gradient(145deg, #fffafd, #e4d2f5);
}

.game-collectible:hover,
.game-collectible:focus-visible {
  outline: none;
  box-shadow:
    0 12px 26px rgba(80, 58, 78, 0.2),
    0 0 0 5px rgba(255, 255, 255, 0.28),
    0 0 28px var(--fragment-glow);
  transform: translate(-50%, -50%) scale(1.08);
}

.game-collectible.is-caught {
  pointer-events: none;
  animation: game-fragment-caught 0.22s ease-out forwards;
}

.game-stage-hint {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  display: grid;
  justify-items: end;
  margin: 0;
  color: rgba(84, 64, 82, 0.58);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.5;
  pointer-events: none;
}

.game-stage-hint span {
  color: var(--mahiro-berry);
  font-size: 10px;
}

.mahiro-game-stage.is-playing {
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.28),
    0 0 0 5px rgba(255, 246, 249, 0.25),
    0 0 42px rgba(231, 127, 158, 0.22);
  animation: game-stage-breathe 2.4s ease-in-out infinite;
}

.mahiro-game-stage.is-playing .game-character img {
  animation: game-character-bob 2.2s ease-in-out infinite;
}

.mahiro-game-stage.is-finished {
  animation: game-finished-glow 0.9s var(--ease);
}

body.is-game-focus .site-music,
body.is-game-focus .mahiro-mascot {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

@keyframes game-fragment-appear {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}

@keyframes game-fragment-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes game-fragment-caught {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.65) rotate(24deg);
  }
}

@keyframes game-character-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.8deg);
  }
}

@keyframes game-stage-breathe {
  0%,
  100% {
    box-shadow:
      inset 0 0 80px rgba(255, 255, 255, 0.28),
      0 0 0 4px rgba(255, 246, 249, 0.2),
      0 0 30px rgba(231, 127, 158, 0.16);
  }
  50% {
    box-shadow:
      inset 0 0 80px rgba(255, 255, 255, 0.32),
      0 0 0 7px rgba(255, 246, 249, 0.28),
      0 0 48px rgba(120, 193, 228, 0.26);
  }
}

@keyframes game-orbit-a {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes game-orbit-b {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes game-finished-glow {
  35% {
    filter: brightness(1.08) saturate(1.08);
    transform: scale(1.008);
  }
}

@media (max-width: 980px) {
  .mahiro-game-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px;
  }

  .mahiro-game-copy {
    max-width: 690px;
  }

  .mahiro-game-stage {
    min-height: 560px;
  }

  .game-character {
    width: min(62%, 370px);
  }
}

@media (max-width: 700px) {
  .mahiro-game-section {
    padding-bottom: 100px;
  }

  .mahiro-game-card {
    gap: 24px;
    padding: 22px 15px 15px;
    border-radius: 30px;
  }

  .mahiro-game-copy {
    padding-inline: 5px;
  }

  .mahiro-game-copy h2 {
    font-size: clamp(40px, 12.5vw, 52px);
  }

  .mahiro-game-intro {
    margin: 19px 0 21px;
    font-size: 12px;
  }

  .mahiro-game-stats {
    gap: 5px;
  }

  .mahiro-game-stats div {
    padding: 11px 9px 10px;
    border-radius: 14px;
  }

  .mahiro-game-stats small {
    font-size: 7px;
  }

  .mahiro-game-stats strong {
    font-size: 23px;
  }

  .mahiro-game-start {
    width: 100%;
  }

  .mahiro-game-message {
    min-height: 47px;
  }

  .mahiro-game-stage {
    min-height: 475px;
    border-radius: 25px;
  }

  .mahiro-game-stage::after {
    inset: 10px;
    border-radius: 19px;
  }

  .game-stage-label {
    top: 18px;
    left: 17px;
    font-size: 6px;
  }

  .game-character {
    bottom: -2%;
    width: min(70%, 285px);
  }

  .game-collectible {
    width: 47px;
    height: 47px;
    font-size: 20px;
  }

  .game-stage-hint {
    right: 17px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-stage-orbit,
  .game-stage-spark,
  .game-collectible,
  .mahiro-game-stage.is-playing,
  .mahiro-game-stage.is-playing .game-character img {
    animation: none;
  }
}

.movie-card-reel {
  grid-template-columns: minmax(330px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(42px, 5vw, 76px);
  min-height: 650px;
  padding: clamp(42px, 5.5vw, 76px);
}

.movie-card-reel::after {
  position: absolute;
  right: 7%;
  bottom: -38px;
  width: 145px;
  height: 145px;
  border: 1px dashed rgba(126, 83, 106, 0.24);
  border-radius: 50%;
  content: "";
  transform: rotate(11deg);
}

.movie-card-reel .movie-copy {
  max-width: 490px;
}

.movie-card-reel .movie-copy h2 {
  font-size: clamp(45px, 4.35vw, 64px);
  line-height: 1.08;
  white-space: nowrap;
}

.movie-card-reel .movie-copy > p:not(.section-kicker, .movie-hint) {
  margin-block: 26px 30px;
  line-height: 2;
}

.movie-reel {
  position: relative;
  z-index: 2;
  display: grid;
  align-self: center;
  gap: 15px;
  width: 100%;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 31px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.17), transparent 36%),
    linear-gradient(150deg, #4c4052, #332d3b 62%, #493b49);
  box-shadow:
    0 30px 68px rgba(60, 43, 56, 0.28),
    0 0 0 6px rgba(255, 255, 255, 0.19);
  transform: rotate(0.7deg);
}

.reel-topline,
.reel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 5px;
  color: rgba(255, 250, 252, 0.72);
  font-family: var(--jp);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.reel-topline span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.reel-topline i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f3a9bc;
  box-shadow: 0 0 0 4px rgba(243, 169, 188, 0.12);
}

.reel-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 21px;
  background: #17131b;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 38px rgba(20, 14, 22, 0.28);
}

.reel-screen::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(42, 30, 43, 0.08), transparent 25%, transparent 72%, rgba(39, 28, 40, 0.18)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.04));
  content: "";
  pointer-events: none;
}

.movie-reel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #17131b;
  object-fit: cover;
}

.reel-stamp {
  position: absolute;
  top: 15px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  color: #6c3d52;
  background: rgba(255, 239, 245, 0.87);
  box-shadow: 0 10px 24px rgba(38, 24, 37, 0.2);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  pointer-events: none;
  transform: rotate(8deg);
}

.reel-spark {
  position: absolute;
  z-index: 3;
  color: #fff;
  text-shadow: 0 3px 13px rgba(52, 31, 46, 0.45);
  pointer-events: none;
}

.reel-spark-a {
  bottom: 62px;
  left: 18px;
  font-size: 24px;
}

.reel-spark-b {
  top: 18px;
  left: 18px;
  font-size: 20px;
}

.reel-caption {
  color: rgba(255, 250, 252, 0.68);
  text-align: right;
}

.reel-caption > span:first-child {
  display: grid;
  gap: 3px;
  text-align: left;
}

.reel-caption small {
  color: #e6a0b5;
  font-size: 7px;
  letter-spacing: 0.18em;
}

.reel-caption strong {
  color: #fffafc;
  font-family: var(--jp);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.reel-cuts {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  padding-inline: 3px;
}

.reel-cut {
  position: relative;
  min-width: 0;
  padding: 8px 2px 5px;
  border: 0;
  border-top: 3px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 250, 252, 0.53);
  background: transparent;
  cursor: pointer;
  font-family: var(--body);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.reel-cut:hover,
.reel-cut:focus-visible,
.reel-cut.is-active {
  border-color: #f0a5ba;
  color: #fffafd;
  background: rgba(255, 255, 255, 0.07);
}

.reel-cut:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

body.is-film-focus .site-music,
body.is-film-focus .mahiro-mascot {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

@media (max-width: 980px) {
  .movie-card-reel {
    grid-template-columns: 1fr;
    gap: 48px;
    min-height: 0;
    padding: 54px;
  }

  .movie-card-reel .movie-copy {
    max-width: 720px;
  }

  .movie-reel {
    width: min(100%, 820px);
    margin-inline: auto;
    transform: none;
  }
}

@media (max-width: 700px) {
  .movie-card-reel {
    gap: 35px;
    padding: 42px 13px 54px;
    border-radius: 30px;
  }

  .movie-card-reel .movie-copy {
    padding-inline: 11px;
  }

  .movie-card-reel .movie-copy h2 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .movie-reel {
    gap: 11px;
    padding: 9px;
    border-radius: 24px;
    box-shadow:
      0 20px 45px rgba(60, 43, 56, 0.24),
      0 0 0 4px rgba(255, 255, 255, 0.17);
  }

  .reel-topline,
  .reel-caption {
    padding-inline: 3px;
    font-size: 6px;
    letter-spacing: 0.1em;
  }

  .reel-screen {
    border-radius: 17px;
  }

  .movie-reel video {
    border-radius: 16px;
  }

  .reel-stamp {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    font-size: 9px;
  }

  .reel-spark-a {
    bottom: 47px;
    left: 12px;
    font-size: 17px;
  }

  .reel-spark-b {
    top: 12px;
    left: 12px;
    font-size: 15px;
  }

  .reel-caption strong {
    font-size: 12px;
  }

  .reel-caption > span:last-child {
    font-size: 5px;
  }

  .reel-cuts {
    gap: 2px;
    padding-inline: 1px;
  }

  .reel-cut {
    padding-block: 7px 4px;
    border-top-width: 2px;
    font-size: 7px;
  }
}
