:root {
  --green: #556b38;
  --green-dark: #2f3d26;
  --gold: #c9a84a;
  --rice: #f7f3e6;
  --paper: #efe4cf;
  --brown: #5a3e2b;
  --fruit: #9a4e2e;
  --river: #a8a79a;
  --ink: #2c281f;
  --soft: rgba(247, 243, 230, 0.86);
  --shadow: 0 16px 44px rgba(47, 61, 38, 0.2);
  --display-font: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --body-font: "Noto Sans Thai", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--rice);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  font-size: 17px;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 44px 1fr 130px 44px;
  align-items: center;
  min-height: 58px;
  padding: 0 20px;
  color: var(--rice);
  background: linear-gradient(90deg, #24311f, var(--green-dark));
  border-bottom: 2px solid var(--gold);
}

.corner-mark {
  color: var(--gold);
  font-size: 1.25rem;
  text-align: center;
}

.floating-logo {
  display: none;
}

.floating-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 42px);
  font-size: 1.03rem;
  grid-column: 2;
  font-weight: 400;
}

.nav a {
  position: relative;
  white-space: nowrap;
  opacity: 0.94;
}

.nav a.active,
.nav a:hover {
  color: var(--gold);
}

.nav a.active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  content: "";
  background: var(--gold);
}

.reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  color: var(--rice);
  font-size: 1rem;
  font-weight: 500;
  background: var(--gold);
  border-radius: 999px;
  box-shadow: inset 0 -2px 0 rgba(90, 62, 43, 0.22);
}

.hero {
  position: relative;
  height: clamp(520px, 72vh, 690px);
  overflow: hidden;
  background: var(--green-dark);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-people-cover .hero-bg {
  object-position: 55% 48%;
}

.hero-brand-cover .hero-bg {
  object-position: center center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 9, 0.72), rgba(28, 24, 14, 0.28) 42%, rgba(7, 8, 4, 0.2)),
    linear-gradient(180deg, rgba(47, 61, 38, 0.38), transparent 45%, rgba(15, 18, 12, 0.28));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(820px, 90vw);
  color: white;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.arched {
  margin: 0 0 2px;
  font-size: 1.08rem;
  letter-spacing: 0.34em;
}

.hero h1 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(4.45rem, 7vw, 7.55rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: 0;
}

.seo-h1-tail {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.slogan {
  margin: 8px 0 2px;
  font-family: var(--display-font);
  color: var(--gold);
  font-size: clamp(1.45rem, 2.45vw, 2.45rem);
  font-weight: 500;
  line-height: 1.2;
}

.slogan span,
.hero-title span,
.hero-copy span,
.section-kicker span,
.story-text h2 span,
.story-text p span,
.dish h3 span,
.dish p span,
.pet-copy h2 span,
.pet-copy p span,
.pet-review-feature p span,
.review-card p span {
  display: block;
  color: rgba(247, 243, 230, 0.76);
  font-size: 0.78em;
  font-weight: 500;
  line-height: 1.35;
}

.story-text h2 span,
.story-text p span,
.dish h3 span,
.dish p span,
.review-card p span {
  color: rgba(90, 62, 43, 0.68);
}

.section-kicker span {
  color: rgba(47, 61, 38, 0.66);
  font-size: 0.68em;
}

.slogan span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72em;
}

.hero-title {
  margin: 8px 0 8px;
  font-size: clamp(1.6rem, 2.8vw, 3rem);
  font-weight: 700;
  line-height: 1.16;
}

.divider {
  color: var(--gold);
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 760px;
  margin: 18px auto 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 1.4vw, 1.32rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.hero-actions a,
.small-button,
.outline-button,
.footer .map a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 34px;
  font-size: 1.06rem;
  font-weight: 800;
  border-radius: 8px;
}

.hero-actions a {
  min-width: 176px;
  color: var(--rice);
  background: rgba(85, 107, 56, 0.9);
  border: 1px solid var(--gold);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    filter 0.22s ease;
}

.hero-actions .gold {
  background: rgba(201, 168, 74, 0.92);
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
  transform: translateY(-4px) scale(1.035);
  border-color: var(--rice);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(201, 168, 74, 0.18);
  filter: brightness(1.08);
}

.hero-actions a:not(.gold):hover,
.hero-actions a:not(.gold):focus-visible {
  background: rgba(85, 107, 56, 0.98);
}

.hero-actions .gold:hover,
.hero-actions .gold:focus-visible {
  background: rgba(201, 168, 74, 1);
}

