:root {
  --bg: #ede8d9;
  --surface: #fffaf0;
  --surface-2: #f1e7d2;
  --text: #22231d;
  --muted: #756e60;
  --line: #d3c2a4;
  --green: #28604a;
  --green-2: #e2ead8;
  --pink: #c74872;
  --wood: #5e4630;
  --hanji: #fff8e8;
  --ink: #191b15;
  --shadow: 0 22px 60px rgba(42, 34, 22, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 12%, rgba(116, 132, 76, .15), transparent 28%),
    radial-gradient(circle at 10% 84%, rgba(82, 119, 72, .12), transparent 32%),
    radial-gradient(circle at 18px 18px, rgba(44, 40, 30, .045) 1px, transparent 1.5px),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 34px 34px, auto;
  background-position: center top, center top, left top, center;
  background-attachment: fixed, fixed, scroll, scroll;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
main, section, article, figure { min-width: 0; }
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(255, 250, 240, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(83, 70, 50, .22);
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}
.brand .mark {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  overflow: hidden;
  border: 1px solid rgba(40, 96, 74, .32);
  border-radius: 14px;
  background: linear-gradient(145deg, #eff2df, #e2ead8);
  box-shadow: 0 6px 14px rgba(40, 96, 74, .15);
}
.brand .mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
}
.brandText { display: grid; line-height: 1.15; }
.brandKicker {
  margin-bottom: 1px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--green);
}
.brandTitle {
  display: flex;
  align-items: baseline;
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -.045em;
}
.brandTitle span:last-child { color: var(--green); }

.headerActions, .authArea { display: flex; align-items: center; gap: 10px; }
.headerActions { flex-shrink: 0; }
.languagePicker { position: relative; display: block; }
.languagePicker select {
  min-height: 40px;
  padding: 7px 30px 7px 11px;
  border: 1px solid rgba(83, 70, 50, .25);
  border-radius: 11px;
  background: rgba(255, 248, 232, .8);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.languagePicker select:focus-visible {
  outline: 3px solid rgba(199, 72, 114, .28);
  outline-offset: 2px;
}
.userChip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid rgba(83, 70, 50, .25);
  border-radius: 999px;
  background: var(--hanji);
}
.userChip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.userChip b { font-size: 14px; }
.textBtn {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  padding: 6px;
}

/* ---------- buttons ---------- */
.primaryBtn {
  border: 1px solid rgba(20, 45, 35, .5);
  border-radius: 12px;
  background: var(--green);
  color: #fdfbf3;
  font-weight: 700;
  padding: 10px 18px;
  box-shadow: 0 8px 22px rgba(40, 96, 74, .28);
  min-height: 44px;
}
.primaryBtn:hover { filter: brightness(1.06); }
.primaryBtn, .ghostBtn, .feature, .storyItem { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.primaryBtn:active, .ghostBtn:active { transform: translateY(1px) scale(.99); }
button:focus-visible, a:focus-visible {
  outline: 3px solid rgba(199, 72, 114, .34);
  outline-offset: 3px;
}
.primaryBtn.big { padding: 14px 26px; font-size: 17px; }
.ghostBtn {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border: 1px solid rgba(83, 70, 50, .35);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 248, 232, .7);
  font-weight: 600;
}
.ghostBtn:hover { background: var(--hanji); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 90px) clamp(20px, 5vw, 56px) 30px;
}
.heroCopy, .heroArt { min-width: 0; }
.kicker {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker.center { text-align: center; }
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.18;
  letter-spacing: -.01em;
}
.lead {
  margin: 18px 0 26px;
  font-size: 17px;
  line-height: 1.7;
  color: #4c473b;
  max-width: 34em;
}
.lead b { color: var(--green); }
.heroActions { display: flex; flex-wrap: wrap; gap: 12px; }
.heroPoints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.heroPoints li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(40, 96, 74, .2);
  border-radius: 999px;
  background: rgba(226, 234, 216, .72);
  color: #315b49;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.heroPoints li::before {
  content: "✓";
  font-size: 11px;
  font-weight: 900;
}
.heroNote { margin-top: 16px; color: var(--muted); font-size: 13px; }

.heroArt {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 70, 50, .22);
  border-radius: 22px;
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.heroArt img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* ---------- comic ---------- */
.comicSection, .storySection, .features, .detailSection {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) clamp(20px, 5vw, 56px) 10px;
}
.comicSection h2, .storySection h2, .features h2, .detailSection h2, .cta h2 {
  text-align: center;
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 30px;
}

