:root {
  color-scheme: light;
  --paper: #eee8e3;
  --paper-2: #e4ddd7;
  --cream: #fffaf4;
  --ink: #171717;
  --muted: #6e6660;
  --red: #d82018;
  --teal: #4e9ca5;
  --orange: #ef5a00;
  --shadow: 0 18px 55px rgb(31 25 21 / 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
}

html { scroll-behavior: smooth; }

body {
  position: relative;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgb(255 255 255 / .55), transparent 27rem),
    radial-gradient(circle at 90% 35%, rgb(210 195 184 / .32), transparent 24rem),
    linear-gradient(135deg, var(--paper), var(--paper-2));
}

body.modal-open { overflow: hidden; }

/* =====================
   AMBIENT BACKGROUND
   ===================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgb(23 23 23 / .035);
  border-radius: 50%;
}

.ambient::before { left: -95px; top: 28%; }
.ambient::after { right: -110px; bottom: 15%; width: 240px; height: 240px; }

.ambient-item {
  position: absolute;
  width: clamp(90px, 11vw, 170px);
  opacity: .14;
  filter: saturate(.88);
  will-change: transform;
  user-select: none;
}

.ambient-cat {
  left: max(-38px, calc(50% - 555px));
  top: 7vh;
  animation: floatA 9s ease-in-out infinite alternate;
}

.ambient-coffee {
  right: max(-35px, calc(50% - 560px));
  top: 22vh;
  width: clamp(85px, 10vw, 150px);
  animation: floatB 12s ease-in-out infinite alternate;
}

.ambient-books {
  left: max(-55px, calc(50% - 585px));
  top: 55vh;
  transform: rotate(-7deg);
  animation: floatC 14s ease-in-out infinite alternate;
}

.ambient-beans {
  right: max(-25px, calc(50% - 520px));
  top: 68vh;
  width: clamp(70px, 8vw, 120px);
  animation: floatA 11s ease-in-out infinite alternate-reverse;
}

.ambient-tree {
  right: max(-60px, calc(50% - 620px));
  bottom: -40px;
  width: clamp(130px, 16vw, 240px);
  opacity: .10;
  animation: floatC 16s ease-in-out infinite alternate;
}

.ambient-sleep {
  left: max(-45px, calc(50% - 580px));
  bottom: 4vh;
  width: clamp(110px, 14vw, 210px);
  opacity: .12;
  animation: floatB 13s ease-in-out infinite alternate-reverse;
}

@keyframes floatA { from { transform: translate3d(0,0,0) rotate(-2deg); } to { transform: translate3d(7px,-12px,0) rotate(2deg); } }
@keyframes floatB { from { transform: translate3d(0,0,0) rotate(2deg); } to { transform: translate3d(-9px,10px,0) rotate(-2deg); } }
@keyframes floatC { from { transform: translate3d(0,0,0) rotate(-4deg); } to { transform: translate3d(5px,-8px,0) rotate(1deg); } }

/* =====================
   MENU CARDS
   ===================== */
.menu {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 18px), 760px);
  margin: 0 auto;
  padding: 9px 0 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

body.is-loaded .menu {
  opacity: 1;
  transform: translateY(0);
}

.menu-page {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 10px;
  padding: 0;
  border-radius: 9px;
  box-shadow: 0 5px 20px rgb(20 15 12 / .08);
  background: #fff;
}