.cream-band {
  position: relative;
  background:
    radial-gradient(circle at 8% 20%, rgba(201, 168, 74, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(247, 243, 230, 0.86)),
    var(--rice);
  border-bottom: 1px solid rgba(201, 168, 74, 0.24);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 760px);
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(44px, 6vw, 74px) clamp(32px, 6vw, 96px);
}

.story-text {
  max-width: 430px;
  margin: 0;
  text-align: left;
}

.section-kicker {
  margin: 0 0 7px;
  font-family: var(--display-font);
  color: var(--green-dark);
  font-size: 1.9rem;
  font-weight: 500;
}

.story-text h2 {
  margin: 0 0 10px;
  font-family: var(--display-font);
  color: var(--green-dark);
  font-size: clamp(1.55rem, 2.2vw, 2.3rem);
  font-weight: 500;
  line-height: 1.35;
}

.story-text p {
  margin: 0 0 16px;
  max-width: 640px;
  color: #4f493f;
  font-size: 1.08rem;
  line-height: 1.74;
}

.small-button {
  min-height: 42px;
  padding: 0 22px;
  color: var(--rice);
  background: var(--green);
  font-size: 1.03rem;
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.story-cards-feature {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 260px));
  justify-content: center;
}

.tv-feature-strip {
  padding: clamp(30px, 4vw, 54px) clamp(20px, 5vw, 72px);
}

.tv-feature-strip .story-cards-feature {
  width: min(920px, 100%);
  margin: 0 auto;
}

figure,
.story-card {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(201, 168, 74, 0.32);
  border-radius: 8px;
  box-shadow: 0 9px 24px rgba(90, 62, 43, 0.08);
}

.story-card {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(90, 62, 43, 0.16);
}

.tv-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 176px;
  padding: 10px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.96), rgba(247, 243, 230, 0.78)),
    var(--rice);
}

.story-card.tv-feature img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

figure img,
.story-card img,
.dish img,
.gallery-row img {
  width: 100%;
  height: 136px;
  object-fit: cover;
}

figcaption {
  padding: 9px 10px 10px;
  color: var(--brown);
  font-weight: 800;
  text-align: center;
}

.clip-section {
  padding: clamp(42px, 5vw, 72px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 168, 74, 0.1), transparent 25%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 228, 207, 0.78)),
    var(--rice);
}

.clip-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  clear: both;
}

.clip-heading {
  max-width: 760px;
  margin: 0 auto 26px;
  text-align: center;
}

.clip-heading h1,
.clip-heading h2 {
  margin: 0;
  font-family: var(--display-font);
  color: var(--green-dark);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
}

.clip-heading h1 span,
.clip-heading h2 span {
  display: block;
  color: rgba(90, 62, 43, 0.66);
  font-size: 0.72em;
  font-weight: 500;
}

.clips-page .clip-section {
  min-height: calc(100vh - 58px);
  padding-top: clamp(88px, 8vw, 128px);
}

.clip-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(201, 168, 74, 0.46);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(47, 61, 38, 0.12);
  display: flex;
  flex-direction: column;
}

.clip-card video {
  display: block;
  width: 100%;
  min-width: 0;
  background: var(--green-dark);
}

.clip-card figcaption {
  min-height: 66px;
  padding: 14px 14px 15px;
  color: var(--brown);
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.clip-card figcaption span {
  display: block;
  margin-top: 2px;
  color: rgba(90, 62, 43, 0.62);
  font-family: var(--body-font);
  font-size: 0.88rem;
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  clear: both;
}

.video-grid video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: center;
}

.menu-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 168, 74, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 228, 207, 0.86)),
    var(--rice);
}

.menu-topbar .floating-logo {
  width: 86px;
  height: 86px;
}

.menu-viewer {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 8vw, 122px) 0 clamp(48px, 7vw, 86px);
}

.menu-book-intro {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.menu-book-intro h1 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.45rem);
  font-weight: 600;
  line-height: 1.12;
}

.menu-book-intro h1 span,
.menu-book-intro p span {
  display: block;
  color: rgba(90, 62, 43, 0.68);
  font-size: 0.62em;
  font-weight: 600;
}

.menu-book-intro p {
  margin: 0 auto 20px;
  max-width: 700px;
  color: #51483a;
  font-size: 1.1rem;
  line-height: 1.65;
}

.menu-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cookbook-stage {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  width: 100%;
  margin: 0 auto 20px;
}

.cookbook-cover-card,
.cookbook-reader {
  border: 1px solid rgba(201, 168, 74, 0.46);
  box-shadow: 0 22px 54px rgba(90, 62, 43, 0.16);
}