/* ---------- quick proof ---------- */
.proofSection {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(1060px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 12px;
  border: 1px solid rgba(40, 96, 74, .18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 20%, rgba(255,255,255,.78), transparent 30%),
    linear-gradient(135deg, rgba(226, 234, 216, .92), rgba(241, 231, 210, .72));
  box-shadow: 0 14px 38px rgba(42, 34, 22, .09);
}
.proofItem {
  --proof-accent: #28604a;
  --proof-card: rgba(255, 250, 240, .88);
  position: relative;
  min-width: 0;
  min-height: 112px;
  padding: 20px 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(83, 70, 50, .18);
  border-radius: 17px;
  background: var(--proof-card);
  box-shadow: 0 7px 18px rgba(42, 34, 22, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.proofItem:nth-child(2) { --proof-accent: #3f7180; --proof-card: rgba(240, 247, 245, .9); }
.proofItem:nth-child(3) { --proof-accent: #b34b70; --proof-card: rgba(255, 244, 238, .9); }
.proofItem:nth-child(4) { --proof-accent: #9b6a28; --proof-card: rgba(255, 248, 222, .9); }
.proofItem:hover {
  z-index: 1;
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--proof-accent) 36%, transparent);
  box-shadow: 0 13px 28px rgba(42, 34, 22, .11);
}
.proofItem::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -32px;
  width: 86px;
  height: 86px;
  border: 1px solid color-mix(in srgb, var(--proof-accent) 13%, transparent);
  border-radius: 50%;
}
.proofNo {
  position: absolute;
  top: 17px;
  right: 15px;
  color: color-mix(in srgb, var(--proof-accent) 48%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.proofCopy strong {
  display: block;
  margin: 22px 0 5px;
  color: var(--proof-accent);
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.proofCopy span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
}
.comicFrame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 70, 50, .25);
  border-radius: 16px;
  background: #f8efd8;
  box-shadow: var(--shadow);
}
.comicSheet {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #f8efd8 url("/assets/familymap-cat-comic.webp") center / cover no-repeat;
}
.comicCaption {
  position: absolute;
  margin: 0;
  width: 46%;
  height: 19%;
  padding: clamp(8px, 1.75vw, 22px) clamp(8px, 1.6vw, 20px) 0;
  text-align: center;
  font-size: clamp(10px, 2.1vw, 26px);
  font-weight: 800;
  line-height: 1.32;
  color: var(--ink);
  text-wrap: balance;
  word-break: keep-all;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 250, 240, .95),
    1px 0 0 rgba(255, 250, 240, .82),
    -1px 0 0 rgba(255, 250, 240, .82);
}
.comicCaption b { color: var(--green); }
.caption1 { top: 2.5%; left: 2%; }
.caption2 { top: 2.5%; right: 2%; }
.caption3,
.caption4 {
  top: 50.4%;
  font-size: clamp(9px, 1.65vw, 21px);
  line-height: 1.25;
}
.caption3 { left: 2%; }
.caption4 { right: 2%; }
.comicMobile, .comicHint { display: none; }

/* ---------- story guide entry / dialog ---------- */
.storyGuideEntry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(920px, calc(100% - 40px));
  margin: 42px auto 0;
  padding: 18px 20px 18px 22px;
  border: 1px solid rgba(40, 96, 74, .24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 50%, rgba(255,255,255,.76), transparent 28%),
    linear-gradient(135deg, rgba(226, 234, 216, .9), rgba(255, 250, 240, .86));
  box-shadow: 0 12px 30px rgba(42, 34, 22, .08);
}
.storyGuideCopy { display: grid; min-width: 0; }
.storyGuideCopy > span {
  margin-bottom: 4px;
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}
.storyGuideCopy strong {
  color: var(--green);
  font-size: 18px;
  line-height: 1.35;
}
.storyGuideCopy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.storyGuideBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid rgba(20, 45, 35, .42);
  border-radius: 13px;
  background: var(--green);
  color: #fdfbf3;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(40, 96, 74, .22);
}
.storyGuideBtn:hover { filter: brightness(1.07); }
.storyGuideBtn span { font-size: 16px; transition: transform .18s ease; }
.storyGuideBtn:hover span { transform: translateX(3px); }

