:root {
  --bg: #5b6070;
  --shell: #646a7a;
  --shell-dark: #2f3441;
  --text: #f3f5f9;
  --muted: #c3c9d3;
  --line: rgb(165 173 186 / 0.11);
  --cta-a: #3f7cff;
  --cta-b: #285cff;
  --cta-btn-width: min(264px, calc(100vw - 116px));
  --cta-section-vpad: 6.8rem;
  --cta-wrap-pad-top: 2.32rem;
  --cta-badge-top: 0.02rem;
  --cta-icon-inset: 16px;
  --cta-icon-size: 72px;
  --cta-icon-center: calc(var(--cta-icon-inset) + (var(--cta-icon-size) / 2));
  --nav-bg: rgb(255 255 255 / 0.12);
  --edge-gap: 14px;
  --edge-gap-safe: calc(var(--edge-gap) + env(safe-area-inset-bottom, 0px));
  --nav-column-gap: 18px;
  --shell-width: min(400px, calc(100vw - 32px));
  --shell-left: calc((100vw - var(--shell-width)) / 2);
  --bg-char-size: 98px;
  --wave-h: 40px;
  --wave-overlap: 2px;
  --wave-section-pad: 4.2rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "LINE Seed JP", "Manrope", -apple-system, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(180deg, #565861 0%, #2A3451 200.88%);
  line-height: 1.75;
  padding-bottom: var(--edge-gap-safe);
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-illustrations {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.bg-overlay .bg-char {
  pointer-events: auto;
}

.bg-overlay .pos-r3-hand,
.bg-overlay .pos-r3-hand * {
  pointer-events: none !important;
}

.bg-char {
  position: absolute;
  width: var(--bg-char-size);
  aspect-ratio: 1 / 1;
  opacity: 0.9;
  pointer-events: auto;
  transition: opacity 220ms ease;
  filter: none;
}

.bg-char .char-combo {
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 360ms ease, filter 420ms ease;
  transform: translateX(0) scale(1);
  filter: saturate(1);
}

.bg-char:hover .char-combo {
  transform: translateX(var(--hide-x, 0)) scale(0.96);
  opacity: 0.82;
  filter: saturate(0.9);
}

.bg-char .char-hand {
  width: 38%;
  bottom: -11%;
}

.pos-r1 {
  left: calc(var(--shell-left) + var(--shell-width) - 22px);
  top: 84vh;
  --hide-x: -44px;
  transform: rotate(15deg);
}

.pos-l2 {
  left: calc(var(--shell-left) - 84px);
  top: 168vh;
  --hide-x: 44px;
  transform: rotate(-15deg);
}

.pos-l2 .char-hand.left {
  left: 21%;
  bottom: -16%;
  width: 28%;
  transform: rotate(16deg);
  animation: none;
}

.pos-r3-base,
.pos-r3-hand {
  left: calc(var(--shell-left) + var(--shell-width) - 58px);
  top: 262vh;
  --hide-x: 0px;
  width: 124px;
}

.pos-r3-hand {
  /* Hand layer is independently aligned to the column edge */
  left: calc(var(--shell-left) + var(--shell-width) - 34px);
  transform: rotate(0deg);
  opacity: 1 !important;
  pointer-events: none;
  z-index: 20;
}

.pos-r3-hand .char-hand.right {
  position: absolute;
  left: 6%;
  right: auto;
  bottom: -6%;
  width: 26%;
  transform: rotate(0deg);
  opacity: 1 !important;
  animation: none;
}

.pos-r3-base .char-combo {
  transform: translateX(18px) translateY(0) rotate(15deg) scale(1);
}

.pos-r3-hand .char-combo {
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

.pos-r3-base:hover .char-combo,
.pos-r3-base.is-hovered .char-combo {
  transform: translateX(28px) translateY(0) rotate(15deg) scale(1);
  opacity: 1;
  filter: saturate(1);
}

.pos-r3-hand .char-hand.right { z-index: 10; }

.bg-char .char-mouth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.bg-speech {
  position: absolute;
  margin: 0;
  right: 18px;
  top: -16px;
  background: rgb(20 22 30 / 0.9);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.4rem 0.58rem;
  border-radius: 0.45rem;
  white-space: nowrap;
}

.bg-speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: rgb(20 22 30 / 0.9);
  border-radius: 0 0 2px 2px;
}

.pos-r3-base .bg-speech {
  right: -12px;
  top: -44px;
}

.shell {
  position: relative;
  z-index: 3;
  width: var(--shell-width);
  margin: 1.4rem auto 0;
  border-radius: 0.5rem;
  overflow: visible;
  background: rgb(119 122 132 / 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section {
  position: relative;
  padding: 3rem 24px;
  overflow: visible;
  z-index: 0;
}

.section-light {
  background: transparent;
}

.section-dark {
  background: var(--shell-dark);
}

#features,
#note {
  background: #2e313a !important;
}

.section.wave-top::before,
.section.wave-bottom::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: calc(var(--wave-h) + var(--wave-overlap) * 2);
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.section.wave-top {
  padding-top: var(--wave-section-pad);
}

.section.wave-bottom {
  padding-bottom: var(--wave-section-pad);
}

#features .label,
#note .label {
  margin-bottom: 0.08rem;
}

#features h3,
#note h3 {
  margin-bottom: 1.02rem;
}

#features .desc,
#note p {
  margin-bottom: 0.82rem;
}

#about.hero {
  padding-top: 3.4rem;
  padding-bottom: 5.5rem;
  gap: 3.15rem;
}