.cookbook-cover-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  color: var(--rice);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(47, 61, 38, 0.96), rgba(85, 107, 56, 0.86)),
    var(--green-dark);
  border-radius: 16px;
}

.cookbook-cover-card p {
  margin: 0;
  color: var(--gold);
  font-family: var(--display-font);
  font-size: 1.55rem;
  font-weight: 700;
}

.cookbook-cover-card img {
  width: 100%;
  aspect-ratio: 9 / 14;
  object-fit: contain;
  padding: 10px;
  background: rgba(247, 243, 230, 0.94);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(201, 168, 74, 0.28);
}

.cookbook-cover-card span {
  color: rgba(247, 243, 230, 0.76);
  font-size: 0.9rem;
}

.cookbook-reader {
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.82), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(239, 228, 207, 0.78)),
    var(--paper);
  border-radius: 18px;
}

.book-controls {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.flip-btn {
  width: 48px;
  height: 48px;
  color: var(--rice);
  background: var(--green);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(47, 61, 38, 0.18);
}

.flip-btn:hover {
  background: var(--green-dark);
}

.menu-counter {
  margin: 0;
  color: var(--brown);
  font-weight: 800;
  text-align: center;
}

.book-spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr);
  min-height: 520px;
  padding: clamp(12px, 1.6vw, 20px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(90, 62, 43, 0.12), transparent 8%, transparent 92%, rgba(90, 62, 43, 0.12)),
    #fffdf6;
  border: 1px solid rgba(201, 168, 74, 0.38);
  border-radius: 14px;
}

.book-spread.is-loading::after {
  content: "กำลังเปิดหน้าเมนู...";
  position: absolute;
  inset: auto 18px 18px;
  padding: 9px 12px;
  color: var(--rice);
  background: rgba(47, 61, 38, 0.78);
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
}

.book-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: clamp(8px, 1.4vw, 14px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 230, 0.76)),
    #fffaf0;
}

.left-page {
  border-radius: 10px 2px 2px 10px;
  box-shadow: inset -18px 0 26px rgba(90, 62, 43, 0.08);
}

.right-page {
  border-radius: 2px 10px 10px 2px;
  box-shadow: inset 18px 0 26px rgba(90, 62, 43, 0.08);
}

.book-gutter {
  background:
    linear-gradient(90deg, rgba(90, 62, 43, 0.18), rgba(255, 255, 255, 0.7), rgba(90, 62, 43, 0.18));
  box-shadow: 0 0 24px rgba(90, 62, 43, 0.14);
}

.book-page img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(47, 61, 38, 0.16);
}

.book-page img[hidden] {
  display: none;
}

.menu-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 10px;
  width: min(920px, 100%);
  margin: 18px auto 0;
}

.menu-thumbs button {
  min-height: 62px;
  padding: 6px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(201, 168, 74, 0.45);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.menu-thumbs button.active,
.menu-thumbs button:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(85, 107, 56, 0.18);
}

.menu-thumbs img {
  width: 100%;
  height: 82px;
  object-fit: cover;
  border-radius: 5px;
}

.story-section {
  clear: both;
  grid-template-columns: minmax(0, 760px);
  margin-top: 40px;
}

.story-section .story-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.story-section .story-text p {
  margin-right: auto;
  margin-left: auto;
}

.story-visual {
  width: min(100%, 390px);
  margin: 0;
  justify-self: center;
}

.story-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(201, 168, 74, 0.46);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(90, 62, 43, 0.18);
}

.story-section .story-cards-feature {
  grid-column: 1 / -1;
  width: min(1160px, 100%);
  justify-self: center;
}

.story-gallery-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(201, 168, 74, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(239, 228, 207, 0.86)),
    var(--rice);
}

.story-gallery-shell {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) 0 clamp(48px, 7vw, 88px);
}

.grandma-story {
  display: block;
  width: min(920px, 100%);
  margin: 0 auto clamp(42px, 6vw, 72px);
  padding: clamp(18px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 168, 74, 0.38);
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(90, 62, 43, 0.12);
  scroll-margin-top: 86px;
}

.grandma-story-copy {
  max-width: 820px;
  margin: 0 auto;
  color: #3b342a;
}

.grandma-story-copy h1 {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.18;
}

.grandma-story-copy p {
  margin: 0 0 1.05em;
  color: #4c4235;
  font-size: clamp(1.02rem, 1.15vw, 1.13rem);
  line-height: 1.88;
}