/* =====================
   LOADER
   ===================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, #fff 0, #f8f3ee 32%, #eee6df 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgb(23 23 23 / .035) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.loader-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  text-align: center;
}

.loader-logo {
  width: clamp(150px, 46vw, 225px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / .08));
  animation: logoBreathe 2s ease-in-out infinite;
}

.loader-subtitle {
  margin: 7px 0 6px;
  color: var(--muted);
  font-size: .93rem;
  letter-spacing: .04em;
}

.loader-doodle {
  position: absolute;
  z-index: 1;
  opacity: .13;
  pointer-events: none;
}

.loader-doodle img { display: block; width: 100%; height: auto; }
.loader-doodle-left { width: clamp(120px, 25vw, 210px); left: -30px; bottom: 2vh; transform: rotate(-10deg); }
.loader-doodle-right { width: clamp(115px, 23vw, 200px); right: -25px; top: 3vh; transform: rotate(9deg); }

.cat-stage {
  position: relative;
  width: min(84vw, 350px);
  height: 100px;
  margin-top: 4px;
  overflow: hidden;
}

.cat-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #cec4bc 11%, #bfb4ac 89%, transparent);
}

.cat-walker {
  position: absolute;
  left: -92px;
  bottom: 16px;
  width: 92px;
  height: 72px;
  animation: catWalkAcross 2.8s linear infinite;
}

.cat { position: relative; width: 92px; height: 72px; animation: catBob .55s ease-in-out infinite alternate; }
.cat-body { position:absolute; left:19px; top:23px; width:42px; height:24px; background:#111; border-radius:50% 46% 52% 48% / 55% 55% 45% 45%; }
.cat-head { position:absolute; left:54px; top:15px; width:24px; height:22px; background:#111; border-radius:50%; }
.cat-ear { position:absolute; top:-6px; width:9px; height:11px; background:#111; clip-path:polygon(50% 0,0 100%,100% 100%); }
.cat-ear.left { left:2px; transform:rotate(-10deg); }
.cat-ear.right { right:2px; transform:rotate(12deg); }
.cat-eye { position:absolute; top:8px; width:2px; height:2px; background:#f3f0ea; border-radius:50%; }
.cat-eye.left { left:7px; } .cat-eye.right { right:7px; }
.cat-nose { position:absolute; left:50%; bottom:5px; width:4px; height:3px; background:#f3f0ea; border-radius:50%; transform:translateX(-50%); }
.cat-tail { position:absolute; left:8px; top:16px; width:25px; height:8px; border-radius:999px; background:#111; transform-origin:right center; transform:rotate(32deg); animation:tailSwish .55s ease-in-out infinite alternate; }
.cat-leg { position:absolute; top:40px; width:7px; height:23px; background:#111; border-radius:5px; transform-origin:top center; }
.cat-leg::after { content:""; position:absolute; left:-1px; bottom:-2px; width:10px; height:4px; background:#111; border-radius:999px; }
.cat-leg.front { left:54px; } .cat-leg.rear { left:28px; }
.cat-leg.back { animation:legBack .55s ease-in-out infinite; }
.cat-leg.frontmost { animation:legFront .55s ease-in-out infinite; }
.cat-leg.front.back, .cat-leg.rear.frontmost { animation-delay:-.275s; }

@keyframes logoBreathe { 0%,100% { transform: translateY(0) scale(.99); } 50% { transform: translateY(-4px) scale(1.02); } }
@keyframes catWalkAcross { from { transform:translateX(0); } to { transform:translateX(calc(min(84vw, 350px) + 105px)); } }
@keyframes catBob { from { transform:translateY(0); } to { transform:translateY(-2px); } }
@keyframes tailSwish { from { transform:rotate(22deg); } to { transform:rotate(38deg); } }
@keyframes legFront { 0%,100% { transform:rotate(20deg); } 50% { transform:rotate(-20deg); } }
@keyframes legBack { 0%,100% { transform:rotate(-20deg); } 50% { transform:rotate(20deg); } }

/* =====================
   NOTICE POPUP
   ===================== */
.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgb(35 29 25 / .48);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.notice-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.notice-card {
  position: relative;
  width: min(100%, 480px);
  overflow: hidden;
  padding: 42px 30px 28px;
  border: 1px solid rgb(33 28 24 / .08);
  border-radius: 24px 24px 17px 17px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .5), transparent 30%),
    #f5eee8;
  box-shadow: var(--shadow);
  transform: translateY(18px) scale(.965) rotate(-.25deg);
  transition: transform 340ms cubic-bezier(.2,.8,.2,1);
}

.notice-overlay.is-visible .notice-card {
  transform: translateY(0) scale(1) rotate(0deg);
}

.notice-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--red) 0 31%, var(--teal) 31% 66%, #f2b747 66% 100%);
}

