:root {
  --bg: #FBF6EC;
  --stage: #F3E5AB;
  --stage-deep: #E8D48A;
  --card: #FFFEF9;
  --yellow: #F0D56A;
  --yellow-soft: #F7E9B8;
  --soft: #FFE8D6;
  --title: #5C4A32;
  --body: #8A7660;
  --accent: #C9956A;
  --shadow: 0 16px 40px rgba(140, 110, 60, 0.12);
  --shadow-sm: 0 8px 20px rgba(140, 110, 60, 0.1);
  --radius: 28px;
  --radius-lg: 40px;
  --font: "Noto Sans SC", "PingFang SC", sans-serif;
  --display: "ZCOOL KuaiLe", "Noto Sans SC", cursive;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--title);
  background:
    radial-gradient(circle at 10% 8%, rgba(240, 213, 106, 0.22) 0 18px, transparent 19px),
    radial-gradient(circle at 92% 14%, rgba(255, 232, 214, 0.45) 0 14px, transparent 15px),
    radial-gradient(circle at 78% 78%, rgba(232, 212, 138, 0.2) 0 20px, transparent 21px),
    var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
button, a.btn-clay { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
[hidden] { display: none !important; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(251, 246, 236, 0.88);
  border-bottom: 1px solid rgba(92, 74, 50, 0.06);
}
#main { position: relative; z-index: 1; }
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-lockup {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.brand-lockup img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; background: var(--yellow-soft);
  box-shadow: var(--shadow-sm);
}
.brand-lockup strong {
  display: block; font-family: var(--display);
  font-size: 18px; line-height: 1.15; font-weight: 400;
  letter-spacing: 0.02em;
}
.brand-lockup em {
  font-style: normal;
  font-size: 11px;
  color: var(--body);
  letter-spacing: 0.04em;
}
.nav-desktop { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-desktop button, .nav-drawer button {
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px;
  color: var(--title);
}
.nav-desktop button:hover, .nav-drawer button:hover { background: var(--yellow-soft); }
.nav-toggle {
  display: none;
  padding: 8px 14px; border-radius: 999px;
  background: var(--yellow); font-weight: 800; font-size: 13px;
}
.nav-drawer {
  display: grid; gap: 4px; padding: 8px 16px 14px;
  border-top: 1px solid rgba(92, 74, 50, 0.06);
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

.screen { display: none; }
.screen.active { display: block; }

/* buttons — soft clay */
.btn-clay {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 64px; padding: 14px 32px; border-radius: 999px;
  font-weight: 800; letter-spacing: 0.03em;
  box-shadow: 0 8px 0 rgba(180, 140, 60, 0.18), var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-clay span { display: block; font-size: 12px; font-weight: 600; opacity: 0.85; margin-top: 2px; }
.btn-clay.yellow {
  background: linear-gradient(180deg, #FFE58A, var(--yellow));
  color: var(--title);
}
.btn-clay.soft {
  background: linear-gradient(180deg, #FFF0E4, var(--soft));
  color: #7A5340;
}
.btn-clay.small {
  min-height: 46px; padding: 8px 20px; font-size: 14px;
  flex-direction: row; gap: 6px;
}
.btn-clay:hover { transform: translateY(-2px); }
.btn-clay:active {
  transform: translateY(4px);
  box-shadow: 0 3px 0 rgba(180, 140, 60, 0.18), 0 6px 14px rgba(140, 110, 60, 0.12);
}
.ghost {
  padding: 10px 14px; border-radius: 999px; font-weight: 700; color: var(--body);
  background: rgba(255, 254, 249, 0.8); border: 1px solid rgba(92, 74, 50, 0.08);
}
.ghost:hover { background: #fff; color: var(--title); }
.ghost:disabled, .btn-clay:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.brand-mark {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1;
  color: var(--title);
  letter-spacing: 0.02em;
}
.brand-mark.sm {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--accent);
  margin-bottom: 4px;
}
.eyebrow {
  display: inline-flex; margin: 0 0 10px; padding: 6px 12px;
  border-radius: 999px; background: #fff; color: var(--accent);
  font-size: 12px; font-weight: 800; box-shadow: var(--shadow-sm);
}
.pick-label {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
}

/* ===== COVER — one full poster image ===== */
.cover {
  padding: 10px 14px 8px;
}
.cover-poster {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #F2E19E;
  max-width: 520px;
  margin: 0 auto;
}
.cover-art {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.cover-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 22px 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 230, 170, 0.75) 35%, rgb(245, 230, 170) 70%);
}
.cover-cta .btn-clay {
  width: min(300px, 100%);
  font-size: 20px;
}
.cover-meta {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
}
.cover-note {
  max-width: 520px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--body);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.cover-poster.pressed .btn-clay {
  transform: translateY(5px);
  box-shadow: 0 3px 0 rgba(180, 140, 60, 0.18);
}

/* bands */
.band { max-width: var(--max); margin: 0 auto; padding: 52px 20px; }
.band-head { text-align: center; margin-bottom: 24px; }
.band-head h2,
.band-head .home-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.2;
}
.band-head .home-title {
  font-size: clamp(28px, 4.4vw, 38px);
}
.band-head p { margin: 8px 0 0; color: var(--body); font-size: 14px; line-height: 1.6; }

.guide-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  width: 100%;
  display: grid;
  gap: 12px;
}
.guide-steps > li {
  list-style: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(255, 254, 249, 0.85);
  border: 1px solid rgba(92, 74, 50, 0.06);
  border-radius: 22px;
  box-sizing: border-box;
}
.guide-steps > li::marker,
.guide-steps > li::before {
  content: none !important;
  display: none !important;
}
.guide-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  color: var(--title);
  background: var(--yellow-soft);
  box-shadow: inset 0 -2px 0 rgba(180, 140, 60, 0.12);
}
.guide-steps h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.guide-steps p {
  margin: 0;
  color: var(--body);
  font-size: 13px;
  line-height: 1.65;
}

.messy-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  align-items: stretch;
}
.messy-card {
  background: var(--card);
  border-radius: 24px;
  padding: 14px 10px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform .18s ease;
  cursor: pointer;
}
.messy-card:nth-child(3n) { transform: rotate(-1.5deg) translateY(6px); }
.messy-card:nth-child(5n) { transform: rotate(1.5deg) translateY(-4px); }
.messy-card img {
  width: 78%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--yellow-soft);
  margin: 0 auto 8px;
  box-shadow: inset 0 0 0 3px rgba(255, 254, 249, 0.8);
  transition: transform .2s ease;
}
.messy-card:hover { transform: translateY(-4px) scale(1.03); z-index: 2; }
.messy-card:hover img { transform: translateY(-4px); }
.messy-card strong { font-size: 14px; }
.messy-card span { display: block; color: var(--body); font-size: 11px; margin-top: 2px; line-height: 1.35; }
.hand-note {
  margin: 20px 0 0;
  text-align: center;
  color: var(--accent);
  font-family: var(--display);
  font-size: 18px;
}

