/* ==========================================================
   이야기 상점 — 스크롤로 넘기는 동화책
   색은 폴더의 게임 시안(크림 종이, 나무, 산호색 차양, 이끼, 벚꽃)에서 뽑았습니다.
   ========================================================== */

:root {
  --paper: #FFF6E4;
  --paper-2: #FBEBD0;
  --stage: #FDF4DF;          /* 과일·상점지기 그림의 바탕색과 같아야 테두리가 안 보입니다 */
  --ink: #4A2F1B;
  --ink-2: #6F5138;
  --ink-3: #A08567;
  --wood: #9A6A44;
  --wood-d: #6E4526;
  --wood-l: #C79A6B;
  --line: #E7CFA6;
  --coral: #E9735F;
  --coral-d: #C9503E;
  --coral-l: #F8C7B8;
  --leaf: #5E9B45;
  --leaf-d: #41722F;
  --lemon: #F6D365;
  --blossom: #F9C6D3;
  --dusk: #2B3252;

  --page-bg: #DCEEF7;        /* 스크롤에 따라 스크립트가 바꿉니다 */
  --nav-h: 56px;
  --awning-h: 13px;
  --top: calc(var(--nav-h) + var(--awning-h));

  --f-display: "Jua", "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-story: "Gowun Batang", "Nanum Myeongjo", "Batang", serif;
  --f-body: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-hand: "Gaegu", "Jua", cursive;

  --shadow: 0 12px 34px rgba(74, 47, 27, .14);
  --shadow-lg: 0 26px 60px rgba(40, 28, 20, .26);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top) + 8px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--page-bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, canvas, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
strong { color: var(--coral-d); font-weight: 400; background: linear-gradient(transparent 62%, rgba(246, 211, 101, .55) 62%); }

:focus-visible { outline: 3px solid #2F6FBF; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ───────── 공통 부품 ───────── */

.plaque {                       /* 나무 팻말 */
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--f-display); font-size: 15px; letter-spacing: .02em;
  color: #FFF3DC;
  padding: 5px 16px 6px;
  border-radius: 10px;
  background: linear-gradient(180deg, #B5814F, var(--wood));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 var(--wood-d), 0 3px 0 rgba(74, 47, 27, .18);
}
.plaque b { font-weight: 400; color: #FFE7B8; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-display); font-size: 15px; letter-spacing: .04em; color: var(--ink-2);
  padding: 5px 14px; border-radius: 999px;
  background: rgba(255, 249, 236, .78);
  box-shadow: 0 0 0 2px rgba(199, 154, 107, .45);
}

.btn {
  --b: var(--paper); --b-d: var(--line); --c: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px 26px 12px;
  font-family: var(--f-display); font-size: 19px; line-height: 1.2; text-decoration: none; text-align: center;
  color: var(--c); background: var(--b);
  border: 0; border-radius: 16px; cursor: pointer;
  box-shadow: 0 5px 0 var(--b-d), 0 12px 22px rgba(74, 47, 27, .14);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--b-d), 0 4px 10px rgba(74, 47, 27, .14); }
.btn--leaf { --b: var(--leaf); --b-d: var(--leaf-d); --c: #FFFDF4; }
.btn--paper { --b: #FFFBF1; --b-d: var(--wood-l); --c: var(--ink); }
.btn--small { min-height: 40px; padding: 6px 16px 8px; font-size: 16px; border-radius: 12px; box-shadow: 0 3px 0 var(--b-d); }
.btn--wide { width: 100%; }
.btn[disabled] { filter: grayscale(.5) opacity(.7); cursor: progress; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  font-size: 14px; line-height: 1.3; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 251, 241, .8); box-shadow: inset 0 0 0 1.5px var(--line);
}

.pips { display: inline-flex; gap: 6px; }
.pips i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .28; transition: opacity .3s, transform .3s; }
.pips i.is-on { opacity: 1; transform: scale(1.25); }