#how-to-use {
  padding-top: calc(var(--wave-section-pad) + 1.6rem);
  padding-bottom: calc(var(--wave-section-pad) + 1.6rem);
}

#how-to-use h3 {
  margin-bottom: 1.35rem;
}

#how-to-use .desc {
  margin-bottom: 1.35rem;
}

.section.wave-top::before {
  top: calc(var(--wave-h) * -1 + var(--wave-overlap));
  background-image: url("./assets/wave_bg_01.svg");
}

.section.wave-bottom::after {
  bottom: calc(var(--wave-h) * -1 + var(--wave-overlap));
  background-image: url("./assets/wave_bg_02.svg");
}

.section > * {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  gap: 2.8rem;
  padding-top: 2.9rem;
  text-align: center;
  overflow: visible;
}

.hero-top-copy {
  text-align: center;
}

.hero-sub {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #e6ebf4;
}

.hero-name {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.15rem, 8.6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-character {
  position: relative;
  width: 230px;
  margin: 0 auto;
}

.avatar {
  width: 230px;
  height: 230px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 24px rgb(0 0 0 / 0.25));
}

.avatar.big {
  width: 210px;
  height: 210px;
}

.char-combo {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.char-emoji {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.char-hand {
  position: absolute;
  width: 38%;
  bottom: -14%;
  pointer-events: none;
  z-index: 2;
  animation: hand-float 2.6s ease-in-out infinite;
}

.char-hand.left {
  left: 2%;
  animation-delay: 0.1s;
}

.char-hand.right {
  right: 2%;
  animation-delay: 0.35s;
}

.char-hand.hand-sm {
  width: 30%;
  bottom: -18%;
}

.char-main {
  animation: char-float 3.5s ease-in-out infinite;
}

.speech {
  position: absolute;
  margin: 0;
  background: rgb(26 26 26 / 80%);
  border-radius: 0.5rem;
  backdrop-filter: blur(8.5px);
  -webkit-backdrop-filter: blur(8.5px);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  z-index: 5;
}

.hero-character .speech.top {
  top: -1.5rem;
  right: -8px;
}

.hero-character .speech.bottom {
  bottom: -1.15rem;
  left: -12px;
}

.label {
  margin: 0 0 0.18rem;
  font-size: 0.74rem;
  font-weight: 400;
  color: #c8cfda;
  letter-spacing: 0.02em;
}

.label.center {
  text-align: center;
}

h2,
h3 {
  margin: 0 0 1.28rem;
  line-height: 1.35;
}

h2 {
  font-size: clamp(1.34rem, 3.6vw, 1.92rem);
}

h3 {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  text-align: center;
}

.hero-copy p,
.desc,
.note p {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 1rem;
}

.hero-copy > p:not(.cta-badge) {
  font-size: 0.78rem;
  line-height: 1.95;
}

.hero-copy > p:not(.cta-badge) + p:not(.cta-badge) {
  margin-top: 1.5rem;
}

.hero-copy strong {
  color: #fff;
  font-weight: 700;
}

.stack {
  text-align: center;
}

.desc {
  max-width: 300px;
  margin: 0 auto;
}

.desc .small {
  font-size: 0.82em;
}

.cta {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0.5rem;
  padding: 0 16px;
  background: linear-gradient(102deg, var(--cta-a) -4.3%, var(--cta-b) 141.51%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  width: var(--cta-btn-width);
  min-width: 0;
  height: 64px;
  box-shadow:
    0 10px 22px rgb(25 33 63 / 0.35),
    0 2px 0 rgb(255 255 255 / 0.16) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  will-change: transform;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgb(25 33 63 / 0.45),
    0 2px 0 rgb(255 255 255 / 0.2) inset;
  filter: brightness(1.03);
}

.cta:active {
  transform: translateY(1px) scale(0.995);
  box-shadow:
    0 6px 12px rgb(25 33 63 / 0.32),
    0 1px 0 rgb(255 255 255 / 0.12) inset;
  filter: brightness(0.98);
}

.hero .cta {
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
}

.cta .icon {
  position: absolute;
  left: var(--cta-icon-inset);
  top: 50%;
  transform: translateY(-50%);
  width: var(--cta-icon-size);
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: visible;
}

.cta-text {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  padding-left: calc(var(--cta-icon-size) + 8px);
}

.cta .char-icon {
  animation: none;
  overflow: visible;
}

.cta .char-emoji {
  transform: scale(1.08) translateY(-1px);
}

.cta .char-hand {
  width: 40%;
  bottom: -18%;
  animation: hand-wave-side 0.95s ease-in-out infinite;
}

.cta .char-hand.right {
  right: -8%;
  transform-origin: 24% 34%;
}

.hero-copy {
  width: min(100%, 312px);
  margin: 0 auto;
}

.hero-cta-wrap {
  position: relative;
  width: fit-content;
  margin: 1.1rem auto 0;
  padding-top: var(--cta-wrap-pad-top);
}

.cta-badge {
  position: absolute;
  top: var(--cta-badge-top);
  left: var(--cta-icon-center);
  transform: translateX(-50%);
  margin: 0;
  padding: 0.4rem 0.66rem;
  border-radius: 0.5rem;
  background: rgb(22 24 30 / 0.95);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  z-index: 4;
}

.cta-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: rgb(22 24 30 / 0.95);
  border-radius: 0 0 2px 2px;
}

.about-side-char {
  position: absolute;
  right: -44px;
  bottom: 120px;
  width: 98px;
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 5;
  filter: none;
}

.about-side-char .char-hand {
  width: 35%;
  bottom: -10%;
}

.faces {
  width: calc(100% + 48px);
  margin: 1.72rem -24px 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.38rem;
  flex-wrap: nowrap;
  overflow: hidden;
  height: 138px;
  padding: 0 0 18px;
}

.faces span {
  width: 82px;
  height: 102px;
  display: grid;
  place-items: end center;
  position: relative;
  overflow: visible;
  flex: 0 0 auto;
}

.faces .char-hand {
  width: 34%;
  bottom: -9%;
}

.faces span:nth-child(1) { animation-delay: 0s; }
.faces span:nth-child(2) { animation-delay: 0.2s; }
.faces span:nth-child(3) { animation-delay: 0.4s; }
.faces span:nth-child(4) { animation-delay: 0.6s; }
.faces span:nth-child(5) { animation-delay: 0.8s; }

.char-face {
  --base-y: 0px;
  --amp: 4px;
  --tilt: 1deg;
  --dur: 2.8s;
  animation: face-drift var(--dur) ease-in-out infinite;
  transform-origin: 50% 70%;
}

.delay-1 { --base-y: -5px; --amp: 3px; --tilt: 1.2deg; --dur: 2.55s; animation-delay: 0s; }
.delay-2 { --base-y: 5px; --amp: 4px; --tilt: -0.9deg; --dur: 3.2s; animation-delay: 0.35s; }
.delay-3 { --base-y: -6px; --amp: 2.8px; --tilt: 0.8deg; --dur: 2.85s; animation-delay: 0.2s; }
.delay-4 { --base-y: 4px; --amp: 3.8px; --tilt: -1.1deg; --dur: 3.35s; animation-delay: 0.55s; }
.delay-5 { --base-y: -4px; --amp: 3.2px; --tilt: 1deg; --dur: 2.7s; animation-delay: 0.15s; }

#features .label {
  font-size: 0.68rem;
  color: #aeb4be;
  letter-spacing: 0.03em;
  margin-bottom: 0.08rem;
}

#features h3 {
  margin-bottom: 1.45rem;
}