dialog.storyGuideDialog {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 1px solid rgba(83, 70, 50, .3);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 0 28px 90px rgba(25, 27, 21, .35);
}
dialog.storyGuideDialog::backdrop {
  background: rgba(25, 27, 21, .56);
  backdrop-filter: blur(4px);
}
.storyGuideModal { position: relative; min-height: 100%; }
.storyGuideClose {
  position: sticky;
  z-index: 5;
  top: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px auto;
  border: 1px solid rgba(83, 70, 50, .28);
  border-radius: 13px;
  background: rgba(255, 250, 240, .94);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(42, 34, 22, .12);
  backdrop-filter: blur(8px);
}
.storyGuideDialog .storySection {
  width: 100%;
  max-width: none;
  padding: 48px clamp(18px, 4vw, 44px) 40px;
}

/* ---------- story ---------- */
.storyList {
  display: grid;
  gap: 18px;
}
.storyItem {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  padding: clamp(14px, 2.5vw, 24px);
  border: 1px solid rgba(83, 70, 50, .22);
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.78), rgba(255,255,255,.24)),
    var(--surface);
  box-shadow: 0 12px 34px rgba(42, 34, 22, .1);
}
.storyItem.reverse .storyArt { order: 2; }
.storyItem.reverse .storyCopy { order: 1; }
.storyArt {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #f8efd8;
}
.storyArt img {
  display: block;
  width: 100%;
  height: auto;
}
.storyArt figcaption {
  position: absolute;
  top: 6.5%;
  left: 5%;
  right: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.56em;
  text-align: center;
  font-size: clamp(15px, 2vw, 24px);
  line-height: 1.28;
  font-weight: 900;
  color: var(--green);
  word-break: keep-all;
  text-shadow:
    0 1px 0 rgba(255, 250, 240, .95),
    1px 0 0 rgba(255, 250, 240, .82),
    -1px 0 0 rgba(255, 250, 240, .82);
}
.storyArt.plain figcaption { display: none; }
.storyCopy {
  min-width: 0;
}
.stepNo {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--pink);
}
.storyCopy h3 {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.25;
  margin-bottom: 12px;
  word-break: keep-all;
}
.storyCopy p:last-child {
  margin: 0;
  color: #4c473b;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
}

/* ---------- features ---------- */
.featureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  padding: 20px 18px;
  border: 1px solid rgba(83, 70, 50, .22);
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(255,255,255,.8), rgba(255,255,255,.25)),
    var(--surface);
  box-shadow: 0 10px 26px rgba(42, 34, 22, .08);
}
.feature img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  border: 1.5px solid rgba(43, 39, 33, .45);
  background: var(--hanji);
}
.feature h3 { margin: 14px 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- feature details ---------- */
.detailSection { max-width: 1180px; }
.detailIntro {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}
.detailIntro h2 { margin-bottom: 14px; line-height: 1.28; word-break: keep-all; }
.detailIntro > p:last-child {
  margin: 0 auto;
  max-width: 42em;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  word-break: keep-all;
}
.detailGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.detailCard {
  position: relative;
  overflow: hidden;
  padding: 10px 10px 20px;
  border: 1px solid rgba(83, 70, 50, .22);
  border-radius: 18px;
  background: rgba(255, 250, 240, .78);
  box-shadow: 0 12px 30px rgba(42, 34, 22, .08);
}
.detailCard.featured {
  border-color: rgba(40, 96, 74, .38);
  background: linear-gradient(150deg, rgba(238, 243, 225, .98), rgba(255, 250, 240, .9));
}
.detailCard::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(40, 96, 74, .1);
  border-radius: 50%;
  pointer-events: none;
}
.detailComic {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 13px;
  background: #f8efd8;
}
.detailComic img {
  width: 100%;
  aspect-ratio: 592 / 887;
  object-fit: cover;
}
.detailComic figcaption {
  position: absolute;
  top: 5%;
  left: 7%;
  right: 7%;
  text-align: center;
}
.detailNo {
  margin: 0 0 7px;
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.detailCard h3 {
  min-height: 2.6em;
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  color: var(--green);
  text-align: center;
  word-break: keep-all;
  text-shadow: 0 1px 0 rgba(255, 250, 240, .96);
}
.detailCard > p:not(.detailNo) {
  margin: 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}
.detailCard ul {
  display: grid;
  gap: 7px;
  margin: 18px 8px 0;
  padding: 15px 0 0;
  border-top: 1px dashed rgba(83, 70, 50, .26);
  list-style: none;
}
.detailCard li {
  position: relative;
  padding-left: 16px;
  color: #4c473b;
  font-size: 12px;
  font-weight: 700;
}
.detailCard li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 900;
}
.useStrip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(83, 70, 50, .2);
  border-radius: 16px;
  background: rgba(241, 231, 210, .58);
}
.useStrip span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 250, 240, .9);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.detailHint { display: none; }

