/* 식물 다마고치 — 종이 콜라주 스타일
   홈 화면의 크기 단위 cqw = "장면(scene) 너비의 1%". 시안(768px 너비) 기준 1px ≈ 0.13cqw */

:root {
  --paper: #f3ecdf;
  --paper-dark: #e6dcc8;
  --band: #efe8d9;            /* 홈 아래쪽 크림색 띠 */
  --ink: #3b332b;
  --ink-soft: #7a6f62;
  --card: #fffaf0;
  --shadow: 2px 3px 0 rgba(0, 0, 0, .25);
  --pot: #a9673f;
  --tab-h: 48px;
  --font: "Crimson Text", Georgia, "Times New Roman", serif;
}

/* 글꼴: 제목·라벨·버튼은 SemiBold, 본문은 Regular */
h1, h2, h3, button, .label-box, .count, .dex-count, .dex-label, .setting-row, .test-summary { font-weight: 600; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: #d9cfbd;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; cursor: pointer; }

/* 폰 세로 화면 기준, 데스크톱에서는 가운데 */
#app {
  position: relative;
  container-type: size;             /* 탭 위치 계산에 화면 크기를 쓰기 위해 */
  max-width: 430px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 12px;
  padding-top: calc(var(--tab-h) + 4px + env(safe-area-inset-top));   /* 위쪽 탭 아이콘 자리 */
}
.screen.is-active { display: flex; flex-direction: column; }

/* 크림색 종이 + 그레인 텍스처 */
.screen.paper {
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.screen-title { margin: 4px 0 12px; font-size: 26px; }
.hint { margin: 14px 2px; font-size: 13px; color: var(--ink-soft); }

/* ================= 홈 ================= */

#screen-home {
  padding: 0;
  overflow: hidden;
  background: var(--band);
  align-items: center;
  justify-content: flex-start;
  container-type: size;
}

/* 홈 기둥: 배경 그림(768×1344) 비율로 화면에 들어가는 가장 큰 너비, 높이는 화면 끝까지 */
.home-col {
  position: relative;
  flex: none;
  width: min(100cqw, calc(100cqh * 768 / 1344));
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  /* 위치 맞춤: 화면이 그림보다 길어서 남는 높이(--spare)가 클수록 전체가 더 아래로 내려간다.
     (204.8cqw = 그림 175 + 버튼 띠 29.8)  앞 숫자 = 기본으로 내리는 양, 곱하는 숫자 = 남는 높이를 얼마나 쓸지 */
  --spare: (100cqh - 204.8cqw);
  --room-shift: clamp(0px, calc(10cqw + var(--spare) * 0.53), 34cqw);    /* 창문·화분·선반·수치 박스 */
  --label-shift: clamp(0px, calc(4cqw + var(--spare) * 0.3), 16cqw);     /* Day 라벨·말풍선·안내 글 */
}

/* 벽지 이어 붙이기: 장면 위아래에 같은 그림을 뒤집어 놓는다 (이음매가 자연스럽다) */
.scene-ext {
  position: absolute;
  left: 0;
  top: calc(175cqw + var(--room-shift));     /* 장면 높이 = 너비의 1.75배 */
  width: 100%;
  height: 175cqw;
  transform: scaleY(-1);
  pointer-events: none;
}
.scene-ext.is-top { top: calc(var(--room-shift) - 175cqw); }