/* 스크롤하면 떠오르는 글 */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────── 상단 바: 상점 차양 ───────── */

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; --nav-ink: var(--ink); color: var(--nav-ink); }
[data-tone="dark"] .nav { --nav-ink: #FFF3DC; }

.nav__bar {
  height: var(--nav-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--page-bg);
  background: color-mix(in srgb, var(--page-bg) 82%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  transition: color .4s;
}
.nav__logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 21px; text-decoration: none; white-space: nowrap; }
.nav__chapter { font-family: var(--f-story); font-weight: 700; font-size: 14px; text-align: center; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav__awning { height: var(--awning-h); filter: drop-shadow(0 3px 2px rgba(74, 47, 27, .16)); }
.nav__awning::before {
  content: ""; display: block; height: 100%;
  background: repeating-linear-gradient(90deg, var(--coral) 0 26px, #FFF3DC 26px 52px);
  -webkit-mask: radial-gradient(circle at 13px 0, #000 12.4px, transparent 13px) 0 0 / 26px 13px repeat-x;
  mask: radial-gradient(circle at 13px 0, #000 12.4px, transparent 13px) 0 0 / 26px 13px repeat-x;
}
.nav__progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.nav__progress i { display: block; height: 100%; width: 100%; background: var(--coral-d); transform-origin: 0 50%; transform: scaleX(0); }

/* ───────── 표지 ───────── */

.cover { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--top) + 26px) 0 96px; display: grid; align-items: center; isolation: isolate; }
.cover__sky {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #B9DDF5 0%, #D6ECF7 40%, #FCEFD8 78%, #FFF4E0 100%);
  -webkit-mask-image: linear-gradient(#000 74%, transparent 100%); mask-image: linear-gradient(#000 74%, transparent 100%);
}
.cloud { position: absolute; border-radius: 999px; background: #fff; filter: blur(22px); opacity: .8; animation: drift 46s ease-in-out infinite alternate; }
.cloud--1 { width: 34vw; height: 9vw; left: -6vw; top: 16%; }
.cloud--2 { width: 26vw; height: 8vw; right: -4vw; top: 9%; background: #FFE3EA; animation-duration: 58s; animation-direction: alternate-reverse; }
.cloud--3 { width: 30vw; height: 7vw; left: 34vw; top: 52%; opacity: .55; animation-duration: 70s; }
.bokeh { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #FFE9A8; filter: blur(2px); animation: twinkle 4.6s ease-in-out infinite; }
.bokeh--1 { left: 12%; top: 30%; }
.bokeh--2 { left: 46%; top: 16%; width: 10px; height: 10px; animation-delay: 1.2s; }
.bokeh--3 { right: 9%; top: 38%; width: 18px; height: 18px; animation-delay: 2.1s; }
.bokeh--4 { left: 30%; top: 70%; width: 9px; height: 9px; animation-delay: 3s; }

.cover__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 76px); align-items: center; }
.cover__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(64px, 11.6vw, 164px); line-height: .98; letter-spacing: -.015em;
  margin: 18px 0 16px -.04em; color: var(--ink);
  text-shadow: 0 .035em 0 var(--wood-l), 0 .1em .2em rgba(74, 47, 27, .18);
}
.cover__title span { color: var(--coral); text-shadow: 0 .035em 0 #A9402F, 0 .1em .2em rgba(74, 47, 27, .18); }
.cover__tagline { font-family: var(--f-story); font-weight: 700; font-size: clamp(21px, 2.5vw, 32px); line-height: 1.4; }
.cover__desc { margin-top: 18px; max-width: 30em; font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); }
.cover__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.cover__art { position: relative; justify-self: center; width: min(100%, 540px, 62vh); width: min(100%, 540px, 62svh); }
.arch {
  position: relative; aspect-ratio: 1 / 1.03; overflow: hidden;
  border-radius: 50% 50% 30px 30px / 44% 44% 30px 30px;
  border: 10px solid #FFF9EC;
  box-shadow: 0 0 0 3px var(--wood-l), var(--shadow-lg);
  background: var(--stage);
}
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 62%; animation: kenburns 20s ease-in-out infinite alternate; }

.petals i {
  position: absolute; top: -6%; left: var(--x, 20%);
  width: 13px; height: 10px; background: var(--blossom); border-radius: 80% 0 80% 0; opacity: 0;
  animation: petal var(--t, 11s) linear var(--w, 0s) infinite;
}
.petals i:nth-child(1) { --x: 8%;  --t: 12s; --w: 0s; }
.petals i:nth-child(2) { --x: 24%; --t: 15s; --w: 3s; }
.petals i:nth-child(3) { --x: 41%; --t: 11s; --w: 6s; }
.petals i:nth-child(4) { --x: 58%; --t: 14s; --w: 1.5s; }
.petals i:nth-child(5) { --x: 72%; --t: 12s; --w: 8s; }
.petals i:nth-child(6) { --x: 86%; --t: 16s; --w: 4.5s; }
.petals i:nth-child(7) { --x: 50%; --t: 18s; --w: 10s; }

.tag-open {
  position: absolute; left: 50%; bottom: -19px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--f-display); font-size: 16px; color: #FFF3DC;
  padding: 7px 18px 8px; border-radius: 12px;
  background: linear-gradient(180deg, #B5814F, var(--wood));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 var(--wood-d), 0 6px 14px rgba(74, 47, 27, .25);
}
.tag-open i { width: 10px; height: 10px; border-radius: 50%; background: #B8E986; box-shadow: 0 0 0 0 rgba(184, 233, 134, .7); animation: pulse 2.2s ease-out infinite; }

.cover__hint {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2); text-decoration: none; opacity: .85;
}
.cover__hint-dot { animation: wheel 1.8s ease-in-out infinite; }

/* 그림 위에 겹쳐 재생되는 반복 영상(시댄스). 영상이 준비되면 그림 위로 서서히 나타납니다. */
.loop-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.loop-video.is-on { opacity: 1; }
.arch.has-video img { animation: none; }
.arch.has-video .petals { display: none; }
.plate__frame img:not(.is-on) + .loop-video { opacity: 0; }

/* ───────── 스크롤 장면(그림은 붙어 있고 글이 넘어감) ───────── */

.scrolly { position: relative; }
.scrolly__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 84px); align-items: start; }
.scrolly__steps { grid-column: 1; grid-row: 1; }
.scrolly__stage {
  grid-column: 2; grid-row: 1;
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding-top: var(--top);
}
.scrolly--acts .scrolly__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); }
.scrolly--acts .scrolly__steps { grid-column: 2; }
.scrolly--acts .scrolly__stage { grid-column: 1; }