.grandma-story-copy .section-kicker {
  margin-bottom: 10px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.grandma-story-copy .section-kicker span {
  display: block;
  color: rgba(90, 62, 43, 0.62);
  font-size: 0.78em;
  letter-spacing: 0;
}

.story-gallery-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.story-gallery-intro h1 {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-family: var(--display-font);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 600;
  line-height: 1.18;
}

.story-gallery-intro h1 span,
.story-gallery-intro p span {
  display: block;
  color: rgba(90, 62, 43, 0.66);
  font-size: 0.64em;
  font-weight: 600;
}

.story-gallery-intro p {
  margin: 0 auto;
  max-width: 640px;
  color: #51483a;
  font-size: 1.08rem;
  line-height: 1.7;
}

.story-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.story-page-card {
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(201, 168, 74, 0.46);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(47, 61, 38, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.story-page-card img {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  background: rgba(247, 243, 230, 0.74);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.story-page-card figcaption {
  min-height: 48px;
  padding: 12px;
  color: var(--brown);
  font-family: var(--display-font);
  font-size: 1.05rem;
}

@media (hover: hover) and (pointer: fine) {
  .story-page-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 74, 0.78);
    box-shadow: 0 20px 42px rgba(90, 62, 43, 0.18);
  }

  .story-page-card:hover img {
    transform: scale(1.025);
    filter: saturate(1.06) contrast(1.02);
  }
}

.video-section {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(520px, 820px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(44px, 6vw, 76px) clamp(28px, 6vw, 96px);
  background:
    linear-gradient(90deg, rgba(47, 61, 38, 0.09), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(239, 228, 207, 0.66)),
    var(--rice);
}

.video-copy {
  max-width: 420px;
}

.video-copy h2 {
  margin: 0 0 12px;
  font-family: var(--display-font);
  color: var(--green-dark);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.28;
}

.video-copy h2 span,
.video-copy p span {
  display: block;
  color: rgba(90, 62, 43, 0.66);
  font-size: 0.64em;
  font-weight: 500;
  line-height: 1.35;
}

.video-copy p {
  margin: 0;
  color: #4f493f;
  line-height: 1.78;
}

.video-frame {
  overflow: hidden;
  background: var(--green-dark);
  border: 1px solid rgba(201, 168, 74, 0.42);
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(47, 61, 38, 0.18);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--green-dark);
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--brown);
}

.section-title span {
  height: 1px;
  background: rgba(90, 62, 43, 0.28);
}

.section-title h1,
.section-title h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.7rem;
  font-weight: 500;
}

.section-title h1::before,
.section-title h1::after,
.section-title h2::before,
.section-title h2::after {
  content: "✥";
  padding: 0 14px;
  color: var(--gold);
  font-size: 1rem;
}

.menu-wrap {
  padding: clamp(28px, 5vw, 58px) clamp(24px, 6vw, 96px);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dish {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 168, 74, 0.38);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(90, 62, 43, 0.09);
}

.menu-photo-card {
  aspect-ratio: 9 / 16;
  min-height: 0;
}

.menu-photo-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.view-count {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(201, 168, 74, 0.72);
  border-radius: 999px;
  background: rgba(35, 58, 30, 0.86);
  color: var(--rice);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(35, 58, 30, 0.22);
  backdrop-filter: blur(5px);
}

.dish h3 {
  margin: 12px 12px 4px;
  font-family: var(--display-font);
  color: var(--brown);
  font-size: 1.12rem;
  font-weight: 500;
}

.dish p {
  margin: 0 auto 14px;
  width: 82%;
  color: #5f574a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pet-section {
  display: grid;
  grid-template-columns: 148px 1fr minmax(280px, 410px);
  align-items: center;
  min-height: 160px;
  color: var(--rice);
  background:
    linear-gradient(90deg, rgba(47, 61, 38, 0.98), rgba(85, 107, 56, 0.94)),
    var(--green-dark);
  border-top: 2px solid rgba(201, 168, 74, 0.72);
  border-bottom: 2px solid rgba(201, 168, 74, 0.72);
}

.paw {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-left: clamp(24px, 6vw, 70px);
  color: var(--gold);
  font-size: 3.4rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.pet-copy {
  padding: 26px 24px;
}

.gold-text {
  color: var(--gold);
}

.pet-copy h2 {
  margin: 0 0 5px;
  font-family: var(--display-font);
  font-size: 1.9rem;
  font-weight: 500;
}

.pet-copy p {
  margin: 0 0 14px;
  max-width: 560px;
  color: rgba(247, 243, 230, 0.88);
  line-height: 1.65;
}

.outline-button {
  min-height: 34px;
  padding: 0 18px;
  color: var(--rice);
  border: 1px solid rgba(247, 243, 230, 0.72);
  font-size: 0.88rem;
}

.pet-review-feature {
  min-height: 160px;
  padding: 24px 28px;
  background:
    linear-gradient(135deg, rgba(247, 243, 230, 0.94), rgba(239, 228, 207, 0.86)),
    var(--rice);
  color: var(--green-dark);
  border-left: 2px solid rgba(201, 168, 74, 0.72);
}

.pet-review-feature span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
}