.pick-row {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.pick-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 92px; text-align: center; cursor: pointer;
}
.pick-chip img {
  width: 80px; height: 80px; margin: 0 auto 6px; border-radius: 50%;
  object-fit: cover; background: var(--yellow-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease;
}
.pick-chip:hover img, .pick-chip.active img { transform: translateY(-6px) scale(1.04); }
.pick-chip.active img { box-shadow: 0 0 0 3px var(--yellow), var(--shadow-sm); }
.pick-chip strong { font-size: 13px; }
.pick-panel {
  margin-top: 18px;
  background: var(--card);
  border-radius: 28px;
  padding: 20px;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}
.pick-orb {
  width: 148px; height: 148px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 6px rgba(255, 254, 249, 0.85);
}
.pick-orb img, .pick-panel img {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
}
.pick-panel h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}
.pick-panel p { margin: 0 0 8px; color: var(--body); line-height: 1.55; }

.about-lite-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lite-item {
  text-align: center;
  padding: 8px 6px;
}
.lite-orb {
  width: 72px; height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.lite-orb img {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover;
}
.lite-item strong { display: block; margin-bottom: 4px; }
.lite-item span { color: var(--body); font-size: 13px; line-height: 1.4; }

.finale-box {
  background: linear-gradient(160deg, #F7E9B8, #FFE8D6);
  border-radius: 36px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.finale-chars { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.finale-chars img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow-sm);
  animation: softBob 3s ease-in-out infinite;
}
.finale-chars img:nth-child(2) { animation-delay: .15s; width: 76px; height: 76px; }
.finale-chars img:nth-child(3) { animation-delay: .3s; }
.finale-box h2 {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 400;
  margin: 8px 0 6px;
}
.finale-box > p { margin: 0 0 18px; color: var(--body); }

/* ===== QUIZ ===== */
.quiz-shell, .result-shell, .atlas-shell, .detail-shell, .about-shell, .history-shell {
  max-width: 720px; margin: 0 auto; padding: 18px 20px 70px;
}
.result-shell, .atlas-shell, .detail-shell, .about-shell, .history-shell {
  max-width: var(--max);
}
.quiz-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px;
}
.quiz-brand { font-weight: 800; color: var(--body); font-size: 13px; }
.quiz-count { font-weight: 800; }
.quiz-guide {
  margin-bottom: 14px;
}
.track {
  position: relative;
  height: 12px;
  margin-top: 10px;
}
.track-bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 12px;
  border-radius: 999px; background: #EDE0C4; overflow: hidden;
}
.track-bar > span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #FFE58A, var(--yellow));
  transition: width .45s ease;
}