.step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.step > * { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .step:not(.is-active) > * { opacity: .3; transform: scale(.97); }

.plate { width: 100%; max-width: calc((100vh - var(--top) - 140px) * 4 / 3); max-width: calc((100svh - var(--top) - 140px) * 4 / 3); color: var(--cap-ink, var(--ink-2)); }
.plate--screen { max-width: calc((100vh - var(--top) - 170px) * 16 / 9); max-width: calc((100svh - var(--top) - 170px) * 16 / 9); }
.plate__frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 26px; border: 10px solid #FFF9EC;
  box-shadow: 0 0 0 3px var(--wood-l), var(--shadow-lg);
  background: #1E233B;
}
.plate--screen .plate__frame { aspect-ratio: 16 / 9; background: var(--paper-2); }
.plate__frame canvas { display: block; width: 100%; height: 100%; }
.plate__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.plate__frame img.is-on { opacity: 1; transform: none; }
.plate__cap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 0 6px; font-family: var(--f-story); font-size: 14px; }
.plate__cap b { font-weight: 700; }
[data-tone="dark"] .plate--film { --cap-ink: #D8D4EA; }

/* 동화책 한 쪽 */
.page {
  position: relative; width: 100%; max-width: 470px; margin-left: auto;
  padding: 36px 36px 54px;
  background: var(--paper); border-radius: 24px;
  box-shadow: 0 18px 44px rgba(22, 24, 44, .26);
}
.page::before { content: ""; position: absolute; inset: 10px; border: 2px dashed var(--line); border-radius: 16px; pointer-events: none; }
.page h2, .page h3 { font-family: var(--f-story); font-weight: 700; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.38; margin: 16px 0 14px; letter-spacing: -.01em; }
.page .plaque + h2 { margin-top: 18px; }
.page p:not(.plaque) { color: var(--ink-2); }
.page__no { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); font-family: var(--f-story); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.page__no::before { content: "— "; } .page__no::after { content: " —"; }

/* ───────── 섹션 머리말 ───────── */

.section-head { text-align: center; padding: clamp(84px, 14vh, 150px) 0 clamp(20px, 5vh, 54px); }
.section-head h2 { font-family: var(--f-story); font-weight: 700; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.28; letter-spacing: -.015em; margin: 20px 0 18px; }
.section-head > p:not(.plaque) { max-width: 34em; margin-inline: auto; color: var(--ink-2); }

/* ───────── 3장: 상점의 하루 ───────── */

.act { position: relative; max-width: 440px; padding-left: 84px; }
.act__no {
  position: absolute; left: 0; top: 2px; width: 62px; height: 62px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 32px; color: #FFFDF4;
  background: var(--leaf); border-radius: 20px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .28), 0 5px 0 var(--leaf-d);
}
.act--heart .act__no { background: var(--coral); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .28), 0 5px 0 var(--coral-d); }
.act h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.2; margin-bottom: 12px; }
.act p { color: var(--ink-2); }
.acts__note { text-align: center; font-size: 13px; color: var(--ink-3); padding: 8px 0 clamp(60px, 10vh, 110px); }

/* ───────── 4장: 당신의 이야기가 필요해요 ───────── */

.why { padding-bottom: clamp(80px, 12vh, 140px); }

.turns { max-width: 940px; margin: clamp(10px, 3vh, 30px) auto 0; }
.turns__head { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 10px; margin-bottom: 14px; font-family: var(--f-display); font-size: 15px; color: var(--ink-3); text-align: center; }
.turn { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 10px; align-items: center; margin-bottom: 14px; }
.turn q {
  quotes: "“" "”"; position: relative;
  font-family: var(--f-story); font-weight: 700; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.5;
  padding: 16px 22px; border-radius: 20px 20px 20px 6px;
  background: #FFFBF3; box-shadow: var(--shadow);
}
.turn__arrow { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--coral) 0 7px, transparent 7px 13px); }
.turn__arrow::after { content: ""; position: absolute; right: -2px; top: 50%; width: 10px; height: 10px; border-top: 2.5px solid var(--coral); border-right: 2.5px solid var(--coral); transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.turn__to {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.35; color: #FFFDF4;
  padding: 14px 22px; border-radius: 18px;
  background: var(--leaf); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22), 0 5px 0 var(--leaf-d);
}
.turn__to::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle, var(--lemon) 0 32%, #FFF 34% 100%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }

.path { position: relative; margin: clamp(80px, 13vh, 150px) auto 0; }
.path > h3 { font-family: var(--f-story); font-weight: 700; font-size: clamp(24px, 3vw, 38px); text-align: center; margin-bottom: clamp(28px, 6vh, 60px); }
.path__line { position: absolute; left: 4%; width: 92%; top: clamp(74px, 13vh, 118px); height: 110px; overflow: visible; pointer-events: none; }
.path__line path { stroke: var(--wood-l); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 16; vector-effect: non-scaling-stroke; }
.path__stones { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 34px); }
.path__stones li { text-align: center; padding: 0 4px; }
.stone {
  display: grid; place-items: center; width: 76px; height: 68px; margin: 0 auto 18px;
  font-family: var(--f-display); font-size: 30px; color: var(--ink);
  background: #FFFBF3; border-radius: 46% 54% 50% 50% / 56% 52% 48% 44%;
  box-shadow: 0 6px 0 var(--line), 0 16px 26px rgba(74, 47, 27, .16);
}
.path__stones li:nth-child(2) .stone { border-radius: 54% 46% 46% 54% / 48% 56% 44% 52%; margin-top: 26px; }
.path__stones li:nth-child(3) .stone { border-radius: 50% 50% 56% 44% / 52% 46% 54% 48%; margin-top: 6px; }
.path__stones li:nth-child(4) .stone { background: var(--coral); color: #FFFDF4; box-shadow: 0 6px 0 var(--coral-d), 0 16px 26px rgba(74, 47, 27, .16); margin-top: 20px; }
.path__stones h4 { font-family: var(--f-display); font-weight: 400; font-size: clamp(19px, 1.9vw, 24px); margin-bottom: 6px; }
.path__stones p { font-size: 15px; line-height: 1.65; color: var(--ink-2); }

.board {                         /* 상점 앞 칠판 */
  position: relative; max-width: 900px; margin: clamp(80px, 13vh, 150px) auto 0;
  padding: clamp(30px, 5vw, 56px) clamp(24px, 5vw, 64px);
  color: #FBF6E6; text-align: center;
  background: radial-gradient(120% 90% at 30% 20%, #56605A 0%, #434C47 60%, #3A423E 100%);
  border: 14px solid var(--wood); border-radius: 22px;
  box-shadow: inset 0 0 0 3px var(--wood-d), inset 0 0 60px rgba(0, 0, 0, .25), 0 10px 0 var(--wood-d), var(--shadow-lg);
}
.board blockquote p { font-family: var(--f-hand); font-weight: 700; font-size: clamp(23px, 3.1vw, 38px); line-height: 1.4; }
.board em { font-style: normal; color: #FFE08A; background: linear-gradient(transparent 82%, rgba(255, 224, 138, .5) 82% 92%, transparent 92%); }
.board figcaption { margin-top: 20px; font-size: 16px; line-height: 1.75; color: #D9D6C6; max-width: 34em; margin-inline: auto; }

/* ───────── 5장: 과일 한 판 ───────── */

.game { padding: clamp(84px, 14vh, 150px) 0 clamp(80px, 12vh, 140px); }
.game__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.game__intro h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(46px, 7vw, 96px); line-height: 1.04; margin: 20px 0 18px; text-shadow: 0 .04em 0 var(--wood-l); }
.game__intro > p:not(.plaque) { max-width: 26em; color: var(--ink-2); }

.host { display: flex; align-items: flex-end; gap: 16px; margin-top: 34px; }
.host__niche {
  flex: none; width: 118px; aspect-ratio: 1 / 1.16; overflow: hidden;
  border-radius: 50% 50% 18px 18px / 40% 40% 18px 18px;
  background: var(--stage); border: 6px solid #FFF9EC; box-shadow: 0 0 0 3px var(--wood-l), var(--shadow);
}
.host__niche img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.host__say {
  position: relative; margin-bottom: 14px; max-width: 19em;
  font-family: var(--f-story); font-weight: 700; font-size: 17px; line-height: 1.55;
  padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: #FFFBF3; box-shadow: var(--shadow);
}

.machine { --tile: clamp(84px, 9.4vw, 124px); width: calc(var(--tile) * 3 + 80px); max-width: 100%; margin-inline: auto; }
.machine__sign {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px 12px; border-radius: 18px 18px 0 0;
  font-family: var(--f-display); font-size: 21px; color: #FFF3DC;
  background: linear-gradient(180deg, #B5814F, var(--wood));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .2), inset 0 -4px 0 var(--wood-d);
}
.ai-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-body); font-size: 13px; color: var(--ink); padding: 4px 11px; border-radius: 999px; background: #FFF3DC; white-space: nowrap; }
.ai-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.ai-chip.is-busy i { background: var(--coral); animation: blink .5s steps(2) infinite; }
.machine__awning { height: 22px; filter: drop-shadow(0 4px 3px rgba(74, 47, 27, .25)); position: relative; z-index: 2; margin: 0 -8px; }
.machine__awning::before {
  content: ""; display: block; height: 100%;
  background: repeating-linear-gradient(90deg, var(--coral) 0 34px, #FFF3DC 34px 68px);
  -webkit-mask: radial-gradient(circle at 17px 5px, #000 16.4px, transparent 17px) 0 0 / 34px 22px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 5px no-repeat;
  mask: radial-gradient(circle at 17px 5px, #000 16.4px, transparent 17px) 0 0 / 34px 22px repeat-x, linear-gradient(#000, #000) 0 0 / 100% 5px no-repeat;
}
.machine__window {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: -12px; padding: 26px 16px 16px;
  background: linear-gradient(180deg, #7E5231, var(--wood-d));
}
.reel { position: relative; height: calc(var(--tile) * 2); overflow: hidden; border-radius: 14px; background: var(--stage); }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, rgba(74, 47, 27, .5), rgba(74, 47, 27, 0) 27%, rgba(74, 47, 27, 0) 73%, rgba(74, 47, 27, .5)); box-shadow: inset 0 0 0 2px rgba(74, 47, 27, .18); }
.reel__strip { will-change: transform; }
.reel__strip img { display: block; width: var(--tile); height: var(--tile); margin: 0 auto; user-select: none; -webkit-user-drag: none; }
.reel.is-hit { animation: hit .5s var(--ease); }
.reel.is-hit::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 5px var(--lemon), inset 0 0 26px rgba(246, 211, 101, .9); pointer-events: none; }
.reel.is-miss { animation: nudge .45s var(--ease); }
.payline { position: absolute; top: calc(26px + var(--tile)); width: 0; height: 0; border: 9px solid transparent; transform: translateY(-50%); z-index: 3; }
.payline--l { left: 1px; border-left-color: var(--lemon); }
.payline--r { right: 1px; border-right-color: var(--lemon); }

.machine__counter {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  padding: 14px 16px 20px; border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #C1905F, var(--wood));
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, .22), 0 8px 0 var(--wood-d), var(--shadow-lg);
}
.machine__tries { font-family: var(--f-display); font-size: 15px; color: #FFF3DC; }
.bell {
  --b: var(--leaf); --b-d: var(--leaf-d);
  width: 112px; height: 112px; border-radius: 50%; border: 0; cursor: pointer;
  font-family: var(--f-display); font-size: 28px; color: #FFFDF4;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .42), transparent 46%), var(--b);
  box-shadow: 0 8px 0 var(--b-d), 0 0 0 7px #FFF3DC, 0 8px 0 7px var(--wood-d), 0 18px 24px rgba(40, 28, 20, .35);
  transition: transform .09s var(--ease), box-shadow .09s var(--ease), background-color .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.bell:active:not([disabled]) { transform: translateY(6px); box-shadow: 0 2px 0 var(--b-d), 0 0 0 7px #FFF3DC, 0 2px 0 7px var(--wood-d), 0 8px 14px rgba(40, 28, 20, .3); }
.bell.is-stop { --b: var(--coral); --b-d: var(--coral-d); animation: throb .7s ease-in-out infinite alternate; }
.bell[disabled] { --b: #B9A58D; --b-d: #8E7B66; cursor: default; animation: none; }
.sound { justify-self: end; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #FFF3DC; background: rgba(74, 47, 27, .28); }
.sound .sound__off { display: none; }
.sound[aria-pressed="false"] .sound__wave { display: none; }
.sound[aria-pressed="false"] .sound__off { display: block; }

.result {
  position: relative; margin-top: 30px; padding: 30px 24px 26px; text-align: center;
  background: #FFFBF3; border-radius: 22px; box-shadow: var(--shadow-lg);
  animation: pop .5s var(--ease);
}
.result::before { content: ""; position: absolute; inset: 9px; border: 2px dashed var(--line); border-radius: 15px; pointer-events: none; }
.result__ribbon { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); white-space: nowrap; font-family: var(--f-display); font-size: 15px; color: #FFFDF4; padding: 4px 18px 5px; border-radius: 8px; background: var(--coral-d); box-shadow: 0 3px 0 #9C3A2B; }
.result.is-win .result__ribbon { background: var(--leaf); box-shadow: 0 3px 0 var(--leaf-d); }
.result h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; margin-bottom: 8px; }
.result p:not(.result__ribbon) { font-size: 16px; color: var(--ink-2); }
.result__cta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

.confetti { position: absolute; left: 50%; top: 40%; width: 12px; height: 9px; border-radius: 80% 0 80% 0; pointer-events: none; z-index: 5; animation: burst 1.1s var(--ease) forwards; }

/* ───────── 6장: 이야기 남기기(펼친 책) ───────── */

.write { padding-bottom: clamp(90px, 14vh, 160px); }
.book {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; margin: clamp(10px, 3vh, 30px) auto 0;
  border-radius: 22px;
  box-shadow: 0 0 0 10px var(--coral), 0 10px 0 10px var(--coral-d), 0 40px 70px rgba(40, 28, 20, .28);
}
.book__page { padding: clamp(24px, 3.6vw, 46px); min-width: 0; }
.book__page--left { border-radius: 20px 0 0 20px; background: linear-gradient(90deg, #FFFCF4 0%, #FFF8EA 86%, #EFDFC0 100%); }
.book__page--right { border-radius: 0 20px 20px 0; background: linear-gradient(270deg, #FFFCF4 0%, #FFF8EA 86%, #EFDFC0 100%); }

.topics { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.topics legend, .field label { display: block; padding: 0; font-family: var(--f-display); font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.topics__list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic {
  min-height: 44px; padding: 8px 16px 9px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--f-display); font-size: 16px; color: var(--ink-2);
  background: #FFFDF6; box-shadow: inset 0 0 0 2px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s, transform .12s;
}
.topic:hover { box-shadow: inset 0 0 0 2px var(--wood-l); }
.topic[aria-checked="true"] { color: #FFFDF4; background: var(--coral); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), 0 3px 0 var(--coral-d); }

.field { margin-bottom: 20px; }
.field--story label { font-family: var(--f-story); font-weight: 700; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.45; margin-bottom: 14px; }
.field label small { font-family: var(--f-body); font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; min-height: 50px; padding: 10px 14px;
  font-size: 17px; background: #FFFDF6; border: 2px solid var(--line); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea {
  display: block; width: 100%; min-height: 192px; resize: vertical; padding: 0 12px;
  font-family: var(--f-story); font-size: 18px; line-height: 38px;
  border: 0; border-radius: 6px;
  background: repeating-linear-gradient(transparent 0 37px, var(--line) 37px 38px) local;
}
.field input::placeholder, .field textarea::placeholder { color: #B9A58D; }
.field input:focus-visible { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(94, 155, 69, .2); }
.field textarea:focus-visible { outline: none; background-color: rgba(255, 255, 255, .6); box-shadow: 0 0 0 4px rgba(94, 155, 69, .2); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--coral-d); box-shadow: 0 0 0 4px rgba(201, 80, 62, .16); }
.field__help { display: flex; justify-content: space-between; gap: 10px; min-height: 22px; margin-top: 6px; font-size: 14px; color: var(--ink-3); }
.field__err { color: #B23A28; }
.field__count { margin-left: auto; white-space: nowrap; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; font-size: 16px; line-height: 1.5; cursor: pointer; }
.check input { flex: none; appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border: 2px solid var(--wood-l); border-radius: 8px; background: #FFFDF6; cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform .15s var(--ease); }
.check input:checked { background: var(--leaf); border-color: var(--leaf-d); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check b { color: var(--coral-d); font-weight: 400; }
.check--agree { margin-top: 6px; margin-bottom: 8px; }

.privacy { margin: 0 0 4px 34px; font-size: 14px; color: var(--ink-2); }
.privacy summary { cursor: pointer; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.privacy dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 8px 0; padding: 12px 14px; border-radius: 12px; background: rgba(231, 207, 166, .3); }
.privacy dt { color: var(--ink-3); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { min-height: 24px; margin-top: 12px; font-size: 15px; text-align: center; color: var(--ink-2); }
.form__status.is-bad { color: #B23A28; }

.done {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center;
  max-width: 940px; margin: clamp(10px, 3vh, 30px) auto 0; padding: clamp(26px, 4.5vw, 56px);
  background: #FFFBF3; border-radius: 26px; box-shadow: var(--shadow-lg);
  animation: pop .6s var(--ease);
}
.done[hidden] { display: none; }
.done:focus { outline: none; }
.done h2 { font-family: var(--f-story); font-weight: 700; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.32; margin: 18px 0 14px; }
.done h2 span { color: var(--coral-d); }
.done__quote { font-family: var(--f-story); font-size: 17px; line-height: 1.7; color: var(--ink-2); padding: 12px 16px; margin-bottom: 12px; border-left: 4px solid var(--coral-l); background: rgba(248, 199, 184, .2); border-radius: 0 12px 12px 0; }
.done__quote:empty { display: none; }
.done__preview { margin-top: 12px; padding: 10px 14px; font-size: 14px; border-radius: 12px; color: #7A4B00; background: #FFE8AE; }
.done__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.done__shelf { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 230px; padding: 0 14px; border-bottom: 14px solid var(--wood); border-radius: 0 0 6px 6px; box-shadow: 0 8px 0 var(--wood-d); }
.bk { display: block; width: 30px; border-radius: 5px 5px 2px 2px; box-shadow: inset -5px 0 0 rgba(0, 0, 0, .1), inset 0 12px 0 rgba(255, 255, 255, .18); }
.bk--1 { height: 150px; background: #7FA3C9; }
.bk--2 { height: 176px; background: #E7B65B; width: 26px; }
.bk--3 { height: 138px; background: #9CC06B; transform: rotate(-4deg); transform-origin: bottom right; }
.bk--4 { height: 162px; background: #B79AD6; width: 24px; }
.bk--5 { height: 144px; background: #F2A6A0; }
.bk--new { position: relative; width: 46px; height: 204px; background: var(--coral); display: grid; place-items: center; animation: slot 1s var(--ease) .15s both; }
.bk--new span { writing-mode: vertical-rl; font-family: var(--f-display); font-size: 17px; color: #FFF3DC; max-height: 170px; overflow: hidden; white-space: nowrap; }

/* ───────── 바닥글 ───────── */

.foot { padding: 46px 0 56px; color: #F3E2C6; background: var(--ink); font-size: 15px; line-height: 1.8; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.foot__logo { font-family: var(--f-display); font-size: 26px; color: #FFF3DC; margin-bottom: 6px; }
.foot__logo span { font-family: var(--f-body); font-size: 14px; color: #CDB592; margin-left: 8px; }
.foot__meta { text-align: right; color: #CDB592; }
.foot__meta b { color: #F3E2C6; font-weight: 400; }

/* ───────── 오른쪽 챕터 점 ───────── */

.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; gap: 14px; }
.dots a { position: relative; display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); opacity: .28; transition: opacity .25s, transform .25s, background-color .25s; }
[data-tone="dark"] .dots a { background: #FFF3DC; }
.dots a.is-on { opacity: 1; background: var(--coral); transform: scale(1.35); }
.dots a span { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 13px; line-height: 1; padding: 7px 10px; border-radius: 8px; color: #FFF3DC; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s; }
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }
@media (min-width: 1240px) { .dots { display: flex; } }

/* ───────── 움직임 ───────── */

@keyframes drift   { from { transform: translateX(-3vw); } to { transform: translateX(5vw); } }
@keyframes twinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes petal   { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 8% { opacity: .95; } 85% { opacity: .9; } 100% { opacity: 0; transform: translate(-70px, 620px) rotate(520deg); } }
@keyframes pulse   { 0% { box-shadow: 0 0 0 0 rgba(184, 233, 134, .7); } 100% { box-shadow: 0 0 0 12px rgba(184, 233, 134, 0); } }
@keyframes wheel   { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes blink   { 50% { opacity: .25; } }
@keyframes throb   { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes hit     { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes nudge   { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 55% { transform: translateX(4px); } 80% { transform: translateX(-2px); } }
@keyframes pop     { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slot    { from { transform: translateY(-120%) rotate(-8deg); } 70% { transform: translateY(4%); } to { transform: none; } }
@keyframes burst   { from { opacity: 1; transform: translate(-50%, -50%) rotate(0); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)); } }

/* ───────── 태블릿·휴대폰 ───────── */

@media (max-width: 899px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 36px); }

  .nav__chapter { display: none; }
  .nav__bar { grid-template-columns: 1fr auto; }

  .cover { padding: calc(var(--top) + 18px) 0 84px; }
  .cover__inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .cover__title { margin-left: 0; font-size: clamp(60px, 19vw, 120px); margin-top: 14px; margin-bottom: 10px; }
  .cover__desc { margin-inline: auto; }
  .cover__cta { justify-content: center; margin-top: 22px; }
  .cover__art { order: -1; width: min(72%, 300px, 36vh); width: min(72%, 300px, 36svh); margin-top: 4px; }
  .arch { border-width: 7px; }
  .tag-open { font-size: 14px; bottom: -16px; padding: 5px 14px 6px; }
  .cover__desc br { display: none; }

  /* 그림은 위에 붙고, 글이 아래에서 넘어갑니다 */
  .scrolly__grid { display: block; width: 100%; }
  .scrolly__stage {
    position: sticky; top: 0; z-index: 5; height: auto;
    padding: calc(var(--top) + 10px) 16px 8px;
    background: var(--page-bg);
  }
  .scrolly__stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: linear-gradient(var(--page-bg), transparent); pointer-events: none; }
  .plate { max-width: calc(34vh * 4 / 3); max-width: calc(34svh * 4 / 3); margin-inline: auto; }
  .plate--screen { max-width: calc(30vh * 16 / 9); max-width: calc(30svh * 16 / 9); }
  .plate__frame { border-width: 6px; border-radius: 20px; }
  .plate__cap { margin-top: 8px; font-size: 13px; }

  .step { min-height: 58vh; min-height: 58svh; align-items: flex-start; padding: 22px 18px 0; }
  .step:last-child { min-height: 54vh; min-height: 54svh; }
  .page { max-width: 520px; margin-inline: auto; padding: 28px 26px 48px; }
  .page h2, .page h3 { font-size: clamp(22px, 6vw, 28px); margin: 12px 0 10px; }
  .act { max-width: 520px; margin-inline: auto; padding-left: 70px; }
  .act__no { width: 54px; height: 54px; font-size: 28px; border-radius: 17px; }

  .section-head { padding-top: clamp(70px, 11vh, 110px); }

  .turns__head { display: none; }
  .turn { grid-template-columns: 1fr; gap: 0; margin-bottom: 24px; }
  .turn q { margin-right: 12%; }
  .turn__arrow { width: 2px; height: 26px; margin: 4px 0 4px 34px; background: repeating-linear-gradient(180deg, var(--coral) 0 6px, transparent 6px 11px); }
  .turn__arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .turn__to { margin-left: 12%; }

  .path__line { display: none; }
  .path__stones { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin-inline: auto; }
  .path__stones li { position: relative; display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; text-align: left; padding: 0 0 30px; }
  .path__stones li:not(:last-child)::before { content: ""; position: absolute; left: 37px; top: 66px; bottom: 0; width: 0; border-left: 4px dotted var(--wood-l); }
  .path__stones .stone { grid-row: 1 / span 2; margin: 0 !important; }
  .path__stones h4 { align-self: end; }

  .board { border-width: 10px; }

  .game { padding-top: clamp(64px, 9vh, 96px); }
  .game__grid { grid-template-columns: 1fr; gap: 0; text-align: center; justify-items: center; }
  .game__intro { display: contents; }
  .game__intro h2 { font-size: clamp(40px, 12vw, 64px); margin: 14px 0 10px; }
  .game__intro > p:not(.plaque) { margin-inline: auto; margin-bottom: 22px; }
  .machine { order: 4; }
  .host { order: 5; justify-content: center; margin-top: 26px; text-align: left; }
  .host__niche { width: 86px; }
  .host__say { font-size: 15px; padding: 11px 14px; }
  .machine { --tile: clamp(78px, 24vw, 118px); width: calc(var(--tile) * 3 + 64px); }
  .machine__window { padding: 24px 12px 12px; gap: 8px; }
  .payline { top: calc(24px + var(--tile)); }
  .bell { width: 104px; height: 104px; }

  .book { grid-template-columns: 1fr; box-shadow: 0 0 0 7px var(--coral), 0 8px 0 7px var(--coral-d), 0 30px 50px rgba(40, 28, 20, .24); }
  .book__page--left { border-radius: 18px 18px 0 0; background: linear-gradient(180deg, #FFFCF4 0%, #FFF8EA 90%, #F3E5C8 100%); padding-bottom: 14px; }
  .book__page--right { border-radius: 0 0 18px 18px; background: linear-gradient(0deg, #FFFCF4 0%, #FFF8EA 100%); }

  .done { grid-template-columns: 1fr; text-align: center; }
  .done__shelf { height: 170px; max-width: 280px; margin-inline: auto; width: 100%; }
  .bk--1 { height: 110px; } .bk--2 { height: 128px; } .bk--3 { height: 100px; } .bk--4 { height: 118px; } .bk--5 { height: 104px; }
  .bk--new { height: 150px; } .bk--new span { max-height: 126px; font-size: 15px; }
  .done__quote { text-align: left; }
  .done__cta { justify-content: center; }

  .foot__grid { grid-template-columns: 1fr; }
  .foot__meta { text-align: left; }
}

@media (max-width: 380px) {
  .btn { font-size: 17px; padding-inline: 20px; }
  .nav__logo { font-size: 19px; }
  .page { padding: 24px 22px 46px; }
}

/* 낮은 화면(가로로 긴 노트북 등)에서 표지가 넘치지 않게 */
@media (min-width: 900px) and (max-height: 720px) {
  .cover__title { font-size: clamp(56px, 9vw, 120px); }
  .cover__desc { margin-top: 12px; }
  .cover__cta { margin-top: 20px; }
}

/* 움직임 줄이기 설정을 켠 분께는 애니메이션을 끕니다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .petals, .cover__hint-dot { display: none; }
}