.pet-review-feature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.pet-review-feature strong em {
  display: block;
  color: rgba(90, 62, 43, 0.7);
  font-size: 0.76em;
  font-style: normal;
}

.pet-review-feature p {
  margin: 0;
  color: #5a5143;
  line-height: 1.65;
}

.gallery {
  padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 96px);
}

.gallery-page {
  min-height: calc(100vh - 58px);
  padding-top: clamp(90px, 8vw, 130px);
}

.gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.pet-reviews {
  padding: 26px clamp(32px, 6vw, 96px) 30px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
}

.review-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-height: 410px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(201, 168, 74, 0.42);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(90, 62, 43, 0.09);
}

.review-card p {
  margin: 0;
  color: #4f493f;
  font-weight: 700;
  line-height: 1.55;
}

.pet-portrait {
  position: relative;
  width: 220px;
  aspect-ratio: 9 / 16;
  height: auto;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--gold);
  border-radius: 8px;
}

.pet-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-portrait::before {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 52px;
  height: 46px;
  content: "";
  background: var(--green);
  border-radius: 50% 50% 45% 45%;
  transform: translateX(-50%);
}

.pet-portrait::after {
  position: absolute;
  left: 50%;
  top: 65px;
  width: 58px;
  height: 28px;
  content: "";
  background: var(--brown);
  border-radius: 50% 50% 8px 8px;
  transform: translateX(-50%);
}