/* ===== 奶蛙侧面序列帧动画 ===== */
.track-frog {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 80px;
  z-index: 2;
  transform-origin: 50% 100%;
  will-change: transform, left;
  pointer-events: none;
}
.track-frog .frog-3d,
.track-frog .naiwa-hop-stage,
.track-frog .naiwa-glb-stage {
  position: relative;
  width: 96px;
  height: 80px;
  transform: translateY(var(--bob-y, 0px));
}
.track-frog .naiwa-glb-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.naiwa-hop-stage .naiwa-hop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* 不用 multiply：黄蛙在奶黄底上会被融没 */
  opacity: 1;
  transition: opacity .14s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.naiwa-hop-stage .naiwa-hop-img.is-back {
  opacity: 0;
  z-index: 0;
}
.naiwa-hop-stage .naiwa-hop-img:not(.is-back) {
  z-index: 1;
}
.track-frog.face-left .frog-3d,
.track-frog.face-left .naiwa-hop-stage,
.track-frog.face-left .naiwa-glb-stage {
  transform: scaleX(-1) translateY(var(--bob-y, 0px));
}
.quiz-buddy-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #F7E9B8, #FFE8D6);
  border-radius: 24px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.buddy-face {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 254, 249, 0.7);
  display: grid; place-items: center;
}
#quiz-buddy-img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
}
.bubble {
  flex: 1;
  min-width: 0;
  background: #fff;
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--title);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}
.quiz-guide-box {
  position: relative;
  width: 52px;
  height: 48px;
  flex-shrink: 0;
  margin-left: 2px;
}
.quiz-guide-box .mini-body {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 24px;
  border-radius: 8px 8px 12px 12px;
  background: linear-gradient(180deg, #FFF6D8, #E8D48A);
  box-shadow: 0 4px 10px rgba(140, 110, 60, 0.16);
}
.quiz-guide-box .mini-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 10px;
  transform: translateX(-50%);
  background: #FFE8D6;
  border-radius: 2px;
}
.quiz-guide-box .mini-lid {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 14px;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #F7E9B8);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.04);
}
.quiz-guide-box .mini-lid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #FFE8D6;
}
.quiz-main {
  background: var(--card); border-radius: 28px; padding: 22px; box-shadow: var(--shadow);
}
.quiz-scene {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--yellow-soft); color: #9A7540; font-size: 12px; font-weight: 800; margin-bottom: 10px;
}
.quiz-q {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.35;
}
.quiz-hint { margin: 0 0 18px; color: var(--body); }
.options { display: grid; gap: 12px; }
.option {
  position: relative; text-align: left; padding: 16px 18px; padding-right: 58px;
  border-radius: 22px; background: var(--bg); border: 2px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.45;
  box-shadow: 0 5px 0 #E4D4B4;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.option:hover { background: #fff; }
.option:active { transform: translateY(3px); box-shadow: 0 2px 0 #E4D4B4; }
.option.selected {
  background: #FFF6E8;
  border-color: var(--yellow);
  box-shadow: 0 2px 0 var(--stage-deep);
  transform: translateY(2px);
}
.option .opt-mascot {
  position: absolute; right: 8px; top: 50%; width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; transform: translateY(-50%) scale(0); opacity: 0;
  transition: transform .22s cubic-bezier(.2, 1.4, .4, 1), opacity .18s ease; background: #fff;
}
.option.selected .opt-mascot { transform: translateY(-50%) scale(1); opacity: 1; }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }

/* analyze / unbox */
.analyze-stage, .unbox-stage {
  min-height: calc(100vh - 120px);
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px;
  padding: 40px 20px;
}
.analyze-stage h2, .unbox-stage h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 32px);
  margin: 8px 0;
}
.analyze-cast { display: flex; align-items: end; gap: 10px; }
.analyze-cast img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  animation: softBob .9s ease-in-out infinite; box-shadow: var(--shadow-sm);
}
.analyze-cast .a2 { width: 96px; height: 96px; animation-delay: .1s; }
.analyze-cast .a3 { animation-delay: .2s; }
.magnifier {
  width: 54px; height: 54px; border: 6px solid var(--yellow); border-radius: 50%;
  position: relative; margin: 8px 0; animation: search 1.6s ease-in-out infinite;
}
.magnifier::after {
  content: ""; position: absolute; right: -16px; bottom: -8px; width: 18px; height: 6px;
  background: var(--accent); border-radius: 4px; transform: rotate(40deg);
}
.analyze-bar {
  width: min(320px, 80vw); height: 12px; border-radius: 999px; background: #EDE0C4; overflow: hidden;
}
.analyze-bar > span {
  display: block; height: 100%; width: 10%;
  background: linear-gradient(90deg, #FFE58A, var(--yellow));
  transition: width .35s ease;
}
.unbox-sub {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
}
.unbox-cast { display: flex; gap: 8px; }
.unbox-cast img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
#unbox-name {
  font-family: var(--display);
  font-size: clamp(32px, 7vw, 44px);
  margin: 4px 0 0;
  font-weight: 400;
  min-height: 1.2em;
}