#features .desc {
  max-width: 340px;
  font-size: 0.8rem;
  line-height: 1.85;
  margin-bottom: 0;
}

#features .desc .small {
  font-size: 0.96em;
}

#features {
  overflow: visible;
}

.how-grid {
  margin-top: 2.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
  align-items: center;
}

#how-to-use .desc {
  max-width: 294px;
}

.preview {
  position: relative;
  width: 220px;
  height: 278px;
  border: 0;
  background: transparent;
  overflow: hidden;
  margin-inline: auto;
  order: 1;
}

.zoom-trigger {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 8;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
}

.shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.shot.is-active {
  opacity: 1;
}

.shot-img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.82rem;
  width: 100%;
  max-width: 300px;
  order: 2;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.8rem;
  align-items: center;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.step.is-active {
  opacity: 1;
}

.num-wrap {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
}

.step-progress {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.progress-track {
  fill: none;
  stroke: rgb(255 255 255 / 0.45);
  stroke-width: 1;
}

.progress-bar {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
}

.step.is-active .progress-bar {
  animation: step-progress 10s linear forwards;
}

.num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  color: #d2d8e0;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgb(255 255 255 / 0.1);
}

.step p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: left;
}

.step.is-active p {
  color: #edf0f4;
}

.inline-step-icon {
  width: 1.28em;
  height: 1.28em;
  display: inline-block;
  vertical-align: -0.18em;
}