.cat-one .pet-portrait,
.cat-two .pet-portrait,
.cat-three .pet-portrait {
  background:
    radial-gradient(circle at 28% 22%, var(--gold) 0 9px, transparent 10px),
    radial-gradient(circle at 72% 22%, var(--gold) 0 9px, transparent 10px),
    linear-gradient(180deg, #f7f3e6, #efe4cf);
}

.dog-one .pet-portrait,
.dog-two .pet-portrait,
.dog-three .pet-portrait {
  background:
    radial-gradient(circle at 20% 32%, #5a3e2b 0 14px, transparent 15px),
    radial-gradient(circle at 80% 32%, #5a3e2b 0 14px, transparent 15px),
    linear-gradient(180deg, #f7f3e6, #efe4cf);
}

.cat-two .pet-portrait::before,
.dog-two .pet-portrait::before {
  background: var(--fruit);
}

.cat-three .pet-portrait::before,
.dog-three .pet-portrait::before {
  background: var(--gold);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.gallery-row img {
  width: 100%;
  height: clamp(160px, 13vw, 220px);
  object-fit: cover;
  border: 1px solid rgba(201, 168, 74, 0.42);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(90, 62, 43, 0.12);
}

.gallery-row-full img {
  height: clamp(190px, 16vw, 280px);
}

.footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 26px;
  padding: 20px clamp(28px, 6vw, 86px);
  color: var(--rice);
  background:
    linear-gradient(90deg, rgba(47, 61, 38, 0.96), rgba(68, 82, 47, 0.96)),
    var(--green-dark);
  border-top: 2px solid var(--gold);
}

.footer-brand {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: center;
}

.footer-brand img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.footer h2,
.footer h3,
.footer p {
  margin: 0;
}

.footer h2 {
  font-family: var(--display-font);
  color: var(--gold);
  font-size: 1.8rem;
  font-weight: 500;
}

.footer h3 {
  margin-bottom: 8px;
  font-family: var(--display-font);
  color: var(--gold);
  font-weight: 600;
}

.footer h3 small {
  display: block;
  margin-top: 2px;
  color: rgba(247, 243, 230, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.footer p {
  color: rgba(247, 243, 230, 0.82);
  line-height: 1.55;
}

.footer .en-small {
  color: rgba(247, 243, 230, 0.66);
  font-size: 0.86rem;
  line-height: 1.4;
}

.footer span {
  display: block;
  margin-top: 5px;
  color: rgba(247, 243, 230, 0.72);
  letter-spacing: 0.16em;
}

.footer-block {
  padding-left: 26px;
  border-left: 1px solid rgba(201, 168, 74, 0.46);
}

.social-links {
  display: grid;
  gap: 7px;
  margin: 10px 0 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(247, 243, 230, 0.88);
  font-weight: 700;
}

.social-links a:hover {
  color: var(--gold);
}

.phone-link {
  color: var(--rice);
  font-weight: 800;
}

.phone-link:hover {
  color: var(--gold);
}

.social-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  color: var(--green-dark);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.footer .map a {
  min-height: 34px;
  margin-top: 9px;
  padding: 0 16px;
  color: var(--rice);
  border: 1px solid var(--gold);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 12px 18px;
  }

  .corner-mark,
  .reserve {
    display: none;
  }

  .floating-logo {
    position: static;
    width: 84px;
    height: 84px;
    grid-column: 1;
  }

  .nav {
    grid-column: 2;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
  }

  .nav a.active::after {
    display: none;
  }

  .hero {
    height: 620px;
  }

  .hero-content {
    left: 50%;
    width: min(560px, 88vw);
  }

  .intro,
  .video-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-text,
  .video-copy {
    max-width: 760px;
    text-align: center;
    margin: 0 auto;
  }

  .story-section .story-text {
    text-align: center;
    margin: 0 auto;
  }

  .story-section .story-text p {
    margin-right: auto;
    margin-left: auto;
  }

  .story-visual {
    width: min(100%, 360px);
  }

  .vertical-clips {
    gap: 16px;
  }

  .vertical-clips .clip-card {
    flex-basis: 220px;
    max-width: 250px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  }

  .paw {
    margin-top: 28px;
  }

  .review-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 84px 1fr;
    row-gap: 10px;
  }

  .floating-logo {
    width: 72px;
    height: 72px;
  }

  .menu-topbar .floating-logo {
    width: 72px;
    height: 72px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: center;
    gap: 10px 16px;
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .nav a {
    white-space: normal;
    text-align: center;
  }

  .pet-section {
    grid-template-columns: 1fr;
    padding: 30px 22px;
    text-align: center;
  }

  .paw {
    margin: 0 auto;
  }

  .pet-copy {
    padding: 18px 0;
  }

  .pet-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .pet-review-feature {
    border-left: 0;
    border-top: 2px solid rgba(201, 168, 74, 0.72);
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  }

  .review-card {
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 330px;
  }

  .pet-portrait {
    width: 180px;
  }

  .gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flip-btn {
    width: 46px;
    height: 46px;
    font-size: 2rem;
  }

  .cookbook-stage {
    grid-template-columns: 1fr;
  }

  .cookbook-cover-card {
    width: min(310px, 100%);
    justify-self: center;
  }

  .book-spread {
    min-height: 460px;
  }
}

@media (max-width: 600px) {
  .topbar {
    display: block;
    min-height: 38px;
    padding: 4px 6px;
  }

  .floating-logo {
    display: none;
  }

  .menu-topbar .floating-logo {
    display: none;
  }

  .nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0;
    font-size: 0.7rem;
    line-height: 1;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 8px;
    white-space: nowrap;
    background: rgba(247, 243, 230, 0.08);
    border: 1px solid rgba(201, 168, 74, 0.16);
    border-radius: 999px;
  }

  .hero {
    height: 640px;
  }

  .hero-people-cover .hero-bg {
    object-position: 58% 50%;
  }

  .hero-content {
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    transform: translate(-50%, -50%);
    width: 88vw;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .intro,
  .clip-section,
  .video-section,
  .menu-wrap,
  .gallery {
    padding-left: 18px;
    padding-right: 18px;
  }

  .vertical-clips {
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
  }

  .vertical-clips .clip-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .video-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
  }

  .menu-viewer {
    width: min(100% - 24px, 420px);
    padding-top: 34px;
  }

  .flip-btn {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .cookbook-cover-card {
    width: min(240px, 100%);
    padding: 12px;
  }

  .cookbook-reader {
    padding: 10px;
  }

  .book-controls {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .book-spread {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 10px;
  }

  .book-gutter {
    display: none;
  }

  .book-page {
    border-radius: 10px;
    box-shadow: none;
  }

  .book-page + .book-page {
    margin-top: 12px;
  }

  .book-page img {
    max-height: 68vh;
  }

  .menu-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .menu-thumbs img {
    height: 82px;
  }

  .story-section {
    margin-top: 34px;
  }

  .story-cards,
  .menu-grid,
  .gallery-row,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    min-height: 250px;
  }

  .pet-portrait {
    width: 140px;
  }

  figure img,
  .story-card img,
  .dish img,
  .gallery-row img {
    height: 210px;
  }

.dish.menu-photo-card {
  min-height: 0;
  aspect-ratio: 9 / 16;
}

  .dish.menu-photo-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .view-count {
    top: 9px;
    right: 9px;
    min-height: 26px;
    padding: 4px 8px;
    font-size: 0.68rem;
  }

  .pet-copy h2,
  .section-title h2 {
    font-size: 1.35rem;
  }

  .footer-block {
    padding-left: 0;
    border-left: 0;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 18px;
  }

  .footer-brand {
    grid-template-columns: 72px 1fr;
  }

  .footer-brand img {
    width: 72px;
    height: 72px;
  }
}

.story-page-card figure {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.story-page-card figcaption span {
  display: block;
  margin-top: 2px;
  color: rgba(90, 62, 43, 0.62);
  font-family: var(--body-font);
  font-size: 0.82rem;
  font-weight: 600;
}

.story-gallery-page .story-page-card img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  .story-gallery-shell {
    width: min(100% - 24px, 520px);
    padding-top: 34px;
  }

  .grandma-story {
    padding: 14px;
    border-radius: 12px;
  }

  .grandma-story-copy p {
    font-size: 1rem;
    line-height: 1.78;
  }

  .story-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.story-card,
.dish,
.clip-card,
.plant-card,
.review-card,
.pet-review-feature,
.menu-thumbs button,
.footer-brand img,
.social-links a,
.gallery-row img {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    filter 0.24s ease;
}

.story-card img,
.dish img,
.gallery-row img,
.pet-portrait img,
.photo-art img,
.clip-card video,
.book-page img,
.cookbook-cover-card img,
.footer-brand img {
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .story-card:hover,
  .dish:hover,
  .clip-card:hover,
  .plant-card:hover,
  .review-card:hover,
  .pet-review-feature:hover,
  .book-page:hover,
  .cookbook-cover-card:hover,
  .menu-thumbs button:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 74, 0.78);
    box-shadow: 0 18px 38px rgba(90, 62, 43, 0.18);
  }

  .story-card:hover img,
  .dish:hover img,
  .pet-portrait:hover img,
  .photo-art:hover img,
  .clip-card:hover video,
  .book-page:hover img,
  .cookbook-cover-card:hover img,
  .footer-brand:hover img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.03);
  }

  .story-card.tv-feature:hover img {
    transform: scale(1.1);
  }

  .gallery-row img:hover {
    position: relative;
    z-index: 2;
    transform: translateY(-5px) scale(1.035);
    filter: saturate(1.08) contrast(1.03);
    box-shadow: 0 20px 42px rgba(90, 62, 43, 0.22);
  }

  .social-links a:hover {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-card,
  .dish,
  .clip-card,
  .plant-card,
  .review-card,
  .pet-review-feature,
  .book-page,
  .cookbook-cover-card,
  .menu-thumbs button,
  .gallery-row img,
  .story-card img,
  .dish img,
  .pet-portrait img,
  .photo-art img,
  .clip-card video,
  .book-page img,
  .cookbook-cover-card img {
    transition: none;
  }
}

/* Menu flipbook page */
.menu-book-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 168, 74, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(247, 243, 230, 0.96), rgba(239, 228, 207, 0.9));
}

.menu-book-page .menu-viewer {
  width: min(1180px, calc(100% - 32px));
  padding-top: clamp(48px, 6vw, 82px);
}

.flipbook-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 2vw, 26px);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.8), transparent 46%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(239, 228, 207, 0.76));
  border: 1px solid rgba(201, 168, 74, 0.48);
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(90, 62, 43, 0.16);
}

