: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;
  }
}