.note p {
  text-align: center;
  max-width: 332px;
  font-size: 0.8rem;
  margin-left: auto;
  margin-right: auto;
}

.note .small {
  font-size: 0.88em;
}

.note strong {
  color: #fff;
}

.section.footer-cta.wave-top {
  padding-top: var(--cta-section-vpad);
  padding-bottom: calc(var(--cta-section-vpad) - 0.2rem);
}

.cta-inner {
  display: block;
  width: 100%;
}

.footer-cta-main {
  width: min(100%, 360px);
  margin: 0 auto;
  text-align: center;
}

.footer-msg {
  margin: 0 0 0.95rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.04rem, 2.8vw, 1.28rem);
  line-height: 1.62;
  font-weight: 700;
  color: #f4f6fb;
}

.footer-cta-wrap {
  position: relative;
  width: fit-content;
  margin: 0.22rem auto 0;
  padding-top: var(--cta-wrap-pad-top);
  --cta-char-center-x: calc(100% - var(--cta-icon-center));
}

.footer-badge {
  position: absolute;
  top: var(--cta-badge-top);
  left: var(--cta-char-center-x);
  right: auto;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.48rem 0.78rem;
  border-radius: 0.62rem;
  background: rgb(22 24 30 / 0.95);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  z-index: 4;
}

.footer-badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%) rotate(45deg);
  width: 7px;
  height: 7px;
  background: rgb(22 24 30 / 0.95);
  border-radius: 0 0 2px 2px;
}

.cta-badge,
.footer-badge {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.footer-cta .cta {
  margin: 0 auto;
}

.footer-cta .cta.cta--reverse {
  padding: 0 16px;
}

.footer-cta .cta.cta--reverse .icon {
  position: absolute;
  right: var(--cta-icon-inset);
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.footer-cta .cta.cta--reverse .cta-text {
  padding-left: 0;
  padding-right: calc(var(--cta-icon-size) + 8px);
}

.site-footer {
  position: relative;
  width: var(--shell-width);
  margin: 0.18rem auto 0.18rem;
  padding: 0.62rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8f96a1;
  font-size: 0.64rem;
}

.site-footer > span:last-child {
  white-space: nowrap;
}

.beta-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.1rem;
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.14);
  color: rgb(217 222 231 / 0.78);
  font-size: 0.44rem;
  vertical-align: middle;
  line-height: 1;
}