/* ---------- cta / footer ---------- */
.cta {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 90px) 20px 70px;
  text-align: center;
}
.cta img {
  width: 84px;
  border-radius: 16px;
  border: 1.5px solid rgba(43, 39, 33, .5);
  background: var(--hanji);
}
.cta h2 { margin: 16px 0 8px; }
.cta p { margin: 0 0 22px; color: var(--muted); }
.siteFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(20px, 5vw, 56px);
  border-top: 1px solid rgba(83, 70, 50, .22);
  color: var(--muted);
  font-size: 13px;
}
.siteFooter span:last-child {
  letter-spacing: 0;
  color: rgba(156, 128, 71, .55);
}

/* ---------- login modal ---------- */
dialog#loginDialog {
  border: 1px solid rgba(83, 70, 50, .3);
  border-radius: 32px;
  padding: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
  width: min(620px, calc(100vw - 40px));
  overflow: hidden;
}
dialog#loginDialog::backdrop { background: rgba(25, 27, 21, .45); }
.loginModal {
  position: relative;
  padding: 48px 38px 38px;
  text-align: center;
}
.closeBtn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(83, 70, 50, .25);
  border-radius: 16px;
  background: transparent;
  font-size: 26px;
  line-height: 1;
}
.loginCat {
  width: 112px;
  display: block;
  margin: 0 auto 24px 0;
  border-radius: 24px;
  border: 1.5px solid rgba(43, 39, 33, .5);
  background: var(--hanji);
}
.loginModal h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.loginDesc {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  word-break: keep-all;
}
.loginButtons {
  width: min(400px, 100%);
  display: grid;
  justify-items: stretch;
  gap: 14px;
  margin: 0 auto;
}
.googleBtnHost {
  width: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.googleBtnHost:not(:empty) { min-height: 44px; }
.googleBtnHost > div,
.googleBtnHost iframe {
  margin-right: auto !important;
  margin-left: auto !important;
}
.devPicker {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(83, 70, 50, .35);
}
.devPickerTitle {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.devAccounts { display: grid; gap: 8px; }
.devAccount {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(83, 70, 50, .25);
  border-radius: 12px;
  background: var(--hanji);
  text-align: left;
}
.devAccount:hover { background: var(--green-2); border-color: rgba(40, 96, 74, .45); }
.devAccount img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(83, 70, 50, .25);
  background: var(--surface-2);
}
.devAccountInfo { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.devAccountInfo b { font-size: 14px; }
.devAccountInfo small {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.roleBadge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid rgba(83, 70, 50, .2);
  border-radius: 999px;
  padding: 3px 9px;
}
.roleBadge.dev { color: #fdfbf3; background: var(--green); border-color: rgba(20, 45, 35, .5); }
.kakaoBtn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(83, 70, 50, .2);
  border-radius: 10px;
  background: #fee500;
  color: #191600;
  font-weight: 700;
  opacity: .55;
}
.kakaoSymbol {
  font-size: 9px;
  font-weight: 900;
  background: #191600;
  color: #fee500;
  border-radius: 6px;
  padding: 3px 4px;
}
.soonBadge {
  font-size: 11px;
  font-weight: 800;
  color: var(--pink);
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}
.loginNote { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--hanji);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 60;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .storyItem, .storyItem.reverse {
    grid-template-columns: 1fr;
  }
  .storyItem.reverse .storyArt,
  .storyItem.reverse .storyCopy {
    order: initial;
  }
  .featureGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proofSection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detailGrid { grid-template-columns: minmax(0, 1fr); }
  .detailCard h3 { min-height: 0; }
}
@media (max-width: 560px) {
  body {
    background:
      radial-gradient(circle at 92% 8%, rgba(116, 132, 76, .14), transparent 24%),
      radial-gradient(circle at 18px 18px, rgba(44, 40, 30, .04) 1px, transparent 1.5px),
      #f1ecdf;
    background-size: 100% 100%, 30px 30px, auto;
    background-attachment: scroll;
  }
  .siteHeader {
    gap: 10px;
    min-height: 64px;
    padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-right));
    background: rgba(255, 250, 240, .94);
    backdrop-filter: blur(14px);
  }
  .brand { gap: 9px; min-width: 0; }
  .brand .mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
  }
  .brandKicker { display: none; }
  .brandTitle { font-size: 18px; white-space: nowrap; }
  html[lang="ja"] .brandTitle { display: none; }
  .headerActions { gap: 6px; min-width: 0; }
  .languagePicker select {
    width: 76px;
    min-height: 40px;
    padding: 7px 22px 7px 8px;
    font-size: 11px;
  }
  .authArea { gap: 7px; min-width: 0; }
  .authArea > .primaryBtn { padding: 9px 14px; white-space: nowrap; }
  .authArea .userChip, .authArea .textBtn { display: none; }

  .hero {
    gap: 24px;
    padding: 42px 20px 20px;
  }
  .kicker { margin-bottom: 8px; font-size: 11px; }
  .hero h1 {
    max-width: 9.5em;
    font-size: clamp(34px, 10.2vw, 42px);
    line-height: 1.13;
    letter-spacing: -.035em;
    word-break: keep-all;
  }
  .lead {
    margin: 18px 0 22px;
    max-width: none;
    font-size: 15px;
    line-height: 1.72;
    word-break: keep-all;
  }
  .heroActions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .heroActions .primaryBtn.big, .heroActions .ghostBtn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
    border-radius: 15px;
    font-size: 16px;
  }
  .heroPoints { gap: 6px; margin-top: 15px; }
  .heroPoints li { padding: 6px 9px; font-size: 11px; }
  .heroNote { margin: 13px 0 0; font-size: 11px; line-height: 1.55; }
  .heroArt {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(42, 34, 22, .14);
  }
  .heroArt img { aspect-ratio: 4 / 3; object-position: 56% center; }

  .proofSection {
    gap: 8px;
    width: calc(100% - 32px);
    margin-top: 22px;
    padding: 8px;
    border-radius: 20px;
  }
  .proofItem { min-height: 108px; padding: 13px 12px 12px; border-radius: 15px; }
  .proofNo { top: 14px; right: 11px; font-size: 9px; }
  .proofCopy strong { margin-top: 20px; font-size: 16px; }
  .proofCopy span { font-size: 10px; line-height: 1.4; }

  .comicSection, .storySection, .features, .detailSection {
    width: 100%;
    padding: 54px 16px 0;
  }
  .comicSection h2, .storySection h2, .features h2, .detailSection h2, .cta h2 {
    margin-bottom: 22px;
    font-size: 25px;
    line-height: 1.28;
    word-break: keep-all;
  }
  .comicFrame { display: none; }
  .comicMobile {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 340px);
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .comicMobile::-webkit-scrollbar { display: none; }
  .comicCard {
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(83, 70, 50, .22);
    border-radius: 20px;
    background: rgba(255, 250, 240, .9);
    box-shadow: 0 12px 28px rgba(42, 34, 22, .1);
  }
  .comicCard img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
  .comicCard figcaption {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 34px;
    pointer-events: none;
  }
  .comicCard figcaption span {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 10px;
    background: var(--green-2);
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
  }
  .comicCard figcaption strong {
    max-width: 15em;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.28;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 250, 240, .95);
    word-break: keep-all;
  }
  .comicHint {
    display: block;
    margin: 4px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }
  .comicHint span { color: var(--green); }

  .storyGuideEntry {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    width: calc(100% - 32px);
    margin-top: 34px;
    padding: 17px;
    border-radius: 19px;
  }
  .storyGuideCopy strong { font-size: 17px; }
  .storyGuideCopy small { font-size: 11px; }
  .storyGuideBtn { width: 100%; min-height: 48px; }
  dialog.storyGuideDialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
  }
  .storyGuideClose { top: 9px; margin: 9px 9px -49px auto; }
  .storyGuideDialog .storySection { padding: 46px 10px 18px; }

  .storyList { gap: 14px; }
  .storyItem {
    gap: 18px;
    padding: 12px 12px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgba(42, 34, 22, .08);
  }
  .storyArt { width: 100%; border-width: 1px; border-radius: 13px; }
  .storyCopy { padding: 0 5px; }
  .stepNo { margin-bottom: 6px; }
  .storyCopy h3 { font-size: 20px; }
  .storyCopy p:last-child { font-size: 14px; line-height: 1.7; }

  .featureGrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .feature {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 15px;
    padding: 12px;
    border-radius: 18px;
  }
  .feature img {
    grid-row: 1 / span 2;
    width: 92px;
    height: 92px;
    align-self: center;
    border-radius: 12px;
  }
  .feature h3 { margin: 3px 0 5px; font-size: 16px; line-height: 1.35; }
  .feature p { font-size: 12px; line-height: 1.55; }

  .detailIntro { margin-bottom: 20px; }
  .detailIntro > p:last-child { font-size: 13px; line-height: 1.7; }
  .detailGrid { gap: 10px; }
  .detailGrid {
    grid-auto-flow: column;
    grid-auto-columns: min(84vw, 340px);
    grid-template-columns: none;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .detailGrid::-webkit-scrollbar { display: none; }
  .detailCard { padding: 9px 9px 18px; border-radius: 20px; scroll-snap-align: start; }
  .detailComic { margin-bottom: 16px; border-radius: 14px; }
  .detailCard h3 { font-size: 18px; }
  .detailCard > p:not(.detailNo) { font-size: 13px; line-height: 1.65; }
  .detailCard ul { margin-top: 14px; padding-top: 13px; }
  .detailHint {
    display: block;
    margin: 4px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
  }
  .detailHint span { color: var(--green); }
  .useStrip { gap: 6px; padding: 12px; border-radius: 15px; }
  .useStrip span { padding: 6px 9px; font-size: 10px; }

  .cta {
    width: calc(100% - 32px);
    margin: 54px 16px 24px;
    padding: 30px 18px;
    border: 1px solid rgba(83, 70, 50, .2);
    border-radius: 24px;
    background: rgba(255, 250, 240, .82);
    box-shadow: 0 14px 38px rgba(42, 34, 22, .1);
  }
  .cta img { width: 72px; margin: 0 auto; }
  .cta h2 { margin: 14px auto 8px; }
  .cta p { font-size: 14px; line-height: 1.6; word-break: keep-all; }
  .cta .primaryBtn.big { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 15px; font-size: 16px; }
  .siteFooter {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
    font-size: 12px;
  }

  dialog#loginDialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }
  .loginModal { max-height: calc(100dvh - 26px); overflow-y: auto; padding: 24px 18px 22px; }
  .closeBtn { top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 13px; font-size: 22px; }
  .loginCat { width: 82px; margin-bottom: 18px; border-radius: 18px; }
  .loginModal h2 { font-size: 26px; }
  .loginDesc { margin-bottom: 22px; font-size: 14px; }
  .loginButtons, .googleBtnHost, .kakaoBtn { width: 100%; }
  .kakaoBtn { max-width: none; }
  .toast { bottom: calc(18px + env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); text-align: center; }
}