.reveal-pod {
  position: relative;
  width: 220px;
  height: 210px;
  margin: 10px auto 6px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.reveal-pod:focus-visible {
  outline: 3px solid rgba(240, 213, 106, 0.8);
  outline-offset: 6px;
  border-radius: 24px;
}
.pod-well {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 40%;
  top: 0;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}
.pod-body, .gift-body {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 48%;
  background: linear-gradient(180deg, #FFF6D8, #E8D48A);
  border-radius: 18px 18px 28px 28px;
  box-shadow:
    inset 0 -8px 0 rgba(0, 0, 0, 0.04),
    0 10px 20px rgba(140, 110, 60, 0.12);
  z-index: 4;
  pointer-events: none;
}
.pod-body::before, .gift-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 22px;
  transform: translateX(-50%);
  background: #FFE8D6;
  border-radius: 4px;
}
.pod-lid, .gift-lid {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 38%;
  height: 22%;
  background: linear-gradient(180deg, #fff, #F7E9B8);
  border-radius: 14px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.05);
  transition: transform .5s cubic-bezier(.2, .9, .2, 1);
  z-index: 5;
  pointer-events: none;
  transform-origin: left center;
}
.pod-lid::after, .gift-lid::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 28px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #FFE8D6;
}
/* 合盖：盖子完全盖住，盒内不露人格 */
.reveal-pod.closed .gift-lid {
  transform: none;
}
.reveal-pod.closed .gift-reveal,
.reveal-pod:not(.open) .gift-reveal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.gift-reveal {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(140, 110, 60, 0.18);
  transition:
    bottom .55s cubic-bezier(.2, 1.2, .3, 1),
    transform .55s cubic-bezier(.2, 1.2, .3, 1),
    width .55s ease,
    height .55s ease,
    opacity .35s ease;
  z-index: 1;
}
.reveal-pod.open .gift-lid {
  transform: translate(-18px, -72px) rotate(-42deg);
}
.reveal-pod.open .pod-well {
  overflow: visible;
}
.reveal-pod.open .gift-reveal {
  opacity: 1;
  visibility: visible;
  bottom: 48%;
  width: 142px;
  height: 142px;
  transform: translateX(-50%) scale(1.06);
  animation: none;
  box-shadow: var(--shadow);
  z-index: 6;
}
.sparkles {
  position: absolute;
  inset: -24%;
  background:
    radial-gradient(circle at 20% 30%, #FFE58A 0 4px, transparent 5px),
    radial-gradient(circle at 80% 20%, #FFE8D6 0 3px, transparent 4px),
    radial-gradient(circle at 70% 70%, #fff 0 5px, transparent 6px);
  animation: twinkle 1s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes peekBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-7px); }
}

/* result — atlas card blown up */
.result-poster {
  background: linear-gradient(180deg, #F7E9B8, #FFFEF9);
  border-radius: 36px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.result-poster h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 56px);
  font-weight: 400;
}
.result-code {
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--accent);
  font-size: 13px;
}
.result-hero {
  position: relative;
  width: min(260px, 70vw);
  margin: 16px auto;
}
.result-orb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 254, 249, 0.65);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 8px rgba(255, 254, 249, 0.7), var(--shadow);
}
.result-hero > .result-orb #result-image,
.result-orb img {
  width: 86%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  animation: softBob 3.5s ease-in-out infinite;
}
.result-hero .side {
  position: absolute; right: -16px; bottom: 12px; width: 72px; height: 72px;
  border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm);
}
.result-tag { font-weight: 700; color: var(--body); font-size: 16px; }
.mood-pill {
  display: inline-block;
  margin: 8px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(240, 213, 106, 0.45);
  color: #9A7540;
  font-size: 13px;
  font-weight: 800;
}
.result-hook {
  margin: 14px 8px 8px;
  font-family: var(--display);
  font-size: clamp(20px, 4.4vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--title);
}
.comfort-line {
  margin: 0 !important;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FFF8E8, #FFEFD8);
  color: #6B5540 !important;
  font-weight: 700;
  line-height: 1.6;
  border: 1px solid rgba(240, 213, 106, 0.35);
}
.report-lead {
  font-weight: 700 !important;
  color: var(--title) !important;
  margin-bottom: 10px !important;
}
.report-block-soft {
  background: linear-gradient(160deg, #FFF8EC, #FFFEF9);
}
.atlas-mood {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #F7E9B8;
  color: #9A7540;
  font-size: 11px;
  font-weight: 800;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.chip {
  padding: 6px 12px; border-radius: 999px; background: var(--yellow-soft);
  color: #9A7540; font-size: 12px; font-weight: 800;
}
.report-block {
  background: var(--card); border-radius: 24px; padding: 18px 20px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm); text-align: left;
}
.report-block h2 { margin: 0 0 8px; font-size: 18px; }
.report-block p { color: var(--body); line-height: 1.7; margin: 0 0 8px; }
.ranked { display: grid; gap: 8px; }
.ranked-item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center;
  padding: 8px; border-radius: 16px; background: var(--bg);
}
.ranked-item img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.disclaimer { color: #B89A8C; font-size: 12px; line-height: 1.55; }

/* atlas — match reference sheet exactly */
.page-head { text-align: center; margin: 10px 0 22px; }
.page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 400;
}
.page-head p { margin: 8px 0 0; color: var(--body); }
.atlas-head h1 {
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 36px);
  letter-spacing: 0.02em;
  color: #4a3a2a;
}
.atlas-head p {
  margin-top: 10px;
  font-size: 13px;
  color: #9a8a78;
  line-height: 1.5;
}
.atlas-shell {
  max-width: 1180px;
  background:
    radial-gradient(circle at 8% 6%, rgba(240, 213, 106, 0.12) 0 10px, transparent 11px),
    transparent;
}
.atlas-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.atlas-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 18px 12px 16px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(160, 130, 80, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.atlas-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(160, 130, 80, 0.12);
}
.atlas-orb {
  width: 78%;
  max-width: 132px;
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, #FFFDF8 0%, #F3E6C0 72%, #E8D7A4 100%);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 14px rgba(160, 120, 60, 0.1);
}
.atlas-orb img {
  width: 86%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  transition: transform .18s ease;
}
.atlas-card:hover .atlas-orb img { transform: translateY(-3px); }
.atlas-label {
  display: block;
  margin: 0;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: #a89888;
  letter-spacing: 0.02em;
}
.atlas-card strong {
  display: block;
  margin-top: 4px;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #3f3228;
  line-height: 1.2;
}
.atlas-desc {
  display: block;
  margin-top: 6px;
  color: #8a7a6a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}
.flag {
  display: inline-block; margin-top: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 800; background: var(--yellow-soft); color: #9A7540;
}

.detail-shell {
  max-width: 960px;
}
.detail-poster {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px 32px;
  align-items: start;
  background: linear-gradient(165deg, #F7E9B8 0%, #FFF8EC 42%, #FFFEF9 100%);
  border-radius: 36px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.detail-visual {
  position: sticky;
  top: 88px;
}
.detail-orb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, #FFFDF8 0%, #F3E6C0 70%, #E8D7A4 100%);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 14px 28px rgba(160, 120, 60, 0.14);
}
.detail-orb img {
  width: 86%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.detail-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.detail-id {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.detail-id .eyebrow {
  margin: 0;
}
.detail-id .pick-label {
  margin: 0;
  color: #A89888;
  font-size: 13px;
}
.detail-poster h1,
.detail-id h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: #4A3A2A;
}
.detail-id .mood-pill {
  margin: 4px 0 0;
}
.detail-hook {
  margin: 4px 0 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 254, 249, 0.78);
  box-shadow: inset 0 0 0 1px rgba(200, 170, 110, 0.22);
  font-family: var(--display);
  font-size: clamp(20px, 3.6vw, 26px);
  font-weight: 400;
  line-height: 1.45;
  color: #4A3A2A;
}
.detail-tagline {
  margin: 0;
  color: #9A7540;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.detail-chips {
  justify-content: flex-start;
  margin: 0;
}
.detail-panel {
  background: rgba(255, 254, 249, 0.88);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(160, 130, 80, 0.06);
}
.detail-panel-soft {
  background: linear-gradient(145deg, #FFF6E4, #FFFEF9);
}
.detail-panel-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: none;
  color: #B08A58;
}
.detail-about {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.75;
}
.detail-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.detail-tips li {
  position: relative;
  padding: 10px 12px 10px 36px;
  border-radius: 14px;
  background: #FFF9EF;
  color: #6B5848;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.detail-tips li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(240, 213, 106, 0.28);
}
.detail-cta {
  margin-top: 4px;
  padding-top: 4px;
}
.detail-cta .btn-clay {
  width: 100%;
  max-width: 320px;
}
.about-content, .history-list {
  background: var(--card); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); line-height: 1.7;
}
.history-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(92, 74, 50, 0.06);
  width: 100%; text-align: left;
}
.history-item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