.book-toolbar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.book-nav {
  width: 52px;
  height: 52px;
  color: var(--rice);
  background: var(--green);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 2.2rem;
  line-height: 0.8;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(47, 61, 38, 0.18);
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.book-nav:hover {
  background: var(--green-dark);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 34px rgba(47, 61, 38, 0.24);
}

.book-nav:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.book-page-status {
  margin: 0;
  color: var(--brown);
  font-weight: 500;
  text-align: center;
}

.book-stage {
  perspective: 1800px;
}

.book-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  min-height: min(76vh, 760px);
  padding: clamp(14px, 2vw, 24px);
  overflow: hidden;
  cursor: pointer;
  background:
    linear-gradient(90deg, rgba(90, 62, 43, 0.14), transparent 9%, transparent 91%, rgba(90, 62, 43, 0.14)),
    #fffdf7;
  border: 1px solid rgba(201, 168, 74, 0.4);
  border-radius: 16px;
  box-shadow:
    inset 0 0 32px rgba(90, 62, 43, 0.08),
    0 24px 52px rgba(47, 61, 38, 0.16);
  transform-style: preserve-3d;
}

.paper-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: clamp(8px, 1.4vw, 16px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 230, 0.78)),
    #fffaf0;
  border: 1px solid rgba(201, 168, 74, 0.28);
}