@media (max-width: 360px) {
  .siteHeader { padding-left: 12px; padding-right: 12px; }
  .brandTitle { font-size: 16px; }
  .languagePicker select { width: 68px; padding-left: 6px; font-size: 10px; }
  .authArea > .primaryBtn { padding-inline: 11px; font-size: 13px; }
  .hero { padding-left: 16px; padding-right: 16px; }
  .heroPoints li { font-size: 10px; }
  .comicSection, .storySection, .features, .detailSection { padding-left: 12px; padding-right: 12px; }
  .storyGuideEntry { width: calc(100% - 24px); }
  .comicMobile { margin-inline: -12px; padding-inline: 12px; scroll-padding-inline: 12px; }
  .feature { grid-template-columns: 82px minmax(0, 1fr); column-gap: 12px; }
  .feature img { width: 82px; height: 82px; }
}

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

html[lang="ja"] .lead,
html[lang="ja"] .storyCopy h3,
html[lang="ja"] .storyCopy p:last-child,
html[lang="ja"] .feature p,
html[lang="ja"] .proofCopy span,
html[lang="ja"] .detailIntro > p:last-child,
html[lang="ja"] .detailCard h3,
html[lang="ja"] .detailCard > p:not(.detailNo),
html[lang="ja"] .comicCaption,
html[lang="ja"] .comicCard figcaption strong,
html[lang="ja"] .cta h2,
html[lang="ja"] .cta p {
  word-break: normal;
  overflow-wrap: anywhere;
}
