/* Живая книга «Ветер и Солнце» — локальные шрифты, без CDN и трекеров. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f6efd9;
  --paper-deep: #efe4c4;
  --ink: #2a2118;
  --ink-soft: #5a4a38;
  --line: #c4a574;
  --frame: #f3e6c8;
  --frame-edge: #8a6a44;
  --sun: #e8a317;
  --sun-soft: #ffe08a;
  --wind: #4e7d99;
  --cloak: #b33c2a;
  --highlight: #ffe08a;
  --highlight-word: #ffd14a;
  --focus: #1f5f8a;
  --btn: #3d6b4f;
  --shadow: 0 10px 28px rgba(40, 30, 16, 0.16);
  --radius: 14px;
  --font-serif: "Cormorant Garamond", Palatino, "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  --px: 0px;
  --py: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(255, 248, 220, 0.8), transparent 60%),
    var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
a { color: var(--focus); }

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  z-index: 20;
  border-radius: 6px;
}
.skip-link:focus { top: 0.6rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.banner {
  margin: 0;
  padding: 0.6rem 1rem;
  background: #f3d9b0;
  color: var(--ink);
  text-align: center;
}

.view { min-height: 100vh; }
.view[hidden], [hidden] { display: none !important; }

/* ——— Обложка ——— */
.view-cover {
  display: flex;
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}
.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.cover-main h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.lead { font-size: 1.15rem; margin: 0 0 1.2rem; }
.source, .rights { color: var(--ink-soft); margin: 0 0 0.5rem; }
.cover-actions { margin: 1.6rem 0 1.2rem; }
.resume-hint { margin: 0.5rem 0 0; color: var(--ink-soft); }
.cover-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  align-items: center;
  margin: 1rem 0 1.8rem;
}
.vol-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}
.vol-label input { width: 8rem; }
.cover-bookmarks h2 { font-family: var(--font-serif); font-size: 1.4rem; margin: 0 0 0.5rem; }
.cover-bookmarks ul { margin: 0; padding-left: 1.2rem; }
.cover-foot {
  margin-top: auto;
  padding-top: 2rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.limit-note { color: var(--ink-soft); font-size: 0.9rem; }

/* ——— Кнопки ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--frame-edge);
  border-radius: 999px;
  background: #fff8e8;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}
.btn:hover { background: #fff; }
.btn.primary {
  background: var(--btn);
  border-color: #2c513a;
  color: #fff8e8;
}
.btn.primary:hover { background: #325a42; }
.btn.ghost {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  box-shadow: none;
}
.btn.toggle[aria-pressed="true"],
.btn.icon-btn[aria-pressed="true"] {
  background: var(--sun-soft);
  border-color: #b8860b;
}
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ——— Книга ——— */
.book-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 1rem;
  background: rgba(246, 239, 217, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 8;
}
.book-running {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0;
  text-align: center;
  flex: 1;
}
.page-indicator { margin: 0; white-space: nowrap; font-size: 0.95rem; }

.book-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

/* Сцена */
.scene-frame {
  border: 12px solid var(--frame);
  box-shadow: inset 0 0 0 2px var(--line), var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  background: #d9ecf8;
}
.scene-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1302 / 715;
  overflow: hidden;
  touch-action: pan-y;
}
[data-scene="p3"] .scene-stage,
[data-scene="p4"] .scene-stage { aspect-ratio: 1302 / 702; }

.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  transform: translate(calc(var(--px) * 0.4), calc(var(--py) * 0.3)) scale(1.03);
  transform-origin: center center;
}