.author-link {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.16em;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgb(4 6 10 / 0.72);
  z-index: 100;
}

.image-modal.is-open {
  display: grid;
}

.image-modal-content {
  position: relative;
  display: inline-block;
}

.image-modal-img {
  width: min(72vw, 340px);
  max-height: 430px;
  object-fit: contain;
  border-radius: 12px;
}

.image-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 999px;
  background: rgb(10 12 18 / 0.92);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgb(0 0 0 / 0.45);
  cursor: pointer;
  z-index: 2;
}

.floating-nav {
  position: fixed;
  left: calc(var(--shell-left) - var(--nav-column-gap));
  transform: translateX(-100%);
  top: auto;
  bottom: var(--edge-gap-safe);
  z-index: 40;
  background: var(--nav-bg);
  border-radius: 10px;
  padding: 0.5rem;
  display: grid;
  gap: 0.2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.floating-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.38rem;
  width: 8.6rem;
  color: #d4d9e2;
  font-size: 0.7rem;
  padding: 0.2rem 0.38rem;
  border-radius: 6px;
}

.floating-nav a::before {
  content: "";
  width: 1em;
  height: 1em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-nav a.is-active {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}

.floating-nav a.is-active::before {
  content: "👉";
  width: auto;
  height: auto;
  background: transparent;
  font-size: 0.74rem;
  line-height: 1;
}

@keyframes step-progress {
  to { stroke-dashoffset: 0; }
}

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

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

@keyframes face-drift {
  0%, 100% { transform: translateY(var(--base-y)) rotate(0deg); }
  50% { transform: translateY(calc(var(--base-y) - var(--amp))) rotate(var(--tilt)); }
}

@keyframes hand-wave-side {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-3px) rotate(-7deg); }
  50% { transform: translateX(3px) rotate(7deg); }
  75% { transform: translateX(-2px) rotate(-6deg); }
}

.will-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.will-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none) {
  .bg-char:hover {
    opacity: 0.9;
  }
}

@media (max-width: 768px) {
  .floating-nav {
    display: none !important;
  }
}

@media (max-width: 520px) {
  :root {
    --edge-gap: 8px;
    --nav-column-gap: 12px;
    --shell-width: calc(100vw - 18px);
    --bg-char-size: 84px;
    --wave-h: 34px;
    --wave-overlap: 2px;
    --wave-section-pad: 3.5rem;
  }

  .shell {
    width: var(--shell-width);
    border-radius: 14px;
    margin: 0.8rem auto 0;
  }

  .bg-illustrations,
  .bg-overlay {
    display: none !important;
  }

  .section {
    padding: 2.4rem 16px;
  }

  .hero-character {
    width: 198px;
  }

  #about.hero {
    padding-top: 3rem;
    padding-bottom: 4.7rem;
    gap: 2.8rem;
  }

  #how-to-use {
    padding-top: calc(var(--wave-section-pad) + 1.25rem);
    padding-bottom: calc(var(--wave-section-pad) + 1.25rem);
  }

  .avatar {
    width: 198px;
    height: 198px;
  }

  .avatar.big {
    width: 182px;
    height: 182px;
  }

  .how-grid {
    gap: 0.8rem;
  }

  .faces {
    width: calc(100% + 40px);
    margin: 1.45rem -20px 0;
    height: 118px;
    gap: 0.3rem;
    overflow: hidden;
    padding: 0 0 16px;
  }

  .faces span {
    width: 72px;
    height: 90px;
  }

  .preview {
    width: 210px;
    height: 266px;
  }

  .floating-nav {
    left: 8px;
    transform: none;
    top: auto;
    bottom: var(--edge-gap-safe);
  }

  .site-footer {
    font-size: 0.6rem;
    gap: 0.6rem;
  }
}