.notice-kicker {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.notice-card h1 {
  position: relative;
  z-index: 2;
  max-width: 74%;
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 5.2vw, 2rem);
  line-height: 1.05;
}

.notice-copy {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  line-height: 1.58;
}

.notice-copy p { margin: 0 0 13px; }
.notice-copy strong { color: #b9251c; }
.notice-thanks { color: var(--muted); font-size: .92rem; }

.notice-button {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 5px;
  padding: 14px 18px;
  border: 0;
  border-radius: 13px;
  background: #191919;
  color: #fff;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 7px 0 #d3c9c1;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.notice-button:hover { transform: translateY(-1px); box-shadow: 0 8px 0 #d3c9c1; }
.notice-button:active { transform: translateY(3px); box-shadow: 0 3px 0 #d3c9c1; }
.notice-button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.notice-cat {
  position: absolute;
  z-index: 1;
  right: -17px;
  top: 24px;
  width: 150px;
  transform: rotate(5deg);
  filter: drop-shadow(0 6px 9px rgb(0 0 0 / .08));
}

.notice-beans {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 88px;
  width: 68px;
  opacity: .13;
  transform: rotate(14deg);
}

@media (max-width: 520px) {
  .notice-card { padding: 38px 22px 23px; border-radius: 21px 21px 15px 15px; }
  .notice-card h1 { max-width: 68%; }
  .notice-cat { width: 126px; right: -20px; top: 28px; }
  .notice-copy { font-size: .96rem; }
  .ambient-item { opacity: .09; }
  .ambient-tree { display: none; }
  .ambient-coffee { right: -58px; }
  .ambient-cat { left: -63px; }
  .ambient-books { left: -76px; }
  .ambient-sleep { left: -65px; }
}

@media (min-width: 761px) {
  .menu { padding-top: 22px; padding-bottom: 42px; }
  .menu-page { margin-bottom: 14px; border-radius: 12px; box-shadow: 0 8px 30px rgb(20 15 12 / .09); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .menu { opacity: 1; transform: none; }
}


/* =====================
   MOBILE READY V3
   ===================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

button {
  touch-action: manipulation;
}

/* iPhone notch / Android gesture alanları */
.loader,
.notice-overlay {
  padding-top: max(14px, env(safe-area-inset-top));
  padding-right: max(14px, env(safe-area-inset-right));
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  padding-left: max(14px, env(safe-area-inset-left));
}

.loader {
  min-height: 100dvh;
}

.notice-overlay {
  min-height: 100dvh;
  overflow: hidden;
}

.notice-card {
  max-height: calc(
    100dvh
    - max(14px, env(safe-area-inset-top))
    - max(14px, env(safe-area-inset-bottom))
    - 18px
  );
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.notice-button {
  min-height: 50px;
}

/* Telefonda menüyü mümkün olduğunca büyük göster. */
@media (max-width: 600px) {
  .menu {
    width: 100%;
    padding-top: max(6px, env(safe-area-inset-top));
    padding-right: 6px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    padding-left: 6px;
  }

  .menu-page {
    margin-bottom: 7px;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgb(20 15 12 / .065);
  }

  .notice-overlay {
    place-items: center;
  }

  .notice-card {
    width: 100%;
    padding: 36px 20px 20px;
    border-radius: 19px 19px 14px 14px;
  }

  .notice-kicker {
    max-width: 72%;
    line-height: 1.35;
  }

  .notice-card h1 {
    max-width: 65%;
    margin-bottom: 15px;
    font-size: clamp(1.45rem, 7vw, 1.82rem);
  }

  .notice-copy {
    font-size: clamp(.94rem, 4vw, 1rem);
    line-height: 1.48;
  }

  .notice-cat {
    width: min(31vw, 122px);
    right: -16px;
    top: 25px;
  }

  .notice-beans {
    display: none;
  }

  .notice-button {
    padding: 13px 16px;
    font-size: 1rem;
  }

  /* Mobilde atmosfer öğeleri daha sakin: menünün önüne geçmesin. */
  .ambient-item {
    opacity: .075;
    animation-duration: 18s;
  }

  .ambient-tree,
  .ambient-books {
    display: none;
  }

  .ambient-cat {
    left: -68px;
    top: 13vh;
  }

  .ambient-coffee {
    right: -62px;
    top: 42vh;
  }

  .ambient-beans {
    right: -38px;
    top: 72vh;
  }

  .ambient-sleep {
    left: -68px;
    bottom: 8vh;
  }

  .loader-logo {
    width: min(48vw, 190px);
  }

  .loader-doodle-left {
    width: min(33vw, 145px);
    left: -42px;
  }

  .loader-doodle-right {
    width: min(31vw, 138px);
    right: -38px;
  }

  .cat-stage {
    width: min(82vw, 330px);
  }
}

/* Çok dar / kısa ekranlar (küçük Android, yatay telefon vb.) */
@media (max-width: 380px), (max-height: 620px) {
  .notice-card {
    padding-top: 30px;
  }

  .notice-card h1 {
    font-size: 1.35rem;
    margin-bottom: 11px;
  }

  .notice-copy {
    font-size: .9rem;
    line-height: 1.42;
  }

  .notice-copy p {
    margin-bottom: 9px;
  }

  .notice-cat {
    width: 104px;
    opacity: .9;
  }

  .notice-button {
    min-height: 46px;
    margin-top: 2px;
  }
}

/* Touch cihazlarda hover efekti takılı kalmasın. */
@media (hover: none) and (pointer: coarse) {
  .notice-button:hover {
    transform: none;
    box-shadow: 0 7px 0 #d3c9c1;
  }

  .ambient-item {
    will-change: auto;
  }
}

/* =====================
   CONFIG-DRIVEN CONTENT
   ===================== */
.menu-section {
  margin: 0;
  padding: 0;
}

.menu-page-title {
  margin: 12px 12px 8px;
  padding: 9px 12px;
  border: 1px solid rgb(30 24 20 / .08);
  border-radius: 999px;
  background: rgb(255 253 251 / .82);
  color: #302a26;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  box-shadow: 0 3px 12px rgb(20 15 12 / .04);
  backdrop-filter: blur(6px);
}

.menu-meta {
  width: min(calc(100% - 24px), 736px);
  margin: 10px auto max(22px, env(safe-area-inset-bottom));
  padding: 10px 14px;
  border: 1px solid rgb(30 24 20 / .08);
  border-radius: 999px;
  background: rgb(255 253 251 / .76);
  color: #726b67;
  font-size: .78rem;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 3px 12px rgb(20 15 12 / .035);
  backdrop-filter: blur(6px);
}

.noscript-message {
  width: min(calc(100% - 28px), 520px);
  margin: 24px auto;
  padding: 16px;
  border-radius: 14px;
  background: #fffdfb;
  color: #302a26;
  text-align: center;
}

@media (max-width: 600px) {
  .menu-page-title {
    margin: 9px 6px 7px;
    padding: 8px 10px;
    font-size: .82rem;
  }

  .menu-meta {
    width: calc(100% - 20px);
    margin-top: 8px;
    font-size: .74rem;
  }
}

/* =====================
   M2 — DRINK DETAIL CARDS
   ===================== */
.detail-section {
  position: relative;
  margin: 0 0 10px;
  padding: clamp(26px, 6vw, 48px) clamp(18px, 5vw, 42px) clamp(28px, 6vw, 50px);
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 4%, rgb(255 255 255 / .65), transparent 15rem),
    #eee7e2;
  box-shadow: 0 5px 20px rgb(20 15 12 / .08);
}

.detail-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9px;
  background: linear-gradient(90deg, #4e9ca5 0 25%, #c84f46 25% 50%, #568eaa 50% 75%, #84236f 75% 100%);
}

.detail-header {
  position: relative;
  z-index: 2;
  max-width: 610px;
  margin: 0 auto clamp(20px, 5vw, 34px);
  text-align: center;
}

.detail-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #7c7069;
  font-size: clamp(.68rem, 2.5vw, .82rem);
  font-weight: 900;
  letter-spacing: .18em;
}

.detail-title {
  margin: 0;
  color: #1e1a18;
  font-size: clamp(1.65rem, 6vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.detail-intro {
  max-width: 520px;
  margin: 11px auto 0;
  color: #716760;
  font-size: clamp(.9rem, 3.3vw, 1rem);
  line-height: 1.48;
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-card {
  --card-accent: #716760;
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 22px 18px 19px;
  border: 1px solid rgb(30 24 20 / .07);
  border-radius: 19px 19px 13px 13px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / .82), rgb(255 250 246 / .58)),
    #f8f2ed;
  box-shadow: 0 10px 26px rgb(27 20 17 / .07);
}

.detail-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--card-accent);
}

.detail-card::after {
  content: "";
  position: absolute;
  width: 118px;
  height: 118px;
  right: -54px;
  bottom: -58px;
  border: 2px solid var(--card-line);
  border-radius: 50%;
}

.detail-card--teal { --card-accent: #4e9ca5; --card-line: #abd0d4; --card-soft: #f1f8f8; }
.detail-card--red { --card-accent: #c74f46; --card-line: #e0aaa6; --card-soft: #fbf2f1; }
.detail-card--blue { --card-accent: #568eaa; --card-line: #aec9d8; --card-soft: #f1f6f9; }
.detail-card--purple { --card-accent: #84236f; --card-line: #c9a3bf; --card-soft: #f8f1f6; }
.detail-card--neutral { --card-accent: #766b65; --card-line: #c7bdb7; --card-soft: #f7f4f2; }

.detail-card-title {
  position: relative;
  z-index: 2;
  max-width: calc(100% - 74px);
  margin: 0 0 15px;
  color: var(--card-accent);
  font-size: clamp(1.15rem, 4vw, 1.48rem);
  font-weight: 900;
  line-height: 1.08;
}

.detail-card-deco {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: -7px;
  width: 86px;
  max-height: 86px;
  object-fit: contain;
  opacity: .22;
  transform: rotate(5deg);
  filter: saturate(.9);
  pointer-events: none;
}

.detail-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-item {
  min-width: 0;
  padding: 9px 10px 8px;
  border-left: 3px solid var(--card-line);
  border-radius: 3px 9px 9px 3px;
  background: var(--card-soft);
}

.detail-item-name {
  display: block;
  color: #24201d;
  font-size: clamp(.86rem, 2.8vw, .98rem);
  font-weight: 760;
  line-height: 1.22;
}

.detail-item-note {
  display: block;
  margin-top: 3px;
  color: #786e67;
  font-size: clamp(.68rem, 2.25vw, .77rem);
  line-height: 1.25;
}

@media (max-width: 600px) {
  .detail-section {
    margin-bottom: 7px;
    padding: 27px 13px 31px;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgb(20 15 12 / .065);
  }

  .detail-header {
    margin-bottom: 19px;
    padding: 0 7px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-card {
    padding: 19px 14px 16px;
    border-radius: 16px 16px 11px 11px;
  }

  .detail-card-title {
    margin-bottom: 12px;
    font-size: 1.2rem;
  }

  .detail-card-deco {
    width: 76px;
    max-height: 76px;
    top: 10px;
  }

  .detail-list {
    gap: 7px;
  }

  .detail-item {
    padding: 8px 8px 7px;
  }
}

@media (max-width: 350px) {
  .detail-list {
    grid-template-columns: 1fr;
  }
}


/* M2.1: explicit visual bridge so the variant section cannot be mistaken
   for the surrounding WebP pages. */
.detail-section {
  border-top: 1px solid rgb(30 24 20 / .10);
  border-bottom: 1px solid rgb(30 24 20 / .10);
}

.detail-eyebrow::before,
.detail-eyebrow::after {
  content: "✦";
  margin: 0 .55em;
  color: #c74f46;
  font-size: .85em;
}


/* =====================
   M3 — RESPONSIVE PRICE OVERLAY
   ===================== */
.menu-image-wrap {
  position: relative;
  width: 100%;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 20px rgb(20 15 12 / .08);
}

.menu-image-wrap .menu-page {
  width: 100%;
  height: auto;
  margin: 0 !important;
  border-radius: inherit;
  box-shadow: none !important;
}

.price-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.price-overlay-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  paint-order: stroke fill;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.detail-card-price-summary {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -5px 0 13px;
}

.detail-card-price-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-soft) 82%, white);
  color: var(--card-accent);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.detail-item-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.detail-item-price {
  flex: 0 0 auto;
  color: var(--card-accent);
  font-size: clamp(.77rem, 2.55vw, .9rem);
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .menu-image-wrap {
    margin-bottom: 7px;
    border-radius: 7px;
    box-shadow: 0 3px 12px rgb(20 15 12 / .065);
  }

  .detail-card-price-summary {
    margin-bottom: 11px;
  }
}


/* =====================
   M3.1 — M2 STIL POLISH
   ===================== */

.detail-section {
  isolation: isolate;
  background:
    url("assets/deco/coffee-beans.png") left -34px top 118px / 132px auto no-repeat,
    url("assets/deco/open-book.png") right -38px bottom 34px / 150px auto no-repeat,
    radial-gradient(circle at 92% 4%, rgb(255 255 255 / .72), transparent 15rem),
    linear-gradient(180deg, #efe7e1 0%, #ebe1da 100%);
}

.detail-section::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px dashed rgb(92 77 68 / .16);
  border-radius: 18px 18px 12px 12px;
  pointer-events: none;
}

.detail-eyebrow {
  padding: 7px 13px 6px;
  border: 1px solid rgb(199 79 70 / .22);
  border-radius: 3px;
  background: #fff8f2;
  box-shadow: 4px 4px 0 rgb(199 79 70 / .12);
  transform: rotate(-1deg);
}

.detail-title {
  margin-top: 5px;
  text-wrap: balance;
}

.detail-intro {
  color: #625851;
  text-wrap: balance;
}

.detail-mix-banner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 570px;
  min-height: 92px;
  margin: 19px auto 0;
  padding: 14px 18px 14px 102px;
  overflow: hidden;
  border: 2px dashed #c74f46;
  border-radius: 18px 18px 12px 12px;
  background:
    radial-gradient(circle at 92% 20%, rgb(255 216 94 / .25), transparent 76px),
    #fffaf4;
  box-shadow: 7px 8px 0 rgb(79 58 48 / .08);
  text-align: left;
  transform: rotate(.35deg);
}

.detail-mix-banner::after {
  content: "✦  ✦";
  position: absolute;
  top: 8px;
  right: 13px;
  color: #dda02c;
  font-size: 1rem;
  letter-spacing: .35em;
  transform: rotate(7deg);
}

.detail-mix-banner-deco {
  position: absolute;
  left: 9px;
  bottom: -2px;
  width: 88px;
  height: 78px;
  object-fit: contain;
  transform: rotate(-4deg);
  pointer-events: none;
}

.detail-mix-banner-copy {
  display: grid;
  gap: 5px;
}

.detail-mix-banner-badge {
  width: max-content;
  padding: 4px 8px 3px;
  border-radius: 999px;
  background: #c74f46;
  color: white;
  font-size: .72rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.detail-mix-banner-text {
  color: #403833;
  font-size: clamp(.84rem, 2.9vw, .96rem);
  font-weight: 650;
  line-height: 1.38;
}

.detail-card {
  border-width: 1.5px;
  box-shadow:
    0 11px 26px rgb(27 20 17 / .075),
    4px 5px 0 color-mix(in srgb, var(--card-line) 35%, transparent);
}

.detail-card:nth-child(1) { transform: rotate(-.25deg); }
.detail-card:nth-child(2) { transform: rotate(.30deg); }
.detail-card:nth-child(3) { transform: rotate(-.18deg); }
.detail-card:nth-child(4) { transform: rotate(.22deg); }

.detail-card-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--card-accent);
  opacity: .72;
}

.detail-card-deco {
  opacity: .29;
  transform: rotate(8deg);
}

.detail-card-mixnote {
  position: relative;
  z-index: 2;
  margin: -2px 0 13px;
  padding: 9px 10px 9px 12px;
  border-left: 4px solid var(--card-accent);
  border-radius: 3px 10px 10px 3px;
  background: color-mix(in srgb, var(--card-soft) 80%, white);
  color: #544a44;
  font-size: clamp(.75rem, 2.5vw, .86rem);
  font-weight: 750;
  line-height: 1.35;
}

.detail-item {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) {
  .detail-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgb(20 15 12 / .07);
  }
}

@media (max-width: 600px) {
  .detail-section {
    background:
      url("assets/deco/coffee-beans.png") left -45px top 150px / 104px auto no-repeat,
      url("assets/deco/open-book.png") right -50px bottom 30px / 112px auto no-repeat,
      linear-gradient(180deg, #efe7e1 0%, #ebe1da 100%);
  }

  .detail-section::before {
    inset: 9px;
    border-radius: 14px 14px 9px 9px;
  }

  .detail-mix-banner {
    min-height: 88px;
    margin-top: 16px;
    padding: 12px 12px 12px 83px;
    border-radius: 15px 15px 10px 10px;
    box-shadow: 5px 6px 0 rgb(79 58 48 / .07);
  }

  .detail-mix-banner-deco {
    left: 5px;
    width: 75px;
    height: 70px;
  }

  .detail-card:nth-child(n) {
    transform: none;
  }

  .detail-card-mixnote {
    margin-bottom: 11px;
  }
}


/* ============================================================
   COMPATIBILITY FINAL LAYER
   Conservative fallbacks for older iOS Safari / Xiaomi browsers.
   The menu itself is always visible and does not depend on JS.
   ============================================================ */
html, body { background: #eee8e3; }
body { min-height: 100%; }

/* Static HTML is the primary rendering path. */
.menu {
  width: 100%;
  max-width: 760px;
  opacity: 1 !important;
  transform: none !important;
}

/* Avoid risky GPU/backdrop/mask paths on older mobile engines. */
.loader {
  background: #f4ede7 !important;
  -webkit-animation: ardicLoaderFailSafe .35s ease 3s forwards;
  animation: ardicLoaderFailSafe .35s ease 3s forwards;
}
.loader::before { display: none !important; }
.loader-logo, .notice-cat { -webkit-filter: none !important; filter: none !important; }
.notice-overlay {
  background: rgba(35, 29, 25, .48) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.menu-meta { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.detail-section { isolation: auto; }

/* color-mix fallbacks. Newer browsers may use the original richer declarations. */
.detail-card-price-chip { background: #fffaf6; }
.detail-card-mixnote { background: #fffaf6; }
.detail-card { box-shadow: 0 11px 26px rgba(27,20,17,.075), 4px 5px 0 rgba(120,100,90,.10); }

/* Simple width fallbacks if min()/clamp() are unavailable. */
.loader-panel { width: 100%; max-width: 420px; }
.notice-card { width: 100%; max-width: 480px; }
.detail-section { width: 100%; max-width: 760px; }
.menu-meta { width: 100%; max-width: 736px; }
.detail-mix-banner { width: 100%; max-width: 570px; }

@-webkit-keyframes ardicLoaderFailSafe {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
@keyframes ardicLoaderFailSafe {
  from { opacity: 1; visibility: visible; }
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* If JS hides it earlier, make that state final. */
.loader.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  -webkit-animation: none !important;
  animation: none !important;
}

/* JS-off mode: after loader timeout the menu remains fully usable. */
.noscript-message {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto 20px;
  padding: 10px 14px;
  background: #fffaf6;
  color: #5b514b;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  .menu { width: 100%; max-width: none; padding-left: 6px; padding-right: 6px; }
  .notice-card { max-width: none; }
}

/* Explicit inset shorthand fallbacks for older WebKit/Android engines. */
.ambient,
.loader,
.notice-overlay,
.price-overlay {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.ambient-item,
.loader-logo,
.cat-walker,
.cat,
.cat-tail,
.cat-leg {
  will-change: auto !important;
}