/* Подложки, скрывающие впечатанный текст Gemini, не закрывая лица. */
.text-patches { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.patch {
  position: absolute;
  border-radius: 8px;
  background: #d6ebf2;
  box-shadow: none;
}
html.reduce-transparency .patch { background: #d6ebf2; }

/* p1: строки в небе; лица Ветра и Солнца свободны */
[data-scene="p1"] .patch-a { left: 1.15%; top: 1.5%; width: 76%; height: 16.6%; background: #d4eaf3; border-radius: 0 8px 8px 0; }
[data-scene="p1"] .patch-b { left: 23%; top: 15.0%; width: 52%; height: 13.2%; background: #d8eef5; }
[data-scene="p1"] .patch-c { left: 74%; top: 1.5%; width: 24.4%; height: 11.8%; background: #f2ebb8; border-radius: 0 0 8px 8px; }
/* p2 */
[data-scene="p2"] .patch-a { left: 1.15%; top: 1.5%; width: 97.5%; height: 17%; background: #d2e3eb; border-radius: 0 0 8px 8px; }
[data-scene="p2"] .patch-b { left: 24%; top: 15.0%; width: 52%; height: 13.5%; background: #d5e6ee; }
/* p3: подпись справа, Солнце слева */
[data-scene="p3"] .patch-a { left: 34%; top: 1.5%; width: 64.5%; height: 37.8%; background: #e3f0ea; border-radius: 0 0 0 10px; }
[data-scene="p2"] .patch-c,
[data-scene="p3"] .patch-b,
[data-scene="p3"] .patch-c,
[data-scene="p4"] .patch-c { display: none; }
/* p4: верхняя строка и блок, включая «Солнышко победило» */
[data-scene="p4"] .patch-a { left: 1.15%; top: 1.5%; width: 73.5%; height: 14.8%; background: #d5eaf2; border-radius: 0 8px 8px 0; }
[data-scene="p4"] .patch-b { left: 20%; top: 12.0%; width: 56%; height: 28.5%; background: #d8eef4; }

/* Надпись */
.inscription-wrap {
  position: absolute;
  z-index: 5;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
[data-scene="p1"] .inscription-wrap,
[data-scene="p2"] .inscription-wrap {
  left: 16%;
  top: 5%;
  width: 68%;
}
[data-scene="p3"] .inscription-wrap {
  left: 42%;
  top: 8%;
  width: 53%;
}
[data-scene="p4"] .inscription-wrap {
  left: 24%;
  top: 16%;
  width: 52%;
}
.inscription {
  pointer-events: auto;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  padding: 0.35rem 0.9rem 0.45rem;
  background: rgba(255, 248, 230, 0.94);
  border: 1px solid rgba(138, 106, 68, 0.5);
  border-radius: 999px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 2px 10px rgba(40, 30, 16, 0.12);
  max-width: 100%;
  cursor: default;
}
button.inscription { cursor: pointer; }
.inscription.is-active {
  background: var(--highlight);
  box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.35);
}

/* Зоны персонажей */
.zones { position: absolute; inset: 0; z-index: 4; }
.zone {
  position: absolute;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
}
.zone:hover { border-color: rgba(31, 95, 138, 0.55); }
.zone:focus-visible {
  border-color: rgba(31, 95, 138, 0.9);
  background: rgba(255, 248, 230, 0.35);
  font-size: 0;
  overflow: visible;
  z-index: 6;
}
.zone:focus-visible::after {
  content: attr(aria-label);
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(255, 248, 230, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
[data-scene="p1"] .zone-wind { left: 6%; top: 10%; width: 36%; height: 42%; }
[data-scene="p1"] .zone-sun  { left: 70%; top: 6%; width: 28%; height: 42%; }
[data-scene="p1"] .zone-boy  { left: 55%; top: 55%; width: 18%; height: 38%; border-radius: 40%; }
[data-scene="p2"] .zone-wind { left: 4%; top: 12%; width: 48%; height: 52%; }
[data-scene="p2"] .zone-sun  { display: none; }
[data-scene="p2"] .zone-boy  { left: 58%; top: 48%; width: 28%; height: 48%; border-radius: 40%; }
[data-scene="p3"] .zone-wind { display: none; }
[data-scene="p3"] .zone-sun  { left: 0%; top: 2%; width: 36%; height: 52%; }
[data-scene="p3"] .zone-boy  { left: 52%; top: 42%; width: 30%; height: 52%; border-radius: 40%; }
[data-scene="p4"] .zone-wind { left: 4%; top: 8%; width: 38%; height: 42%; }
[data-scene="p4"] .zone-sun  { left: 72%; top: 6%; width: 24%; height: 36%; }
[data-scene="p4"] .zone-boy  { left: 62%; top: 50%; width: 20%; height: 42%; border-radius: 40%; }

/* Эффекты */
.fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.fx svg { display: block; width: 100%; height: 100%; }

.sun-rays { position: absolute; pointer-events: none; opacity: 0.28; }
.idle-on .sun-rays { animation: pulse-rays 5s ease-in-out infinite; }
[data-scene="p2"] .sun-rays { display: none; }

.leaf {
  position: absolute;
  width: 18px;
  height: 12px;
  background: #6a8f3a;
  border-radius: 0 70% 0 70%;
  opacity: 0;
}
.idle-on[data-scene="p2"] .leaf.idle {
  opacity: 0.85;
  animation: leaf-drift 7s linear infinite;
}
[data-gesture="leaves-branches-dust"] .leaf,
[data-gesture="wind-inhale-then-gust"] .leaf,
[data-zone-gesture="gust"] .leaf {
  opacity: 0.95;
  animation: leaf-storm 1.4s ease-in-out forwards;
}

.dust {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(166, 140, 96, 0.0);
}
[data-gesture="leaves-branches-dust"] .dust,
[data-zone-gesture="gust"] .dust {
  animation: dust-up 1.3s ease-out forwards;
}

.gust-lines { opacity: 0; }
[data-gesture="wind-inhale-then-gust"] .gust-lines,
[data-zone-gesture="gust"] .gust-lines { animation: gust-fade 1.1s ease-out forwards; }
[data-gesture="wind-tires-gust-fades"] .gust-lines { opacity: 0.15; }

.bird { opacity: 0.0; }
.idle-on[data-scene="p3"] .bird.idle { opacity: 0.85; animation: bird-arc 14s linear infinite; }
[data-gesture="birds-flowers-warmth"] .bird,
[data-zone-gesture="rays"] .bird {
  opacity: 1;
  animation: bird-burst 1.4s ease-out forwards;
}
.note {
  position: absolute;
  font-size: 1.2rem;
  color: #4a3a22;
  opacity: 0;
}
[data-gesture="birds-flowers-warmth"] .note { animation: note-pop 1.6s ease-out forwards; }

.bloom { transform-box: fill-box; transform-origin: center bottom; }
.idle-on .flora-sway { animation: sway 3.4s ease-in-out infinite; }
[data-gesture="birds-flowers-warmth"] .bloom { animation: bloom 1.2s ease-out forwards; }

.cloud-veil { opacity: 0.55; }
[data-gesture="sun-appears-smiles"] .cloud-veil { animation: cloud-part 1.4s ease-out forwards; }

.glow { opacity: 0.15; }
.idle-on[data-scene="p4"] .glow { animation: glow-idle 6s ease-in-out infinite; }
[data-gesture="warm-glow-understanding"] .glow { animation: glow-up 1.6s ease-out forwards; }

.cloak-carry {
  position: absolute;
  left: 58%;
  top: 68%;
  width: 11%;
  height: 10%;
  opacity: 0;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25));
}
[data-gesture="boy-unbuttons-then-carries-cloak"] .cloak-carry,
[data-scene="p3"].end-state .cloak-carry,
html.reduce-motion [data-scene="p3"] .cloak-carry {
  opacity: 0.95;
  animation: none;
}
[data-gesture="boy-unbuttons-then-carries-cloak"] .cloak-carry {
  animation: cloak-appear 1.2s ease-out forwards;
}

.hood-hint {
  position: absolute;
  left: 68%;
  top: 52%;
  width: 12%;
  height: 16%;
  border-radius: 50% 50% 40% 40%;
  background: rgba(90, 30, 20, 0);
  pointer-events: none;
}
[data-gesture="boy-hood-and-buttons"] .hood-hint,
[data-zone-gesture="hood"] .hood-hint,
[data-scene="p2"].end-state .hood-hint,
html.reduce-motion [data-scene="p2"] .hood-hint {
  background: rgba(70, 20, 16, 0.22);
  box-shadow: 0 0 0 2px rgba(120, 40, 30, 0.25);
}

/* Сюжетные акценты зон */
[data-gesture="wind-sun-face-each-other"] .zone-wind { transform: translateX(6%) rotate(2deg); }
[data-gesture="wind-sun-face-each-other"] .zone-sun { transform: translateX(-5%) rotate(-2deg); }
[data-gesture="sun-rays-speak"] .sun-rays,
[data-zone-gesture="rays"] .sun-rays { animation: ray-burst 1.2s ease-out forwards; opacity: 0.95; }
[data-gesture="look-down-boy-walks"] .zone-boy { transform: translateY(-3%) scale(1.06); }
[data-gesture="wind-lean-speak"] .zone-wind,
[data-gesture="wind-inhale-then-gust"] .zone-wind,
[data-zone-gesture="gust"] .zone-wind { transform: scale(1.04) translateX(2%); }
[data-gesture="wind-settles"] .zone-wind { transform: none; }
[data-gesture="wind-tires-gust-fades"] .zone-wind { transform: translateY(4%) scale(0.96); opacity: 0.95; }
[data-gesture="sun-appears-smiles"] .zone-sun { transform: scale(1.06); }
[data-gesture="golden-rays-fall"] .sun-rays { animation: rays-fall 1.3s ease-out forwards; opacity: 1; }
[data-gesture="wind-surprised"] .zone-wind,
[data-zone-gesture="surprise"] .zone-wind { transform: scale(1.05) translateX(3%); }
[data-gesture="warm-glow-understanding"] .zone-sun { transform: scale(1.04); }

.idle-on .flora-edge { animation: sway 3.2s ease-in-out infinite; }

/* Подпись */
.caption {
  margin: 1rem 0 1.1rem;
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
  line-height: 1.55;
}
.phrase {
  display: inline;
  margin: 0 0.15em 0.35em 0;
  padding: 0.2em 0.28em;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.5;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.phrase:hover { background: rgba(255, 224, 138, 0.45); }
.phrase.is-active {
  background: var(--highlight);
  box-shadow: 0 0 0 1px rgba(184, 134, 11, 0.4);
}
.phrase .word.is-word {
  background: var(--highlight-word);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(160, 110, 10, 0.25);
}

/* Панель */
.panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.9rem 0 1.5rem;
}
.panel-nav, .panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.panel-note label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.note-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-start; }
.note-row textarea {
  flex: 1 1 16rem;
  min-height: 4.4rem;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fffdf6;
  resize: vertical;
}
.note-btns { display: flex; flex-direction: column; gap: 0.35rem; }
.note-flag { margin: 0.3rem 0 0; color: var(--frame-edge); font-weight: 600; }
.share-status { margin: 0; color: var(--btn); }
.panel-limit { margin: 0; }

/* Анимации */
@keyframes pulse-rays {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.03); opacity: 0.7; }
}
@keyframes ray-burst {
  0% { transform: scale(1); opacity: 0.5; }
  40% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1.04); opacity: 0.8; }
}
@keyframes rays-fall {
  0% { transform: scale(1) translateY(-2%); opacity: 0.4; }
  100% { transform: scale(1.1) translateY(2%); opacity: 0.9; }
}
@keyframes sway {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.6deg); }
}
@keyframes leaf-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(40vw, 18vh) rotate(180deg); }
}
@keyframes leaf-storm {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
  70% { opacity: 1; }
  100% { transform: translate(55vw, 8vh) rotate(260deg); opacity: 0.2; }
}
@keyframes dust-up {
  0% { transform: translateY(10px) scale(0.6); background: rgba(166, 140, 96, 0); }
  40% { background: rgba(166, 140, 96, 0.55); }
  100% { transform: translateY(-50px) scale(1.8); background: rgba(166, 140, 96, 0); }
}
@keyframes gust-fade {
  0% { opacity: 0; transform: translateX(-4%); }
  30% { opacity: 0.85; }
  100% { opacity: 0; transform: translateX(6%); }
}
@keyframes bird-arc {
  0% { transform: translate(0, 0); }
  50% { transform: translate(12%, -6%); }
  100% { transform: translate(0, 0); }
}
@keyframes bird-burst {
  0% { transform: translate(0, 0) scale(0.8); opacity: 0.2; }
  40% { opacity: 1; }
  100% { transform: translate(8%, -10%) scale(1); opacity: 0.85; }
}
@keyframes note-pop {
  0% { opacity: 0; transform: translateY(6px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-18px); }
}
@keyframes bloom {
  0% { transform: scale(0.7); }
  100% { transform: scale(1.15); }
}
@keyframes cloud-part {
  0% { opacity: 0.7; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-12%); }
}
@keyframes glow-idle {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.28; }
}
@keyframes glow-up {
  0% { opacity: 0.12; }
  100% { opacity: 0.45; }
}
@keyframes cloak-appear {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0.95; transform: translateY(0); }
}