/* 장면: 배경 그림 비율 그대로 */
.scene {
  position: relative;
  z-index: 1;                       /* 위로 삐져나온 라벨이 이어 붙인 벽지에 가리지 않게 */
  margin-top: var(--room-shift);
  width: 100%;
  aspect-ratio: 768 / 1344;
  container-type: inline-size;
  background: linear-gradient(#b7c7ae 0 83%, var(--band) 83%);   /* 배경 그림이 없을 때 */
}
.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* 위쪽 라벨 2개 (시안 y 122~188): 돌봄 버튼과 같은 종이 질감의 입체 박스.
   글자 길이에 맞춰 폭이 늘어나고 좌우 여백 30px(=3.9cqw) */
.label-box {
  position: absolute;
  top: calc(15.9cqw + var(--label-shift) - var(--room-shift));   /* 라벨은 창문보다 덜 내려간다 */
  min-height: 8.6cqw;
  padding: 1.4cqw 3.9cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.75cqw;
  line-height: 1.2;
  color: #3a332c;
}
.label-box .paper {
  position: absolute;
  inset: 0;
  border-radius: 3.4cqw;                                   /* 반지름 26px */
  /* 줄인 그림(WebP)을 먼저 쓰고, 없으면 원본 PNG */
  background: url("parts_web/paper_tex.webp") center / 34cqw auto repeat,
              #f1ece0 url("parts/paper_tex.png") center / 34cqw auto repeat;
  box-shadow: inset 0 0 1.5cqw rgba(110, 90, 60, .38),      /* 가장자리 안쪽으로 살짝 어둡게 */
              inset 0 -.5cqw .9cqw rgba(110, 90, 60, .2);
  /* 가장자리 울퉁불퉁 + 바깥 그림자 5px 7px 10px */
  filter: url(#rough-edge) drop-shadow(.65cqw .9cqw 1.3cqw rgba(40, 30, 20, .45));
}
.label-text { position: relative; }
.day-box { left: 5.9%; white-space: nowrap; }
.day-box .sep { margin: 0 1.2cqw; }
.bubble { right: 5.6%; max-width: 50%; text-align: center; }

/* Beginner 안내 글 (라벨 아래, 창문 위) */
.guide-box {
  position: absolute;
  left: 6.4%;
  top: calc(26.8cqw + var(--label-shift) - var(--room-shift));
  padding: .8cqw 2.2cqw;
  border-radius: 1.6cqw;
  background: rgba(244, 238, 226, .86);
  box-shadow: .3cqw .5cqw .8cqw rgba(40, 30, 20, .25);
  font-size: 2.9cqw;
  line-height: 1.35;
  font-weight: 600;
  color: #4a4034;
}
.guide-box .is-alert { color: #a8442c; }

/* Beginner 게이지: 선반 다리 아래에 가로로 3개.
   화면이 짧아 자리가 없으면 돌봄 버튼 띠 바로 위까지만 내려간다 */
.gauges {
  position: absolute;
  left: 14%;
  right: 14%;
  top: min(150cqw, calc(100cqh - 29.8cqw - var(--room-shift) - 9.6cqw));   /* 150cqw를 키우면 더 내려간다 */
  display: flex;
  gap: 3cqw;
  padding: 1cqw 2.4cqw 1.6cqw;
  border-radius: 1.6cqw;
  background: rgba(244, 238, 226, .9);
  box-shadow: .3cqw .5cqw .8cqw rgba(40, 30, 20, .25);
  font-size: 2.6cqw;
  font-weight: 600;
  line-height: 1.3;
  color: #4a4034;
}
.gauge { flex: 1; min-width: 0; }
.gauge-bar {
  position: relative;
  height: 1.7cqw;
  border-radius: 1cqw;
  background: #d9cfba;
  overflow: hidden;
}
.gauge-bar i { display: block; height: 100%; width: 0; background: #7fa864; transition: width .25s; }
.gauge-bar::after {                 /* 과잉 기준 눈금 (8회 지점) */
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: .35cqw;
  background: #5c5145;
}
.gauge.is-over { color: #a8442c; }
.gauge.is-over .gauge-bar i { background: #c9553a; }

/* 식물 영역: 장면 너비의 정사각형. PART_LAYOUT의 %는 이 영역 기준 */
.plant-stage {
  position: absolute;
  left: 0;
  top: 21.43%;              /* 시안 y 288 */
  width: 100%;
  aspect-ratio: 1 / 1;
  container-type: inline-size;
  pointer-events: none;
}

/* 화분 + 식물 전체: 색 맞춤(채도 88%, 베이지 8%) + 투사 그림자(오른쪽 9px, 아래 6px, 블러 7px, 32%) */
.plant-all {
  position: absolute;
  inset: 0;
  filter: saturate(.88) sepia(.08) drop-shadow(1.17cqw .78cqw .91cqw rgba(30, 20, 10, .32));
}
.plant-all { transform-origin: 50% 80%; }      /* 쓰다듬을 때 화분 밑동을 축으로 기운다 */

/* 접지 그림자: 화분 바닥 아래 납작한 타원 (화분 폭의 85%) */
.ground-shadow {
  position: absolute;
  left: 50.1%;
  top: 86.4%;
  width: 17.7%;
  height: 2.3%;
  transform: translate(-50%, -50%);
  background: #3a2413;
  border-radius: 50%;
  filter: blur(.91cqw);
  opacity: .8;
}

/* 조각 하나: 중심 좌표(left/top)와 너비(width)는 render.js가 넣는다 */
.part {
  position: absolute;
  transform: translate(-50%, -50%);
}
.part-pose { position: relative; transition: transform .5s; }
.part img { display: block; width: 100%; height: auto; }
/* 스톱모션(.sm): _a/_b 두 장을 번갈아 보여준다 */
.sm .fb { position: absolute; left: 0; top: 0; opacity: 0; }
.sm.has-b.show-b .fb { opacity: 1; }
.sm.has-b.show-b .fa { opacity: 0; }
.part.is-fallback.show-b .part-pose { translate: .15cqw .12cqw; }   /* 대체 도형도 살짝 흔들림 */

/* 식물 몸통 (화분 제외) */
.plant-body {
  position: absolute;
  inset: 0;
  transform-origin: 50% 70%;          /* 줄기 밑동 */
  transition: filter .6s, transform .6s;
  --droop: 0deg;
}
.plant-body.is-ghost { opacity: .6; }                 /* 유령형: 화분 빼고 반투명 */
.part-leaf .part-pose { transform: rotate(calc(var(--droop) * var(--side, 1))); }
.part-leaf.left .part-pose { transform-origin: 85% 60%; }
.part-leaf.right .part-pose { transform-origin: 15% 60%; }

/* ----- 기분: 표정 대신 움직임 ----- */
.plant-body[data-mood="normal"] { animation: sway1 4s ease-in-out infinite; }
.plant-body[data-mood="happy"] { animation: bounce 2s ease-in-out infinite; }
.plant-body[data-mood="happy"] .part-leaf .part-pose,
.plant-body[data-mood="happy"] .part-flower .part-pose,
.plant-body[data-mood="happy"] .part-core .part-pose { animation: sway3 2s ease-in-out infinite; }
@keyframes sway1 { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
@keyframes sway3 { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.26cqw); } }

.plant-body[data-mood="thirsty"] { transform: rotate(5deg); filter: saturate(.7); --droop: 8deg; }
.plant-body[data-mood="wilt"] { transform: rotate(12deg); filter: saturate(.35); --droop: 20deg; }
.plant-body[data-mood="wilt"] .part-flower .part-pose,
.plant-body[data-mood="wilt"] .part-core .part-pose { transform: scaleY(.85); }

/* ----- 과잉 구분: 과습(파란 기) / 화상(갈색) / 답답함(세로로 눌림) ----- */
.plant-body[data-mood="thirsty"][data-over="water"] { filter: saturate(.7) hue-rotate(35deg); }
.plant-body[data-mood="wilt"][data-over="water"] { filter: saturate(.4) hue-rotate(35deg); }
.plant-body[data-mood="thirsty"][data-over="light"] { filter: sepia(.55) saturate(1.2); }
.plant-body[data-mood="wilt"][data-over="light"] { filter: sepia(.95) brightness(.78); }
.plant-body[data-mood="thirsty"][data-over="love"] { transform: rotate(5deg) scaleY(.9); }
.plant-body[data-mood="wilt"][data-over="love"] { transform: rotate(12deg) scaleY(.9); }

/* 눈알 꽃심 깜빡임: 세로 0.1배로 납작해졌다 돌아옴 */
.part-core.is-eye .part-pose { transition: transform .07s; }
.part-core.is-eye.blink .part-pose { transform: scaleY(.1) !important; animation: none !important; }

/* ----- 압화 (죽음 후): 화분 없이 액자 위에 납작하게 ----- */
.plant-stage.is-pressed .plant-body,
.thumb.is-pressed .plant-body {
  animation: none;
  filter: sepia(.9) saturate(.7) brightness(.97);
}
.plant-stage.is-pressed .plant-body { transform: translateY(-8%) rotate(-6deg) scale(.82); transform-origin: 50% 50%; }
.plant-stage.is-pressed .plant-all { filter: drop-shadow(.6cqw .5cqw .7cqw rgba(30, 20, 10, .3)); }

/* ----- 대체 도형 (PNG가 없을 때) ----- */
.fb-shape { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); }
.fb-pot { background: var(--pot); clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); }
.fb-pot-front { background: var(--pot); clip-path: polygon(2% 13%, 98% 13%, 84% 100%, 16% 100%); }
.fb-stem { background: #5b8a3f; border-radius: .8cqw; }
.fb-leaf { border-radius: 50%; }
.fb-sprig { display: flex; gap: 4%; }
.fb-sprig i { flex: 1; border-radius: 50%; background: #6a9a4b; }
.fb-sprig i:first-child { transform: rotate(25deg); }
.fb-sprig i:last-child { transform: rotate(-25deg); }
.fb-flower { border-radius: 50%; box-shadow: inset 0 0 0 1cqw rgba(255, 255, 255, .5); }
.fb-emoji { line-height: 1; white-space: nowrap; }
.fb-frame { background: #efe3c8; border: .8cqw double #9a8866; }

/* ----- 돌봄 애니메이션 (움직임은 render.js가 넣는다) ----- */
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.anim-actor {
  position: absolute;
  left: 0;
  top: 0;
  margin: -15cqw 0 0 -15cqw;        /* 좌표가 그림 한가운데를 가리키게 */
  width: 30cqw;
  filter: drop-shadow(1cqw .8cqw .8cqw rgba(30, 20, 10, .3));
}
.anim-actor img { display: block; width: 100%; height: auto; }
.anim-actor .anim-emoji { display: block; text-align: center; font-size: 20cqw; line-height: 30cqw; }
.fx-glow { position: absolute; inset: 0; background: #ffd66b; opacity: 0; }
.fx-ray {
  position: absolute;
  left: 50cqw;
  top: 36cqw;
  width: 3cqw;
  height: 52cqw;
  margin-left: -1.5cqw;
  background: linear-gradient(rgba(255, 236, 160, .85), rgba(255, 236, 160, 0));
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  opacity: 0;
}
.fx-drop {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.8cqw;
  height: 2.8cqw;
  margin: -1.4cqw 0 0 -1.4cqw;
  background: #5fa9d6;
  border-radius: 0 55% 55% 55%;
  box-shadow: inset .3cqw .3cqw 0 rgba(255, 255, 255, .45);
  opacity: 0;
}

/* ----- 아래 띠: 크림색 종이 (시안 y 1115부터), 벽지 무늬가 아주 옅게 비친다 ----- */
/* 띠는 화면 맨 아래에 붙고, 높이는 버튼 자리만큼만. 그 위는 전부 벽지 */
.controls {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(29.8cqw + env(safe-area-inset-bottom));   /* 29.8cqw = 시안의 띠 높이(229px) */
}
.band {
  position: absolute;
  inset: 0;
  background: rgba(239, 232, 217, .94);
}
.care-area {                                       /* 버튼 자리: 화면 맨 아래 */
  position: absolute;
  left: 0;
  right: 0;
  bottom: env(safe-area-inset-bottom);
  height: 29.8cqw;
}

/* ----- 돌봄 버튼 3개 (지름 145) ----- */
.care-item {
  position: absolute;
  top: 46%;
  width: 19.6cqw;
  transform: translate(-50%, -50%);
}
.care-btn {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  filter: drop-shadow(.9cqw .9cqw .8cqw rgba(60, 45, 30, .35));
  transition: transform .12s;
}
.care-btn:active { transform: scale(.93); }
.care-btn img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.care-emoji { display: none; }
.care-btn.is-fallback { background: #f4eee2; box-shadow: inset 0 0 0 .5cqw #ddd3c0; }
.care-btn.is-fallback img { display: none; }
.care-btn.is-fallback .care-emoji { display: block; font-size: 9cqw; line-height: 19.6cqw; }
.count {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  text-align: center;
  font-size: 3cqw;
  line-height: 1.2;
  color: var(--ink-soft);
}

/* 결과 카드 (개화/죽음 후) */
.result-card {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 6%;
  padding: 2.2cqw 3.5cqw 2.6cqw;
  background: var(--card);
  border-radius: 1.6cqw;
  box-shadow: var(--shadow);
  text-align: center;
  transform: rotate(-1deg);
}
.result-card h2 { margin: 0; font-size: 4.6cqw; }
.result-card p { margin: .4cqw 0 1.6cqw; font-size: 3.2cqw; color: var(--ink-soft); }
.result-card .paper-btn { margin: 0; padding: 2cqw; font-size: 4cqw; }

/* ================= 도감 ================= */
.dex-count { margin: 0 0 12px; }
.dex-grid {
  display: grid;
  grid-template-columns: 44px repeat(5, 1fr);
  gap: 6px;
  align-items: center;
}
.dex-label { font-size: 12px; text-align: center; color: var(--ink-soft); }
.dex-label.row { text-align: left; }
.dex-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f2a25;
  color: #6e655b;
  border-radius: 4px;
  font-size: 20px;
  overflow: hidden;
}
.dex-cell.has-bloom { background: var(--card); box-shadow: var(--shadow); }
.dex-cell.has-pressed { background: #e2d3b0; box-shadow: inset 0 0 0 2px #b9a57c; }
.dex-cell.is-selected { outline: 3px solid #6a9a4b; outline-offset: 1px; }
.dex-cell:nth-child(3n) { transform: rotate(-1.5deg); }
.dex-cell:nth-child(4n + 1) { transform: rotate(1.5deg); }

/* 도감 칸 안의 작은 식물 (홈과 같은 조각을 확대해서 꽃 부분만 보여준다) */
.thumb { position: absolute; inset: 0; pointer-events: none; container-type: inline-size; }
.thumb .plant-body { animation: none; transform-origin: 50% 44%; transform: translateY(6%) scale(1.85); }
.thumb.is-seed .plant-body { transform-origin: 50% 62%; transform: translateY(-12%) scale(3); }
.thumb-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }

.dex-detail { margin-top: 14px; padding: 10px 14px; }
.dex-detail h3 { margin: 2px 0 4px; font-size: 18px; }
.dex-detail p { margin: 2px 0; font-size: 14px; color: var(--ink-soft); }
.dex-nameless { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }

/* ================= 설정 ================= */
.card {
  background: var(--card);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 4px 14px;
  margin-bottom: 14px;
  transform: rotate(-.6deg);
}
.card:nth-of-type(even) { transform: rotate(.6deg); }
.card-title { margin: 12px 0 6px; font-size: 17px; }
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  font-size: 17px;
}
.setting-row + .setting-row { border-top: 1px dashed var(--paper-dark); }
.setting-row small { color: var(--ink-soft); margin-left: 6px; }
.setting-row input[type="checkbox"] { width: 24px; height: 24px; accent-color: #6a9a4b; }

.paper-btn {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  background: var(--paper-dark);
  border: 0;
  border-radius: 6px;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, .2);
}
.paper-btn:active { translate: 1px 1px; box-shadow: none; }
.paper-btn.danger { color: #a83a2c; }
.paper-btn.primary { background: #6a9a4b; color: #fff; }

/* 개발자 도구 */
.dev-status { margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.dev-buttons { display: flex; gap: 8px; }
.dev-buttons .paper-btn { margin: 8px 0 0; padding: 12px 4px; font-size: 14px; }
.test-summary { margin: 4px 0 6px; }
.test-list { margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; line-height: 1.6; }
.test-fail { color: #a83a2c; }
.test-pending { color: var(--ink-soft); }

/* ================= 탭: 화면 위쪽에 아이콘만 ================= */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  /* 탭 아이콘도 화면이 길수록 조금 더 내려간다 */
  top: calc(env(safe-area-inset-top) + clamp(8px, calc(2cqw + (100cqh - 204.8cqw) * 0.2), 14cqw));
  height: var(--tab-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 5;
  pointer-events: none;          /* 아이콘 사이 빈 곳은 뒤 화면이 눌리게 */
}
.tab {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4eee2;                    /* 아이보리 원판 */
  box-shadow: inset 0 0 0 1.5px #e3d9c4, 2px 3px 5px rgba(40, 30, 20, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.tab-icon { font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .65; }
.tab.is-active .tab-icon { filter: none; opacity: 1; }

/* ================= 확인 창 ================= */
.modal {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(40, 32, 24, .45);
}
.modal-card {
  width: 100%;
  max-width: 300px;
  padding: 18px 18px 8px;
  background: var(--card);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
  text-align: center;
}
.modal-card p { margin: 0 0 8px; font-size: 19px; font-weight: 600; }
.modal-buttons { display: flex; gap: 10px; }

/* 모드 선택 버튼: 굵은 이름 + 설명 */
.mode-btn { padding: 12px 10px; line-height: 1.25; }
.mode-btn strong { display: block; font-size: 20px; }
.mode-btn small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-soft); }

/* Beginner 안내 카드: 옆으로 밀어 넘긴다 */
.intro-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 12px;
}
.intro-cards::-webkit-scrollbar { display: none; }
.intro-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-height: 150px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 6px;
}
.intro-card b { font-size: 34px; line-height: 1; color: #6a9a4b; }
.intro-card span { margin-top: 10px; font-size: 18px; line-height: 1.3; }
.intro-dots { display: flex; justify-content: center; gap: 8px; margin: 10px 0 2px; }
.intro-cards { cursor: pointer; }
.intro-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--paper-dark); cursor: pointer; }
.intro-dots i.is-on { background: #6a9a4b; }

/* 도감 상세의 모드 배지 */
.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--paper-dark);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

/* 움직임 줄이기 설정이면 흔들림을 끈다 (스톱모션은 render.js에서 600ms로 늦춤) */
@media (prefers-reduced-motion: reduce) {
  .plant-body[data-mood="normal"],
  .plant-body[data-mood="happy"],
  .plant-body[data-mood="happy"] .part-pose { animation: none; }
}