.site-footer {
  max-width: var(--max); margin: 0 auto; padding: 24px 20px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  color: var(--body); font-size: 13px;
}
.site-footer strong { color: var(--title); }
.site-footer span { display: inline; margin-left: 6px; }
.site-footer nav {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.site-footer button {
  font-weight: 700; color: var(--title);
  min-height: 36px; padding: 6px 12px; border-radius: 999px;
}
.site-footer button:hover { background: var(--yellow-soft); }

.modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(70, 50, 30, 0.38); backdrop-filter: blur(6px); padding: 16px;
}
.modal-card {
  background: #FFFAF4; border-radius: 24px; padding: 16px; box-shadow: var(--shadow);
  max-width: min(420px, 100%); max-height: 90vh; overflow: auto;
}
.poster-card {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
  padding-bottom: 8px;
}
.poster-card canvas {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 88px);
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  flex: 0 1 auto;
}
.poster-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-top: 10px;
  padding: 10px 0 2px;
  background: #FFFAF4;
  z-index: 2;
}
.poster-actions .btn-clay {
  min-width: 148px;
}
.poster-actions .btn-clay:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* access gate / mission / upload */
.access-card {
  width: min(360px, 100%);
  text-align: center;
  padding: 28px 20px 20px;
  display: grid;
  gap: 12px;
  justify-items: stretch;
}
.access-mascot {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.access-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}
.access-meta {
  margin: -4px 0 6px;
  color: var(--body);
  font-size: 13px;
}
.btn-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-access.stacked {
  flex-direction: column;
  gap: 2px;
  min-height: 58px;
}
.btn-access.stacked span {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}
.btn-access.wide { width: 100%; }
.btn-access.orange {
  color: #fff;
  background: linear-gradient(180deg, #FF9B4A, #F07A28);
  box-shadow: 0 10px 22px rgba(240, 122, 40, 0.28);
}
.btn-access.gold {
  color: #9A5A18;
  background: linear-gradient(180deg, #FFE7B8, #F5D28A);
  border: 1.5px solid #E8A84A;
  box-shadow: 0 8px 18px rgba(200, 140, 60, 0.16);
}
.btn-access.soft {
  color: var(--title);
  background: #fff;
  border: 1px solid rgba(92, 74, 50, 0.12);
}
.btn-access.mute {
  color: #887766;
  background: #F0EBE3;
}
.btn-access:hover { transform: translateY(-1px); }
.btn-access:active { transform: translateY(1px); }
.btn-access:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pay-price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #FFF3E8;
  border: 1.5px solid rgba(240, 122, 40, 0.28);
  text-align: left;
}
.pay-price-box span {
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
}
.pay-price-box strong {
  font-size: 28px;
  font-weight: 800;
  color: #C45E12;
  line-height: 1;
}
.pay-tip {
  margin: 0;
  font-size: 12px;
  color: var(--body);
  line-height: 1.5;
  text-align: left;
}

.access-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px calc(48px + env(safe-area-inset-bottom, 0px));
}
.access-topbar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.mission-progress {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mission-progress li {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--body);
  border: 1px solid rgba(92, 74, 50, 0.08);
}
.mission-progress li.done {
  background: #E8F8E4;
  color: #3F8A2E;
  border-color: rgba(63, 138, 46, 0.25);
}
.mission-progress li.current {
  background: #FFF3E8;
  color: #C45E12;
  border-color: rgba(240, 122, 40, 0.35);
}
.mission-keyword {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--body);
}
.mission-keyword strong { color: var(--title); }
.linkish {
  margin-left: 8px;
  color: #C45E12;
  font-weight: 800;
  text-decoration: underline;
  font-size: 12px;
}
.mission-banner {
  background: #fff;
  border: 2px solid #F07A28;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.pay-qr {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.pay-qr-box {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #9A5A18;
  background: #fff;
  border: 1px solid rgba(92, 74, 50, 0.1);
}
.pay-qr-box.paying {
  color: #C45E12;
}
.pay-qr-box img,
.pay-qr-box canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}
.pay-qr p, #pay-order-text {
  margin: 0;
  font-size: 12px;
  color: var(--body);
  word-break: break-all;
}
.upload-live {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(60, 40, 20, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.upload-drop.dragover {
  background: #FFF3E8;
  border-color: #F07A28;
}
.upload-audit {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #FFF8EF;
  color: #C45E12;
  font-size: 13px;
  font-weight: 700;
}
.mission-banner strong {
  display: block;
  color: #C45E12;
  font-size: 16px;
  margin-bottom: 4px;
}
.mission-banner p {
  margin: 0;
  color: var(--body);
  font-size: 13px;
}
.mission-card {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.mission-card h2 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.4;
}
.mission-note {
  margin: 0 0 12px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.55;
}
.mission-copy-box {
  background: #FFF8EF;
  border: 1px dashed rgba(240, 122, 40, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.mission-copy-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}
.mission-platform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.mission-howto {
  margin: 4px 0 12px;
}
.mission-howto-title {
  margin: 0;
  color: #E11D2E;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}
.mission-howto-sub {
  margin: 4px 0 10px;
  color: #E11D2E;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.mission-guide-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(92, 74, 50, 0.12);
  background: #111;
}
.mission-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.mission-note-foot {
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  color: #9a7a5a;
  font-size: 12px;
}

.upload-shell { text-align: center; }
.upload-hero { margin-bottom: 16px; }
.upload-cam {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 28px;
  background: linear-gradient(160deg, #E8D6FF, #C9B0F0);
  box-shadow: var(--shadow-sm);
}
.upload-hero h1 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
}
.upload-sub {
  margin: 0 0 8px;
  color: #C45E12;
  font-weight: 800;
  font-size: 14px;
}
.upload-drop {
  display: grid;
  place-items: center;
  gap: 6px;
  width: 100%;
  min-height: 150px;
  padding: 20px;
  border: 2px dashed rgba(240, 122, 40, 0.45);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  margin-bottom: 14px;
  color: inherit;
  text-align: center;
}
.upload-drop:hover { background: #FFF8EF; }
.upload-plus {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #FFE0EC;
  color: #E85A8C;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.upload-drop strong { font-size: 15px; }
.upload-drop em {
  font-style: normal;
  color: var(--body);
  font-size: 12px;
}
.upload-status {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-bottom: 14px;
}
.upload-status p { margin: 0; color: var(--body); font-size: 13px; }
.upload-count { font-weight: 800; color: var(--title) !important; }
.upload-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.upload-preview:empty { display: none; }
.upload-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}
.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.upload-warn {
  text-align: left;
  background: #FFE8EF;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: #B03A5A;
  font-size: 13px;
  line-height: 1.55;
}
.upload-warn p { margin: 0 0 4px; }
.upload-warn p:last-child { margin-bottom: 0; }
.upload-privacy {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 12px;
}

/* motion — gentle, cute */
@keyframes softBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes softSway {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes search {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -6px); }
}

/* responsive */
@media (max-width: 1024px) {
  .messy-grid { grid-template-columns: repeat(4, 1fr); }
  .about-lite-grid { grid-template-columns: repeat(2, 1fr); }
  .atlas-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-poster { grid-template-columns: 240px 1fr; }
}
@media (max-width: 860px) {
  .cover-poster { border-radius: 22px; }
  .guide-steps { max-width: none; }
  .guide-steps > li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }
  .guide-num { width: 40px; height: 40px; flex-basis: 40px; font-size: 18px; }
  .guide-steps h3 { font-size: 15px; }
  .guide-steps p { font-size: 12.5px; }
  .finale-box {
    border-radius: 28px;
    padding: 28px 16px 24px;
  }
  .finale-box h2 { font-size: clamp(22px, 6vw, 28px); padding: 0 4px; }
  .finale-box > p { font-size: 13px; line-height: 1.6; padding: 0 6px; }
  .finale-chars { gap: 8px; }
  .finale-chars img { width: 56px; height: 56px; }
  .finale-chars img:nth-child(2) { width: 66px; height: 66px; }
  .finale-box .btn-clay { width: min(280px, 100%); }
  .chips { gap: 6px; justify-content: center; }
  .chip {
    padding: 7px 11px;
    font-size: 12px;
    max-width: 100%;
  }
  .result-tag { font-size: 14px; }
  .quiz-topbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .quiz-brand {
    font-size: 12px;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page-head h1 { font-size: clamp(24px, 7vw, 32px); padding: 0 4px; }
  .page-head p { font-size: 13px; padding: 0 8px; }
  .site-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
  }
  .site-footer > div { width: 100%; }
  .site-footer span {
    display: block;
    margin: 4px 0 0;
    font-size: 12px;
  }
  .site-footer nav {
    width: 100%;
    justify-content: center;
    gap: 6px;
  }
  .site-footer button {
    flex: 1 1 auto;
    min-width: 72px;
    background: rgba(255, 254, 249, 0.8);
  }
  .pick-panel { grid-template-columns: 96px 1fr; }
  .pick-orb { width: 96px; height: 96px; }
  .pick-orb img, .pick-panel img { width: 82px; height: 82px; }
  .detail-poster {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px 20px;
  }
  .detail-visual {
    position: static;
    width: min(220px, 68vw);
    margin: 0 auto;
  }
  .detail-id {
    align-items: center;
    text-align: center;
  }
  .detail-chips { justify-content: center; }
  .detail-hook { text-align: center; }
  .detail-tagline { text-align: center; }
  .detail-cta .btn-clay { max-width: none; }
  .atlas-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .atlas-card { padding: 14px 10px 14px; }
  .atlas-card strong { font-size: 17px; }

  .access-shell {
    max-width: 100%;
    padding: 10px 12px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .mission-card,
  .mission-banner {
    border-radius: 16px;
    padding: 14px 12px;
  }
  .mission-card h2 { font-size: 15px; }
  .mission-progress { gap: 4px; }
  .mission-progress li {
    font-size: 11px;
    padding: 8px 2px;
    border-radius: 12px;
  }
  .mission-platform-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .mission-platform-row .btn-access {
    min-height: 44px;
    font-size: 14px;
    padding: 12px 8px;
  }
  .mission-guide-figure {
    border-radius: 12px;
  }
  .mission-howto-title { font-size: 15px; }
  .mission-howto-sub { font-size: 12px; }
  .btn-access.wide,
  .btn-access.orange {
    min-height: 46px;
  }
  .modal {
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    align-items: end;
  }
  .modal-card,
  .access-card {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, 92vh);
    border-radius: 20px 20px 12px 12px;
    padding: 18px 14px 14px;
  }
  .pay-qr-box {
    width: min(200px, 56vw);
    height: min(200px, 56vw);
  }
  .upload-drop {
    padding: 22px 12px;
  }
  .upload-preview {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .messy-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .messy-card { padding: 10px 6px 12px; border-radius: 18px; }
  .messy-card strong { font-size: 12px; }
  .messy-card span { font-size: 10px; }
  .cover { padding: 8px 10px 6px; }
  .cover-cta { padding: 14px 14px 18px; }
  .cover-cta .btn-clay {
    font-size: 17px;
    width: min(280px, 100%);
    min-height: 58px;
    padding: 12px 18px;
  }
  .cover-meta { font-size: 12px; }
  .cover-note { font-size: 11px; letter-spacing: 0.04em; padding: 0 8px; }
  .atlas-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .atlas-card { padding: 12px 8px; }
  .atlas-card strong { font-size: 15px; }
  .atlas-label { font-size: 11px; }

  .header-inner { padding: 10px 12px; gap: 10px; }
  .brand-lockup { gap: 8px; min-width: 0; }
  .brand-lockup span { min-width: 0; }
  .brand-lockup img { width: 34px; height: 34px; }
  .brand-lockup strong { font-size: 16px; }
  .brand-lockup em {
    display: block;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .band { padding: 32px 14px; }
  .band-head { margin-bottom: 18px; }
  .band-head h2,
  .band-head .home-title { font-size: clamp(24px, 7vw, 30px); }
  .band-head p { font-size: 13px; }
  .hand-note { font-size: 16px; }
  .about-lite-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lite-item { padding: 14px 10px; }
  .lite-item strong { font-size: 14px; }
  .lite-item span { font-size: 12px; }
  .pick-chip { width: 78px; }
  .pick-chip img { width: 68px; height: 68px; }
  .pick-chip strong { font-size: 12px; }
  .pick-panel {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    padding: 16px;
  }
  .pick-orb { margin: 0 auto; }
  .result-actions {
    flex-direction: column;
  }
  .result-actions .btn-clay,
  .result-actions .ghost {
    width: 100%;
  }
  .chips { justify-content: flex-start; }
  .chip { font-size: 11px; padding: 6px 10px; }
  .quiz-shell, .result-shell, .atlas-shell, .detail-shell, .about-shell, .history-shell {
    padding: 14px 12px 56px;
  }
  .mission-progress {
    grid-template-columns: 1fr;
  }
  .mission-progress li {
    font-size: 13px;
    padding: 10px 12px;
    text-align: left;
    border-radius: 12px;
  }
  .mission-platform-row {
    grid-template-columns: 1fr;
  }
  .mission-copy-box p {
    font-size: 15px;
    line-height: 1.7;
  }
  .pay-price-box {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pay-price-box strong { font-size: 28px; }
  .site-footer {
    padding: 16px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer nav button {
    font-size: 13px;
    min-height: 40px;
  }
}

@supports (padding: max(0px)) {
  .site-header .header-inner {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}