/* Меньше движения — только класс с html, чтобы ручной переключатель перекрывал систему */
html.reduce-motion .idle-on .sun-rays,
html.reduce-motion .idle-on .leaf,
html.reduce-motion .idle-on .bird,
html.reduce-motion .idle-on .flora-sway,
html.reduce-motion .idle-on .flora-edge,
html.reduce-motion .idle-on .glow,
html.reduce-motion .cloud-veil,
html.reduce-motion .scene-bg {
  animation: none !important;
  transform: none !important;
}
html.reduce-motion .leaf,
html.reduce-motion .dust,
html.reduce-motion .gust-lines,
html.reduce-motion .note { animation: none !important; opacity: 0 !important; }
html.reduce-motion .zone { transition: none; }

/* Адаптив */
@media (max-width: 767px) {
  .book-bar { padding: 0.4rem 0.6rem; }
  .book-running { font-size: 1.05rem; }
  .book-main { padding: 0.6rem 0.6rem 2.5rem; }
  .scene-frame { border-width: 7px; }
  .caption { font-size: 1.12rem; }
  .phrase { display: inline-block; padding: 0.28em 0.35em; }
  .inscription { font-size: 1.05rem; padding: 0.3rem 0.7rem; border-radius: 16px; }
  .panel-nav { justify-content: space-between; }
  .panel-nav .btn { flex: 1 1 auto; }
  [data-scene="p1"] .patch-a { width: 74%; }
  [data-scene="p3"] .patch-a { height: 39%; }
  [data-scene="p4"] .patch-b { height: 30%; }
}
@media (max-width: 379px) {
  .cover-main h1 { font-size: 2.1rem; }
  .btn { padding: 0.4rem 0.7rem; }
  .inscription { font-size: 0.98rem; }
}

@media (min-width: 1200px) {
  .book-main { padding-top: 1.4rem; }
  .caption { font-size: 1.5rem; }
}

.noscript {
  padding: 1rem;
  background: #f3d9b0;
}