.paper-left {
  border-radius: 12px 3px 3px 12px;
  box-shadow: inset -24px 0 34px rgba(90, 62, 43, 0.08);
}

.paper-right {
  border-radius: 3px 12px 12px 3px;
  box-shadow: inset 24px 0 34px rgba(90, 62, 43, 0.08);
}

.paper-page[hidden] {
  display: none;
}

.book-fold {
  width: 18px;
  background:
    linear-gradient(90deg, rgba(90, 62, 43, 0.18), rgba(255, 255, 255, 0.82), rgba(90, 62, 43, 0.2));
  box-shadow: 0 0 28px rgba(90, 62, 43, 0.18);
}

.paper-page img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(47, 61, 38, 0.16);
  user-select: none;
}

.paper-turning {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 5;
  display: none;
  width: calc((100% - 18px) / 2);
  transform-origin: left center;
  backface-visibility: hidden;
}

.book-shell.turn-next .paper-turning,
.book-shell.turn-prev .paper-turning {
  display: flex;
}

.book-shell.turn-next .paper-turning {
  animation: khotPageTurnNext 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-shell.turn-prev .paper-turning {
  right: auto;
  left: clamp(14px, 2vw, 24px);
  transform-origin: right center;
  animation: khotPageTurnPrev 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-shell.single-page {
  grid-template-columns: minmax(0, min(620px, 100%));
  justify-content: center;
  min-height: 0;
}

.book-shell.single-page .book-fold,
.book-shell.single-page .paper-right {
  display: none;
}

.book-shell.single-page .paper-left {
  border-radius: 14px;
  box-shadow: inset 0 -18px 28px rgba(90, 62, 43, 0.08);
}

.book-shell.single-page .paper-turning {
  left: 50%;
  right: auto;
  width: min(620px, calc(100% - 28px));
  transform: translateX(-50%);
  transform-origin: right center;
}

.book-hint {
  margin: 14px 0 0;
  color: rgba(90, 62, 43, 0.72);
  font-size: 0.92rem;
  text-align: center;
}

.book-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 10px;
  width: min(960px, 100%);
  margin: 18px auto 0;
}

.book-thumbs button {
  display: grid;
  gap: 6px;
  align-items: center;
  padding: 7px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(201, 168, 74, 0.48);
  border-radius: 9px;
  cursor: pointer;
  font-weight: 500;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.book-thumbs img {
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  border-radius: 5px;
}

.book-thumbs button.active,
.book-thumbs button:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(85, 107, 56, 0.18);
  transform: translateY(-2px);
}

@keyframes khotPageTurnNext {
  0% {
    transform: rotateY(0deg);
    filter: brightness(1);
  }

  48% {
    filter: brightness(0.74);
    box-shadow: -28px 16px 40px rgba(47, 61, 38, 0.22);
  }

  100% {
    transform: rotateY(-178deg);
    filter: brightness(0.92);
  }
}

@keyframes khotPageTurnPrev {
  0% {
    transform: rotateY(0deg);
    filter: brightness(1);
  }

  48% {
    filter: brightness(0.74);
    box-shadow: 28px 16px 40px rgba(47, 61, 38, 0.22);
  }

  100% {
    transform: rotateY(178deg);
    filter: brightness(0.92);
  }
}

@media (max-width: 900px) {
  .book-shell {
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr);
    padding: 14px;
  }

  .book-fold {
    width: 14px;
  }

  .paper-page img {
    height: min(66vh, 620px);
  }
}

@media (max-width: 700px) {
  .menu-book-page .menu-viewer {
    width: min(100% - 22px, 460px);
    padding-top: 30px;
  }

  .menu-book-intro {
    margin-bottom: 18px;
  }

  .menu-book-intro h1 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .menu-book-intro p {
    font-size: 0.98rem;
  }

  .flipbook-panel {
    padding: 10px;
    border-radius: 14px;
  }

  .book-toolbar {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .book-nav {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .book-shell {
    padding: 10px;
    border-radius: 12px;
  }

  .paper-page {
    padding: 8px;
  }

  .paper-page img {
    height: auto;
    max-height: none;
  }

  .book-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .book-thumbs button {
    padding: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-shell.turn-next .paper-turning,
  .book-shell.turn-prev .paper-turning {
    animation: none;
  }
}
